You've already forked npm-core-sdk
Latest generation
This commit is contained in:
18
stock.ts
18
stock.ts
@@ -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 "stock.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -213,9 +213,9 @@ class StockPayload$Type extends MessageType<StockPayload> {
|
||||
{ no: 5, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "api.aggSkip": "Moved", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => StockStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 7, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 8, 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" } },
|
||||
{ no: 8, 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" } },
|
||||
{ no: 9, name: "LVDetailledQuantity", kind: "scalar", localName: "LVDetailledQuantity", jsonName: "LVDetailledQuantity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 10, name: "LatestMovements", kind: "message", localName: "LatestMovements", jsonName: "LatestMovements", repeat: 1 /*RepeatType.PACKED*/, T: () => StockMovement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] }, "api.indexationSkip": true } },
|
||||
{ no: 10, name: "LatestMovements", kind: "message", localName: "LatestMovements", jsonName: "LatestMovements", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StockMovement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] }, "api.indexationSkip": true } },
|
||||
{ no: 11, name: "RequestedStockValue", kind: "scalar", localName: "RequestedStockValue", jsonName: "RequestedStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } },
|
||||
{ no: 12, name: "ToReceiveStockValue", kind: "scalar", localName: "ToReceiveStockValue", jsonName: "ToReceiveStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } },
|
||||
{ no: 13, name: "LastUpdateStockDateTime", kind: "scalar", localName: "LastUpdateStockDateTime", jsonName: "LastUpdateStockDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
@@ -514,12 +514,6 @@ class StockEnrichment$Type extends MessageType<StockEnrichment> {
|
||||
/* string MergePath = 5 [json_name = "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();
|
||||
/* 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();
|
||||
/* string Project = 6 [json_name = "Project"]; */
|
||||
if (message.Project !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Project);
|
||||
@@ -529,6 +523,12 @@ class StockEnrichment$Type extends MessageType<StockEnrichment> {
|
||||
/* string ParentEntityID = 8 [json_name = "ParentEntityID"]; */
|
||||
if (message.ParentEntityID !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.ParentEntityID);
|
||||
/* 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();
|
||||
/* 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();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user