From 4ae52d02af63558c7511bf8ac8e48d5108f3dae5 Mon Sep 17 00:00:00 2001 From: ci core model Date: Mon, 15 Jun 2026 08:11:22 +0000 Subject: [PATCH] Latest generation --- order.ts | 14 ++- orderInput.client.ts | 13 +++ orderInput.ts | 270 ++++++++++++++++++++++++++++++++++++++++++- package.json | 2 +- 4 files changed, 296 insertions(+), 3 deletions(-) diff --git a/order.ts b/order.ts index 851366d..a5e7f82 100644 --- a/order.ts +++ b/order.ts @@ -156,6 +156,10 @@ export interface OrderPayload { * @generated from protobuf field: repeated api.AppointmentSummary RemovedAppointments = 26 */ RemovedAppointments: AppointmentSummary[]; + /** + * @generated from protobuf field: bool AppointmentBookingDisabled = 27 + */ + AppointmentBookingDisabled: boolean; } /** * Order entity @@ -284,7 +288,8 @@ class OrderPayload$Type extends MessageType { { 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: 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" } }, - { 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", "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", "api.indexationSkip": true } }, + { no: 27, name: "AppointmentBookingDisabled", kind: "scalar", localName: "AppointmentBookingDisabled", jsonName: "AppointmentBookingDisabled", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "If true, appointment booking is disabled for this order" } } } ]); } create(value?: PartialMessage): OrderPayload { @@ -302,6 +307,7 @@ class OrderPayload$Type extends MessageType { message.Anticipated = false; message.Appointments = []; message.RemovedAppointments = []; + message.AppointmentBookingDisabled = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -386,6 +392,9 @@ class OrderPayload$Type extends MessageType { case /* repeated api.AppointmentSummary RemovedAppointments */ 26: message.RemovedAppointments.push(AppointmentSummary.internalBinaryRead(reader, reader.uint32(), options)); break; + case /* bool AppointmentBookingDisabled */ 27: + message.AppointmentBookingDisabled = reader.bool(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -473,6 +482,9 @@ class OrderPayload$Type extends MessageType { /* 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(); + /* bool AppointmentBookingDisabled = 27; */ + if (message.AppointmentBookingDisabled !== false) + writer.tag(27, WireType.Varint).bool(message.AppointmentBookingDisabled); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/orderInput.client.ts b/orderInput.client.ts index 1ddd87f..942b33e 100644 --- a/orderInput.client.ts +++ b/orderInput.client.ts @@ -4,6 +4,8 @@ import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { OrderInputAPI } from "./orderInput"; +import type { OrderAppointmentBookingDisabledResponse } from "./orderInput"; +import type { OrderAppointmentBookingDisabledRequest } from "./orderInput"; import type { OrderAppointmentUpdatedResponse } from "./orderInput"; import type { OrderAppointmentUpdatedRequest } from "./orderInput"; import type { OrderReceiptCompletedResponse } from "./orderInput"; @@ -200,6 +202,10 @@ export interface IOrderInputAPIClient { * @generated from protobuf rpc: AppointmentUpdated */ appointmentUpdated(input: OrderAppointmentUpdatedRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: AppointmentBookingDisabled + */ + appointmentBookingDisabled(input: OrderAppointmentBookingDisabledRequest, options?: RpcOptions): UnaryCall; } /** * @@ -430,4 +436,11 @@ export class OrderInputAPIClient implements IOrderInputAPIClient, ServiceInfo { const method = this.methods[30], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: AppointmentBookingDisabled + */ + appointmentBookingDisabled(input: OrderAppointmentBookingDisabledRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[31], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } } diff --git a/orderInput.ts b/orderInput.ts index b09086b..1bfa8c7 100644 --- a/orderInput.ts +++ b/orderInput.ts @@ -2078,6 +2078,62 @@ export interface OrderAppointmentUpdatedResponse { */ ID?: EntityID; } +// +// AppointmentBookingDisabled +// - Inform the order that booking appointment has been disabled. + +/** + * @generated from protobuf message api.OrderAppointmentBookingDisabledPayload + */ +export interface OrderAppointmentBookingDisabledPayload { +} +/** + * @generated from protobuf message api.OrderAppointmentBookingDisabledEvent + */ +export interface OrderAppointmentBookingDisabledEvent { + /** + * @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.OrderAppointmentBookingDisabledPayload Payload = 3 + */ + Payload?: OrderAppointmentBookingDisabledPayload; +} +/** + * @generated from protobuf message api.OrderAppointmentBookingDisabledRequest + */ +export interface OrderAppointmentBookingDisabledRequest { + /** + * @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.OrderAppointmentBookingDisabledPayload Payload = 3 + */ + Payload?: OrderAppointmentBookingDisabledPayload; +} +/** + * @generated from protobuf message api.OrderAppointmentBookingDisabledResponse + */ +export interface OrderAppointmentBookingDisabledResponse { + /** + * @generated from protobuf field: api.ResponseHeader Header = 1 + */ + Header?: ResponseHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; +} // @generated message type with reflection information, may provide speed optimized methods class OrderCreatedPayload$Type extends MessageType { constructor() { @@ -9003,6 +9059,217 @@ class OrderAppointmentUpdatedResponse$Type extends MessageType { + constructor() { + super("api.OrderAppointmentBookingDisabledPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AppointmentBookingDisabled" }); + } + create(value?: PartialMessage): OrderAppointmentBookingDisabledPayload { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledPayload): OrderAppointmentBookingDisabledPayload { + 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: OrderAppointmentBookingDisabledPayload, 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.OrderAppointmentBookingDisabledPayload + */ +export const OrderAppointmentBookingDisabledPayload = new OrderAppointmentBookingDisabledPayload$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OrderAppointmentBookingDisabledEvent$Type extends MessageType { + constructor() { + super("api.OrderAppointmentBookingDisabledEvent", [ + { 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: () => OrderAppointmentBookingDisabledPayload, options: { "n1validate.rules": { message: { required: true } } } } + ], { "api.messageType": "Event", "api.inputEvent": "AppointmentBookingDisabled", "api.postAggMethods": "disableAppointmentBooking" }); + } + create(value?: PartialMessage): OrderAppointmentBookingDisabledEvent { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledEvent): OrderAppointmentBookingDisabledEvent { + 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.OrderAppointmentBookingDisabledPayload Payload */ 3: + message.Payload = OrderAppointmentBookingDisabledPayload.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: OrderAppointmentBookingDisabledEvent, 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.OrderAppointmentBookingDisabledPayload Payload = 3; */ + if (message.Payload) + OrderAppointmentBookingDisabledPayload.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.OrderAppointmentBookingDisabledEvent + */ +export const OrderAppointmentBookingDisabledEvent = new OrderAppointmentBookingDisabledEvent$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OrderAppointmentBookingDisabledRequest$Type extends MessageType { + constructor() { + super("api.OrderAppointmentBookingDisabledRequest", [ + { 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: () => OrderAppointmentBookingDisabledPayload, options: { "n1validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AppointmentBookingDisabled" }); + } + create(value?: PartialMessage): OrderAppointmentBookingDisabledRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledRequest): OrderAppointmentBookingDisabledRequest { + 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.OrderAppointmentBookingDisabledPayload Payload */ 3: + message.Payload = OrderAppointmentBookingDisabledPayload.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: OrderAppointmentBookingDisabledRequest, 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.OrderAppointmentBookingDisabledPayload Payload = 3; */ + if (message.Payload) + OrderAppointmentBookingDisabledPayload.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.OrderAppointmentBookingDisabledRequest + */ +export const OrderAppointmentBookingDisabledRequest = new OrderAppointmentBookingDisabledRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class OrderAppointmentBookingDisabledResponse$Type extends MessageType { + constructor() { + super("api.OrderAppointmentBookingDisabledResponse", [ + { 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": "AppointmentBookingDisabled" }); + } + create(value?: PartialMessage): OrderAppointmentBookingDisabledResponse { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderAppointmentBookingDisabledResponse): OrderAppointmentBookingDisabledResponse { + 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: OrderAppointmentBookingDisabledResponse, 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.OrderAppointmentBookingDisabledResponse + */ +export const OrderAppointmentBookingDisabledResponse = new OrderAppointmentBookingDisabledResponse$Type(); /** * @generated ServiceType for protobuf service api.OrderInputAPI */ @@ -9037,5 +9304,6 @@ export const OrderInputAPI = new ServiceType("api.OrderInputAPI", [ { name: "ReceiptExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Receipt is expected on the Order. This is typically called from a WMS. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderReceiptExpectedRequest, O: OrderReceiptExpectedResponse }, { name: "ReceiptStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Receipt has started on the Order. This is typically called from a WMS. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderReceiptStartedRequest, O: OrderReceiptStartedResponse }, { name: "ReceiptCompleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Receipt is completed on the Order. This is typically called from a WMS. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderReceiptCompletedRequest, O: OrderReceiptCompletedResponse }, - { name: "AppointmentUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An appointment is updated for the Order." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderAppointmentUpdatedRequest, O: OrderAppointmentUpdatedResponse } + { name: "AppointmentUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "An appointment is updated for the Order." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderAppointmentUpdatedRequest, O: OrderAppointmentUpdatedResponse }, + { name: "AppointmentBookingDisabled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Inputs"], description: "Booking appointment has been disabled for the Order." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: OrderAppointmentBookingDisabledRequest, O: OrderAppointmentBookingDisabledResponse } ], { "api.serviceType": "Api", "api.k8sService": "api-server" }); diff --git a/package.json b/package.json index d6a9fa4..71ca995 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260612144558", + "version": "1.14.0-SNAPSHOT-260615081039", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",