From db7d082d92809ab70f50109939f851d2a8e11e55 Mon Sep 17 00:00:00 2001 From: ci core model Date: Fri, 28 Aug 2026 12:23:14 +0000 Subject: [PATCH] Latest generation --- actorAction.ts | 145 +++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 146 insertions(+), 1 deletion(-) diff --git a/actorAction.ts b/actorAction.ts index e163c3d..130c303 100644 --- a/actorAction.ts +++ b/actorAction.ts @@ -183,6 +183,39 @@ export interface ActorEnrichExecutionflow { */ PreviousPayload?: ActorEnrichExecutionflowPayload; } +/** + * + * EnrichOrder : force enrichment of order for the actor, by sending a new executionflow event + * + * @generated from protobuf message api.ActorEnrichOrderPayload + */ +export interface ActorEnrichOrderPayload { +} +/** + * @generated from protobuf message api.ActorEnrichOrder + */ +export interface ActorEnrichOrder { + /** + * @generated from protobuf field: api.CommandHeader Header = 1 + */ + Header?: CommandHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; + /** + * @generated from protobuf field: api.ActorEnrichOrderPayload Payload = 3 + */ + Payload?: ActorEnrichOrderPayload; + /** + * @generated from protobuf field: api.ActorEnrichOrderPayload EventPayload = 4 + */ + EventPayload?: ActorEnrichOrderPayload; + /** + * @generated from protobuf field: api.ActorEnrichOrderPayload PreviousPayload = 5 + */ + PreviousPayload?: ActorEnrichOrderPayload; +} // @generated message type with reflection information, may provide speed optimized methods class ActorCompleteSnapshotPayload$Type extends MessageType { constructor() { @@ -686,3 +719,115 @@ class ActorEnrichExecutionflow$Type extends MessageType { + constructor() { + super("api.ActorEnrichOrderPayload", [], { "api.messageType": "Command", "api.payload": true, "api.action": "EnrichOrder" }); + } + create(value?: PartialMessage): ActorEnrichOrderPayload { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorEnrichOrderPayload): ActorEnrichOrderPayload { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + 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: ActorEnrichOrderPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ActorEnrichOrderPayload + */ +export const ActorEnrichOrderPayload = new ActorEnrichOrderPayload$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class ActorEnrichOrder$Type extends MessageType { + constructor() { + super("api.ActorEnrichOrder", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => CommandHeader }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorEnrichOrderPayload }, + { no: 4, name: "EventPayload", kind: "message", localName: "EventPayload", jsonName: "EventPayload", T: () => ActorEnrichOrderPayload }, + { no: 5, name: "PreviousPayload", kind: "message", localName: "PreviousPayload", jsonName: "PreviousPayload", T: () => ActorEnrichOrderPayload } + ], { "api.messageType": "Command", "api.action": "EnrichOrder", "api.resultingEvent": "order.EnrichmentUpdated", "api.triggerEventFilters": "StockManagementUpdated" }); + } + create(value?: PartialMessage): ActorEnrichOrder { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorEnrichOrder): ActorEnrichOrder { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.CommandHeader Header */ 1: + message.Header = CommandHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* api.EntityID ID */ 2: + message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); + break; + case /* api.ActorEnrichOrderPayload Payload */ 3: + message.Payload = ActorEnrichOrderPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); + break; + case /* api.ActorEnrichOrderPayload EventPayload */ 4: + message.EventPayload = ActorEnrichOrderPayload.internalBinaryRead(reader, reader.uint32(), options, message.EventPayload); + break; + case /* api.ActorEnrichOrderPayload PreviousPayload */ 5: + message.PreviousPayload = ActorEnrichOrderPayload.internalBinaryRead(reader, reader.uint32(), options, message.PreviousPayload); + 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: ActorEnrichOrder, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.CommandHeader Header = 1; */ + if (message.Header) + CommandHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); + /* api.EntityID ID = 2; */ + if (message.ID) + EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* api.ActorEnrichOrderPayload Payload = 3; */ + if (message.Payload) + ActorEnrichOrderPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + /* api.ActorEnrichOrderPayload EventPayload = 4; */ + if (message.EventPayload) + ActorEnrichOrderPayload.internalBinaryWrite(message.EventPayload, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* api.ActorEnrichOrderPayload PreviousPayload = 5; */ + if (message.PreviousPayload) + ActorEnrichOrderPayload.internalBinaryWrite(message.PreviousPayload, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.ActorEnrichOrder + */ +export const ActorEnrichOrder = new ActorEnrichOrder$Type(); diff --git a/package.json b/package.json index 2cfb495..0f3ac28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.15.0-SNAPSHOT-260828091604", + "version": "1.15.0-SNAPSHOT-260828122234", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",