You've already forked npm-core-sdk
Latest generation
This commit is contained in:
111
appointment.ts
111
appointment.ts
@@ -10,7 +10,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|||||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
import { MessageType } from "@protobuf-ts/runtime";
|
||||||
import { QuantityByUnit } from "./slotbooking";
|
import { AppointmentContent } from "./slotbooking";
|
||||||
import { Address } from "./repositoryShared";
|
import { Address } from "./repositoryShared";
|
||||||
import { AttachmentSummary } from "./shared";
|
import { AttachmentSummary } from "./shared";
|
||||||
import { AppointmentStatusStruct } from "./collabShared";
|
import { AppointmentStatusStruct } from "./collabShared";
|
||||||
@@ -56,9 +56,10 @@ export interface AppointmentPayload {
|
|||||||
AppointmentType: AppointmentType;
|
AppointmentType: AppointmentType;
|
||||||
/**
|
/**
|
||||||
* List of the orders and projects for which the appointment is made, with the quantities
|
* List of the orders and projects for which the appointment is made, with the quantities
|
||||||
* TODO ??
|
* TODO Remove after upgrade model
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: repeated api.AppointmentCommission Commissions = 2
|
* @deprecated
|
||||||
|
* @generated from protobuf field: repeated api.AppointmentCommission Commissions = 2 [deprecated = true]
|
||||||
*/
|
*/
|
||||||
Commissions: AppointmentCommission[];
|
Commissions: AppointmentCommission[];
|
||||||
/**
|
/**
|
||||||
@@ -83,13 +84,15 @@ export interface AppointmentPayload {
|
|||||||
* User mails being notified on this appointment
|
* User mails being notified on this appointment
|
||||||
* TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
|
* TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: repeated string Emails = 7
|
* @deprecated
|
||||||
|
* @generated from protobuf field: repeated string Emails = 7 [deprecated = true]
|
||||||
*/
|
*/
|
||||||
Emails: string[];
|
Emails: string[];
|
||||||
/**
|
/**
|
||||||
* Emails removed from the appointment
|
* Emails removed from the appointment
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: repeated string RemovedEmails = 16
|
* @deprecated
|
||||||
|
* @generated from protobuf field: repeated string RemovedEmails = 16 [deprecated = true]
|
||||||
*/
|
*/
|
||||||
RemovedEmails: string[];
|
RemovedEmails: string[];
|
||||||
/**
|
/**
|
||||||
@@ -134,7 +137,8 @@ export interface AppointmentPayload {
|
|||||||
/**
|
/**
|
||||||
* Empty attribute, just used for inpout api payloads to resolve the site resource from project context with actor alias
|
* Empty attribute, just used for inpout api payloads to resolve the site resource from project context with actor alias
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: string ActorID = 20
|
* @deprecated
|
||||||
|
* @generated from protobuf field: string ActorID = 20 [deprecated = true]
|
||||||
*/
|
*/
|
||||||
ActorID: string;
|
ActorID: string;
|
||||||
/**
|
/**
|
||||||
@@ -149,18 +153,39 @@ export interface AppointmentPayload {
|
|||||||
* @generated from protobuf field: string SiteName = 22
|
* @generated from protobuf field: string SiteName = 22
|
||||||
*/
|
*/
|
||||||
SiteName: string;
|
SiteName: string;
|
||||||
/**
|
// Total volumetry in all commissions inside the truck.
|
||||||
* Total volumetry in all commissions inside the truck.
|
// repeated QuantityByUnit TotalQuantities = 23;
|
||||||
*
|
|
||||||
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 23
|
|
||||||
*/
|
|
||||||
TotalQuantities: QuantityByUnit[];
|
|
||||||
/**
|
/**
|
||||||
* time zone of the site on which the appointment is booked
|
* time zone of the site on which the appointment is booked
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: string TimeZone = 24
|
* @generated from protobuf field: string TimeZone = 24
|
||||||
*/
|
*/
|
||||||
TimeZone: string;
|
TimeZone: string;
|
||||||
|
/**
|
||||||
|
* Loading content
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Loading = 25
|
||||||
|
*/
|
||||||
|
Loading?: AppointmentContent;
|
||||||
|
/**
|
||||||
|
* Unoading content
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Unloading = 26
|
||||||
|
*/
|
||||||
|
Unloading?: AppointmentContent;
|
||||||
|
/**
|
||||||
|
* User being notified on this appointment
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: repeated string Attendees = 27
|
||||||
|
*/
|
||||||
|
Attendees: string[];
|
||||||
|
/**
|
||||||
|
* Emails removed from the appointment
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: repeated string RemovedAttendees = 28
|
||||||
|
*/
|
||||||
|
RemovedAttendees: string[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.AppointmentTriplet
|
* @generated from protobuf message api.AppointmentTriplet
|
||||||
@@ -244,12 +269,12 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
constructor() {
|
constructor() {
|
||||||
super("api.AppointmentPayload", [
|
super("api.AppointmentPayload", [
|
||||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
||||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission },
|
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission, options: { "validate.rules": { repeated: { maxItems: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use Loading and Unloading fields instead", readOnly: true } } },
|
||||||
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||||
{ no: 19, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
|
{ no: 19, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
|
||||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||||
{ no: 7, 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\"]" }, "api.aggSkip": "EmailsRemoved,EmailsAdded" } },
|
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "0", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use Attendees field instead", readOnly: true }, "api.aggSkip": "EmailsRemoved,EmailsAdded" } },
|
||||||
{ no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "EmailsRemoved" } },
|
{ no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use RemovedAttendees field instead", readOnly: true }, "api.aggSkip": "EmailsRemoved" } },
|
||||||
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the appointment" }, "api.aggSkip": "StatusUpdated" } },
|
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the appointment" }, "api.aggSkip": "StatusUpdated" } },
|
||||||
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||||
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
|
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
|
||||||
@@ -260,8 +285,11 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
{ no: 20, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "Created,Canceled,SlotUpdated,CommissionsUpdated,CarrierInformationUpdated,CarrierExpected,AllocationError,CarrierArrived,LoadingStarted,LoadingCompleted,UnloadingStarted,UnloadingCompleted,CarrierDeparted,MetaDataUpdated,AttachmentAdded,AttachmentRemoved,EmailsAdded,EmailsRemoved,Sanitised,CustomFieldsUpdated" } },
|
{ no: 20, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "Created,Canceled,SlotUpdated,CommissionsUpdated,CarrierInformationUpdated,CarrierExpected,AllocationError,CarrierArrived,LoadingStarted,LoadingCompleted,UnloadingStarted,UnloadingCompleted,CarrierDeparted,MetaDataUpdated,AttachmentAdded,AttachmentRemoved,EmailsAdded,EmailsRemoved,Sanitised,CustomFieldsUpdated" } },
|
||||||
{ no: 21, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
{ no: 21, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
||||||
{ no: 22, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ },
|
{ no: 22, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 23, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
|
{ no: 24, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 24, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
|
{ no: 25, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||||
|
{ no: 26, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||||
|
{ no: 27, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Attendees of the appointment" }, "api.aggSkip": "AttendeesAdded", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||||
|
{ no: 28, name: "RemovedAttendees", kind: "scalar", localName: "RemovedAttendees", jsonName: "RemovedAttendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AttendeesRemoved", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
|
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
|
||||||
@@ -280,8 +308,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
message.InstructionAck = false;
|
message.InstructionAck = false;
|
||||||
message.ActorID = "";
|
message.ActorID = "";
|
||||||
message.SiteName = "";
|
message.SiteName = "";
|
||||||
message.TotalQuantities = [];
|
|
||||||
message.TimeZone = "";
|
message.TimeZone = "";
|
||||||
|
message.Attendees = [];
|
||||||
|
message.RemovedAttendees = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<AppointmentPayload>(this, message, value);
|
reflectionMergePartial<AppointmentPayload>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -294,7 +323,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
case /* api.AppointmentType AppointmentType */ 1:
|
case /* api.AppointmentType AppointmentType */ 1:
|
||||||
message.AppointmentType = reader.int32();
|
message.AppointmentType = reader.int32();
|
||||||
break;
|
break;
|
||||||
case /* repeated api.AppointmentCommission Commissions */ 2:
|
case /* repeated api.AppointmentCommission Commissions = 2 [deprecated = true] */ 2:
|
||||||
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
|
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
|
||||||
@@ -306,10 +335,10 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
case /* api.Slot Slot */ 6:
|
case /* api.Slot Slot */ 6:
|
||||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||||
break;
|
break;
|
||||||
case /* repeated string Emails */ 7:
|
case /* repeated string Emails = 7 [deprecated = true] */ 7:
|
||||||
message.Emails.push(reader.string());
|
message.Emails.push(reader.string());
|
||||||
break;
|
break;
|
||||||
case /* repeated string RemovedEmails */ 16:
|
case /* repeated string RemovedEmails = 16 [deprecated = true] */ 16:
|
||||||
message.RemovedEmails.push(reader.string());
|
message.RemovedEmails.push(reader.string());
|
||||||
break;
|
break;
|
||||||
case /* api.AppointmentStatusStruct Status */ 8:
|
case /* api.AppointmentStatusStruct Status */ 8:
|
||||||
@@ -333,7 +362,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
case /* bool InstructionAck */ 18:
|
case /* bool InstructionAck */ 18:
|
||||||
message.InstructionAck = reader.bool();
|
message.InstructionAck = reader.bool();
|
||||||
break;
|
break;
|
||||||
case /* string ActorID */ 20:
|
case /* string ActorID = 20 [deprecated = true] */ 20:
|
||||||
message.ActorID = reader.string();
|
message.ActorID = reader.string();
|
||||||
break;
|
break;
|
||||||
case /* api.Address Address */ 21:
|
case /* api.Address Address */ 21:
|
||||||
@@ -342,12 +371,21 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
case /* string SiteName */ 22:
|
case /* string SiteName */ 22:
|
||||||
message.SiteName = reader.string();
|
message.SiteName = reader.string();
|
||||||
break;
|
break;
|
||||||
case /* repeated api.QuantityByUnit TotalQuantities */ 23:
|
|
||||||
message.TotalQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
case /* string TimeZone */ 24:
|
case /* string TimeZone */ 24:
|
||||||
message.TimeZone = reader.string();
|
message.TimeZone = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* api.AppointmentContent Loading */ 25:
|
||||||
|
message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading);
|
||||||
|
break;
|
||||||
|
case /* api.AppointmentContent Unloading */ 26:
|
||||||
|
message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading);
|
||||||
|
break;
|
||||||
|
case /* repeated string Attendees */ 27:
|
||||||
|
message.Attendees.push(reader.string());
|
||||||
|
break;
|
||||||
|
case /* repeated string RemovedAttendees */ 28:
|
||||||
|
message.RemovedAttendees.push(reader.string());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -363,7 +401,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
/* api.AppointmentType AppointmentType = 1; */
|
/* api.AppointmentType AppointmentType = 1; */
|
||||||
if (message.AppointmentType !== 0)
|
if (message.AppointmentType !== 0)
|
||||||
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
||||||
/* repeated api.AppointmentCommission Commissions = 2; */
|
/* repeated api.AppointmentCommission Commissions = 2 [deprecated = true]; */
|
||||||
for (let i = 0; i < message.Commissions.length; i++)
|
for (let i = 0; i < message.Commissions.length; i++)
|
||||||
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
|
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
|
||||||
@@ -372,7 +410,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
/* api.Slot Slot = 6; */
|
/* api.Slot Slot = 6; */
|
||||||
if (message.Slot)
|
if (message.Slot)
|
||||||
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* repeated string Emails = 7; */
|
/* repeated string Emails = 7 [deprecated = true]; */
|
||||||
for (let i = 0; i < message.Emails.length; i++)
|
for (let i = 0; i < message.Emails.length; i++)
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
|
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
|
||||||
/* api.AppointmentStatusStruct Status = 8; */
|
/* api.AppointmentStatusStruct Status = 8; */
|
||||||
@@ -390,7 +428,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
/* int32 AttachmentNumber = 14; */
|
/* int32 AttachmentNumber = 14; */
|
||||||
if (message.AttachmentNumber !== 0)
|
if (message.AttachmentNumber !== 0)
|
||||||
writer.tag(14, WireType.Varint).int32(message.AttachmentNumber);
|
writer.tag(14, WireType.Varint).int32(message.AttachmentNumber);
|
||||||
/* repeated string RemovedEmails = 16; */
|
/* repeated string RemovedEmails = 16 [deprecated = true]; */
|
||||||
for (let i = 0; i < message.RemovedEmails.length; i++)
|
for (let i = 0; i < message.RemovedEmails.length; i++)
|
||||||
writer.tag(16, WireType.LengthDelimited).string(message.RemovedEmails[i]);
|
writer.tag(16, WireType.LengthDelimited).string(message.RemovedEmails[i]);
|
||||||
/* string Reason = 17; */
|
/* string Reason = 17; */
|
||||||
@@ -402,7 +440,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
/* repeated api.MetadataElement CarrierInformation = 19; */
|
/* repeated api.MetadataElement CarrierInformation = 19; */
|
||||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||||
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* string ActorID = 20; */
|
/* string ActorID = 20 [deprecated = true]; */
|
||||||
if (message.ActorID !== "")
|
if (message.ActorID !== "")
|
||||||
writer.tag(20, WireType.LengthDelimited).string(message.ActorID);
|
writer.tag(20, WireType.LengthDelimited).string(message.ActorID);
|
||||||
/* api.Address Address = 21; */
|
/* api.Address Address = 21; */
|
||||||
@@ -411,12 +449,21 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
|||||||
/* string SiteName = 22; */
|
/* string SiteName = 22; */
|
||||||
if (message.SiteName !== "")
|
if (message.SiteName !== "")
|
||||||
writer.tag(22, WireType.LengthDelimited).string(message.SiteName);
|
writer.tag(22, WireType.LengthDelimited).string(message.SiteName);
|
||||||
/* repeated api.QuantityByUnit TotalQuantities = 23; */
|
|
||||||
for (let i = 0; i < message.TotalQuantities.length; i++)
|
|
||||||
QuantityByUnit.internalBinaryWrite(message.TotalQuantities[i], writer.tag(23, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* string TimeZone = 24; */
|
/* string TimeZone = 24; */
|
||||||
if (message.TimeZone !== "")
|
if (message.TimeZone !== "")
|
||||||
writer.tag(24, WireType.LengthDelimited).string(message.TimeZone);
|
writer.tag(24, WireType.LengthDelimited).string(message.TimeZone);
|
||||||
|
/* api.AppointmentContent Loading = 25; */
|
||||||
|
if (message.Loading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(25, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* api.AppointmentContent Unloading = 26; */
|
||||||
|
if (message.Unloading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(26, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated string Attendees = 27; */
|
||||||
|
for (let i = 0; i < message.Attendees.length; i++)
|
||||||
|
writer.tag(27, WireType.LengthDelimited).string(message.Attendees[i]);
|
||||||
|
/* repeated string RemovedAttendees = 28; */
|
||||||
|
for (let i = 0; i < message.RemovedAttendees.length; i++)
|
||||||
|
writer.tag(28, WireType.LengthDelimited).string(message.RemovedAttendees[i]);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|||||||
import { Address } from "./repositoryShared";
|
import { Address } from "./repositoryShared";
|
||||||
import { EntityID } from "./shared";
|
import { EntityID } from "./shared";
|
||||||
import { CommandHeader } from "./shared";
|
import { CommandHeader } from "./shared";
|
||||||
|
import { AppointmentContent } from "./slotbooking";
|
||||||
import { AttachmentSummary } from "./shared";
|
import { AttachmentSummary } from "./shared";
|
||||||
import { AppointmentStatusStruct } from "./collabShared";
|
import { AppointmentStatusStruct } from "./collabShared";
|
||||||
import { Slot } from "./slotbooking";
|
import { Slot } from "./slotbooking";
|
||||||
import { MetadataElement } from "./shared";
|
import { MetadataElement } from "./shared";
|
||||||
import { SegmentationSelection } from "./slotbooking";
|
import { SegmentationSelection } from "./slotbooking";
|
||||||
import { AppointmentCommission } from "./slotbooking";
|
|
||||||
import { AppointmentType } from "./slotbooking";
|
import { AppointmentType } from "./slotbooking";
|
||||||
// Action Summary
|
// Action Summary
|
||||||
// - Notify : Push appointment to project present into the commissions
|
// - Notify : Push appointment to project present into the commissions
|
||||||
@@ -35,10 +35,8 @@ export interface AppointmentNotifyPayload {
|
|||||||
*/
|
*/
|
||||||
AppointmentType: AppointmentType;
|
AppointmentType: AppointmentType;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: repeated api.AppointmentCommission Commissions = 2
|
* repeated AppointmentCommission Commissions = 2;
|
||||||
*/
|
*
|
||||||
Commissions: AppointmentCommission[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
|
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
|
||||||
*/
|
*/
|
||||||
SegmentationSelections: SegmentationSelection[];
|
SegmentationSelections: SegmentationSelection[];
|
||||||
@@ -51,14 +49,9 @@ export interface AppointmentNotifyPayload {
|
|||||||
*/
|
*/
|
||||||
Slot?: Slot;
|
Slot?: Slot;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: repeated string Emails = 7
|
* repeated string Emails = 7;
|
||||||
*/
|
* repeated string RemovedEmails = 16;
|
||||||
Emails: string[];
|
*
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated string RemovedEmails = 16
|
|
||||||
*/
|
|
||||||
RemovedEmails: string[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.AppointmentStatusStruct Status = 8
|
* @generated from protobuf field: api.AppointmentStatusStruct Status = 8
|
||||||
*/
|
*/
|
||||||
Status?: AppointmentStatusStruct;
|
Status?: AppointmentStatusStruct;
|
||||||
@@ -93,6 +86,22 @@ export interface AppointmentNotifyPayload {
|
|||||||
* @generated from protobuf field: string TimeZone = 20
|
* @generated from protobuf field: string TimeZone = 20
|
||||||
*/
|
*/
|
||||||
TimeZone: string;
|
TimeZone: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Loading = 21
|
||||||
|
*/
|
||||||
|
Loading?: AppointmentContent;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Unloading = 22
|
||||||
|
*/
|
||||||
|
Unloading?: AppointmentContent;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated string Attendees = 23
|
||||||
|
*/
|
||||||
|
Attendees: string[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated string RemovedAttendees = 24
|
||||||
|
*/
|
||||||
|
RemovedAttendees: string[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.AppointmentNotify
|
* @generated from protobuf message api.AppointmentNotify
|
||||||
@@ -133,10 +142,8 @@ export interface AppointmentMailPayload {
|
|||||||
*/
|
*/
|
||||||
AppointmentType: AppointmentType;
|
AppointmentType: AppointmentType;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: repeated api.AppointmentCommission Commissions = 2
|
* repeated AppointmentCommission Commissions = 2;
|
||||||
*/
|
*
|
||||||
Commissions: AppointmentCommission[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
|
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
|
||||||
*/
|
*/
|
||||||
SegmentationSelections: SegmentationSelection[];
|
SegmentationSelections: SegmentationSelection[];
|
||||||
@@ -149,14 +156,9 @@ export interface AppointmentMailPayload {
|
|||||||
*/
|
*/
|
||||||
Slot?: Slot;
|
Slot?: Slot;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: repeated string Emails = 7
|
* repeated string Emails = 7;
|
||||||
*/
|
* repeated string RemovedEmails = 16;
|
||||||
Emails: string[];
|
*
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated string RemovedEmails = 16
|
|
||||||
*/
|
|
||||||
RemovedEmails: string[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.AppointmentStatusStruct Status = 8
|
* @generated from protobuf field: api.AppointmentStatusStruct Status = 8
|
||||||
*/
|
*/
|
||||||
Status?: AppointmentStatusStruct;
|
Status?: AppointmentStatusStruct;
|
||||||
@@ -195,6 +197,22 @@ export interface AppointmentMailPayload {
|
|||||||
* @generated from protobuf field: string SiteName = 20
|
* @generated from protobuf field: string SiteName = 20
|
||||||
*/
|
*/
|
||||||
SiteName: string;
|
SiteName: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Loading = 21
|
||||||
|
*/
|
||||||
|
Loading?: AppointmentContent;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Unloading = 22
|
||||||
|
*/
|
||||||
|
Unloading?: AppointmentContent;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated string Attendees = 23
|
||||||
|
*/
|
||||||
|
Attendees: string[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated string RemovedAttendees = 24
|
||||||
|
*/
|
||||||
|
RemovedAttendees: string[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.AppointmentMail
|
* @generated from protobuf message api.AppointmentMail
|
||||||
@@ -226,12 +244,9 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
constructor() {
|
constructor() {
|
||||||
super("api.AppointmentNotifyPayload", [
|
super("api.AppointmentNotifyPayload", [
|
||||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
||||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission },
|
|
||||||
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||||
{ no: 19, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
{ no: 19, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
||||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct },
|
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct },
|
||||||
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/ },
|
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
||||||
@@ -239,17 +254,18 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
{ no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/ },
|
{ no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/ },
|
||||||
{ no: 17, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
{ no: 17, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 18, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
|
{ no: 18, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
|
||||||
{ no: 20, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
|
{ no: 20, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 21, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||||
|
{ no: 22, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||||
|
{ no: 23, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 24, name: "RemovedAttendees", kind: "scalar", localName: "RemovedAttendees", jsonName: "RemovedAttendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||||
], { "api.messageType": "Command", "api.payload": true, "api.action": "Notify" });
|
], { "api.messageType": "Command", "api.payload": true, "api.action": "Notify" });
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<AppointmentNotifyPayload>): AppointmentNotifyPayload {
|
create(value?: PartialMessage<AppointmentNotifyPayload>): AppointmentNotifyPayload {
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.AppointmentType = 0;
|
message.AppointmentType = 0;
|
||||||
message.Commissions = [];
|
|
||||||
message.SegmentationSelections = [];
|
message.SegmentationSelections = [];
|
||||||
message.CarrierInformation = [];
|
message.CarrierInformation = [];
|
||||||
message.Emails = [];
|
|
||||||
message.RemovedEmails = [];
|
|
||||||
message.CreationDate = "";
|
message.CreationDate = "";
|
||||||
message.MetaData = [];
|
message.MetaData = [];
|
||||||
message.Attachments = [];
|
message.Attachments = [];
|
||||||
@@ -257,6 +273,8 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
message.Reason = "";
|
message.Reason = "";
|
||||||
message.InstructionAck = false;
|
message.InstructionAck = false;
|
||||||
message.TimeZone = "";
|
message.TimeZone = "";
|
||||||
|
message.Attendees = [];
|
||||||
|
message.RemovedAttendees = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<AppointmentNotifyPayload>(this, message, value);
|
reflectionMergePartial<AppointmentNotifyPayload>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -269,9 +287,6 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
case /* api.AppointmentType AppointmentType */ 1:
|
case /* api.AppointmentType AppointmentType */ 1:
|
||||||
message.AppointmentType = reader.int32();
|
message.AppointmentType = reader.int32();
|
||||||
break;
|
break;
|
||||||
case /* repeated api.AppointmentCommission Commissions */ 2:
|
|
||||||
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
|
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
|
||||||
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
@@ -281,12 +296,6 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
case /* api.Slot Slot */ 6:
|
case /* api.Slot Slot */ 6:
|
||||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||||
break;
|
break;
|
||||||
case /* repeated string Emails */ 7:
|
|
||||||
message.Emails.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* repeated string RemovedEmails */ 16:
|
|
||||||
message.RemovedEmails.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* api.AppointmentStatusStruct Status */ 8:
|
case /* api.AppointmentStatusStruct Status */ 8:
|
||||||
message.Status = AppointmentStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
message.Status = AppointmentStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
||||||
break;
|
break;
|
||||||
@@ -311,6 +320,18 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
case /* string TimeZone */ 20:
|
case /* string TimeZone */ 20:
|
||||||
message.TimeZone = reader.string();
|
message.TimeZone = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* api.AppointmentContent Loading */ 21:
|
||||||
|
message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading);
|
||||||
|
break;
|
||||||
|
case /* api.AppointmentContent Unloading */ 22:
|
||||||
|
message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading);
|
||||||
|
break;
|
||||||
|
case /* repeated string Attendees */ 23:
|
||||||
|
message.Attendees.push(reader.string());
|
||||||
|
break;
|
||||||
|
case /* repeated string RemovedAttendees */ 24:
|
||||||
|
message.RemovedAttendees.push(reader.string());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -326,18 +347,12 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
/* api.AppointmentType AppointmentType = 1; */
|
/* api.AppointmentType AppointmentType = 1; */
|
||||||
if (message.AppointmentType !== 0)
|
if (message.AppointmentType !== 0)
|
||||||
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
||||||
/* repeated api.AppointmentCommission Commissions = 2; */
|
|
||||||
for (let i = 0; i < message.Commissions.length; i++)
|
|
||||||
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
|
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
|
||||||
for (let i = 0; i < message.SegmentationSelections.length; i++)
|
for (let i = 0; i < message.SegmentationSelections.length; i++)
|
||||||
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* api.Slot Slot = 6; */
|
/* api.Slot Slot = 6; */
|
||||||
if (message.Slot)
|
if (message.Slot)
|
||||||
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* repeated string Emails = 7; */
|
|
||||||
for (let i = 0; i < message.Emails.length; i++)
|
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
|
|
||||||
/* api.AppointmentStatusStruct Status = 8; */
|
/* api.AppointmentStatusStruct Status = 8; */
|
||||||
if (message.Status)
|
if (message.Status)
|
||||||
AppointmentStatusStruct.internalBinaryWrite(message.Status, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
AppointmentStatusStruct.internalBinaryWrite(message.Status, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||||
@@ -353,9 +368,6 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
/* int32 AttachmentNumber = 14; */
|
/* int32 AttachmentNumber = 14; */
|
||||||
if (message.AttachmentNumber !== 0)
|
if (message.AttachmentNumber !== 0)
|
||||||
writer.tag(14, WireType.Varint).int32(message.AttachmentNumber);
|
writer.tag(14, WireType.Varint).int32(message.AttachmentNumber);
|
||||||
/* repeated string RemovedEmails = 16; */
|
|
||||||
for (let i = 0; i < message.RemovedEmails.length; i++)
|
|
||||||
writer.tag(16, WireType.LengthDelimited).string(message.RemovedEmails[i]);
|
|
||||||
/* string Reason = 17; */
|
/* string Reason = 17; */
|
||||||
if (message.Reason !== "")
|
if (message.Reason !== "")
|
||||||
writer.tag(17, WireType.LengthDelimited).string(message.Reason);
|
writer.tag(17, WireType.LengthDelimited).string(message.Reason);
|
||||||
@@ -368,6 +380,18 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
|||||||
/* string TimeZone = 20; */
|
/* string TimeZone = 20; */
|
||||||
if (message.TimeZone !== "")
|
if (message.TimeZone !== "")
|
||||||
writer.tag(20, WireType.LengthDelimited).string(message.TimeZone);
|
writer.tag(20, WireType.LengthDelimited).string(message.TimeZone);
|
||||||
|
/* api.AppointmentContent Loading = 21; */
|
||||||
|
if (message.Loading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* api.AppointmentContent Unloading = 22; */
|
||||||
|
if (message.Unloading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated string Attendees = 23; */
|
||||||
|
for (let i = 0; i < message.Attendees.length; i++)
|
||||||
|
writer.tag(23, WireType.LengthDelimited).string(message.Attendees[i]);
|
||||||
|
/* repeated string RemovedAttendees = 24; */
|
||||||
|
for (let i = 0; i < message.RemovedAttendees.length; i++)
|
||||||
|
writer.tag(24, WireType.LengthDelimited).string(message.RemovedAttendees[i]);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -457,12 +481,9 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
constructor() {
|
constructor() {
|
||||||
super("api.AppointmentMailPayload", [
|
super("api.AppointmentMailPayload", [
|
||||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
||||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission },
|
|
||||||
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||||
{ no: 19, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
{ no: 19, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
||||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct },
|
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct },
|
||||||
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/ },
|
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement },
|
||||||
@@ -470,23 +491,26 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
{ no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/ },
|
{ no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/ },
|
||||||
{ no: 17, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
{ no: 17, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 18, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
{ no: 18, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
||||||
{ no: 20, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ }
|
{ no: 20, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 21, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||||
|
{ no: 22, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||||
|
{ no: 23, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 24, name: "RemovedAttendees", kind: "scalar", localName: "RemovedAttendees", jsonName: "RemovedAttendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||||
], { "api.messageType": "Command", "api.payload": true, "api.action": "Mail" });
|
], { "api.messageType": "Command", "api.payload": true, "api.action": "Mail" });
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<AppointmentMailPayload>): AppointmentMailPayload {
|
create(value?: PartialMessage<AppointmentMailPayload>): AppointmentMailPayload {
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.AppointmentType = 0;
|
message.AppointmentType = 0;
|
||||||
message.Commissions = [];
|
|
||||||
message.SegmentationSelections = [];
|
message.SegmentationSelections = [];
|
||||||
message.CarrierInformation = [];
|
message.CarrierInformation = [];
|
||||||
message.Emails = [];
|
|
||||||
message.RemovedEmails = [];
|
|
||||||
message.CreationDate = "";
|
message.CreationDate = "";
|
||||||
message.MetaData = [];
|
message.MetaData = [];
|
||||||
message.Attachments = [];
|
message.Attachments = [];
|
||||||
message.AttachmentNumber = 0;
|
message.AttachmentNumber = 0;
|
||||||
message.Reason = "";
|
message.Reason = "";
|
||||||
message.SiteName = "";
|
message.SiteName = "";
|
||||||
|
message.Attendees = [];
|
||||||
|
message.RemovedAttendees = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<AppointmentMailPayload>(this, message, value);
|
reflectionMergePartial<AppointmentMailPayload>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -499,9 +523,6 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
case /* api.AppointmentType AppointmentType */ 1:
|
case /* api.AppointmentType AppointmentType */ 1:
|
||||||
message.AppointmentType = reader.int32();
|
message.AppointmentType = reader.int32();
|
||||||
break;
|
break;
|
||||||
case /* repeated api.AppointmentCommission Commissions */ 2:
|
|
||||||
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
|
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
|
||||||
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
@@ -511,12 +532,6 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
case /* api.Slot Slot */ 6:
|
case /* api.Slot Slot */ 6:
|
||||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||||
break;
|
break;
|
||||||
case /* repeated string Emails */ 7:
|
|
||||||
message.Emails.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* repeated string RemovedEmails */ 16:
|
|
||||||
message.RemovedEmails.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* api.AppointmentStatusStruct Status */ 8:
|
case /* api.AppointmentStatusStruct Status */ 8:
|
||||||
message.Status = AppointmentStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
message.Status = AppointmentStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
||||||
break;
|
break;
|
||||||
@@ -541,6 +556,18 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
case /* string SiteName */ 20:
|
case /* string SiteName */ 20:
|
||||||
message.SiteName = reader.string();
|
message.SiteName = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* api.AppointmentContent Loading */ 21:
|
||||||
|
message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading);
|
||||||
|
break;
|
||||||
|
case /* api.AppointmentContent Unloading */ 22:
|
||||||
|
message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading);
|
||||||
|
break;
|
||||||
|
case /* repeated string Attendees */ 23:
|
||||||
|
message.Attendees.push(reader.string());
|
||||||
|
break;
|
||||||
|
case /* repeated string RemovedAttendees */ 24:
|
||||||
|
message.RemovedAttendees.push(reader.string());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -556,18 +583,12 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
/* api.AppointmentType AppointmentType = 1; */
|
/* api.AppointmentType AppointmentType = 1; */
|
||||||
if (message.AppointmentType !== 0)
|
if (message.AppointmentType !== 0)
|
||||||
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
||||||
/* repeated api.AppointmentCommission Commissions = 2; */
|
|
||||||
for (let i = 0; i < message.Commissions.length; i++)
|
|
||||||
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
|
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
|
||||||
for (let i = 0; i < message.SegmentationSelections.length; i++)
|
for (let i = 0; i < message.SegmentationSelections.length; i++)
|
||||||
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* api.Slot Slot = 6; */
|
/* api.Slot Slot = 6; */
|
||||||
if (message.Slot)
|
if (message.Slot)
|
||||||
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* repeated string Emails = 7; */
|
|
||||||
for (let i = 0; i < message.Emails.length; i++)
|
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
|
|
||||||
/* api.AppointmentStatusStruct Status = 8; */
|
/* api.AppointmentStatusStruct Status = 8; */
|
||||||
if (message.Status)
|
if (message.Status)
|
||||||
AppointmentStatusStruct.internalBinaryWrite(message.Status, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
AppointmentStatusStruct.internalBinaryWrite(message.Status, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||||
@@ -583,9 +604,6 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
/* int32 AttachmentNumber = 14; */
|
/* int32 AttachmentNumber = 14; */
|
||||||
if (message.AttachmentNumber !== 0)
|
if (message.AttachmentNumber !== 0)
|
||||||
writer.tag(14, WireType.Varint).int32(message.AttachmentNumber);
|
writer.tag(14, WireType.Varint).int32(message.AttachmentNumber);
|
||||||
/* repeated string RemovedEmails = 16; */
|
|
||||||
for (let i = 0; i < message.RemovedEmails.length; i++)
|
|
||||||
writer.tag(16, WireType.LengthDelimited).string(message.RemovedEmails[i]);
|
|
||||||
/* string Reason = 17; */
|
/* string Reason = 17; */
|
||||||
if (message.Reason !== "")
|
if (message.Reason !== "")
|
||||||
writer.tag(17, WireType.LengthDelimited).string(message.Reason);
|
writer.tag(17, WireType.LengthDelimited).string(message.Reason);
|
||||||
@@ -598,6 +616,18 @@ class AppointmentMailPayload$Type extends MessageType<AppointmentMailPayload> {
|
|||||||
/* string SiteName = 20; */
|
/* string SiteName = 20; */
|
||||||
if (message.SiteName !== "")
|
if (message.SiteName !== "")
|
||||||
writer.tag(20, WireType.LengthDelimited).string(message.SiteName);
|
writer.tag(20, WireType.LengthDelimited).string(message.SiteName);
|
||||||
|
/* api.AppointmentContent Loading = 21; */
|
||||||
|
if (message.Loading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* api.AppointmentContent Unloading = 22; */
|
||||||
|
if (message.Unloading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated string Attendees = 23; */
|
||||||
|
for (let i = 0; i < message.Attendees.length; i++)
|
||||||
|
writer.tag(23, WireType.LengthDelimited).string(message.Attendees[i]);
|
||||||
|
/* repeated string RemovedAttendees = 24; */
|
||||||
|
for (let i = 0; i < message.RemovedAttendees.length; i++)
|
||||||
|
writer.tag(24, WireType.LengthDelimited).string(message.RemovedAttendees[i]);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ import type { AppointmentCustomFieldsUpdatedResponse } from "./appointmentInput"
|
|||||||
import type { AppointmentCustomFieldsUpdatedRequest } from "./appointmentInput";
|
import type { AppointmentCustomFieldsUpdatedRequest } from "./appointmentInput";
|
||||||
import type { AppointmentSanitisedResponse } from "./appointmentInput";
|
import type { AppointmentSanitisedResponse } from "./appointmentInput";
|
||||||
import type { AppointmentSanitisedRequest } from "./appointmentInput";
|
import type { AppointmentSanitisedRequest } from "./appointmentInput";
|
||||||
|
import type { AppointmentAttendeesRemovedResponse } from "./appointmentInput";
|
||||||
|
import type { AppointmentAttendeesRemovedRequest } from "./appointmentInput";
|
||||||
|
import type { AppointmentAttendeesAddedResponse } from "./appointmentInput";
|
||||||
|
import type { AppointmentAttendeesAddedRequest } from "./appointmentInput";
|
||||||
import type { AppointmentEmailsRemovedResponse } from "./appointmentInput";
|
import type { AppointmentEmailsRemovedResponse } from "./appointmentInput";
|
||||||
import type { AppointmentEmailsRemovedRequest } from "./appointmentInput";
|
import type { AppointmentEmailsRemovedRequest } from "./appointmentInput";
|
||||||
import type { AppointmentEmailsAddedResponse } from "./appointmentInput";
|
import type { AppointmentEmailsAddedResponse } from "./appointmentInput";
|
||||||
@@ -127,13 +131,23 @@ export interface IAppointmentInputAPIClient {
|
|||||||
*/
|
*/
|
||||||
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>;
|
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: EmailsAdded
|
* @generated from protobuf rpc: EmailsAdded
|
||||||
*/
|
*/
|
||||||
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>;
|
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: EmailsRemoved
|
* @generated from protobuf rpc: EmailsRemoved
|
||||||
*/
|
*/
|
||||||
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>;
|
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: AttendeesAdded
|
||||||
|
*/
|
||||||
|
attendeesAdded(input: AppointmentAttendeesAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttendeesAddedRequest, AppointmentAttendeesAddedResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: AttendeesRemoved
|
||||||
|
*/
|
||||||
|
attendeesRemoved(input: AppointmentAttendeesRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttendeesRemovedRequest, AppointmentAttendeesRemovedResponse>;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: Sanitised
|
* @generated from protobuf rpc: Sanitised
|
||||||
*/
|
*/
|
||||||
@@ -279,6 +293,7 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
|||||||
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: EmailsAdded
|
* @generated from protobuf rpc: EmailsAdded
|
||||||
*/
|
*/
|
||||||
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse> {
|
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse> {
|
||||||
@@ -286,31 +301,46 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
|||||||
return stackIntercept<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: EmailsRemoved
|
* @generated from protobuf rpc: EmailsRemoved
|
||||||
*/
|
*/
|
||||||
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse> {
|
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse> {
|
||||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: AttendeesAdded
|
||||||
|
*/
|
||||||
|
attendeesAdded(input: AppointmentAttendeesAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttendeesAddedRequest, AppointmentAttendeesAddedResponse> {
|
||||||
|
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<AppointmentAttendeesAddedRequest, AppointmentAttendeesAddedResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: AttendeesRemoved
|
||||||
|
*/
|
||||||
|
attendeesRemoved(input: AppointmentAttendeesRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttendeesRemovedRequest, AppointmentAttendeesRemovedResponse> {
|
||||||
|
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<AppointmentAttendeesRemovedRequest, AppointmentAttendeesRemovedResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: Sanitised
|
* @generated from protobuf rpc: Sanitised
|
||||||
*/
|
*/
|
||||||
sanitised(input: AppointmentSanitisedRequest, options?: RpcOptions): UnaryCall<AppointmentSanitisedRequest, AppointmentSanitisedResponse> {
|
sanitised(input: AppointmentSanitisedRequest, options?: RpcOptions): UnaryCall<AppointmentSanitisedRequest, AppointmentSanitisedResponse> {
|
||||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<AppointmentSanitisedRequest, AppointmentSanitisedResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<AppointmentSanitisedRequest, AppointmentSanitisedResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: CustomFieldsUpdated
|
* @generated from protobuf rpc: CustomFieldsUpdated
|
||||||
*/
|
*/
|
||||||
customFieldsUpdated(input: AppointmentCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse> {
|
customFieldsUpdated(input: AppointmentCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse> {
|
||||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf rpc: Redetected
|
* @generated from protobuf rpc: Redetected
|
||||||
*/
|
*/
|
||||||
redetected(input: AppointmentRedetectedRequest, options?: RpcOptions): UnaryCall<AppointmentRedetectedRequest, AppointmentRedetectedResponse> {
|
redetected(input: AppointmentRedetectedRequest, options?: RpcOptions): UnaryCall<AppointmentRedetectedRequest, AppointmentRedetectedResponse> {
|
||||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
||||||
return stackIntercept<AppointmentRedetectedRequest, AppointmentRedetectedResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<AppointmentRedetectedRequest, AppointmentRedetectedResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
2
index.ts
2
index.ts
@@ -148,6 +148,8 @@
|
|||||||
export * from './shared'
|
export * from './shared'
|
||||||
export * from './site.client'
|
export * from './site.client'
|
||||||
export * from './site'
|
export * from './site'
|
||||||
|
export * from './siteBooking.client'
|
||||||
|
export * from './siteBooking'
|
||||||
export * from './slotbooking'
|
export * from './slotbooking'
|
||||||
export * from './stock'
|
export * from './stock'
|
||||||
export * from './stockAction'
|
export * from './stockAction'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reflex-platform/npm-core-sdk",
|
"name": "@reflex-platform/npm-core-sdk",
|
||||||
"version": "1.13.0-SNAPSHOT-260212100309",
|
"version": "1.13.0-scpn1-9964",
|
||||||
"description": "npm libs from core model proto files",
|
"description": "npm libs from core model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
@@ -84,10 +84,12 @@ export interface ISiteServiceClient {
|
|||||||
*/
|
*/
|
||||||
deleteInstructionDocument(input: DeleteInstructionDocumentRequest, options?: RpcOptions): UnaryCall<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>;
|
deleteInstructionDocument(input: DeleteInstructionDocumentRequest, options?: RpcOptions): UnaryCall<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: GetAvailableSlots
|
* @generated from protobuf rpc: GetAvailableSlots
|
||||||
*/
|
*/
|
||||||
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse>;
|
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: GetAllSlots
|
* @generated from protobuf rpc: GetAllSlots
|
||||||
*/
|
*/
|
||||||
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse>;
|
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse>;
|
||||||
@@ -96,42 +98,52 @@ export interface ISiteServiceClient {
|
|||||||
*/
|
*/
|
||||||
checkAppointmentCommission(input: CheckAppointmentCommissionRequest, options?: RpcOptions): UnaryCall<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse>;
|
checkAppointmentCommission(input: CheckAppointmentCommissionRequest, options?: RpcOptions): UnaryCall<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: BookAppointment
|
* @generated from protobuf rpc: BookAppointment
|
||||||
*/
|
*/
|
||||||
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: BookAppointmentNoReference
|
* @generated from protobuf rpc: BookAppointmentNoReference
|
||||||
*/
|
*/
|
||||||
bookAppointmentNoReference(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
bookAppointmentNoReference(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: ForceBookAppointment
|
* @generated from protobuf rpc: ForceBookAppointment
|
||||||
*/
|
*/
|
||||||
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: CancelAppointment
|
* @generated from protobuf rpc: CancelAppointment
|
||||||
*/
|
*/
|
||||||
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse>;
|
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: UpdateAppointment
|
* @generated from protobuf rpc: UpdateAppointment
|
||||||
*/
|
*/
|
||||||
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
||||||
*/
|
*/
|
||||||
updateAppointmentNoReference(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
updateAppointmentNoReference(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: ForceUpdateAppointment
|
* @generated from protobuf rpc: ForceUpdateAppointment
|
||||||
*/
|
*/
|
||||||
forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: WMSUpdateAppointment
|
* @generated from protobuf rpc: WMSUpdateAppointment
|
||||||
*/
|
*/
|
||||||
wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateAppointmentRequest, BookAppointmentResponse>;
|
wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: RescheduleAppointment
|
* @generated from protobuf rpc: RescheduleAppointment
|
||||||
*/
|
*/
|
||||||
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse>;
|
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: ForceRescheduleAppointment
|
* @generated from protobuf rpc: ForceRescheduleAppointment
|
||||||
*/
|
*/
|
||||||
forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse>;
|
forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse>;
|
||||||
@@ -176,6 +188,7 @@ export interface ISiteServiceClient {
|
|||||||
*/
|
*/
|
||||||
getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall<GetMyBookingContextRequest, GetMyBookingContextResponse>;
|
getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall<GetMyBookingContextRequest, GetMyBookingContextResponse>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: CheckAppointmentEditable
|
* @generated from protobuf rpc: CheckAppointmentEditable
|
||||||
*/
|
*/
|
||||||
checkAppointmentEditable(input: CheckAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckAppointmentEditableRequest, CheckAppointmentEditableResponse>;
|
checkAppointmentEditable(input: CheckAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckAppointmentEditableRequest, CheckAppointmentEditableResponse>;
|
||||||
@@ -236,6 +249,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: GetAvailableSlots
|
* @generated from protobuf rpc: GetAvailableSlots
|
||||||
*/
|
*/
|
||||||
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse> {
|
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse> {
|
||||||
@@ -243,6 +257,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<GetAvailableSlotsRequest, GetAvailableSlotsResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetAvailableSlotsRequest, GetAvailableSlotsResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: GetAllSlots
|
* @generated from protobuf rpc: GetAllSlots
|
||||||
*/
|
*/
|
||||||
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse> {
|
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse> {
|
||||||
@@ -257,6 +272,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: BookAppointment
|
* @generated from protobuf rpc: BookAppointment
|
||||||
*/
|
*/
|
||||||
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -264,6 +280,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: BookAppointmentNoReference
|
* @generated from protobuf rpc: BookAppointmentNoReference
|
||||||
*/
|
*/
|
||||||
bookAppointmentNoReference(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
bookAppointmentNoReference(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -271,6 +288,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: ForceBookAppointment
|
* @generated from protobuf rpc: ForceBookAppointment
|
||||||
*/
|
*/
|
||||||
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -278,6 +296,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: CancelAppointment
|
* @generated from protobuf rpc: CancelAppointment
|
||||||
*/
|
*/
|
||||||
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse> {
|
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse> {
|
||||||
@@ -285,6 +304,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: UpdateAppointment
|
* @generated from protobuf rpc: UpdateAppointment
|
||||||
*/
|
*/
|
||||||
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -292,6 +312,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
||||||
*/
|
*/
|
||||||
updateAppointmentNoReference(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
updateAppointmentNoReference(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -299,6 +320,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: ForceUpdateAppointment
|
* @generated from protobuf rpc: ForceUpdateAppointment
|
||||||
*/
|
*/
|
||||||
forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -306,6 +328,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: WMSUpdateAppointment
|
* @generated from protobuf rpc: WMSUpdateAppointment
|
||||||
*/
|
*/
|
||||||
wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateAppointmentRequest, BookAppointmentResponse> {
|
wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -313,6 +336,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<WMSUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<WMSUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: RescheduleAppointment
|
* @generated from protobuf rpc: RescheduleAppointment
|
||||||
*/
|
*/
|
||||||
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
|
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -320,6 +344,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<RescheduleAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<RescheduleAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: ForceRescheduleAppointment
|
* @generated from protobuf rpc: ForceRescheduleAppointment
|
||||||
*/
|
*/
|
||||||
forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
|
forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
|
||||||
@@ -397,6 +422,7 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|||||||
return stackIntercept<GetMyBookingContextRequest, GetMyBookingContextResponse>("unary", this._transport, method, opt, input);
|
return stackIntercept<GetMyBookingContextRequest, GetMyBookingContextResponse>("unary", this._transport, method, opt, input);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* @deprecated
|
||||||
* @generated from protobuf rpc: CheckAppointmentEditable
|
* @generated from protobuf rpc: CheckAppointmentEditable
|
||||||
*/
|
*/
|
||||||
checkAppointmentEditable(input: CheckAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckAppointmentEditableRequest, CheckAppointmentEditableResponse> {
|
checkAppointmentEditable(input: CheckAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckAppointmentEditableRequest, CheckAppointmentEditableResponse> {
|
||||||
|
|||||||
68
site.ts
68
site.ts
@@ -20,6 +20,7 @@ import { CustomField } from "./shared";
|
|||||||
import { Slot } from "./slotbooking";
|
import { Slot } from "./slotbooking";
|
||||||
import { MetadataElement } from "./shared";
|
import { MetadataElement } from "./shared";
|
||||||
import { ResponseHeader } from "./shared";
|
import { ResponseHeader } from "./shared";
|
||||||
|
import { SlotGroupAndReason } from "./slotbooking";
|
||||||
import { SlotGroup } from "./slotbooking";
|
import { SlotGroup } from "./slotbooking";
|
||||||
import { SegmentationSelection } from "./slotbooking";
|
import { SegmentationSelection } from "./slotbooking";
|
||||||
import { Commission } from "./slotbooking";
|
import { Commission } from "./slotbooking";
|
||||||
@@ -542,19 +543,6 @@ export interface GetAvailableSlotsResponse {
|
|||||||
*/
|
*/
|
||||||
EstimatedNeededDurationInMinutes: bigint; // Computed needed slot duration in minutes
|
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
|
* @generated from protobuf message api.GetAllSlotsResponse
|
||||||
*/
|
*/
|
||||||
@@ -2727,60 +2715,6 @@ class GetAvailableSlotsResponse$Type extends MessageType<GetAvailableSlotsRespon
|
|||||||
*/
|
*/
|
||||||
export const GetAvailableSlotsResponse = new GetAvailableSlotsResponse$Type();
|
export const GetAvailableSlotsResponse = new GetAvailableSlotsResponse$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @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> {
|
class GetAllSlotsResponse$Type extends MessageType<GetAllSlotsResponse> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.GetAllSlotsResponse", [
|
super("api.GetAllSlotsResponse", [
|
||||||
|
|||||||
178
siteBooking.client.ts
Normal file
178
siteBooking.client.ts
Normal file
@@ -0,0 +1,178 @@
|
|||||||
|
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
||||||
|
// @generated from protobuf file "siteBooking.proto" (package "api", syntax proto3)
|
||||||
|
// tslint:disable
|
||||||
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||||
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||||
|
import { BookingService } from "./siteBooking";
|
||||||
|
import type { CheckBookingAppointmentEditableResponse } from "./siteBooking";
|
||||||
|
import type { CheckBookingAppointmentEditableRequest } from "./siteBooking";
|
||||||
|
import type { RescheduleBookingAppointmentRequest } from "./siteBooking";
|
||||||
|
import type { WMSUpdateBookingAppointmentRequest } from "./siteBooking";
|
||||||
|
import type { UpdateBookingAppointmentRequest } from "./siteBooking";
|
||||||
|
import type { CancelBookingAppointmentResponse } from "./siteBooking";
|
||||||
|
import type { CancelBookingAppointmentRequest } from "./siteBooking";
|
||||||
|
import type { BookBookingAppointmentResponse } from "./siteBooking";
|
||||||
|
import type { BookBookingAppointmentRequest } from "./siteBooking";
|
||||||
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||||
|
import type { GetBookingSlotsResponse } from "./siteBooking";
|
||||||
|
import type { GetBookingSlotsRequest } from "./siteBooking";
|
||||||
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||||
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||||
|
/**
|
||||||
|
* @generated from protobuf service api.BookingService
|
||||||
|
*/
|
||||||
|
export interface IBookingServiceClient {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: GetAvailableSlots
|
||||||
|
*/
|
||||||
|
getAvailableSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: GetAllSlots
|
||||||
|
*/
|
||||||
|
getAllSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: BookAppointment
|
||||||
|
*/
|
||||||
|
bookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: BookAppointmentNoReference
|
||||||
|
*/
|
||||||
|
bookAppointmentNoReference(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ForceBookAppointment
|
||||||
|
*/
|
||||||
|
forceBookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: CancelAppointment
|
||||||
|
*/
|
||||||
|
cancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: UpdateAppointment
|
||||||
|
*/
|
||||||
|
updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
||||||
|
*/
|
||||||
|
updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ForceUpdateAppointment
|
||||||
|
*/
|
||||||
|
forceUpdateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: WMSUpdateAppointment
|
||||||
|
*/
|
||||||
|
wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: RescheduleAppointment
|
||||||
|
*/
|
||||||
|
rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ForceRescheduleAppointment
|
||||||
|
*/
|
||||||
|
forceRescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: CheckAppointmentEditable
|
||||||
|
*/
|
||||||
|
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf service api.BookingService
|
||||||
|
*/
|
||||||
|
export class BookingServiceClient implements IBookingServiceClient, ServiceInfo {
|
||||||
|
typeName = BookingService.typeName;
|
||||||
|
methods = BookingService.methods;
|
||||||
|
options = BookingService.options;
|
||||||
|
constructor(private readonly _transport: RpcTransport) {
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: GetAvailableSlots
|
||||||
|
*/
|
||||||
|
getAvailableSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse> {
|
||||||
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<GetBookingSlotsRequest, GetBookingSlotsResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: GetAllSlots
|
||||||
|
*/
|
||||||
|
getAllSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse> {
|
||||||
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<GetBookingSlotsRequest, GetBookingSlotsResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: BookAppointment
|
||||||
|
*/
|
||||||
|
bookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<BookBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: BookAppointmentNoReference
|
||||||
|
*/
|
||||||
|
bookAppointmentNoReference(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<BookBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ForceBookAppointment
|
||||||
|
*/
|
||||||
|
forceBookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<BookBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: CancelAppointment
|
||||||
|
*/
|
||||||
|
cancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: UpdateAppointment
|
||||||
|
*/
|
||||||
|
updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
||||||
|
*/
|
||||||
|
updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ForceUpdateAppointment
|
||||||
|
*/
|
||||||
|
forceUpdateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: WMSUpdateAppointment
|
||||||
|
*/
|
||||||
|
wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: RescheduleAppointment
|
||||||
|
*/
|
||||||
|
rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: ForceRescheduleAppointment
|
||||||
|
*/
|
||||||
|
forceRescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||||
|
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf rpc: CheckAppointmentEditable
|
||||||
|
*/
|
||||||
|
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse> {
|
||||||
|
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||||
|
return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input);
|
||||||
|
}
|
||||||
|
}
|
||||||
1380
siteBooking.ts
Normal file
1380
siteBooking.ts
Normal file
File diff suppressed because it is too large
Load Diff
337
slotbooking.ts
337
slotbooking.ts
@@ -566,6 +566,36 @@ export interface AppointmentCommission {
|
|||||||
*/
|
*/
|
||||||
ActorID: string; // ID of the actorID which linked the site on the project commission
|
ActorID: string; // ID of the actorID which linked the site on the project commission
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf message api.AppointmentContent
|
||||||
|
*/
|
||||||
|
export interface AppointmentContent {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.AppointmentProjectContent Projects = 1
|
||||||
|
*/
|
||||||
|
Projects: AppointmentProjectContent[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 2
|
||||||
|
*/
|
||||||
|
TotalQuantities: QuantityByUnit[];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated from protobuf message api.AppointmentProjectContent
|
||||||
|
*/
|
||||||
|
export interface AppointmentProjectContent {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: string ProjectID = 1
|
||||||
|
*/
|
||||||
|
ProjectID: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.AppointmentCommission Commissions = 2
|
||||||
|
*/
|
||||||
|
Commissions: AppointmentCommission[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: repeated api.QuantityByUnit ProjectQuantities = 3
|
||||||
|
*/
|
||||||
|
ProjectQuantities: QuantityByUnit[];
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.Commission
|
* @generated from protobuf message api.Commission
|
||||||
*/
|
*/
|
||||||
@@ -621,7 +651,8 @@ export interface Booking {
|
|||||||
*/
|
*/
|
||||||
AppointmentType: AppointmentType;
|
AppointmentType: AppointmentType;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: repeated api.Commission Commissions = 2
|
* @deprecated
|
||||||
|
* @generated from protobuf field: repeated api.Commission Commissions = 2 [deprecated = true]
|
||||||
*/
|
*/
|
||||||
Commissions: Commission[];
|
Commissions: Commission[];
|
||||||
/**
|
/**
|
||||||
@@ -644,10 +675,22 @@ export interface Booking {
|
|||||||
* @generated from protobuf field: repeated string Emails = 7
|
* @generated from protobuf field: repeated string Emails = 7
|
||||||
*/
|
*/
|
||||||
Emails: string[];
|
Emails: string[];
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Loading = 9
|
||||||
|
*/
|
||||||
|
Loading?: AppointmentContent;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.AppointmentContent Unloading = 10
|
||||||
|
*/
|
||||||
|
Unloading?: AppointmentContent;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: string Reason = 8
|
* @generated from protobuf field: string Reason = 8
|
||||||
*/
|
*/
|
||||||
Reason: string;
|
Reason: string;
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: string LastUpdate = 12
|
||||||
|
*/
|
||||||
|
LastUpdate: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.SlotGroup
|
* @generated from protobuf message api.SlotGroup
|
||||||
@@ -662,6 +705,36 @@ export interface SlotGroup {
|
|||||||
*/
|
*/
|
||||||
Availability: number; // Availability of the slot group according to site configuration and current bookings -1 to 100 (-1: closed, 0: no longer available, 100: fully available).
|
Availability: number; // Availability of the slot group according to site configuration and current bookings -1 to 100 (-1: closed, 0: no longer available, 100: fully available).
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @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.BookableSlot
|
||||||
|
*/
|
||||||
|
export interface BookableSlot {
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: api.Slot Slot = 1
|
||||||
|
*/
|
||||||
|
Slot?: Slot; // List of slots belonging to the group.
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: int32 Availability = 2
|
||||||
|
*/
|
||||||
|
Availability: number; // Availability of the slot group according to site configuration and current bookings -1 to 100 (-1: closed, 0: no longer available, 100: fully available).
|
||||||
|
/**
|
||||||
|
* @generated from protobuf field: string Reason = 3
|
||||||
|
*/
|
||||||
|
Reason: string;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf enum api.AppointmentType
|
* @generated from protobuf enum api.AppointmentType
|
||||||
*/
|
*/
|
||||||
@@ -2295,6 +2368,124 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
|||||||
*/
|
*/
|
||||||
export const AppointmentCommission = new AppointmentCommission$Type();
|
export const AppointmentCommission = new AppointmentCommission$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
|
class AppointmentContent$Type extends MessageType<AppointmentContent> {
|
||||||
|
constructor() {
|
||||||
|
super("api.AppointmentContent", [
|
||||||
|
{ no: 1, name: "Projects", kind: "message", localName: "Projects", jsonName: "Projects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentProjectContent, options: { "api.aggKey": "ProjectID" } },
|
||||||
|
{ no: 2, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<AppointmentContent>): AppointmentContent {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.Projects = [];
|
||||||
|
message.TotalQuantities = [];
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<AppointmentContent>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentContent): AppointmentContent {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* repeated api.AppointmentProjectContent Projects */ 1:
|
||||||
|
message.Projects.push(AppointmentProjectContent.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
|
break;
|
||||||
|
case /* repeated api.QuantityByUnit TotalQuantities */ 2:
|
||||||
|
message.TotalQuantities.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: AppointmentContent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* repeated api.AppointmentProjectContent Projects = 1; */
|
||||||
|
for (let i = 0; i < message.Projects.length; i++)
|
||||||
|
AppointmentProjectContent.internalBinaryWrite(message.Projects[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated api.QuantityByUnit TotalQuantities = 2; */
|
||||||
|
for (let i = 0; i < message.TotalQuantities.length; i++)
|
||||||
|
QuantityByUnit.internalBinaryWrite(message.TotalQuantities[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
let u = options.writeUnknownFields;
|
||||||
|
if (u !== false)
|
||||||
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
|
return writer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @generated MessageType for protobuf message api.AppointmentContent
|
||||||
|
*/
|
||||||
|
export const AppointmentContent = new AppointmentContent$Type();
|
||||||
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
|
class AppointmentProjectContent$Type extends MessageType<AppointmentProjectContent> {
|
||||||
|
constructor() {
|
||||||
|
super("api.AppointmentProjectContent", [
|
||||||
|
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission },
|
||||||
|
{ no: 3, name: "ProjectQuantities", kind: "message", localName: "ProjectQuantities", jsonName: "ProjectQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<AppointmentProjectContent>): AppointmentProjectContent {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.ProjectID = "";
|
||||||
|
message.Commissions = [];
|
||||||
|
message.ProjectQuantities = [];
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<AppointmentProjectContent>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentProjectContent): AppointmentProjectContent {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* string ProjectID */ 1:
|
||||||
|
message.ProjectID = reader.string();
|
||||||
|
break;
|
||||||
|
case /* repeated api.AppointmentCommission Commissions */ 2:
|
||||||
|
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
|
break;
|
||||||
|
case /* repeated api.QuantityByUnit ProjectQuantities */ 3:
|
||||||
|
message.ProjectQuantities.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: AppointmentProjectContent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* string ProjectID = 1; */
|
||||||
|
if (message.ProjectID !== "")
|
||||||
|
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||||
|
/* repeated api.AppointmentCommission Commissions = 2; */
|
||||||
|
for (let i = 0; i < message.Commissions.length; i++)
|
||||||
|
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* repeated api.QuantityByUnit ProjectQuantities = 3; */
|
||||||
|
for (let i = 0; i < message.ProjectQuantities.length; i++)
|
||||||
|
QuantityByUnit.internalBinaryWrite(message.ProjectQuantities[i], 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.AppointmentProjectContent
|
||||||
|
*/
|
||||||
|
export const AppointmentProjectContent = new AppointmentProjectContent$Type();
|
||||||
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class Commission$Type extends MessageType<Commission> {
|
class Commission$Type extends MessageType<Commission> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.Commission", [
|
super("api.Commission", [
|
||||||
@@ -2455,7 +2646,10 @@ class Booking$Type extends MessageType<Booking> {
|
|||||||
{ no: 5, name: "AppointmentKind", kind: "scalar", localName: "AppointmentKind", jsonName: "AppointmentKind", T: 9 /*ScalarType.STRING*/ },
|
{ no: 5, name: "AppointmentKind", kind: "scalar", localName: "AppointmentKind", jsonName: "AppointmentKind", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 6, name: "HasReference", kind: "scalar", localName: "HasReference", jsonName: "HasReference", T: 8 /*ScalarType.BOOL*/ },
|
{ no: 6, name: "HasReference", kind: "scalar", localName: "HasReference", jsonName: "HasReference", T: 8 /*ScalarType.BOOL*/ },
|
||||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
|
{ no: 9, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||||
|
{ no: 10, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||||
|
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
||||||
|
{ no: 12, name: "LastUpdate", kind: "scalar", localName: "LastUpdate", jsonName: "LastUpdate", T: 9 /*ScalarType.STRING*/ }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<Booking>): Booking {
|
create(value?: PartialMessage<Booking>): Booking {
|
||||||
@@ -2468,6 +2662,7 @@ class Booking$Type extends MessageType<Booking> {
|
|||||||
message.HasReference = false;
|
message.HasReference = false;
|
||||||
message.Emails = [];
|
message.Emails = [];
|
||||||
message.Reason = "";
|
message.Reason = "";
|
||||||
|
message.LastUpdate = "";
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<Booking>(this, message, value);
|
reflectionMergePartial<Booking>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -2480,7 +2675,7 @@ class Booking$Type extends MessageType<Booking> {
|
|||||||
case /* api.AppointmentType AppointmentType */ 1:
|
case /* api.AppointmentType AppointmentType */ 1:
|
||||||
message.AppointmentType = reader.int32();
|
message.AppointmentType = reader.int32();
|
||||||
break;
|
break;
|
||||||
case /* repeated api.Commission Commissions */ 2:
|
case /* repeated api.Commission Commissions = 2 [deprecated = true] */ 2:
|
||||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
break;
|
break;
|
||||||
case /* repeated api.SegmentationSelection SegmentationSelections */ 3:
|
case /* repeated api.SegmentationSelection SegmentationSelections */ 3:
|
||||||
@@ -2498,9 +2693,18 @@ class Booking$Type extends MessageType<Booking> {
|
|||||||
case /* repeated string Emails */ 7:
|
case /* repeated string Emails */ 7:
|
||||||
message.Emails.push(reader.string());
|
message.Emails.push(reader.string());
|
||||||
break;
|
break;
|
||||||
|
case /* api.AppointmentContent Loading */ 9:
|
||||||
|
message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading);
|
||||||
|
break;
|
||||||
|
case /* api.AppointmentContent Unloading */ 10:
|
||||||
|
message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading);
|
||||||
|
break;
|
||||||
case /* string Reason */ 8:
|
case /* string Reason */ 8:
|
||||||
message.Reason = reader.string();
|
message.Reason = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string LastUpdate */ 12:
|
||||||
|
message.LastUpdate = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -2516,7 +2720,7 @@ class Booking$Type extends MessageType<Booking> {
|
|||||||
/* api.AppointmentType AppointmentType = 1; */
|
/* api.AppointmentType AppointmentType = 1; */
|
||||||
if (message.AppointmentType !== 0)
|
if (message.AppointmentType !== 0)
|
||||||
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
|
||||||
/* repeated api.Commission Commissions = 2; */
|
/* repeated api.Commission Commissions = 2 [deprecated = true]; */
|
||||||
for (let i = 0; i < message.Commissions.length; i++)
|
for (let i = 0; i < message.Commissions.length; i++)
|
||||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* repeated api.SegmentationSelection SegmentationSelections = 3; */
|
/* repeated api.SegmentationSelection SegmentationSelections = 3; */
|
||||||
@@ -2537,6 +2741,15 @@ class Booking$Type extends MessageType<Booking> {
|
|||||||
/* string Reason = 8; */
|
/* string Reason = 8; */
|
||||||
if (message.Reason !== "")
|
if (message.Reason !== "")
|
||||||
writer.tag(8, WireType.LengthDelimited).string(message.Reason);
|
writer.tag(8, WireType.LengthDelimited).string(message.Reason);
|
||||||
|
/* api.AppointmentContent Loading = 9; */
|
||||||
|
if (message.Loading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* api.AppointmentContent Unloading = 10; */
|
||||||
|
if (message.Unloading)
|
||||||
|
AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* string LastUpdate = 12; */
|
||||||
|
if (message.LastUpdate !== "")
|
||||||
|
writer.tag(12, WireType.LengthDelimited).string(message.LastUpdate);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -2602,3 +2815,119 @@ class SlotGroup$Type extends MessageType<SlotGroup> {
|
|||||||
* @generated MessageType for protobuf message api.SlotGroup
|
* @generated MessageType for protobuf message api.SlotGroup
|
||||||
*/
|
*/
|
||||||
export const SlotGroup = new SlotGroup$Type();
|
export const SlotGroup = new SlotGroup$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 BookableSlot$Type extends MessageType<BookableSlot> {
|
||||||
|
constructor() {
|
||||||
|
super("api.BookableSlot", [
|
||||||
|
{ no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||||
|
{ no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 100, gte: -1 } } } },
|
||||||
|
{ no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
create(value?: PartialMessage<BookableSlot>): BookableSlot {
|
||||||
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
|
message.Availability = 0;
|
||||||
|
message.Reason = "";
|
||||||
|
if (value !== undefined)
|
||||||
|
reflectionMergePartial<BookableSlot>(this, message, value);
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookableSlot): BookableSlot {
|
||||||
|
let message = target ?? this.create(), end = reader.pos + length;
|
||||||
|
while (reader.pos < end) {
|
||||||
|
let [fieldNo, wireType] = reader.tag();
|
||||||
|
switch (fieldNo) {
|
||||||
|
case /* api.Slot Slot */ 1:
|
||||||
|
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||||
|
break;
|
||||||
|
case /* int32 Availability */ 2:
|
||||||
|
message.Availability = reader.int32();
|
||||||
|
break;
|
||||||
|
case /* string Reason */ 3:
|
||||||
|
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: BookableSlot, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
|
/* api.Slot Slot = 1; */
|
||||||
|
if (message.Slot)
|
||||||
|
Slot.internalBinaryWrite(message.Slot, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||||
|
/* int32 Availability = 2; */
|
||||||
|
if (message.Availability !== 0)
|
||||||
|
writer.tag(2, WireType.Varint).int32(message.Availability);
|
||||||
|
/* string Reason = 3; */
|
||||||
|
if (message.Reason !== "")
|
||||||
|
writer.tag(3, 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.BookableSlot
|
||||||
|
*/
|
||||||
|
export const BookableSlot = new BookableSlot$Type();
|
||||||
|
|||||||
Reference in New Issue
Block a user