Latest generation

This commit is contained in:
ci core model
2025-11-21 08:37:32 +00:00
parent c4372a1610
commit 7ff46f1bb1
5 changed files with 68 additions and 184 deletions

View File

@@ -16,6 +16,7 @@ import { ResponseHeader } from "./shared";
import { RequestProjectHeader } from "./shared";
import { EntityID } from "./shared";
import { EventHeader } from "./shared";
import { Address } from "./repositoryShared";
import { Slot } from "./slotbooking";
import { MetadataElement } from "./shared";
import { SegmentationSelection } from "./slotbooking";
@@ -78,14 +79,9 @@ export interface AppointmentCreatedPayload {
*/
MetaData: MetadataElement[];
/**
* @generated from protobuf field: string CarrierID = 10
*/
CarrierID: string;
/**
* @generated from protobuf field: string CarrierName = 11
*/
CarrierName: string;
/**
* string CarrierID = 10;
* string CarrierName = 11;
*
* @generated from protobuf field: string Reason = 12
*/
Reason: string;
@@ -101,6 +97,12 @@ export interface AppointmentCreatedPayload {
* @generated from protobuf field: string ActorID = 16
*/
ActorID: string;
/**
* Address of the appointment site
*
* @generated from protobuf field: api.Address Address = 17
*/
Address?: Address;
}
/**
* Event message
@@ -1369,12 +1371,11 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
{ 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" } },
{ no: 10, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "HasCommission", kind: "scalar", localName: "HasCommission", jsonName: "HasCommission", T: 8 /*ScalarType.BOOL*/ },
{ no: 14, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
{ no: 16, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
{ no: 16, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 17, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
}
create(value?: PartialMessage<AppointmentCreatedPayload>): AppointmentCreatedPayload {
@@ -1385,8 +1386,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
message.CarrierInformation = [];
message.Emails = [];
message.MetaData = [];
message.CarrierID = "";
message.CarrierName = "";
message.Reason = "";
message.HasCommission = false;
message.InstructionAck = false;
@@ -1421,12 +1420,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
case /* repeated api.MetadataElement MetaData */ 8:
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string CarrierID */ 10:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 11:
message.CarrierName = reader.string();
break;
case /* string Reason */ 12:
message.Reason = reader.string();
break;
@@ -1439,6 +1432,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
case /* string ActorID */ 16:
message.ActorID = reader.string();
break;
case /* api.Address Address */ 17:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -1469,12 +1465,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
/* repeated api.MetadataElement MetaData = 8; */
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* string CarrierID = 10; */
if (message.CarrierID !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 11; */
if (message.CarrierName !== "")
writer.tag(11, WireType.LengthDelimited).string(message.CarrierName);
/* string Reason = 12; */
if (message.Reason !== "")
writer.tag(12, WireType.LengthDelimited).string(message.Reason);
@@ -1490,6 +1480,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
/* string ActorID = 16; */
if (message.ActorID !== "")
writer.tag(16, WireType.LengthDelimited).string(message.ActorID);
/* api.Address Address = 17; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);