Files
npm-core-sdk/site.ts
2026-05-27 12:07:54 +00:00

5719 lines
306 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 { CommandIdentifierEntry } from "./slotbooking";
import { AppointmentContent } from "./slotbooking";
import { Period } from "./shared";
import { WMSCommission } from "./slotbooking";
import { SegmentationFilter } from "./slotbooking";
import { PrjMetadata } from "./metadatadef";
import { CustomField } from "./shared";
import { Slot } from "./slotbooking";
import { ResponseHeader } from "./shared";
import { AppointmentCommission } from "./slotbooking";
import { SlotGroupAndReason } from "./slotbooking";
import { SlotGroup } from "./slotbooking";
import { MetadataElement } from "./shared";
import { SegmentationSelection } from "./slotbooking";
import { Commission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
import { FileDataRequest } from "./shared";
import { RequestProjectHeader } from "./shared";
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
// repeated CarrierInformation CarrierInformation = 17;
/**
* 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;
// SiteStatusEnum status = 22
// [
// (n1validate.rules).enum.defined_only = true
// ];
/**
* @generated from protobuf field: string PrefixAppointmentID = 23
*/
PrefixAppointmentID: string;
/**
* standAlone mode configuration
*
* @generated from protobuf field: api.StandAloneConf StandAloneConf = 24
*/
StandAloneConf?: StandAloneConf;
}
// ========== REQUESTS & RESPONSE MESSAGES ==========
/**
* Create
*
* @generated from protobuf message api.CreateSettingsRequest
*/
export interface CreateSettingsRequest {
/**
* Identifier of the organisation
*
* @generated from protobuf field: string OrganisationID = 1
*/
OrganisationID: string;
/**
* 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.CreateSettingsResponse
*/
export interface CreateSettingsResponse {
/**
* @generated from protobuf field: api.Site Site = 1
*/
Site?: Site;
}
/**
* Get
*
* @generated from protobuf message api.GetSettingsRequest
*/
export interface GetSettingsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* List
*
* @generated from protobuf message api.ListSettingsRequest
*/
export interface ListSettingsRequest {
}
/**
* @generated from protobuf message api.GetSettingsResponse
*/
export interface GetSettingsResponse {
/**
* @generated from protobuf field: api.Site Site = 1
*/
Site?: Site;
}
/**
* @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.ListSettingsResponse
*/
export interface ListSettingsResponse {
/**
* @generated from protobuf field: repeated api.Site Sites = 1
*/
Sites: Site[];
}
/**
* Update
*
* @generated from protobuf message api.UpdateSettingsRequest
*/
export interface UpdateSettingsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* 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.
*
* @deprecated
* @generated from protobuf field: repeated api.Segmentation Segmentations = 9 [deprecated = true]
*/
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[];
/**
* @deprecated
* @generated from protobuf field: repeated api.Unit Units = 11 [deprecated = true]
*/
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
// repeated CarrierInformation CarrierInformation = 17;
/**
* 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;
/**
* standAlone mode configuration
*
* @generated from protobuf field: api.StandAloneConf StandAloneConf = 23
*/
StandAloneConf?: StandAloneConf;
}
/**
* @generated from protobuf message api.UpdateSettingsResponse
*/
export interface UpdateSettingsResponse {
/**
* @generated from protobuf field: api.Site Site = 1
*/
Site?: Site;
}
/**
* Upload photo
*
* @generated from protobuf message api.UploadPhotoRequest
*/
export interface UploadPhotoRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @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.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* @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.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @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.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @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 {
}
/**
* GetAvailableSlots
*
* @generated from protobuf message api.GetAvailableSlotsRequest
*/
export interface GetAvailableSlotsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Loading / Unloading / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* List of the orders and projects for which the appointment is made, with the quantities
*
* @generated from protobuf field: repeated api.Commission Commissions = 3
*/
Commissions: Commission[];
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* @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 field: string ActorID = 8
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
/**
* Carrier information metadata
*
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 9
*/
CarrierInformation: MetadataElement[];
/**
* @generated from protobuf field: repeated api.MetadataElement MetaData = 10
*/
MetaData: MetadataElement[];
}
/**
* @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.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
}
/**
* CheckAppointmentCommission
*
* @generated from protobuf message api.CheckAppointmentCommissionRequest
*/
export interface CheckAppointmentCommissionRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Loading / Unloading / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* Definition of the commission to check
*
* @deprecated
* @generated from protobuf field: api.Commission Commission = 3 [deprecated = true]
*/
Commission?: Commission;
/**
* actor with which the siteID/project-depositID will be processed
*
* @deprecated
* @generated from protobuf field: string ActorID = 4 [deprecated = true]
*/
ActorID: string;
/**
* Definition of the commission to check
*
* @generated from protobuf field: api.AppointmentCommission AppointmentCommission = 5
*/
AppointmentCommission?: AppointmentCommission;
}
/**
* @generated from protobuf message api.CheckAppointmentCommissionResponse
*/
export interface CheckAppointmentCommissionResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 2
*/
Header?: ResponseHeader;
}
/**
* @generated from protobuf message api.StandAloneConf
*/
export interface StandAloneConf {
/**
* Set the standAlone mode, if true the site is not linked to any project and the booking will only be possible without order reference. In that case, the segmentation will be defined only at site level and not at project level.
*
* @generated from protobuf field: bool IsStandAlone = 1
*/
IsStandAlone: boolean;
/**
* Only available in standAlone mode. Set the booking possibility for unknown users, if true the booking will be possible for users not known by the platform.
*
* @generated from protobuf field: bool IsBookingLoadingEnabledForUnknownUsers = 2
*/
IsBookingLoadingEnabledForUnknownUsers: boolean;
/**
* @generated from protobuf field: bool IsBookingUnloadingEnabledForUnknownUsers = 3
*/
IsBookingUnloadingEnabledForUnknownUsers: boolean;
}
/**
* BookAppointment
*
* @generated from protobuf message api.BookAppointmentRequest
*/
export interface BookAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Loading / Unloading / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* List of the orders and projects for which the appointment is made, with the quantities
*
* @generated from protobuf field: repeated api.Commission Commissions = 3
*/
Commissions: Commission[];
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Carrier information metadata definition
*
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 14
*/
CarrierInformation: MetadataElement[];
/**
* The slot to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 6
*/
Slots: Slot[];
/**
* TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
* User mails being notified on this appointment
*
* @generated from protobuf field: repeated string Emails = 8
*/
Emails: string[]; // The carrier identifier who requests to book the appointment
// string CarrierID = 9;
// The carrier name who requests to book the appointment
// string CarrierName = 10;
/**
* The appointment ID, usually generated using siteCounterServices
*
* @generated from protobuf field: string AppointmentID = 11
*/
AppointmentID: string;
/**
* Acknowledgment of the site instructions
*
* @generated from protobuf field: bool InstructionAck = 12
*/
InstructionAck: boolean;
/**
* @generated from protobuf field: string ActorID = 13
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
/**
* @generated from protobuf field: repeated api.MetadataElement MetaData = 15
*/
MetaData: MetadataElement[];
/**
* @generated from protobuf field: string Reason = 16
*/
Reason: string;
/**
* time zone, useful only if a WMS send a message
*
* @generated from protobuf field: string TimeZone = 17
*/
TimeZone: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 18
*/
CustomFields: CustomField[];
}
/**
* @generated from protobuf message api.GetBookingContextRequest
*/
export interface GetBookingContextRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.GetBookingContextResponse
*/
export interface GetBookingContextResponse {
/**
* @generated from protobuf field: repeated api.ActorBookingContext ActorBookingContexts = 5
*/
ActorBookingContexts: ActorBookingContext[];
}
/**
* @generated from protobuf message api.ActorBookingContext
*/
export interface ActorBookingContext {
/**
* @generated from protobuf field: string ActorID = 1
*/
ActorID: string;
/**
* @generated from protobuf field: string SiteID = 8
*/
SiteID: string;
/**
* @generated from protobuf field: string ProjectID = 9
*/
ProjectID: string;
/**
* @generated from protobuf field: repeated string UnitIDs = 2
*/
UnitIDs: string[]; // List of containment units defined on site.
/**
* @generated from protobuf field: repeated api.PrjMetadata CarrierInformation = 3
*/
CarrierInformation: PrjMetadata[];
/**
* @generated from protobuf field: repeated api.PrjMetadata MetaData = 4
*/
MetaData: PrjMetadata[];
/**
* @generated from protobuf field: api.Instruction Instruction = 5
*/
Instruction?: Instruction;
/**
* @generated from protobuf field: repeated api.Document InstructionDocuments = 6
*/
InstructionDocuments: Document[];
/**
* @generated from protobuf field: repeated api.SegmentationsByType SegmentationsByTypes = 7
*/
SegmentationsByTypes: SegmentationsByType[];
}
/**
* @generated from protobuf message api.SegmentationsByType
*/
export interface SegmentationsByType {
/**
* @generated from protobuf field: api.AppointmentType AppointmentType = 1
*/
AppointmentType: AppointmentType;
/**
* @generated from protobuf field: repeated api.SegmentationFilter Segmentations = 2
*/
Segmentations: SegmentationFilter[];
}
/**
* @generated from protobuf message api.BookAppointmentResponse
*/
export interface BookAppointmentResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 2
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* CancelAppointment
*
* @generated from protobuf message api.CancelAppointmentRequest
*/
export interface CancelAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string AppointmentID = 2
*/
AppointmentID: string;
/**
* @generated from protobuf field: string ActorID = 3
*/
ActorID: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 4
*/
CustomFields: CustomField[];
}
/**
* @generated from protobuf message api.CancelAppointmentResponse
*/
export interface CancelAppointmentResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 2
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.RescheduleAppointmentRequest
*/
export interface RescheduleAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader; // using id of the project of type site
/**
* @generated from protobuf field: string AppointmentID = 2
*/
AppointmentID: string;
/**
* The slots to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 3
*/
Slots: Slot[];
/**
* @generated from protobuf field: string ActorID = 4
*/
ActorID: string;
}
/**
* @generated from protobuf message api.UpdateAppointmentRequest
*/
export interface UpdateAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string AppointmentID = 2
*/
AppointmentID: string;
/**
* The slots to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 3
*/
Slots: Slot[];
/**
* The new Commissions for the appointment
*
* @generated from protobuf field: repeated api.Commission Commissions = 4
*/
Commissions: Commission[];
/**
* @generated from protobuf field: string ActorID = 5
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
/**
* @generated from protobuf field: repeated string Emails = 6
*/
Emails: string[];
/**
* In case of no reference, The Reason for which the appointment has no commissions
*
* @generated from protobuf field: string Reason = 7
*/
Reason: string;
/**
* time zone, useful only if a WMS send a message
*
* @generated from protobuf field: string TimeZone = 8
*/
TimeZone: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 9
*/
CustomFields: CustomField[];
}
/**
* @generated from protobuf message api.WMSUpdateAppointmentRequest
*/
export interface WMSUpdateAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string AppointmentID = 2
*/
AppointmentID: string;
/**
* The slots to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 3
*/
Slots: Slot[];
/**
* The new Commissions for the appointment
*
* @generated from protobuf field: repeated api.WMSCommission Commissions = 4
*/
Commissions: WMSCommission[];
/**
* @generated from protobuf field: string ActorID = 5
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
/**
* In case of no reference, The Reason for which the appointment has no commissions
*
* @generated from protobuf field: string Reason = 7
*/
Reason: string;
/**
* time zone, useful only if a WMS send a message
*
* @generated from protobuf field: string TimeZone = 8
*/
TimeZone: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 9
*/
CustomFields: CustomField[];
}
/**
* @generated from protobuf message api.DeleteSettingsRequest
*/
export interface DeleteSettingsRequest {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
}
/**
* @generated from protobuf message api.DeleteSettingsResult
*/
export interface DeleteSettingsResult {
}
/**
* ResolveSite
*
* @generated from protobuf message api.ResolveSiteRequest
*/
export interface ResolveSiteRequest {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: string ActorID = 2
*/
ActorID: string;
}
/**
* @generated from protobuf message api.ResolveSiteResponse
*/
export interface ResolveSiteResponse {
/**
* @generated from protobuf field: api.Site Site = 1
*/
Site?: Site;
}
/**
* Authorisation
*
* @generated from protobuf message api.ProjectAuthorisationWithValue
*/
export interface ProjectAuthorisationWithValue {
/**
* Identifier of the project.
*
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* Constraints applied for unloading appointment.
*
* @generated from protobuf field: api.ProjectConstraintWithValue UnloadingConstraint = 2
*/
UnloadingConstraint?: ProjectConstraintWithValue;
/**
* Constraints applied for Loading appointment.
*
* @generated from protobuf field: api.ProjectConstraintWithValue LoadingConstraint = 3
*/
LoadingConstraint?: ProjectConstraintWithValue;
}
/**
* @generated from protobuf message api.ProjectConstraintWithValue
*/
export interface ProjectConstraintWithValue {
/**
* Specific Segmentation constraints applicable for the project.
*
* @generated from protobuf field: repeated api.Segmentation SegmentationFilters = 1
*/
SegmentationFilters: Segmentation[];
/**
* Minimal notice delay to book or cancel an appointment.
*
* @generated from protobuf field: api.Period MinNoticePeriod = 2
*/
MinNoticePeriod?: Period;
/**
* Maximal delay to book an appointment.
*
* @generated from protobuf field: api.Period MaxBookingPeriod = 3
*/
MaxBookingPeriod?: Period;
}
/**
* @generated from protobuf message api.SegmentationsSetting
*/
export interface SegmentationsSetting {
/**
* @generated from protobuf field: api.ProjectAuthorisationWithValue Authorisation = 1
*/
Authorisation?: ProjectAuthorisationWithValue;
/**
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* @generated from protobuf field: string ProjectID = 3
*/
ProjectID: string;
}
/**
* @generated from protobuf message api.ListOfSitesPerOrganisation
*/
export interface ListOfSitesPerOrganisation {
/**
* @generated from protobuf field: string OrganisationID = 1
*/
OrganisationID: string;
/**
* @generated from protobuf field: repeated api.SegmentationsSetting SegmentationsSettings = 2
*/
SegmentationsSettings: SegmentationsSetting[];
}
/**
* @deprecated
* @generated from protobuf message api.ListSitesAuthorizedForBookingRequest
*/
export interface ListSitesAuthorizedForBookingRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* @deprecated
* @generated from protobuf message api.ListSitesAuthorizedForBookingResponse
*/
export interface ListSitesAuthorizedForBookingResponse {
/**
* @generated from protobuf field: repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1
*/
ListOfSitesPerOrganisations: ListOfSitesPerOrganisation[];
}
/**
* @generated from protobuf message api.SiteDescription
*/
export interface SiteDescription {
/**
* @generated from protobuf field: string OrganisationID = 1
*/
OrganisationID: string;
/**
* @generated from protobuf field: string SiteID = 2
*/
SiteID: string;
/**
* @generated from protobuf field: string SiteName = 3
*/
SiteName: string;
}
/**
* @generated from protobuf message api.ListAllowedSitesRequest
*/
export interface ListAllowedSitesRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.ListAllowedSitesResponse
*/
export interface ListAllowedSitesResponse {
/**
* @generated from protobuf field: repeated api.SiteDescription SitesAllowed = 1
*/
SitesAllowed: SiteDescription[];
}
/**
* @generated from protobuf message api.GetActorAuthorisationRequest
*/
export interface GetActorAuthorisationRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string SiteID = 2
*/
SiteID: string;
}
/**
* @generated from protobuf message api.GetActorAuthorisationResponse
*/
export interface GetActorAuthorisationResponse {
/**
* ProjectAuthorisation Authorisation = 1;
*
* @generated from protobuf field: api.ProjectAuthorisationWithValue Authorisation = 2
*/
Authorisation?: ProjectAuthorisationWithValue;
}
/**
* @generated from protobuf message api.GetBasicSettingsRequest
*/
export interface GetBasicSettingsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @deprecated
* @generated from protobuf field: string ActorID = 2 [deprecated = true]
*/
ActorID: string;
}
/**
* @generated from protobuf message api.GetBasicSettingsResponse
*/
export interface GetBasicSettingsResponse {
/**
* Name of the Site
*
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: bool Active = 2
*/
Active: boolean; // If the Site is active or not
/**
* @generated from protobuf field: api.Address Address = 3
*/
Address?: Address; // address of the Site
/**
* @generated from protobuf field: repeated string Phones = 4
*/
Phones: string[];
/**
* @generated from protobuf field: string Fax = 5
*/
Fax: string;
/**
* @generated from protobuf field: repeated string Emails = 6
*/
Emails: string[];
/**
* @generated from protobuf field: string ID = 7
*/
ID: string;
/**
* @generated from protobuf field: string PhotoURI = 8
*/
PhotoURI: string;
/**
* @generated from protobuf field: string PrefixAppointmentID = 9
*/
PrefixAppointmentID: string;
}
/**
* @generated from protobuf message api.GetUnitsRequest
*/
export interface GetUnitsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader; // get the unit defined on the Project/site
/**
* @deprecated
* @generated from protobuf field: string ActorID = 2 [deprecated = true]
*/
ActorID: string;
}
/**
* @generated from protobuf message api.GetUnitsResponse
*/
export interface GetUnitsResponse {
/**
* @generated from protobuf field: repeated api.Unit Units = 1
*/
Units: Unit[]; // List of containment units defined on site.
}
/**
* @generated from protobuf message api.GetBookingSegmentationsRequest
*/
export interface GetBookingSegmentationsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @deprecated
* @generated from protobuf field: string ActorID = 2 [deprecated = true]
*/
ActorID: string; // actor corresponding to the project in the header
/**
* @generated from protobuf field: api.AppointmentType AppointmentType = 3
*/
AppointmentType: AppointmentType; // Unloading or Loading for the wanted appointment
/**
* @deprecated
* @generated from protobuf field: repeated api.Commission Commissions = 4 [deprecated = true]
*/
Commissions: Commission[]; // List of Commissions to check
/**
* @generated from protobuf field: api.AppointmentContent Loading = 5
*/
Loading?: AppointmentContent;
/**
* @generated from protobuf field: api.AppointmentContent Unloading = 6
*/
Unloading?: AppointmentContent;
}
/**
* @generated from protobuf message api.GetBookingSegmentationsResponse
*/
export interface GetBookingSegmentationsResponse {
/**
* Name of the Site
*
* @deprecated
* @generated from protobuf field: repeated api.Segmentation SegmentationChoices = 1 [deprecated = true]
*/
SegmentationChoices: Segmentation[];
/**
* @generated from protobuf field: repeated api.PrjMetadata SegmentationKeys = 2
*/
SegmentationKeys: PrjMetadata[];
}
/**
* @generated from protobuf message api.GetMyBookingContextRequest
*/
export interface GetMyBookingContextRequest {
}
/**
* @generated from protobuf message api.GetMyBookingContextResponse
*/
export interface GetMyBookingContextResponse {
/**
* @generated from protobuf field: repeated api.SiteBookingContext SiteBookingContexts = 1
*/
SiteBookingContexts: SiteBookingContext[]; // List of booking contexts for the sites the user is allowed to book on. A booking context contains all the necessary information to book an appointment on a site for a specific project and appointment type (loading/unloading).
/**
* @generated from protobuf field: repeated api.SiteBookingContext SiteViewingContexts = 2
*/
SiteViewingContexts: SiteBookingContext[]; // List of booking contexts for the sites the user is allowed to view appointments on. A booking context contains all the necessary information to book an appointment on a site for a specific project and appointment type (loading/unloading).
}
/**
* @generated from protobuf message api.SiteBookingContext
*/
export interface SiteBookingContext {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
/**
* @generated from protobuf field: repeated api.SiteProjectBookingContext ByProjects = 2
*/
ByProjects: SiteProjectBookingContext[];
/**
* Name of the Site
*
* @generated from protobuf field: string Name = 3
*/
Name: string;
/**
* @generated from protobuf field: api.Address Address = 4
*/
Address?: Address; // address of the Site
/**
* @generated from protobuf field: repeated string Phones = 5
*/
Phones: string[];
/**
* @generated from protobuf field: string Fax = 6
*/
Fax: string;
/**
* @generated from protobuf field: repeated string Emails = 7
*/
Emails: string[];
/**
* @generated from protobuf field: string PhotoURI = 8
*/
PhotoURI: string;
/**
* @generated from protobuf field: string PrefixAppointmentID = 9
*/
PrefixAppointmentID: string;
/**
* @generated from protobuf field: uint32 RoundedPeriodInMinutes = 10
*/
RoundedPeriodInMinutes: number;
/**
* @generated from protobuf field: string LanguageCode = 11
*/
LanguageCode: string;
/**
* @generated from protobuf field: bool IsSiteStandAlone = 12
*/
IsSiteStandAlone: boolean;
}
/**
* @generated from protobuf message api.SiteProjectBookingContext
*/
export interface SiteProjectBookingContext {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: repeated api.SiteProjectAptTypeBookingContext ByAppointmentTypes = 2
*/
ByAppointmentTypes: SiteProjectAptTypeBookingContext[];
/**
* @generated from protobuf field: string ProjectName = 3
*/
ProjectName: string;
}
/**
* @generated from protobuf message api.SiteProjectAptTypeBookingContext
*/
export interface SiteProjectAptTypeBookingContext {
/**
* @generated from protobuf field: api.AppointmentType AppointmentType = 1
*/
AppointmentType: AppointmentType;
/**
* @generated from protobuf field: repeated api.SiteProjectAptTypeBookingActorsContext Actors = 2
*/
Actors: SiteProjectAptTypeBookingActorsContext[];
}
/**
* @generated from protobuf message api.SiteProjectAptTypeBookingActorsContext
*/
export interface SiteProjectAptTypeBookingActorsContext {
/**
* @generated from protobuf field: api.CommandIdentifierEntry CommandIdentifierEntry = 1
*/
CommandIdentifierEntry: CommandIdentifierEntry;
/**
* @generated from protobuf field: string ActorID = 2
*/
ActorID: string;
/**
* @generated from protobuf field: string ActorName = 3
*/
ActorName: string;
}
/**
* User should only set either (ActorID & ProjectID) OR SiteID alone.
* Validation: exactly one of the two options must be provided:
* - Option 1: both ProjectID and ActorID must be set (non-empty)
* - Option 2: SiteID must be set (non-empty)
* If both options are provided, SiteID will be used preferentially.
*
* @generated from protobuf message api.InitBookerProfileRequest
*/
export interface InitBookerProfileRequest {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string; // Project ID the user will be allowed to book the appointment for
/**
* @generated from protobuf field: string ActorID = 2
*/
ActorID: string; // Actor ID which is the site alias the appointment will be booked on
/**
* @generated from protobuf field: string SiteID = 3
*/
SiteID: string; // Site ID of the site the user will book on.
}
/**
* @generated from protobuf message api.InitBookerProfileResponse
*/
export interface InitBookerProfileResponse {
/**
* @generated from protobuf field: string OrganisationID = 1
*/
OrganisationID: string; // Organisation ID of the site
/**
* @generated from protobuf field: string SiteID = 2
*/
SiteID: string; // Site ID
}
// @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: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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: { "n1validate.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: 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: { "n1validate.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: { "n1validate.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: { "n1validate.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: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "5" } } } },
{ no: 24, name: "StandAloneConf", kind: "message", localName: "StandAloneConf", jsonName: "StandAloneConf", T: () => StandAloneConf }
]);
}
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.RoundedPeriodInMinutes = 0;
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
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 /* 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 */ 23:
message.PrefixAppointmentID = reader.string();
break;
case /* api.StandAloneConf StandAloneConf */ 24:
message.StandAloneConf = StandAloneConf.internalBinaryRead(reader, reader.uint32(), options, message.StandAloneConf);
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();
/* 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 = 23; */
if (message.PrefixAppointmentID !== "")
writer.tag(23, WireType.LengthDelimited).string(message.PrefixAppointmentID);
/* api.StandAloneConf StandAloneConf = 24; */
if (message.StandAloneConf)
StandAloneConf.internalBinaryWrite(message.StandAloneConf, writer.tag(24, 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.Site
*/
export const Site = new Site$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateSettingsRequest$Type extends MessageType<CreateSettingsRequest> {
constructor() {
super("api.CreateSettingsRequest", [
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", email: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID", "Email", "SiteName"] } } });
}
create(value?: PartialMessage<CreateSettingsRequest>): CreateSettingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.OrganisationID = "";
message.SiteID = "";
message.SiteName = "";
message.Email = "";
if (value !== undefined)
reflectionMergePartial<CreateSettingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSettingsRequest): CreateSettingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string OrganisationID */ 1:
message.OrganisationID = reader.string();
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: CreateSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string OrganisationID = 1; */
if (message.OrganisationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
/* 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.CreateSettingsRequest
*/
export const CreateSettingsRequest = new CreateSettingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateSettingsResponse$Type extends MessageType<CreateSettingsResponse> {
constructor() {
super("api.CreateSettingsResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site }
]);
}
create(value?: PartialMessage<CreateSettingsResponse>): CreateSettingsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<CreateSettingsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateSettingsResponse): CreateSettingsResponse {
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: CreateSettingsResponse, 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.CreateSettingsResponse
*/
export const CreateSettingsResponse = new CreateSettingsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSettingsRequest$Type extends MessageType<GetSettingsRequest> {
constructor() {
super("api.GetSettingsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetSettingsRequest>): GetSettingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetSettingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSettingsRequest): GetSettingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: GetSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetSettingsRequest
*/
export const GetSettingsRequest = new GetSettingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSettingsRequest$Type extends MessageType<ListSettingsRequest> {
constructor() {
super("api.ListSettingsRequest", []);
}
create(value?: PartialMessage<ListSettingsRequest>): ListSettingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ListSettingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSettingsRequest): ListSettingsRequest {
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: ListSettingsRequest, 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.ListSettingsRequest
*/
export const ListSettingsRequest = new ListSettingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSettingsResponse$Type extends MessageType<GetSettingsResponse> {
constructor() {
super("api.GetSettingsResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "n1validate.rules": { message: { required: true } } } }
]);
}
create(value?: PartialMessage<GetSettingsResponse>): GetSettingsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetSettingsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSettingsResponse): GetSettingsResponse {
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: GetSettingsResponse, 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.GetSettingsResponse
*/
export const GetSettingsResponse = new GetSettingsResponse$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 ListSettingsResponse$Type extends MessageType<ListSettingsResponse> {
constructor() {
super("api.ListSettingsResponse", [
{ no: 1, name: "Sites", kind: "message", localName: "Sites", jsonName: "Sites", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Site }
]);
}
create(value?: PartialMessage<ListSettingsResponse>): ListSettingsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Sites = [];
if (value !== undefined)
reflectionMergePartial<ListSettingsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSettingsResponse): ListSettingsResponse {
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: ListSettingsResponse, 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.ListSettingsResponse
*/
export const ListSettingsResponse = new ListSettingsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
constructor() {
super("api.UpdateSettingsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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 },
{ 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: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/, options: { "n1validate.rules": { uint32: { gt: 0 } } } },
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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: { "n1validate.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: { "n1validate.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: { "n1validate.rules": { string: { maxLen: "5", pattern: "^[a-zA-Z0-9-]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } },
{ no: 23, name: "StandAloneConf", kind: "message", localName: "StandAloneConf", jsonName: "StandAloneConf", T: () => StandAloneConf }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<UpdateSettingsRequest>): UpdateSettingsRequest {
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.RoundedPeriodInMinutes = 0;
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
message.PrefixAppointmentID = "";
if (value !== undefined)
reflectionMergePartial<UpdateSettingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSettingsRequest): UpdateSettingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string 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 [deprecated = true] */ 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 [deprecated = true] */ 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 /* 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;
case /* api.StandAloneConf StandAloneConf */ 23:
message.StandAloneConf = StandAloneConf.internalBinaryRead(reader, reader.uint32(), options, message.StandAloneConf);
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: UpdateSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string 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 [deprecated = true]; */
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 [deprecated = true]; */
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();
/* 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);
/* api.StandAloneConf StandAloneConf = 23; */
if (message.StandAloneConf)
StandAloneConf.internalBinaryWrite(message.StandAloneConf, writer.tag(23, 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.UpdateSettingsRequest
*/
export const UpdateSettingsRequest = new UpdateSettingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateSettingsResponse$Type extends MessageType<UpdateSettingsResponse> {
constructor() {
super("api.UpdateSettingsResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "n1validate.rules": { message: { required: true } } } }
]);
}
create(value?: PartialMessage<UpdateSettingsResponse>): UpdateSettingsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<UpdateSettingsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSettingsResponse): UpdateSettingsResponse {
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: UpdateSettingsResponse, 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.UpdateSettingsResponse
*/
export const UpdateSettingsResponse = new UpdateSettingsResponse$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: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "n1validate.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.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.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.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.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: () => RequestProjectHeader, options: { "n1validate.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.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: DeletePhotoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @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: () => RequestProjectHeader, options: { "n1validate.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: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.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.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.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: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.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.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.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 GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest> {
constructor() {
super("api.GetAvailableSlotsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ 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: { "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { 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: { "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } },
{ no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "SegmentationSelection", "ActorID"] } } });
}
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 = [];
message.ActorID = "";
message.CarrierInformation = [];
message.MetaData = [];
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.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.AppointmentType AppointmentType */ 2:
message.AppointmentType = reader.int32();
break;
case /* repeated api.Commission Commissions */ 3:
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string StartDate */ 5:
message.StartDate = reader.string();
break;
case /* string EndDate */ 6:
message.EndDate = reader.string();
break;
case /* repeated string SkippedAppointmentIDs */ 7:
message.SkippedAppointmentIDs.push(reader.string());
break;
case /* string ActorID */ 8:
message.ActorID = reader.string();
break;
case /* repeated api.MetadataElement CarrierInformation */ 9:
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.MetadataElement MetaData */ 10:
message.MetaData.push(MetadataElement.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: GetAvailableSlotsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentType AppointmentType = 2; */
if (message.AppointmentType !== 0)
writer.tag(2, WireType.Varint).int32(message.AppointmentType);
/* repeated api.Commission Commissions = 3; */
for (let i = 0; i < message.Commissions.length; i++)
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* 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]);
/* string ActorID = 8; */
if (message.ActorID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.ActorID);
/* repeated api.MetadataElement CarrierInformation = 9; */
for (let i = 0; i < message.CarrierInformation.length; i++)
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* repeated api.MetadataElement MetaData = 10; */
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(10, 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.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 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 CheckAppointmentCommissionRequest$Type extends MessageType<CheckAppointmentCommissionRequest> {
constructor() {
super("api.CheckAppointmentCommissionRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commission", kind: "message", localName: "Commission", jsonName: "Commission", T: () => Commission },
{ no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "AppointmentCommission", kind: "message", localName: "AppointmentCommission", jsonName: "AppointmentCommission", T: () => AppointmentCommission }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType"] } } });
}
create(value?: PartialMessage<CheckAppointmentCommissionRequest>): CheckAppointmentCommissionRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<CheckAppointmentCommissionRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckAppointmentCommissionRequest): CheckAppointmentCommissionRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.AppointmentType AppointmentType */ 2:
message.AppointmentType = reader.int32();
break;
case /* api.Commission Commission = 3 [deprecated = true] */ 3:
message.Commission = Commission.internalBinaryRead(reader, reader.uint32(), options, message.Commission);
break;
case /* string ActorID = 4 [deprecated = true] */ 4:
message.ActorID = reader.string();
break;
case /* api.AppointmentCommission AppointmentCommission */ 5:
message.AppointmentCommission = AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options, message.AppointmentCommission);
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: CheckAppointmentCommissionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentType AppointmentType = 2; */
if (message.AppointmentType !== 0)
writer.tag(2, WireType.Varint).int32(message.AppointmentType);
/* api.Commission Commission = 3 [deprecated = true]; */
if (message.Commission)
Commission.internalBinaryWrite(message.Commission, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 4 [deprecated = true]; */
if (message.ActorID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ActorID);
/* api.AppointmentCommission AppointmentCommission = 5; */
if (message.AppointmentCommission)
AppointmentCommission.internalBinaryWrite(message.AppointmentCommission, writer.tag(5, 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.CheckAppointmentCommissionRequest
*/
export const CheckAppointmentCommissionRequest = new CheckAppointmentCommissionRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CheckAppointmentCommissionResponse$Type extends MessageType<CheckAppointmentCommissionResponse> {
constructor() {
super("api.CheckAppointmentCommissionResponse", [
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }
]);
}
create(value?: PartialMessage<CheckAppointmentCommissionResponse>): CheckAppointmentCommissionResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<CheckAppointmentCommissionResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckAppointmentCommissionResponse): CheckAppointmentCommissionResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 2:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
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: CheckAppointmentCommissionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 2; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CheckAppointmentCommissionResponse
*/
export const CheckAppointmentCommissionResponse = new CheckAppointmentCommissionResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StandAloneConf$Type extends MessageType<StandAloneConf> {
constructor() {
super("api.StandAloneConf", [
{ no: 1, name: "IsStandAlone", kind: "scalar", localName: "IsStandAlone", jsonName: "IsStandAlone", T: 8 /*ScalarType.BOOL*/ },
{ no: 2, name: "IsBookingLoadingEnabledForUnknownUsers", kind: "scalar", localName: "IsBookingLoadingEnabledForUnknownUsers", jsonName: "IsBookingLoadingEnabledForUnknownUsers", T: 8 /*ScalarType.BOOL*/ },
{ no: 3, name: "IsBookingUnloadingEnabledForUnknownUsers", kind: "scalar", localName: "IsBookingUnloadingEnabledForUnknownUsers", jsonName: "IsBookingUnloadingEnabledForUnknownUsers", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<StandAloneConf>): StandAloneConf {
const message = globalThis.Object.create((this.messagePrototype!));
message.IsStandAlone = false;
message.IsBookingLoadingEnabledForUnknownUsers = false;
message.IsBookingUnloadingEnabledForUnknownUsers = false;
if (value !== undefined)
reflectionMergePartial<StandAloneConf>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StandAloneConf): StandAloneConf {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* bool IsStandAlone */ 1:
message.IsStandAlone = reader.bool();
break;
case /* bool IsBookingLoadingEnabledForUnknownUsers */ 2:
message.IsBookingLoadingEnabledForUnknownUsers = reader.bool();
break;
case /* bool IsBookingUnloadingEnabledForUnknownUsers */ 3:
message.IsBookingUnloadingEnabledForUnknownUsers = 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: StandAloneConf, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* bool IsStandAlone = 1; */
if (message.IsStandAlone !== false)
writer.tag(1, WireType.Varint).bool(message.IsStandAlone);
/* bool IsBookingLoadingEnabledForUnknownUsers = 2; */
if (message.IsBookingLoadingEnabledForUnknownUsers !== false)
writer.tag(2, WireType.Varint).bool(message.IsBookingLoadingEnabledForUnknownUsers);
/* bool IsBookingUnloadingEnabledForUnknownUsers = 3; */
if (message.IsBookingUnloadingEnabledForUnknownUsers !== false)
writer.tag(3, WireType.Varint).bool(message.IsBookingUnloadingEnabledForUnknownUsers);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.StandAloneConf
*/
export const StandAloneConf = new StandAloneConf$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: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 14, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } },
{ no: 12, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
{ no: 13, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 15, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 16, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } },
{ no: 17, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
{ no: 18, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Slots", "Commissions", "SegmentationSelections", "CarrierInformation", "ActorID", "Emails"] } } });
}
create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.AppointmentID = "";
message.InstructionAck = false;
message.ActorID = "";
message.MetaData = [];
message.Reason = "";
message.TimeZone = "";
message.CustomFields = [];
if (value !== undefined)
reflectionMergePartial<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.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.AppointmentType AppointmentType */ 2:
message.AppointmentType = reader.int32();
break;
case /* repeated api.Commission Commissions */ 3:
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.MetadataElement CarrierInformation */ 14:
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 6:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string Emails */ 8:
message.Emails.push(reader.string());
break;
case /* string AppointmentID */ 11:
message.AppointmentID = reader.string();
break;
case /* bool InstructionAck */ 12:
message.InstructionAck = reader.bool();
break;
case /* string ActorID */ 13:
message.ActorID = reader.string();
break;
case /* repeated api.MetadataElement MetaData */ 15:
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string Reason */ 16:
message.Reason = reader.string();
break;
case /* string TimeZone */ 17:
message.TimeZone = reader.string();
break;
case /* repeated api.CustomField CustomFields */ 18:
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: BookAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentType AppointmentType = 2; */
if (message.AppointmentType !== 0)
writer.tag(2, WireType.Varint).int32(message.AppointmentType);
/* repeated api.Commission Commissions = 3; */
for (let i = 0; i < message.Commissions.length; i++)
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 6; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated string Emails = 8; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]);
/* string AppointmentID = 11; */
if (message.AppointmentID !== "")
writer.tag(11, WireType.LengthDelimited).string(message.AppointmentID);
/* bool InstructionAck = 12; */
if (message.InstructionAck !== false)
writer.tag(12, WireType.Varint).bool(message.InstructionAck);
/* string ActorID = 13; */
if (message.ActorID !== "")
writer.tag(13, WireType.LengthDelimited).string(message.ActorID);
/* repeated api.MetadataElement CarrierInformation = 14; */
for (let i = 0; i < message.CarrierInformation.length; i++)
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
/* repeated api.MetadataElement MetaData = 15; */
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* string Reason = 16; */
if (message.Reason !== "")
writer.tag(16, WireType.LengthDelimited).string(message.Reason);
/* string TimeZone = 17; */
if (message.TimeZone !== "")
writer.tag(17, WireType.LengthDelimited).string(message.TimeZone);
/* repeated api.CustomField CustomFields = 18; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(18, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.BookAppointmentRequest
*/
export const BookAppointmentRequest = new BookAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest> {
constructor() {
super("api.GetBookingContextRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetBookingContextRequest>): GetBookingContextRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetBookingContextRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBookingContextRequest): GetBookingContextRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: GetBookingContextRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetBookingContextRequest
*/
export const GetBookingContextRequest = new GetBookingContextRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBookingContextResponse$Type extends MessageType<GetBookingContextResponse> {
constructor() {
super("api.GetBookingContextResponse", [
{ no: 5, name: "ActorBookingContexts", kind: "message", localName: "ActorBookingContexts", jsonName: "ActorBookingContexts", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActorBookingContext }
]);
}
create(value?: PartialMessage<GetBookingContextResponse>): GetBookingContextResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorBookingContexts = [];
if (value !== undefined)
reflectionMergePartial<GetBookingContextResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBookingContextResponse): GetBookingContextResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.ActorBookingContext ActorBookingContexts */ 5:
message.ActorBookingContexts.push(ActorBookingContext.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: GetBookingContextResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.ActorBookingContext ActorBookingContexts = 5; */
for (let i = 0; i < message.ActorBookingContexts.length; i++)
ActorBookingContext.internalBinaryWrite(message.ActorBookingContexts[i], writer.tag(5, 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.GetBookingContextResponse
*/
export const GetBookingContextResponse = new GetBookingContextResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorBookingContext$Type extends MessageType<ActorBookingContext> {
constructor() {
super("api.ActorBookingContext", [
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "UnitIDs", kind: "scalar", localName: "UnitIDs", jsonName: "UnitIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata },
{ no: 4, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata },
{ no: 5, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 6, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
{ no: 7, name: "SegmentationsByTypes", kind: "message", localName: "SegmentationsByTypes", jsonName: "SegmentationsByTypes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationsByType }
]);
}
create(value?: PartialMessage<ActorBookingContext>): ActorBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.SiteID = "";
message.ProjectID = "";
message.UnitIDs = [];
message.CarrierInformation = [];
message.MetaData = [];
message.InstructionDocuments = [];
message.SegmentationsByTypes = [];
if (value !== undefined)
reflectionMergePartial<ActorBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorBookingContext): ActorBookingContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ActorID */ 1:
message.ActorID = reader.string();
break;
case /* string SiteID */ 8:
message.SiteID = reader.string();
break;
case /* string ProjectID */ 9:
message.ProjectID = reader.string();
break;
case /* repeated string UnitIDs */ 2:
message.UnitIDs.push(reader.string());
break;
case /* repeated api.PrjMetadata CarrierInformation */ 3:
message.CarrierInformation.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.PrjMetadata MetaData */ 4:
message.MetaData.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Instruction Instruction */ 5:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.Document InstructionDocuments */ 6:
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationsByType SegmentationsByTypes */ 7:
message.SegmentationsByTypes.push(SegmentationsByType.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: ActorBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ActorID = 1; */
if (message.ActorID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
/* repeated string UnitIDs = 2; */
for (let i = 0; i < message.UnitIDs.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.UnitIDs[i]);
/* repeated api.PrjMetadata CarrierInformation = 3; */
for (let i = 0; i < message.CarrierInformation.length; i++)
PrjMetadata.internalBinaryWrite(message.CarrierInformation[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.PrjMetadata MetaData = 4; */
for (let i = 0; i < message.MetaData.length; i++)
PrjMetadata.internalBinaryWrite(message.MetaData[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.Instruction Instruction = 5; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Document InstructionDocuments = 6; */
for (let i = 0; i < message.InstructionDocuments.length; i++)
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationsByType SegmentationsByTypes = 7; */
for (let i = 0; i < message.SegmentationsByTypes.length; i++)
SegmentationsByType.internalBinaryWrite(message.SegmentationsByTypes[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* string SiteID = 8; */
if (message.SiteID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.SiteID);
/* string ProjectID = 9; */
if (message.ProjectID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.ProjectID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ActorBookingContext
*/
export const ActorBookingContext = new ActorBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SegmentationsByType$Type extends MessageType<SegmentationsByType> {
constructor() {
super("api.SegmentationsByType", [
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
{ no: 2, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationFilter }
]);
}
create(value?: PartialMessage<SegmentationsByType>): SegmentationsByType {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Segmentations = [];
if (value !== undefined)
reflectionMergePartial<SegmentationsByType>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SegmentationsByType): SegmentationsByType {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentType AppointmentType */ 1:
message.AppointmentType = reader.int32();
break;
case /* repeated api.SegmentationFilter Segmentations */ 2:
message.Segmentations.push(SegmentationFilter.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: SegmentationsByType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentType AppointmentType = 1; */
if (message.AppointmentType !== 0)
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
/* repeated api.SegmentationFilter Segmentations = 2; */
for (let i = 0; i < message.Segmentations.length; i++)
SegmentationFilter.internalBinaryWrite(message.Segmentations[i], 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.SegmentationsByType
*/
export const SegmentationsByType = new SegmentationsByType$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookAppointmentResponse$Type extends MessageType<BookAppointmentResponse> {
constructor() {
super("api.BookAppointmentResponse", [
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<BookAppointmentResponse>): 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 /* api.ResponseHeader Header */ 2:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 1:
message.AppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: BookAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AppointmentID = 1; */
if (message.AppointmentID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
/* api.ResponseHeader Header = 2; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.BookAppointmentResponse
*/
export const BookAppointmentResponse = new BookAppointmentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest> {
constructor() {
super("api.CancelAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } },
{ no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } });
}
create(value?: PartialMessage<CancelAppointmentRequest>): CancelAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.ActorID = "";
message.CustomFields = [];
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.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 2:
message.AppointmentID = reader.string();
break;
case /* string ActorID */ 3:
message.ActorID = reader.string();
break;
case /* repeated api.CustomField CustomFields */ 4:
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: CancelAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string AppointmentID = 2; */
if (message.AppointmentID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID);
/* string ActorID = 3; */
if (message.ActorID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ActorID);
/* repeated api.CustomField CustomFields = 4; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CancelAppointmentRequest
*/
export const CancelAppointmentRequest = new CancelAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CancelAppointmentResponse$Type extends MessageType<CancelAppointmentResponse> {
constructor() {
super("api.CancelAppointmentResponse", [
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CancelAppointmentResponse>): 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 /* api.ResponseHeader Header */ 2:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 1:
message.AppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: CancelAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AppointmentID = 1; */
if (message.AppointmentID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
/* api.ResponseHeader Header = 2; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CancelAppointmentResponse
*/
export const CancelAppointmentResponse = new CancelAppointmentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RescheduleAppointmentRequest$Type extends MessageType<RescheduleAppointmentRequest> {
constructor() {
super("api.RescheduleAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
}
create(value?: PartialMessage<RescheduleAppointmentRequest>): RescheduleAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<RescheduleAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RescheduleAppointmentRequest): RescheduleAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 2:
message.AppointmentID = reader.string();
break;
case /* repeated api.Slot Slots */ 3:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ActorID */ 4:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: RescheduleAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string AppointmentID = 2; */
if (message.AppointmentID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID);
/* repeated api.Slot Slots = 3; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 4; */
if (message.ActorID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RescheduleAppointmentRequest
*/
export const RescheduleAppointmentRequest = new RescheduleAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest> {
constructor() {
super("api.UpdateAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } },
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } },
{ no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } },
{ no: 8, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
{ no: 9, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions", "ActorID", "Emails"] } } });
}
create(value?: PartialMessage<UpdateAppointmentRequest>): UpdateAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.Commissions = [];
message.ActorID = "";
message.Emails = [];
message.Reason = "";
message.TimeZone = "";
message.CustomFields = [];
if (value !== undefined)
reflectionMergePartial<UpdateAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentRequest): UpdateAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 2:
message.AppointmentID = reader.string();
break;
case /* repeated api.Slot Slots */ 3:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Commission Commissions */ 4:
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ActorID */ 5:
message.ActorID = reader.string();
break;
case /* repeated string Emails */ 6:
message.Emails.push(reader.string());
break;
case /* string Reason */ 7:
message.Reason = reader.string();
break;
case /* string TimeZone */ 8:
message.TimeZone = reader.string();
break;
case /* repeated api.CustomField CustomFields */ 9:
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: UpdateAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string AppointmentID = 2; */
if (message.AppointmentID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID);
/* repeated api.Slot Slots = 3; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Commission Commissions = 4; */
for (let i = 0; i < message.Commissions.length; i++)
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 5; */
if (message.ActorID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ActorID);
/* repeated string Emails = 6; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(6, WireType.LengthDelimited).string(message.Emails[i]);
/* string Reason = 7; */
if (message.Reason !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Reason);
/* string TimeZone = 8; */
if (message.TimeZone !== "")
writer.tag(8, WireType.LengthDelimited).string(message.TimeZone);
/* repeated api.CustomField CustomFields = 9; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateAppointmentRequest
*/
export const UpdateAppointmentRequest = new UpdateAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WMSUpdateAppointmentRequest$Type extends MessageType<WMSUpdateAppointmentRequest> {
constructor() {
super("api.WMSUpdateAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } },
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WMSCommission, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } },
{ no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to update appointment without order reference" } } },
{ no: 8, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
{ no: 9, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "ActorID"] } } });
}
create(value?: PartialMessage<WMSUpdateAppointmentRequest>): WMSUpdateAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.Commissions = [];
message.ActorID = "";
message.Reason = "";
message.TimeZone = "";
message.CustomFields = [];
if (value !== undefined)
reflectionMergePartial<WMSUpdateAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSUpdateAppointmentRequest): WMSUpdateAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 2:
message.AppointmentID = reader.string();
break;
case /* repeated api.Slot Slots */ 3:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.WMSCommission Commissions */ 4:
message.Commissions.push(WMSCommission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ActorID */ 5:
message.ActorID = reader.string();
break;
case /* string Reason */ 7:
message.Reason = reader.string();
break;
case /* string TimeZone */ 8:
message.TimeZone = reader.string();
break;
case /* repeated api.CustomField CustomFields */ 9:
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: WMSUpdateAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string AppointmentID = 2; */
if (message.AppointmentID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID);
/* repeated api.Slot Slots = 3; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.WMSCommission Commissions = 4; */
for (let i = 0; i < message.Commissions.length; i++)
WMSCommission.internalBinaryWrite(message.Commissions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 5; */
if (message.ActorID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ActorID);
/* string Reason = 7; */
if (message.Reason !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Reason);
/* string TimeZone = 8; */
if (message.TimeZone !== "")
writer.tag(8, WireType.LengthDelimited).string(message.TimeZone);
/* repeated api.CustomField CustomFields = 9; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.WMSUpdateAppointmentRequest
*/
export const WMSUpdateAppointmentRequest = new WMSUpdateAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSettingsRequest$Type extends MessageType<DeleteSettingsRequest> {
constructor() {
super("api.DeleteSettingsRequest", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
}
create(value?: PartialMessage<DeleteSettingsRequest>): DeleteSettingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<DeleteSettingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSettingsRequest): DeleteSettingsRequest {
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: DeleteSettingsRequest, 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.DeleteSettingsRequest
*/
export const DeleteSettingsRequest = new DeleteSettingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSettingsResult$Type extends MessageType<DeleteSettingsResult> {
constructor() {
super("api.DeleteSettingsResult", []);
}
create(value?: PartialMessage<DeleteSettingsResult>): DeleteSettingsResult {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteSettingsResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteSettingsResult): DeleteSettingsResult {
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: DeleteSettingsResult, 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.DeleteSettingsResult
*/
export const DeleteSettingsResult = new DeleteSettingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ResolveSiteRequest$Type extends MessageType<ResolveSiteRequest> {
constructor() {
super("api.ResolveSiteRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } });
}
create(value?: PartialMessage<ResolveSiteRequest>): ResolveSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<ResolveSiteRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveSiteRequest): ResolveSiteRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string ActorID */ 2:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ResolveSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string ActorID = 2; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ResolveSiteRequest
*/
export const ResolveSiteRequest = new ResolveSiteRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ResolveSiteResponse$Type extends MessageType<ResolveSiteResponse> {
constructor() {
super("api.ResolveSiteResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site }
]);
}
create(value?: PartialMessage<ResolveSiteResponse>): ResolveSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ResolveSiteResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveSiteResponse): ResolveSiteResponse {
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: ResolveSiteResponse, 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.ResolveSiteResponse
*/
export const ResolveSiteResponse = new ResolveSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectAuthorisationWithValue$Type extends MessageType<ProjectAuthorisationWithValue> {
constructor() {
super("api.ProjectAuthorisationWithValue", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "UnloadingConstraint", kind: "message", localName: "UnloadingConstraint", jsonName: "UnloadingConstraint", T: () => ProjectConstraintWithValue },
{ no: 3, name: "LoadingConstraint", kind: "message", localName: "LoadingConstraint", jsonName: "LoadingConstraint", T: () => ProjectConstraintWithValue }
]);
}
create(value?: PartialMessage<ProjectAuthorisationWithValue>): ProjectAuthorisationWithValue {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
if (value !== undefined)
reflectionMergePartial<ProjectAuthorisationWithValue>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectAuthorisationWithValue): ProjectAuthorisationWithValue {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* api.ProjectConstraintWithValue UnloadingConstraint */ 2:
message.UnloadingConstraint = ProjectConstraintWithValue.internalBinaryRead(reader, reader.uint32(), options, message.UnloadingConstraint);
break;
case /* api.ProjectConstraintWithValue LoadingConstraint */ 3:
message.LoadingConstraint = ProjectConstraintWithValue.internalBinaryRead(reader, reader.uint32(), options, message.LoadingConstraint);
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: ProjectAuthorisationWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* api.ProjectConstraintWithValue UnloadingConstraint = 2; */
if (message.UnloadingConstraint)
ProjectConstraintWithValue.internalBinaryWrite(message.UnloadingConstraint, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.ProjectConstraintWithValue LoadingConstraint = 3; */
if (message.LoadingConstraint)
ProjectConstraintWithValue.internalBinaryWrite(message.LoadingConstraint, 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.ProjectAuthorisationWithValue
*/
export const ProjectAuthorisationWithValue = new ProjectAuthorisationWithValue$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectConstraintWithValue$Type extends MessageType<ProjectConstraintWithValue> {
constructor() {
super("api.ProjectConstraintWithValue", [
{ no: 1, name: "SegmentationFilters", kind: "message", localName: "SegmentationFilters", jsonName: "SegmentationFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation, options: { "api.aggKey": "SegmentationID" } },
{ no: 2, name: "MinNoticePeriod", kind: "message", localName: "MinNoticePeriod", jsonName: "MinNoticePeriod", T: () => Period },
{ no: 3, name: "MaxBookingPeriod", kind: "message", localName: "MaxBookingPeriod", jsonName: "MaxBookingPeriod", T: () => Period }
]);
}
create(value?: PartialMessage<ProjectConstraintWithValue>): ProjectConstraintWithValue {
const message = globalThis.Object.create((this.messagePrototype!));
message.SegmentationFilters = [];
if (value !== undefined)
reflectionMergePartial<ProjectConstraintWithValue>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectConstraintWithValue): ProjectConstraintWithValue {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Segmentation SegmentationFilters */ 1:
message.SegmentationFilters.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Period MinNoticePeriod */ 2:
message.MinNoticePeriod = Period.internalBinaryRead(reader, reader.uint32(), options, message.MinNoticePeriod);
break;
case /* api.Period MaxBookingPeriod */ 3:
message.MaxBookingPeriod = Period.internalBinaryRead(reader, reader.uint32(), options, message.MaxBookingPeriod);
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: ProjectConstraintWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Segmentation SegmentationFilters = 1; */
for (let i = 0; i < message.SegmentationFilters.length; i++)
Segmentation.internalBinaryWrite(message.SegmentationFilters[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.Period MinNoticePeriod = 2; */
if (message.MinNoticePeriod)
Period.internalBinaryWrite(message.MinNoticePeriod, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.Period MaxBookingPeriod = 3; */
if (message.MaxBookingPeriod)
Period.internalBinaryWrite(message.MaxBookingPeriod, 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.ProjectConstraintWithValue
*/
export const ProjectConstraintWithValue = new ProjectConstraintWithValue$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SegmentationsSetting$Type extends MessageType<SegmentationsSetting> {
constructor() {
super("api.SegmentationsSetting", [
{ no: 1, name: "Authorisation", kind: "message", localName: "Authorisation", jsonName: "Authorisation", T: () => ProjectAuthorisationWithValue },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SegmentationsSetting>): SegmentationsSetting {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.ProjectID = "";
if (value !== undefined)
reflectionMergePartial<SegmentationsSetting>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SegmentationsSetting): SegmentationsSetting {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ProjectAuthorisationWithValue Authorisation */ 1:
message.Authorisation = ProjectAuthorisationWithValue.internalBinaryRead(reader, reader.uint32(), options, message.Authorisation);
break;
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string ProjectID */ 3:
message.ProjectID = 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: SegmentationsSetting, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ProjectAuthorisationWithValue Authorisation = 1; */
if (message.Authorisation)
ProjectAuthorisationWithValue.internalBinaryWrite(message.Authorisation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string ProjectID = 3; */
if (message.ProjectID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SegmentationsSetting
*/
export const SegmentationsSetting = new SegmentationsSetting$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListOfSitesPerOrganisation$Type extends MessageType<ListOfSitesPerOrganisation> {
constructor() {
super("api.ListOfSitesPerOrganisation", [
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "SegmentationsSettings", kind: "message", localName: "SegmentationsSettings", jsonName: "SegmentationsSettings", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationsSetting }
]);
}
create(value?: PartialMessage<ListOfSitesPerOrganisation>): ListOfSitesPerOrganisation {
const message = globalThis.Object.create((this.messagePrototype!));
message.OrganisationID = "";
message.SegmentationsSettings = [];
if (value !== undefined)
reflectionMergePartial<ListOfSitesPerOrganisation>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOfSitesPerOrganisation): ListOfSitesPerOrganisation {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string OrganisationID */ 1:
message.OrganisationID = reader.string();
break;
case /* repeated api.SegmentationsSetting SegmentationsSettings */ 2:
message.SegmentationsSettings.push(SegmentationsSetting.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: ListOfSitesPerOrganisation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string OrganisationID = 1; */
if (message.OrganisationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
/* repeated api.SegmentationsSetting SegmentationsSettings = 2; */
for (let i = 0; i < message.SegmentationsSettings.length; i++)
SegmentationsSetting.internalBinaryWrite(message.SegmentationsSettings[i], 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.ListOfSitesPerOrganisation
*/
export const ListOfSitesPerOrganisation = new ListOfSitesPerOrganisation$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSitesAuthorizedForBookingRequest$Type extends MessageType<ListSitesAuthorizedForBookingRequest> {
constructor() {
super("api.ListSitesAuthorizedForBookingRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListSitesAuthorizedForBookingRequest>): ListSitesAuthorizedForBookingRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ListSitesAuthorizedForBookingRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingRequest): ListSitesAuthorizedForBookingRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListSitesAuthorizedForBookingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.ListSitesAuthorizedForBookingRequest
*/
export const ListSitesAuthorizedForBookingRequest = new ListSitesAuthorizedForBookingRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSitesAuthorizedForBookingResponse$Type extends MessageType<ListSitesAuthorizedForBookingResponse> {
constructor() {
super("api.ListSitesAuthorizedForBookingResponse", [
{ no: 1, name: "ListOfSitesPerOrganisations", kind: "message", localName: "ListOfSitesPerOrganisations", jsonName: "ListOfSitesPerOrganisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListOfSitesPerOrganisation }
]);
}
create(value?: PartialMessage<ListSitesAuthorizedForBookingResponse>): ListSitesAuthorizedForBookingResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.ListOfSitesPerOrganisations = [];
if (value !== undefined)
reflectionMergePartial<ListSitesAuthorizedForBookingResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingResponse): ListSitesAuthorizedForBookingResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations */ 1:
message.ListOfSitesPerOrganisations.push(ListOfSitesPerOrganisation.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListSitesAuthorizedForBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1; */
for (let i = 0; i < message.ListOfSitesPerOrganisations.length; i++)
ListOfSitesPerOrganisation.internalBinaryWrite(message.ListOfSitesPerOrganisations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @deprecated
* @generated MessageType for protobuf message api.ListSitesAuthorizedForBookingResponse
*/
export const ListSitesAuthorizedForBookingResponse = new ListSitesAuthorizedForBookingResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteDescription$Type extends MessageType<SiteDescription> {
constructor() {
super("api.SiteDescription", [
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SiteDescription>): SiteDescription {
const message = globalThis.Object.create((this.messagePrototype!));
message.OrganisationID = "";
message.SiteID = "";
message.SiteName = "";
if (value !== undefined)
reflectionMergePartial<SiteDescription>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteDescription): SiteDescription {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string OrganisationID */ 1:
message.OrganisationID = reader.string();
break;
case /* string SiteID */ 2:
message.SiteID = reader.string();
break;
case /* string SiteName */ 3:
message.SiteName = 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: SiteDescription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string OrganisationID = 1; */
if (message.OrganisationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
/* 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);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteDescription
*/
export const SiteDescription = new SiteDescription$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAllowedSitesRequest$Type extends MessageType<ListAllowedSitesRequest> {
constructor() {
super("api.ListAllowedSitesRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListAllowedSitesRequest>): ListAllowedSitesRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ListAllowedSitesRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAllowedSitesRequest): ListAllowedSitesRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListAllowedSitesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListAllowedSitesRequest
*/
export const ListAllowedSitesRequest = new ListAllowedSitesRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAllowedSitesResponse$Type extends MessageType<ListAllowedSitesResponse> {
constructor() {
super("api.ListAllowedSitesResponse", [
{ no: 1, name: "SitesAllowed", kind: "message", localName: "SitesAllowed", jsonName: "SitesAllowed", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteDescription }
]);
}
create(value?: PartialMessage<ListAllowedSitesResponse>): ListAllowedSitesResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SitesAllowed = [];
if (value !== undefined)
reflectionMergePartial<ListAllowedSitesResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAllowedSitesResponse): ListAllowedSitesResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SiteDescription SitesAllowed */ 1:
message.SitesAllowed.push(SiteDescription.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: ListAllowedSitesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SiteDescription SitesAllowed = 1; */
for (let i = 0; i < message.SitesAllowed.length; i++)
SiteDescription.internalBinaryWrite(message.SitesAllowed[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.ListAllowedSitesResponse
*/
export const ListAllowedSitesResponse = new ListAllowedSitesResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetActorAuthorisationRequest$Type extends MessageType<GetActorAuthorisationRequest> {
constructor() {
super("api.GetActorAuthorisationRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "SiteID"] } } });
}
create(value?: PartialMessage<GetActorAuthorisationRequest>): GetActorAuthorisationRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<GetActorAuthorisationRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetActorAuthorisationRequest): GetActorAuthorisationRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string SiteID */ 2:
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: GetActorAuthorisationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string SiteID = 2; */
if (message.SiteID !== "")
writer.tag(2, 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.GetActorAuthorisationRequest
*/
export const GetActorAuthorisationRequest = new GetActorAuthorisationRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetActorAuthorisationResponse$Type extends MessageType<GetActorAuthorisationResponse> {
constructor() {
super("api.GetActorAuthorisationResponse", [
{ no: 2, name: "Authorisation", kind: "message", localName: "Authorisation", jsonName: "Authorisation", T: () => ProjectAuthorisationWithValue }
]);
}
create(value?: PartialMessage<GetActorAuthorisationResponse>): GetActorAuthorisationResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetActorAuthorisationResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetActorAuthorisationResponse): GetActorAuthorisationResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ProjectAuthorisationWithValue Authorisation */ 2:
message.Authorisation = ProjectAuthorisationWithValue.internalBinaryRead(reader, reader.uint32(), options, message.Authorisation);
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: GetActorAuthorisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ProjectAuthorisationWithValue Authorisation = 2; */
if (message.Authorisation)
ProjectAuthorisationWithValue.internalBinaryWrite(message.Authorisation, 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.GetActorAuthorisationResponse
*/
export const GetActorAuthorisationResponse = new GetActorAuthorisationResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBasicSettingsRequest$Type extends MessageType<GetBasicSettingsRequest> {
constructor() {
super("api.GetBasicSettingsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetBasicSettingsRequest>): GetBasicSettingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<GetBasicSettingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBasicSettingsRequest): GetBasicSettingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ActorID = 2 [deprecated = true] */ 2:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: GetBasicSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 2 [deprecated = true]; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetBasicSettingsRequest
*/
export const GetBasicSettingsRequest = new GetBasicSettingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse> {
constructor() {
super("api.GetBasicSettingsResponse", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
{ no: 3, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 4, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<GetBasicSettingsResponse>): GetBasicSettingsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Active = false;
message.Phones = [];
message.Fax = "";
message.Emails = [];
message.ID = "";
message.PhotoURI = "";
message.PrefixAppointmentID = "";
if (value !== undefined)
reflectionMergePartial<GetBasicSettingsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBasicSettingsResponse): GetBasicSettingsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* bool Active */ 2:
message.Active = reader.bool();
break;
case /* api.Address Address */ 3:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
case /* repeated string Phones */ 4:
message.Phones.push(reader.string());
break;
case /* string Fax */ 5:
message.Fax = reader.string();
break;
case /* repeated string Emails */ 6:
message.Emails.push(reader.string());
break;
case /* string ID */ 7:
message.ID = reader.string();
break;
case /* string PhotoURI */ 8:
message.PhotoURI = reader.string();
break;
case /* string PrefixAppointmentID */ 9:
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: GetBasicSettingsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* bool Active = 2; */
if (message.Active !== false)
writer.tag(2, WireType.Varint).bool(message.Active);
/* api.Address Address = 3; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated string Phones = 4; */
for (let i = 0; i < message.Phones.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 5; */
if (message.Fax !== "")
writer.tag(5, WireType.LengthDelimited).string(message.Fax);
/* repeated string Emails = 6; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(6, WireType.LengthDelimited).string(message.Emails[i]);
/* string ID = 7; */
if (message.ID !== "")
writer.tag(7, WireType.LengthDelimited).string(message.ID);
/* string PhotoURI = 8; */
if (message.PhotoURI !== "")
writer.tag(8, WireType.LengthDelimited).string(message.PhotoURI);
/* string PrefixAppointmentID = 9; */
if (message.PrefixAppointmentID !== "")
writer.tag(9, 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.GetBasicSettingsResponse
*/
export const GetBasicSettingsResponse = new GetBasicSettingsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetUnitsRequest$Type extends MessageType<GetUnitsRequest> {
constructor() {
super("api.GetUnitsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetUnitsRequest>): GetUnitsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<GetUnitsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUnitsRequest): GetUnitsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ActorID = 2 [deprecated = true] */ 2:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: GetUnitsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 2 [deprecated = true]; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetUnitsRequest
*/
export const GetUnitsRequest = new GetUnitsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetUnitsResponse$Type extends MessageType<GetUnitsResponse> {
constructor() {
super("api.GetUnitsResponse", [
{ no: 1, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit }
]);
}
create(value?: PartialMessage<GetUnitsResponse>): GetUnitsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Units = [];
if (value !== undefined)
reflectionMergePartial<GetUnitsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUnitsResponse): GetUnitsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Unit Units */ 1:
message.Units.push(Unit.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: GetUnitsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Unit Units = 1; */
for (let i = 0; i < message.Units.length; i++)
Unit.internalBinaryWrite(message.Units[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.GetUnitsResponse
*/
export const GetUnitsResponse = new GetUnitsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBookingSegmentationsRequest$Type extends MessageType<GetBookingSegmentationsRequest> {
constructor() {
super("api.GetBookingSegmentationsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 5, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
{ no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType"] } } });
}
create(value?: PartialMessage<GetBookingSegmentationsRequest>): GetBookingSegmentationsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.AppointmentType = 0;
message.Commissions = [];
if (value !== undefined)
reflectionMergePartial<GetBookingSegmentationsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBookingSegmentationsRequest): GetBookingSegmentationsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ActorID = 2 [deprecated = true] */ 2:
message.ActorID = reader.string();
break;
case /* api.AppointmentType AppointmentType */ 3:
message.AppointmentType = reader.int32();
break;
case /* repeated api.Commission Commissions = 4 [deprecated = true] */ 4:
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.AppointmentContent Loading */ 5:
message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading);
break;
case /* api.AppointmentContent Unloading */ 6:
message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading);
break;
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: GetBookingSegmentationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 2 [deprecated = true]; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
/* api.AppointmentType AppointmentType = 3; */
if (message.AppointmentType !== 0)
writer.tag(3, WireType.Varint).int32(message.AppointmentType);
/* repeated api.Commission Commissions = 4 [deprecated = true]; */
for (let i = 0; i < message.Commissions.length; i++)
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentContent Loading = 5; */
if (message.Loading)
AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentContent Unloading = 6; */
if (message.Unloading)
AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetBookingSegmentationsRequest
*/
export const GetBookingSegmentationsRequest = new GetBookingSegmentationsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegmentationsResponse> {
constructor() {
super("api.GetBookingSegmentationsResponse", [
{ no: 1, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
{ no: 2, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata }
]);
}
create(value?: PartialMessage<GetBookingSegmentationsResponse>): GetBookingSegmentationsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SegmentationChoices = [];
message.SegmentationKeys = [];
if (value !== undefined)
reflectionMergePartial<GetBookingSegmentationsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBookingSegmentationsResponse): GetBookingSegmentationsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Segmentation SegmentationChoices = 1 [deprecated = true] */ 1:
message.SegmentationChoices.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.PrjMetadata SegmentationKeys */ 2:
message.SegmentationKeys.push(PrjMetadata.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: GetBookingSegmentationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Segmentation SegmentationChoices = 1 [deprecated = true]; */
for (let i = 0; i < message.SegmentationChoices.length; i++)
Segmentation.internalBinaryWrite(message.SegmentationChoices[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.PrjMetadata SegmentationKeys = 2; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
PrjMetadata.internalBinaryWrite(message.SegmentationKeys[i], 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.GetBookingSegmentationsResponse
*/
export const GetBookingSegmentationsResponse = new GetBookingSegmentationsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetMyBookingContextRequest$Type extends MessageType<GetMyBookingContextRequest> {
constructor() {
super("api.GetMyBookingContextRequest", []);
}
create(value?: PartialMessage<GetMyBookingContextRequest>): GetMyBookingContextRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetMyBookingContextRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetMyBookingContextRequest): GetMyBookingContextRequest {
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: GetMyBookingContextRequest, 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.GetMyBookingContextRequest
*/
export const GetMyBookingContextRequest = new GetMyBookingContextRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetMyBookingContextResponse$Type extends MessageType<GetMyBookingContextResponse> {
constructor() {
super("api.GetMyBookingContextResponse", [
{ no: 1, name: "SiteBookingContexts", kind: "message", localName: "SiteBookingContexts", jsonName: "SiteBookingContexts", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteBookingContext },
{ no: 2, name: "SiteViewingContexts", kind: "message", localName: "SiteViewingContexts", jsonName: "SiteViewingContexts", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteBookingContext }
]);
}
create(value?: PartialMessage<GetMyBookingContextResponse>): GetMyBookingContextResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteBookingContexts = [];
message.SiteViewingContexts = [];
if (value !== undefined)
reflectionMergePartial<GetMyBookingContextResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetMyBookingContextResponse): GetMyBookingContextResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SiteBookingContext SiteBookingContexts */ 1:
message.SiteBookingContexts.push(SiteBookingContext.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SiteBookingContext SiteViewingContexts */ 2:
message.SiteViewingContexts.push(SiteBookingContext.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: GetMyBookingContextResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SiteBookingContext SiteBookingContexts = 1; */
for (let i = 0; i < message.SiteBookingContexts.length; i++)
SiteBookingContext.internalBinaryWrite(message.SiteBookingContexts[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SiteBookingContext SiteViewingContexts = 2; */
for (let i = 0; i < message.SiteViewingContexts.length; i++)
SiteBookingContext.internalBinaryWrite(message.SiteViewingContexts[i], 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.GetMyBookingContextResponse
*/
export const GetMyBookingContextResponse = new GetMyBookingContextResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteBookingContext$Type extends MessageType<SiteBookingContext> {
constructor() {
super("api.SiteBookingContext", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ByProjects", kind: "message", localName: "ByProjects", jsonName: "ByProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteProjectBookingContext },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 5, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/ },
{ no: 11, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "IsSiteStandAlone", kind: "scalar", localName: "IsSiteStandAlone", jsonName: "IsSiteStandAlone", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<SiteBookingContext>): SiteBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
message.ByProjects = [];
message.Name = "";
message.Phones = [];
message.Fax = "";
message.Emails = [];
message.PhotoURI = "";
message.PrefixAppointmentID = "";
message.RoundedPeriodInMinutes = 0;
message.LanguageCode = "";
message.IsSiteStandAlone = false;
if (value !== undefined)
reflectionMergePartial<SiteBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteBookingContext): SiteBookingContext {
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 /* repeated api.SiteProjectBookingContext ByProjects */ 2:
message.ByProjects.push(SiteProjectBookingContext.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string Name */ 3:
message.Name = reader.string();
break;
case /* api.Address Address */ 4:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
case /* repeated string Phones */ 5:
message.Phones.push(reader.string());
break;
case /* string Fax */ 6:
message.Fax = reader.string();
break;
case /* repeated string Emails */ 7:
message.Emails.push(reader.string());
break;
case /* string PhotoURI */ 8:
message.PhotoURI = reader.string();
break;
case /* string PrefixAppointmentID */ 9:
message.PrefixAppointmentID = reader.string();
break;
case /* uint32 RoundedPeriodInMinutes */ 10:
message.RoundedPeriodInMinutes = reader.uint32();
break;
case /* string LanguageCode */ 11:
message.LanguageCode = reader.string();
break;
case /* bool IsSiteStandAlone */ 12:
message.IsSiteStandAlone = 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: SiteBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
/* repeated api.SiteProjectBookingContext ByProjects = 2; */
for (let i = 0; i < message.ByProjects.length; i++)
SiteProjectBookingContext.internalBinaryWrite(message.ByProjects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string Name = 3; */
if (message.Name !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Name);
/* api.Address Address = 4; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated string Phones = 5; */
for (let i = 0; i < message.Phones.length; i++)
writer.tag(5, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 6; */
if (message.Fax !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Fax);
/* repeated string Emails = 7; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
/* string PhotoURI = 8; */
if (message.PhotoURI !== "")
writer.tag(8, WireType.LengthDelimited).string(message.PhotoURI);
/* string PrefixAppointmentID = 9; */
if (message.PrefixAppointmentID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.PrefixAppointmentID);
/* uint32 RoundedPeriodInMinutes = 10; */
if (message.RoundedPeriodInMinutes !== 0)
writer.tag(10, WireType.Varint).uint32(message.RoundedPeriodInMinutes);
/* string LanguageCode = 11; */
if (message.LanguageCode !== "")
writer.tag(11, WireType.LengthDelimited).string(message.LanguageCode);
/* bool IsSiteStandAlone = 12; */
if (message.IsSiteStandAlone !== false)
writer.tag(12, WireType.Varint).bool(message.IsSiteStandAlone);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteBookingContext
*/
export const SiteBookingContext = new SiteBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteProjectBookingContext$Type extends MessageType<SiteProjectBookingContext> {
constructor() {
super("api.SiteProjectBookingContext", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ByAppointmentTypes", kind: "message", localName: "ByAppointmentTypes", jsonName: "ByAppointmentTypes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteProjectAptTypeBookingContext },
{ no: 3, name: "ProjectName", kind: "scalar", localName: "ProjectName", jsonName: "ProjectName", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SiteProjectBookingContext>): SiteProjectBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.ByAppointmentTypes = [];
message.ProjectName = "";
if (value !== undefined)
reflectionMergePartial<SiteProjectBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteProjectBookingContext): SiteProjectBookingContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* repeated api.SiteProjectAptTypeBookingContext ByAppointmentTypes */ 2:
message.ByAppointmentTypes.push(SiteProjectAptTypeBookingContext.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ProjectName */ 3:
message.ProjectName = 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: SiteProjectBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* repeated api.SiteProjectAptTypeBookingContext ByAppointmentTypes = 2; */
for (let i = 0; i < message.ByAppointmentTypes.length; i++)
SiteProjectAptTypeBookingContext.internalBinaryWrite(message.ByAppointmentTypes[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string ProjectName = 3; */
if (message.ProjectName !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ProjectName);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteProjectBookingContext
*/
export const SiteProjectBookingContext = new SiteProjectBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteProjectAptTypeBookingContext$Type extends MessageType<SiteProjectAptTypeBookingContext> {
constructor() {
super("api.SiteProjectAptTypeBookingContext", [
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
{ no: 2, name: "Actors", kind: "message", localName: "Actors", jsonName: "Actors", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteProjectAptTypeBookingActorsContext }
]);
}
create(value?: PartialMessage<SiteProjectAptTypeBookingContext>): SiteProjectAptTypeBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Actors = [];
if (value !== undefined)
reflectionMergePartial<SiteProjectAptTypeBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteProjectAptTypeBookingContext): SiteProjectAptTypeBookingContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentType AppointmentType */ 1:
message.AppointmentType = reader.int32();
break;
case /* repeated api.SiteProjectAptTypeBookingActorsContext Actors */ 2:
message.Actors.push(SiteProjectAptTypeBookingActorsContext.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: SiteProjectAptTypeBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentType AppointmentType = 1; */
if (message.AppointmentType !== 0)
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
/* repeated api.SiteProjectAptTypeBookingActorsContext Actors = 2; */
for (let i = 0; i < message.Actors.length; i++)
SiteProjectAptTypeBookingActorsContext.internalBinaryWrite(message.Actors[i], 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.SiteProjectAptTypeBookingContext
*/
export const SiteProjectAptTypeBookingContext = new SiteProjectAptTypeBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteProjectAptTypeBookingActorsContext$Type extends MessageType<SiteProjectAptTypeBookingActorsContext> {
constructor() {
super("api.SiteProjectAptTypeBookingActorsContext", [
{ no: 1, name: "CommandIdentifierEntry", kind: "enum", localName: "CommandIdentifierEntry", jsonName: "CommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry] },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "ActorName", kind: "scalar", localName: "ActorName", jsonName: "ActorName", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SiteProjectAptTypeBookingActorsContext>): SiteProjectAptTypeBookingActorsContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.CommandIdentifierEntry = 0;
message.ActorID = "";
message.ActorName = "";
if (value !== undefined)
reflectionMergePartial<SiteProjectAptTypeBookingActorsContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteProjectAptTypeBookingActorsContext): SiteProjectAptTypeBookingActorsContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.CommandIdentifierEntry CommandIdentifierEntry */ 1:
message.CommandIdentifierEntry = reader.int32();
break;
case /* string ActorID */ 2:
message.ActorID = reader.string();
break;
case /* string ActorName */ 3:
message.ActorName = 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: SiteProjectAptTypeBookingActorsContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.CommandIdentifierEntry CommandIdentifierEntry = 1; */
if (message.CommandIdentifierEntry !== 0)
writer.tag(1, WireType.Varint).int32(message.CommandIdentifierEntry);
/* string ActorID = 2; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
/* string ActorName = 3; */
if (message.ActorName !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ActorName);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteProjectAptTypeBookingActorsContext
*/
export const SiteProjectAptTypeBookingActorsContext = new SiteProjectAptTypeBookingActorsContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class InitBookerProfileRequest$Type extends MessageType<InitBookerProfileRequest> {
constructor() {
super("api.InitBookerProfileRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<InitBookerProfileRequest>): InitBookerProfileRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.ActorID = "";
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<InitBookerProfileRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitBookerProfileRequest): InitBookerProfileRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string ActorID */ 2:
message.ActorID = reader.string();
break;
case /* string SiteID */ 3:
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: InitBookerProfileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string ActorID = 2; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
/* string SiteID = 3; */
if (message.SiteID !== "")
writer.tag(3, 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.InitBookerProfileRequest
*/
export const InitBookerProfileRequest = new InitBookerProfileRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class InitBookerProfileResponse$Type extends MessageType<InitBookerProfileResponse> {
constructor() {
super("api.InitBookerProfileResponse", [
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<InitBookerProfileResponse>): InitBookerProfileResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.OrganisationID = "";
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<InitBookerProfileResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InitBookerProfileResponse): InitBookerProfileResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string OrganisationID */ 1:
message.OrganisationID = reader.string();
break;
case /* string SiteID */ 2:
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: InitBookerProfileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string OrganisationID = 1; */
if (message.OrganisationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
/* string SiteID = 2; */
if (message.SiteID !== "")
writer.tag(2, 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.InitBookerProfileResponse
*/
export const InitBookerProfileResponse = new InitBookerProfileResponse$Type();
/**
* @generated ServiceType for protobuf service api.SiteService
*/
export const SiteService = new ServiceType("api.SiteService", [
{ name: "GetSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get site settings" }, "api.rscType": "Project", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSettingsRequest, O: GetSettingsResponse },
{ name: "UpdateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update site Settings" }, "api.rscType": "Project", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSettingsRequest, O: UpdateSettingsResponse },
{ 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": "Project", "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": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeletePhotoRequest, O: DeletePhotoResponse },
{ name: "UploadInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace an instruction document on a site for a specific language. <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": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadInstructionDocumentRequest, O: UploadInstructionDocumentResponse },
{ name: "DeleteInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete an instruction document on a site for a specific language. If no languages are specified, all the documents per language are removed" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteInstructionDocumentRequest, O: DeleteInstructionDocumentResponse },
{ name: "GetAvailableSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get available slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAvailableSlotsResponse },
{ name: "GetAllSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get all slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAllSlotsResponse },
{ name: "CheckAppointmentCommission", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Check an appointment commision" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckAppointmentCommissionRequest, O: CheckAppointmentCommissionResponse },
{ name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
{ name: "BookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment without order references, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
{ name: "ForceBookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelAppointmentRequest, O: CancelAppointmentResponse },
{ name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails), if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails) without order references, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails) even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment from a wms even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSUpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "RescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, O: BookAppointmentResponse },
{ name: "ForceRescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Force Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, O: BookAppointmentResponse },
{ name: "DeleteSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSettingsRequest, O: DeleteSettingsResult },
{ name: "CreateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateSettingsRequest, O: CreateSettingsResponse },
{ name: "GetUnits", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the Units of a site to display" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetUnitsRequest, O: GetUnitsResponse },
{ name: "GetBasicSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the basic settings of a site to display" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBasicSettingsRequest, O: GetBasicSettingsResponse },
{ name: "ListSitesAuthorizedForBooking", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List the sites allowing booking for a project" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListSitesAuthorizedForBookingRequest, O: ListSitesAuthorizedForBookingResponse },
{ name: "ListAllowedSites", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List the sites allowing booking for a project" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ListAllowedSitesRequest, O: ListAllowedSitesResponse },
{ name: "GetActorAuthorisation", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the actor authorisation for a site" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetActorAuthorisationRequest, O: GetActorAuthorisationResponse },
{ name: "GetBookingSegmentations", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the restricted segmentation for the current state of booking" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingSegmentationsRequest, O: GetBookingSegmentationsResponse },
{ name: "ResolveSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get Site from either site projectid or projectid with actor id alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ResolveSiteRequest, O: ResolveSiteResponse },
{ name: "InitBookerProfile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Init the booker profile for a site. The user will gain access to the site and be able to book appointments." }, "api.rscType": "Platform", "api.roles": "" }, I: InitBookerProfileRequest, O: InitBookerProfileResponse },
{ name: "GetBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the booking context for a given Project and Actor" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingContextRequest, O: GetBookingContextResponse },
{ name: "GetMyBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get your appointment available booking context according to your permissions." }, "api.rscType": "Platform", "api.roles": "" }, I: GetMyBookingContextRequest, O: GetMyBookingContextResponse },
{ name: "ListSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List all settings in the platform." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListSettingsRequest, O: ListSettingsResponse }
], { "api.k8sService": "core-site" });