From 6b28d9aedbf3f939a0f007aea2498c1644dcd9a6 Mon Sep 17 00:00:00 2001 From: ci core model Date: Tue, 30 Jun 2026 15:45:39 +0000 Subject: [PATCH] Latest generation --- appointment.ts | 15 +++++++++- appointmentInput.ts | 15 +++++++++- package.json | 2 +- siteBooking.ts | 15 +++++++++- slotbooking.ts | 68 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+), 4 deletions(-) diff --git a/appointment.ts b/appointment.ts index f9eb51f..f6e33db 100644 --- a/appointment.ts +++ b/appointment.ts @@ -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 { AckDocument } from "./slotbooking"; import { ClaimSummary } from "./shared"; import { AppointmentContent } from "./slotbooking"; import { Address } from "./repositoryShared"; @@ -217,6 +218,10 @@ export interface AppointmentPayload { * @generated from protobuf field: int32 ClaimNumber = 34 */ ClaimNumber: number; + /** + * @generated from protobuf field: repeated api.AckDocument AckDocuments = 35 + */ + AckDocuments: AckDocument[]; } /** * @generated from protobuf message api.AppointmentTriplet @@ -343,7 +348,8 @@ class AppointmentPayload$Type extends MessageType { { no: 31, name: "WMSCreated", kind: "scalar", localName: "WMSCreated", jsonName: "WMSCreated", T: 8 /*ScalarType.BOOL*/ }, { no: 32, name: "ExternalAccess", kind: "message", localName: "ExternalAccess", jsonName: "ExternalAccess", T: () => AppointmentExternalAccess }, { no: 33, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims per type" }, "api.aggKey": "ClaimTypeID", "api.aggSkip": "ClaimAdded" } }, - { no: 34, name: "ClaimNumber", kind: "scalar", localName: "ClaimNumber", jsonName: "ClaimNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of claims" } } } + { no: 34, name: "ClaimNumber", kind: "scalar", localName: "ClaimNumber", jsonName: "ClaimNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of claims" } } }, + { no: 35, name: "AckDocuments", kind: "message", localName: "AckDocuments", jsonName: "AckDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AckDocument } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } }); } create(value?: PartialMessage): AppointmentPayload { @@ -369,6 +375,7 @@ class AppointmentPayload$Type extends MessageType { message.WMSCreated = false; message.Claims = []; message.ClaimNumber = 0; + message.AckDocuments = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -462,6 +469,9 @@ class AppointmentPayload$Type extends MessageType { case /* int32 ClaimNumber */ 34: message.ClaimNumber = reader.int32(); break; + case /* repeated api.AckDocument AckDocuments */ 35: + message.AckDocuments.push(AckDocument.internalBinaryRead(reader, reader.uint32(), options)); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -558,6 +568,9 @@ class AppointmentPayload$Type extends MessageType { /* int32 ClaimNumber = 34; */ if (message.ClaimNumber !== 0) writer.tag(34, WireType.Varint).int32(message.ClaimNumber); + /* repeated api.AckDocument AckDocuments = 35; */ + for (let i = 0; i < message.AckDocuments.length; i++) + AckDocument.internalBinaryWrite(message.AckDocuments[i], writer.tag(35, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/appointmentInput.ts b/appointmentInput.ts index df188ec..4837c1b 100644 --- a/appointmentInput.ts +++ b/appointmentInput.ts @@ -17,6 +17,7 @@ import { ResponseHeader } from "./shared"; import { RequestProjectHeader } from "./shared"; import { EntityID } from "./shared"; import { EventHeader } from "./shared"; +import { AckDocument } from "./slotbooking"; import { AppointmentContent } from "./slotbooking"; import { Address } from "./repositoryShared"; import { Slot } from "./slotbooking"; @@ -135,6 +136,10 @@ export interface AppointmentCreatedPayload { * @generated from protobuf field: repeated string Attendees = 27 */ Attendees: string[]; + /** + * @generated from protobuf field: repeated api.AckDocument AckDocuments = 29 + */ + AckDocuments: AckDocument[]; } /** * Event message @@ -1967,7 +1972,8 @@ class AppointmentCreatedPayload$Type extends MessageType AppointmentContent }, { no: 26, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, - { no: 27, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Some attendees added on the appointment (user uuid)" } } } + { no: 27, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Some attendees added on the appointment (user uuid)" } } }, + { no: 29, name: "AckDocuments", kind: "message", localName: "AckDocuments", jsonName: "AckDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AckDocument } ], { "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 { @@ -1982,6 +1988,7 @@ class AppointmentCreatedPayload$Type extends MessageType(this, message, value); return message; @@ -2033,6 +2040,9 @@ class AppointmentCreatedPayload$Type extends MessageType { { no: 9, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, - { no: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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: 15, name: "AckDocuments", kind: "message", localName: "AckDocuments", jsonName: "AckDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AckDocument } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType", "Slot", "CarrierInformation", "Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" }); } create(value?: PartialMessage): BookAppointmentPayload { @@ -728,6 +734,7 @@ class BookAppointmentPayload$Type extends MessageType { message.InstructionAck = false; message.TimeZone = ""; message.Emails = []; + message.AckDocuments = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -773,6 +780,9 @@ class BookAppointmentPayload$Type extends MessageType { case /* repeated string Emails */ 13: message.Emails.push(reader.string()); break; + case /* repeated api.AckDocument AckDocuments */ 15: + message.AckDocuments.push(AckDocument.internalBinaryRead(reader, reader.uint32(), options)); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -821,6 +831,9 @@ class BookAppointmentPayload$Type extends MessageType { /* repeated api.MetadataElement SegmentationKeys = 14; */ for (let i = 0; i < message.SegmentationKeys.length; i++) MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join(); + /* repeated api.AckDocument AckDocuments = 15; */ + for (let i = 0; i < message.AckDocuments.length; i++) + AckDocument.internalBinaryWrite(message.AckDocuments[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); diff --git a/slotbooking.ts b/slotbooking.ts index 8e84452..f6c2274 100644 --- a/slotbooking.ts +++ b/slotbooking.ts @@ -575,6 +575,19 @@ export interface AppointmentCommission { */ UnitQuantities: MetadataElement[]; } +/** + * @generated from protobuf message api.AckDocument + */ +export interface AckDocument { + /** + * @generated from protobuf field: string DocID = 1 + */ + DocID: string; + /** + * @generated from protobuf field: bool Ack = 2 + */ + Ack: boolean; +} /** * @generated from protobuf message api.AppointmentContent */ @@ -2432,6 +2445,61 @@ class AppointmentCommission$Type extends MessageType { */ export const AppointmentCommission = new AppointmentCommission$Type(); // @generated message type with reflection information, may provide speed optimized methods +class AckDocument$Type extends MessageType { + constructor() { + super("api.AckDocument", [ + { no: 1, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Ack", kind: "scalar", localName: "Ack", jsonName: "Ack", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value?: PartialMessage): AckDocument { + const message = globalThis.Object.create((this.messagePrototype!)); + message.DocID = ""; + message.Ack = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AckDocument): AckDocument { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string DocID */ 1: + message.DocID = reader.string(); + break; + case /* bool Ack */ 2: + message.Ack = reader.bool(); + 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: AckDocument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string DocID = 1; */ + if (message.DocID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.DocID); + /* bool Ack = 2; */ + if (message.Ack !== false) + writer.tag(2, WireType.Varint).bool(message.Ack); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.AckDocument + */ +export const AckDocument = new AckDocument$Type(); +// @generated message type with reflection information, may provide speed optimized methods class AppointmentContent$Type extends MessageType { constructor() { super("api.AppointmentContent", [