You've already forked npm-core-sdk
Latest generation
This commit is contained in:
22
item.ts
22
item.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 "item.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -164,13 +164,13 @@ export const Item = new Item$Type();
|
||||
class ItemPayload$Type extends MessageType<ItemPayload> {
|
||||
constructor() {
|
||||
super("api.ItemPayload", [
|
||||
{ no: 1, 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" }] }, "api.parentEntity": "Item", "api.aggAppend": "MetaDataUpdated" } },
|
||||
{ no: 1, 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" }] }, "api.parentEntity": "Item", "api.aggAppend": "MetaDataUpdated" } },
|
||||
{ no: 6, name: "ExpiryConstraint", kind: "message", localName: "ExpiryConstraint", jsonName: "ExpiryConstraint", T: () => ExpiryConstraint, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Item components" } } },
|
||||
{ no: 7, 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: "Item", Group: "item", 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: 3, name: "DescriptionsByLanguage", kind: "message", localName: "DescriptionsByLanguage", jsonName: "DescriptionsByLanguage", repeat: 1 /*RepeatType.PACKED*/, T: () => TradeItemDescriptions, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391", "api.aggAppend": "DescriptionUpdated", "api.kpiItems": { Items: [{ Context: "Item", Group: "item" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
|
||||
{ no: 4, name: "LogisticVariants", kind: "message", localName: "LogisticVariants", jsonName: "LogisticVariants", repeat: 1 /*RepeatType.PACKED*/, T: () => LogisticVariant, options: { "validate.rules": { repeated: { uniqueBaseLV: true, knownRefLV: true } }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }, { Context: "Item", Group: "item" }] }, "api.aggAppend": "LogisticVariantUpdated" } },
|
||||
{ no: 3, name: "DescriptionsByLanguage", kind: "message", localName: "DescriptionsByLanguage", jsonName: "DescriptionsByLanguage", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TradeItemDescriptions, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391", "api.aggAppend": "DescriptionUpdated", "api.kpiItems": { Items: [{ Context: "Item", Group: "item" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
|
||||
{ no: 4, name: "LogisticVariants", kind: "message", localName: "LogisticVariants", jsonName: "LogisticVariants", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LogisticVariant, options: { "validate.rules": { repeated: { uniqueBaseLV: true, knownRefLV: true } }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }, { Context: "Item", Group: "item" }] }, "api.aggAppend": "LogisticVariantUpdated" } },
|
||||
{ no: 5, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ItemStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] }, "api.enrichmentClear": "Handlingunit,Order,Executionflow,Stock" } },
|
||||
{ no: 8, 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": "Handlingunit,Order,Executionflow,Stock" } },
|
||||
{ no: 8, 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": "Handlingunit,Order,Executionflow,Stock" } },
|
||||
{ no: 9, 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": "Handlingunit,Order,Executionflow,Stock" } },
|
||||
{ no: 10, name: "RemovedLogisticVariantIDs", kind: "scalar", localName: "RemovedLogisticVariantIDs", jsonName: "RemovedLogisticVariantIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }
|
||||
]);
|
||||
@@ -235,12 +235,6 @@ class ItemPayload$Type extends MessageType<ItemPayload> {
|
||||
/* repeated api.MetadataElement MetaData = 1 [json_name = "MetaData"]; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ExpiryConstraint ExpiryConstraint = 6 [json_name = "ExpiryConstraint"]; */
|
||||
if (message.ExpiryConstraint)
|
||||
ExpiryConstraint.internalBinaryWrite(message.ExpiryConstraint, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string PhotoURI = 7 [json_name = "PhotoURI"]; */
|
||||
if (message.PhotoURI !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.PhotoURI);
|
||||
/* repeated api.TradeItemDescriptions DescriptionsByLanguage = 3 [json_name = "DescriptionsByLanguage"]; */
|
||||
for (let i = 0; i < message.DescriptionsByLanguage.length; i++)
|
||||
TradeItemDescriptions.internalBinaryWrite(message.DescriptionsByLanguage[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -250,6 +244,12 @@ class ItemPayload$Type extends MessageType<ItemPayload> {
|
||||
/* api.ItemStatusStruct Status = 5 [json_name = "Status"]; */
|
||||
if (message.Status)
|
||||
ItemStatusStruct.internalBinaryWrite(message.Status, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ExpiryConstraint ExpiryConstraint = 6 [json_name = "ExpiryConstraint"]; */
|
||||
if (message.ExpiryConstraint)
|
||||
ExpiryConstraint.internalBinaryWrite(message.ExpiryConstraint, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string PhotoURI = 7 [json_name = "PhotoURI"]; */
|
||||
if (message.PhotoURI !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.PhotoURI);
|
||||
/* repeated api.AttachmentSummary Attachments = 8 [json_name = "Attachments"]; */
|
||||
for (let i = 0; i < message.Attachments.length; i++)
|
||||
AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
Reference in New Issue
Block a user