You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "repositoryShared.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -890,7 +890,7 @@ class ActorStatusStruct$Type extends MessageType<ActorStatusStruct> {
|
||||
constructor() {
|
||||
super("api.ActorStatusStruct", [
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ActorStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => ActorStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActorStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }
|
||||
]);
|
||||
@@ -1022,7 +1022,7 @@ class PartnerStatusStruct$Type extends MessageType<PartnerStatusStruct> {
|
||||
constructor() {
|
||||
super("api.PartnerStatusStruct", [
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => PartnerStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => PartnerStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PartnerStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
|
||||
]);
|
||||
}
|
||||
@@ -1139,7 +1139,7 @@ class ErrorStatusStruct$Type extends MessageType<ErrorStatusStruct> {
|
||||
constructor() {
|
||||
super("api.ErrorStatusStruct", [
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ErrorStatus },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => ErrorStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ErrorStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
|
||||
]);
|
||||
}
|
||||
@@ -1263,7 +1263,7 @@ class ItemStatusStruct$Type extends MessageType<ItemStatusStruct> {
|
||||
constructor() {
|
||||
super("api.ItemStatusStruct", [
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ItemStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => ItemStatus, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of all status history of the Item entity" }, "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ItemStatus, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of all status history of the Item entity" }, "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] } } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }
|
||||
]);
|
||||
@@ -1395,7 +1395,7 @@ class FamilyStatusStruct$Type extends MessageType<FamilyStatusStruct> {
|
||||
constructor() {
|
||||
super("api.FamilyStatusStruct", [
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => FamilyStatus },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => FamilyStatus, options: { "api.aggKey": "Date" } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FamilyStatus, options: { "api.aggKey": "Date" } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
|
||||
]);
|
||||
}
|
||||
@@ -1584,8 +1584,8 @@ class LogisticVariant$Type extends MessageType<LogisticVariant> {
|
||||
super("api.LogisticVariant", [
|
||||
{ no: 13, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Executionflow,Order,Item", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 15, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Pallet of 100 pieces\"" } } },
|
||||
{ no: 2, name: "Codes", kind: "message", localName: "Codes", jsonName: "Codes", repeat: 1 /*RepeatType.PACKED*/, T: () => OtherID, options: { "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 3, 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: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] }, "api.parentEntity": "Item" } },
|
||||
{ no: 2, name: "Codes", kind: "message", localName: "Codes", jsonName: "Codes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OtherID, options: { "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ 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: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] }, "api.parentEntity": "Item" } },
|
||||
{ no: 4, name: "IsBaseLogisticVariant", kind: "scalar", localName: "IsBaseLogisticVariant", jsonName: "IsBaseLogisticVariant", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"true / false\"" } } },
|
||||
{ no: 5, name: "RefLV", kind: "scalar", localName: "RefLV", jsonName: "RefLV", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the LV in which the quantity is given", example: "\"10\"" } } },
|
||||
{ no: 19, name: "RefLVName", kind: "scalar", localName: "RefLVName", jsonName: "RefLVName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
@@ -1685,12 +1685,6 @@ class LogisticVariant$Type extends MessageType<LogisticVariant> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: LogisticVariant, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string LVID = 13 [json_name = "LVID"]; */
|
||||
if (message.LVID !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.LVID);
|
||||
/* string Name = 15 [json_name = "Name"]; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.Name);
|
||||
/* repeated api.OtherID Codes = 2 [json_name = "Codes"]; */
|
||||
for (let i = 0; i < message.Codes.length; i++)
|
||||
OtherID.internalBinaryWrite(message.Codes[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1703,9 +1697,6 @@ class LogisticVariant$Type extends MessageType<LogisticVariant> {
|
||||
/* string RefLV = 5 [json_name = "RefLV"]; */
|
||||
if (message.RefLV !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.RefLV);
|
||||
/* string RefLVName = 19 [json_name = "RefLVName"]; */
|
||||
if (message.RefLVName !== "")
|
||||
writer.tag(19, WireType.LengthDelimited).string(message.RefLVName);
|
||||
/* float QuantityInRefLV = 6 [json_name = "QuantityInRefLV"]; */
|
||||
if (message.QuantityInRefLV !== 0)
|
||||
writer.tag(6, WireType.Bit32).float(message.QuantityInRefLV);
|
||||
@@ -1724,9 +1715,15 @@ class LogisticVariant$Type extends MessageType<LogisticVariant> {
|
||||
/* api.QuantityLength Length = 12 [json_name = "Length"]; */
|
||||
if (message.Length)
|
||||
QuantityLength.internalBinaryWrite(message.Length, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string LVID = 13 [json_name = "LVID"]; */
|
||||
if (message.LVID !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.LVID);
|
||||
/* float QuantityInBaseLV = 14 [json_name = "QuantityInBaseLV"]; */
|
||||
if (message.QuantityInBaseLV !== 0)
|
||||
writer.tag(14, WireType.Bit32).float(message.QuantityInBaseLV);
|
||||
/* string Name = 15 [json_name = "Name"]; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.Name);
|
||||
/* api.QuantityWeight NetWeight = 16 [json_name = "NetWeight"]; */
|
||||
if (message.NetWeight)
|
||||
QuantityWeight.internalBinaryWrite(message.NetWeight, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1736,6 +1733,9 @@ class LogisticVariant$Type extends MessageType<LogisticVariant> {
|
||||
/* repeated string BranchIDs = 18 [json_name = "BranchIDs"]; */
|
||||
for (let i = 0; i < message.BranchIDs.length; i++)
|
||||
writer.tag(18, WireType.LengthDelimited).string(message.BranchIDs[i]);
|
||||
/* string RefLVName = 19 [json_name = "RefLVName"]; */
|
||||
if (message.RefLVName !== "")
|
||||
writer.tag(19, WireType.LengthDelimited).string(message.RefLVName);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1924,15 +1924,15 @@ class FamilyNode$Type extends MessageType<FamilyNode> {
|
||||
/* string ParentNodeID = 3 [json_name = "ParentNodeID"]; */
|
||||
if (message.ParentNodeID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.ParentNodeID);
|
||||
/* string FamilyRefID = 6 [json_name = "FamilyRefID"]; */
|
||||
if (message.FamilyRefID !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.FamilyRefID);
|
||||
/* int32 Level = 4 [json_name = "Level"]; */
|
||||
if (message.Level !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.Level);
|
||||
/* string StringPath = 5 [json_name = "StringPath"]; */
|
||||
if (message.StringPath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.StringPath);
|
||||
/* string FamilyRefID = 6 [json_name = "FamilyRefID"]; */
|
||||
if (message.FamilyRefID !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.FamilyRefID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user