// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "siteBooking.proto" (package "api", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import { WireType } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { ResponseHeader } from "./shared"; import { Slot } from "./slotbooking"; import { MetadataElement } from "./shared"; import { EntityID } from "./shared"; import { BookableSlot } from "./slotbooking"; import { AppointmentContent } from "./slotbooking"; import { SegmentationSelection } from "./slotbooking"; import { AppointmentType } from "./slotbooking"; import { RequestProjectHeader } from "./shared"; /** * GetAvailableSlots * * @generated from protobuf message api.GetBookingSlotsRequest */ export interface GetBookingSlotsRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * Type of appointment : Loading / Unloading / Both * * @generated from protobuf field: api.AppointmentType AppointmentType = 2 */ AppointmentType: AppointmentType; /** * Set of segmentation constraining the slot booking * * @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4 */ SegmentationSelections: SegmentationSelection[]; /** * @generated from protobuf field: string StartDate = 5 */ StartDate: string; // Start date of the range to look for available slots, format yyyy-mm-dd. /** * @generated from protobuf field: string EndDate = 6 */ EndDate: string; // End date of the range to look for available slots, format yyyy-mm-dd. /** * Optional, needed to skip counting those appointments in the capacity rules * * @generated from protobuf field: repeated string SkippedAppointmentIDs = 7 */ SkippedAppointmentIDs: string[]; // string ActorID = 8; // actor with which the siteID/project-depositID will be processed /** * Loading content * * @generated from protobuf field: api.AppointmentContent Loading = 10 */ Loading?: AppointmentContent; /** * Unoading content * * @generated from protobuf field: api.AppointmentContent Unloading = 11 */ Unloading?: AppointmentContent; } /** * @generated from protobuf message api.GetBookingSlotsResponse */ export interface GetBookingSlotsResponse { /** * @generated from protobuf field: repeated api.BookableSlot Bookables = 1 */ Bookables: BookableSlot[]; // List of bookable slots /** * @generated from protobuf field: uint64 EstimatedNeededDurationInMinutes = 2 */ EstimatedNeededDurationInMinutes: bigint; // Computed needed slot duration in minutes } /** * BookAppointment * * @generated from protobuf message api.BookBookingAppointmentRequest */ export interface BookBookingAppointmentRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.BookAppointmentPayload Payload = 3 */ Payload?: BookAppointmentPayload; } /** * @generated from protobuf message api.BookAppointmentPayload */ export interface BookAppointmentPayload { /** * Type of appointment : Loading / Unloading / Both * * @generated from protobuf field: api.AppointmentType AppointmentType = 1 */ AppointmentType: AppointmentType; /** * Set of segmentation constraining the slot booking * * @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 2 */ SegmentationSelections: SegmentationSelection[]; /** * Carrier information metadata * * @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 3 */ CarrierInformation: MetadataElement[]; /** * The slot booked for the appointment * * @generated from protobuf field: api.Slot Slot = 4 */ Slot?: Slot; /** * @generated from protobuf field: repeated api.MetadataElement MetaData = 6 */ MetaData: MetadataElement[]; /** * @generated from protobuf field: string Reason = 7 */ Reason: string; /** * @generated from protobuf field: bool InstructionAck = 8 */ InstructionAck: boolean; /** * time zone of the site on which the appointment is booked * * @generated from protobuf field: string TimeZone = 9 */ TimeZone: string; /** * Loading content * * @generated from protobuf field: api.AppointmentContent Loading = 10 */ Loading?: AppointmentContent; /** * Unoading content * * @generated from protobuf field: api.AppointmentContent Unloading = 11 */ Unloading?: AppointmentContent; /** * User mails being notified on this appointment * * @generated from protobuf field: repeated string Emails = 13 */ Emails: string[]; } /** * @generated from protobuf message api.BookBookingAppointmentResponse */ export interface BookBookingAppointmentResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 2 */ Header?: ResponseHeader; /** * @generated from protobuf field: string AppointmentID = 1 */ AppointmentID: string; /** * @generated from protobuf field: repeated string Attendees = 3 */ Attendees: string[]; } /** * CancelAppointment * * @generated from protobuf message api.CancelBookingAppointmentRequest */ export interface CancelBookingAppointmentRequest { /** * @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.CancelBookingAppointmentResponse */ export interface CancelBookingAppointmentResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 2 */ Header?: ResponseHeader; /** * @generated from protobuf field: string AppointmentID = 1 */ 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 * * @generated from protobuf message api.RescheduleBookingAppointmentRequest */ export interface RescheduleBookingAppointmentRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.RescheduleAppointmentPayload Payload = 3 */ Payload?: RescheduleAppointmentPayload; } /** * @generated from protobuf message api.RescheduleAppointmentPayload */ export interface RescheduleAppointmentPayload { /** * The slots to book for the appointment * * @generated from protobuf field: api.Slot Slot = 1 */ Slot?: Slot; } /** * Update * * @generated from protobuf message api.UpdateBookingAppointmentRequest */ export interface UpdateBookingAppointmentRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.UpdateAppointmentPayload Payload = 3 */ Payload?: UpdateAppointmentPayload; } /** * @generated from protobuf message api.UpdateAppointmentPayload */ export interface UpdateAppointmentPayload { /** * The slots to book for the appointment * * @generated from protobuf field: api.Slot Slot = 1 */ Slot?: Slot; /** * In case of no reference, The Reason for which the appointment has no commissions * * @generated from protobuf field: string Reason = 3 */ Reason: string; /** * time zone, useful only if a WMS send a message * * @generated from protobuf field: string TimeZone = 4 */ TimeZone: string; /** * Loading content * * @generated from protobuf field: api.AppointmentContent Loading = 5 */ Loading?: AppointmentContent; /** * Unoading content * * @generated from protobuf field: api.AppointmentContent Unloading = 6 */ Unloading?: AppointmentContent; /** * User mails being notified on this appointment * * @generated from protobuf field: repeated string Emails = 8 */ Emails: string[]; } /** * @generated from protobuf message api.WMSUpdateBookingAppointmentRequest */ export interface WMSUpdateBookingAppointmentRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.WMSUpdateAppointmentPayload Payload = 3 */ Payload?: WMSUpdateAppointmentPayload; } /** * @generated from protobuf message api.WMSUpdateAppointmentPayload */ export interface WMSUpdateAppointmentPayload { /** * The slot to book for the appointment * * @generated from protobuf field: api.Slot Slot = 1 */ Slot?: Slot; /** * time zone, useful only if a WMS send a message * * @generated from protobuf field: string TimeZone = 2 */ TimeZone: string; /** * Loading content * * @generated from protobuf field: api.AppointmentContent Loading = 3 */ Loading?: AppointmentContent; /** * Unoading content * * @generated from protobuf field: api.AppointmentContent Unloading = 4 */ Unloading?: AppointmentContent; /** * In case of no reference, The Reason for which the appointment has no commissions * * @generated from protobuf field: string Reason = 5 */ Reason: string; } /** * CheckAppointmentEditable * * @generated from protobuf message api.CheckBookingAppointmentEditableRequest */ export interface CheckBookingAppointmentEditableRequest { /** * @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.CheckBookingAppointmentEditableResponse */ export interface CheckBookingAppointmentEditableResponse { /** * ResponseHeader Header = 2; * bool IsModifiable = 1; * * @generated from protobuf field: bool IsEditable = 3 */ IsEditable: boolean; /** * @generated from protobuf field: bool IsForceEditable = 4 */ IsForceEditable: boolean; } /** * LockBookingRequest * * @generated from protobuf message api.LockBookingRequest */ export interface LockBookingRequest { /** * @generated from protobuf field: string ProjectID = 1 */ ProjectID: string; /** * @generated from protobuf field: string AppointmentID = 2 */ AppointmentID: string; } /** * @generated from protobuf message api.LockBookingResponse */ export interface LockBookingResponse { } // @generated message type with reflection information, may provide speed optimized methods class GetBookingSlotsRequest$Type extends MessageType { constructor() { super("api.GetBookingSlotsRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, { no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } }, { no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } }, { no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "SegmentationSelections"] } } }); } create(value?: PartialMessage): GetBookingSlotsRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.AppointmentType = 0; message.SegmentationSelections = []; message.StartDate = ""; message.EndDate = ""; message.SkippedAppointmentIDs = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBookingSlotsRequest): GetBookingSlotsRequest { 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.AppointmentType AppointmentType */ 2: message.AppointmentType = reader.int32(); break; case /* repeated api.SegmentationSelection SegmentationSelections */ 4: message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string StartDate */ 5: message.StartDate = reader.string(); break; case /* string EndDate */ 6: message.EndDate = reader.string(); break; case /* repeated string SkippedAppointmentIDs */ 7: message.SkippedAppointmentIDs.push(reader.string()); break; case /* api.AppointmentContent Loading */ 10: message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading); break; case /* api.AppointmentContent Unloading */ 11: message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading); 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: GetBookingSlotsRequest, 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.AppointmentType AppointmentType = 2; */ if (message.AppointmentType !== 0) writer.tag(2, WireType.Varint).int32(message.AppointmentType); /* repeated api.SegmentationSelection SegmentationSelections = 4; */ for (let i = 0; i < message.SegmentationSelections.length; i++) SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* string StartDate = 5; */ if (message.StartDate !== "") writer.tag(5, WireType.LengthDelimited).string(message.StartDate); /* string EndDate = 6; */ if (message.EndDate !== "") writer.tag(6, WireType.LengthDelimited).string(message.EndDate); /* repeated string SkippedAppointmentIDs = 7; */ for (let i = 0; i < message.SkippedAppointmentIDs.length; i++) writer.tag(7, WireType.LengthDelimited).string(message.SkippedAppointmentIDs[i]); /* api.AppointmentContent Loading = 10; */ if (message.Loading) AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentContent Unloading = 11; */ if (message.Unloading) AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(11, 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.GetBookingSlotsRequest */ export const GetBookingSlotsRequest = new GetBookingSlotsRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class GetBookingSlotsResponse$Type extends MessageType { constructor() { super("api.GetBookingSlotsResponse", [ { no: 1, name: "Bookables", kind: "message", localName: "Bookables", jsonName: "Bookables", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BookableSlot }, { no: 2, name: "EstimatedNeededDurationInMinutes", kind: "scalar", localName: "EstimatedNeededDurationInMinutes", jsonName: "EstimatedNeededDurationInMinutes", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ } ]); } create(value?: PartialMessage): GetBookingSlotsResponse { const message = globalThis.Object.create((this.messagePrototype!)); message.Bookables = []; message.EstimatedNeededDurationInMinutes = 0n; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBookingSlotsResponse): GetBookingSlotsResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.BookableSlot Bookables */ 1: message.Bookables.push(BookableSlot.internalBinaryRead(reader, reader.uint32(), options)); break; case /* uint64 EstimatedNeededDurationInMinutes */ 2: message.EstimatedNeededDurationInMinutes = reader.uint64().toBigInt(); 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: GetBookingSlotsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.BookableSlot Bookables = 1; */ for (let i = 0; i < message.Bookables.length; i++) BookableSlot.internalBinaryWrite(message.Bookables[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* uint64 EstimatedNeededDurationInMinutes = 2; */ if (message.EstimatedNeededDurationInMinutes !== 0n) writer.tag(2, WireType.Varint).uint64(message.EstimatedNeededDurationInMinutes); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.GetBookingSlotsResponse */ export const GetBookingSlotsResponse = new GetBookingSlotsResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class BookBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.BookBookingAppointmentRequest", [ { 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 } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => BookAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): BookBookingAppointmentRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookBookingAppointmentRequest): BookBookingAppointmentRequest { 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; case /* api.BookAppointmentPayload Payload */ 3: message.Payload = BookAppointmentPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: BookBookingAppointmentRequest, 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(); /* api.BookAppointmentPayload Payload = 3; */ if (message.Payload) BookAppointmentPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.BookBookingAppointmentRequest */ export const BookBookingAppointmentRequest = new BookBookingAppointmentRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class BookAppointmentPayload$Type extends MessageType { constructor() { super("api.BookAppointmentPayload", [ { no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 2, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, { no: 3, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 4, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, { no: 6, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }, { no: 9, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, { no: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType", "Slot", "SegmentationSelections", "CarrierInformation", "Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" }); } create(value?: PartialMessage): BookAppointmentPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.AppointmentType = 0; message.SegmentationSelections = []; message.CarrierInformation = []; message.MetaData = []; message.Reason = ""; message.InstructionAck = false; message.TimeZone = ""; message.Emails = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookAppointmentPayload): BookAppointmentPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.AppointmentType AppointmentType */ 1: message.AppointmentType = reader.int32(); break; case /* repeated api.SegmentationSelection SegmentationSelections */ 2: message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options)); break; case /* repeated api.MetadataElement CarrierInformation */ 3: message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* api.Slot Slot */ 4: message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); break; case /* repeated api.MetadataElement MetaData */ 6: message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string Reason */ 7: message.Reason = reader.string(); break; case /* bool InstructionAck */ 8: message.InstructionAck = reader.bool(); break; case /* string TimeZone */ 9: message.TimeZone = reader.string(); break; case /* api.AppointmentContent Loading */ 10: message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading); break; case /* api.AppointmentContent Unloading */ 11: message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading); break; case /* repeated string Emails */ 13: message.Emails.push(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: BookAppointmentPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.AppointmentType AppointmentType = 1; */ if (message.AppointmentType !== 0) writer.tag(1, WireType.Varint).int32(message.AppointmentType); /* repeated api.SegmentationSelection SegmentationSelections = 2; */ for (let i = 0; i < message.SegmentationSelections.length; i++) SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* repeated api.MetadataElement CarrierInformation = 3; */ for (let i = 0; i < message.CarrierInformation.length; i++) MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* api.Slot Slot = 4; */ if (message.Slot) Slot.internalBinaryWrite(message.Slot, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* repeated api.MetadataElement MetaData = 6; */ for (let i = 0; i < message.MetaData.length; i++) MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* string Reason = 7; */ if (message.Reason !== "") writer.tag(7, WireType.LengthDelimited).string(message.Reason); /* bool InstructionAck = 8; */ if (message.InstructionAck !== false) writer.tag(8, WireType.Varint).bool(message.InstructionAck); /* string TimeZone = 9; */ if (message.TimeZone !== "") writer.tag(9, WireType.LengthDelimited).string(message.TimeZone); /* api.AppointmentContent Loading = 10; */ if (message.Loading) AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentContent Unloading = 11; */ if (message.Unloading) AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(11, WireType.LengthDelimited).fork(), options).join(); /* repeated string Emails = 13; */ for (let i = 0; i < message.Emails.length; i++) writer.tag(13, WireType.LengthDelimited).string(message.Emails[i]); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.BookAppointmentPayload */ export const BookAppointmentPayload = new BookAppointmentPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class BookBookingAppointmentResponse$Type extends MessageType { constructor() { super("api.BookBookingAppointmentResponse", [ { 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*/ }, { no: 3, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): BookBookingAppointmentResponse { const message = globalThis.Object.create((this.messagePrototype!)); message.AppointmentID = ""; message.Attendees = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookBookingAppointmentResponse): BookBookingAppointmentResponse { 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; case /* repeated string Attendees */ 3: message.Attendees.push(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: BookBookingAppointmentResponse, 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(); /* repeated string Attendees = 3; */ for (let i = 0; i < message.Attendees.length; i++) writer.tag(3, WireType.LengthDelimited).string(message.Attendees[i]); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.BookBookingAppointmentResponse */ export const BookBookingAppointmentResponse = new BookBookingAppointmentResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class CancelBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.CancelBookingAppointmentRequest", [ { 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): CancelBookingAppointmentRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CancelBookingAppointmentRequest): CancelBookingAppointmentRequest { 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: CancelBookingAppointmentRequest, 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.CancelBookingAppointmentRequest */ export const CancelBookingAppointmentRequest = new CancelBookingAppointmentRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class CancelBookingAppointmentResponse$Type extends MessageType { constructor() { super("api.CancelBookingAppointmentResponse", [ { 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): CancelBookingAppointmentResponse { const message = globalThis.Object.create((this.messagePrototype!)); message.AppointmentID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CancelBookingAppointmentResponse): CancelBookingAppointmentResponse { 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: CancelBookingAppointmentResponse, 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.CancelBookingAppointmentResponse */ export const CancelBookingAppointmentResponse = new CancelBookingAppointmentResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class DeleteBookingAppointmentRequest$Type extends MessageType { 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 { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(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 { 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 { const message = globalThis.Object.create((this.messagePrototype!)); message.AppointmentID = ""; if (value !== undefined) reflectionMergePartial(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 { constructor() { super("api.RescheduleBookingAppointmentRequest", [ { 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 } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => RescheduleAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): RescheduleBookingAppointmentRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RescheduleBookingAppointmentRequest): RescheduleBookingAppointmentRequest { 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; case /* api.RescheduleAppointmentPayload Payload */ 3: message.Payload = RescheduleAppointmentPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: RescheduleBookingAppointmentRequest, 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(); /* api.RescheduleAppointmentPayload Payload = 3; */ if (message.Payload) RescheduleAppointmentPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.RescheduleBookingAppointmentRequest */ export const RescheduleBookingAppointmentRequest = new RescheduleBookingAppointmentRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class RescheduleAppointmentPayload$Type extends MessageType { constructor() { super("api.RescheduleAppointmentPayload", [ { no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Slot"] } } }); } create(value?: PartialMessage): RescheduleAppointmentPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RescheduleAppointmentPayload): RescheduleAppointmentPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.Slot Slot */ 1: message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); 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: RescheduleAppointmentPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.Slot Slot = 1; */ if (message.Slot) Slot.internalBinaryWrite(message.Slot, writer.tag(1, 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.RescheduleAppointmentPayload */ export const RescheduleAppointmentPayload = new RescheduleAppointmentPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class UpdateBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.UpdateBookingAppointmentRequest", [ { 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 } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => UpdateAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): UpdateBookingAppointmentRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateBookingAppointmentRequest): UpdateBookingAppointmentRequest { 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; case /* api.UpdateAppointmentPayload Payload */ 3: message.Payload = UpdateAppointmentPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: UpdateBookingAppointmentRequest, 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(); /* api.UpdateAppointmentPayload Payload = 3; */ if (message.Payload) UpdateAppointmentPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.UpdateBookingAppointmentRequest */ export const UpdateBookingAppointmentRequest = new UpdateBookingAppointmentRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class UpdateAppointmentPayload$Type extends MessageType { constructor() { super("api.UpdateAppointmentPayload", [ { no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, { no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } }, { no: 4, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } }, { no: 5, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, { no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Slot", "Attendees"] } } }); } create(value?: PartialMessage): UpdateAppointmentPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.Reason = ""; message.TimeZone = ""; message.Emails = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentPayload): UpdateAppointmentPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.Slot Slot */ 1: message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); break; case /* string Reason */ 3: message.Reason = reader.string(); break; case /* string TimeZone */ 4: message.TimeZone = reader.string(); break; case /* api.AppointmentContent Loading */ 5: message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading); break; case /* api.AppointmentContent Unloading */ 6: message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading); break; case /* repeated string Emails */ 8: message.Emails.push(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: UpdateAppointmentPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.Slot Slot = 1; */ if (message.Slot) Slot.internalBinaryWrite(message.Slot, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string Reason = 3; */ if (message.Reason !== "") writer.tag(3, WireType.LengthDelimited).string(message.Reason); /* string TimeZone = 4; */ if (message.TimeZone !== "") writer.tag(4, WireType.LengthDelimited).string(message.TimeZone); /* api.AppointmentContent Loading = 5; */ if (message.Loading) AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentContent Unloading = 6; */ if (message.Unloading) AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* repeated string Emails = 8; */ for (let i = 0; i < message.Emails.length; i++) writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.UpdateAppointmentPayload */ export const UpdateAppointmentPayload = new UpdateAppointmentPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class WMSUpdateBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.WMSUpdateBookingAppointmentRequest", [ { 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 } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => WMSUpdateAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): WMSUpdateBookingAppointmentRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSUpdateBookingAppointmentRequest): WMSUpdateBookingAppointmentRequest { 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; case /* api.WMSUpdateAppointmentPayload Payload */ 3: message.Payload = WMSUpdateAppointmentPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: WMSUpdateBookingAppointmentRequest, 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(); /* api.WMSUpdateAppointmentPayload Payload = 3; */ if (message.Payload) WMSUpdateAppointmentPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.WMSUpdateBookingAppointmentRequest */ export const WMSUpdateBookingAppointmentRequest = new WMSUpdateBookingAppointmentRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class WMSUpdateAppointmentPayload$Type extends MessageType { constructor() { super("api.WMSUpdateAppointmentPayload", [ { no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, { no: 2, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } }, { no: 3, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 4, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, { no: 5, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to update appointment without order reference" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Slot"] } } }); } create(value?: PartialMessage): WMSUpdateAppointmentPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.TimeZone = ""; message.Reason = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSUpdateAppointmentPayload): WMSUpdateAppointmentPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.Slot Slot */ 1: message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); break; case /* string TimeZone */ 2: message.TimeZone = reader.string(); break; case /* api.AppointmentContent Loading */ 3: message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading); break; case /* api.AppointmentContent Unloading */ 4: message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading); break; case /* string Reason */ 5: message.Reason = 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: WMSUpdateAppointmentPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.Slot Slot = 1; */ if (message.Slot) Slot.internalBinaryWrite(message.Slot, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string TimeZone = 2; */ if (message.TimeZone !== "") writer.tag(2, WireType.LengthDelimited).string(message.TimeZone); /* api.AppointmentContent Loading = 3; */ if (message.Loading) AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentContent Unloading = 4; */ if (message.Unloading) AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* string Reason = 5; */ if (message.Reason !== "") writer.tag(5, WireType.LengthDelimited).string(message.Reason); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.WMSUpdateAppointmentPayload */ export const WMSUpdateAppointmentPayload = new WMSUpdateAppointmentPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class CheckBookingAppointmentEditableRequest$Type extends MessageType { constructor() { super("api.CheckBookingAppointmentEditableRequest", [ { 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): CheckBookingAppointmentEditableRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckBookingAppointmentEditableRequest): CheckBookingAppointmentEditableRequest { 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: CheckBookingAppointmentEditableRequest, 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.CheckBookingAppointmentEditableRequest */ export const CheckBookingAppointmentEditableRequest = new CheckBookingAppointmentEditableRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class CheckBookingAppointmentEditableResponse$Type extends MessageType { constructor() { super("api.CheckBookingAppointmentEditableResponse", [ { no: 3, name: "IsEditable", kind: "scalar", localName: "IsEditable", jsonName: "IsEditable", T: 8 /*ScalarType.BOOL*/ }, { no: 4, name: "IsForceEditable", kind: "scalar", localName: "IsForceEditable", jsonName: "IsForceEditable", T: 8 /*ScalarType.BOOL*/ } ]); } create(value?: PartialMessage): CheckBookingAppointmentEditableResponse { const message = globalThis.Object.create((this.messagePrototype!)); message.IsEditable = false; message.IsForceEditable = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckBookingAppointmentEditableResponse): CheckBookingAppointmentEditableResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* bool IsEditable */ 3: message.IsEditable = reader.bool(); break; case /* bool IsForceEditable */ 4: message.IsForceEditable = reader.bool(); 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: CheckBookingAppointmentEditableResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* bool IsEditable = 3; */ if (message.IsEditable !== false) writer.tag(3, WireType.Varint).bool(message.IsEditable); /* bool IsForceEditable = 4; */ if (message.IsForceEditable !== false) writer.tag(4, WireType.Varint).bool(message.IsForceEditable); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.CheckBookingAppointmentEditableResponse */ export const CheckBookingAppointmentEditableResponse = new CheckBookingAppointmentEditableResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class LockBookingRequest$Type extends MessageType { constructor() { super("api.LockBookingRequest", [ { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "AppointmentID"] } } }); } create(value?: PartialMessage): LockBookingRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.ProjectID = ""; message.AppointmentID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LockBookingRequest): LockBookingRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ProjectID */ 1: message.ProjectID = reader.string(); break; case /* string AppointmentID */ 2: 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: LockBookingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ProjectID = 1; */ if (message.ProjectID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ProjectID); /* string AppointmentID = 2; */ if (message.AppointmentID !== "") writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.LockBookingRequest */ export const LockBookingRequest = new LockBookingRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class LockBookingResponse$Type extends MessageType { constructor() { super("api.LockBookingResponse", []); } create(value?: PartialMessage): LockBookingResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LockBookingResponse): LockBookingResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { 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: LockBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.LockBookingResponse */ export const LockBookingResponse = new LockBookingResponse$Type(); /** * @generated ServiceType for protobuf service api.BookingService */ export const BookingService = new ServiceType("api.BookingService", [ { name: "GetAvailableSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Get available slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingSlotsRequest, O: GetBookingSlotsResponse }, { name: "GetAllSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Get all slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingSlotsRequest, O: GetBookingSlotsResponse }, { name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Book an appointment, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: BookBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "BookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Book an appointment 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: BookBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { 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 }, { name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment from a wms even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSUpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "RescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "ForceRescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "CheckAppointmentEditable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Check if appointment is in modifiable range." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckBookingAppointmentEditableRequest, O: CheckBookingAppointmentEditableResponse }, { name: "LockBooking", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Lock Booking." }, "api.rscType": "Platform", "api.roles": "Platform.LockBooking", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: LockBookingRequest, O: LockBookingResponse } ], { "api.k8sService": "core-site" });