Files
npm-core-sdk/site.ts
2025-10-07 14:25:55 +00:00

3614 lines
192 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "site.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { QuantityByUnit } from "./slotbooking";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { SlotGroup } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { Commission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
import { FileDataRequest } from "./shared";
import { RequestProjectHeader } from "./shared";
import { RequestOrganisationHeader } from "./shared";
import { CarrierInformation } from "./slotbooking";
import { Document } from "./slotbooking";
import { Instruction } from "./slotbooking";
import { CapacityRule } from "./slotbooking";
import { DurationRule } from "./slotbooking";
import { OpeningRule } from "./slotbooking";
import { Unit } from "./slotbooking";
import { ProjectAuthorisation } from "./slotbooking";
import { Segmentation } from "./slotbooking";
import { Address } from "./repositoryShared";
/**
* Message defining the structure of a Site.
*
* @generated from protobuf message api.Site
*/
export interface Site {
/**
* @generated from protobuf field: string ID = 1
*/
ID: string; // Unique identifier for the site. (formatted as such: "SITE_<OrganisationID>_<UUID>")
/**
* Name of the Site
*
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* Identifier for the organisation associated with the site.
*
* @generated from protobuf field: string OrganisationID = 3
*/
OrganisationID: string;
/**
* @generated from protobuf field: bool Active = 4
*/
Active: boolean; // If the Site is active or not
/**
* @generated from protobuf field: string PhotoURI = 5
*/
PhotoURI: string; // Link to a picture to display
/**
* @generated from protobuf field: api.Address Address = 6
*/
Address?: Address; // Address of the Site
/**
* @generated from protobuf field: repeated string Phones = 7
*/
Phones: string[];
/**
* @generated from protobuf field: string Fax = 8
*/
Fax: string;
/**
* List of Segmentations that segment the logistic site.
*
* @generated from protobuf field: repeated api.Segmentation Segmentations = 9
*/
Segmentations: Segmentation[];
/**
* List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with.
*
* @generated from protobuf field: repeated api.ProjectAuthorisation Authorisations = 10
*/
Authorisations: ProjectAuthorisation[];
/**
* List of containment units which will be used to estimate the needed time to load or unload.
*
* @generated from protobuf field: repeated api.Unit Units = 11
*/
Units: Unit[]; // après le champs
/**
* Definition of the opening rules. 2 opening rule definitions cannot overlap.
*
* @generated from protobuf field: repeated api.OpeningRule OpeningRules = 12
*/
OpeningRules: OpeningRule[];
/**
* Definition of the booking slot duration rules.
*
* @generated from protobuf field: repeated api.DurationRule DurationRules = 13
*/
DurationRules: DurationRule[];
/**
* Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied.
*
* @generated from protobuf field: repeated api.CapacityRule CapacityRules = 14
*/
CapacityRules: CapacityRule[];
/**
* @generated from protobuf field: api.Instruction Instruction = 15
*/
Instruction?: Instruction;
/**
* Set of instruction document, listing necessary equipment and such
*
* @generated from protobuf field: repeated api.Document InstructionDocuments = 16
*/
InstructionDocuments: Document[];
/**
* Set of required or optional information to ask when a slot is booked
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17
*/
CarrierInformation: CarrierInformation[];
/**
* Defines the rounded value to define booking period
*
* @generated from protobuf field: uint32 RoundedPeriodInMinutes = 18
*/
RoundedPeriodInMinutes: number;
/**
* Site Time zone
*
* @generated from protobuf field: string TimeZone = 19
*/
TimeZone: string;
/**
* Must be a valid email address
*
* @generated from protobuf field: repeated string Emails = 20
*/
Emails: string[];
/**
* Set the fallback language in case of missing translation
*
* @generated from protobuf field: string DefaultSiteLanguageISO6391 = 21
*/
DefaultSiteLanguageISO6391: string;
// SiteStatusEnum status = 22
// [
// (validate.rules).enum.defined_only = true
// ];
/**
* @generated from protobuf field: string PrefixAppointmentID = 23
*/
PrefixAppointmentID: string;
}
// ========== REQUESTS & RESPONSE MESSAGES ==========
/**
* Create
*
* @generated from protobuf message api.CreateSettingsRequest
*/
export interface CreateSettingsRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* Identifier of the new Site
*
* @generated from protobuf field: string SiteID = 2
*/
SiteID: string;
/**
* Name of the new Site, modifiable after creation
*
* @generated from protobuf field: string SiteName = 3
*/
SiteName: string;
/**
* Must be a valid email address from a user know to the platform
*
* @generated from protobuf field: string Email = 4
*/
Email: string;
}
/**
* @generated from protobuf message api.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;
}
/**
* @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.
*
* @generated from protobuf field: repeated api.Segmentation Segmentations = 9
*/
Segmentations: Segmentation[];
/**
* List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with.
*
* @generated from protobuf field: repeated api.ProjectAuthorisation Authorisations = 10
*/
Authorisations: ProjectAuthorisation[];
/**
* @generated from protobuf field: repeated api.Unit Units = 11
*/
Units: Unit[]; // List of containment units which will be used to compute the appointment duration. At least one unit id is mandatory : APPOINTMENT_UNITID.
/**
* Definition of the opening rules. 2 opening rule definitions cannot overlap.
*
* @generated from protobuf field: repeated api.OpeningRule OpeningRules = 12
*/
OpeningRules: OpeningRule[];
/**
* Definition of the booking slot duration rules.
*
* @generated from protobuf field: repeated api.DurationRule DurationRules = 13
*/
DurationRules: DurationRule[];
/**
* Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied.
*
* @generated from protobuf field: repeated api.CapacityRule CapacityRules = 14
*/
CapacityRules: CapacityRule[];
/**
* @generated from protobuf field: api.Instruction Instruction = 15
*/
Instruction?: Instruction;
/**
* Set of required or optional information to ask when a slot is booked
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17
*/
CarrierInformation: CarrierInformation[];
/**
* Defines the rounded value of periods in minutes, must be greater than 0.
*
* @generated from protobuf field: uint32 RoundedPeriodInMinutes = 18
*/
RoundedPeriodInMinutes: number;
/**
* Add Site Time zone
*
* @generated from protobuf field: string TimeZone = 19
*/
TimeZone: string;
/**
* Must be a valid email address
*
* @generated from protobuf field: repeated string Emails = 20
*/
Emails: string[];
/**
* set the fallback language in case of missing translation
*
* @generated from protobuf field: string DefaultSiteLanguageISO6391 = 21
*/
DefaultSiteLanguageISO6391: string;
/**
* @generated from protobuf field: string PrefixAppointmentID = 22
*/
PrefixAppointmentID: string;
}
/**
* @generated from protobuf message api.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 {
}
/**
* SuggestID
*
* @generated from protobuf message api.SuggestSiteIDRequest
*/
export interface SuggestSiteIDRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 3
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: string Name = 2
*/
Name: string;
}
/**
* @generated from protobuf message api.SuggestSiteIDResult
*/
export interface SuggestSiteIDResult {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
}
/**
* GetAvailableSlots
*
* @generated from protobuf message api.GetAvailableSlotsRequest
*/
export interface GetAvailableSlotsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Expedition / Reception / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* List of the orders and projects for which the appointment is made, with the quantities
*
* @generated from protobuf field: repeated api.Commission Commissions = 3
*/
Commissions: Commission[];
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* @generated from protobuf field: string StartDate = 5
*/
StartDate: string; // Start date of the range to look for available slots, format yyyy-mm-dd.
/**
* @generated from protobuf field: string EndDate = 6
*/
EndDate: string; // End date of the range to look for available slots, format yyyy-mm-dd.
/**
* Optional, needed to skip counting those appointments in the capacity rules
*
* @generated from protobuf field: repeated string SkippedAppointmentIDs = 7
*/
SkippedAppointmentIDs: string[];
}
/**
* @generated from protobuf message api.GetAvailableSlotsResponse
*/
export interface GetAvailableSlotsResponse {
/**
* @generated from protobuf field: repeated api.SlotGroup SlotGroups = 1
*/
SlotGroups: SlotGroup[]; // List of slot groups available for the current request
/**
* @generated from protobuf field: uint64 EstimatedNeededDurationInMinutes = 2
*/
EstimatedNeededDurationInMinutes: bigint; // Computed needed slot duration in minutes
}
/**
* @generated from protobuf message api.SlotGroupAndReason
*/
export interface SlotGroupAndReason {
/**
* @generated from protobuf field: api.SlotGroup SlotGroup = 1
*/
SlotGroup?: SlotGroup;
/**
* @generated from protobuf field: string Reason = 2
*/
Reason: string;
}
/**
* @generated from protobuf message api.GetAllSlotsResponse
*/
export interface GetAllSlotsResponse {
/**
* @generated from protobuf field: repeated api.SlotGroupAndReason SlotGroupAndReasons = 1
*/
SlotGroupAndReasons: SlotGroupAndReason[]; // List of slot groups and the reason of their status
/**
* @generated from protobuf field: uint64 EstimatedNeededDurationInMinutes = 2
*/
EstimatedNeededDurationInMinutes: bigint; // Computed needed slot duration in minutes
}
/**
* BookAppointment
*
* @generated from protobuf message api.BookAppointmentRequest
*/
export interface BookAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Expedition / Reception / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* List of the orders and projects for which the appointment is made, with the quantities
*
* @generated from protobuf field: repeated api.Commission Commissions = 3
*/
Commissions: Commission[];
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* The slot to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 6
*/
Slots: Slot[];
/**
* TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
* User mails being notified on this appointment
*
* @generated from protobuf field: repeated string Emails = 8
*/
Emails: string[];
/**
* The carrier identifier who requests to book the appointment
*
* @generated from protobuf field: string CarrierID = 9
*/
CarrierID: string;
/**
* The carrier name who requests to book the appointment
*
* @generated from protobuf field: string CarrierName = 10
*/
CarrierName: string;
/**
* The appointment ID, usually generated using siteCounterServices
*
* @generated from protobuf field: string AppointmentID = 11
*/
AppointmentID: string;
/**
* Acknowledgment of the site instructions
*
* @generated from protobuf field: bool InstructionAck = 12
*/
InstructionAck: boolean;
}
/**
* BookAppointmentNoReference
*
* @generated from protobuf message api.BookAppointmentNoReferenceRequest
*/
export interface BookAppointmentNoReferenceRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Expedition / Reception / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* Project for which the appointment is made, with the quantities
*
* @generated from protobuf field: string ProjectID = 3
*/
ProjectID: string;
/**
* quantities
*
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 4
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 5
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 6
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* The slot to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 7
*/
Slots: Slot[];
/**
* TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
* User mails being notified on this appointment
*
* @generated from protobuf field: repeated string Emails = 8
*/
Emails: string[];
/**
* The carrier identifier who requests to book the appointment
*
* @generated from protobuf field: string CarrierID = 9
*/
CarrierID: string;
/**
* The carrier name who requests to book the appointment
*
* @generated from protobuf field: string CarrierName = 10
*/
CarrierName: string;
/**
* The appointment ID, usually generated using siteCounterServices
*
* @generated from protobuf field: string AppointmentID = 11
*/
AppointmentID: string;
/**
* The Reason for which the appointment has no commissions
*
* @generated from protobuf field: string Reason = 12
*/
Reason: string;
/**
* Acknowledgment of the site instructions
*
* @generated from protobuf field: bool InstructionAck = 13
*/
InstructionAck: boolean;
}
/**
* ForceBookAppointment
*
* @generated from protobuf message api.ForceBookAppointmentRequest
*/
export interface ForceBookAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* Type of appointment : Expedition / Reception / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
*/
AppointmentType: AppointmentType;
/**
* List of the orders and projects for which the appointment is made, with the quantities
*
* @generated from protobuf field: repeated api.Commission Commissions = 3
*/
Commissions: Commission[];
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* The slot to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 6
*/
Slots: Slot[];
/**
* TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
* User mails being notified on this appointment
*
* @generated from protobuf field: repeated string Emails = 8
*/
Emails: string[];
/**
* The carrier identifier who requests to book the appointment
*
* @generated from protobuf field: string CarrierID = 9
*/
CarrierID: string;
/**
* The carrier name who requests to book the appointment
*
* @generated from protobuf field: string CarrierName = 10
*/
CarrierName: string;
/**
* time zone, useful only if a WMS send a message
*
* @generated from protobuf field: string TimeZone = 11
*/
TimeZone: string;
/**
* The appointment ID, usually generated using siteCounterServices
*
* @generated from protobuf field: string AppointmentID = 12
*/
AppointmentID: string;
/**
* Acknowledgment of the site instructions
*
* @generated from protobuf field: bool InstructionAck = 13
*/
InstructionAck: boolean;
/**
* In case of no reference, Project for which the appointment is made, with the quantities
*
* @generated from protobuf field: string ProjectID = 14
*/
ProjectID: string;
/**
* In case of no reference, The Reason for which the appointment has no reference
*
* @generated from protobuf field: string Reason = 15
*/
Reason: string;
/**
* In case of no reference, quantities loaded or to load in the truck
*
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 16
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
}
/**
* @generated from protobuf message api.BookAppointmentResponse
*/
export interface BookAppointmentResponse {
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* CancelAppointment
*
* @generated from protobuf message api.CancelAppointmentRequest
*/
export interface CancelAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string AppointmentID = 2
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.CancelAppointmentResponse
*/
export interface CancelAppointmentResponse {
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.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 modified Commissions for the appointment
*
* @generated from protobuf field: repeated api.Commission Commissions = 4
*/
Commissions: Commission[];
}
/**
* @generated from protobuf message api.UpdateAppointmentNoReferenceRequest
*/
export interface UpdateAppointmentNoReferenceRequest {
/**
* @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[];
/**
* Project for which the appointment is made, with the quantities
*
* @generated from protobuf field: string ProjectID = 4
*/
ProjectID: string;
/**
* In case of no reference, quantities
*
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 5
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
/**
* In case of no reference, The Reason for which the appointment has no commissions
*
* @generated from protobuf field: string Reason = 6
*/
Reason: string;
}
/**
* @generated from protobuf message api.ForceUpdateAppointmentRequest
*/
export interface ForceUpdateAppointmentRequest {
/**
* @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 modified Commissions for the appointment
*
* @generated from protobuf field: repeated api.Commission Commissions = 4
*/
Commissions: Commission[];
/**
* time zone, useful only if a WMS use this API
*
* @generated from protobuf field: string TimeZone = 5
*/
TimeZone: string;
/**
* Project for which the appointment is made, with the quantities
*
* @generated from protobuf field: string ProjectID = 6
*/
ProjectID: string;
/**
* In case of no reference, quantities
*
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 7
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
/**
* In case of no reference, The Reason for which the appointment has no commissions
*
* @generated from protobuf field: string Reason = 8
*/
Reason: string;
}
/**
* ListUserSites
*
* @generated from protobuf message api.ListUserSitesRequest
*/
export interface ListUserSitesRequest {
/**
* TODO optional filter
*
* @generated from protobuf field: repeated string ProjectID = 1
*/
ProjectID: string[];
}
/**
* @generated from protobuf message api.ListUserSitesResponse
*/
export interface ListUserSitesResponse {
/**
* @generated from protobuf field: repeated api.Site Sites = 1
*/
Sites: Site[];
}
/**
* @generated from protobuf message api.DeleteSettingsRequest
*/
export interface DeleteSettingsRequest {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
}
/**
* @generated from protobuf message api.DeleteSettingsResult
*/
export interface DeleteSettingsResult {
}
// @generated message type with reflection information, may provide speed optimized methods
class Site$Type extends MessageType<Site> {
constructor() {
super("api.Site", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 7, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\"]" } } },
{ no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
{ no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation },
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 12, name: "OpeningRules", kind: "message", localName: "OpeningRules", jsonName: "OpeningRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningRule },
{ no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule },
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/ },
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } } } }
]);
}
create(value?: PartialMessage<Site>): Site {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.Name = "";
message.OrganisationID = "";
message.Active = false;
message.PhotoURI = "";
message.Phones = [];
message.Fax = "";
message.Segmentations = [];
message.Authorisations = [];
message.Units = [];
message.OpeningRules = [];
message.DurationRules = [];
message.CapacityRules = [];
message.InstructionDocuments = [];
message.CarrierInformation = [];
message.RoundedPeriodInMinutes = 0;
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
message.PrefixAppointmentID = "";
if (value !== undefined)
reflectionMergePartial<Site>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Site): Site {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ID */ 1:
message.ID = reader.string();
break;
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string OrganisationID */ 3:
message.OrganisationID = reader.string();
break;
case /* bool Active */ 4:
message.Active = reader.bool();
break;
case /* string PhotoURI */ 5:
message.PhotoURI = reader.string();
break;
case /* api.Address Address */ 6:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
case /* repeated string Phones */ 7:
message.Phones.push(reader.string());
break;
case /* string Fax */ 8:
message.Fax = reader.string();
break;
case /* repeated api.Segmentation Segmentations */ 9:
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.ProjectAuthorisation Authorisations */ 10:
message.Authorisations.push(ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Unit Units */ 11:
message.Units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.OpeningRule OpeningRules */ 12:
message.OpeningRules.push(OpeningRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.DurationRule DurationRules */ 13:
message.DurationRules.push(DurationRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CapacityRule CapacityRules */ 14:
message.CapacityRules.push(CapacityRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Instruction Instruction */ 15:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.Document InstructionDocuments */ 16:
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformation CarrierInformation */ 17:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 RoundedPeriodInMinutes */ 18:
message.RoundedPeriodInMinutes = reader.uint32();
break;
case /* string TimeZone */ 19:
message.TimeZone = reader.string();
break;
case /* repeated string Emails */ 20:
message.Emails.push(reader.string());
break;
case /* string DefaultSiteLanguageISO6391 */ 21:
message.DefaultSiteLanguageISO6391 = reader.string();
break;
case /* string PrefixAppointmentID */ 23:
message.PrefixAppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: Site, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string OrganisationID = 3; */
if (message.OrganisationID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.OrganisationID);
/* bool Active = 4; */
if (message.Active !== false)
writer.tag(4, WireType.Varint).bool(message.Active);
/* string PhotoURI = 5; */
if (message.PhotoURI !== "")
writer.tag(5, WireType.LengthDelimited).string(message.PhotoURI);
/* api.Address Address = 6; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated string Phones = 7; */
for (let i = 0; i < message.Phones.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 8; */
if (message.Fax !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Fax);
/* repeated api.Segmentation Segmentations = 9; */
for (let i = 0; i < message.Segmentations.length; i++)
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ProjectAuthorisation Authorisations = 10; */
for (let i = 0; i < message.Authorisations.length; i++)
ProjectAuthorisation.internalBinaryWrite(message.Authorisations[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Unit Units = 11; */
for (let i = 0; i < message.Units.length; i++)
Unit.internalBinaryWrite(message.Units[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
/* repeated api.OpeningRule OpeningRules = 12; */
for (let i = 0; i < message.OpeningRules.length; i++)
OpeningRule.internalBinaryWrite(message.OpeningRules[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
/* repeated api.DurationRule DurationRules = 13; */
for (let i = 0; i < message.DurationRules.length; i++)
DurationRule.internalBinaryWrite(message.DurationRules[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CapacityRule CapacityRules = 14; */
for (let i = 0; i < message.CapacityRules.length; i++)
CapacityRule.internalBinaryWrite(message.CapacityRules[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
/* api.Instruction Instruction = 15; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Document InstructionDocuments = 16; */
for (let i = 0; i < message.InstructionDocuments.length; i++)
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformation CarrierInformation = 17; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
/* uint32 RoundedPeriodInMinutes = 18; */
if (message.RoundedPeriodInMinutes !== 0)
writer.tag(18, WireType.Varint).uint32(message.RoundedPeriodInMinutes);
/* string TimeZone = 19; */
if (message.TimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TimeZone);
/* repeated string Emails = 20; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(20, WireType.LengthDelimited).string(message.Emails[i]);
/* string DefaultSiteLanguageISO6391 = 21; */
if (message.DefaultSiteLanguageISO6391 !== "")
writer.tag(21, WireType.LengthDelimited).string(message.DefaultSiteLanguageISO6391);
/* string PrefixAppointmentID = 23; */
if (message.PrefixAppointmentID !== "")
writer.tag(23, WireType.LengthDelimited).string(message.PrefixAppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Site
*/
export const Site = new Site$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateSettingsRequest$Type extends MessageType<CreateSettingsRequest> {
constructor() {
super("api.CreateSettingsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", email: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "SiteID", "Email", "SiteName"] } } });
}
create(value?: PartialMessage<CreateSettingsRequest>): CreateSettingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
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 /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string SiteID */ 2:
message.SiteID = reader.string();
break;
case /* string SiteName */ 3:
message.SiteName = reader.string();
break;
case /* string Email */ 4:
message.Email = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: CreateSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string SiteID = 2; */
if (message.SiteID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.SiteID);
/* string SiteName = 3; */
if (message.SiteName !== "")
writer.tag(3, WireType.LengthDelimited).string(message.SiteName);
/* string Email = 4; */
if (message.Email !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Email);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.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, options: { "validate.rules": { message: { required: true } } } }
]);
}
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: { "validate.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 GetSettingsResponse$Type extends MessageType<GetSettingsResponse> {
constructor() {
super("api.GetSettingsResponse", [
{ no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "validate.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: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 7, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\"]" } } },
{ no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
{ no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation },
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 12, name: "OpeningRules", kind: "message", localName: "OpeningRules", jsonName: "OpeningRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningRule },
{ no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule },
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { gt: 0 } } } },
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 22, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<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.CarrierInformation = [];
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:
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.ProjectAuthorisation Authorisations */ 10:
message.Authorisations.push(ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Unit Units */ 11:
message.Units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.OpeningRule OpeningRules */ 12:
message.OpeningRules.push(OpeningRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.DurationRule DurationRules */ 13:
message.DurationRules.push(DurationRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CapacityRule CapacityRules */ 14:
message.CapacityRules.push(CapacityRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Instruction Instruction */ 15:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.CarrierInformation CarrierInformation */ 17:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 RoundedPeriodInMinutes */ 18:
message.RoundedPeriodInMinutes = reader.uint32();
break;
case /* string TimeZone */ 19:
message.TimeZone = reader.string();
break;
case /* repeated string Emails */ 20:
message.Emails.push(reader.string());
break;
case /* string DefaultSiteLanguageISO6391 */ 21:
message.DefaultSiteLanguageISO6391 = reader.string();
break;
case /* string PrefixAppointmentID */ 22:
message.PrefixAppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: 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; */
for (let i = 0; i < message.Segmentations.length; i++)
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ProjectAuthorisation Authorisations = 10; */
for (let i = 0; i < message.Authorisations.length; i++)
ProjectAuthorisation.internalBinaryWrite(message.Authorisations[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Unit Units = 11; */
for (let i = 0; i < message.Units.length; i++)
Unit.internalBinaryWrite(message.Units[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
/* repeated api.OpeningRule OpeningRules = 12; */
for (let i = 0; i < message.OpeningRules.length; i++)
OpeningRule.internalBinaryWrite(message.OpeningRules[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
/* repeated api.DurationRule DurationRules = 13; */
for (let i = 0; i < message.DurationRules.length; i++)
DurationRule.internalBinaryWrite(message.DurationRules[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CapacityRule CapacityRules = 14; */
for (let i = 0; i < message.CapacityRules.length; i++)
CapacityRule.internalBinaryWrite(message.CapacityRules[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
/* api.Instruction Instruction = 15; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformation CarrierInformation = 17; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
/* uint32 RoundedPeriodInMinutes = 18; */
if (message.RoundedPeriodInMinutes !== 0)
writer.tag(18, WireType.Varint).uint32(message.RoundedPeriodInMinutes);
/* string TimeZone = 19; */
if (message.TimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TimeZone);
/* repeated string Emails = 20; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(20, WireType.LengthDelimited).string(message.Emails[i]);
/* string DefaultSiteLanguageISO6391 = 21; */
if (message.DefaultSiteLanguageISO6391 !== "")
writer.tag(21, WireType.LengthDelimited).string(message.DefaultSiteLanguageISO6391);
/* string PrefixAppointmentID = 22; */
if (message.PrefixAppointmentID !== "")
writer.tag(22, WireType.LengthDelimited).string(message.PrefixAppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.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: { "validate.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: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File"] } } });
}
create(value?: PartialMessage<UploadPhotoRequest>): UploadPhotoRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<UploadPhotoRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadPhotoRequest): UploadPhotoRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.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: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<DeletePhotoRequest>): DeletePhotoRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeletePhotoRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeletePhotoRequest): DeletePhotoRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.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: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest },
{ no: 3, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 5, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "AckRequired", kind: "scalar", localName: "AckRequired", jsonName: "AckRequired", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DocID", "LanguageCodeISO6391"] } } });
}
create(value?: PartialMessage<UploadInstructionDocumentRequest>): UploadInstructionDocumentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.DocID = "";
message.LanguageCodeISO6391 = "";
message.Name = "";
message.AckRequired = false;
if (value !== undefined)
reflectionMergePartial<UploadInstructionDocumentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadInstructionDocumentRequest): UploadInstructionDocumentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.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: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language. It can be omitted in order to delete all the documents per language", example: "\"en\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DocID"] } } });
}
create(value?: PartialMessage<DeleteInstructionDocumentRequest>): DeleteInstructionDocumentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.DocID = "";
message.LanguageCodeISO6391 = "";
if (value !== undefined)
reflectionMergePartial<DeleteInstructionDocumentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteInstructionDocumentRequest): DeleteInstructionDocumentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.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 SuggestSiteIDRequest$Type extends MessageType<SuggestSiteIDRequest> {
constructor() {
super("api.SuggestSiteIDRequest", [
{ no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } });
}
create(value?: PartialMessage<SuggestSiteIDRequest>): SuggestSiteIDRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
if (value !== undefined)
reflectionMergePartial<SuggestSiteIDRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuggestSiteIDRequest): SuggestSiteIDRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 3:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name */ 2:
message.Name = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: SuggestSiteIDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* api.RequestOrganisationHeader Header = 3; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SuggestSiteIDRequest
*/
export const SuggestSiteIDRequest = new SuggestSiteIDRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SuggestSiteIDResult$Type extends MessageType<SuggestSiteIDResult> {
constructor() {
super("api.SuggestSiteIDResult", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SuggestSiteIDResult>): SuggestSiteIDResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<SuggestSiteIDResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuggestSiteIDResult): SuggestSiteIDResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SiteID */ 1:
message.SiteID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: SuggestSiteIDResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SuggestSiteIDResult
*/
export const SuggestSiteIDResult = new SuggestSiteIDResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest> {
constructor() {
super("api.GetAvailableSlotsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetAvailableSlotsRequest>): GetAvailableSlotsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.StartDate = "";
message.EndDate = "";
message.SkippedAppointmentIDs = [];
if (value !== undefined)
reflectionMergePartial<GetAvailableSlotsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAvailableSlotsRequest): GetAvailableSlotsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.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;
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]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetAvailableSlotsRequest
*/
export const GetAvailableSlotsRequest = new GetAvailableSlotsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAvailableSlotsResponse$Type extends MessageType<GetAvailableSlotsResponse> {
constructor() {
super("api.GetAvailableSlotsResponse", [
{ no: 1, name: "SlotGroups", kind: "message", localName: "SlotGroups", jsonName: "SlotGroups", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SlotGroup },
{ no: 2, name: "EstimatedNeededDurationInMinutes", kind: "scalar", localName: "EstimatedNeededDurationInMinutes", jsonName: "EstimatedNeededDurationInMinutes", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
]);
}
create(value?: PartialMessage<GetAvailableSlotsResponse>): GetAvailableSlotsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SlotGroups = [];
message.EstimatedNeededDurationInMinutes = 0n;
if (value !== undefined)
reflectionMergePartial<GetAvailableSlotsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAvailableSlotsResponse): GetAvailableSlotsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SlotGroup SlotGroups */ 1:
message.SlotGroups.push(SlotGroup.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint64 EstimatedNeededDurationInMinutes */ 2:
message.EstimatedNeededDurationInMinutes = reader.uint64().toBigInt();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: GetAvailableSlotsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SlotGroup SlotGroups = 1; */
for (let i = 0; i < message.SlotGroups.length; i++)
SlotGroup.internalBinaryWrite(message.SlotGroups[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* uint64 EstimatedNeededDurationInMinutes = 2; */
if (message.EstimatedNeededDurationInMinutes !== 0n)
writer.tag(2, WireType.Varint).uint64(message.EstimatedNeededDurationInMinutes);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetAvailableSlotsResponse
*/
export const GetAvailableSlotsResponse = new GetAvailableSlotsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SlotGroupAndReason$Type extends MessageType<SlotGroupAndReason> {
constructor() {
super("api.SlotGroupAndReason", [
{ no: 1, name: "SlotGroup", kind: "message", localName: "SlotGroup", jsonName: "SlotGroup", T: () => SlotGroup },
{ no: 2, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SlotGroupAndReason>): SlotGroupAndReason {
const message = globalThis.Object.create((this.messagePrototype!));
message.Reason = "";
if (value !== undefined)
reflectionMergePartial<SlotGroupAndReason>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SlotGroupAndReason): SlotGroupAndReason {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.SlotGroup SlotGroup */ 1:
message.SlotGroup = SlotGroup.internalBinaryRead(reader, reader.uint32(), options, message.SlotGroup);
break;
case /* string Reason */ 2:
message.Reason = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: SlotGroupAndReason, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.SlotGroup SlotGroup = 1; */
if (message.SlotGroup)
SlotGroup.internalBinaryWrite(message.SlotGroup, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Reason = 2; */
if (message.Reason !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Reason);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SlotGroupAndReason
*/
export const SlotGroupAndReason = new SlotGroupAndReason$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAllSlotsResponse$Type extends MessageType<GetAllSlotsResponse> {
constructor() {
super("api.GetAllSlotsResponse", [
{ no: 1, name: "SlotGroupAndReasons", kind: "message", localName: "SlotGroupAndReasons", jsonName: "SlotGroupAndReasons", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SlotGroupAndReason },
{ no: 2, name: "EstimatedNeededDurationInMinutes", kind: "scalar", localName: "EstimatedNeededDurationInMinutes", jsonName: "EstimatedNeededDurationInMinutes", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
]);
}
create(value?: PartialMessage<GetAllSlotsResponse>): GetAllSlotsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SlotGroupAndReasons = [];
message.EstimatedNeededDurationInMinutes = 0n;
if (value !== undefined)
reflectionMergePartial<GetAllSlotsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAllSlotsResponse): GetAllSlotsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SlotGroupAndReason SlotGroupAndReasons */ 1:
message.SlotGroupAndReasons.push(SlotGroupAndReason.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint64 EstimatedNeededDurationInMinutes */ 2:
message.EstimatedNeededDurationInMinutes = reader.uint64().toBigInt();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: GetAllSlotsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SlotGroupAndReason SlotGroupAndReasons = 1; */
for (let i = 0; i < message.SlotGroupAndReasons.length; i++)
SlotGroupAndReason.internalBinaryWrite(message.SlotGroupAndReasons[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* uint64 EstimatedNeededDurationInMinutes = 2; */
if (message.EstimatedNeededDurationInMinutes !== 0n)
writer.tag(2, WireType.Varint).uint64(message.EstimatedNeededDurationInMinutes);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetAllSlotsResponse
*/
export const GetAllSlotsResponse = new GetAllSlotsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
constructor() {
super("api.BookAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } },
{ no: 12, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "Segmentations", "CarrierInformation"] } } });
}
create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
message.CarrierName = "";
message.AppointmentID = "";
message.InstructionAck = false;
if (value !== undefined)
reflectionMergePartial<BookAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookAppointmentRequest): BookAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.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.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 6:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string Emails */ 8:
message.Emails.push(reader.string());
break;
case /* string CarrierID */ 9:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 10:
message.CarrierName = reader.string();
break;
case /* string AppointmentID */ 11:
message.AppointmentID = reader.string();
break;
case /* bool InstructionAck */ 12:
message.InstructionAck = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: BookAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.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.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 6; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated string Emails = 8; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]);
/* string CarrierID = 9; */
if (message.CarrierID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 10; */
if (message.CarrierName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
/* string AppointmentID = 11; */
if (message.AppointmentID !== "")
writer.tag(11, WireType.LengthDelimited).string(message.AppointmentID);
/* bool InstructionAck = 12; */
if (message.InstructionAck !== false)
writer.tag(12, WireType.Varint).bool(message.InstructionAck);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.BookAppointmentRequest
*/
export const BookAppointmentRequest = new BookAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointmentNoReferenceRequest> {
constructor() {
super("api.BookAppointmentNoReferenceRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 5, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 6, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 7, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "ProjectID", "Quantities", "Segmentations", "CarrierInformation"] } } });
}
create(value?: PartialMessage<BookAppointmentNoReferenceRequest>): BookAppointmentNoReferenceRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.ProjectID = "";
message.Quantities = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
message.CarrierName = "";
message.AppointmentID = "";
message.Reason = "";
message.InstructionAck = false;
if (value !== undefined)
reflectionMergePartial<BookAppointmentNoReferenceRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookAppointmentNoReferenceRequest): BookAppointmentNoReferenceRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.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 /* string ProjectID */ 3:
message.ProjectID = reader.string();
break;
case /* repeated api.QuantityByUnit Quantities */ 4:
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationSelection SegmentationSelections */ 5:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 6:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 7:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string Emails */ 8:
message.Emails.push(reader.string());
break;
case /* string CarrierID */ 9:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 10:
message.CarrierName = reader.string();
break;
case /* string AppointmentID */ 11:
message.AppointmentID = reader.string();
break;
case /* string Reason */ 12:
message.Reason = reader.string();
break;
case /* bool InstructionAck */ 13:
message.InstructionAck = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: BookAppointmentNoReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.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);
/* string ProjectID = 3; */
if (message.ProjectID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
/* repeated api.QuantityByUnit Quantities = 4; */
for (let i = 0; i < message.Quantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationSelection SegmentationSelections = 5; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 6; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 7; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* repeated string Emails = 8; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]);
/* string CarrierID = 9; */
if (message.CarrierID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 10; */
if (message.CarrierName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
/* string AppointmentID = 11; */
if (message.AppointmentID !== "")
writer.tag(11, WireType.LengthDelimited).string(message.AppointmentID);
/* string Reason = 12; */
if (message.Reason !== "")
writer.tag(12, WireType.LengthDelimited).string(message.Reason);
/* bool InstructionAck = 13; */
if (message.InstructionAck !== false)
writer.tag(13, WireType.Varint).bool(message.InstructionAck);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.BookAppointmentNoReferenceRequest
*/
export const BookAppointmentNoReferenceRequest = new BookAppointmentNoReferenceRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentRequest> {
constructor() {
super("api.ForceBookAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
{ no: 14, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 15, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 16, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Segmentations"] } } });
}
create(value?: PartialMessage<ForceBookAppointmentRequest>): ForceBookAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
message.CarrierName = "";
message.TimeZone = "";
message.AppointmentID = "";
message.InstructionAck = false;
message.ProjectID = "";
message.Reason = "";
message.Quantities = [];
if (value !== undefined)
reflectionMergePartial<ForceBookAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForceBookAppointmentRequest): ForceBookAppointmentRequest {
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.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 6:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated string Emails */ 8:
message.Emails.push(reader.string());
break;
case /* string CarrierID */ 9:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 10:
message.CarrierName = reader.string();
break;
case /* string TimeZone */ 11:
message.TimeZone = reader.string();
break;
case /* string AppointmentID */ 12:
message.AppointmentID = reader.string();
break;
case /* bool InstructionAck */ 13:
message.InstructionAck = reader.bool();
break;
case /* string ProjectID */ 14:
message.ProjectID = reader.string();
break;
case /* string Reason */ 15:
message.Reason = reader.string();
break;
case /* repeated api.QuantityByUnit Quantities */ 16:
message.Quantities.push(QuantityByUnit.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: ForceBookAppointmentRequest, 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.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 6; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated string Emails = 8; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]);
/* string CarrierID = 9; */
if (message.CarrierID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 10; */
if (message.CarrierName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
/* string TimeZone = 11; */
if (message.TimeZone !== "")
writer.tag(11, WireType.LengthDelimited).string(message.TimeZone);
/* string AppointmentID = 12; */
if (message.AppointmentID !== "")
writer.tag(12, WireType.LengthDelimited).string(message.AppointmentID);
/* bool InstructionAck = 13; */
if (message.InstructionAck !== false)
writer.tag(13, WireType.Varint).bool(message.InstructionAck);
/* string ProjectID = 14; */
if (message.ProjectID !== "")
writer.tag(14, WireType.LengthDelimited).string(message.ProjectID);
/* string Reason = 15; */
if (message.Reason !== "")
writer.tag(15, WireType.LengthDelimited).string(message.Reason);
/* repeated api.QuantityByUnit Quantities = 16; */
for (let i = 0; i < message.Quantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(16, 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.ForceBookAppointmentRequest
*/
export const ForceBookAppointmentRequest = new ForceBookAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookAppointmentResponse$Type extends MessageType<BookAppointmentResponse> {
constructor() {
super("api.BookAppointmentResponse", [
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<BookAppointmentResponse>): BookAppointmentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<BookAppointmentResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookAppointmentResponse): BookAppointmentResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string AppointmentID */ 1:
message.AppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: BookAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AppointmentID = 1; */
if (message.AppointmentID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.BookAppointmentResponse
*/
export const BookAppointmentResponse = new BookAppointmentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest> {
constructor() {
super("api.CancelAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } });
}
create(value?: PartialMessage<CancelAppointmentRequest>): CancelAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<CancelAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CancelAppointmentRequest): CancelAppointmentRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 2:
message.AppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: CancelAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.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);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CancelAppointmentRequest
*/
export const CancelAppointmentRequest = new CancelAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CancelAppointmentResponse$Type extends MessageType<CancelAppointmentResponse> {
constructor() {
super("api.CancelAppointmentResponse", [
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CancelAppointmentResponse>): CancelAppointmentResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<CancelAppointmentResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CancelAppointmentResponse): CancelAppointmentResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string AppointmentID */ 1:
message.AppointmentID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: CancelAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AppointmentID = 1; */
if (message.AppointmentID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CancelAppointmentResponse
*/
export const CancelAppointmentResponse = new CancelAppointmentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest> {
constructor() {
super("api.UpdateAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
}
create(value?: PartialMessage<UpdateAppointmentRequest>): UpdateAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.Commissions = [];
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;
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();
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 UpdateAppointmentNoReferenceRequest$Type extends MessageType<UpdateAppointmentNoReferenceRequest> {
constructor() {
super("api.UpdateAppointmentNoReferenceRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 4, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
{ no: 6, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
}
create(value?: PartialMessage<UpdateAppointmentNoReferenceRequest>): UpdateAppointmentNoReferenceRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.ProjectID = "";
message.Quantities = [];
message.Reason = "";
if (value !== undefined)
reflectionMergePartial<UpdateAppointmentNoReferenceRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentNoReferenceRequest): UpdateAppointmentNoReferenceRequest {
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 ProjectID */ 4:
message.ProjectID = reader.string();
break;
case /* repeated api.QuantityByUnit Quantities */ 5:
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string Reason */ 6:
message.Reason = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: UpdateAppointmentNoReferenceRequest, 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 ProjectID = 4; */
if (message.ProjectID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ProjectID);
/* repeated api.QuantityByUnit Quantities = 5; */
for (let i = 0; i < message.Quantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* string Reason = 6; */
if (message.Reason !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Reason);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateAppointmentNoReferenceRequest
*/
export const UpdateAppointmentNoReferenceRequest = new UpdateAppointmentNoReferenceRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ForceUpdateAppointmentRequest$Type extends MessageType<ForceUpdateAppointmentRequest> {
constructor() {
super("api.ForceUpdateAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 5, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
}
create(value?: PartialMessage<ForceUpdateAppointmentRequest>): ForceUpdateAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.Commissions = [];
message.TimeZone = "";
message.ProjectID = "";
message.Quantities = [];
message.Reason = "";
if (value !== undefined)
reflectionMergePartial<ForceUpdateAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForceUpdateAppointmentRequest): ForceUpdateAppointmentRequest {
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 TimeZone */ 5:
message.TimeZone = reader.string();
break;
case /* string ProjectID */ 6:
message.ProjectID = reader.string();
break;
case /* repeated api.QuantityByUnit Quantities */ 7:
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string Reason */ 8:
message.Reason = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ForceUpdateAppointmentRequest, 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 TimeZone = 5; */
if (message.TimeZone !== "")
writer.tag(5, WireType.LengthDelimited).string(message.TimeZone);
/* string ProjectID = 6; */
if (message.ProjectID !== "")
writer.tag(6, WireType.LengthDelimited).string(message.ProjectID);
/* repeated api.QuantityByUnit Quantities = 7; */
for (let i = 0; i < message.Quantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* string Reason = 8; */
if (message.Reason !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Reason);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ForceUpdateAppointmentRequest
*/
export const ForceUpdateAppointmentRequest = new ForceUpdateAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserSitesRequest$Type extends MessageType<ListUserSitesRequest> {
constructor() {
super("api.ListUserSitesRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { minLen: "1" } } } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": {} });
}
create(value?: PartialMessage<ListUserSitesRequest>): ListUserSitesRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = [];
if (value !== undefined)
reflectionMergePartial<ListUserSitesRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUserSitesRequest): ListUserSitesRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string ProjectID */ 1:
message.ProjectID.push(reader.string());
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListUserSitesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string ProjectID = 1; */
for (let i = 0; i < message.ProjectID.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID[i]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListUserSitesRequest
*/
export const ListUserSitesRequest = new ListUserSitesRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserSitesResponse$Type extends MessageType<ListUserSitesResponse> {
constructor() {
super("api.ListUserSitesResponse", [
{ no: 1, name: "Sites", kind: "message", localName: "Sites", jsonName: "Sites", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Site }
]);
}
create(value?: PartialMessage<ListUserSitesResponse>): ListUserSitesResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Sites = [];
if (value !== undefined)
reflectionMergePartial<ListUserSitesResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUserSitesResponse): ListUserSitesResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Site Sites */ 1:
message.Sites.push(Site.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListUserSitesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Site Sites = 1; */
for (let i = 0; i < message.Sites.length; i++)
Site.internalBinaryWrite(message.Sites[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListUserSitesResponse
*/
export const ListUserSitesResponse = new ListUserSitesResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSettingsRequest$Type extends MessageType<DeleteSettingsRequest> {
constructor() {
super("api.DeleteSettingsRequest", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
}
create(value?: PartialMessage<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 ServiceType for protobuf service api.SiteService
*/
export const SiteService = new ServiceType("api.SiteService", [
{ name: "CreateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateSettingsRequest, O: CreateSettingsResponse },
{ 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": "", "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": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAvailableSlotsResponse },
{ name: "GetAllSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get all slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAllSlotsResponse },
{ name: "ListUserSites", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List sites authorized for a user according to its permissions." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserSitesRequest, O: ListUserSitesResponse },
{ name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "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 on the site, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
{ name: "ForceBookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site without checking if the slots are available." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceBookAppointmentRequest, 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": "", "api.moduleID": "appointment-scheduling", "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 slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "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 slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentNoReferenceRequest, O: BookAppointmentResponse },
{ name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Force Update slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceUpdateAppointmentRequest, 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-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSettingsRequest, O: DeleteSettingsResult }
], { "api.k8sService": "core-site" });