From 685abd5206e7889913e0328216d977f9db53d7a3 Mon Sep 17 00:00:00 2001 From: ci core model Date: Tue, 5 May 2026 09:18:11 +0000 Subject: [PATCH] Latest generation --- order.ts | 14 +++++++++++++- orderAction.ts | 28 ++++++++++++++++++++++++++-- orderInput.ts | 14 +++++++++++++- package.json | 2 +- 4 files changed, 53 insertions(+), 5 deletions(-) diff --git a/order.ts b/order.ts index f299a72e..7950340b 100644 --- a/order.ts +++ b/order.ts @@ -141,6 +141,10 @@ export interface OrderPayload { * @generated from protobuf field: api.ETA OrderETA = 23 */ OrderETA?: ETA; + /** + * @generated from protobuf field: bool Anticipated = 24 + */ + Anticipated: boolean; } /** * Order entity @@ -266,7 +270,8 @@ class OrderPayload$Type extends MessageType { { no: 20, 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: 21, 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: 22, name: "ExecutionflowETAs", kind: "message", localName: "ExecutionflowETAs", jsonName: "ExecutionflowETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyExecutionflow, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for each executionflow attached to the order" }, "api.aggKey": "ExecutionflowID", "api.aggSkip": "ExecutionflowETAUpdated" } }, - { no: 23, name: "OrderETA", kind: "message", localName: "OrderETA", jsonName: "OrderETA", T: () => ETA, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for the order, computed from ETA of the execitionFlows" }, "api.aggSkip": "ETAUpdated" } } + { no: 23, name: "OrderETA", kind: "message", localName: "OrderETA", jsonName: "OrderETA", T: () => ETA, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for the order, computed from ETA of the execitionFlows" }, "api.aggSkip": "ETAUpdated" } }, + { no: 24, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } } ]); } create(value?: PartialMessage): OrderPayload { @@ -281,6 +286,7 @@ class OrderPayload$Type extends MessageType { message.Claims = []; message.ClaimNumber = 0; message.ExecutionflowETAs = []; + message.Anticipated = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -356,6 +362,9 @@ class OrderPayload$Type extends MessageType { case /* api.ETA OrderETA */ 23: message.OrderETA = ETA.internalBinaryRead(reader, reader.uint32(), options, message.OrderETA); break; + case /* bool Anticipated */ 24: + message.Anticipated = reader.bool(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -434,6 +443,9 @@ class OrderPayload$Type extends MessageType { /* api.ETA OrderETA = 23; */ if (message.OrderETA) ETA.internalBinaryWrite(message.OrderETA, writer.tag(23, WireType.LengthDelimited).fork(), options).join(); + /* bool Anticipated = 24; */ + if (message.Anticipated !== false) + writer.tag(24, WireType.Varint).bool(message.Anticipated); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/orderAction.ts b/orderAction.ts index 23b64c02..85802d8d 100644 --- a/orderAction.ts +++ b/orderAction.ts @@ -89,6 +89,10 @@ export interface OrderBuildExecutionflowPayload { * @generated from protobuf field: repeated api.OrderLine Lines = 11 */ Lines: OrderLine[]; + /** + * @generated from protobuf field: bool Anticipated = 17 + */ + Anticipated: boolean; } /** * @generated from protobuf message api.OrderBuildExecutionflow @@ -125,6 +129,10 @@ export interface OrderPropagateLinesToExecutionflowPayload { * @generated from protobuf field: repeated api.OrderLine Lines = 1 */ Lines: OrderLine[]; + /** + * @generated from protobuf field: bool Anticipated = 2 + */ + Anticipated: boolean; } /** * @generated from protobuf message api.OrderPropagateLinesToExecutionflow @@ -166,7 +174,8 @@ class OrderBuildExecutionflowPayload$Type extends MessageType TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Definition of the order carrier" } } }, { no: 16, name: "CarrierService", kind: "scalar", localName: "CarrierService", jsonName: "CarrierService", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of carrier service" } } }, { no: 10, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones }, - { no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } } + { no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } }, + { no: 17, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Build Executionflow from Order" } }, "api.messageType": "Command", "api.payload": true, "api.action": "BuildExecutionflow" }); } create(value?: PartialMessage): OrderBuildExecutionflowPayload { @@ -175,6 +184,7 @@ class OrderBuildExecutionflowPayload$Type extends MessageType(this, message, value); return message; @@ -220,6 +230,9 @@ class OrderBuildExecutionflowPayload$Type extends MessageType { constructor() { super("api.OrderPropagateLinesToExecutionflowPayload", [ - { no: 1, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } } + { no: 1, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } }, + { no: 2, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Propagate lines from Order to Executionflow" } }, "api.messageType": "Command", "api.payload": true, "api.action": "PropagateLinesToExecutionflow" }); } create(value?: PartialMessage): OrderPropagateLinesToExecutionflowPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.Lines = []; + message.Anticipated = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -374,6 +392,9 @@ class OrderPropagateLinesToExecutionflowPayload$Type extends MessageType { { no: 9, name: "Carrier", kind: "message", localName: "Carrier", jsonName: "Carrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Definition of the order carrier" } } }, { no: 12, name: "CarrierService", kind: "scalar", localName: "CarrierService", jsonName: "CarrierService", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of carrier service" } } }, { no: 10, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones }, - { no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } } + { no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } }, + { no: 13, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["CreationDateTime", "ShipTo", "LanguageCodeISO6391"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "api.postAggMethods": "computeEquivalentLVBaseQuantity" }); } create(value?: PartialMessage): OrderCreatedPayload { @@ -1516,6 +1521,7 @@ class OrderCreatedPayload$Type extends MessageType { message.MetaData = []; message.CarrierService = ""; message.Lines = []; + message.Anticipated = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -1561,6 +1567,9 @@ class OrderCreatedPayload$Type extends MessageType { case /* repeated api.OrderLine Lines */ 11: message.Lines.push(OrderLine.internalBinaryRead(reader, reader.uint32(), options)); break; + case /* bool Anticipated */ 13: + message.Anticipated = reader.bool(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1609,6 +1618,9 @@ class OrderCreatedPayload$Type extends MessageType { /* string CarrierService = 12; */ if (message.CarrierService !== "") writer.tag(12, WireType.LengthDelimited).string(message.CarrierService); + /* bool Anticipated = 13; */ + if (message.Anticipated !== false) + writer.tag(13, WireType.Varint).bool(message.Anticipated); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/package.json b/package.json index c6e019af..a10e6a72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260505074357", + "version": "1.14.0-SNAPSHOT-260505091724", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",