Latest generation

This commit is contained in:
ci core model
2025-06-03 12:07:30 +00:00
parent 9f369d769f
commit 73d74fc578
4 changed files with 330 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 { MetadataElement } from "./shared";
import { AppointmentStatusStruct } from "./collabShared";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
@@ -102,6 +103,10 @@ export interface AppointmentPayload {
* @generated from protobuf field: string CreationDate = 9
*/
CreationDate: string;
/**
* @generated from protobuf field: repeated api.MetadataElement MetaData = 10
*/
MetaData: MetadataElement[];
}
/**
* @generated from protobuf message api.AppointmentTriplet
@@ -192,7 +197,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
{ 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: "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: 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" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
}
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
@@ -204,6 +210,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
message.CarrierInformation = [];
message.Emails = [];
message.CreationDate = "";
message.MetaData = [];
if (value !== undefined)
reflectionMergePartial<AppointmentPayload>(this, message, value);
return message;
@@ -240,6 +247,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
case /* string CreationDate */ 9:
message.CreationDate = reader.string();
break;
case /* repeated api.MetadataElement MetaData */ 10:
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -279,6 +289,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* string CreationDate = 9; */
if (message.CreationDate !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CreationDate);
/* 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();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);