You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -11,9 +11,9 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { AttachmentSummary } from "./shared";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { AppointmentStatusStruct } from "./collabShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { AppointmentCommission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
@@ -65,9 +65,12 @@ export interface AppointmentPayload {
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
|
||||
*/
|
||||
SegmentationSelections: SegmentationSelection[];
|
||||
// // Required carrierInformation, some can be obligatory
|
||||
// repeated CarrierInformationWithValue CarrierInformation = 5;
|
||||
|
||||
/**
|
||||
* Carrier information metadata
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 19
|
||||
*/
|
||||
CarrierInformation: MetadataElement[];
|
||||
/**
|
||||
* The slot booked for the appointment
|
||||
*
|
||||
@@ -222,6 +225,7 @@ 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: 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: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: 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" } },
|
||||
@@ -242,6 +246,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.SegmentationSelections = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.RemovedEmails = [];
|
||||
message.CreationDate = "";
|
||||
@@ -271,6 +276,9 @@ 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.MetadataElement CarrierInformation */ 19:
|
||||
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.Slot Slot */ 6:
|
||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||
break;
|
||||
@@ -370,6 +378,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
/* bool InstructionAck = 18; */
|
||||
if (message.InstructionAck !== false)
|
||||
writer.tag(18, WireType.Varint).bool(message.InstructionAck);
|
||||
/* repeated api.MetadataElement CarrierInformation = 19; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -13,9 +13,9 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { EntityID } from "./shared";
|
||||
import { CommandHeader } from "./shared";
|
||||
import { AttachmentSummary } from "./shared";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { AppointmentStatusStruct } from "./collabShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { AppointmentCommission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
@@ -42,8 +42,10 @@ export interface AppointmentNotifyPayload {
|
||||
*/
|
||||
SegmentationSelections: SegmentationSelection[];
|
||||
/**
|
||||
* repeated CarrierInformationWithValue CarrierInformation = 5;
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 19
|
||||
*/
|
||||
CarrierInformation: MetadataElement[];
|
||||
/**
|
||||
* @generated from protobuf field: api.Slot Slot = 6
|
||||
*/
|
||||
Slot?: Slot;
|
||||
@@ -130,6 +132,7 @@ 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: 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: 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*/ },
|
||||
@@ -150,6 +153,7 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.SegmentationSelections = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.RemovedEmails = [];
|
||||
message.CreationDate = "";
|
||||
@@ -179,6 +183,9 @@ 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.MetadataElement CarrierInformation */ 19:
|
||||
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.Slot Slot */ 6:
|
||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||
break;
|
||||
@@ -278,6 +285,9 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
|
||||
/* bool InstructionAck = 18; */
|
||||
if (message.InstructionAck !== false)
|
||||
writer.tag(18, WireType.Varint).bool(message.InstructionAck);
|
||||
/* repeated api.MetadataElement CarrierInformation = 19; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -28,6 +28,8 @@ 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";
|
||||
@@ -62,18 +64,10 @@ export interface IAppointmentInputAPIClient {
|
||||
* @generated from protobuf rpc: CommissionsUpdated
|
||||
*/
|
||||
commissionsUpdated(input: AppointmentCommissionsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>;
|
||||
// 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: CarrierInformationUpdated
|
||||
*/
|
||||
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierExpected
|
||||
*/
|
||||
@@ -163,100 +157,95 @@ 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);
|
||||
}
|
||||
// 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: 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);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierExpected
|
||||
*/
|
||||
carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[5], 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[5], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[6], 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[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], 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[7], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], 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[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], 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[9], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[10], 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[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[11], 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[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[12], 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[12], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], 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[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], 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[14], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], 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[15], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@ import { ResponseHeader } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { EventHeader } from "./shared";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { AppointmentCommission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
@@ -54,6 +54,12 @@ export interface AppointmentCreatedPayload {
|
||||
// // Required carrierInformation, some can be obligatory
|
||||
// repeated CarrierInformationWithValue CarrierInformation = 5;
|
||||
|
||||
/**
|
||||
* Carrier information metadata
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 15
|
||||
*/
|
||||
CarrierInformation: MetadataElement[];
|
||||
/**
|
||||
* The slot booked for the appointment
|
||||
*
|
||||
@@ -463,75 +469,72 @@ export interface AppointmentAttachmentRemovedResponse {
|
||||
//
|
||||
// CarrierInformationUpdated : this message tells that appointment carrier information are updated
|
||||
|
||||
// // 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 ;
|
||||
// }
|
||||
|
||||
/**
|
||||
* Event Payload
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentCarrierInformationUpdatedPayload
|
||||
*/
|
||||
export interface AppointmentCarrierInformationUpdatedPayload {
|
||||
/**
|
||||
* Carrier information metadata
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 2
|
||||
*/
|
||||
CarrierInformation: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
//
|
||||
// CarrierExpected : this message tells that appointment carrier is expected
|
||||
|
||||
@@ -1182,6 +1185,7 @@ 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: 15, 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: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } },
|
||||
{ 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" } },
|
||||
@@ -1197,6 +1201,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.SegmentationSelections = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.MetaData = [];
|
||||
message.CarrierID = "";
|
||||
@@ -1222,6 +1227,9 @@ 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.MetadataElement CarrierInformation */ 15:
|
||||
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.Slot Slot */ 6:
|
||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||
break;
|
||||
@@ -1291,6 +1299,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* bool InstructionAck = 14; */
|
||||
if (message.InstructionAck !== false)
|
||||
writer.tag(14, WireType.Varint).bool(message.InstructionAck);
|
||||
/* repeated api.MetadataElement CarrierInformation = 15; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2565,6 +2576,226 @@ 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: 2, 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" } }
|
||||
], { "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.MetadataElement CarrierInformation */ 2:
|
||||
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentCarrierInformationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.MetadataElement CarrierInformation = 2; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.CarrierInformation[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.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" });
|
||||
@@ -4709,6 +4940,7 @@ 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.platformReserved": true, "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "INTERNAL" } }, 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.platformReserved": true, "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "INTERNAL" } }, 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.platformReserved": true, "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "INTERNAL" } }, 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 },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251103154241",
|
||||
"version": "1.12.0-SNAPSHOT-251104082217",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
18
site.ts
18
site.ts
@@ -15,6 +15,7 @@ import { Period } from "./shared";
|
||||
import { ResponseHeader } from "./shared";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { SlotGroup } from "./slotbooking";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
@@ -584,9 +585,12 @@ export interface BookAppointmentRequest {
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
|
||||
*/
|
||||
SegmentationSelections: SegmentationSelection[];
|
||||
// // Required carrierInformation, some can be obligatory
|
||||
// repeated CarrierInformationWithValue CarrierInformation = 5;
|
||||
|
||||
/**
|
||||
* Carrier information metadata definition
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 14
|
||||
*/
|
||||
CarrierInformation: MetadataElement[];
|
||||
/**
|
||||
* The slot to book for the appointment
|
||||
*
|
||||
@@ -2865,6 +2869,7 @@ 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: 14, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
|
||||
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
|
||||
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } },
|
||||
{ no: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
|
||||
@@ -2879,6 +2884,7 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.SegmentationSelections = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Slots = [];
|
||||
message.Emails = [];
|
||||
message.CarrierID = "";
|
||||
@@ -2907,6 +2913,9 @@ 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.MetadataElement CarrierInformation */ 14:
|
||||
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Slot Slots */ 6:
|
||||
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
@@ -2973,6 +2982,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
/* string ActorID = 13; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* repeated api.MetadataElement CarrierInformation = 14; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user