Latest generation

This commit is contained in:
ci core model
2026-05-28 08:13:32 +00:00
parent b5ebc4997e
commit 5dc7b22fdf
18 changed files with 1763 additions and 285 deletions

View File

@@ -15,6 +15,7 @@ import { ActorPayload } from "./actor";
import { ItemPayload } from "./item";
import { EntityID } from "./shared";
import { EventHeader } from "./shared";
import { AppointmentSummary } from "./shared";
import { ETAbyExecutionflow } from "./tradeShared";
import { ClaimSummary } from "./shared";
import { AttachmentSummary } from "./shared";
@@ -145,6 +146,16 @@ export interface OrderPayload {
* @generated from protobuf field: bool Anticipated = 24
*/
Anticipated: boolean;
/**
* @generated from protobuf field: repeated api.AppointmentSummary Appointments = 25
*/
Appointments: AppointmentSummary[];
/**
* Appointment removed from the order
*
* @generated from protobuf field: repeated api.AppointmentSummary RemovedAppointments = 26
*/
RemovedAppointments: AppointmentSummary[];
}
/**
* Order entity
@@ -271,7 +282,9 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
{ no: 21, 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" } } },
{ no: 22, name: "ExecutionflowETAs", kind: "message", localName: "ExecutionflowETAs", jsonName: "ExecutionflowETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyExecutionflow, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for each executionflow attached to the order" }, "api.aggKey": "ExecutionflowID", "api.aggSkip": "ExecutionflowETAUpdated" } },
{ no: 23, name: "OrderETA", kind: "message", localName: "OrderETA", jsonName: "OrderETA", T: () => ETA, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for the order, computed from ETA of the execitionFlows" }, "api.aggSkip": "ETAUpdated" } },
{ no: 24, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } }
{ no: 24, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } },
{ no: 25, name: "Appointments", kind: "message", localName: "Appointments", jsonName: "Appointments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of appointments attached to the order" }, "api.aggSkip": "AppointmentUpdated", "api.indexationSkip": true } },
{ no: 26, name: "RemovedAppointments", kind: "message", localName: "RemovedAppointments", jsonName: "RemovedAppointments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AppointmentUpdated" } }
]);
}
create(value?: PartialMessage<OrderPayload>): OrderPayload {
@@ -287,6 +300,8 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
message.ClaimNumber = 0;
message.ExecutionflowETAs = [];
message.Anticipated = false;
message.Appointments = [];
message.RemovedAppointments = [];
if (value !== undefined)
reflectionMergePartial<OrderPayload>(this, message, value);
return message;
@@ -365,6 +380,12 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
case /* bool Anticipated */ 24:
message.Anticipated = reader.bool();
break;
case /* repeated api.AppointmentSummary Appointments */ 25:
message.Appointments.push(AppointmentSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.AppointmentSummary RemovedAppointments */ 26:
message.RemovedAppointments.push(AppointmentSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -446,6 +467,12 @@ class OrderPayload$Type extends MessageType<OrderPayload> {
/* bool Anticipated = 24; */
if (message.Anticipated !== false)
writer.tag(24, WireType.Varint).bool(message.Anticipated);
/* repeated api.AppointmentSummary Appointments = 25; */
for (let i = 0; i < message.Appointments.length; i++)
AppointmentSummary.internalBinaryWrite(message.Appointments[i], writer.tag(25, WireType.LengthDelimited).fork(), options).join();
/* repeated api.AppointmentSummary RemovedAppointments = 26; */
for (let i = 0; i < message.RemovedAppointments.length; i++)
AppointmentSummary.internalBinaryWrite(message.RemovedAppointments[i], writer.tag(26, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);