Latest generation

This commit is contained in:
ci core model
2025-07-28 13:09:26 +00:00
parent aa255ff65e
commit 2450e4bf38
4 changed files with 623 additions and 4 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 { AttachmentSummary } from "./shared";
import { MetadataElement } from "./shared";
import { AppointmentStatusStruct } from "./collabShared";
import { Slot } from "./slotbooking";
@@ -108,6 +109,10 @@ export interface AppointmentPayload {
* @generated from protobuf field: string CarrierName = 12
*/
CarrierName: string;
/**
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 13
*/
Attachments: AttachmentSummary[];
}
/**
* @generated from protobuf message api.AppointmentTriplet
@@ -200,7 +205,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
{ 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: 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" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
}
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
@@ -214,6 +220,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
message.MetaData = [];
message.CarrierID = "";
message.CarrierName = "";
message.Attachments = [];
if (value !== undefined)
reflectionMergePartial<AppointmentPayload>(this, message, value);
return message;
@@ -256,6 +263,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
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;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -301,6 +311,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* 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();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);