From baf80eb0c4116515dd4b5b326290b95814ccaab4 Mon Sep 17 00:00:00 2001 From: ci core model Date: Tue, 7 Apr 2026 08:31:22 +0000 Subject: [PATCH] Latest generation --- package.json | 2 +- site.ts | 9 +++--- slotbooking.ts | 79 ++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 69 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 21965fd..eef98b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260402135034", + "version": "1.13.0-SNAPSHOT-260407083041", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.ts b/site.ts index 7c55bbb..5522bfd 100644 --- a/site.ts +++ b/site.ts @@ -315,7 +315,8 @@ export interface UpdateSettingsRequest { */ Authorisations: ProjectAuthorisation[]; /** - * @generated from protobuf field: repeated api.Unit Units = 11 + * @deprecated + * @generated from protobuf field: repeated api.Unit Units = 11 [deprecated = true] */ Units: Unit[]; // List of containment units which will be used to compute the appointment duration. At least one unit id is mandatory : APPOINTMENT_UNITID. /** @@ -2022,7 +2023,7 @@ class UpdateSettingsRequest$Type extends MessageType { { no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\"]" } } }, { no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation }, { no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation }, - { no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit }, { no: 12, name: "OpeningRules", kind: "message", localName: "OpeningRules", jsonName: "OpeningRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningRule }, { no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule }, { no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule }, @@ -2084,7 +2085,7 @@ class UpdateSettingsRequest$Type extends MessageType { case /* repeated api.ProjectAuthorisation Authorisations */ 10: message.Authorisations.push(ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* repeated api.Unit Units */ 11: + case /* repeated api.Unit Units = 11 [deprecated = true] */ 11: message.Units.push(Unit.internalBinaryRead(reader, reader.uint32(), options)); break; case /* repeated api.OpeningRule OpeningRules */ 12: @@ -2150,7 +2151,7 @@ class UpdateSettingsRequest$Type extends MessageType { /* repeated api.ProjectAuthorisation Authorisations = 10; */ for (let i = 0; i < message.Authorisations.length; i++) ProjectAuthorisation.internalBinaryWrite(message.Authorisations[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.Unit Units = 11; */ + /* repeated api.Unit Units = 11 [deprecated = true]; */ for (let i = 0; i < message.Units.length; i++) Unit.internalBinaryWrite(message.Units[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join(); /* repeated api.OpeningRule OpeningRules = 12; */ diff --git a/slotbooking.ts b/slotbooking.ts index 6486111..857f2d8 100644 --- a/slotbooking.ts +++ b/slotbooking.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 { MetadataElement } from "./shared"; import { Period } from "./shared"; import { TimeRange } from "./shared"; import { WeekDay } from "./shared"; @@ -550,7 +551,8 @@ export interface AppointmentCommission { */ ExecutionflowID: string; // ID of the executionflow, might be null for standalone. /** - * @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3 + * @deprecated + * @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3 [deprecated = true] */ Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed. /** @@ -565,6 +567,12 @@ export interface AppointmentCommission { * @generated from protobuf field: string ActorID = 7 */ ActorID: string; // ID of the actorID which linked the site on the project commission + /** + * Unit quantities + * + * @generated from protobuf field: repeated api.MetadataElement UnitQuantities = 8 + */ + UnitQuantities: MetadataElement[]; } /** * @generated from protobuf message api.AppointmentContent @@ -575,9 +583,16 @@ export interface AppointmentContent { */ Projects: AppointmentProjectContent[]; /** - * @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 2 + * @deprecated + * @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 2 [deprecated = true] */ TotalQuantities: QuantityByUnit[]; + /** + * Unit quantities + * + * @generated from protobuf field: repeated api.MetadataElement UnitQuantities = 3 + */ + UnitQuantities: MetadataElement[]; } /** * @generated from protobuf message api.AppointmentProjectContent @@ -592,9 +607,16 @@ export interface AppointmentProjectContent { */ Commissions: AppointmentCommission[]; /** - * @generated from protobuf field: repeated api.QuantityByUnit ProjectQuantities = 3 + * @deprecated + * @generated from protobuf field: repeated api.QuantityByUnit ProjectQuantities = 3 [deprecated = true] */ ProjectQuantities: QuantityByUnit[]; + /** + * Unit quantities + * + * @generated from protobuf field: repeated api.MetadataElement UnitQuantities = 4 + */ + UnitQuantities: MetadataElement[]; } /** * @generated from protobuf message api.Commission @@ -613,7 +635,8 @@ export interface Commission { */ ExecutionflowID: string; // ID of the executionflow, might be null for standalone. /** - * @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3 + * @deprecated + * @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3 [deprecated = true] */ Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed. /** @@ -2339,7 +2362,8 @@ class AppointmentCommission$Type extends MessageType { { no: 3, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }, { no: 4, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/ }, - { no: 7, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } } + { no: 7, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 8, name: "UnitQuantities", kind: "message", localName: "UnitQuantities", jsonName: "UnitQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unit quantities metadata" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Appointment,Payload.Loading.UnitQuantities,hard", "api.parentEntity": "Appointment" } } ]); } create(value?: PartialMessage): AppointmentCommission { @@ -2351,6 +2375,7 @@ class AppointmentCommission$Type extends MessageType { message.OrganisationID = ""; message.PartnerAppID = ""; message.ActorID = ""; + message.UnitQuantities = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -2369,7 +2394,7 @@ class AppointmentCommission$Type extends MessageType { case /* string ExecutionflowID */ 6: message.ExecutionflowID = reader.string(); break; - case /* repeated api.QuantityByUnit Quantities */ 3: + case /* repeated api.QuantityByUnit Quantities = 3 [deprecated = true] */ 3: message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string OrganisationID */ 4: @@ -2381,6 +2406,9 @@ class AppointmentCommission$Type extends MessageType { case /* string ActorID */ 7: message.ActorID = reader.string(); break; + case /* repeated api.MetadataElement UnitQuantities */ 8: + message.UnitQuantities.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2399,7 +2427,7 @@ class AppointmentCommission$Type extends MessageType { /* string OrderID = 2; */ if (message.OrderID !== "") writer.tag(2, WireType.LengthDelimited).string(message.OrderID); - /* repeated api.QuantityByUnit Quantities = 3; */ + /* repeated api.QuantityByUnit Quantities = 3 [deprecated = true]; */ for (let i = 0; i < message.Quantities.length; i++) QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* string OrganisationID = 4; */ @@ -2414,6 +2442,9 @@ class AppointmentCommission$Type extends MessageType { /* string ActorID = 7; */ if (message.ActorID !== "") writer.tag(7, WireType.LengthDelimited).string(message.ActorID); + /* repeated api.MetadataElement UnitQuantities = 8; */ + for (let i = 0; i < message.UnitQuantities.length; i++) + MetadataElement.internalBinaryWrite(message.UnitQuantities[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2429,13 +2460,15 @@ class AppointmentContent$Type extends MessageType { constructor() { super("api.AppointmentContent", [ { no: 1, name: "Projects", kind: "message", localName: "Projects", jsonName: "Projects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentProjectContent, options: { "api.aggKey": "ProjectID" } }, - { no: 2, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit } + { no: 2, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }, + { no: 3, name: "UnitQuantities", kind: "message", localName: "UnitQuantities", jsonName: "UnitQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unit quantities metadata" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Appointment,Payload.Loading.UnitQuantities,hard", "api.parentEntity": "Appointment" } } ]); } create(value?: PartialMessage): AppointmentContent { const message = globalThis.Object.create((this.messagePrototype!)); message.Projects = []; message.TotalQuantities = []; + message.UnitQuantities = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -2448,9 +2481,12 @@ class AppointmentContent$Type extends MessageType { case /* repeated api.AppointmentProjectContent Projects */ 1: message.Projects.push(AppointmentProjectContent.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* repeated api.QuantityByUnit TotalQuantities */ 2: + case /* repeated api.QuantityByUnit TotalQuantities = 2 [deprecated = true] */ 2: message.TotalQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options)); break; + case /* repeated api.MetadataElement UnitQuantities */ 3: + message.UnitQuantities.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2466,9 +2502,12 @@ class AppointmentContent$Type extends MessageType { /* repeated api.AppointmentProjectContent Projects = 1; */ for (let i = 0; i < message.Projects.length; i++) AppointmentProjectContent.internalBinaryWrite(message.Projects[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.QuantityByUnit TotalQuantities = 2; */ + /* repeated api.QuantityByUnit TotalQuantities = 2 [deprecated = true]; */ for (let i = 0; i < message.TotalQuantities.length; i++) QuantityByUnit.internalBinaryWrite(message.TotalQuantities[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* repeated api.MetadataElement UnitQuantities = 3; */ + for (let i = 0; i < message.UnitQuantities.length; i++) + MetadataElement.internalBinaryWrite(message.UnitQuantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2484,8 +2523,9 @@ class AppointmentProjectContent$Type extends MessageType AppointmentCommission }, - { no: 3, name: "ProjectQuantities", kind: "message", localName: "ProjectQuantities", jsonName: "ProjectQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit } + { no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission, options: { "api.kpiExclude": { Items: [{ Context: "Appointment", Group: "appointment" }] } } }, + { no: 3, name: "ProjectQuantities", kind: "message", localName: "ProjectQuantities", jsonName: "ProjectQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }, + { no: 4, name: "UnitQuantities", kind: "message", localName: "UnitQuantities", jsonName: "UnitQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unit quantities metadata" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Appointment,Payload.Loading.UnitQuantities,hard", "api.parentEntity": "Appointment" } } ]); } create(value?: PartialMessage): AppointmentProjectContent { @@ -2493,6 +2533,7 @@ class AppointmentProjectContent$Type extends MessageType(this, message, value); return message; @@ -2508,9 +2549,12 @@ class AppointmentProjectContent$Type extends MessageType { case /* string ExecutionflowID */ 5: message.ExecutionflowID = reader.string(); break; - case /* repeated api.QuantityByUnit Quantities */ 3: + case /* repeated api.QuantityByUnit Quantities = 3 [deprecated = true] */ 3: message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string ActorID */ 4: @@ -2602,7 +2649,7 @@ class Commission$Type extends MessageType { /* string OrderID = 2; */ if (message.OrderID !== "") writer.tag(2, WireType.LengthDelimited).string(message.OrderID); - /* repeated api.QuantityByUnit Quantities = 3; */ + /* repeated api.QuantityByUnit Quantities = 3 [deprecated = true]; */ for (let i = 0; i < message.Quantities.length; i++) QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* string ActorID = 4; */