You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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