Latest generation

This commit is contained in:
ci core model
2026-06-18 06:59:27 +00:00
parent 622d5262d2
commit 5c2bd89f12
4 changed files with 315 additions and 24 deletions

View File

@@ -775,6 +775,60 @@ export interface OrderCompletedResponse {
*/
ID?: EntityID;
}
// OrderAnticipatedClosed
/**
* @generated from protobuf message api.OrderAnticipatedClosedPayload
*/
export interface OrderAnticipatedClosedPayload {
}
/**
* @generated from protobuf message api.OrderAnticipatedClosedEvent
*/
export interface OrderAnticipatedClosedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.OrderAnticipatedClosedPayload Payload = 3
*/
Payload?: OrderAnticipatedClosedPayload;
}
/**
* @generated from protobuf message api.OrderAnticipatedClosedRequest
*/
export interface OrderAnticipatedClosedRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.OrderAnticipatedClosedPayload Payload = 3
*/
Payload?: OrderAnticipatedClosedPayload;
}
/**
* @generated from protobuf message api.OrderAnticipatedClosedResponse
*/
export interface OrderAnticipatedClosedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// ExecutionflowUpdated
// - Inform the order about the Executionflow instance status.
@@ -4443,6 +4497,217 @@ class OrderCompletedResponse$Type extends MessageType<OrderCompletedResponse> {
*/
export const OrderCompletedResponse = new OrderCompletedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderAnticipatedClosedPayload$Type extends MessageType<OrderAnticipatedClosedPayload> {
constructor() {
super("api.OrderAnticipatedClosedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AnticipatedClosed" });
}
create(value?: PartialMessage<OrderAnticipatedClosedPayload>): OrderAnticipatedClosedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderAnticipatedClosedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAnticipatedClosedPayload): OrderAnticipatedClosedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrderAnticipatedClosedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrderAnticipatedClosedPayload
*/
export const OrderAnticipatedClosedPayload = new OrderAnticipatedClosedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderAnticipatedClosedEvent$Type extends MessageType<OrderAnticipatedClosedEvent> {
constructor() {
super("api.OrderAnticipatedClosedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAnticipatedClosedPayload, options: { "n1validate.rules": { message: { required: true } } } }
], { "api.messageType": "Event", "api.inputEvent": "AnticipatedClosed", "api.preAggMethods": "closeAnticipated" });
}
create(value?: PartialMessage<OrderAnticipatedClosedEvent>): OrderAnticipatedClosedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderAnticipatedClosedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAnticipatedClosedEvent): OrderAnticipatedClosedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.OrderAnticipatedClosedPayload Payload */ 3:
message.Payload = OrderAnticipatedClosedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrderAnticipatedClosedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
if (message.Header)
EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.OrderAnticipatedClosedPayload Payload = 3; */
if (message.Payload)
OrderAnticipatedClosedPayload.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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrderAnticipatedClosedEvent
*/
export const OrderAnticipatedClosedEvent = new OrderAnticipatedClosedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderAnticipatedClosedRequest$Type extends MessageType<OrderAnticipatedClosedRequest> {
constructor() {
super("api.OrderAnticipatedClosedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAnticipatedClosedPayload, options: { "n1validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AnticipatedClosed" });
}
create(value?: PartialMessage<OrderAnticipatedClosedRequest>): OrderAnticipatedClosedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderAnticipatedClosedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAnticipatedClosedRequest): OrderAnticipatedClosedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.OrderAnticipatedClosedPayload Payload */ 3:
message.Payload = OrderAnticipatedClosedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrderAnticipatedClosedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.OrderAnticipatedClosedPayload Payload = 3; */
if (message.Payload)
OrderAnticipatedClosedPayload.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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrderAnticipatedClosedRequest
*/
export const OrderAnticipatedClosedRequest = new OrderAnticipatedClosedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderAnticipatedClosedResponse$Type extends MessageType<OrderAnticipatedClosedResponse> {
constructor() {
super("api.OrderAnticipatedClosedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "AnticipatedClosed" });
}
create(value?: PartialMessage<OrderAnticipatedClosedResponse>): OrderAnticipatedClosedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrderAnticipatedClosedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAnticipatedClosedResponse): OrderAnticipatedClosedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrderAnticipatedClosedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrderAnticipatedClosedResponse
*/
export const OrderAnticipatedClosedResponse = new OrderAnticipatedClosedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrderExecutionflowUpdatedPayload$Type extends MessageType<OrderExecutionflowUpdatedPayload> {
constructor() {
super("api.OrderExecutionflowUpdatedPayload", [
@@ -9284,6 +9549,7 @@ export const OrderInputAPI = new ServiceType("api.OrderInputAPI", [
{ name: "RequestedDeliveryDateDefined", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "A requested delivery date has been defined on an Order. This is typically called from an ERP." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderRequestedDeliveryDateDefinedRequest, O: OrderRequestedDeliveryDateDefinedResponse },
{ name: "ExecutionflowETAUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "A ETA has been updated on an Executionflow attached to this order. This is internal call." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderExecutionflowETAUpdatedRequest, O: OrderExecutionflowETAUpdatedResponse },
{ name: "Completed", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An Order has been completed. This is typically called from an ERP." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderCompletedRequest, O: OrderCompletedResponse },
{ name: "AnticipatedClosed", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An anticipated Order has been closed." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderAnticipatedClosedRequest, O: OrderAnticipatedClosedResponse },
{ name: "ExecutionflowUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An executionflow status has been reported to an Order. This is called internally." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderExecutionflowUpdatedRequest, O: OrderExecutionflowUpdatedResponse },
{ name: "MetaDataUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Some metadata have been updated on an Order. This is typically called from OMS or ERP." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderMetaDataUpdatedRequest, O: OrderMetaDataUpdatedResponse },
{ name: "CarrierUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "The carrier and/or carrier service has been updated for the Order. This is typically called from OMS or ERP." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderCarrierUpdatedRequest, O: OrderCarrierUpdatedResponse },