You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -788,6 +788,10 @@ export interface OrderExecutionflowUpdatedPayload {
|
||||
* @generated from protobuf field: repeated api.ExecutionflowSummary ExecutionflowSummary = 1
|
||||
*/
|
||||
ExecutionflowSummary: ExecutionflowSummary[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.OrderLine Lines = 2
|
||||
*/
|
||||
Lines: OrderLine[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.OrderExecutionflowUpdatedEvent
|
||||
@@ -4322,12 +4326,14 @@ export const OrderCompletedResponse = new OrderCompletedResponse$Type();
|
||||
class OrderExecutionflowUpdatedPayload$Type extends MessageType<OrderExecutionflowUpdatedPayload> {
|
||||
constructor() {
|
||||
super("api.OrderExecutionflowUpdatedPayload", [
|
||||
{ no: 1, name: "ExecutionflowSummary", kind: "message", localName: "ExecutionflowSummary", jsonName: "ExecutionflowSummary", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExecutionflowSummary, options: { "api.aggKey": "ExecutionflowID" } }
|
||||
{ no: 1, name: "ExecutionflowSummary", kind: "message", localName: "ExecutionflowSummary", jsonName: "ExecutionflowSummary", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExecutionflowSummary, options: { "api.aggKey": "ExecutionflowID" } },
|
||||
{ no: 2, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "api.aggSkip": "ExecutionflowUpdated" } }
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ExecutionflowUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<OrderExecutionflowUpdatedPayload>): OrderExecutionflowUpdatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ExecutionflowSummary = [];
|
||||
message.Lines = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrderExecutionflowUpdatedPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -4340,6 +4346,9 @@ class OrderExecutionflowUpdatedPayload$Type extends MessageType<OrderExecutionfl
|
||||
case /* repeated api.ExecutionflowSummary ExecutionflowSummary */ 1:
|
||||
message.ExecutionflowSummary.push(ExecutionflowSummary.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.OrderLine Lines */ 2:
|
||||
message.Lines.push(OrderLine.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -4355,6 +4364,9 @@ class OrderExecutionflowUpdatedPayload$Type extends MessageType<OrderExecutionfl
|
||||
/* repeated api.ExecutionflowSummary ExecutionflowSummary = 1; */
|
||||
for (let i = 0; i < message.ExecutionflowSummary.length; i++)
|
||||
ExecutionflowSummary.internalBinaryWrite(message.ExecutionflowSummary[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.OrderLine Lines = 2; */
|
||||
for (let i = 0; i < message.Lines.length; i++)
|
||||
OrderLine.internalBinaryWrite(message.Lines[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.14.0-SNAPSHOT-260520091356",
|
||||
"version": "1.14.0-SNAPSHOT-260521140615",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -84,6 +84,23 @@ export interface OrderLine {
|
||||
* @generated from protobuf field: api.GoodsMetrics RequestedMetrics = 4
|
||||
*/
|
||||
RequestedMetrics?: GoodsMetrics;
|
||||
/**
|
||||
* @generated from protobuf field: api.QuantifiedRequestedGoods ShippedContent = 5
|
||||
*/
|
||||
ShippedContent?: QuantifiedRequestedGoods;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.OrderShippedLine
|
||||
*/
|
||||
export interface OrderShippedLine {
|
||||
/**
|
||||
* @generated from protobuf field: string LineID = 1
|
||||
*/
|
||||
LineID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.QuantifiedRequestedGoods ShippedContent = 2
|
||||
*/
|
||||
ShippedContent?: QuantifiedRequestedGoods;
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -728,7 +745,8 @@ class OrderLine$Type extends MessageType<OrderLine> {
|
||||
{ no: 1, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 2, name: "RequestedContent", kind: "message", localName: "RequestedContent", jsonName: "RequestedContent", T: () => QuantifiedRequestedGoods },
|
||||
{ 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", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Order" } },
|
||||
{ no: 4, name: "RequestedMetrics", kind: "message", localName: "RequestedMetrics", jsonName: "RequestedMetrics", T: () => GoodsMetrics, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }
|
||||
{ no: 4, name: "RequestedMetrics", kind: "message", localName: "RequestedMetrics", jsonName: "RequestedMetrics", T: () => GoodsMetrics, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 5, name: "ShippedContent", kind: "message", localName: "ShippedContent", jsonName: "ShippedContent", T: () => QuantifiedRequestedGoods, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<OrderLine>): OrderLine {
|
||||
@@ -756,6 +774,9 @@ class OrderLine$Type extends MessageType<OrderLine> {
|
||||
case /* api.GoodsMetrics RequestedMetrics */ 4:
|
||||
message.RequestedMetrics = GoodsMetrics.internalBinaryRead(reader, reader.uint32(), options, message.RequestedMetrics);
|
||||
break;
|
||||
case /* api.QuantifiedRequestedGoods ShippedContent */ 5:
|
||||
message.ShippedContent = QuantifiedRequestedGoods.internalBinaryRead(reader, reader.uint32(), options, message.ShippedContent);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -780,6 +801,9 @@ class OrderLine$Type extends MessageType<OrderLine> {
|
||||
/* api.GoodsMetrics RequestedMetrics = 4; */
|
||||
if (message.RequestedMetrics)
|
||||
GoodsMetrics.internalBinaryWrite(message.RequestedMetrics, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.QuantifiedRequestedGoods ShippedContent = 5; */
|
||||
if (message.ShippedContent)
|
||||
QuantifiedRequestedGoods.internalBinaryWrite(message.ShippedContent, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -791,6 +815,60 @@ class OrderLine$Type extends MessageType<OrderLine> {
|
||||
*/
|
||||
export const OrderLine = new OrderLine$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class OrderShippedLine$Type extends MessageType<OrderShippedLine> {
|
||||
constructor() {
|
||||
super("api.OrderShippedLine", [
|
||||
{ no: 1, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "ShippedContent", kind: "message", localName: "ShippedContent", jsonName: "ShippedContent", T: () => QuantifiedRequestedGoods }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<OrderShippedLine>): OrderShippedLine {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.LineID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<OrderShippedLine>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderShippedLine): OrderShippedLine {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string LineID */ 1:
|
||||
message.LineID = reader.string();
|
||||
break;
|
||||
case /* api.QuantifiedRequestedGoods ShippedContent */ 2:
|
||||
message.ShippedContent = QuantifiedRequestedGoods.internalBinaryRead(reader, reader.uint32(), options, message.ShippedContent);
|
||||
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: OrderShippedLine, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string LineID = 1; */
|
||||
if (message.LineID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.LineID);
|
||||
/* api.QuantifiedRequestedGoods ShippedContent = 2; */
|
||||
if (message.ShippedContent)
|
||||
QuantifiedRequestedGoods.internalBinaryWrite(message.ShippedContent, 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.OrderShippedLine
|
||||
*/
|
||||
export const OrderShippedLine = new OrderShippedLine$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ExeFlowLine$Type extends MessageType<ExeFlowLine> {
|
||||
constructor() {
|
||||
super("api.ExeFlowLine", [
|
||||
|
||||
Reference in New Issue
Block a user