You've already forked npm-core-sdk
Latest generation
This commit is contained in:
22
actor.ts
22
actor.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 "actor.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -318,7 +318,7 @@ class ActorPayload$Type extends MessageType<ActorPayload> {
|
||||
super("api.ActorPayload", [
|
||||
{ no: 1, 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": { description: "Actor Name" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Tracking", "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] } } },
|
||||
{ no: 2, name: "IdType", kind: "enum", localName: "IdType", jsonName: "IdType", T: () => ["api.IdType", IdType], options: { "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: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] }, "api.parentEntity": "Actor" } },
|
||||
{ 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: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] }, "api.parentEntity": "Actor" } },
|
||||
{ no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
||||
{ no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ActorStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Order", Group: "movement" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } },
|
||||
{ no: 7, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Existing PartnerID" }, "api.entityRef": "Partner", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
@@ -329,14 +329,14 @@ class ActorPayload$Type extends MessageType<ActorPayload> {
|
||||
{ no: 13, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"07 00 00 00 00\", \"+49 6 00 00 00 00\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 14, name: "ManagedStock", kind: "scalar", localName: "ManagedStock", jsonName: "ManagedStock", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can manage stock" }, "api.enrichmentClear": "Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } },
|
||||
{ no: 16, name: "IsCarrier", kind: "scalar", localName: "IsCarrier", jsonName: "IsCarrier", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can be used as carrier" }, "api.enrichmentClear": "Stock,Movement" } },
|
||||
{ no: 17, name: "CarrierServices", kind: "message", localName: "CarrierServices", jsonName: "CarrierServices", repeat: 1 /*RepeatType.PACKED*/, T: () => CarrierService, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of carrier services" }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Stock,Movement,Tracking" } },
|
||||
{ no: 17, name: "CarrierServices", kind: "message", localName: "CarrierServices", jsonName: "CarrierServices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierService, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of carrier services" }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Stock,Movement,Tracking" } },
|
||||
{ no: 18, name: "IsShipToConnected", kind: "scalar", localName: "IsShipToConnected", jsonName: "IsShipToConnected", T: 8 /*ScalarType.BOOL*/, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } },
|
||||
{ no: 19, name: "IsShipFromConnected", kind: "scalar", localName: "IsShipFromConnected", jsonName: "IsShipFromConnected", T: 8 /*ScalarType.BOOL*/, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } },
|
||||
{ no: 20, name: "ShipToPartnerAppID", kind: "scalar", localName: "ShipToPartnerAppID", jsonName: "ShipToPartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be existing partner ID" }, "api.enrichmentClear": "Stock,Movement,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 21, name: "ShipFromPartnerAppID", kind: "scalar", localName: "ShipFromPartnerAppID", jsonName: "ShipFromPartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be existing partner ID" }, "api.enrichmentClear": "Stock,Movement,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 22, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 1 /*RepeatType.PACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } },
|
||||
{ no: 22, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } },
|
||||
{ no: 23, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } },
|
||||
{ no: 24, 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 per type" }, "api.aggKey": "ClaimTypeID", "api.aggSkip": "ClaimAdded", "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } },
|
||||
{ no: 24, 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 per type" }, "api.aggKey": "ClaimTypeID", "api.aggSkip": "ClaimAdded", "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } },
|
||||
{ no: 25, name: "ClaimNumber", kind: "scalar", localName: "ClaimNumber", jsonName: "ClaimNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of claims" }, "api.enrichmentClear": "Order,Stock,Movement,Tracking" } },
|
||||
{ no: 26, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "image" }] } } },
|
||||
{ no: 28, name: "ConnectionIdentifierPrefixes", kind: "scalar", localName: "ConnectionIdentifierPrefixes", jsonName: "ConnectionIdentifierPrefixes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } },
|
||||
@@ -489,9 +489,6 @@ class ActorPayload$Type extends MessageType<ActorPayload> {
|
||||
/* string PartnerID = 7 [json_name = "PartnerID"]; */
|
||||
if (message.PartnerID !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.PartnerID);
|
||||
/* string AdditionalInformation = 15 [json_name = "AdditionalInformation"]; */
|
||||
if (message.AdditionalInformation !== "")
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.AdditionalInformation);
|
||||
/* api.ActorTypology Typology = 10 [json_name = "Typology"]; */
|
||||
if (message.Typology !== 0)
|
||||
writer.tag(10, WireType.Varint).int32(message.Typology);
|
||||
@@ -507,6 +504,9 @@ class ActorPayload$Type extends MessageType<ActorPayload> {
|
||||
/* bool ManagedStock = 14 [json_name = "ManagedStock"]; */
|
||||
if (message.ManagedStock !== false)
|
||||
writer.tag(14, WireType.Varint).bool(message.ManagedStock);
|
||||
/* string AdditionalInformation = 15 [json_name = "AdditionalInformation"]; */
|
||||
if (message.AdditionalInformation !== "")
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.AdditionalInformation);
|
||||
/* bool IsCarrier = 16 [json_name = "IsCarrier"]; */
|
||||
if (message.IsCarrier !== false)
|
||||
writer.tag(16, WireType.Varint).bool(message.IsCarrier);
|
||||
@@ -654,9 +654,6 @@ class ActorEnrichment$Type extends MessageType<ActorEnrichment> {
|
||||
/* string MergePath = 5 [json_name = "MergePath"]; */
|
||||
if (message.MergePath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.MergePath);
|
||||
/* api.PartnerPayload Partner = 10 [json_name = "Partner"]; */
|
||||
if (message.Content.oneofKind === "Partner")
|
||||
PartnerPayload.internalBinaryWrite(message.Content.Partner, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Project = 6 [json_name = "Project"]; */
|
||||
if (message.Project !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Project);
|
||||
@@ -666,6 +663,9 @@ class ActorEnrichment$Type extends MessageType<ActorEnrichment> {
|
||||
/* string ParentEntityID = 8 [json_name = "ParentEntityID"]; */
|
||||
if (message.ParentEntityID !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.ParentEntityID);
|
||||
/* api.PartnerPayload Partner = 10 [json_name = "Partner"]; */
|
||||
if (message.Content.oneofKind === "Partner")
|
||||
PartnerPayload.internalBinaryWrite(message.Content.Partner, writer.tag(10, 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