You've already forked npm-core-sdk
Latest generation
This commit is contained in:
136
siteBooking.ts
136
siteBooking.ts
@@ -213,6 +213,34 @@ export interface CancelBookingAppointmentResponse {
|
||||
*/
|
||||
AppointmentID: string;
|
||||
}
|
||||
/**
|
||||
* DeleteAppointment
|
||||
*
|
||||
* @generated from protobuf message api.DeleteBookingAppointmentRequest
|
||||
*/
|
||||
export interface DeleteBookingAppointmentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteBookingAppointmentResponse
|
||||
*/
|
||||
export interface DeleteBookingAppointmentResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 2
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 1
|
||||
*/
|
||||
AppointmentID: string;
|
||||
}
|
||||
/**
|
||||
* Reschedule
|
||||
*
|
||||
@@ -915,6 +943,113 @@ class CancelBookingAppointmentResponse$Type extends MessageType<CancelBookingApp
|
||||
*/
|
||||
export const CancelBookingAppointmentResponse = new CancelBookingAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteBookingAppointmentRequest$Type extends MessageType<DeleteBookingAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteBookingAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteBookingAppointmentRequest>): DeleteBookingAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteBookingAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteBookingAppointmentRequest): DeleteBookingAppointmentRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteBookingAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteBookingAppointmentRequest
|
||||
*/
|
||||
export const DeleteBookingAppointmentRequest = new DeleteBookingAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteBookingAppointmentResponse$Type extends MessageType<DeleteBookingAppointmentResponse> {
|
||||
constructor() {
|
||||
super("api.DeleteBookingAppointmentResponse", [
|
||||
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
|
||||
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteBookingAppointmentResponse>): DeleteBookingAppointmentResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteBookingAppointmentResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteBookingAppointmentResponse): DeleteBookingAppointmentResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseHeader Header */ 2:
|
||||
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string AppointmentID */ 1:
|
||||
message.AppointmentID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteBookingAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string AppointmentID = 1; */
|
||||
if (message.AppointmentID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
|
||||
/* api.ResponseHeader Header = 2; */
|
||||
if (message.Header)
|
||||
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteBookingAppointmentResponse
|
||||
*/
|
||||
export const DeleteBookingAppointmentResponse = new DeleteBookingAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class RescheduleBookingAppointmentRequest$Type extends MessageType<RescheduleBookingAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.RescheduleBookingAppointmentRequest", [
|
||||
@@ -1512,6 +1647,7 @@ export const BookingService = new ServiceType("api.BookingService", [
|
||||
{ name: "ForceBookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Book an appointment even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: BookBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelBookingAppointmentRequest, O: CancelBookingAppointmentResponse },
|
||||
{ name: "ForceCancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelBookingAppointmentRequest, O: CancelBookingAppointmentResponse },
|
||||
{ name: "DeleteAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Delete an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteBookingAppointmentRequest, O: DeleteBookingAppointmentResponse },
|
||||
{ name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees), if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
{ name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) without order references, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
{ name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
|
||||
Reference in New Issue
Block a user