Latest generation

This commit is contained in:
ci core model
2025-10-21 07:38:30 +00:00
parent 6af08fcd93
commit a91e7d37b7
7 changed files with 154 additions and 619 deletions

View File

@@ -14,7 +14,6 @@ import { AttachmentSummary } from "./shared";
import { MetadataElement } from "./shared";
import { AppointmentStatusStruct } from "./collabShared";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { AppointmentCommission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
@@ -66,12 +65,9 @@ export interface AppointmentPayload {
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
// // Required carrierInformation, some can be obligatory
// repeated CarrierInformationWithValue CarrierInformation = 5;
/**
* The slot booked for the appointment
*
@@ -226,7 +222,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
{ 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: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ 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: 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" } },
@@ -247,7 +242,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Emails = [];
message.RemovedEmails = [];
message.CreationDate = "";
@@ -277,9 +271,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Slot Slot */ 6:
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
break;
@@ -340,9 +331,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.Slot Slot = 6; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();

View File

@@ -16,7 +16,6 @@ import { AttachmentSummary } from "./shared";
import { MetadataElement } from "./shared";
import { AppointmentStatusStruct } from "./collabShared";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { AppointmentCommission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
@@ -43,10 +42,8 @@ export interface AppointmentNotifyPayload {
*/
SegmentationSelections: SegmentationSelection[];
/**
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* repeated CarrierInformationWithValue CarrierInformation = 5;
*
* @generated from protobuf field: api.Slot Slot = 6
*/
Slot?: Slot;
@@ -133,7 +130,6 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
{ 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: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ 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*/ },
@@ -154,7 +150,6 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Emails = [];
message.RemovedEmails = [];
message.CreationDate = "";
@@ -184,9 +179,6 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Slot Slot */ 6:
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
break;
@@ -247,9 +239,6 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.Slot Slot = 6; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();

View File

@@ -28,8 +28,6 @@ import type { AppointmentCarrierArrivedResponse } from "./appointmentInput";
import type { AppointmentCarrierArrivedRequest } from "./appointmentInput";
import type { AppointmentCarrierExpectedResponse } from "./appointmentInput";
import type { AppointmentCarrierExpectedRequest } from "./appointmentInput";
import type { AppointmentCarrierInformationUpdatedResponse } from "./appointmentInput";
import type { AppointmentCarrierInformationUpdatedRequest } from "./appointmentInput";
import type { AppointmentCommissionsUpdatedResponse } from "./appointmentInput";
import type { AppointmentCommissionsUpdatedRequest } from "./appointmentInput";
import type { AppointmentSlotUpdatedResponse } from "./appointmentInput";
@@ -64,10 +62,18 @@ export interface IAppointmentInputAPIClient {
* @generated from protobuf rpc: CommissionsUpdated
*/
commissionsUpdated(input: AppointmentCommissionsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>;
/**
* @generated from protobuf rpc: CarrierInformationUpdated
*/
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse>;
// rpc CarrierInformationUpdated (AppointmentCarrierInformationUpdatedRequest) returns (AppointmentCarrierInformationUpdatedResponse) {
// option (rscType) = "Project";
// option (roles) = "Platform.Project-Input";
// option (moduleID) = "appointment-scheduling";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "An appointment carrier information have been updated."
// summary: ""
// tags: "Appointment Inputs"
// };
// option (google.api.method_visibility).restriction = "PUBLIC";
// };
/**
* @generated from protobuf rpc: CarrierExpected
*/
@@ -157,95 +163,100 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CarrierInformationUpdated
*/
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse>("unary", this._transport, method, opt, input);
}
// rpc CarrierInformationUpdated (AppointmentCarrierInformationUpdatedRequest) returns (AppointmentCarrierInformationUpdatedResponse) {
// option (rscType) = "Project";
// option (roles) = "Platform.Project-Input";
// option (moduleID) = "appointment-scheduling";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "An appointment carrier information have been updated."
// summary: ""
// tags: "Appointment Inputs"
// };
// option (google.api.method_visibility).restriction = "PUBLIC";
// };
/**
* @generated from protobuf rpc: CarrierExpected
*/
carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CarrierArrived
*/
carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExpeditionStarted
*/
expeditionStarted(input: AppointmentExpeditionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionStartedRequest, AppointmentExpeditionStartedResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentExpeditionStartedRequest, AppointmentExpeditionStartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExpeditionLoaded
*/
expeditionLoaded(input: AppointmentExpeditionLoadedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionLoadedRequest, AppointmentExpeditionLoadedResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentExpeditionLoadedRequest, AppointmentExpeditionLoadedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ReceptionStarted
*/
receptionStarted(input: AppointmentReceptionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionStartedRequest, AppointmentReceptionStartedResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentReceptionStartedRequest, AppointmentReceptionStartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ReceptionUnloaded
*/
receptionUnloaded(input: AppointmentReceptionUnloadedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionUnloadedRequest, AppointmentReceptionUnloadedResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentReceptionUnloadedRequest, AppointmentReceptionUnloadedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CarrierDeparted
*/
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: MetaDataUpdated
*/
metaDataUpdated(input: AppointmentMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: AttachmentAdded
*/
attachmentAdded(input: AppointmentAttachmentAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: AttachmentRemoved
*/
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: EmailsAdded
*/
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: EmailsRemoved
*/
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
}
}

View File

@@ -18,7 +18,6 @@ import { EntityID } from "./shared";
import { EventHeader } from "./shared";
import { MetadataElement } from "./shared";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { AppointmentCommission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
@@ -52,12 +51,9 @@ export interface AppointmentCreatedPayload {
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
// // Required carrierInformation, some can be obligatory
// repeated CarrierInformationWithValue CarrierInformation = 5;
/**
* The slot booked for the appointment
*
@@ -467,72 +463,75 @@ export interface AppointmentAttachmentRemovedResponse {
//
// CarrierInformationUpdated : this message tells that appointment carrier information are updated
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentCarrierInformationUpdatedPayload
*/
export interface AppointmentCarrierInformationUpdatedPayload {
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 1
*/
CarrierInformation: CarrierInformationWithValue[];
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentCarrierInformationUpdatedEvent
*/
export interface AppointmentCarrierInformationUpdatedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentCarrierInformationUpdatedPayload Payload = 3
*/
Payload?: AppointmentCarrierInformationUpdatedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentCarrierInformationUpdatedRequest
*/
export interface AppointmentCarrierInformationUpdatedRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentCarrierInformationUpdatedPayload Payload = 3
*/
Payload?: AppointmentCarrierInformationUpdatedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentCarrierInformationUpdatedResponse
*/
export interface AppointmentCarrierInformationUpdatedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
// // Event Payload
// message AppointmentCarrierInformationUpdatedPayload {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// description: "Event Payload"
// required: []
// }
// };
// option (payload) = true;
// option (inputEvent) = "CarrierInformationUpdated";
// option (messageType) = "Event";
// // Required carrierInformation, some can be obligatory
// repeated CarrierInformationWithValue CarrierInformation = 1;
// }
// // Event message
// message AppointmentCarrierInformationUpdatedEvent {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "CarrierInformationUpdated";
// option (messageType) = "Event";
// EventHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentCarrierInformationUpdatedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Request
// message AppointmentCarrierInformationUpdatedRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "CarrierInformationUpdated";
// option (messageType) = "Request";
// RequestProjectHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentCarrierInformationUpdatedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Response
// message AppointmentCarrierInformationUpdatedResponse {
// option (inputEvent) = "CarrierInformationUpdated";
// option (messageType) = "Response";
// ResponseHeader Header = 1 ;
// EntityID ID = 2 ;
// }
//
// CarrierExpected : this message tells that appointment carrier is expected
@@ -1183,7 +1182,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ 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: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ 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\"]" } } },
{ no: 8, 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" } },
@@ -1199,7 +1197,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Emails = [];
message.MetaData = [];
message.CarrierID = "";
@@ -1225,9 +1222,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Slot Slot */ 6:
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
break;
@@ -1273,9 +1267,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.Slot Slot = 6; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -2574,226 +2565,6 @@ class AppointmentAttachmentRemovedResponse$Type extends MessageType<AppointmentA
*/
export const AppointmentAttachmentRemovedResponse = new AppointmentAttachmentRemovedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType<AppointmentCarrierInformationUpdatedPayload> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedPayload", [
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierInformationUpdated" });
}
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedPayload>): AppointmentCarrierInformationUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.CarrierInformation = [];
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedPayload): AppointmentCarrierInformationUpdatedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 1:
message.CarrierInformation.push(CarrierInformationWithValue.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: AppointmentCarrierInformationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.CarrierInformationWithValue CarrierInformation = 1; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentCarrierInformationUpdatedPayload
*/
export const AppointmentCarrierInformationUpdatedPayload = new AppointmentCarrierInformationUpdatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierInformationUpdatedEvent$Type extends MessageType<AppointmentCarrierInformationUpdatedEvent> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierInformationUpdated" });
}
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedEvent>): AppointmentCarrierInformationUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedEvent): AppointmentCarrierInformationUpdatedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.AppointmentCarrierInformationUpdatedPayload Payload */ 3:
message.Payload = AppointmentCarrierInformationUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: AppointmentCarrierInformationUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
if (message.Header)
EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentCarrierInformationUpdatedPayload Payload = 3; */
if (message.Payload)
AppointmentCarrierInformationUpdatedPayload.internalBinaryWrite(message.Payload, 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.AppointmentCarrierInformationUpdatedEvent
*/
export const AppointmentCarrierInformationUpdatedEvent = new AppointmentCarrierInformationUpdatedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierInformationUpdatedRequest$Type extends MessageType<AppointmentCarrierInformationUpdatedRequest> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierInformationUpdated" });
}
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedRequest>): AppointmentCarrierInformationUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedRequest): AppointmentCarrierInformationUpdatedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.AppointmentCarrierInformationUpdatedPayload Payload */ 3:
message.Payload = AppointmentCarrierInformationUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: AppointmentCarrierInformationUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentCarrierInformationUpdatedPayload Payload = 3; */
if (message.Payload)
AppointmentCarrierInformationUpdatedPayload.internalBinaryWrite(message.Payload, 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.AppointmentCarrierInformationUpdatedRequest
*/
export const AppointmentCarrierInformationUpdatedRequest = new AppointmentCarrierInformationUpdatedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierInformationUpdatedResponse$Type extends MessageType<AppointmentCarrierInformationUpdatedResponse> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "CarrierInformationUpdated" });
}
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedResponse>): AppointmentCarrierInformationUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedResponse): AppointmentCarrierInformationUpdatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
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: AppointmentCarrierInformationUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, 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.AppointmentCarrierInformationUpdatedResponse
*/
export const AppointmentCarrierInformationUpdatedResponse = new AppointmentCarrierInformationUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierExpectedPayload$Type extends MessageType<AppointmentCarrierExpectedPayload> {
constructor() {
super("api.AppointmentCarrierExpectedPayload", [], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierExpected" });
@@ -4938,7 +4709,6 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
{ name: "Canceled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse },
{ name: "SlotUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentSlotUpdatedRequest, O: AppointmentSlotUpdatedResponse },
{ name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment commissions has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse },
{ name: "CarrierInformationUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment carrier information have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierInformationUpdatedRequest, O: AppointmentCarrierInformationUpdatedResponse },
{ name: "CarrierExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is exopected for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse },
{ name: "CarrierArrived", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is arrived for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierArrivedRequest, O: AppointmentCarrierArrivedResponse },
{ name: "ExpeditionStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment expedition is started." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentExpeditionStartedRequest, O: AppointmentExpeditionStartedResponse },

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.12.0-SNAPSHOT-251020135907",
"version": "1.12.0-SNAPSHOT-251021073744",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

87
site.ts
View File

@@ -14,14 +14,12 @@ import { MessageType } from "@protobuf-ts/runtime";
import { Period } from "./shared";
import { QuantityByUnit } from "./slotbooking";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { SlotGroup } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { Commission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
import { FileDataRequest } from "./shared";
import { RequestProjectHeader } from "./shared";
import { CarrierInformation } from "./slotbooking";
import { Document } from "./slotbooking";
import { Instruction } from "./slotbooking";
import { CapacityRule } from "./slotbooking";
@@ -119,12 +117,9 @@ export interface Site {
* @generated from protobuf field: repeated api.Document InstructionDocuments = 16
*/
InstructionDocuments: Document[];
/**
* Set of required or optional information to ask when a slot is booked
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17
*/
CarrierInformation: CarrierInformation[];
// // Set of required or optional information to ask when a slot is booked
// repeated CarrierInformation CarrierInformation = 17;
/**
* Defines the rounded value to define booking period
*
@@ -329,12 +324,9 @@ export interface UpdateSettingsRequest {
* @generated from protobuf field: api.Instruction Instruction = 15
*/
Instruction?: Instruction;
/**
* Set of required or optional information to ask when a slot is booked
*
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17
*/
CarrierInformation: CarrierInformation[];
// // Set of required or optional information to ask when a slot is booked
// repeated CarrierInformation CarrierInformation = 17;
/**
* Defines the rounded value of periods in minutes, must be greater than 0.
*
@@ -591,12 +583,9 @@ export interface BookAppointmentRequest {
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
// // Required carrierInformation, some can be obligatory
// repeated CarrierInformationWithValue CarrierInformation = 5;
/**
* The slot to book for the appointment
*
@@ -673,12 +662,9 @@ export interface BookAppointmentNoReferenceRequest {
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 5
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 6
*/
CarrierInformation: CarrierInformationWithValue[];
// // Required carrierInformation, some can be obligatory
// repeated CarrierInformationWithValue CarrierInformation = 6;
/**
* The slot to book for the appointment
*
@@ -774,12 +760,9 @@ export interface ForceBookAppointmentRequest {
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
// // Required carrierInformation, some can be obligatory
// repeated CarrierInformationWithValue CarrierInformation = 5;
/**
* The slot to book for the appointment
*
@@ -1355,7 +1338,6 @@ class Site$Type extends MessageType<Site> {
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/ },
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
@@ -1379,7 +1361,6 @@ class Site$Type extends MessageType<Site> {
message.DurationRules = [];
message.CapacityRules = [];
message.InstructionDocuments = [];
message.CarrierInformation = [];
message.RoundedPeriodInMinutes = 0;
message.TimeZone = "";
message.Emails = [];
@@ -1442,9 +1423,6 @@ class Site$Type extends MessageType<Site> {
case /* repeated api.Document InstructionDocuments */ 16:
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformation CarrierInformation */ 17:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 RoundedPeriodInMinutes */ 18:
message.RoundedPeriodInMinutes = reader.uint32();
break;
@@ -1520,9 +1498,6 @@ class Site$Type extends MessageType<Site> {
/* repeated api.Document InstructionDocuments = 16; */
for (let i = 0; i < message.InstructionDocuments.length; i++)
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformation CarrierInformation = 17; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
/* uint32 RoundedPeriodInMinutes = 18; */
if (message.RoundedPeriodInMinutes !== 0)
writer.tag(18, WireType.Varint).uint32(message.RoundedPeriodInMinutes);
@@ -1908,7 +1883,6 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
{ no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule },
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { gt: 0 } } } },
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
@@ -1928,7 +1902,6 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
message.OpeningRules = [];
message.DurationRules = [];
message.CapacityRules = [];
message.CarrierInformation = [];
message.RoundedPeriodInMinutes = 0;
message.TimeZone = "";
message.Emails = [];
@@ -1982,9 +1955,6 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
case /* api.Instruction Instruction */ 15:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.CarrierInformation CarrierInformation */ 17:
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 RoundedPeriodInMinutes */ 18:
message.RoundedPeriodInMinutes = reader.uint32();
break;
@@ -2051,9 +2021,6 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
/* api.Instruction Instruction = 15; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformation CarrierInformation = 17; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
/* uint32 RoundedPeriodInMinutes = 18; */
if (message.RoundedPeriodInMinutes !== 0)
writer.tag(18, WireType.Varint).uint32(message.RoundedPeriodInMinutes);
@@ -2815,7 +2782,6 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
@@ -2830,7 +2796,6 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
@@ -2859,9 +2824,6 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 6:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
@@ -2907,9 +2869,6 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 6; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -2950,7 +2909,6 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 5, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 6, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 7, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
@@ -2967,7 +2925,6 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
message.ProjectID = "";
message.Quantities = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
@@ -3000,9 +2957,6 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
case /* repeated api.SegmentationSelection SegmentationSelections */ 5:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 6:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 7:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
@@ -3054,9 +3008,6 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
/* repeated api.SegmentationSelection SegmentationSelections = 5; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 6; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 7; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
@@ -3162,7 +3113,6 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
@@ -3181,7 +3131,6 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Slots = [];
message.Emails = [];
message.CarrierID = "";
@@ -3214,9 +3163,6 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.Slot Slots */ 6:
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
break;
@@ -3274,9 +3220,6 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Slot Slots = 6; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();

View File

@@ -328,47 +328,31 @@ export interface SegmentationSelection {
*/
SegmentationValueID: string;
}
/**
* CarrierInformation
* The five following messages are pretty similar, for each added object, they can add a translated version
*
* @generated from protobuf message api.CarrierInformation
*/
export interface CarrierInformation {
/**
* @generated from protobuf field: string CarrierInformationID = 1
*/
CarrierInformationID: string;
/**
* @generated from protobuf field: repeated api.LabelByLanguage Labels = 2
*/
Labels: LabelByLanguage[]; // @option language
/**
* @generated from protobuf field: api.CarrierInformationType Type = 3
*/
Type: CarrierInformationType;
/**
* @generated from protobuf field: bool IsMandatory = 4
*/
IsMandatory: boolean;
/**
* @generated from protobuf field: bool FormatCheck = 5
*/
FormatCheck: boolean;
}
/**
* @generated from protobuf message api.CarrierInformationWithValue
*/
export interface CarrierInformationWithValue {
/**
* @generated from protobuf field: api.CarrierInformation CarrierInformation = 1
*/
CarrierInformation?: CarrierInformation;
/**
* @generated from protobuf field: string Value = 2
*/
Value: string;
}
// enum CarrierInformationType {
// CARRIER_INFORMATION_TYPE_UNKNOWN = 0;
// CARRIER_INFORMATION_TYPE_DOCUMENT = 1;
// CARRIER_INFORMATION_TYPE_METADATA = 2;
// }
// // CarrierInformation
// // The five following messages are pretty similar, for each added object, they can add a translated version
// message CarrierInformation {
// string CarrierInformationID = 1;
// repeated LabelByLanguage Labels = 2
// [
// (language) = true,
// (aggKey) = "LanguageCodeISO6391"
// ]; // @option language
// CarrierInformationType Type = 3;
// bool IsMandatory = 4;
// bool FormatCheck = 5;
// }
// message CarrierInformationWithValue{
// CarrierInformation CarrierInformation = 1;
// string Value = 2;
// }
/**
* Document
* We anticipate that they want to put several but if they only have one with all the language, it should still work
@@ -683,23 +667,6 @@ export enum CapacityRuleScope {
*/
CAPACITY_RULE_SCOPE_DAILY = 2
}
/**
* @generated from protobuf enum api.CarrierInformationType
*/
export enum CarrierInformationType {
/**
* @generated from protobuf enum value: CARRIER_INFORMATION_TYPE_UNKNOWN = 0;
*/
CARRIER_INFORMATION_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: CARRIER_INFORMATION_TYPE_DOCUMENT = 1;
*/
CARRIER_INFORMATION_TYPE_DOCUMENT = 1,
/**
* @generated from protobuf enum value: CARRIER_INFORMATION_TYPE_METADATA = 2;
*/
CARRIER_INFORMATION_TYPE_METADATA = 2
}
/**
* @generated from protobuf enum api.CommandIdentifierEntry
*/
@@ -1730,139 +1697,6 @@ class SegmentationSelection$Type extends MessageType<SegmentationSelection> {
*/
export const SegmentationSelection = new SegmentationSelection$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CarrierInformation$Type extends MessageType<CarrierInformation> {
constructor() {
super("api.CarrierInformation", [
{ no: 1, name: "CarrierInformationID", kind: "scalar", localName: "CarrierInformationID", jsonName: "CarrierInformationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } },
{ no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.CarrierInformationType", CarrierInformationType] },
{ no: 4, name: "IsMandatory", kind: "scalar", localName: "IsMandatory", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "FormatCheck", kind: "scalar", localName: "FormatCheck", jsonName: "FormatCheck", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<CarrierInformation>): CarrierInformation {
const message = globalThis.Object.create((this.messagePrototype!));
message.CarrierInformationID = "";
message.Labels = [];
message.Type = 0;
message.IsMandatory = false;
message.FormatCheck = false;
if (value !== undefined)
reflectionMergePartial<CarrierInformation>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierInformation): CarrierInformation {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string CarrierInformationID */ 1:
message.CarrierInformationID = reader.string();
break;
case /* repeated api.LabelByLanguage Labels */ 2:
message.Labels.push(LabelByLanguage.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.CarrierInformationType Type */ 3:
message.Type = reader.int32();
break;
case /* bool IsMandatory */ 4:
message.IsMandatory = reader.bool();
break;
case /* bool FormatCheck */ 5:
message.FormatCheck = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: CarrierInformation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string CarrierInformationID = 1; */
if (message.CarrierInformationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.CarrierInformationID);
/* repeated api.LabelByLanguage Labels = 2; */
for (let i = 0; i < message.Labels.length; i++)
LabelByLanguage.internalBinaryWrite(message.Labels[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.CarrierInformationType Type = 3; */
if (message.Type !== 0)
writer.tag(3, WireType.Varint).int32(message.Type);
/* bool IsMandatory = 4; */
if (message.IsMandatory !== false)
writer.tag(4, WireType.Varint).bool(message.IsMandatory);
/* bool FormatCheck = 5; */
if (message.FormatCheck !== false)
writer.tag(5, WireType.Varint).bool(message.FormatCheck);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CarrierInformation
*/
export const CarrierInformation = new CarrierInformation$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CarrierInformationWithValue$Type extends MessageType<CarrierInformationWithValue> {
constructor() {
super("api.CarrierInformationWithValue", [
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", T: () => CarrierInformation },
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<CarrierInformationWithValue>): CarrierInformationWithValue {
const message = globalThis.Object.create((this.messagePrototype!));
message.Value = "";
if (value !== undefined)
reflectionMergePartial<CarrierInformationWithValue>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierInformationWithValue): CarrierInformationWithValue {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.CarrierInformation CarrierInformation */ 1:
message.CarrierInformation = CarrierInformation.internalBinaryRead(reader, reader.uint32(), options, message.CarrierInformation);
break;
case /* string Value */ 2:
message.Value = 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: CarrierInformationWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.CarrierInformation CarrierInformation = 1; */
if (message.CarrierInformation)
CarrierInformation.internalBinaryWrite(message.CarrierInformation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Value = 2; */
if (message.Value !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Value);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.CarrierInformationWithValue
*/
export const CarrierInformationWithValue = new CarrierInformationWithValue$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Document$Type extends MessageType<Document> {
constructor() {
super("api.Document", [