Latest generation

This commit is contained in:
ci core model
2025-05-02 08:55:56 +00:00
parent c1ebe9a950
commit c82118c2e0
197 changed files with 919 additions and 919 deletions

View File

@@ -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 "warehousingShared.proto" (package "api", syntax proto3)
// tslint:disable
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -1093,7 +1093,7 @@ class HandlingunitStatusStruct$Type extends MessageType<HandlingunitStatusStruct
constructor() {
super("api.HandlingunitStatusStruct", [
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => HandlingunitStatus },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => HandlingunitStatus, options: { "api.aggKey": "Date" } },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitStatus, options: { "api.aggKey": "Date" } },
{ 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*/ }
]);
@@ -1165,8 +1165,8 @@ class HandlingunitSummary$Type extends MessageType<HandlingunitSummary> {
{ no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => HandlingunitStatus, options: { "api.aggSkip": "HUTrackingUpdated,HUContentUpdated" } },
{ no: 3, name: "TrackingID", kind: "scalar", localName: "TrackingID", jsonName: "TrackingID", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 6, 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.transientRef": "Handlingunit,Payload.MetaData,hard", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Handlingunit" } },
{ no: 7, name: "Contents", kind: "message", localName: "Contents", jsonName: "Contents", repeat: 1 /*RepeatType.PACKED*/, T: () => QuantifiedGoodsByLine, options: { "api.aggSkip": "HUTrackingUpdated", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
{ no: 6, 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.transientRef": "Handlingunit,Payload.MetaData,hard", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Handlingunit" } },
{ no: 7, name: "Contents", kind: "message", localName: "Contents", jsonName: "Contents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedGoodsByLine, options: { "api.aggSkip": "HUTrackingUpdated", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
{ no: 9, name: "TrackingURL", kind: "scalar", localName: "TrackingURL", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "IsReported", kind: "scalar", localName: "IsReported", jsonName: "IsReported", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All the information of the Handlingunit that is sent to the parent ExecutionFlow", required: ["HandlingunitID"] } } });
@@ -1401,7 +1401,7 @@ class StockStatusStruct$Type extends MessageType<StockStatusStruct> {
constructor() {
super("api.StockStatusStruct", [
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => StockStatus },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => StockStatus, 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" }] } } },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StockStatus, 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" }] } } },
{ no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ },
{ no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
]);
@@ -1533,7 +1533,7 @@ class MovementStatusStruct$Type extends MessageType<MovementStatusStruct> {
constructor() {
super("api.MovementStatusStruct", [
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => MovementStatus },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => MovementStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MovementStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } },
{ no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ },
{ no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
]);
@@ -1667,7 +1667,7 @@ class Goods$Type extends MessageType<Goods> {
{ no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logitical Variant branch ID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ItemID", "LVBranchID"] } } });
}
create(value?: PartialMessage<Goods>): Goods {
@@ -1738,7 +1738,7 @@ class EnrichedGoods$Type extends MessageType<EnrichedGoods> {
{ no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant branch ID" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } },
{ no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Type of goods", required: ["ItemID", "LVBranchID", "PriorityDate"] } } });
}
@@ -1816,7 +1816,7 @@ class RequestedEnrichedGoods$Type extends MessageType<RequestedEnrichedGoods> {
{ no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant branch ID" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true, ignoreEmpty: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in <a href='https://fr.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } },
{ no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Type of goods", required: ["ItemID"] } } });
}
@@ -2224,9 +2224,6 @@ class QuantifiedDatedGoodsByExeflow$Type extends MessageType<QuantifiedDatedGood
return message;
}
internalBinaryWrite(message: QuantifiedDatedGoodsByExeflow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime DateTime = 8 [json_name = "DateTime"]; */
if (message.DateTime)
DateTime.internalBinaryWrite(message.DateTime, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* api.EnrichedGoods Goods = 1 [json_name = "Goods"]; */
if (message.Goods)
EnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
@@ -2236,24 +2233,27 @@ class QuantifiedDatedGoodsByExeflow$Type extends MessageType<QuantifiedDatedGood
/* string LineID = 3 [json_name = "LineID"]; */
if (message.LineID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LineID);
/* string OrderID = 10 [json_name = "OrderID"]; */
if (message.OrderID !== "")
writer.tag(10, WireType.LengthDelimited).string(message.OrderID);
/* string ActorID = 4 [json_name = "ActorID"]; */
if (message.ActorID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ActorID);
/* api.QuantityInLV Quantity = 5 [json_name = "Quantity"]; */
if (message.Quantity)
QuantityInLV.internalBinaryWrite(message.Quantity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV QuantityInBaseLV = 9 [json_name = "QuantityInBaseLV"]; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* bool StockMovementGenerated = 6 [json_name = "StockMovementGenerated"]; */
if (message.StockMovementGenerated !== false)
writer.tag(6, WireType.Varint).bool(message.StockMovementGenerated);
/* bool ContentSummaryGenerated = 7 [json_name = "ContentSummaryGenerated"]; */
if (message.ContentSummaryGenerated !== false)
writer.tag(7, WireType.Varint).bool(message.ContentSummaryGenerated);
/* api.DateTime DateTime = 8 [json_name = "DateTime"]; */
if (message.DateTime)
DateTime.internalBinaryWrite(message.DateTime, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV QuantityInBaseLV = 9 [json_name = "QuantityInBaseLV"]; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* string OrderID = 10 [json_name = "OrderID"]; */
if (message.OrderID !== "")
writer.tag(10, WireType.LengthDelimited).string(message.OrderID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2350,15 +2350,15 @@ class QuantifiedGoodsByExeflow$Type extends MessageType<QuantifiedGoodsByExeflow
/* api.QuantityInLV Quantity = 5 [json_name = "Quantity"]; */
if (message.Quantity)
QuantityInLV.internalBinaryWrite(message.Quantity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV QuantityInBaseLV = 8 [json_name = "QuantityInBaseLV"]; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* bool StockMovementGenerated = 6 [json_name = "StockMovementGenerated"]; */
if (message.StockMovementGenerated !== false)
writer.tag(6, WireType.Varint).bool(message.StockMovementGenerated);
/* bool ContentSummaryGenerated = 7 [json_name = "ContentSummaryGenerated"]; */
if (message.ContentSummaryGenerated !== false)
writer.tag(7, WireType.Varint).bool(message.ContentSummaryGenerated);
/* api.QuantityInLV QuantityInBaseLV = 8 [json_name = "QuantityInBaseLV"]; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* string OrderID = 9 [json_name = "OrderID"]; */
if (message.OrderID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.OrderID);
@@ -2570,9 +2570,6 @@ class StockSnapshot$Type extends MessageType<StockSnapshot> {
return message;
}
internalBinaryWrite(message: StockSnapshot, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime DateTime = 6 [json_name = "DateTime"]; */
if (message.DateTime)
DateTime.internalBinaryWrite(message.DateTime, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2 [json_name = "ID"]; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
@@ -2582,6 +2579,9 @@ class StockSnapshot$Type extends MessageType<StockSnapshot> {
/* api.QuantityInLV QuantityInBaseLV = 5 [json_name = "QuantityInBaseLV"]; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.DateTime DateTime = 6 [json_name = "DateTime"]; */
if (message.DateTime)
DateTime.internalBinaryWrite(message.DateTime, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* bool IsTotalQuantity = 7 [json_name = "IsTotalQuantity"]; */
if (message.IsTotalQuantity !== false)
writer.tag(7, WireType.Varint).bool(message.IsTotalQuantity);
@@ -2609,7 +2609,7 @@ export const StockSnapshot = new StockSnapshot$Type();
class StockMovementClaim$Type extends MessageType<StockMovementClaim> {
constructor() {
super("api.StockMovementClaim", [
{ no: 1, 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 added per type" }, "api.aggKey": "ClaimTypeID" } },
{ no: 1, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims added per type" }, "api.aggKey": "ClaimTypeID" } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the stock move" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }
]);
}
@@ -2676,7 +2676,7 @@ class StockMovement$Type extends MessageType<StockMovement> {
{ no: 9, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => MovementQuantityInLV, options: { "validate.rules": { message: { required: true } }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } },
{ no: 10, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => MovementQuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } },
{ no: 11, name: "MvtAlreadyUsedInStock", kind: "scalar", localName: "MvtAlreadyUsedInStock", jsonName: "MvtAlreadyUsedInStock", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 12, name: "QuantityByLVs", kind: "message", localName: "QuantityByLVs", jsonName: "QuantityByLVs", repeat: 1 /*RepeatType.PACKED*/, T: () => QuantityByLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }] } } },
{ no: 12, name: "QuantityByLVs", kind: "message", localName: "QuantityByLVs", jsonName: "QuantityByLVs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }] } } },
{ no: 13, name: "LVDetailledQuantity", kind: "scalar", localName: "LVDetailledQuantity", jsonName: "LVDetailledQuantity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 14, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 15, name: "ExternalMoveRef", kind: "scalar", localName: "ExternalMoveRef", jsonName: "ExternalMoveRef", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
@@ -2783,9 +2783,6 @@ class StockMovement$Type extends MessageType<StockMovement> {
/* string HandlingunitID = 4 [json_name = "HandlingunitID"]; */
if (message.HandlingunitID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.HandlingunitID);
/* string OrderID = 17 [json_name = "OrderID"]; */
if (message.OrderID !== "")
writer.tag(17, WireType.LengthDelimited).string(message.OrderID);
/* string ExecutionflowID = 5 [json_name = "ExecutionflowID"]; */
if (message.ExecutionflowID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ExecutionflowID);
@@ -2822,6 +2819,9 @@ class StockMovement$Type extends MessageType<StockMovement> {
/* string ExternalInfo = 16 [json_name = "ExternalInfo"]; */
if (message.ExternalInfo !== "")
writer.tag(16, WireType.LengthDelimited).string(message.ExternalInfo);
/* string OrderID = 17 [json_name = "OrderID"]; */
if (message.OrderID !== "")
writer.tag(17, WireType.LengthDelimited).string(message.OrderID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);