From bb03d5a3a4c4e0caded737a156d10b42db35c517 Mon Sep 17 00:00:00 2001 From: ci core model Date: Tue, 16 Jun 2026 08:55:23 +0000 Subject: [PATCH] Latest generation --- package.json | 2 +- site.client.ts | 207 +---------- site.ts | 992 ------------------------------------------------- 3 files changed, 14 insertions(+), 1187 deletions(-) diff --git a/package.json b/package.json index 71ca995..e65ebc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260615081039", + "version": "1.14.0-SNAPSHOT-260616085436", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.client.ts b/site.client.ts index 044b3f0..e5672ec 100644 --- a/site.client.ts +++ b/site.client.ts @@ -20,8 +20,6 @@ import type { GetActorAuthorisationResponse } from "./site"; import type { GetActorAuthorisationRequest } from "./site"; import type { ListAllowedSitesResponse } from "./site"; import type { ListAllowedSitesRequest } from "./site"; -import type { ListSitesAuthorizedForBookingResponse } from "./site"; -import type { ListSitesAuthorizedForBookingRequest } from "./site"; import type { GetBasicSettingsResponse } from "./site"; import type { GetBasicSettingsRequest } from "./site"; import type { GetUnitsResponse } from "./site"; @@ -30,18 +28,8 @@ import type { CreateSettingsResponse } from "./site"; import type { CreateSettingsRequest } from "./site"; import type { DeleteSettingsResult } from "./site"; import type { DeleteSettingsRequest } from "./site"; -import type { RescheduleAppointmentRequest } from "./site"; -import type { WMSUpdateAppointmentRequest } from "./site"; -import type { UpdateAppointmentRequest } from "./site"; -import type { CancelAppointmentResponse } from "./site"; -import type { CancelAppointmentRequest } from "./site"; -import type { BookAppointmentResponse } from "./site"; -import type { BookAppointmentRequest } from "./site"; import type { CheckAppointmentCommissionResponse } from "./site"; import type { CheckAppointmentCommissionRequest } from "./site"; -import type { GetAllSlotsResponse } from "./site"; -import type { GetAvailableSlotsResponse } from "./site"; -import type { GetAvailableSlotsRequest } from "./site"; import type { DeleteInstructionDocumentResponse } from "./site"; import type { DeleteInstructionDocumentRequest } from "./site"; import type { UploadInstructionDocumentResponse } from "./site"; @@ -85,70 +73,10 @@ export interface ISiteServiceClient { * @generated from protobuf rpc: DeleteInstructionDocument */ deleteInstructionDocument(input: DeleteInstructionDocumentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: GetAvailableSlots - */ - getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: GetAllSlots - */ - getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CheckAppointmentCommission */ checkAppointmentCommission(input: CheckAppointmentCommissionRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: BookAppointment - */ - bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: BookAppointmentNoReference - */ - bookAppointmentNoReference(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: ForceBookAppointment - */ - forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: CancelAppointment - */ - cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: UpdateAppointment - */ - updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: UpdateAppointmentNoReference - */ - updateAppointmentNoReference(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: ForceUpdateAppointment - */ - forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: WMSUpdateAppointment - */ - wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: RescheduleAppointment - */ - rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: ForceRescheduleAppointment - */ - forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteSettings */ @@ -165,11 +93,6 @@ export interface ISiteServiceClient { * @generated from protobuf rpc: GetBasicSettings */ getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: ListSitesAuthorizedForBooking - */ - listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListAllowedSites */ @@ -254,199 +177,95 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @deprecated - * @generated from protobuf rpc: GetAvailableSlots - */ - getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[6], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: GetAllSlots - */ - getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[7], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } /** * @generated from protobuf rpc: CheckAppointmentCommission */ checkAppointmentCommission(input: CheckAppointmentCommissionRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[8], opt = this._transport.mergeOptions(options); + const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @deprecated - * @generated from protobuf rpc: BookAppointment - */ - bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[9], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: BookAppointmentNoReference - */ - bookAppointmentNoReference(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[10], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: ForceBookAppointment - */ - forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[11], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: CancelAppointment - */ - cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[12], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: UpdateAppointment - */ - updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[13], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: UpdateAppointmentNoReference - */ - updateAppointmentNoReference(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[14], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: ForceUpdateAppointment - */ - forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[15], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: WMSUpdateAppointment - */ - wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[16], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: RescheduleAppointment - */ - rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[17], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: ForceRescheduleAppointment - */ - forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[18], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } /** * @generated from protobuf rpc: DeleteSettings */ deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[19], opt = this._transport.mergeOptions(options); + const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CreateSettings */ createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[20], opt = this._transport.mergeOptions(options); + const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetUnits */ getUnits(input: GetUnitsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[21], opt = this._transport.mergeOptions(options); + const method = this.methods[9], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetBasicSettings */ getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[22], opt = this._transport.mergeOptions(options); + const method = this.methods[10], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @deprecated - * @generated from protobuf rpc: ListSitesAuthorizedForBooking - */ - listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[23], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } /** * @generated from protobuf rpc: ListAllowedSites */ listAllowedSites(input: ListAllowedSitesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[24], opt = this._transport.mergeOptions(options); + const method = this.methods[11], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetActorAuthorisation */ getActorAuthorisation(input: GetActorAuthorisationRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[25], opt = this._transport.mergeOptions(options); + const method = this.methods[12], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetBookingSegmentations */ getBookingSegmentations(input: GetBookingSegmentationsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[26], opt = this._transport.mergeOptions(options); + const method = this.methods[13], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ResolveSite */ resolveSite(input: ResolveSiteRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[27], opt = this._transport.mergeOptions(options); + const method = this.methods[14], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: InitBookerProfile */ initBookerProfile(input: InitBookerProfileRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[28], opt = this._transport.mergeOptions(options); + const method = this.methods[15], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetBookingContext */ getBookingContext(input: GetBookingContextRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[29], opt = this._transport.mergeOptions(options); + const method = this.methods[16], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetMyBookingContext */ getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[30], opt = this._transport.mergeOptions(options); + const method = this.methods[17], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListSettings */ listSettings(input: ListSettingsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[31], opt = this._transport.mergeOptions(options); + const method = this.methods[18], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/site.ts b/site.ts index 1a56fde..6a1b5e5 100644 --- a/site.ts +++ b/site.ts @@ -14,11 +14,8 @@ import { MessageType } from "@protobuf-ts/runtime"; import { CommandIdentifierEntry } from "./slotbooking"; import { AppointmentContent } from "./slotbooking"; import { Period } from "./shared"; -import { WMSCommission } from "./slotbooking"; import { SegmentationFilter } from "./slotbooking"; import { PrjMetadata } from "./metadatadef"; -import { CustomField } from "./shared"; -import { Slot } from "./slotbooking"; import { ResponseHeader } from "./shared"; import { DateTime } from "./shared"; import { AppointmentCommission } from "./slotbooking"; @@ -671,91 +668,6 @@ export interface StandAloneConf { */ IsBookingUnloadingEnabledForUnknownUsers: boolean; } -/** - * BookAppointment - * - * @generated from protobuf message api.BookAppointmentRequest - */ -export interface BookAppointmentRequest { - /** - * @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; - /** - * List of the orders and projects for which the appointment is made, with the quantities - * - * @generated from protobuf field: repeated api.Commission Commissions = 3 - */ - Commissions: Commission[]; - /** - * Set of segmentation constraining the slot booking - * - * @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4 - */ - SegmentationSelections: SegmentationSelection[]; - /** - * Carrier information metadata definition - * - * @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 14 - */ - CarrierInformation: MetadataElement[]; - /** - * The slot to book for the appointment - * - * @generated from protobuf field: repeated api.Slot Slots = 6 - */ - Slots: Slot[]; - /** - * TODO Need to add a structure to store platform user identifiers which can act on this appointment ? - * User mails being notified on this appointment - * - * @generated from protobuf field: repeated string Emails = 8 - */ - Emails: string[]; // The carrier identifier who requests to book the appointment - // string CarrierID = 9; - // The carrier name who requests to book the appointment - // string CarrierName = 10; - /** - * The appointment ID, usually generated using siteCounterServices - * - * @generated from protobuf field: string AppointmentID = 11 - */ - AppointmentID: string; - /** - * Acknowledgment of the site instructions - * - * @generated from protobuf field: bool InstructionAck = 12 - */ - InstructionAck: boolean; - /** - * @generated from protobuf field: string ActorID = 13 - */ - ActorID: string; // actor with which the siteID/project-depositID will be processed - /** - * @generated from protobuf field: repeated api.MetadataElement MetaData = 15 - */ - MetaData: MetadataElement[]; - /** - * @generated from protobuf field: string Reason = 16 - */ - Reason: string; - /** - * time zone, useful only if a WMS send a message - * - * @generated from protobuf field: string TimeZone = 17 - */ - TimeZone: string; - /** - * @generated from protobuf field: repeated api.CustomField CustomFields = 18 - */ - CustomFields: CustomField[]; -} /** * @generated from protobuf message api.GetBookingContextRequest */ @@ -828,172 +740,6 @@ export interface SegmentationsByType { */ Segmentations: SegmentationFilter[]; } -/** - * @generated from protobuf message api.BookAppointmentResponse - */ -export interface BookAppointmentResponse { - /** - * @generated from protobuf field: api.ResponseHeader Header = 2 - */ - Header?: ResponseHeader; - /** - * @generated from protobuf field: string AppointmentID = 1 - */ - AppointmentID: string; -} -/** - * CancelAppointment - * - * @generated from protobuf message api.CancelAppointmentRequest - */ -export interface CancelAppointmentRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string AppointmentID = 2 - */ - AppointmentID: string; - /** - * @generated from protobuf field: string ActorID = 3 - */ - ActorID: string; - /** - * @generated from protobuf field: repeated api.CustomField CustomFields = 4 - */ - CustomFields: CustomField[]; -} -/** - * @generated from protobuf message api.CancelAppointmentResponse - */ -export interface CancelAppointmentResponse { - /** - * @generated from protobuf field: api.ResponseHeader Header = 2 - */ - Header?: ResponseHeader; - /** - * @generated from protobuf field: string AppointmentID = 1 - */ - AppointmentID: string; -} -/** - * @generated from protobuf message api.RescheduleAppointmentRequest - */ -export interface RescheduleAppointmentRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; // using id of the project of type site - /** - * @generated from protobuf field: string AppointmentID = 2 - */ - AppointmentID: string; - /** - * The slots to book for the appointment - * - * @generated from protobuf field: repeated api.Slot Slots = 3 - */ - Slots: Slot[]; - /** - * @generated from protobuf field: string ActorID = 4 - */ - ActorID: string; -} -/** - * @generated from protobuf message api.UpdateAppointmentRequest - */ -export interface UpdateAppointmentRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string AppointmentID = 2 - */ - AppointmentID: string; - /** - * The slots to book for the appointment - * - * @generated from protobuf field: repeated api.Slot Slots = 3 - */ - Slots: Slot[]; - /** - * The new Commissions for the appointment - * - * @generated from protobuf field: repeated api.Commission Commissions = 4 - */ - Commissions: Commission[]; - /** - * @generated from protobuf field: string ActorID = 5 - */ - ActorID: string; // actor with which the siteID/project-depositID will be processed - /** - * @generated from protobuf field: repeated string Emails = 6 - */ - Emails: string[]; - /** - * In case of no reference, The Reason for which the appointment has no commissions - * - * @generated from protobuf field: string Reason = 7 - */ - Reason: string; - /** - * time zone, useful only if a WMS send a message - * - * @generated from protobuf field: string TimeZone = 8 - */ - TimeZone: string; - /** - * @generated from protobuf field: repeated api.CustomField CustomFields = 9 - */ - CustomFields: CustomField[]; -} -/** - * @generated from protobuf message api.WMSUpdateAppointmentRequest - */ -export interface WMSUpdateAppointmentRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * @generated from protobuf field: string AppointmentID = 2 - */ - AppointmentID: string; - /** - * The slots to book for the appointment - * - * @generated from protobuf field: repeated api.Slot Slots = 3 - */ - Slots: Slot[]; - /** - * The new Commissions for the appointment - * - * @generated from protobuf field: repeated api.WMSCommission Commissions = 4 - */ - Commissions: WMSCommission[]; - /** - * @generated from protobuf field: string ActorID = 5 - */ - ActorID: string; // actor with which the siteID/project-depositID will be processed - /** - * In case of no reference, The Reason for which the appointment has no commissions - * - * @generated from protobuf field: string Reason = 7 - */ - Reason: string; - /** - * time zone, useful only if a WMS send a message - * - * @generated from protobuf field: string TimeZone = 8 - */ - TimeZone: string; - /** - * @generated from protobuf field: repeated api.CustomField CustomFields = 9 - */ - CustomFields: CustomField[]; -} /** * @generated from protobuf message api.DeleteSettingsRequest */ @@ -1110,26 +856,6 @@ export interface ListOfSitesPerOrganisation { */ SegmentationsSettings: SegmentationsSetting[]; } -/** - * @deprecated - * @generated from protobuf message api.ListSitesAuthorizedForBookingRequest - */ -export interface ListSitesAuthorizedForBookingRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; -} -/** - * @deprecated - * @generated from protobuf message api.ListSitesAuthorizedForBookingResponse - */ -export interface ListSitesAuthorizedForBookingResponse { - /** - * @generated from protobuf field: repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1 - */ - ListOfSitesPerOrganisations: ListOfSitesPerOrganisation[]; -} /** * @generated from protobuf message api.SiteDescription */ @@ -3198,156 +2924,6 @@ class StandAloneConf$Type extends MessageType { */ export const StandAloneConf = new StandAloneConf$Type(); // @generated message type with reflection information, may provide speed optimized methods -class BookAppointmentRequest$Type extends MessageType { - constructor() { - super("api.BookAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, - { no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, - { no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, - { no: 14, 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: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, - { no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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\"]" } } }, - { no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, - { no: 12, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }, - { no: 13, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, - { no: 15, 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: 16, 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: 17, 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: 18, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Slots", "Commissions", "SegmentationSelections", "CarrierInformation", "ActorID", "Emails"] } } }); - } - create(value?: PartialMessage): BookAppointmentRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.AppointmentType = 0; - message.Commissions = []; - message.SegmentationSelections = []; - message.CarrierInformation = []; - message.Slots = []; - message.Emails = []; - message.AppointmentID = ""; - message.InstructionAck = false; - message.ActorID = ""; - message.MetaData = []; - message.Reason = ""; - message.TimeZone = ""; - message.CustomFields = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookAppointmentRequest): BookAppointmentRequest { - 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.Commission Commissions */ 3: - message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated api.SegmentationSelection SegmentationSelections */ 4: - message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated api.MetadataElement CarrierInformation */ 14: - message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated api.Slot Slots */ 6: - message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated string Emails */ 8: - message.Emails.push(reader.string()); - break; - case /* string AppointmentID */ 11: - message.AppointmentID = reader.string(); - break; - case /* bool InstructionAck */ 12: - message.InstructionAck = reader.bool(); - break; - case /* string ActorID */ 13: - message.ActorID = reader.string(); - break; - case /* repeated api.MetadataElement MetaData */ 15: - message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* string Reason */ 16: - message.Reason = reader.string(); - break; - case /* string TimeZone */ 17: - message.TimeZone = reader.string(); - break; - case /* repeated api.CustomField CustomFields */ 18: - message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options)); - 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: BookAppointmentRequest, 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.Commission Commissions = 3; */ - for (let i = 0; i < message.Commissions.length; i++) - Commission.internalBinaryWrite(message.Commissions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* 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(); - /* repeated api.Slot Slots = 6; */ - for (let i = 0; i < message.Slots.length; i++) - Slot.internalBinaryWrite(message.Slots[i], 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]); - /* string AppointmentID = 11; */ - if (message.AppointmentID !== "") - writer.tag(11, WireType.LengthDelimited).string(message.AppointmentID); - /* bool InstructionAck = 12; */ - if (message.InstructionAck !== false) - writer.tag(12, WireType.Varint).bool(message.InstructionAck); - /* string ActorID = 13; */ - if (message.ActorID !== "") - writer.tag(13, WireType.LengthDelimited).string(message.ActorID); - /* repeated api.MetadataElement CarrierInformation = 14; */ - for (let i = 0; i < message.CarrierInformation.length; i++) - MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.MetadataElement MetaData = 15; */ - for (let i = 0; i < message.MetaData.length; i++) - MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join(); - /* string Reason = 16; */ - if (message.Reason !== "") - writer.tag(16, WireType.LengthDelimited).string(message.Reason); - /* string TimeZone = 17; */ - if (message.TimeZone !== "") - writer.tag(17, WireType.LengthDelimited).string(message.TimeZone); - /* repeated api.CustomField CustomFields = 18; */ - for (let i = 0; i < message.CustomFields.length; i++) - CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(18, 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.BookAppointmentRequest - */ -export const BookAppointmentRequest = new BookAppointmentRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods class GetBookingContextRequest$Type extends MessageType { constructor() { super("api.GetBookingContextRequest", [ @@ -3606,466 +3182,6 @@ class SegmentationsByType$Type extends MessageType { */ export const SegmentationsByType = new SegmentationsByType$Type(); // @generated message type with reflection information, may provide speed optimized methods -class BookAppointmentResponse$Type extends MessageType { - constructor() { - super("api.BookAppointmentResponse", [ - { 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): BookAppointmentResponse { - 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?: BookAppointmentResponse): BookAppointmentResponse { - 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: BookAppointmentResponse, 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.BookAppointmentResponse - */ -export const BookAppointmentResponse = new BookAppointmentResponse$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CancelAppointmentRequest$Type extends MessageType { - constructor() { - super("api.CancelAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, - { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, - { no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } }); - } - create(value?: PartialMessage): CancelAppointmentRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.AppointmentID = ""; - message.ActorID = ""; - message.CustomFields = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CancelAppointmentRequest): CancelAppointmentRequest { - 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 /* string AppointmentID */ 2: - message.AppointmentID = reader.string(); - break; - case /* string ActorID */ 3: - message.ActorID = reader.string(); - break; - case /* repeated api.CustomField CustomFields */ 4: - message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options)); - 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: CancelAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1; */ - if (message.Header) - RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string AppointmentID = 2; */ - if (message.AppointmentID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID); - /* string ActorID = 3; */ - if (message.ActorID !== "") - writer.tag(3, WireType.LengthDelimited).string(message.ActorID); - /* repeated api.CustomField CustomFields = 4; */ - for (let i = 0; i < message.CustomFields.length; i++) - CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(4, 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.CancelAppointmentRequest - */ -export const CancelAppointmentRequest = new CancelAppointmentRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CancelAppointmentResponse$Type extends MessageType { - constructor() { - super("api.CancelAppointmentResponse", [ - { 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): CancelAppointmentResponse { - 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?: CancelAppointmentResponse): CancelAppointmentResponse { - 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: CancelAppointmentResponse, 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.CancelAppointmentResponse - */ -export const CancelAppointmentResponse = new CancelAppointmentResponse$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class RescheduleAppointmentRequest$Type extends MessageType { - constructor() { - super("api.RescheduleAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, - { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, - { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot }, - { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } }); - } - create(value?: PartialMessage): RescheduleAppointmentRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.AppointmentID = ""; - message.Slots = []; - message.ActorID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RescheduleAppointmentRequest): RescheduleAppointmentRequest { - 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 /* string AppointmentID */ 2: - message.AppointmentID = reader.string(); - break; - case /* repeated api.Slot Slots */ 3: - message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* string ActorID */ 4: - message.ActorID = 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: RescheduleAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1; */ - if (message.Header) - RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string AppointmentID = 2; */ - if (message.AppointmentID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID); - /* repeated api.Slot Slots = 3; */ - for (let i = 0; i < message.Slots.length; i++) - Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* string ActorID = 4; */ - if (message.ActorID !== "") - writer.tag(4, WireType.LengthDelimited).string(message.ActorID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.RescheduleAppointmentRequest - */ -export const RescheduleAppointmentRequest = new RescheduleAppointmentRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UpdateAppointmentRequest$Type extends MessageType { - constructor() { - super("api.UpdateAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, - { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, - { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, - { no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, - { no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, - { no: 7, 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: 8, 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: 9, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions", "ActorID", "Emails"] } } }); - } - create(value?: PartialMessage): UpdateAppointmentRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.AppointmentID = ""; - message.Slots = []; - message.Commissions = []; - message.ActorID = ""; - message.Emails = []; - message.Reason = ""; - message.TimeZone = ""; - message.CustomFields = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentRequest): UpdateAppointmentRequest { - 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 /* string AppointmentID */ 2: - message.AppointmentID = reader.string(); - break; - case /* repeated api.Slot Slots */ 3: - message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated api.Commission Commissions */ 4: - message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* string ActorID */ 5: - message.ActorID = reader.string(); - break; - case /* repeated string Emails */ 6: - message.Emails.push(reader.string()); - break; - case /* string Reason */ 7: - message.Reason = reader.string(); - break; - case /* string TimeZone */ 8: - message.TimeZone = reader.string(); - break; - case /* repeated api.CustomField CustomFields */ 9: - message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options)); - 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: UpdateAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1; */ - if (message.Header) - RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string AppointmentID = 2; */ - if (message.AppointmentID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID); - /* repeated api.Slot Slots = 3; */ - for (let i = 0; i < message.Slots.length; i++) - Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.Commission Commissions = 4; */ - for (let i = 0; i < message.Commissions.length; i++) - Commission.internalBinaryWrite(message.Commissions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* string ActorID = 5; */ - if (message.ActorID !== "") - writer.tag(5, WireType.LengthDelimited).string(message.ActorID); - /* repeated string Emails = 6; */ - for (let i = 0; i < message.Emails.length; i++) - writer.tag(6, WireType.LengthDelimited).string(message.Emails[i]); - /* string Reason = 7; */ - if (message.Reason !== "") - writer.tag(7, WireType.LengthDelimited).string(message.Reason); - /* string TimeZone = 8; */ - if (message.TimeZone !== "") - writer.tag(8, WireType.LengthDelimited).string(message.TimeZone); - /* repeated api.CustomField CustomFields = 9; */ - for (let i = 0; i < message.CustomFields.length; i++) - CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(9, 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.UpdateAppointmentRequest - */ -export const UpdateAppointmentRequest = new UpdateAppointmentRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class WMSUpdateAppointmentRequest$Type extends MessageType { - constructor() { - super("api.WMSUpdateAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, - { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, - { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, - { no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WMSCommission, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, - { no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, - { no: 7, 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" } } }, - { no: 8, 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: 9, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "ActorID"] } } }); - } - create(value?: PartialMessage): WMSUpdateAppointmentRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.AppointmentID = ""; - message.Slots = []; - message.Commissions = []; - message.ActorID = ""; - message.Reason = ""; - message.TimeZone = ""; - message.CustomFields = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSUpdateAppointmentRequest): WMSUpdateAppointmentRequest { - 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 /* string AppointmentID */ 2: - message.AppointmentID = reader.string(); - break; - case /* repeated api.Slot Slots */ 3: - message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated api.WMSCommission Commissions */ 4: - message.Commissions.push(WMSCommission.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* string ActorID */ 5: - message.ActorID = reader.string(); - break; - case /* string Reason */ 7: - message.Reason = reader.string(); - break; - case /* string TimeZone */ 8: - message.TimeZone = reader.string(); - break; - case /* repeated api.CustomField CustomFields */ 9: - message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options)); - 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: WMSUpdateAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1; */ - if (message.Header) - RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string AppointmentID = 2; */ - if (message.AppointmentID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID); - /* repeated api.Slot Slots = 3; */ - for (let i = 0; i < message.Slots.length; i++) - Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.WMSCommission Commissions = 4; */ - for (let i = 0; i < message.Commissions.length; i++) - WMSCommission.internalBinaryWrite(message.Commissions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* string ActorID = 5; */ - if (message.ActorID !== "") - writer.tag(5, WireType.LengthDelimited).string(message.ActorID); - /* string Reason = 7; */ - if (message.Reason !== "") - writer.tag(7, WireType.LengthDelimited).string(message.Reason); - /* string TimeZone = 8; */ - if (message.TimeZone !== "") - writer.tag(8, WireType.LengthDelimited).string(message.TimeZone); - /* repeated api.CustomField CustomFields = 9; */ - for (let i = 0; i < message.CustomFields.length; i++) - CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(9, 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.WMSUpdateAppointmentRequest - */ -export const WMSUpdateAppointmentRequest = new WMSUpdateAppointmentRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods class DeleteSettingsRequest$Type extends MessageType { constructor() { super("api.DeleteSettingsRequest", [ @@ -4491,101 +3607,6 @@ class ListOfSitesPerOrganisation$Type extends MessageType { - constructor() { - super("api.ListSitesAuthorizedForBookingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); - } - create(value?: PartialMessage): ListSitesAuthorizedForBookingRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingRequest): ListSitesAuthorizedForBookingRequest { - 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; - 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: ListSitesAuthorizedForBookingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1; */ - if (message.Header) - RequestProjectHeader.internalBinaryWrite(message.Header, 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; - } -} -/** - * @deprecated - * @generated MessageType for protobuf message api.ListSitesAuthorizedForBookingRequest - */ -export const ListSitesAuthorizedForBookingRequest = new ListSitesAuthorizedForBookingRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ListSitesAuthorizedForBookingResponse$Type extends MessageType { - constructor() { - super("api.ListSitesAuthorizedForBookingResponse", [ - { no: 1, name: "ListOfSitesPerOrganisations", kind: "message", localName: "ListOfSitesPerOrganisations", jsonName: "ListOfSitesPerOrganisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListOfSitesPerOrganisation } - ]); - } - create(value?: PartialMessage): ListSitesAuthorizedForBookingResponse { - const message = globalThis.Object.create((this.messagePrototype!)); - message.ListOfSitesPerOrganisations = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingResponse): ListSitesAuthorizedForBookingResponse { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations */ 1: - message.ListOfSitesPerOrganisations.push(ListOfSitesPerOrganisation.internalBinaryRead(reader, reader.uint32(), options)); - 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: ListSitesAuthorizedForBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1; */ - for (let i = 0; i < message.ListOfSitesPerOrganisations.length; i++) - ListOfSitesPerOrganisation.internalBinaryWrite(message.ListOfSitesPerOrganisations[i], 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; - } -} -/** - * @deprecated - * @generated MessageType for protobuf message api.ListSitesAuthorizedForBookingResponse - */ -export const ListSitesAuthorizedForBookingResponse = new ListSitesAuthorizedForBookingResponse$Type(); -// @generated message type with reflection information, may provide speed optimized methods class SiteDescription$Type extends MessageType { constructor() { super("api.SiteDescription", [ @@ -5781,24 +4802,11 @@ export const SiteService = new ServiceType("api.SiteService", [ { name: "DeletePhoto", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the photo of the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeletePhotoRequest, O: DeletePhotoResponse }, { name: "UploadInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace an instruction document on a site for a specific language.
Must be called using a multipart form-data content type request.
Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.SiteService/UploadInstructionDocument -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID -F DocID=myDocID -F LanguageCodeISO6391=en -F Name=myName -F AckRequired=False" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadInstructionDocumentRequest, O: UploadInstructionDocumentResponse }, { name: "DeleteInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete an instruction document on a site for a specific language. If no languages are specified, all the documents per language are removed" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteInstructionDocumentRequest, O: DeleteInstructionDocumentResponse }, - { name: "GetAvailableSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get available slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAvailableSlotsResponse }, - { name: "GetAllSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get all slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAllSlotsResponse }, { name: "CheckAppointmentCommission", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Check an appointment commision" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckAppointmentCommissionRequest, O: CheckAppointmentCommissionResponse }, - { name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse }, - { name: "BookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment without order references, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse }, - { name: "ForceBookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse }, - { name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelAppointmentRequest, O: CancelAppointmentResponse }, - { name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails), if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse }, - { name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails) without order references, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse }, - { name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails) even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse }, - { name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment from a wms even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSUpdateAppointmentRequest, O: BookAppointmentResponse }, - { name: "RescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, O: BookAppointmentResponse }, - { name: "ForceRescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Force Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, O: BookAppointmentResponse }, { name: "DeleteSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSettingsRequest, O: DeleteSettingsResult }, { name: "CreateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateSettingsRequest, O: CreateSettingsResponse }, { name: "GetUnits", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the Units of a site to display" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetUnitsRequest, O: GetUnitsResponse }, { name: "GetBasicSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the basic settings of a site to display" }, "api.rscType": "Project", "api.roles": "Platform.Site", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBasicSettingsRequest, O: GetBasicSettingsResponse }, - { name: "ListSitesAuthorizedForBooking", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List the sites allowing booking for a project" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListSitesAuthorizedForBookingRequest, O: ListSitesAuthorizedForBookingResponse }, { name: "ListAllowedSites", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List the sites allowing booking for a project" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListAllowedSitesRequest, O: ListAllowedSitesResponse }, { name: "GetActorAuthorisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the actor authorisation for a site" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetActorAuthorisationRequest, O: GetActorAuthorisationResponse }, { name: "GetBookingSegmentations", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the restricted segmentation for the current state of booking" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingSegmentationsRequest, O: GetBookingSegmentationsResponse },