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

@@ -10,6 +10,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { Address } from "./repositoryShared";
import { AttachmentSummary } from "./shared";
import { AppointmentStatusStruct } from "./collabShared";
import { Slot } from "./slotbooking";
@@ -106,14 +107,9 @@ export interface AppointmentPayload {
* @generated from protobuf field: repeated api.MetadataElement MetaData = 10
*/
MetaData: MetadataElement[];
/**
* @generated from protobuf field: string CarrierID = 11
*/
CarrierID: string;
/**
* @generated from protobuf field: string CarrierName = 12
*/
CarrierName: string;
// string CarrierID = 11;
// string CarrierName = 12;
/**
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 13
*/
@@ -146,6 +142,12 @@ export interface AppointmentPayload {
* @generated from protobuf field: string ActorID = 20
*/
ActorID: string;
/**
* Address of the appointment site
*
* @generated from protobuf field: api.Address Address = 21
*/
Address?: Address;
}
/**
* @generated from protobuf message api.AppointmentTriplet
@@ -238,14 +240,13 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the appointment" }, "api.aggSkip": "StatusUpdated" } },
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 11, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } },
{ no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } },
{ no: 15, name: "HasCommission", kind: "scalar", localName: "HasCommission", jsonName: "HasCommission", T: 8 /*ScalarType.BOOL*/ },
{ no: 17, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 18, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
{ no: 20, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "Created,Canceled,SlotUpdated,CommissionsUpdated,CarrierInformationUpdated,CarrierExpected,CarrierArrived,ExpeditionStarted,ExpeditionLoaded,ReceptionStarted,ReceptionUnloaded,CarrierDeparted,MetaDataUpdated,AttachmentAdded,AttachmentRemoved,EmailsAdded,EmailsRemoved,Sanitised,CustomFieldsUpdated" } }
{ no: 20, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "Created,Canceled,SlotUpdated,CommissionsUpdated,CarrierInformationUpdated,CarrierExpected,CarrierArrived,ExpeditionStarted,ExpeditionLoaded,ReceptionStarted,ReceptionUnloaded,CarrierDeparted,MetaDataUpdated,AttachmentAdded,AttachmentRemoved,EmailsAdded,EmailsRemoved,Sanitised,CustomFieldsUpdated" } },
{ no: 21, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
}
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
@@ -258,8 +259,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
message.RemovedEmails = [];
message.CreationDate = "";
message.MetaData = [];
message.CarrierID = "";
message.CarrierName = "";
message.Attachments = [];
message.AttachmentNumber = 0;
message.HasCommission = false;
@@ -305,12 +304,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
case /* repeated api.MetadataElement MetaData */ 10:
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string CarrierID */ 11:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 12:
message.CarrierName = reader.string();
break;
case /* repeated api.AttachmentSummary Attachments */ 13:
message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
@@ -329,6 +322,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
case /* string ActorID */ 20:
message.ActorID = reader.string();
break;
case /* api.Address Address */ 21:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -365,12 +361,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* repeated api.MetadataElement MetaData = 10; */
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* string CarrierID = 11; */
if (message.CarrierID !== "")
writer.tag(11, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 12; */
if (message.CarrierName !== "")
writer.tag(12, WireType.LengthDelimited).string(message.CarrierName);
/* repeated api.AttachmentSummary Attachments = 13; */
for (let i = 0; i < message.Attachments.length; i++)
AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
@@ -395,6 +385,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* string ActorID = 20; */
if (message.ActorID !== "")
writer.tag(20, WireType.LengthDelimited).string(message.ActorID);
/* api.Address Address = 21; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);