Latest generation

This commit is contained in:
ci core model
2025-04-28 12:35:42 +00:00
parent 595d5e3e36
commit 09d656c554
197 changed files with 25094 additions and 25094 deletions

450
order.ts
View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "order.proto" (package "api", syntax proto3)
// tslint:disable
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -43,104 +43,104 @@ export interface OrderPayload {
/**
* @generated from protobuf field: api.DateTime CreationDateTime = 1 [json_name = "CreationDateTime"];
*/
creationDateTime?: DateTime;
CreationDateTime?: DateTime;
/**
* @generated from protobuf field: api.ReferencedID ParentOrder = 2 [json_name = "ParentOrder"];
*/
parentOrder?: ReferencedID; // In case the order is linked to a parent order
ParentOrder?: ReferencedID; // In case the order is linked to a parent order
/**
* @generated from protobuf field: string LanguageCodeISO6391 = 3 [json_name = "LanguageCodeISO6391"];
*/
languageCodeISO6391: string;
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 = 4 [json_name = "MetaData"];
*/
metaData: MetadataElement[];
MetaData: MetadataElement[];
/**
* @generated from protobuf field: api.TradeTier Buyer = 5 [json_name = "Buyer"];
*/
buyer?: TradeTier;
Buyer?: TradeTier;
/**
* @generated from protobuf field: api.TradeTier Seller = 6 [json_name = "Seller"];
*/
seller?: TradeTier;
Seller?: TradeTier;
/**
* Where to ship the order from
*
* @generated from protobuf field: api.TradeTier ShipFrom = 7 [json_name = "ShipFrom"];
*/
shipFrom?: TradeTier;
ShipFrom?: TradeTier;
/**
* Where to ship the order to
*
* @generated from protobuf field: api.TradeTier ShipTo = 8 [json_name = "ShipTo"];
*/
shipTo?: TradeTier;
ShipTo?: TradeTier;
/**
* Definition of the order carrier
*
* @generated from protobuf field: api.TradeTier Carrier = 9 [json_name = "Carrier"];
*/
carrier?: TradeTier;
Carrier?: TradeTier;
/**
* Type of carrier service
*
* @generated from protobuf field: string CarrierService = 16 [json_name = "CarrierService"];
*/
carrierService: string;
CarrierService: string;
/**
* @generated from protobuf field: api.OrderRequestedMilestones RequestedMilestones = 10 [json_name = "RequestedMilestones"];
*/
requestedMilestones?: OrderRequestedMilestones;
RequestedMilestones?: OrderRequestedMilestones;
/**
* Lines of the order
*
* @generated from protobuf field: repeated api.OrderLine Lines = 11 [json_name = "Lines"];
*/
lines: OrderLine[];
Lines: OrderLine[];
/**
* @deprecated
* @generated from protobuf field: api.ETA EstimatedTimeArrival = 12 [deprecated = true, json_name = "EstimatedTimeArrival"];
*/
estimatedTimeArrival?: ETA;
EstimatedTimeArrival?: ETA;
/**
* @generated from protobuf field: api.DateTime ActualCompletionDateTime = 13 [json_name = "ActualCompletionDateTime"];
*/
actualCompletionDateTime?: DateTime;
ActualCompletionDateTime?: DateTime;
/**
* @generated from protobuf field: repeated api.ExecutionflowSummary ExecutionflowSummary = 14 [json_name = "ExecutionflowSummary"];
*/
executionflowSummary: ExecutionflowSummary[]; // Summary describing how the order is executed by ExecutionFlow
ExecutionflowSummary: ExecutionflowSummary[]; // Summary describing how the order is executed by ExecutionFlow
/**
* @generated from protobuf field: api.OrderStatusStruct Status = 17 [json_name = "Status"];
*/
status?: OrderStatusStruct; // Status field is not accessible from APIs
Status?: OrderStatusStruct; // Status field is not accessible from APIs
/**
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 18 [json_name = "Attachments"];
*/
attachments: AttachmentSummary[];
Attachments: AttachmentSummary[];
/**
* @generated from protobuf field: int32 AttachmentNumber = 19 [json_name = "AttachmentNumber"];
*/
attachmentNumber: number;
AttachmentNumber: number;
/**
* @generated from protobuf field: repeated api.ClaimSummary Claims = 20 [json_name = "Claims"];
*/
claims: ClaimSummary[];
Claims: ClaimSummary[];
/**
* @generated from protobuf field: int32 ClaimNumber = 21 [json_name = "ClaimNumber"];
*/
claimNumber: number;
ClaimNumber: number;
/**
* @generated from protobuf field: repeated api.ETAbyExecutionflow ExecutionflowETAs = 22 [json_name = "ExecutionflowETAs"];
*/
executionflowETAs: ETAbyExecutionflow[]; // Estimated Time of Arrival for the ExecutionFlow(s) created for this order
ExecutionflowETAs: ETAbyExecutionflow[]; // Estimated Time of Arrival for the ExecutionFlow(s) created for this order
/**
* @generated from protobuf field: api.ETA OrderETA = 23 [json_name = "OrderETA"];
*/
orderETA?: ETA;
OrderETA?: ETA;
}
/**
* Order entity
@@ -151,15 +151,15 @@ export interface Order {
/**
* @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];
*/
lastEventHeader?: EventHeader;
LastEventHeader?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
*/
iD?: EntityID;
ID?: EntityID;
/**
* @generated from protobuf field: api.OrderPayload Payload = 3 [json_name = "Payload"];
*/
payload?: OrderPayload;
Payload?: OrderPayload;
}
/**
* Order Enrichment
@@ -170,59 +170,59 @@ export interface OrderEnrichment {
/**
* @generated from protobuf field: string ParentEventID = 1 [json_name = "ParentEventID"];
*/
parentEventID: string;
ParentEventID: string;
/**
* @generated from protobuf field: string EntityName = 2 [json_name = "EntityName"];
*/
entityName: string;
EntityName: string;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
*/
entityRefID: string;
EntityRefID: string;
/**
* @generated from protobuf field: string RefFilter = 4 [json_name = "RefFilter"];
*/
refFilter: string;
RefFilter: string;
/**
* @generated from protobuf field: string MergePath = 5 [json_name = "MergePath"];
*/
mergePath: string;
MergePath: string;
/**
* @generated from protobuf oneof: Content
*/
content: {
oneofKind: "item";
Content: {
oneofKind: "Item";
/**
* @generated from protobuf field: api.ItemPayload Item = 10 [json_name = "Item"];
*/
item: ItemPayload;
Item: ItemPayload;
} | {
oneofKind: "actor";
oneofKind: "Actor";
/**
* @generated from protobuf field: api.ActorPayload Actor = 11 [json_name = "Actor"];
*/
actor: ActorPayload;
Actor: ActorPayload;
} | {
oneofKind: "partner";
oneofKind: "Partner";
/**
* @generated from protobuf field: api.PartnerPayload Partner = 12 [json_name = "Partner"];
*/
partner: PartnerPayload;
Partner: PartnerPayload;
} | {
oneofKind: undefined;
};
/**
* @generated from protobuf field: string Project = 6 [json_name = "Project"];
*/
project: string;
Project: string;
/**
* @generated from protobuf field: string ParentEntityName = 7 [json_name = "ParentEntityName"];
*/
parentEntityName: string;
ParentEntityName: string;
/**
* @generated from protobuf field: string ParentEntityID = 8 [json_name = "ParentEntityID"];
*/
parentEntityID: string;
ParentEntityID: string;
}
/**
* @generated from protobuf message api.OrderTriplet
@@ -231,56 +231,56 @@ export interface OrderTriplet {
/**
* @generated from protobuf field: api.Order Current = 1 [json_name = "Current"];
*/
current?: Order;
Current?: Order;
/**
* @generated from protobuf field: api.Order Previous = 2 [json_name = "Previous"];
*/
previous?: Order;
Previous?: Order;
/**
* @generated from protobuf field: api.Order LastEvent = 3 [json_name = "LastEvent"];
*/
lastEvent?: Order;
LastEvent?: Order;
}
// @generated message type with reflection information, may provide speed optimized methods
class OrderPayload$Type extends MessageType<OrderPayload> {
constructor() {
super("api.OrderPayload", [
{ no: 1, name: "CreationDateTime", kind: "message", jsonName: "CreationDateTime", T: () => DateTime, options: { "api.aggSkip": "ExecutionflowDetected" } },
{ no: 2, name: "ParentOrder", kind: "message", jsonName: "ParentOrder", T: () => ReferencedID },
{ no: 3, name: "LanguageCodeISO6391", kind: "scalar", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "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\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 4, name: "MetaData", kind: "message", jsonName: "MetaData", repeat: 1 /*RepeatType.PACKED*/, 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", "api.kpiExclude": { Items: [{ Context: "Order", Group: "order" }] }, "api.aggAppend": "MetaDataUpdated,ExecutionflowDetected" } },
{ no: 5, name: "Buyer", kind: "message", jsonName: "Buyer", T: () => TradeTier },
{ no: 6, name: "Seller", kind: "message", jsonName: "Seller", T: () => TradeTier },
{ no: 7, name: "ShipFrom", kind: "message", jsonName: "ShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order from" }, "api.aggSkip": "ExecutionflowDetected" } },
{ no: 8, name: "ShipTo", kind: "message", jsonName: "ShipTo", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order to" }, "api.aggSkip": "ExecutionflowDetected" } },
{ no: 9, name: "Carrier", kind: "message", jsonName: "Carrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Definition of the order carrier" }, "api.aggSkip": "ExecutionflowDetected" } },
{ no: 16, name: "CarrierService", kind: "scalar", jsonName: "CarrierService", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of carrier service" }, "api.dataRestrictionKey": "Order", "api.kpiItems": { Items: [{ Context: "Order", Group: "order", Queryable: true }] } } },
{ no: 10, name: "RequestedMilestones", kind: "message", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones },
{ no: 11, name: "Lines", kind: "message", jsonName: "Lines", repeat: 1 /*RepeatType.PACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID", "api.aggAppend": "ExecutionflowDetected" } },
{ no: 12, name: "EstimatedTimeArrival", kind: "message", jsonName: "EstimatedTimeArrival", T: () => ETA, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated from 1.7 : Estimated time of arrival, use OrderETA" } } },
{ no: 13, name: "ActualCompletionDateTime", kind: "message", jsonName: "ActualCompletionDateTime", T: () => DateTime },
{ no: 14, name: "ExecutionflowSummary", kind: "message", jsonName: "ExecutionflowSummary", repeat: 1 /*RepeatType.PACKED*/, T: () => ExecutionflowSummary, options: { "api.aggKey": "ExecutionflowID", "api.aggAppend": "ExecutionflowUpdated,ExecutionflowDetected" } },
{ no: 17, name: "Status", kind: "message", jsonName: "Status", T: () => OrderStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 18, name: "Attachments", kind: "message", jsonName: "Attachments", repeat: 1 /*RepeatType.PACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } },
{ no: 19, name: "AttachmentNumber", kind: "scalar", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } },
{ no: 20, name: "Claims", kind: "message", jsonName: "Claims", repeat: 1 /*RepeatType.PACKED*/, 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", 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", jsonName: "ExecutionflowETAs", repeat: 1 /*RepeatType.PACKED*/, 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", 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: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime, options: { "api.aggSkip": "ExecutionflowDetected" } },
{ no: 2, name: "ParentOrder", kind: "message", localName: "ParentOrder", jsonName: "ParentOrder", T: () => ReferencedID },
{ no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "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\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 4, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 1 /*RepeatType.PACKED*/, 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", "api.kpiExclude": { Items: [{ Context: "Order", Group: "order" }] }, "api.aggAppend": "MetaDataUpdated,ExecutionflowDetected" } },
{ no: 5, name: "Buyer", kind: "message", localName: "Buyer", jsonName: "Buyer", T: () => TradeTier },
{ no: 6, name: "Seller", kind: "message", localName: "Seller", jsonName: "Seller", T: () => TradeTier },
{ no: 7, 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" }, "api.aggSkip": "ExecutionflowDetected" } },
{ no: 8, 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" }, "api.aggSkip": "ExecutionflowDetected" } },
{ 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" }, "api.aggSkip": "ExecutionflowDetected" } },
{ 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" }, "api.dataRestrictionKey": "Order", "api.kpiItems": { Items: [{ Context: "Order", Group: "order", Queryable: true }] } } },
{ no: 10, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones },
{ no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 1 /*RepeatType.PACKED*/, T: () => OrderLine, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID", "api.aggAppend": "ExecutionflowDetected" } },
{ no: 12, name: "EstimatedTimeArrival", kind: "message", localName: "EstimatedTimeArrival", jsonName: "EstimatedTimeArrival", T: () => ETA, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated from 1.7 : Estimated time of arrival, use OrderETA" } } },
{ no: 13, name: "ActualCompletionDateTime", kind: "message", localName: "ActualCompletionDateTime", jsonName: "ActualCompletionDateTime", T: () => DateTime },
{ no: 14, name: "ExecutionflowSummary", kind: "message", localName: "ExecutionflowSummary", jsonName: "ExecutionflowSummary", repeat: 1 /*RepeatType.PACKED*/, T: () => ExecutionflowSummary, options: { "api.aggKey": "ExecutionflowID", "api.aggAppend": "ExecutionflowUpdated,ExecutionflowDetected" } },
{ no: 17, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => OrderStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 18, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 1 /*RepeatType.PACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } },
{ no: 19, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } },
{ no: 20, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 1 /*RepeatType.PACKED*/, 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: 1 /*RepeatType.PACKED*/, 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" } }
]);
}
create(value?: PartialMessage<OrderPayload>): OrderPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.languageCodeISO6391 = "";
message.metaData = [];
message.carrierService = "";
message.lines = [];
message.executionflowSummary = [];
message.attachments = [];
message.attachmentNumber = 0;
message.claims = [];
message.claimNumber = 0;
message.executionflowETAs = [];
message.LanguageCodeISO6391 = "";
message.MetaData = [];
message.CarrierService = "";
message.Lines = [];
message.ExecutionflowSummary = [];
message.Attachments = [];
message.AttachmentNumber = 0;
message.Claims = [];
message.ClaimNumber = 0;
message.ExecutionflowETAs = [];
if (value !== undefined)
reflectionMergePartial<OrderPayload>(this, message, value);
return message;
@@ -291,70 +291,70 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime CreationDateTime = 1 [json_name = "CreationDateTime"];*/ 1:
message.creationDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.creationDateTime);
message.CreationDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.CreationDateTime);
break;
case /* api.ReferencedID ParentOrder = 2 [json_name = "ParentOrder"];*/ 2:
message.parentOrder = ReferencedID.internalBinaryRead(reader, reader.uint32(), options, message.parentOrder);
message.ParentOrder = ReferencedID.internalBinaryRead(reader, reader.uint32(), options, message.ParentOrder);
break;
case /* string LanguageCodeISO6391 = 3 [json_name = "LanguageCodeISO6391"];*/ 3:
message.languageCodeISO6391 = reader.string();
message.LanguageCodeISO6391 = reader.string();
break;
case /* repeated api.MetadataElement MetaData = 4 [json_name = "MetaData"];*/ 4:
message.metaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.TradeTier Buyer = 5 [json_name = "Buyer"];*/ 5:
message.buyer = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.buyer);
message.Buyer = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.Buyer);
break;
case /* api.TradeTier Seller = 6 [json_name = "Seller"];*/ 6:
message.seller = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.seller);
message.Seller = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.Seller);
break;
case /* api.TradeTier ShipFrom = 7 [json_name = "ShipFrom"];*/ 7:
message.shipFrom = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.shipFrom);
message.ShipFrom = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.ShipFrom);
break;
case /* api.TradeTier ShipTo = 8 [json_name = "ShipTo"];*/ 8:
message.shipTo = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.shipTo);
message.ShipTo = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.ShipTo);
break;
case /* api.TradeTier Carrier = 9 [json_name = "Carrier"];*/ 9:
message.carrier = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.carrier);
message.Carrier = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.Carrier);
break;
case /* string CarrierService = 16 [json_name = "CarrierService"];*/ 16:
message.carrierService = reader.string();
message.CarrierService = reader.string();
break;
case /* api.OrderRequestedMilestones RequestedMilestones = 10 [json_name = "RequestedMilestones"];*/ 10:
message.requestedMilestones = OrderRequestedMilestones.internalBinaryRead(reader, reader.uint32(), options, message.requestedMilestones);
message.RequestedMilestones = OrderRequestedMilestones.internalBinaryRead(reader, reader.uint32(), options, message.RequestedMilestones);
break;
case /* repeated api.OrderLine Lines = 11 [json_name = "Lines"];*/ 11:
message.lines.push(OrderLine.internalBinaryRead(reader, reader.uint32(), options));
message.Lines.push(OrderLine.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.ETA EstimatedTimeArrival = 12 [deprecated = true, json_name = "EstimatedTimeArrival"];*/ 12:
message.estimatedTimeArrival = ETA.internalBinaryRead(reader, reader.uint32(), options, message.estimatedTimeArrival);
message.EstimatedTimeArrival = ETA.internalBinaryRead(reader, reader.uint32(), options, message.EstimatedTimeArrival);
break;
case /* api.DateTime ActualCompletionDateTime = 13 [json_name = "ActualCompletionDateTime"];*/ 13:
message.actualCompletionDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.actualCompletionDateTime);
message.ActualCompletionDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualCompletionDateTime);
break;
case /* repeated api.ExecutionflowSummary ExecutionflowSummary = 14 [json_name = "ExecutionflowSummary"];*/ 14:
message.executionflowSummary.push(ExecutionflowSummary.internalBinaryRead(reader, reader.uint32(), options));
message.ExecutionflowSummary.push(ExecutionflowSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.OrderStatusStruct Status = 17 [json_name = "Status"];*/ 17:
message.status = OrderStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.status);
message.Status = OrderStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
break;
case /* repeated api.AttachmentSummary Attachments = 18 [json_name = "Attachments"];*/ 18:
message.attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options));
message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* int32 AttachmentNumber = 19 [json_name = "AttachmentNumber"];*/ 19:
message.attachmentNumber = reader.int32();
message.AttachmentNumber = reader.int32();
break;
case /* repeated api.ClaimSummary Claims = 20 [json_name = "Claims"];*/ 20:
message.claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options));
message.Claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* int32 ClaimNumber = 21 [json_name = "ClaimNumber"];*/ 21:
message.claimNumber = reader.int32();
message.ClaimNumber = reader.int32();
break;
case /* repeated api.ETAbyExecutionflow ExecutionflowETAs = 22 [json_name = "ExecutionflowETAs"];*/ 22:
message.executionflowETAs.push(ETAbyExecutionflow.internalBinaryRead(reader, reader.uint32(), options));
message.ExecutionflowETAs.push(ETAbyExecutionflow.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.ETA OrderETA = 23 [json_name = "OrderETA"];*/ 23:
message.orderETA = ETA.internalBinaryRead(reader, reader.uint32(), options, message.orderETA);
message.OrderETA = ETA.internalBinaryRead(reader, reader.uint32(), options, message.OrderETA);
break;
default:
let u = options.readUnknownField;
@@ -369,71 +369,71 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
}
internalBinaryWrite(message: OrderPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime CreationDateTime = 1 [json_name = "CreationDateTime"]; */
if (message.creationDateTime)
DateTime.internalBinaryWrite(message.creationDateTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.CreationDateTime)
DateTime.internalBinaryWrite(message.CreationDateTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.ReferencedID ParentOrder = 2 [json_name = "ParentOrder"]; */
if (message.parentOrder)
ReferencedID.internalBinaryWrite(message.parentOrder, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
if (message.ParentOrder)
ReferencedID.internalBinaryWrite(message.ParentOrder, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string LanguageCodeISO6391 = 3 [json_name = "LanguageCodeISO6391"]; */
if (message.languageCodeISO6391 !== "")
writer.tag(3, WireType.LengthDelimited).string(message.languageCodeISO6391);
if (message.LanguageCodeISO6391 !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
/* repeated api.MetadataElement MetaData = 4 [json_name = "MetaData"]; */
for (let i = 0; i < message.metaData.length; i++)
MetadataElement.internalBinaryWrite(message.metaData[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier Buyer = 5 [json_name = "Buyer"]; */
if (message.buyer)
TradeTier.internalBinaryWrite(message.buyer, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
if (message.Buyer)
TradeTier.internalBinaryWrite(message.Buyer, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier Seller = 6 [json_name = "Seller"]; */
if (message.seller)
TradeTier.internalBinaryWrite(message.seller, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
if (message.Seller)
TradeTier.internalBinaryWrite(message.Seller, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier ShipFrom = 7 [json_name = "ShipFrom"]; */
if (message.shipFrom)
TradeTier.internalBinaryWrite(message.shipFrom, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
if (message.ShipFrom)
TradeTier.internalBinaryWrite(message.ShipFrom, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier ShipTo = 8 [json_name = "ShipTo"]; */
if (message.shipTo)
TradeTier.internalBinaryWrite(message.shipTo, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
if (message.ShipTo)
TradeTier.internalBinaryWrite(message.ShipTo, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* api.TradeTier Carrier = 9 [json_name = "Carrier"]; */
if (message.carrier)
TradeTier.internalBinaryWrite(message.carrier, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
if (message.Carrier)
TradeTier.internalBinaryWrite(message.Carrier, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* string CarrierService = 16 [json_name = "CarrierService"]; */
if (message.carrierService !== "")
writer.tag(16, WireType.LengthDelimited).string(message.carrierService);
if (message.CarrierService !== "")
writer.tag(16, WireType.LengthDelimited).string(message.CarrierService);
/* api.OrderRequestedMilestones RequestedMilestones = 10 [json_name = "RequestedMilestones"]; */
if (message.requestedMilestones)
OrderRequestedMilestones.internalBinaryWrite(message.requestedMilestones, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
if (message.RequestedMilestones)
OrderRequestedMilestones.internalBinaryWrite(message.RequestedMilestones, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* repeated api.OrderLine Lines = 11 [json_name = "Lines"]; */
for (let i = 0; i < message.lines.length; i++)
OrderLine.internalBinaryWrite(message.lines[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.Lines.length; i++)
OrderLine.internalBinaryWrite(message.Lines[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
/* api.ETA EstimatedTimeArrival = 12 [deprecated = true, json_name = "EstimatedTimeArrival"]; */
if (message.estimatedTimeArrival)
ETA.internalBinaryWrite(message.estimatedTimeArrival, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
if (message.EstimatedTimeArrival)
ETA.internalBinaryWrite(message.EstimatedTimeArrival, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
/* api.DateTime ActualCompletionDateTime = 13 [json_name = "ActualCompletionDateTime"]; */
if (message.actualCompletionDateTime)
DateTime.internalBinaryWrite(message.actualCompletionDateTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
if (message.ActualCompletionDateTime)
DateTime.internalBinaryWrite(message.ActualCompletionDateTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ExecutionflowSummary ExecutionflowSummary = 14 [json_name = "ExecutionflowSummary"]; */
for (let i = 0; i < message.executionflowSummary.length; i++)
ExecutionflowSummary.internalBinaryWrite(message.executionflowSummary[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.ExecutionflowSummary.length; i++)
ExecutionflowSummary.internalBinaryWrite(message.ExecutionflowSummary[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
/* api.OrderStatusStruct Status = 17 [json_name = "Status"]; */
if (message.status)
OrderStatusStruct.internalBinaryWrite(message.status, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
if (message.Status)
OrderStatusStruct.internalBinaryWrite(message.Status, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
/* repeated api.AttachmentSummary Attachments = 18 [json_name = "Attachments"]; */
for (let i = 0; i < message.attachments.length; i++)
AttachmentSummary.internalBinaryWrite(message.attachments[i], writer.tag(18, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.Attachments.length; i++)
AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(18, WireType.LengthDelimited).fork(), options).join();
/* int32 AttachmentNumber = 19 [json_name = "AttachmentNumber"]; */
if (message.attachmentNumber !== 0)
writer.tag(19, WireType.Varint).int32(message.attachmentNumber);
if (message.AttachmentNumber !== 0)
writer.tag(19, WireType.Varint).int32(message.AttachmentNumber);
/* repeated api.ClaimSummary Claims = 20 [json_name = "Claims"]; */
for (let i = 0; i < message.claims.length; i++)
ClaimSummary.internalBinaryWrite(message.claims[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.Claims.length; i++)
ClaimSummary.internalBinaryWrite(message.Claims[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join();
/* int32 ClaimNumber = 21 [json_name = "ClaimNumber"]; */
if (message.claimNumber !== 0)
writer.tag(21, WireType.Varint).int32(message.claimNumber);
if (message.ClaimNumber !== 0)
writer.tag(21, WireType.Varint).int32(message.ClaimNumber);
/* repeated api.ETAbyExecutionflow ExecutionflowETAs = 22 [json_name = "ExecutionflowETAs"]; */
for (let i = 0; i < message.executionflowETAs.length; i++)
ETAbyExecutionflow.internalBinaryWrite(message.executionflowETAs[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.ExecutionflowETAs.length; i++)
ETAbyExecutionflow.internalBinaryWrite(message.ExecutionflowETAs[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join();
/* api.ETA OrderETA = 23 [json_name = "OrderETA"]; */
if (message.orderETA)
ETA.internalBinaryWrite(message.orderETA, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
if (message.OrderETA)
ETA.internalBinaryWrite(message.OrderETA, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -448,9 +448,9 @@ export const OrderPayload = new OrderPayload$Type();
class Order$Type extends MessageType<Order> {
constructor() {
super("api.Order", [
{ no: 1, name: "LastEventHeader", kind: "message", jsonName: "LastEventHeader", T: () => EventHeader },
{ no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID },
{ no: 3, name: "Payload", kind: "message", jsonName: "Payload", T: () => OrderPayload }
{ no: 1, name: "LastEventHeader", kind: "message", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPayload }
]);
}
create(value?: PartialMessage<Order>): Order {
@@ -465,13 +465,13 @@ class Order$Type extends MessageType<Order> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];*/ 1:
message.lastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.lastEventHeader);
message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader);
break;
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD);
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.OrderPayload Payload = 3 [json_name = "Payload"];*/ 3:
message.payload = OrderPayload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
message.Payload = OrderPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
@@ -486,14 +486,14 @@ class Order$Type extends MessageType<Order> {
}
internalBinaryWrite(message: Order, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"]; */
if (message.lastEventHeader)
EventHeader.internalBinaryWrite(message.lastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.LastEventHeader)
EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2 [json_name = "ID"]; */
if (message.iD)
EntityID.internalBinaryWrite(message.iD, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.OrderPayload Payload = 3 [json_name = "Payload"]; */
if (message.payload)
OrderPayload.internalBinaryWrite(message.payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
if (message.Payload)
OrderPayload.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);
@@ -508,30 +508,30 @@ export const Order = new Order$Type();
class OrderEnrichment$Type extends MessageType<OrderEnrichment> {
constructor() {
super("api.OrderEnrichment", [
{ no: 1, name: "ParentEventID", kind: "scalar", jsonName: "ParentEventID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "EntityName", kind: "scalar", jsonName: "EntityName", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "EntityRefID", kind: "scalar", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "RefFilter", kind: "scalar", jsonName: "RefFilter", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "MergePath", kind: "scalar", jsonName: "MergePath", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "Item", kind: "message", jsonName: "Item", oneof: "content", T: () => ItemPayload },
{ no: 11, name: "Actor", kind: "message", jsonName: "Actor", oneof: "content", T: () => ActorPayload },
{ no: 12, name: "Partner", kind: "message", jsonName: "Partner", oneof: "content", T: () => PartnerPayload },
{ no: 6, name: "Project", kind: "scalar", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "ParentEntityName", kind: "scalar", jsonName: "ParentEntityName", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ParentEntityID", kind: "scalar", jsonName: "ParentEntityID", T: 9 /*ScalarType.STRING*/ }
{ no: 1, name: "ParentEventID", kind: "scalar", localName: "ParentEventID", jsonName: "ParentEventID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "EntityName", kind: "scalar", localName: "EntityName", jsonName: "EntityName", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "RefFilter", kind: "scalar", localName: "RefFilter", jsonName: "RefFilter", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "MergePath", kind: "scalar", localName: "MergePath", jsonName: "MergePath", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "Item", kind: "message", localName: "Item", jsonName: "Item", oneof: "Content", T: () => ItemPayload },
{ no: 11, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", oneof: "Content", T: () => ActorPayload },
{ no: 12, name: "Partner", kind: "message", localName: "Partner", jsonName: "Partner", oneof: "Content", T: () => PartnerPayload },
{ no: 6, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "ParentEntityName", kind: "scalar", localName: "ParentEntityName", jsonName: "ParentEntityName", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ParentEntityID", kind: "scalar", localName: "ParentEntityID", jsonName: "ParentEntityID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<OrderEnrichment>): OrderEnrichment {
const message = globalThis.Object.create((this.messagePrototype!));
message.parentEventID = "";
message.entityName = "";
message.entityRefID = "";
message.refFilter = "";
message.mergePath = "";
message.content = { oneofKind: undefined };
message.project = "";
message.parentEntityName = "";
message.parentEntityID = "";
message.ParentEventID = "";
message.EntityName = "";
message.EntityRefID = "";
message.RefFilter = "";
message.MergePath = "";
message.Content = { oneofKind: undefined };
message.Project = "";
message.ParentEntityName = "";
message.ParentEntityID = "";
if (value !== undefined)
reflectionMergePartial<OrderEnrichment>(this, message, value);
return message;
@@ -542,46 +542,46 @@ class OrderEnrichment$Type extends MessageType<OrderEnrichment> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ParentEventID = 1 [json_name = "ParentEventID"];*/ 1:
message.parentEventID = reader.string();
message.ParentEventID = reader.string();
break;
case /* string EntityName = 2 [json_name = "EntityName"];*/ 2:
message.entityName = reader.string();
message.EntityName = reader.string();
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
message.entityRefID = reader.string();
message.EntityRefID = reader.string();
break;
case /* string RefFilter = 4 [json_name = "RefFilter"];*/ 4:
message.refFilter = reader.string();
message.RefFilter = reader.string();
break;
case /* string MergePath = 5 [json_name = "MergePath"];*/ 5:
message.mergePath = reader.string();
message.MergePath = reader.string();
break;
case /* api.ItemPayload Item = 10 [json_name = "Item"];*/ 10:
message.content = {
oneofKind: "item",
item: ItemPayload.internalBinaryRead(reader, reader.uint32(), options, (message.content as any).item)
message.Content = {
oneofKind: "Item",
Item: ItemPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Item)
};
break;
case /* api.ActorPayload Actor = 11 [json_name = "Actor"];*/ 11:
message.content = {
oneofKind: "actor",
actor: ActorPayload.internalBinaryRead(reader, reader.uint32(), options, (message.content as any).actor)
message.Content = {
oneofKind: "Actor",
Actor: ActorPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Actor)
};
break;
case /* api.PartnerPayload Partner = 12 [json_name = "Partner"];*/ 12:
message.content = {
oneofKind: "partner",
partner: PartnerPayload.internalBinaryRead(reader, reader.uint32(), options, (message.content as any).partner)
message.Content = {
oneofKind: "Partner",
Partner: PartnerPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Partner)
};
break;
case /* string Project = 6 [json_name = "Project"];*/ 6:
message.project = reader.string();
message.Project = reader.string();
break;
case /* string ParentEntityName = 7 [json_name = "ParentEntityName"];*/ 7:
message.parentEntityName = reader.string();
message.ParentEntityName = reader.string();
break;
case /* string ParentEntityID = 8 [json_name = "ParentEntityID"];*/ 8:
message.parentEntityID = reader.string();
message.ParentEntityID = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -596,38 +596,38 @@ class OrderEnrichment$Type extends MessageType<OrderEnrichment> {
}
internalBinaryWrite(message: OrderEnrichment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ParentEventID = 1 [json_name = "ParentEventID"]; */
if (message.parentEventID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.parentEventID);
if (message.ParentEventID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ParentEventID);
/* string EntityName = 2 [json_name = "EntityName"]; */
if (message.entityName !== "")
writer.tag(2, WireType.LengthDelimited).string(message.entityName);
if (message.EntityName !== "")
writer.tag(2, WireType.LengthDelimited).string(message.EntityName);
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
if (message.entityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.entityRefID);
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
/* string RefFilter = 4 [json_name = "RefFilter"]; */
if (message.refFilter !== "")
writer.tag(4, WireType.LengthDelimited).string(message.refFilter);
if (message.RefFilter !== "")
writer.tag(4, WireType.LengthDelimited).string(message.RefFilter);
/* string MergePath = 5 [json_name = "MergePath"]; */
if (message.mergePath !== "")
writer.tag(5, WireType.LengthDelimited).string(message.mergePath);
if (message.MergePath !== "")
writer.tag(5, WireType.LengthDelimited).string(message.MergePath);
/* api.ItemPayload Item = 10 [json_name = "Item"]; */
if (message.content.oneofKind === "item")
ItemPayload.internalBinaryWrite(message.content.item, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
if (message.Content.oneofKind === "Item")
ItemPayload.internalBinaryWrite(message.Content.Item, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* api.ActorPayload Actor = 11 [json_name = "Actor"]; */
if (message.content.oneofKind === "actor")
ActorPayload.internalBinaryWrite(message.content.actor, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
if (message.Content.oneofKind === "Actor")
ActorPayload.internalBinaryWrite(message.Content.Actor, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
/* api.PartnerPayload Partner = 12 [json_name = "Partner"]; */
if (message.content.oneofKind === "partner")
PartnerPayload.internalBinaryWrite(message.content.partner, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
if (message.Content.oneofKind === "Partner")
PartnerPayload.internalBinaryWrite(message.Content.Partner, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
/* string Project = 6 [json_name = "Project"]; */
if (message.project !== "")
writer.tag(6, WireType.LengthDelimited).string(message.project);
if (message.Project !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Project);
/* string ParentEntityName = 7 [json_name = "ParentEntityName"]; */
if (message.parentEntityName !== "")
writer.tag(7, WireType.LengthDelimited).string(message.parentEntityName);
if (message.ParentEntityName !== "")
writer.tag(7, WireType.LengthDelimited).string(message.ParentEntityName);
/* string ParentEntityID = 8 [json_name = "ParentEntityID"]; */
if (message.parentEntityID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.parentEntityID);
if (message.ParentEntityID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.ParentEntityID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -642,9 +642,9 @@ export const OrderEnrichment = new OrderEnrichment$Type();
class OrderTriplet$Type extends MessageType<OrderTriplet> {
constructor() {
super("api.OrderTriplet", [
{ no: 1, name: "Current", kind: "message", jsonName: "Current", T: () => Order },
{ no: 2, name: "Previous", kind: "message", jsonName: "Previous", T: () => Order },
{ no: 3, name: "LastEvent", kind: "message", jsonName: "LastEvent", T: () => Order }
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => Order },
{ no: 2, name: "Previous", kind: "message", localName: "Previous", jsonName: "Previous", T: () => Order },
{ no: 3, name: "LastEvent", kind: "message", localName: "LastEvent", jsonName: "LastEvent", T: () => Order }
]);
}
create(value?: PartialMessage<OrderTriplet>): OrderTriplet {
@@ -659,13 +659,13 @@ class OrderTriplet$Type extends MessageType<OrderTriplet> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Order Current = 1 [json_name = "Current"];*/ 1:
message.current = Order.internalBinaryRead(reader, reader.uint32(), options, message.current);
message.Current = Order.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* api.Order Previous = 2 [json_name = "Previous"];*/ 2:
message.previous = Order.internalBinaryRead(reader, reader.uint32(), options, message.previous);
message.Previous = Order.internalBinaryRead(reader, reader.uint32(), options, message.Previous);
break;
case /* api.Order LastEvent = 3 [json_name = "LastEvent"];*/ 3:
message.lastEvent = Order.internalBinaryRead(reader, reader.uint32(), options, message.lastEvent);
message.LastEvent = Order.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent);
break;
default:
let u = options.readUnknownField;
@@ -680,14 +680,14 @@ class OrderTriplet$Type extends MessageType<OrderTriplet> {
}
internalBinaryWrite(message: OrderTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Order Current = 1 [json_name = "Current"]; */
if (message.current)
Order.internalBinaryWrite(message.current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Current)
Order.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.Order Previous = 2 [json_name = "Previous"]; */
if (message.previous)
Order.internalBinaryWrite(message.previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
if (message.Previous)
Order.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.Order LastEvent = 3 [json_name = "LastEvent"]; */
if (message.lastEvent)
Order.internalBinaryWrite(message.lastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
if (message.LastEvent)
Order.internalBinaryWrite(message.LastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);