Latest generation

This commit is contained in:
ci core model
2025-04-28 12:35:42 +00:00
parent 595d5e3e36
commit 09d656c554
197 changed files with 25094 additions and 25094 deletions

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "metadata.proto" (package "api", syntax proto3)
// tslint:disable
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
@@ -23,15 +23,15 @@ export interface Metadata {
/**
* @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];
*/
lastEventHeader?: EventHeader;
LastEventHeader?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
*/
iD?: EntityID;
ID?: EntityID;
/**
* @generated from protobuf field: api.MetadataPayload Payload = 3 [json_name = "Payload"];
*/
payload?: MetadataPayload;
Payload?: MetadataPayload;
}
/**
* @generated from protobuf message api.MetadataPayload
@@ -42,59 +42,59 @@ export interface MetadataPayload {
*
* @generated from protobuf field: bool IsSegmentationKey = 2 [json_name = "IsSegmentationKey"];
*/
isSegmentationKey: boolean;
IsSegmentationKey: boolean;
/**
* @generated from protobuf field: string Domain = 3 [json_name = "Domain"];
*/
domain: string;
Domain: string;
/**
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
*
* @generated from protobuf field: string Entity = 4 [json_name = "Entity"];
*/
entity: string;
Entity: string;
/**
* Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"
*
* @generated from protobuf field: string Parent = 5 [json_name = "Parent"];
*/
parent: string;
Parent: string;
/**
* @generated from protobuf field: string Name = 6 [json_name = "Name"];
*/
name: string;
Name: string;
/**
* Type attached to the metadata, can be anything such as string, bool, enum...
*
* @generated from protobuf field: string Type = 7 [json_name = "Type"];
*/
type: string;
Type: string;
/**
* @generated from protobuf field: bool IsMandatory = 8 [json_name = "IsMandatory"];
*/
isMandatory: boolean;
IsMandatory: boolean;
/**
* @generated from protobuf field: string RegularExpression = 10 [json_name = "RegularExpression"];
*/
regularExpression: string;
RegularExpression: string;
/**
* @generated from protobuf field: api.MetadataType Typology = 11 [json_name = "Typology"];
*/
typology: MetadataType;
Typology: MetadataType;
/**
* Customizable enumeration
*
* @generated from protobuf field: repeated string Enumeration = 12 [json_name = "Enumeration"];
*/
enumeration: string[];
Enumeration: string[];
/**
* @generated from protobuf field: api.MetadataStatusStruct Status = 13 [json_name = "Status"];
*/
status?: MetadataStatusStruct; // Status field is not accessible from APIs
Status?: MetadataStatusStruct; // Status field is not accessible from APIs
/**
* @generated from protobuf field: api.MetadataDisplayType ShowOnCreation = 14 [json_name = "ShowOnCreation"];
*/
showOnCreation: MetadataDisplayType;
ShowOnCreation: MetadataDisplayType;
}
/**
*
@@ -106,17 +106,17 @@ export interface MetadataStatus {
/**
* @generated from protobuf field: api.MetadataStatusCode StatusCode = 1 [json_name = "StatusCode"];
*/
statusCode: MetadataStatusCode;
StatusCode: MetadataStatusCode;
/**
* @generated from protobuf field: string Date = 2 [json_name = "Date"];
*/
date: string;
Date: string;
/**
* Status effective date. Set by the event's RefDate that triggered the status change.
*
* @generated from protobuf field: api.DateTime ActualDate = 3 [json_name = "ActualDate"];
*/
actualDate?: DateTime;
ActualDate?: DateTime;
}
/**
*
@@ -128,15 +128,15 @@ export interface MetadataStatusStruct {
/**
* @generated from protobuf field: api.MetadataStatus Current = 1 [json_name = "Current"];
*/
current?: MetadataStatus; // Current status of the Metadata entity
Current?: MetadataStatus; // Current status of the Metadata entity
/**
* @generated from protobuf field: repeated api.MetadataStatus History = 2 [json_name = "History"];
*/
history: MetadataStatus[]; // List of all status history of the Metadata entity
History: MetadataStatus[]; // List of all status history of the Metadata entity
/**
* @generated from protobuf field: string CreationDate = 3 [json_name = "CreationDate"];
*/
creationDate: string;
CreationDate: string;
}
/**
* @generated from protobuf message api.MetadataTriplet
@@ -145,15 +145,15 @@ export interface MetadataTriplet {
/**
* @generated from protobuf field: api.Metadata Current = 1 [json_name = "Current"];
*/
current?: Metadata;
Current?: Metadata;
/**
* @generated from protobuf field: api.Metadata Previous = 2 [json_name = "Previous"];
*/
previous?: Metadata;
Previous?: Metadata;
/**
* @generated from protobuf field: api.Metadata LastEvent = 3 [json_name = "LastEvent"];
*/
lastEvent?: Metadata;
LastEvent?: Metadata;
}
/**
* @generated from protobuf message api.MetadatasToApply
@@ -162,11 +162,11 @@ export interface MetadatasToApply {
/**
* @generated from protobuf field: string Parent = 1 [json_name = "Parent"];
*/
parent: string;
Parent: string;
/**
* @generated from protobuf field: api.Metadata Metadata = 2 [json_name = "Metadata"];
*/
metadata?: Metadata;
Metadata?: Metadata;
}
// _common_
@@ -240,9 +240,9 @@ export enum MetadataStatusCode {
class Metadata$Type extends MessageType<Metadata> {
constructor() {
super("api.Metadata", [
{ no: 1, name: "LastEventHeader", kind: "message", jsonName: "LastEventHeader", T: () => EventHeader },
{ no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID },
{ no: 3, name: "Payload", kind: "message", jsonName: "Payload", T: () => MetadataPayload }
{ no: 1, name: "LastEventHeader", kind: "message", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MetadataPayload }
]);
}
create(value?: PartialMessage<Metadata>): Metadata {
@@ -257,13 +257,13 @@ class Metadata$Type extends MessageType<Metadata> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];*/ 1:
message.lastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.lastEventHeader);
message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader);
break;
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD);
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.MetadataPayload Payload = 3 [json_name = "Payload"];*/ 3:
message.payload = MetadataPayload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
message.Payload = MetadataPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
@@ -278,14 +278,14 @@ class Metadata$Type extends MessageType<Metadata> {
}
internalBinaryWrite(message: Metadata, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"]; */
if (message.lastEventHeader)
EventHeader.internalBinaryWrite(message.lastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.LastEventHeader)
EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2 [json_name = "ID"]; */
if (message.iD)
EntityID.internalBinaryWrite(message.iD, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.MetadataPayload Payload = 3 [json_name = "Payload"]; */
if (message.payload)
MetadataPayload.internalBinaryWrite(message.payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
if (message.Payload)
MetadataPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -300,33 +300,33 @@ export const Metadata = new Metadata$Type();
class MetadataPayload$Type extends MessageType<MetadataPayload> {
constructor() {
super("api.MetadataPayload", [
{ no: 2, name: "IsSegmentationKey", kind: "scalar", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, 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" } } },
{ no: 3, name: "Domain", kind: "scalar", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
{ no: 4, name: "Entity", kind: "scalar", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } },
{ no: 5, name: "Parent", kind: "scalar", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } },
{ no: 6, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "Type", kind: "scalar", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, can be anything such as string, bool, enum..." } } },
{ no: 8, name: "IsMandatory", kind: "scalar", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ },
{ no: 10, name: "RegularExpression", kind: "scalar", jsonName: "RegularExpression", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "Typology", kind: "enum", jsonName: "Typology", T: () => ["api.MetadataType", MetadataType] },
{ no: 12, name: "Enumeration", kind: "scalar", jsonName: "Enumeration", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Customizable enumeration" } } },
{ no: 13, name: "Status", kind: "message", jsonName: "Status", T: () => MetadataStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 14, name: "ShowOnCreation", kind: "enum", jsonName: "ShowOnCreation", T: () => ["api.MetadataDisplayType", MetadataDisplayType] }
{ no: 2, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, 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" } } },
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
{ no: 4, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } },
{ no: 5, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } },
{ no: 6, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, can be anything such as string, bool, enum..." } } },
{ no: 8, name: "IsMandatory", kind: "scalar", localName: "IsMandatory", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ },
{ no: 10, name: "RegularExpression", kind: "scalar", localName: "RegularExpression", jsonName: "RegularExpression", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.MetadataType", MetadataType] },
{ no: 12, name: "Enumeration", kind: "scalar", localName: "Enumeration", jsonName: "Enumeration", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Customizable enumeration" } } },
{ no: 13, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => MetadataStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 14, name: "ShowOnCreation", kind: "enum", localName: "ShowOnCreation", jsonName: "ShowOnCreation", T: () => ["api.MetadataDisplayType", MetadataDisplayType] }
]);
}
create(value?: PartialMessage<MetadataPayload>): MetadataPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.isSegmentationKey = false;
message.domain = "";
message.entity = "";
message.parent = "";
message.name = "";
message.type = "";
message.isMandatory = false;
message.regularExpression = "";
message.typology = 0;
message.enumeration = [];
message.showOnCreation = 0;
message.IsSegmentationKey = false;
message.Domain = "";
message.Entity = "";
message.Parent = "";
message.Name = "";
message.Type = "";
message.IsMandatory = false;
message.RegularExpression = "";
message.Typology = 0;
message.Enumeration = [];
message.ShowOnCreation = 0;
if (value !== undefined)
reflectionMergePartial<MetadataPayload>(this, message, value);
return message;
@@ -337,40 +337,40 @@ class MetadataPayload$Type extends MessageType<MetadataPayload> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* bool IsSegmentationKey = 2 [json_name = "IsSegmentationKey"];*/ 2:
message.isSegmentationKey = reader.bool();
message.IsSegmentationKey = reader.bool();
break;
case /* string Domain = 3 [json_name = "Domain"];*/ 3:
message.domain = reader.string();
message.Domain = reader.string();
break;
case /* string Entity = 4 [json_name = "Entity"];*/ 4:
message.entity = reader.string();
message.Entity = reader.string();
break;
case /* string Parent = 5 [json_name = "Parent"];*/ 5:
message.parent = reader.string();
message.Parent = reader.string();
break;
case /* string Name = 6 [json_name = "Name"];*/ 6:
message.name = reader.string();
message.Name = reader.string();
break;
case /* string Type = 7 [json_name = "Type"];*/ 7:
message.type = reader.string();
message.Type = reader.string();
break;
case /* bool IsMandatory = 8 [json_name = "IsMandatory"];*/ 8:
message.isMandatory = reader.bool();
message.IsMandatory = reader.bool();
break;
case /* string RegularExpression = 10 [json_name = "RegularExpression"];*/ 10:
message.regularExpression = reader.string();
message.RegularExpression = reader.string();
break;
case /* api.MetadataType Typology = 11 [json_name = "Typology"];*/ 11:
message.typology = reader.int32();
message.Typology = reader.int32();
break;
case /* repeated string Enumeration = 12 [json_name = "Enumeration"];*/ 12:
message.enumeration.push(reader.string());
message.Enumeration.push(reader.string());
break;
case /* api.MetadataStatusStruct Status = 13 [json_name = "Status"];*/ 13:
message.status = MetadataStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.status);
message.Status = MetadataStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
break;
case /* api.MetadataDisplayType ShowOnCreation = 14 [json_name = "ShowOnCreation"];*/ 14:
message.showOnCreation = reader.int32();
message.ShowOnCreation = reader.int32();
break;
default:
let u = options.readUnknownField;
@@ -385,41 +385,41 @@ class MetadataPayload$Type extends MessageType<MetadataPayload> {
}
internalBinaryWrite(message: MetadataPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* bool IsSegmentationKey = 2 [json_name = "IsSegmentationKey"]; */
if (message.isSegmentationKey !== false)
writer.tag(2, WireType.Varint).bool(message.isSegmentationKey);
if (message.IsSegmentationKey !== false)
writer.tag(2, WireType.Varint).bool(message.IsSegmentationKey);
/* string Domain = 3 [json_name = "Domain"]; */
if (message.domain !== "")
writer.tag(3, WireType.LengthDelimited).string(message.domain);
if (message.Domain !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Domain);
/* string Entity = 4 [json_name = "Entity"]; */
if (message.entity !== "")
writer.tag(4, WireType.LengthDelimited).string(message.entity);
if (message.Entity !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Entity);
/* string Parent = 5 [json_name = "Parent"]; */
if (message.parent !== "")
writer.tag(5, WireType.LengthDelimited).string(message.parent);
if (message.Parent !== "")
writer.tag(5, WireType.LengthDelimited).string(message.Parent);
/* string Name = 6 [json_name = "Name"]; */
if (message.name !== "")
writer.tag(6, WireType.LengthDelimited).string(message.name);
if (message.Name !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Name);
/* string Type = 7 [json_name = "Type"]; */
if (message.type !== "")
writer.tag(7, WireType.LengthDelimited).string(message.type);
if (message.Type !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Type);
/* bool IsMandatory = 8 [json_name = "IsMandatory"]; */
if (message.isMandatory !== false)
writer.tag(8, WireType.Varint).bool(message.isMandatory);
if (message.IsMandatory !== false)
writer.tag(8, WireType.Varint).bool(message.IsMandatory);
/* string RegularExpression = 10 [json_name = "RegularExpression"]; */
if (message.regularExpression !== "")
writer.tag(10, WireType.LengthDelimited).string(message.regularExpression);
if (message.RegularExpression !== "")
writer.tag(10, WireType.LengthDelimited).string(message.RegularExpression);
/* api.MetadataType Typology = 11 [json_name = "Typology"]; */
if (message.typology !== 0)
writer.tag(11, WireType.Varint).int32(message.typology);
if (message.Typology !== 0)
writer.tag(11, WireType.Varint).int32(message.Typology);
/* repeated string Enumeration = 12 [json_name = "Enumeration"]; */
for (let i = 0; i < message.enumeration.length; i++)
writer.tag(12, WireType.LengthDelimited).string(message.enumeration[i]);
for (let i = 0; i < message.Enumeration.length; i++)
writer.tag(12, WireType.LengthDelimited).string(message.Enumeration[i]);
/* api.MetadataStatusStruct Status = 13 [json_name = "Status"]; */
if (message.status)
MetadataStatusStruct.internalBinaryWrite(message.status, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
if (message.Status)
MetadataStatusStruct.internalBinaryWrite(message.Status, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
/* api.MetadataDisplayType ShowOnCreation = 14 [json_name = "ShowOnCreation"]; */
if (message.showOnCreation !== 0)
writer.tag(14, WireType.Varint).int32(message.showOnCreation);
if (message.ShowOnCreation !== 0)
writer.tag(14, WireType.Varint).int32(message.ShowOnCreation);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -434,15 +434,15 @@ export const MetadataPayload = new MetadataPayload$Type();
class MetadataStatus$Type extends MessageType<MetadataStatus> {
constructor() {
super("api.MetadataStatus", [
{ no: 1, name: "StatusCode", kind: "enum", jsonName: "StatusCode", T: () => ["api.MetadataStatusCode", MetadataStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 2, name: "Date", kind: "scalar", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 3, name: "ActualDate", kind: "message", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.MetadataStatusCode", MetadataStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
]);
}
create(value?: PartialMessage<MetadataStatus>): MetadataStatus {
const message = globalThis.Object.create((this.messagePrototype!));
message.statusCode = 0;
message.date = "";
message.StatusCode = 0;
message.Date = "";
if (value !== undefined)
reflectionMergePartial<MetadataStatus>(this, message, value);
return message;
@@ -453,13 +453,13 @@ class MetadataStatus$Type extends MessageType<MetadataStatus> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.MetadataStatusCode StatusCode = 1 [json_name = "StatusCode"];*/ 1:
message.statusCode = reader.int32();
message.StatusCode = reader.int32();
break;
case /* string Date = 2 [json_name = "Date"];*/ 2:
message.date = reader.string();
message.Date = reader.string();
break;
case /* api.DateTime ActualDate = 3 [json_name = "ActualDate"];*/ 3:
message.actualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.actualDate);
message.ActualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualDate);
break;
default:
let u = options.readUnknownField;
@@ -474,14 +474,14 @@ class MetadataStatus$Type extends MessageType<MetadataStatus> {
}
internalBinaryWrite(message: MetadataStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.MetadataStatusCode StatusCode = 1 [json_name = "StatusCode"]; */
if (message.statusCode !== 0)
writer.tag(1, WireType.Varint).int32(message.statusCode);
if (message.StatusCode !== 0)
writer.tag(1, WireType.Varint).int32(message.StatusCode);
/* string Date = 2 [json_name = "Date"]; */
if (message.date !== "")
writer.tag(2, WireType.LengthDelimited).string(message.date);
if (message.Date !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Date);
/* api.DateTime ActualDate = 3 [json_name = "ActualDate"]; */
if (message.actualDate)
DateTime.internalBinaryWrite(message.actualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
if (message.ActualDate)
DateTime.internalBinaryWrite(message.ActualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -496,15 +496,15 @@ export const MetadataStatus = new MetadataStatus$Type();
class MetadataStatusStruct$Type extends MessageType<MetadataStatusStruct> {
constructor() {
super("api.MetadataStatusStruct", [
{ no: 1, name: "Current", kind: "message", jsonName: "Current", T: () => MetadataStatus },
{ no: 2, name: "History", kind: "message", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadataStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
{ no: 3, name: "CreationDate", kind: "scalar", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => MetadataStatus },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => MetadataStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
]);
}
create(value?: PartialMessage<MetadataStatusStruct>): MetadataStatusStruct {
const message = globalThis.Object.create((this.messagePrototype!));
message.history = [];
message.creationDate = "";
message.History = [];
message.CreationDate = "";
if (value !== undefined)
reflectionMergePartial<MetadataStatusStruct>(this, message, value);
return message;
@@ -515,13 +515,13 @@ class MetadataStatusStruct$Type extends MessageType<MetadataStatusStruct> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.MetadataStatus Current = 1 [json_name = "Current"];*/ 1:
message.current = MetadataStatus.internalBinaryRead(reader, reader.uint32(), options, message.current);
message.Current = MetadataStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* repeated api.MetadataStatus History = 2 [json_name = "History"];*/ 2:
message.history.push(MetadataStatus.internalBinaryRead(reader, reader.uint32(), options));
message.History.push(MetadataStatus.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string CreationDate = 3 [json_name = "CreationDate"];*/ 3:
message.creationDate = reader.string();
message.CreationDate = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -536,14 +536,14 @@ class MetadataStatusStruct$Type extends MessageType<MetadataStatusStruct> {
}
internalBinaryWrite(message: MetadataStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.MetadataStatus Current = 1 [json_name = "Current"]; */
if (message.current)
MetadataStatus.internalBinaryWrite(message.current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Current)
MetadataStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.MetadataStatus History = 2 [json_name = "History"]; */
for (let i = 0; i < message.history.length; i++)
MetadataStatus.internalBinaryWrite(message.history[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.History.length; i++)
MetadataStatus.internalBinaryWrite(message.History[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string CreationDate = 3 [json_name = "CreationDate"]; */
if (message.creationDate !== "")
writer.tag(3, WireType.LengthDelimited).string(message.creationDate);
if (message.CreationDate !== "")
writer.tag(3, WireType.LengthDelimited).string(message.CreationDate);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -558,9 +558,9 @@ export const MetadataStatusStruct = new MetadataStatusStruct$Type();
class MetadataTriplet$Type extends MessageType<MetadataTriplet> {
constructor() {
super("api.MetadataTriplet", [
{ no: 1, name: "Current", kind: "message", jsonName: "Current", T: () => Metadata },
{ no: 2, name: "Previous", kind: "message", jsonName: "Previous", T: () => Metadata },
{ no: 3, name: "LastEvent", kind: "message", jsonName: "LastEvent", T: () => Metadata }
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => Metadata },
{ no: 2, name: "Previous", kind: "message", localName: "Previous", jsonName: "Previous", T: () => Metadata },
{ no: 3, name: "LastEvent", kind: "message", localName: "LastEvent", jsonName: "LastEvent", T: () => Metadata }
]);
}
create(value?: PartialMessage<MetadataTriplet>): MetadataTriplet {
@@ -575,13 +575,13 @@ class MetadataTriplet$Type extends MessageType<MetadataTriplet> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Metadata Current = 1 [json_name = "Current"];*/ 1:
message.current = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.current);
message.Current = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* api.Metadata Previous = 2 [json_name = "Previous"];*/ 2:
message.previous = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.previous);
message.Previous = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.Previous);
break;
case /* api.Metadata LastEvent = 3 [json_name = "LastEvent"];*/ 3:
message.lastEvent = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.lastEvent);
message.LastEvent = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent);
break;
default:
let u = options.readUnknownField;
@@ -596,14 +596,14 @@ class MetadataTriplet$Type extends MessageType<MetadataTriplet> {
}
internalBinaryWrite(message: MetadataTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Metadata Current = 1 [json_name = "Current"]; */
if (message.current)
Metadata.internalBinaryWrite(message.current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.Current)
Metadata.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.Metadata Previous = 2 [json_name = "Previous"]; */
if (message.previous)
Metadata.internalBinaryWrite(message.previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
if (message.Previous)
Metadata.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.Metadata LastEvent = 3 [json_name = "LastEvent"]; */
if (message.lastEvent)
Metadata.internalBinaryWrite(message.lastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
if (message.LastEvent)
Metadata.internalBinaryWrite(message.LastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -618,13 +618,13 @@ export const MetadataTriplet = new MetadataTriplet$Type();
class MetadatasToApply$Type extends MessageType<MetadatasToApply> {
constructor() {
super("api.MetadatasToApply", [
{ no: 1, name: "Parent", kind: "scalar", jsonName: "Parent", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Metadata", kind: "message", jsonName: "Metadata", T: () => Metadata }
{ no: 1, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => Metadata }
]);
}
create(value?: PartialMessage<MetadatasToApply>): MetadatasToApply {
const message = globalThis.Object.create((this.messagePrototype!));
message.parent = "";
message.Parent = "";
if (value !== undefined)
reflectionMergePartial<MetadatasToApply>(this, message, value);
return message;
@@ -635,10 +635,10 @@ class MetadatasToApply$Type extends MessageType<MetadatasToApply> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Parent = 1 [json_name = "Parent"];*/ 1:
message.parent = reader.string();
message.Parent = reader.string();
break;
case /* api.Metadata Metadata = 2 [json_name = "Metadata"];*/ 2:
message.metadata = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
message.Metadata = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.Metadata);
break;
default:
let u = options.readUnknownField;
@@ -653,11 +653,11 @@ class MetadatasToApply$Type extends MessageType<MetadatasToApply> {
}
internalBinaryWrite(message: MetadatasToApply, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Parent = 1 [json_name = "Parent"]; */
if (message.parent !== "")
writer.tag(1, WireType.LengthDelimited).string(message.parent);
if (message.Parent !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Parent);
/* api.Metadata Metadata = 2 [json_name = "Metadata"]; */
if (message.metadata)
Metadata.internalBinaryWrite(message.metadata, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
if (message.Metadata)
Metadata.internalBinaryWrite(message.Metadata, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);