Latest generation

This commit is contained in:
ci core model
2026-03-17 15:55:07 +00:00
parent 64f3718241
commit 55be095032
5 changed files with 734 additions and 22 deletions

View File

@@ -287,7 +287,7 @@ class OrderBuildExecutionflow$Type extends MessageType<OrderBuildExecutionflow>
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderBuildExecutionflowPayload },
{ no: 4, name: "EventPayload", kind: "message", localName: "EventPayload", jsonName: "EventPayload", T: () => OrderBuildExecutionflowPayload },
{ no: 5, name: "PreviousPayload", kind: "message", localName: "PreviousPayload", jsonName: "PreviousPayload", T: () => OrderBuildExecutionflowPayload }
], { "api.messageType": "Command", "api.action": "BuildExecutionflow", "api.resultingEvent": "executionflow.Created", "api.triggerEventFilters": "Created" });
], { "api.messageType": "Command", "api.action": "BuildExecutionflow", "api.resultingEvent": "executionflow.Created", "api.triggerEventFilters": "Created,DraftCompleted", "api.triggerMinStatusFilter": "ORDER_0500_READY_TO_ALLOCATE" });
}
create(value?: PartialMessage<OrderBuildExecutionflow>): OrderBuildExecutionflow {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -408,7 +408,7 @@ class OrderPropagateLinesToExecutionflow$Type extends MessageType<OrderPropagate
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPropagateLinesToExecutionflowPayload },
{ no: 4, name: "EventPayload", kind: "message", localName: "EventPayload", jsonName: "EventPayload", T: () => OrderPropagateLinesToExecutionflowPayload },
{ no: 5, name: "PreviousPayload", kind: "message", localName: "PreviousPayload", jsonName: "PreviousPayload", T: () => OrderPropagateLinesToExecutionflowPayload }
], { "api.messageType": "Command", "api.action": "PropagateLinesToExecutionflow", "api.resultingEvent": "executionflow.LinesDetected", "api.triggerEventFilters": "LinesAdded" });
], { "api.messageType": "Command", "api.action": "PropagateLinesToExecutionflow", "api.resultingEvent": "executionflow.LinesDetected", "api.triggerEventFilters": "LinesAdded", "api.triggerMinStatusFilter": "ORDER_0500_READY_TO_ALLOCATE" });
}
create(value?: PartialMessage<OrderPropagateLinesToExecutionflow>): OrderPropagateLinesToExecutionflow {
const message = globalThis.Object.create((this.messagePrototype!));

View File

@@ -42,6 +42,10 @@ import type { OrderCancelledResponse } from "./orderInput";
import type { OrderCancelledRequest } from "./orderInput";
import type { OrderExecutionflowDetectedResponse } from "./orderInput";
import type { OrderExecutionflowDetectedRequest } from "./orderInput";
import type { OrderDraftCompletedResponse } from "./orderInput";
import type { OrderDraftCompletedRequest } from "./orderInput";
import type { OrderDraftCreatedResponse } from "./orderInput";
import type { OrderDraftCreatedRequest } from "./orderInput";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { OrderCreatedResponse } from "./orderInput";
import type { OrderCreatedRequest } from "./orderInput";
@@ -58,6 +62,14 @@ export interface IOrderInputAPIClient {
* @generated from protobuf rpc: Created
*/
created(input: OrderCreatedRequest, options?: RpcOptions): UnaryCall<OrderCreatedRequest, OrderCreatedResponse>;
/**
* @generated from protobuf rpc: DraftCreated
*/
draftCreated(input: OrderDraftCreatedRequest, options?: RpcOptions): UnaryCall<OrderDraftCreatedRequest, OrderDraftCreatedResponse>;
/**
* @generated from protobuf rpc: DraftCompleted
*/
draftCompleted(input: OrderDraftCompletedRequest, options?: RpcOptions): UnaryCall<OrderDraftCompletedRequest, OrderDraftCompletedResponse>;
/**
* @generated from protobuf rpc: ExecutionflowDetected
*/
@@ -154,137 +166,151 @@ export class OrderInputAPIClient implements IOrderInputAPIClient, ServiceInfo {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderCreatedRequest, OrderCreatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DraftCreated
*/
draftCreated(input: OrderDraftCreatedRequest, options?: RpcOptions): UnaryCall<OrderDraftCreatedRequest, OrderDraftCreatedResponse> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderDraftCreatedRequest, OrderDraftCreatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DraftCompleted
*/
draftCompleted(input: OrderDraftCompletedRequest, options?: RpcOptions): UnaryCall<OrderDraftCompletedRequest, OrderDraftCompletedResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderDraftCompletedRequest, OrderDraftCompletedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExecutionflowDetected
*/
executionflowDetected(input: OrderExecutionflowDetectedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowDetectedRequest, OrderExecutionflowDetectedResponse> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderExecutionflowDetectedRequest, OrderExecutionflowDetectedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Cancelled
*/
cancelled(input: OrderCancelledRequest, options?: RpcOptions): UnaryCall<OrderCancelledRequest, OrderCancelledResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderCancelledRequest, OrderCancelledResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Anonymised
*/
anonymised(input: OrderAnonymisedRequest, options?: RpcOptions): UnaryCall<OrderAnonymisedRequest, OrderAnonymisedResponse> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderAnonymisedRequest, OrderAnonymisedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ShipperAssigned
*/
shipperAssigned(input: OrderShipperAssignedRequest, options?: RpcOptions): UnaryCall<OrderShipperAssignedRequest, OrderShipperAssignedResponse> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderShipperAssignedRequest, OrderShipperAssignedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: PartiallyCompleted
*/
partiallyCompleted(input: OrderPartiallyCompletedRequest, options?: RpcOptions): UnaryCall<OrderPartiallyCompletedRequest, OrderPartiallyCompletedResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderPartiallyCompletedRequest, OrderPartiallyCompletedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RequestedDeliveryDateDefined
*/
requestedDeliveryDateDefined(input: OrderRequestedDeliveryDateDefinedRequest, options?: RpcOptions): UnaryCall<OrderRequestedDeliveryDateDefinedRequest, OrderRequestedDeliveryDateDefinedResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderRequestedDeliveryDateDefinedRequest, OrderRequestedDeliveryDateDefinedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExecutionflowETAUpdated
*/
executionflowETAUpdated(input: OrderExecutionflowETAUpdatedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowETAUpdatedRequest, OrderExecutionflowETAUpdatedResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderExecutionflowETAUpdatedRequest, OrderExecutionflowETAUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Completed
*/
completed(input: OrderCompletedRequest, options?: RpcOptions): UnaryCall<OrderCompletedRequest, OrderCompletedResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderCompletedRequest, OrderCompletedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExecutionflowUpdated
*/
executionflowUpdated(input: OrderExecutionflowUpdatedRequest, options?: RpcOptions): UnaryCall<OrderExecutionflowUpdatedRequest, OrderExecutionflowUpdatedResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderExecutionflowUpdatedRequest, OrderExecutionflowUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: MetaDataUpdated
*/
metaDataUpdated(input: OrderMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<OrderMetaDataUpdatedRequest, OrderMetaDataUpdatedResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderMetaDataUpdatedRequest, OrderMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CarrierUpdated
*/
carrierUpdated(input: OrderCarrierUpdatedRequest, options?: RpcOptions): UnaryCall<OrderCarrierUpdatedRequest, OrderCarrierUpdatedResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderCarrierUpdatedRequest, OrderCarrierUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: AttachmentAdded
*/
attachmentAdded(input: OrderAttachmentAddedRequest, options?: RpcOptions): UnaryCall<OrderAttachmentAddedRequest, OrderAttachmentAddedResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderAttachmentAddedRequest, OrderAttachmentAddedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: AttachmentRemoved
*/
attachmentRemoved(input: OrderAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<OrderAttachmentRemovedRequest, OrderAttachmentRemovedResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderAttachmentRemovedRequest, OrderAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClaimAdded
*/
claimAdded(input: OrderClaimAddedRequest, options?: RpcOptions): UnaryCall<OrderClaimAddedRequest, OrderClaimAddedResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderClaimAddedRequest, OrderClaimAddedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Deleted
*/
deleted(input: OrderDeletedRequest, options?: RpcOptions): UnaryCall<OrderDeletedRequest, OrderDeletedResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderDeletedRequest, OrderDeletedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: LinesAdded
*/
linesAdded(input: OrderLinesAddedRequest, options?: RpcOptions): UnaryCall<OrderLinesAddedRequest, OrderLinesAddedResponse> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[18], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderLinesAddedRequest, OrderLinesAddedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: LinesDetected
*/
linesDetected(input: OrderLinesDetectedRequest, options?: RpcOptions): UnaryCall<OrderLinesDetectedRequest, OrderLinesDetectedResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
const method = this.methods[19], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderLinesDetectedRequest, OrderLinesDetectedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Sanitised
*/
sanitised(input: OrderSanitisedRequest, options?: RpcOptions): UnaryCall<OrderSanitisedRequest, OrderSanitisedResponse> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
const method = this.methods[20], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderSanitisedRequest, OrderSanitisedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CustomFieldsUpdated
*/
customFieldsUpdated(input: OrderCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<OrderCustomFieldsUpdatedRequest, OrderCustomFieldsUpdatedResponse> {
const method = this.methods[19], opt = this._transport.mergeOptions(options);
const method = this.methods[21], opt = this._transport.mergeOptions(options);
return stackIntercept<OrderCustomFieldsUpdatedRequest, OrderCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
}
}

View File

@@ -1380,6 +1380,174 @@ export interface OrderCustomFieldsUpdatedResponse {
*/
ID?: EntityID;
}
/**
*
* DraftCreated : this message tells that a draft is created for the order. Draft Order is not completed and can be modified.
* In this "status" the Order is not notified to the WMS and the executionflows are not created yet.
*
* @generated from protobuf message api.OrderDraftCreatedPayload
*/
export interface OrderDraftCreatedPayload {
/**
* @generated from protobuf field: api.ReferencedID ParentOrder = 1
*/
ParentOrder?: ReferencedID; // Optional : Reference to a parent order (with reason)
/**
* @generated from protobuf field: string LanguageCodeISO6391 = 2
*/
LanguageCodeISO6391: string;
/**
* Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)
*
* @generated from protobuf field: repeated api.MetadataElement MetaData = 3
*/
MetaData: MetadataElement[];
/**
* @generated from protobuf field: api.TradeTier Buyer = 4
*/
Buyer?: TradeTier;
/**
* @generated from protobuf field: api.TradeTier Seller = 5
*/
Seller?: TradeTier;
/**
* Where to ship the order from
*
* @generated from protobuf field: api.TradeTier ShipFrom = 6
*/
ShipFrom?: TradeTier;
/**
* Where to ship the order to
*
* @generated from protobuf field: api.TradeTier ShipTo = 7
*/
ShipTo?: TradeTier;
/**
* Definition of the order carrier
*
* @generated from protobuf field: api.TradeTier Carrier = 8
*/
Carrier?: TradeTier;
/**
* Type of carrier service
*
* @generated from protobuf field: string CarrierService = 9
*/
CarrierService: string;
/**
* @generated from protobuf field: api.OrderRequestedMilestones RequestedMilestones = 10
*/
RequestedMilestones?: OrderRequestedMilestones;
/**
* Lines of the order
*
* @generated from protobuf field: repeated api.OrderLine Lines = 11
*/
Lines: OrderLine[];
}
/**
* @generated from protobuf message api.OrderDraftCreatedEvent
*/
export interface OrderDraftCreatedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.OrderDraftCreatedPayload Payload = 3
*/
Payload?: OrderDraftCreatedPayload;
}
/**
* @generated from protobuf message api.OrderDraftCreatedRequest
*/
export interface OrderDraftCreatedRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.OrderDraftCreatedPayload Payload = 3
*/
Payload?: OrderDraftCreatedPayload;
}
/**
* @generated from protobuf message api.OrderDraftCreatedResponse
*/
export interface OrderDraftCreatedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
/**
* @generated from protobuf message api.OrderDraftCompletedPayload
*/
export interface OrderDraftCompletedPayload {
/**
* @generated from protobuf field: api.DateTime CreationDateTime = 1
*/
CreationDateTime?: DateTime; // Mandatory
}
/**
* @generated from protobuf message api.OrderDraftCompletedEvent
*/
export interface OrderDraftCompletedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.OrderDraftCompletedPayload Payload = 3
*/
Payload?: OrderDraftCompletedPayload;
}
/**
* @generated from protobuf message api.OrderDraftCompletedRequest
*/
export interface OrderDraftCompletedRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.OrderDraftCompletedPayload Payload = 3
*/
Payload?: OrderDraftCompletedPayload;
}
/**
* @generated from protobuf message api.OrderDraftCompletedResponse
*/
export interface OrderDraftCompletedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
// @generated message type with reflection information, may provide speed optimized methods
class OrderCreatedPayload$Type extends MessageType<OrderCreatedPayload> {
constructor() {
@@ -5869,11 +6037,525 @@ class OrderCustomFieldsUpdatedResponse$Type extends MessageType<OrderCustomField
* @generated MessageType for protobuf message api.OrderCustomFieldsUpdatedResponse
*/
export const OrderCustomFieldsUpdatedResponse = new OrderCustomFieldsUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCreatedPayload$Type extends MessageType<OrderDraftCreatedPayload> {
constructor() {
super("api.OrderDraftCreatedPayload", [
{ no: 1, name: "ParentOrder", kind: "message", localName: "ParentOrder", jsonName: "ParentOrder", T: () => ReferencedID },
{ no: 2, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
{ no: 3, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 4, name: "Buyer", kind: "message", localName: "Buyer", jsonName: "Buyer", T: () => TradeTier },
{ no: 5, name: "Seller", kind: "message", localName: "Seller", jsonName: "Seller", T: () => TradeTier },
{ no: 6, name: "ShipFrom", kind: "message", localName: "ShipFrom", jsonName: "ShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order from" } } },
{ no: 7, name: "ShipTo", kind: "message", localName: "ShipTo", jsonName: "ShipTo", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order to" } } },
{ no: 8, 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: 9, 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" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: {} }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "DraftCreated" });
}
create(value?: PartialMessage<OrderDraftCreatedPayload>): OrderDraftCreatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.LanguageCodeISO6391 = "";
message.MetaData = [];
message.CarrierService = "";
message.Lines = [];
if (value !== undefined)
reflectionMergePartial<OrderDraftCreatedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCreatedPayload): OrderDraftCreatedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ReferencedID ParentOrder */ 1:
message.ParentOrder = ReferencedID.internalBinaryRead(reader, reader.uint32(), options, message.ParentOrder);
break;
case /* string LanguageCodeISO6391 */ 2:
message.LanguageCodeISO6391 = reader.string();
break;
case /* repeated api.MetadataElement MetaData */ 3:
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.TradeTier Buyer */ 4:
message.Buyer = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.Buyer);
break;
case /* api.TradeTier Seller */ 5:
message.Seller = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.Seller);
break;
case /* api.TradeTier ShipFrom */ 6:
message.ShipFrom = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.ShipFrom);
break;
case /* api.TradeTier ShipTo */ 7:
message.ShipTo = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.ShipTo);
break;
case /* api.TradeTier Carrier */ 8:
message.Carrier = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.Carrier);
break;
case /* string CarrierService */ 9:
message.CarrierService = reader.string();
break;
case /* api.OrderRequestedMilestones RequestedMilestones */ 10:
message.RequestedMilestones = OrderRequestedMilestones.internalBinaryRead(reader, reader.uint32(), options, message.RequestedMilestones);
break;
case /* repeated api.OrderLine Lines */ 11:
message.Lines.push(OrderLine.internalBinaryRead(reader, reader.uint32(), options));
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: OrderDraftCreatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ReferencedID ParentOrder = 1; */
if (message.ParentOrder)
ReferencedID.internalBinaryWrite(message.ParentOrder, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string LanguageCodeISO6391 = 2; */
if (message.LanguageCodeISO6391 !== "")
writer.tag(2, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
/* repeated api.MetadataElement MetaData = 3; */
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier Buyer = 4; */
if (message.Buyer)
TradeTier.internalBinaryWrite(message.Buyer, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier Seller = 5; */
if (message.Seller)
TradeTier.internalBinaryWrite(message.Seller, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier ShipFrom = 6; */
if (message.ShipFrom)
TradeTier.internalBinaryWrite(message.ShipFrom, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier ShipTo = 7; */
if (message.ShipTo)
TradeTier.internalBinaryWrite(message.ShipTo, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier Carrier = 8; */
if (message.Carrier)
TradeTier.internalBinaryWrite(message.Carrier, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* string CarrierService = 9; */
if (message.CarrierService !== "")
writer.tag(9, WireType.LengthDelimited).string(message.CarrierService);
/* api.OrderRequestedMilestones RequestedMilestones = 10; */
if (message.RequestedMilestones)
OrderRequestedMilestones.internalBinaryWrite(message.RequestedMilestones, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* repeated api.OrderLine Lines = 11; */
for (let i = 0; i < message.Lines.length; i++)
OrderLine.internalBinaryWrite(message.Lines[i], writer.tag(11, 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.OrderDraftCreatedPayload
*/
export const OrderDraftCreatedPayload = new OrderDraftCreatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCreatedEvent$Type extends MessageType<OrderDraftCreatedEvent> {
constructor() {
super("api.OrderDraftCreatedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "api.messageType": "Event", "api.inputEvent": "DraftCreated" });
}
create(value?: PartialMessage<OrderDraftCreatedEvent>): OrderDraftCreatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderDraftCreatedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCreatedEvent): OrderDraftCreatedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
message.Header = EventHeader.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.OrderDraftCreatedPayload Payload */ 3:
message.Payload = OrderDraftCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: OrderDraftCreatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
if (message.Header)
EventHeader.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.OrderDraftCreatedPayload Payload = 3; */
if (message.Payload)
OrderDraftCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.OrderDraftCreatedEvent
*/
export const OrderDraftCreatedEvent = new OrderDraftCreatedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCreatedRequest$Type extends MessageType<OrderDraftCreatedRequest> {
constructor() {
super("api.OrderDraftCreatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "DraftCreated" });
}
create(value?: PartialMessage<OrderDraftCreatedRequest>): OrderDraftCreatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderDraftCreatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCreatedRequest): OrderDraftCreatedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.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.OrderDraftCreatedPayload Payload */ 3:
message.Payload = OrderDraftCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: OrderDraftCreatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.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.OrderDraftCreatedPayload Payload = 3; */
if (message.Payload)
OrderDraftCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.OrderDraftCreatedRequest
*/
export const OrderDraftCreatedRequest = new OrderDraftCreatedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCreatedResponse$Type extends MessageType<OrderDraftCreatedResponse> {
constructor() {
super("api.OrderDraftCreatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "DraftCreated" });
}
create(value?: PartialMessage<OrderDraftCreatedResponse>): OrderDraftCreatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderDraftCreatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCreatedResponse): OrderDraftCreatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
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: OrderDraftCreatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.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();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrderDraftCreatedResponse
*/
export const OrderDraftCreatedResponse = new OrderDraftCreatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCompletedPayload$Type extends MessageType<OrderDraftCompletedPayload> {
constructor() {
super("api.OrderDraftCompletedPayload", [
{ no: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["CreationDateTime"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "DraftCompleted", "api.preAggMethods": "verifyOrderPayload" });
}
create(value?: PartialMessage<OrderDraftCompletedPayload>): OrderDraftCompletedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderDraftCompletedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCompletedPayload): OrderDraftCompletedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime CreationDateTime */ 1:
message.CreationDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.CreationDateTime);
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: OrderDraftCompletedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime CreationDateTime = 1; */
if (message.CreationDateTime)
DateTime.internalBinaryWrite(message.CreationDateTime, writer.tag(1, 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.OrderDraftCompletedPayload
*/
export const OrderDraftCompletedPayload = new OrderDraftCompletedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCompletedEvent$Type extends MessageType<OrderDraftCompletedEvent> {
constructor() {
super("api.OrderDraftCompletedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCompletedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "api.messageType": "Event", "api.inputEvent": "DraftCompleted", "api.preAggMethods": "verifyOrderPayload" });
}
create(value?: PartialMessage<OrderDraftCompletedEvent>): OrderDraftCompletedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderDraftCompletedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCompletedEvent): OrderDraftCompletedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
message.Header = EventHeader.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.OrderDraftCompletedPayload Payload */ 3:
message.Payload = OrderDraftCompletedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: OrderDraftCompletedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
if (message.Header)
EventHeader.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.OrderDraftCompletedPayload Payload = 3; */
if (message.Payload)
OrderDraftCompletedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.OrderDraftCompletedEvent
*/
export const OrderDraftCompletedEvent = new OrderDraftCompletedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCompletedRequest$Type extends MessageType<OrderDraftCompletedRequest> {
constructor() {
super("api.OrderDraftCompletedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCompletedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "DraftCompleted" });
}
create(value?: PartialMessage<OrderDraftCompletedRequest>): OrderDraftCompletedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderDraftCompletedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCompletedRequest): OrderDraftCompletedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.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.OrderDraftCompletedPayload Payload */ 3:
message.Payload = OrderDraftCompletedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
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: OrderDraftCompletedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.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.OrderDraftCompletedPayload Payload = 3; */
if (message.Payload)
OrderDraftCompletedPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.OrderDraftCompletedRequest
*/
export const OrderDraftCompletedRequest = new OrderDraftCompletedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderDraftCompletedResponse$Type extends MessageType<OrderDraftCompletedResponse> {
constructor() {
super("api.OrderDraftCompletedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "DraftCompleted" });
}
create(value?: PartialMessage<OrderDraftCompletedResponse>): OrderDraftCompletedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderDraftCompletedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderDraftCompletedResponse): OrderDraftCompletedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
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: OrderDraftCompletedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.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();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrderDraftCompletedResponse
*/
export const OrderDraftCompletedResponse = new OrderDraftCompletedResponse$Type();
/**
* @generated ServiceType for protobuf service api.OrderInputAPI
*/
export const OrderInputAPI = new ServiceType("api.OrderInputAPI", [
{ name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An Order has been created. This is typically called from an ERP. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderCreatedRequest, O: OrderCreatedResponse },
{ name: "DraftCreated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An Order draft has been created. " }, "api.rscType": "Project", "api.roles": "Platform.Project-DraftInput", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderDraftCreatedRequest, O: OrderDraftCreatedResponse },
{ name: "DraftCompleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An Order draft has been completed. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderDraftCompletedRequest, O: OrderDraftCompletedResponse },
{ name: "ExecutionflowDetected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An Order is created because an executionflow has been detected. This is called by the Platform. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderExecutionflowDetectedRequest, O: OrderExecutionflowDetectedResponse },
{ name: "Cancelled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An Order has been cancelled. This is typically called from an ERP. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderCancelledRequest, O: OrderCancelledResponse },
{ name: "Anonymised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An Order has been anonymised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderAnonymisedRequest, O: OrderAnonymisedResponse },

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.13.0-SNAPSHOT-260317130449",
"version": "1.13.0-SNAPSHOT-260317155426",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

View File

@@ -423,6 +423,10 @@ export enum OrderStatusCode {
* @generated from protobuf enum value: ORDER_0300_UNDETERMINED = 300;
*/
ORDER_0300_UNDETERMINED = 300,
/**
* @generated from protobuf enum value: ORDER_0400_DRAFT_CREATED = 400;
*/
ORDER_0400_DRAFT_CREATED = 400,
/**
* @generated from protobuf enum value: ORDER_0500_READY_TO_ALLOCATE = 500;
*/