You've already forked npm-core-sdk
Latest generation
This commit is contained in:
40
shared.ts
40
shared.ts
@@ -856,7 +856,7 @@ export interface MatchField {
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Standard structure, having an attribute and a list of values
|
||||
* Standard structure, having an attribute,CombinedID and a list of values
|
||||
*
|
||||
* @generated from protobuf message api.MatchFieldResult
|
||||
*/
|
||||
@@ -869,6 +869,10 @@ export interface MatchFieldResult {
|
||||
* @generated from protobuf field: repeated string Values = 2 [json_name = "Values"];
|
||||
*/
|
||||
Values: string[];
|
||||
/**
|
||||
* @generated from protobuf field: string CombinedID = 3 [json_name = "CombinedID"];
|
||||
*/
|
||||
CombinedID: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -1801,7 +1805,7 @@ export interface MatchElementField {
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Standard structure, having an map of elements (key,value)
|
||||
* Standard structure, having an map of elements (key,value), In case of Metadata/SegmentationKey, we replace the attribute(Path) by the DisplayPath (to keep track of the Metadata/SegmentationKey Name)
|
||||
*
|
||||
* @generated from protobuf message api.MatchFieldElementResult
|
||||
*/
|
||||
@@ -3530,7 +3534,7 @@ class EventHeader$Type extends MessageType<EventHeader> {
|
||||
{ no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||
{ no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "api.viewType": { Types: [{ Context: "*", Type: "user" }] }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 6, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["InputEvent", "EventTS", "Project", "Author", "EventID"] } } });
|
||||
@@ -3857,7 +3861,7 @@ export const GenericObjectPayload = new GenericObjectPayload$Type();
|
||||
class DateTime$Type extends MessageType<DateTime> {
|
||||
constructor() {
|
||||
super("api.DateTime", [
|
||||
{ no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format", example: "\"2023-01-01T00:00:00Z\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "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,DateTime)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "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,DateTime)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] }, "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format", example: "\"2023-01-01T00:00:00Z\"" } } },
|
||||
{ no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event in this <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } }
|
||||
]);
|
||||
}
|
||||
@@ -4003,7 +4007,7 @@ class Amount$Type extends MessageType<Amount> {
|
||||
constructor() {
|
||||
super("api.Amount", [
|
||||
{ no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 2, name: "Currency", kind: "enum", localName: "Currency", jsonName: "Currency", T: () => ["api.Currency", Currency], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/ISO_4217'>ISO 4217</a> currency code", example: "[\"EUR\", \"USD\"]" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }
|
||||
{ no: 2, name: "Currency", kind: "enum", localName: "Currency", jsonName: "Currency", T: () => ["api.Currency", Currency], options: { "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/ISO_4217'>ISO 4217</a> currency code", example: "[\"EUR\", \"USD\"]" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Amount>): Amount {
|
||||
@@ -5014,13 +5018,15 @@ class MatchFieldResult$Type extends MessageType<MatchFieldResult> {
|
||||
constructor() {
|
||||
super("api.MatchFieldResult", [
|
||||
{ no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 2, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<MatchFieldResult>): MatchFieldResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Attribute = "";
|
||||
message.Values = [];
|
||||
message.CombinedID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MatchFieldResult>(this, message, value);
|
||||
return message;
|
||||
@@ -5036,6 +5042,9 @@ class MatchFieldResult$Type extends MessageType<MatchFieldResult> {
|
||||
case /* repeated string Values = 2 [json_name = "Values"];*/ 2:
|
||||
message.Values.push(reader.string());
|
||||
break;
|
||||
case /* string CombinedID = 3 [json_name = "CombinedID"];*/ 3:
|
||||
message.CombinedID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -5054,6 +5063,9 @@ class MatchFieldResult$Type extends MessageType<MatchFieldResult> {
|
||||
/* repeated string Values = 2 [json_name = "Values"]; */
|
||||
for (let i = 0; i < message.Values.length; i++)
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Values[i]);
|
||||
/* string CombinedID = 3 [json_name = "CombinedID"]; */
|
||||
if (message.CombinedID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.CombinedID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -5264,9 +5276,9 @@ export const ParamElement = new ParamElement$Type();
|
||||
class LabelStructure$Type extends MessageType<LabelStructure> {
|
||||
constructor() {
|
||||
super("api.LabelStructure", [
|
||||
{ no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
|
||||
{ no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] }, "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" } } },
|
||||
{ no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" } } },
|
||||
{ no: 3, name: "Params", kind: "message", localName: "Params", jsonName: "Params", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ParamElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Parameters for label" }, "api.aggKey": "Key" } }
|
||||
{ no: 3, name: "Params", kind: "message", localName: "Params", jsonName: "Params", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ParamElement, options: { "api.aggKey": "Key", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Parameters for label" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Code", "Label"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<LabelStructure>): LabelStructure {
|
||||
@@ -5902,7 +5914,7 @@ export const StringObject = new StringObject$Type();
|
||||
class StringDateObject$Type extends MessageType<StringDateObject> {
|
||||
constructor() {
|
||||
super("api.StringDateObject", [
|
||||
{ no: 10, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }
|
||||
{ no: 10, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] }, "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<StringDateObject>): StringDateObject {
|
||||
@@ -6447,8 +6459,8 @@ export const ClaimTypeClosure = new ClaimTypeClosure$Type();
|
||||
class ClaimClosure$Type extends MessageType<ClaimClosure> {
|
||||
constructor() {
|
||||
super("api.ClaimClosure", [
|
||||
{ no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 2, name: "Cause", kind: "scalar", localName: "Cause", jsonName: "Cause", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }
|
||||
{ no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Cause", kind: "scalar", localName: "Cause", jsonName: "Cause", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "validate.rules": { string: { minLen: "1" } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ClaimClosure>): ClaimClosure {
|
||||
@@ -6502,7 +6514,7 @@ export const ClaimClosure = new ClaimClosure$Type();
|
||||
class ClaimSummary$Type extends MessageType<ClaimSummary> {
|
||||
constructor() {
|
||||
super("api.ClaimSummary", [
|
||||
{ no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] }, "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" } } },
|
||||
{ no: 2, name: "ClaimTypeReason", kind: "scalar", localName: "ClaimTypeReason", jsonName: "ClaimTypeReason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason of the claim type" } } },
|
||||
{ no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims with this type" } } }
|
||||
]);
|
||||
@@ -6652,8 +6664,8 @@ export const AttachmentType = new AttachmentType$Type();
|
||||
class AttachmentSummary$Type extends MessageType<AttachmentSummary> {
|
||||
constructor() {
|
||||
super("api.AttachmentSummary", [
|
||||
{ no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 2, name: "AttachmentTypeCode", kind: "scalar", localName: "AttachmentTypeCode", jsonName: "AttachmentTypeCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
|
||||
{ no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] }, "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" } } },
|
||||
{ no: 2, name: "AttachmentTypeCode", kind: "scalar", localName: "AttachmentTypeCode", jsonName: "AttachmentTypeCode", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] }, "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" } } },
|
||||
{ no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments with this type" } } }
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user