Files
npm-core-sdk/site.ts
2025-09-22 09:42:45 +00:00

4129 lines
218 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "site.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 { QuantityByUnit } from "./slotbooking";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { SlotGroup } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { Commission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
import { FileDataRequest } from "./shared";
import { RequestSiteHeader } from "./shared";
import { WorkflowExecutionResult } from "./shared";
import { RequestOrganisationHeader } from "./shared";
import { CarrierInformation } from "./slotbooking";
import { Document } from "./slotbooking";
import { Instruction } from "./slotbooking";
import { CapacityRule } from "./slotbooking";
import { DurationRule } from "./slotbooking";
import { OpeningRule } from "./slotbooking";
import { Unit } from "./slotbooking";
import { ProjectAuthorisation } from "./slotbooking";
import { Segmentation } from "./slotbooking";
import { Address } from "./repositoryShared";
/**
* Message defining the structure of a Site.
*
* @generated from protobuf message api.Site
*/
export interface Site {
/**
* @generated from protobuf field: string ID = 1
*/
ID: string; // Unique identifier for the site. (formatted as such: "SITE_<OrganisationID>_<UUID>")
/**
* Name of the Site
*
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* Identifier for the organisation associated with the site.
*
* @generated from protobuf field: string OrganisationID = 3
*/
OrganisationID: string;
/**
* @generated from protobuf field: bool Active = 4
*/
Active: boolean; // If the Site is active or not
/**
* @generated from protobuf field: string PhotoURI = 5
*/
PhotoURI: string; // Link to a picture to display
/**
* @generated from protobuf field: api.Address Address = 6
*/
Address?: Address; // Address of the Site
/**
* @generated from protobuf field: repeated string Phones = 7
*/
Phones: string[];
/**
* @generated from protobuf field: string Fax = 8
*/
Fax: string;
/**
* List of Segmentations that segment the logistic site.
*
* @generated from protobuf field: repeated api.Segmentation Segmentations = 9
*/
Segmentations: Segmentation[];
/**
* List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with.
*
* @generated from protobuf field: repeated api.ProjectAuthorisation Authorisations = 10
*/
Authorisations: ProjectAuthorisation[];
/**
* List of containment units which will be used to estimate the needed time to load or unload.
*
* @generated from protobuf field: repeated api.Unit Units = 11
*/
Units: Unit[]; // après le champs
/**
* Definition of the opening rules. 2 opening rule definitions cannot overlap.
*
* @generated from protobuf field: repeated api.OpeningRule OpeningRules = 12
*/
OpeningRules: OpeningRule[];
/**
* Definition of the booking slot duration rules.
*
* @generated from protobuf field: repeated api.DurationRule DurationRules = 13
*/
DurationRules: DurationRule[];
/**
* Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied.
*
* @generated from protobuf field: repeated api.CapacityRule CapacityRules = 14
*/
CapacityRules: CapacityRule[];
/**
* @generated from protobuf field: api.Instruction Instruction = 15
*/
Instruction?: Instruction;
/**
* Set of instruction document, listing necessary equipment and such
*
* @generated from protobuf field: repeated api.Document InstructionDocuments = 16
*/
InstructionDocuments: Document[];
/**
* Set of required or optional information to ask when a slot is booked
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17
*/
CarrierInformation: CarrierInformation[];
/**
* Defines the rounded value to define booking period
*
* @generated from protobuf field: uint32 RoundedPeriodInMinutes = 18
*/
RoundedPeriodInMinutes: number;
/**
* Site Time zone
*
* @generated from protobuf field: string TimeZone = 19
*/
TimeZone: string;
/**
* Must be a valid email address
*
* @generated from protobuf field: repeated string Emails = 20
*/
Emails: string[];
/**
* Set the fallback language in case of missing translation
*
* @generated from protobuf field: string DefaultSiteLanguageISO6391 = 21
*/
DefaultSiteLanguageISO6391: string;
/**
* @generated from protobuf field: api.SiteStatusEnum status = 22
*/
status: SiteStatusEnum;
/**
* @generated from protobuf field: string PrefixAppointmentID = 23
*/
PrefixAppointmentID: string;
}
// ========== REQUESTS & RESPONSE MESSAGES ==========
/**
* Create
*
* @generated from protobuf message api.CreateSiteRequest
*/
export interface CreateSiteRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* Identifier of the new Site
*
* @generated from protobuf field: string SiteID = 2
*/
SiteID: string;
/**
* Name of the new Site, modifiable after creation
*
* @generated from protobuf field: string SiteName = 3
*/
SiteName: string;
/**
* Must be a valid email address from a user know to the platform
*
* @generated from protobuf field: string Email = 4
*/
Email: string;
}
/**
* @generated from protobuf message api.CreateSiteResponse
*/
export interface CreateSiteResponse {
/**
* @generated from protobuf field: api.Site Site = 1
*/
Site?: Site;
/**
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 2
*/
WorkflowExecution?: WorkflowExecutionResult;
}
/**
* Get
*
* @generated from protobuf message api.GetSiteRequest
*/
export interface GetSiteRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
}
/**
* @generated from protobuf message api.GetSiteResponse
*/
export interface GetSiteResponse {
/**
* @generated from protobuf field: api.Site Site = 1
*/
Site?: Site;
}
/**
* List
*
* @generated from protobuf message api.ListSiteRequest
*/
export interface ListSiteRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: api.FilterSite Filter = 2
*/
Filter?: FilterSite;
}
/**
* @generated from protobuf message api.FilterSite
*/
export interface FilterSite {
/**
* @generated from protobuf field: string Label = 1
*/
Label: string;
/**
* @generated from protobuf field: string Phone = 2
*/
Phone: string;
/**
* @generated from protobuf field: string Address = 3
*/
Address: string;
/**
* @generated from protobuf field: string Mail = 4
*/
Mail: string;
/**
* @generated from protobuf field: string City = 5
*/
City: string;
/**
* @generated from protobuf field: int32 Limit = 6
*/
Limit: number;
}
/**
* @generated from protobuf message api.ListSiteResponse
*/
export interface ListSiteResponse {
/**
* @generated from protobuf field: repeated api.Site Sites = 1
*/
Sites: Site[];
}
/**
* Update
*
* @generated from protobuf message api.UpdateSiteRequest
*/
export interface UpdateSiteRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* Name of the Site
*
* @generated from protobuf field: string Name = 3
*/
Name: string;
/**
* @generated from protobuf field: bool Active = 4
*/
Active: boolean; // If the Site is active or not
/**
* @generated from protobuf field: api.Address Address = 6
*/
Address?: Address; // address of the Site
/**
* @generated from protobuf field: repeated string Phones = 7
*/
Phones: string[];
/**
* @generated from protobuf field: string Fax = 8
*/
Fax: string;
/**
* List of Segmentations that segment the logistic site.
*
* @generated from protobuf field: repeated api.Segmentation Segmentations = 9
*/
Segmentations: Segmentation[];
/**
* List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with.
*
* @generated from protobuf field: repeated api.ProjectAuthorisation Authorisations = 10
*/
Authorisations: ProjectAuthorisation[];
/**
* @generated from protobuf field: repeated api.Unit Units = 11
*/
Units: Unit[]; // List of containment units which will be used to compute the appointment duration. At least one unit id is mandatory : APPOINTMENT_UNITID.
/**
* Definition of the opening rules. 2 opening rule definitions cannot overlap.
*
* @generated from protobuf field: repeated api.OpeningRule OpeningRules = 12
*/
OpeningRules: OpeningRule[];
/**
* Definition of the booking slot duration rules.
*
* @generated from protobuf field: repeated api.DurationRule DurationRules = 13
*/
DurationRules: DurationRule[];
/**
* Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied.
*
* @generated from protobuf field: repeated api.CapacityRule CapacityRules = 14
*/
CapacityRules: CapacityRule[];
/**
* @generated from protobuf field: api.Instruction Instruction = 15
*/
Instruction?: Instruction;
/**
* Set of required or optional information to ask when a slot is booked
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17
*/
CarrierInformation: CarrierInformation[];
/**
* Defines the rounded value of periods in minutes, must be greater than 0.
*
* @generated from protobuf field: uint32 RoundedPeriodInMinutes = 18
*/
RoundedPeriodInMinutes: number;
/**
* Add Site Time zone
*
* @generated from protobuf field: string TimeZone = 19
*/
TimeZone: string;
/**
* Must be a valid email address
*
* @generated from protobuf field: repeated string Emails = 20
*/
Emails: string[];
/**
* set the fallback language in case of missing translation
*
* @generated from protobuf field: string DefaultSiteLanguageISO6391 = 21
*/
DefaultSiteLanguageISO6391: string;
/**
* @generated from protobuf field: string PrefixAppointmentID = 22
*/
PrefixAppointmentID: string;
}
/**
* @generated from protobuf message api.UpdateSiteResponse
*/
export interface UpdateSiteResponse {
/**
* @generated from protobuf field: api.Site Site = 1
*/
Site?: Site;
}
/**
* Delete
*
* @generated from protobuf message api.DeleteSiteRequest
*/
export interface DeleteSiteRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
* @generated from protobuf message api.DeleteSiteResponse
*/
export interface DeleteSiteResponse {
/**
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1
*/
WorkflowExecution?: WorkflowExecutionResult;
}
/**
* Upload photo
*
* @generated from protobuf message api.UploadPhotoRequest
*/
export interface UploadPhotoRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.FileDataRequest File = 2
*/
File?: FileDataRequest;
}
/**
* @generated from protobuf message api.UploadPhotoResponse
*/
export interface UploadPhotoResponse {
/**
* @generated from protobuf field: string URI = 1
*/
URI: string;
}
/**
* Delete photo
*
* @generated from protobuf message api.DeletePhotoRequest
*/
export interface DeletePhotoRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
}
/**
* @generated from protobuf message api.DeletePhotoResponse
*/
export interface DeletePhotoResponse {
}
/**
* Upload document
*
* @generated from protobuf message api.UploadInstructionDocumentRequest
*/
export interface UploadInstructionDocumentRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.FileDataRequest File = 2
*/
File?: FileDataRequest;
/**
* @generated from protobuf field: string DocID = 3
*/
DocID: string;
/**
* @generated from protobuf field: string LanguageCodeISO6391 = 4
*/
LanguageCodeISO6391: string;
/**
* @generated from protobuf field: string Name = 5
*/
Name: string;
/**
* @generated from protobuf field: bool AckRequired = 6
*/
AckRequired: boolean;
}
/**
* @generated from protobuf message api.UploadInstructionDocumentResponse
*/
export interface UploadInstructionDocumentResponse {
/**
* @generated from protobuf field: string URI = 1
*/
URI: string;
}
/**
* Delete document
*
* @generated from protobuf message api.DeleteInstructionDocumentRequest
*/
export interface DeleteInstructionDocumentRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: string DocID = 2
*/
DocID: string;
/**
* @generated from protobuf field: string LanguageCodeISO6391 = 3
*/
LanguageCodeISO6391: string;
}
/**
* @generated from protobuf message api.DeleteInstructionDocumentResponse
*/
export interface DeleteInstructionDocumentResponse {
}
/**
* SuggestID
*
* @generated from protobuf message api.SuggestSiteIDRequest
*/
export interface SuggestSiteIDRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 3
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: string Name = 2
*/
Name: string;
}
/**
* @generated from protobuf message api.SuggestSiteIDResult
*/
export interface SuggestSiteIDResult {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
}
/**
* GetAvailableSlots
*
* @generated from protobuf message api.GetAvailableSlotsRequest
*/
export interface GetAvailableSlotsRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* Type of appointment : Expedition / Reception / 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[];
/**
* @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[];
}
/**
* @generated from protobuf message api.GetAvailableSlotsResponse
*/
export interface GetAvailableSlotsResponse {
/**
* @generated from protobuf field: repeated api.SlotGroup SlotGroups = 1
*/
SlotGroups: SlotGroup[]; // List of slot groups available for the current request
/**
* @generated from protobuf field: uint64 EstimatedNeededDurationInMinutes = 2
*/
EstimatedNeededDurationInMinutes: bigint; // Computed needed slot duration in minutes
}
/**
* @generated from protobuf message api.SlotGroupAndReason
*/
export interface SlotGroupAndReason {
/**
* @generated from protobuf field: api.SlotGroup SlotGroup = 1
*/
SlotGroup?: SlotGroup;
/**
* @generated from protobuf field: string Reason = 2
*/
Reason: string;
}
/**
* @generated from protobuf message api.GetAllSlotsResponse
*/
export interface GetAllSlotsResponse {
/**
* @generated from protobuf field: repeated api.SlotGroupAndReason SlotGroupAndReasons = 1
*/
SlotGroupAndReasons: SlotGroupAndReason[]; // List of slot groups and the reason of their status
/**
* @generated from protobuf field: uint64 EstimatedNeededDurationInMinutes = 2
*/
EstimatedNeededDurationInMinutes: bigint; // Computed needed slot duration in minutes
}
/**
* BookAppointment
*
* @generated from protobuf message api.BookAppointmentRequest
*/
export interface BookAppointmentRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* Type of appointment : Expedition / Reception / 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[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* 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
*
* @generated from protobuf field: string CarrierID = 9
*/
CarrierID: string;
/**
* The carrier name who requests to book the appointment
*
* @generated from protobuf field: string CarrierName = 10
*/
CarrierName: string;
/**
* 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;
}
/**
* BookAppointment
*
* @generated from protobuf message api.BookAppointmentNoReferenceRequest
*/
export interface BookAppointmentNoReferenceRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* Type of appointment : Expedition / Reception / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* Project for which the appointment is made, with the quantities
*
* @generated from protobuf field: string ProjectID = 3
*/
ProjectID: string;
/**
* quantities
*
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 4
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 5
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 6
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* The slot to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 7
*/
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
*
* @generated from protobuf field: string CarrierID = 9
*/
CarrierID: string;
/**
* The carrier name who requests to book the appointment
*
* @generated from protobuf field: string CarrierName = 10
*/
CarrierName: string;
/**
* The appointment ID, usually generated using siteCounterServices
*
* @generated from protobuf field: string AppointmentID = 11
*/
AppointmentID: string;
/**
* The Reason for which the appointment has no commissions
*
* @generated from protobuf field: string Reason = 12
*/
Reason: string;
/**
* Acknowledgment of the site instructions
*
* @generated from protobuf field: bool InstructionAck = 13
*/
InstructionAck: boolean;
}
/**
* BookAppointment
*
* @generated from protobuf message api.WMSBookAppointmentRequest
*/
export interface WMSBookAppointmentRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* Type of appointment : Expedition / Reception / 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[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* 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
*
* @generated from protobuf field: string CarrierID = 9
*/
CarrierID: string;
/**
* The carrier name who requests to book the appointment
*
* @generated from protobuf field: string CarrierName = 10
*/
CarrierName: string;
/**
* time zone, useful only if a WMS send a message
*
* @generated from protobuf field: string TimeZone = 11
*/
TimeZone: string;
/**
* The appointment ID, usually generated using siteCounterServices
*
* @generated from protobuf field: string AppointmentID = 12
*/
AppointmentID: string;
/**
* Acknowledgment of the site instructions
*
* @generated from protobuf field: bool InstructionAck = 13
*/
InstructionAck: boolean;
}
/**
* BookAppointment
*
* @generated from protobuf message api.WMSBookAppointmentNoReferenceRequest
*/
export interface WMSBookAppointmentNoReferenceRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* Type of appointment : Expedition / Reception / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* Project for which the appointment is made, with the quantities
*
* @generated from protobuf field: string ProjectID = 3
*/
ProjectID: string;
/**
* quantities
*
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 4
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 5
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 6
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* The slot to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 7
*/
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
*
* @generated from protobuf field: string CarrierID = 9
*/
CarrierID: string;
/**
* The carrier name who requests to book the appointment
*
* @generated from protobuf field: string CarrierName = 10
*/
CarrierName: string;
/**
* time zone, useful only if a WMS send a message
*
* @generated from protobuf field: string TimeZone = 11
*/
TimeZone: string;
/**
* The appointment ID, usually generated using siteCounterServices
*
* @generated from protobuf field: string AppointmentID = 12
*/
AppointmentID: string;
/**
* The Reason for which the appointment has no commissions
*
* @generated from protobuf field: string Reason = 13
*/
Reason: string;
/**
* Acknowledgment of the site instructions
*
* @generated from protobuf field: bool InstructionAck = 14
*/
InstructionAck: boolean;
}
/**
* @generated from protobuf message api.BookAppointmentResponse
*/
export interface BookAppointmentResponse {
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* CancelAppointment
*
* @generated from protobuf message api.CancelAppointmentRequest
*/
export interface CancelAppointmentRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: string AppointmentID = 2
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.CancelAppointmentResponse
*/
export interface CancelAppointmentResponse {
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.UpdateSlotAppointmentRequest
*/
export interface UpdateSlotAppointmentRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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[];
/**
* time zone, useful only if a WMS use this API
*
* @generated from protobuf field: string TimeZone = 4
*/
TimeZone: string;
}
/**
* @generated from protobuf message api.UpdateSlotAppointmentResponse
*/
export interface UpdateSlotAppointmentResponse {
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.UpdateCommissionsAppointmentRequest
*/
export interface UpdateCommissionsAppointmentRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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 modified Commissions for the appointment
*
* @generated from protobuf field: repeated api.Commission Commissions = 4
*/
Commissions: Commission[];
/**
* time zone, useful only if a WMS use this API
*
* @generated from protobuf field: string TimeZone = 5
*/
TimeZone: string;
}
/**
* @generated from protobuf message api.UpdateCommissionsAppointmentResponse
*/
export interface UpdateCommissionsAppointmentResponse {
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* ListUserSites
*
* @generated from protobuf message api.ListUserSitesRequest
*/
export interface ListUserSitesRequest {
/**
* TODO optional filter
*
* @generated from protobuf field: repeated string ProjectID = 1
*/
ProjectID: string[];
}
/**
* @generated from protobuf message api.ListUserSitesResponse
*/
export interface ListUserSitesResponse {
/**
* @generated from protobuf field: repeated api.Site Sites = 1
*/
Sites: Site[];
}
/**
* @generated from protobuf message api.UpdateSiteStatusRequest
*/
export interface UpdateSiteStatusRequest {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
/**
* @generated from protobuf field: api.SiteStatusEnum status = 2
*/
status: SiteStatusEnum;
}
/**
* @generated from protobuf message api.UpdateSiteStatusResult
*/
export interface UpdateSiteStatusResult {
/**
* @generated from protobuf field: api.SiteStatusEnum status = 1
*/
status: SiteStatusEnum;
}
/**
* @generated from protobuf message api.DeleteSiteInDBRequest
*/
export interface DeleteSiteInDBRequest {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
}
/**
* @generated from protobuf message api.DeleteSiteInDBResult
*/
export interface DeleteSiteInDBResult {
}
/**
* @generated from protobuf enum api.SiteStatusEnum
*/
export enum SiteStatusEnum {
/**
* @generated from protobuf enum value: SITE_STATUS_UNKNOWN = 0;
*/
SITE_STATUS_UNKNOWN = 0,
/**
* @generated from protobuf enum value: SITE_STATUS_PROVISIONNING = 1;
*/
SITE_STATUS_PROVISIONNING = 1,
/**
* @generated from protobuf enum value: SITE_STATUS_READY = 2;
*/
SITE_STATUS_READY = 2,
/**
* @generated from protobuf enum value: SITE_STATUS_DEPROVISIONNING = 3;
*/
SITE_STATUS_DEPROVISIONNING = 3,
/**
* @generated from protobuf enum value: SITE_STATUS_DEPROVISIONNED = 4;
*/
SITE_STATUS_DEPROVISIONNED = 4,
/**
* @generated from protobuf enum value: SITE_STATUS_ERROR = 5;
*/
SITE_STATUS_ERROR = 5
}
// @generated message type with reflection information, may provide speed optimized methods
class Site$Type extends MessageType<Site> {
constructor() {
super("api.Site", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 7, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\"]" } } },
{ no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
{ no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation },
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 12, name: "OpeningRules", kind: "message", localName: "OpeningRules", jsonName: "OpeningRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningRule },
{ no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule },
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/ },
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 22, name: "status", kind: "enum", T: () => ["api.SiteStatusEnum", SiteStatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } } } }
]);
}
create(value?: PartialMessage<Site>): Site {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.Name = "";
message.OrganisationID = "";
message.Active = false;
message.PhotoURI = "";
message.Phones = [];
message.Fax = "";
message.Segmentations = [];
message.Authorisations = [];
message.Units = [];
message.OpeningRules = [];
message.DurationRules = [];
message.CapacityRules = [];
message.InstructionDocuments = [];
message.CarrierInformation = [];
message.RoundedPeriodInMinutes = 0;
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
message.status = 0;
message.PrefixAppointmentID = "";
if (value !== undefined)
reflectionMergePartial<Site>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Site): Site {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ID */ 1:
message.ID = reader.string();
break;
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string OrganisationID */ 3:
message.OrganisationID = reader.string();
break;
case /* bool Active */ 4:
message.Active = reader.bool();
break;
case /* string PhotoURI */ 5:
message.PhotoURI = reader.string();
break;
case /* api.Address Address */ 6:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
case /* repeated string Phones */ 7:
message.Phones.push(reader.string());
break;
case /* string Fax */ 8:
message.Fax = reader.string();
break;
case /* repeated api.Segmentation Segmentations */ 9:
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.ProjectAuthorisation Authorisations */ 10:
message.Authorisations.push(ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Unit Units */ 11:
message.Units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.OpeningRule OpeningRules */ 12:
message.OpeningRules.push(OpeningRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.DurationRule DurationRules */ 13:
message.DurationRules.push(DurationRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CapacityRule CapacityRules */ 14:
message.CapacityRules.push(CapacityRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Instruction Instruction */ 15:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.Document InstructionDocuments */ 16:
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformation CarrierInformation */ 17:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 RoundedPeriodInMinutes */ 18:
message.RoundedPeriodInMinutes = reader.uint32();
break;
case /* string TimeZone */ 19:
message.TimeZone = reader.string();
break;
case /* repeated string Emails */ 20:
message.Emails.push(reader.string());
break;
case /* string DefaultSiteLanguageISO6391 */ 21:
message.DefaultSiteLanguageISO6391 = reader.string();
break;
case /* api.SiteStatusEnum status */ 22:
message.status = reader.int32();
break;
case /* string PrefixAppointmentID */ 23:
message.PrefixAppointmentID = 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: Site, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string OrganisationID = 3; */
if (message.OrganisationID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.OrganisationID);
/* bool Active = 4; */
if (message.Active !== false)
writer.tag(4, WireType.Varint).bool(message.Active);
/* string PhotoURI = 5; */
if (message.PhotoURI !== "")
writer.tag(5, WireType.LengthDelimited).string(message.PhotoURI);
/* api.Address Address = 6; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated string Phones = 7; */
for (let i = 0; i < message.Phones.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 8; */
if (message.Fax !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Fax);
/* repeated api.Segmentation Segmentations = 9; */
for (let i = 0; i < message.Segmentations.length; i++)
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ProjectAuthorisation Authorisations = 10; */
for (let i = 0; i < message.Authorisations.length; i++)
ProjectAuthorisation.internalBinaryWrite(message.Authorisations[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Unit Units = 11; */
for (let i = 0; i < message.Units.length; i++)
Unit.internalBinaryWrite(message.Units[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
/* repeated api.OpeningRule OpeningRules = 12; */
for (let i = 0; i < message.OpeningRules.length; i++)
OpeningRule.internalBinaryWrite(message.OpeningRules[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
/* repeated api.DurationRule DurationRules = 13; */
for (let i = 0; i < message.DurationRules.length; i++)
DurationRule.internalBinaryWrite(message.DurationRules[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CapacityRule CapacityRules = 14; */
for (let i = 0; i < message.CapacityRules.length; i++)
CapacityRule.internalBinaryWrite(message.CapacityRules[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
/* api.Instruction Instruction = 15; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Document InstructionDocuments = 16; */
for (let i = 0; i < message.InstructionDocuments.length; i++)
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformation CarrierInformation = 17; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
/* uint32 RoundedPeriodInMinutes = 18; */
if (message.RoundedPeriodInMinutes !== 0)
writer.tag(18, WireType.Varint).uint32(message.RoundedPeriodInMinutes);
/* string TimeZone = 19; */
if (message.TimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TimeZone);
/* repeated string Emails = 20; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(20, WireType.LengthDelimited).string(message.Emails[i]);
/* string DefaultSiteLanguageISO6391 = 21; */
if (message.DefaultSiteLanguageISO6391 !== "")
writer.tag(21, WireType.LengthDelimited).string(message.DefaultSiteLanguageISO6391);
/* api.SiteStatusEnum status = 22; */
if (message.status !== 0)
writer.tag(22, WireType.Varint).int32(message.status);
/* string PrefixAppointmentID = 23; */
if (message.PrefixAppointmentID !== "")
writer.tag(23, WireType.LengthDelimited).string(message.PrefixAppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Site
*/
export const Site = new Site$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateSiteRequest$Type extends MessageType<CreateSiteRequest> {
constructor() {
super("api.CreateSiteRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", email: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "SiteID", "Email", "SiteName"] } } });
}
create(value?: PartialMessage<CreateSiteRequest>): CreateSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
message.SiteName = "";
message.Email = "";
if (value !== undefined)
reflectionMergePartial<CreateSiteRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteRequest): CreateSiteRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string SiteID */ 2:
message.SiteID = reader.string();
break;
case /* string SiteName */ 3:
message.SiteName = reader.string();
break;
case /* string Email */ 4:
message.Email = 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: CreateSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string SiteID = 2; */
if (message.SiteID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.SiteID);
/* string SiteName = 3; */
if (message.SiteName !== "")
writer.tag(3, WireType.LengthDelimited).string(message.SiteName);
/* string Email = 4; */
if (message.Email !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Email);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CreateSiteRequest
*/
export const CreateSiteRequest = new CreateSiteRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateSiteResponse$Type extends MessageType<CreateSiteResponse> {
constructor() {
super("api.CreateSiteResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
]);
}
create(value?: PartialMessage<CreateSiteResponse>): CreateSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<CreateSiteResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSiteResponse): CreateSiteResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Site Site */ 1:
message.Site = Site.internalBinaryRead(reader, reader.uint32(), options, message.Site);
break;
case /* api.WorkflowExecutionResult WorkflowExecution */ 2:
message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution);
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: CreateSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Site Site = 1; */
if (message.Site)
Site.internalBinaryWrite(message.Site, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.WorkflowExecutionResult WorkflowExecution = 2; */
if (message.WorkflowExecution)
WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, 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.CreateSiteResponse
*/
export const CreateSiteResponse = new CreateSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSiteRequest$Type extends MessageType<GetSiteRequest> {
constructor() {
super("api.GetSiteRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetSiteRequest>): GetSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetSiteRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteRequest): GetSiteRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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: GetSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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;
}
}
/**
* @generated MessageType for protobuf message api.GetSiteRequest
*/
export const GetSiteRequest = new GetSiteRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSiteResponse$Type extends MessageType<GetSiteResponse> {
constructor() {
super("api.GetSiteResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "validate.rules": { message: { required: true } } } }
]);
}
create(value?: PartialMessage<GetSiteResponse>): GetSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetSiteResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteResponse): GetSiteResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Site Site */ 1:
message.Site = Site.internalBinaryRead(reader, reader.uint32(), options, message.Site);
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: GetSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Site Site = 1; */
if (message.Site)
Site.internalBinaryWrite(message.Site, 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.GetSiteResponse
*/
export const GetSiteResponse = new GetSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSiteRequest$Type extends MessageType<ListSiteRequest> {
constructor() {
super("api.ListSiteRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FilterSite }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListSiteRequest>): ListSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ListSiteRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteRequest): ListSiteRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FilterSite Filter */ 2:
message.Filter = FilterSite.internalBinaryRead(reader, reader.uint32(), options, message.Filter);
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: ListSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.FilterSite Filter = 2; */
if (message.Filter)
FilterSite.internalBinaryWrite(message.Filter, 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.ListSiteRequest
*/
export const ListSiteRequest = new ListSiteRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FilterSite$Type extends MessageType<FilterSite> {
constructor() {
super("api.FilterSite", [
{ no: 1, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Phone", kind: "scalar", localName: "Phone", jsonName: "Phone", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Address", kind: "scalar", localName: "Address", jsonName: "Address", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "City", kind: "scalar", localName: "City", jsonName: "City", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 5 /*ScalarType.INT32*/ }
]);
}
create(value?: PartialMessage<FilterSite>): FilterSite {
const message = globalThis.Object.create((this.messagePrototype!));
message.Label = "";
message.Phone = "";
message.Address = "";
message.Mail = "";
message.City = "";
message.Limit = 0;
if (value !== undefined)
reflectionMergePartial<FilterSite>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FilterSite): FilterSite {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Label */ 1:
message.Label = reader.string();
break;
case /* string Phone */ 2:
message.Phone = reader.string();
break;
case /* string Address */ 3:
message.Address = reader.string();
break;
case /* string Mail */ 4:
message.Mail = reader.string();
break;
case /* string City */ 5:
message.City = reader.string();
break;
case /* int32 Limit */ 6:
message.Limit = reader.int32();
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: FilterSite, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Label = 1; */
if (message.Label !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Label);
/* string Phone = 2; */
if (message.Phone !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Phone);
/* string Address = 3; */
if (message.Address !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Address);
/* string Mail = 4; */
if (message.Mail !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Mail);
/* string City = 5; */
if (message.City !== "")
writer.tag(5, WireType.LengthDelimited).string(message.City);
/* int32 Limit = 6; */
if (message.Limit !== 0)
writer.tag(6, WireType.Varint).int32(message.Limit);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.FilterSite
*/
export const FilterSite = new FilterSite$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSiteResponse$Type extends MessageType<ListSiteResponse> {
constructor() {
super("api.ListSiteResponse", [
{ no: 1, name: "Sites", kind: "message", localName: "Sites", jsonName: "Sites", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Site }
]);
}
create(value?: PartialMessage<ListSiteResponse>): ListSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Sites = [];
if (value !== undefined)
reflectionMergePartial<ListSiteResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSiteResponse): ListSiteResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Site Sites */ 1:
message.Sites.push(Site.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: ListSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Site Sites = 1; */
for (let i = 0; i < message.Sites.length; i++)
Site.internalBinaryWrite(message.Sites[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;
}
}
/**
* @generated MessageType for protobuf message api.ListSiteResponse
*/
export const ListSiteResponse = new ListSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
constructor() {
super("api.UpdateSiteRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 7, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\"]" } } },
{ no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
{ no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation },
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 12, name: "OpeningRules", kind: "message", localName: "OpeningRules", jsonName: "OpeningRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningRule },
{ no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule },
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { gt: 0 } } } },
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 22, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<UpdateSiteRequest>): UpdateSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Active = false;
message.Phones = [];
message.Fax = "";
message.Segmentations = [];
message.Authorisations = [];
message.Units = [];
message.OpeningRules = [];
message.DurationRules = [];
message.CapacityRules = [];
message.CarrierInformation = [];
message.RoundedPeriodInMinutes = 0;
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
message.PrefixAppointmentID = "";
if (value !== undefined)
reflectionMergePartial<UpdateSiteRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteRequest): UpdateSiteRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name */ 3:
message.Name = reader.string();
break;
case /* bool Active */ 4:
message.Active = reader.bool();
break;
case /* api.Address Address */ 6:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
case /* repeated string Phones */ 7:
message.Phones.push(reader.string());
break;
case /* string Fax */ 8:
message.Fax = reader.string();
break;
case /* repeated api.Segmentation Segmentations */ 9:
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.ProjectAuthorisation Authorisations */ 10:
message.Authorisations.push(ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Unit Units */ 11:
message.Units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.OpeningRule OpeningRules */ 12:
message.OpeningRules.push(OpeningRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.DurationRule DurationRules */ 13:
message.DurationRules.push(DurationRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CapacityRule CapacityRules */ 14:
message.CapacityRules.push(CapacityRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Instruction Instruction */ 15:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.CarrierInformation CarrierInformation */ 17:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 RoundedPeriodInMinutes */ 18:
message.RoundedPeriodInMinutes = reader.uint32();
break;
case /* string TimeZone */ 19:
message.TimeZone = reader.string();
break;
case /* repeated string Emails */ 20:
message.Emails.push(reader.string());
break;
case /* string DefaultSiteLanguageISO6391 */ 21:
message.DefaultSiteLanguageISO6391 = reader.string();
break;
case /* string PrefixAppointmentID */ 22:
message.PrefixAppointmentID = 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: UpdateSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Name = 3; */
if (message.Name !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Name);
/* bool Active = 4; */
if (message.Active !== false)
writer.tag(4, WireType.Varint).bool(message.Active);
/* api.Address Address = 6; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated string Phones = 7; */
for (let i = 0; i < message.Phones.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 8; */
if (message.Fax !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Fax);
/* repeated api.Segmentation Segmentations = 9; */
for (let i = 0; i < message.Segmentations.length; i++)
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ProjectAuthorisation Authorisations = 10; */
for (let i = 0; i < message.Authorisations.length; i++)
ProjectAuthorisation.internalBinaryWrite(message.Authorisations[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Unit Units = 11; */
for (let i = 0; i < message.Units.length; i++)
Unit.internalBinaryWrite(message.Units[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
/* repeated api.OpeningRule OpeningRules = 12; */
for (let i = 0; i < message.OpeningRules.length; i++)
OpeningRule.internalBinaryWrite(message.OpeningRules[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
/* repeated api.DurationRule DurationRules = 13; */
for (let i = 0; i < message.DurationRules.length; i++)
DurationRule.internalBinaryWrite(message.DurationRules[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CapacityRule CapacityRules = 14; */
for (let i = 0; i < message.CapacityRules.length; i++)
CapacityRule.internalBinaryWrite(message.CapacityRules[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
/* api.Instruction Instruction = 15; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformation CarrierInformation = 17; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
/* uint32 RoundedPeriodInMinutes = 18; */
if (message.RoundedPeriodInMinutes !== 0)
writer.tag(18, WireType.Varint).uint32(message.RoundedPeriodInMinutes);
/* string TimeZone = 19; */
if (message.TimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TimeZone);
/* repeated string Emails = 20; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(20, WireType.LengthDelimited).string(message.Emails[i]);
/* string DefaultSiteLanguageISO6391 = 21; */
if (message.DefaultSiteLanguageISO6391 !== "")
writer.tag(21, WireType.LengthDelimited).string(message.DefaultSiteLanguageISO6391);
/* string PrefixAppointmentID = 22; */
if (message.PrefixAppointmentID !== "")
writer.tag(22, WireType.LengthDelimited).string(message.PrefixAppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateSiteRequest
*/
export const UpdateSiteRequest = new UpdateSiteRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateSiteResponse$Type extends MessageType<UpdateSiteResponse> {
constructor() {
super("api.UpdateSiteResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "validate.rules": { message: { required: true } } } }
]);
}
create(value?: PartialMessage<UpdateSiteResponse>): UpdateSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<UpdateSiteResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteResponse): UpdateSiteResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Site Site */ 1:
message.Site = Site.internalBinaryRead(reader, reader.uint32(), options, message.Site);
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: UpdateSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Site Site = 1; */
if (message.Site)
Site.internalBinaryWrite(message.Site, 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.UpdateSiteResponse
*/
export const UpdateSiteResponse = new UpdateSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSiteRequest$Type extends MessageType<DeleteSiteRequest> {
constructor() {
super("api.DeleteSiteRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<DeleteSiteRequest>): DeleteSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
if (value !== undefined)
reflectionMergePartial<DeleteSiteRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteRequest): DeleteSiteRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ID */ 2:
message.ID = 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: DeleteSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteSiteRequest
*/
export const DeleteSiteRequest = new DeleteSiteRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSiteResponse$Type extends MessageType<DeleteSiteResponse> {
constructor() {
super("api.DeleteSiteResponse", [
{ no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
]);
}
create(value?: PartialMessage<DeleteSiteResponse>): DeleteSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteSiteResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteResponse): DeleteSiteResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.WorkflowExecutionResult WorkflowExecution */ 1:
message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution);
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: DeleteSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.WorkflowExecutionResult WorkflowExecution = 1; */
if (message.WorkflowExecution)
WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, 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.DeleteSiteResponse
*/
export const DeleteSiteResponse = new DeleteSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UploadPhotoRequest$Type extends MessageType<UploadPhotoRequest> {
constructor() {
super("api.UploadPhotoRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File"] } } });
}
create(value?: PartialMessage<UploadPhotoRequest>): UploadPhotoRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<UploadPhotoRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadPhotoRequest): UploadPhotoRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FileDataRequest File */ 2:
message.File = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.File);
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: UploadPhotoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.FileDataRequest File = 2; */
if (message.File)
FileDataRequest.internalBinaryWrite(message.File, 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.UploadPhotoRequest
*/
export const UploadPhotoRequest = new UploadPhotoRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UploadPhotoResponse$Type extends MessageType<UploadPhotoResponse> {
constructor() {
super("api.UploadPhotoResponse", [
{ no: 1, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<UploadPhotoResponse>): UploadPhotoResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.URI = "";
if (value !== undefined)
reflectionMergePartial<UploadPhotoResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadPhotoResponse): UploadPhotoResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string URI */ 1:
message.URI = 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: UploadPhotoResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string URI = 1; */
if (message.URI !== "")
writer.tag(1, WireType.LengthDelimited).string(message.URI);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UploadPhotoResponse
*/
export const UploadPhotoResponse = new UploadPhotoResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeletePhotoRequest$Type extends MessageType<DeletePhotoRequest> {
constructor() {
super("api.DeletePhotoRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<DeletePhotoRequest>): DeletePhotoRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeletePhotoRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePhotoRequest): DeletePhotoRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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: DeletePhotoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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;
}
}
/**
* @generated MessageType for protobuf message api.DeletePhotoRequest
*/
export const DeletePhotoRequest = new DeletePhotoRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeletePhotoResponse$Type extends MessageType<DeletePhotoResponse> {
constructor() {
super("api.DeletePhotoResponse", []);
}
create(value?: PartialMessage<DeletePhotoResponse>): DeletePhotoResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeletePhotoResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePhotoResponse): DeletePhotoResponse {
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: DeletePhotoResponse, 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.DeletePhotoResponse
*/
export const DeletePhotoResponse = new DeletePhotoResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UploadInstructionDocumentRequest$Type extends MessageType<UploadInstructionDocumentRequest> {
constructor() {
super("api.UploadInstructionDocumentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest },
{ no: 3, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 5, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "AckRequired", kind: "scalar", localName: "AckRequired", jsonName: "AckRequired", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DocID", "LanguageCodeISO6391"] } } });
}
create(value?: PartialMessage<UploadInstructionDocumentRequest>): UploadInstructionDocumentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.DocID = "";
message.LanguageCodeISO6391 = "";
message.Name = "";
message.AckRequired = false;
if (value !== undefined)
reflectionMergePartial<UploadInstructionDocumentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadInstructionDocumentRequest): UploadInstructionDocumentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FileDataRequest File */ 2:
message.File = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
case /* string DocID */ 3:
message.DocID = reader.string();
break;
case /* string LanguageCodeISO6391 */ 4:
message.LanguageCodeISO6391 = reader.string();
break;
case /* string Name */ 5:
message.Name = reader.string();
break;
case /* bool AckRequired */ 6:
message.AckRequired = 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: UploadInstructionDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.FileDataRequest File = 2; */
if (message.File)
FileDataRequest.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string DocID = 3; */
if (message.DocID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.DocID);
/* string LanguageCodeISO6391 = 4; */
if (message.LanguageCodeISO6391 !== "")
writer.tag(4, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
/* string Name = 5; */
if (message.Name !== "")
writer.tag(5, WireType.LengthDelimited).string(message.Name);
/* bool AckRequired = 6; */
if (message.AckRequired !== false)
writer.tag(6, WireType.Varint).bool(message.AckRequired);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UploadInstructionDocumentRequest
*/
export const UploadInstructionDocumentRequest = new UploadInstructionDocumentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UploadInstructionDocumentResponse$Type extends MessageType<UploadInstructionDocumentResponse> {
constructor() {
super("api.UploadInstructionDocumentResponse", [
{ no: 1, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<UploadInstructionDocumentResponse>): UploadInstructionDocumentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.URI = "";
if (value !== undefined)
reflectionMergePartial<UploadInstructionDocumentResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadInstructionDocumentResponse): UploadInstructionDocumentResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string URI */ 1:
message.URI = 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: UploadInstructionDocumentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string URI = 1; */
if (message.URI !== "")
writer.tag(1, WireType.LengthDelimited).string(message.URI);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UploadInstructionDocumentResponse
*/
export const UploadInstructionDocumentResponse = new UploadInstructionDocumentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteInstructionDocumentRequest$Type extends MessageType<DeleteInstructionDocumentRequest> {
constructor() {
super("api.DeleteInstructionDocumentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language. It can be omitted in order to delete all the documents per language", example: "\"en\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DocID"] } } });
}
create(value?: PartialMessage<DeleteInstructionDocumentRequest>): DeleteInstructionDocumentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.DocID = "";
message.LanguageCodeISO6391 = "";
if (value !== undefined)
reflectionMergePartial<DeleteInstructionDocumentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteInstructionDocumentRequest): DeleteInstructionDocumentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string DocID */ 2:
message.DocID = reader.string();
break;
case /* string LanguageCodeISO6391 */ 3:
message.LanguageCodeISO6391 = 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: DeleteInstructionDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string DocID = 2; */
if (message.DocID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.DocID);
/* string LanguageCodeISO6391 = 3; */
if (message.LanguageCodeISO6391 !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteInstructionDocumentRequest
*/
export const DeleteInstructionDocumentRequest = new DeleteInstructionDocumentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteInstructionDocumentResponse$Type extends MessageType<DeleteInstructionDocumentResponse> {
constructor() {
super("api.DeleteInstructionDocumentResponse", []);
}
create(value?: PartialMessage<DeleteInstructionDocumentResponse>): DeleteInstructionDocumentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteInstructionDocumentResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteInstructionDocumentResponse): DeleteInstructionDocumentResponse {
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: DeleteInstructionDocumentResponse, 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.DeleteInstructionDocumentResponse
*/
export const DeleteInstructionDocumentResponse = new DeleteInstructionDocumentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SuggestSiteIDRequest$Type extends MessageType<SuggestSiteIDRequest> {
constructor() {
super("api.SuggestSiteIDRequest", [
{ no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } });
}
create(value?: PartialMessage<SuggestSiteIDRequest>): SuggestSiteIDRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
if (value !== undefined)
reflectionMergePartial<SuggestSiteIDRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuggestSiteIDRequest): SuggestSiteIDRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 3:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name */ 2:
message.Name = 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: SuggestSiteIDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* api.RequestOrganisationHeader Header = 3; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, 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.SuggestSiteIDRequest
*/
export const SuggestSiteIDRequest = new SuggestSiteIDRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SuggestSiteIDResult$Type extends MessageType<SuggestSiteIDResult> {
constructor() {
super("api.SuggestSiteIDResult", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SuggestSiteIDResult>): SuggestSiteIDResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<SuggestSiteIDResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuggestSiteIDResult): SuggestSiteIDResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SiteID */ 1:
message.SiteID = 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: SuggestSiteIDResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SuggestSiteIDResult
*/
export const SuggestSiteIDResult = new SuggestSiteIDResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest> {
constructor() {
super("api.GetAvailableSlotsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ 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*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetAvailableSlotsRequest>): GetAvailableSlotsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.StartDate = "";
message.EndDate = "";
message.SkippedAppointmentIDs = [];
if (value !== undefined)
reflectionMergePartial<GetAvailableSlotsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAvailableSlotsRequest): GetAvailableSlotsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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 /* 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;
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: GetAvailableSlotsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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();
/* 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]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetAvailableSlotsRequest
*/
export const GetAvailableSlotsRequest = new GetAvailableSlotsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAvailableSlotsResponse$Type extends MessageType<GetAvailableSlotsResponse> {
constructor() {
super("api.GetAvailableSlotsResponse", [
{ no: 1, name: "SlotGroups", kind: "message", localName: "SlotGroups", jsonName: "SlotGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SlotGroup },
{ no: 2, name: "EstimatedNeededDurationInMinutes", kind: "scalar", localName: "EstimatedNeededDurationInMinutes", jsonName: "EstimatedNeededDurationInMinutes", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
]);
}
create(value?: PartialMessage<GetAvailableSlotsResponse>): GetAvailableSlotsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SlotGroups = [];
message.EstimatedNeededDurationInMinutes = 0n;
if (value !== undefined)
reflectionMergePartial<GetAvailableSlotsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAvailableSlotsResponse): GetAvailableSlotsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SlotGroup SlotGroups */ 1:
message.SlotGroups.push(SlotGroup.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: GetAvailableSlotsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SlotGroup SlotGroups = 1; */
for (let i = 0; i < message.SlotGroups.length; i++)
SlotGroup.internalBinaryWrite(message.SlotGroups[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.GetAvailableSlotsResponse
*/
export const GetAvailableSlotsResponse = new GetAvailableSlotsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SlotGroupAndReason$Type extends MessageType<SlotGroupAndReason> {
constructor() {
super("api.SlotGroupAndReason", [
{ no: 1, name: "SlotGroup", kind: "message", localName: "SlotGroup", jsonName: "SlotGroup", T: () => SlotGroup },
{ no: 2, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SlotGroupAndReason>): SlotGroupAndReason {
const message = globalThis.Object.create((this.messagePrototype!));
message.Reason = "";
if (value !== undefined)
reflectionMergePartial<SlotGroupAndReason>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SlotGroupAndReason): SlotGroupAndReason {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.SlotGroup SlotGroup */ 1:
message.SlotGroup = SlotGroup.internalBinaryRead(reader, reader.uint32(), options, message.SlotGroup);
break;
case /* string Reason */ 2:
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: SlotGroupAndReason, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.SlotGroup SlotGroup = 1; */
if (message.SlotGroup)
SlotGroup.internalBinaryWrite(message.SlotGroup, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Reason = 2; */
if (message.Reason !== "")
writer.tag(2, 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.SlotGroupAndReason
*/
export const SlotGroupAndReason = new SlotGroupAndReason$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAllSlotsResponse$Type extends MessageType<GetAllSlotsResponse> {
constructor() {
super("api.GetAllSlotsResponse", [
{ no: 1, name: "SlotGroupAndReasons", kind: "message", localName: "SlotGroupAndReasons", jsonName: "SlotGroupAndReasons", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SlotGroupAndReason },
{ no: 2, name: "EstimatedNeededDurationInMinutes", kind: "scalar", localName: "EstimatedNeededDurationInMinutes", jsonName: "EstimatedNeededDurationInMinutes", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
]);
}
create(value?: PartialMessage<GetAllSlotsResponse>): GetAllSlotsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SlotGroupAndReasons = [];
message.EstimatedNeededDurationInMinutes = 0n;
if (value !== undefined)
reflectionMergePartial<GetAllSlotsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAllSlotsResponse): GetAllSlotsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SlotGroupAndReason SlotGroupAndReasons */ 1:
message.SlotGroupAndReasons.push(SlotGroupAndReason.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: GetAllSlotsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SlotGroupAndReason SlotGroupAndReasons = 1; */
for (let i = 0; i < message.SlotGroupAndReasons.length; i++)
SlotGroupAndReason.internalBinaryWrite(message.SlotGroupAndReasons[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.GetAllSlotsResponse
*/
export const GetAllSlotsResponse = new GetAllSlotsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
constructor() {
super("api.BookAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ 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\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } },
{ no: 12, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "Segmentations", "CarrierInformation"] } } });
}
create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
message.CarrierName = "";
message.AppointmentID = "";
message.InstructionAck = false;
if (value !== undefined)
reflectionMergePartial<BookAppointmentRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.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 CarrierID */ 9:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 10:
message.CarrierName = reader.string();
break;
case /* string AppointmentID */ 11:
message.AppointmentID = reader.string();
break;
case /* bool InstructionAck */ 12:
message.InstructionAck = 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: BookAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, 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 CarrierID = 9; */
if (message.CarrierID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 10; */
if (message.CarrierName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
/* 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);
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 BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointmentNoReferenceRequest> {
constructor() {
super("api.BookAppointmentNoReferenceRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 5, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 6, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 7, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ 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\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "ProjectID", "Quantities", "Segmentations", "CarrierInformation"] } } });
}
create(value?: PartialMessage<BookAppointmentNoReferenceRequest>): BookAppointmentNoReferenceRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.ProjectID = "";
message.Quantities = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
message.CarrierName = "";
message.AppointmentID = "";
message.Reason = "";
message.InstructionAck = false;
if (value !== undefined)
reflectionMergePartial<BookAppointmentNoReferenceRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookAppointmentNoReferenceRequest): BookAppointmentNoReferenceRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.AppointmentType AppointmentType */ 2:
message.AppointmentType = reader.int32();
break;
case /* string ProjectID */ 3:
message.ProjectID = reader.string();
break;
case /* repeated api.QuantityByUnit Quantities */ 4:
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationSelection SegmentationSelections */ 5:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 6:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 7:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string Emails */ 8:
message.Emails.push(reader.string());
break;
case /* string CarrierID */ 9:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 10:
message.CarrierName = reader.string();
break;
case /* string AppointmentID */ 11:
message.AppointmentID = reader.string();
break;
case /* string Reason */ 12:
message.Reason = reader.string();
break;
case /* bool InstructionAck */ 13:
message.InstructionAck = 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: BookAppointmentNoReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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);
/* string ProjectID = 3; */
if (message.ProjectID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
/* repeated api.QuantityByUnit Quantities = 4; */
for (let i = 0; i < message.Quantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationSelection SegmentationSelections = 5; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 6; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 7; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(7, 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 CarrierID = 9; */
if (message.CarrierID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 10; */
if (message.CarrierName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
/* string AppointmentID = 11; */
if (message.AppointmentID !== "")
writer.tag(11, WireType.LengthDelimited).string(message.AppointmentID);
/* string Reason = 12; */
if (message.Reason !== "")
writer.tag(12, WireType.LengthDelimited).string(message.Reason);
/* bool InstructionAck = 13; */
if (message.InstructionAck !== false)
writer.tag(13, WireType.Varint).bool(message.InstructionAck);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.BookAppointmentNoReferenceRequest
*/
export const BookAppointmentNoReferenceRequest = new BookAppointmentNoReferenceRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WMSBookAppointmentRequest$Type extends MessageType<WMSBookAppointmentRequest> {
constructor() {
super("api.WMSBookAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ 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\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "Segmentations", "CarrierInformation", "TimeZone"] } } });
}
create(value?: PartialMessage<WMSBookAppointmentRequest>): WMSBookAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
message.CarrierName = "";
message.TimeZone = "";
message.AppointmentID = "";
message.InstructionAck = false;
if (value !== undefined)
reflectionMergePartial<WMSBookAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSBookAppointmentRequest): WMSBookAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.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 CarrierID */ 9:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 10:
message.CarrierName = reader.string();
break;
case /* string TimeZone */ 11:
message.TimeZone = reader.string();
break;
case /* string AppointmentID */ 12:
message.AppointmentID = reader.string();
break;
case /* bool InstructionAck */ 13:
message.InstructionAck = 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: WMSBookAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, 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 CarrierID = 9; */
if (message.CarrierID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 10; */
if (message.CarrierName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
/* string TimeZone = 11; */
if (message.TimeZone !== "")
writer.tag(11, WireType.LengthDelimited).string(message.TimeZone);
/* string AppointmentID = 12; */
if (message.AppointmentID !== "")
writer.tag(12, WireType.LengthDelimited).string(message.AppointmentID);
/* bool InstructionAck = 13; */
if (message.InstructionAck !== false)
writer.tag(13, WireType.Varint).bool(message.InstructionAck);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.WMSBookAppointmentRequest
*/
export const WMSBookAppointmentRequest = new WMSBookAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WMSBookAppointmentNoReferenceRequest$Type extends MessageType<WMSBookAppointmentNoReferenceRequest> {
constructor() {
super("api.WMSBookAppointmentNoReferenceRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 5, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 6, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 7, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ 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\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 14, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "ProjectID", "Quantities", "Segmentations", "CarrierInformation", "TimeZone"] } } });
}
create(value?: PartialMessage<WMSBookAppointmentNoReferenceRequest>): WMSBookAppointmentNoReferenceRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.ProjectID = "";
message.Quantities = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
message.CarrierName = "";
message.TimeZone = "";
message.AppointmentID = "";
message.Reason = "";
message.InstructionAck = false;
if (value !== undefined)
reflectionMergePartial<WMSBookAppointmentNoReferenceRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSBookAppointmentNoReferenceRequest): WMSBookAppointmentNoReferenceRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.AppointmentType AppointmentType */ 2:
message.AppointmentType = reader.int32();
break;
case /* string ProjectID */ 3:
message.ProjectID = reader.string();
break;
case /* repeated api.QuantityByUnit Quantities */ 4:
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationSelection SegmentationSelections */ 5:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 6:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 7:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string Emails */ 8:
message.Emails.push(reader.string());
break;
case /* string CarrierID */ 9:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 10:
message.CarrierName = reader.string();
break;
case /* string TimeZone */ 11:
message.TimeZone = reader.string();
break;
case /* string AppointmentID */ 12:
message.AppointmentID = reader.string();
break;
case /* string Reason */ 13:
message.Reason = reader.string();
break;
case /* bool InstructionAck */ 14:
message.InstructionAck = 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: WMSBookAppointmentNoReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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);
/* string ProjectID = 3; */
if (message.ProjectID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
/* repeated api.QuantityByUnit Quantities = 4; */
for (let i = 0; i < message.Quantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationSelection SegmentationSelections = 5; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 6; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 7; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(7, 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 CarrierID = 9; */
if (message.CarrierID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 10; */
if (message.CarrierName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
/* string TimeZone = 11; */
if (message.TimeZone !== "")
writer.tag(11, WireType.LengthDelimited).string(message.TimeZone);
/* string AppointmentID = 12; */
if (message.AppointmentID !== "")
writer.tag(12, WireType.LengthDelimited).string(message.AppointmentID);
/* string Reason = 13; */
if (message.Reason !== "")
writer.tag(13, WireType.LengthDelimited).string(message.Reason);
/* bool InstructionAck = 14; */
if (message.InstructionAck !== false)
writer.tag(14, WireType.Varint).bool(message.InstructionAck);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.WMSBookAppointmentNoReferenceRequest
*/
export const WMSBookAppointmentNoReferenceRequest = new WMSBookAppointmentNoReferenceRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookAppointmentResponse$Type extends MessageType<BookAppointmentResponse> {
constructor() {
super("api.BookAppointmentResponse", [
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<BookAppointmentResponse>): BookAppointmentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<BookAppointmentResponse>(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 /* 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);
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<CancelAppointmentRequest> {
constructor() {
super("api.CancelAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ 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: ["Header", "AppointmentID"] } } });
}
create(value?: PartialMessage<CancelAppointmentRequest>): CancelAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<CancelAppointmentRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
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: CancelAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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);
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<CancelAppointmentResponse> {
constructor() {
super("api.CancelAppointmentResponse", [
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CancelAppointmentResponse>): CancelAppointmentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<CancelAppointmentResponse>(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 /* 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);
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 UpdateSlotAppointmentRequest$Type extends MessageType<UpdateSlotAppointmentRequest> {
constructor() {
super("api.UpdateSlotAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 4, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
}
create(value?: PartialMessage<UpdateSlotAppointmentRequest>): UpdateSlotAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.TimeZone = "";
if (value !== undefined)
reflectionMergePartial<UpdateSlotAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSlotAppointmentRequest): UpdateSlotAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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 TimeZone */ 4:
message.TimeZone = 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: UpdateSlotAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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 TimeZone = 4; */
if (message.TimeZone !== "")
writer.tag(4, WireType.LengthDelimited).string(message.TimeZone);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateSlotAppointmentRequest
*/
export const UpdateSlotAppointmentRequest = new UpdateSlotAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateSlotAppointmentResponse$Type extends MessageType<UpdateSlotAppointmentResponse> {
constructor() {
super("api.UpdateSlotAppointmentResponse", [
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<UpdateSlotAppointmentResponse>): UpdateSlotAppointmentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<UpdateSlotAppointmentResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSlotAppointmentResponse): UpdateSlotAppointmentResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: UpdateSlotAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AppointmentID = 1; */
if (message.AppointmentID !== "")
writer.tag(1, 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.UpdateSlotAppointmentResponse
*/
export const UpdateSlotAppointmentResponse = new UpdateSlotAppointmentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateCommissionsAppointmentRequest$Type extends MessageType<UpdateCommissionsAppointmentRequest> {
constructor() {
super("api.UpdateCommissionsAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 5, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions"] } } });
}
create(value?: PartialMessage<UpdateCommissionsAppointmentRequest>): UpdateCommissionsAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.Commissions = [];
message.TimeZone = "";
if (value !== undefined)
reflectionMergePartial<UpdateCommissionsAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCommissionsAppointmentRequest): UpdateCommissionsAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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 TimeZone */ 5:
message.TimeZone = 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: UpdateCommissionsAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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 TimeZone = 5; */
if (message.TimeZone !== "")
writer.tag(5, WireType.LengthDelimited).string(message.TimeZone);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateCommissionsAppointmentRequest
*/
export const UpdateCommissionsAppointmentRequest = new UpdateCommissionsAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateCommissionsAppointmentResponse$Type extends MessageType<UpdateCommissionsAppointmentResponse> {
constructor() {
super("api.UpdateCommissionsAppointmentResponse", [
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<UpdateCommissionsAppointmentResponse>): UpdateCommissionsAppointmentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<UpdateCommissionsAppointmentResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCommissionsAppointmentResponse): UpdateCommissionsAppointmentResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: UpdateCommissionsAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AppointmentID = 1; */
if (message.AppointmentID !== "")
writer.tag(1, 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.UpdateCommissionsAppointmentResponse
*/
export const UpdateCommissionsAppointmentResponse = new UpdateCommissionsAppointmentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserSitesRequest$Type extends MessageType<ListUserSitesRequest> {
constructor() {
super("api.ListUserSitesRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { minLen: "1" } } } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": {} });
}
create(value?: PartialMessage<ListUserSitesRequest>): ListUserSitesRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = [];
if (value !== undefined)
reflectionMergePartial<ListUserSitesRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUserSitesRequest): ListUserSitesRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string ProjectID */ 1:
message.ProjectID.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: ListUserSitesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string ProjectID = 1; */
for (let i = 0; i < message.ProjectID.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID[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.ListUserSitesRequest
*/
export const ListUserSitesRequest = new ListUserSitesRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserSitesResponse$Type extends MessageType<ListUserSitesResponse> {
constructor() {
super("api.ListUserSitesResponse", [
{ no: 1, name: "Sites", kind: "message", localName: "Sites", jsonName: "Sites", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Site }
]);
}
create(value?: PartialMessage<ListUserSitesResponse>): ListUserSitesResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Sites = [];
if (value !== undefined)
reflectionMergePartial<ListUserSitesResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUserSitesResponse): ListUserSitesResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Site Sites */ 1:
message.Sites.push(Site.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: ListUserSitesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Site Sites = 1; */
for (let i = 0; i < message.Sites.length; i++)
Site.internalBinaryWrite(message.Sites[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;
}
}
/**
* @generated MessageType for protobuf message api.ListUserSitesResponse
*/
export const ListUserSitesResponse = new ListUserSitesResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateSiteStatusRequest$Type extends MessageType<UpdateSiteStatusRequest> {
constructor() {
super("api.UpdateSiteStatusRequest", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "status", kind: "enum", T: () => ["api.SiteStatusEnum", SiteStatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
}
create(value?: PartialMessage<UpdateSiteStatusRequest>): UpdateSiteStatusRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
message.status = 0;
if (value !== undefined)
reflectionMergePartial<UpdateSiteStatusRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteStatusRequest): UpdateSiteStatusRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SiteID */ 1:
message.SiteID = reader.string();
break;
case /* api.SiteStatusEnum status */ 2:
message.status = reader.int32();
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: UpdateSiteStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
/* api.SiteStatusEnum status = 2; */
if (message.status !== 0)
writer.tag(2, WireType.Varint).int32(message.status);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateSiteStatusRequest
*/
export const UpdateSiteStatusRequest = new UpdateSiteStatusRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateSiteStatusResult$Type extends MessageType<UpdateSiteStatusResult> {
constructor() {
super("api.UpdateSiteStatusResult", [
{ no: 1, name: "status", kind: "enum", T: () => ["api.SiteStatusEnum", SiteStatusEnum] }
]);
}
create(value?: PartialMessage<UpdateSiteStatusResult>): UpdateSiteStatusResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.status = 0;
if (value !== undefined)
reflectionMergePartial<UpdateSiteStatusResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteStatusResult): UpdateSiteStatusResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.SiteStatusEnum status */ 1:
message.status = reader.int32();
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: UpdateSiteStatusResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.SiteStatusEnum status = 1; */
if (message.status !== 0)
writer.tag(1, WireType.Varint).int32(message.status);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateSiteStatusResult
*/
export const UpdateSiteStatusResult = new UpdateSiteStatusResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSiteInDBRequest$Type extends MessageType<DeleteSiteInDBRequest> {
constructor() {
super("api.DeleteSiteInDBRequest", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
}
create(value?: PartialMessage<DeleteSiteInDBRequest>): DeleteSiteInDBRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<DeleteSiteInDBRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteInDBRequest): DeleteSiteInDBRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SiteID */ 1:
message.SiteID = 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: DeleteSiteInDBRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteSiteInDBRequest
*/
export const DeleteSiteInDBRequest = new DeleteSiteInDBRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSiteInDBResult$Type extends MessageType<DeleteSiteInDBResult> {
constructor() {
super("api.DeleteSiteInDBResult", []);
}
create(value?: PartialMessage<DeleteSiteInDBResult>): DeleteSiteInDBResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteSiteInDBResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSiteInDBResult): DeleteSiteInDBResult {
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: DeleteSiteInDBResult, 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.DeleteSiteInDBResult
*/
export const DeleteSiteInDBResult = new DeleteSiteInDBResult$Type();
/**
* @generated ServiceType for protobuf service api.SiteService
*/
export const SiteService = new ServiceType("api.SiteService", [
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Create a site" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateSiteRequest, O: CreateSiteResponse },
{ name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get a site" }, "api.rscType": "Site", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteRequest, O: GetSiteResponse },
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List site of an organisation" }, "api.rscType": "Organisation", "api.roles": "Platform.Site", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ListSiteRequest, O: ListSiteResponse },
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update a site" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSiteRequest, O: UpdateSiteResponse },
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete a site" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteSiteRequest, O: DeleteSiteResponse },
{ name: "UploadPhoto", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace the photo of the site. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.SiteService/UploadPhoto -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadPhotoRequest, O: UploadPhotoResponse },
{ name: "DeletePhoto", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the photo of the site." }, "api.rscType": "Site", "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. <br>Must be called using a multipart form-data content type request. <br> 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": "Site", "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": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteInstructionDocumentRequest, O: DeleteInstructionDocumentResponse },
{ name: "SuggestID", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Suggest a site ID" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SuggestSiteIDRequest, O: SuggestSiteIDResult },
{ 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": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "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": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAllSlotsResponse },
{ name: "ListUserSites", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List sites authorized for a user according to its permissions." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserSitesRequest, O: ListUserSitesResponse },
{ name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site, if the requested slots are available." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "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 on the site without checking if the slots are available." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
{ name: "WMSForceBookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site without checking if the slots are available, should not be called by human user." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSBookAppointmentRequest, O: BookAppointmentResponse },
{ name: "BookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site, if the requested slots are available." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
{ name: "ForceBookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site without checking if the slots are available." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
{ name: "WMSForceBookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site without checking if the slots are available, should not be called by human user." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSBookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Cancel an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelAppointmentRequest, O: CancelAppointmentResponse },
{ name: "UpdateSlotAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot on an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSlotAppointmentRequest, O: UpdateSlotAppointmentResponse },
{ name: "UpdateCommissionsAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot and commissions on an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateCommissionsAppointmentRequest, O: UpdateCommissionsAppointmentResponse },
{ name: "UpdateStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update site status" }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSiteStatusRequest, O: UpdateSiteStatusResult },
{ name: "DeleteSiteInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSiteInDBRequest, O: DeleteSiteInDBResult }
], { "api.k8sService": "core-site" });