diff --git a/package.json b/package.json index 3f28912..011d794 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.15.0-SNAPSHOT-260827131234", + "version": "1.15.0-SNAPSHOT-260828074503", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/siteBooking.client.ts b/siteBooking.client.ts index a27b138..0f03c7a 100644 --- a/siteBooking.client.ts +++ b/siteBooking.client.ts @@ -10,6 +10,8 @@ import type { CheckBookingAppointmentEditableResponse } from "./siteBooking"; import type { CheckBookingAppointmentEditableRequest } from "./siteBooking"; import type { RescheduleBookingAppointmentRequest } from "./siteBooking"; import type { WMSUpdateBookingAppointmentRequest } from "./siteBooking"; +import type { UpdateBookingAppointmentStatusResponse } from "./siteBooking"; +import type { UpdateBookingAppointmentStatusRequest } from "./siteBooking"; import type { UpdateBookingAppointmentRequest } from "./siteBooking"; import type { DeleteBookingAppointmentResponse } from "./siteBooking"; import type { DeleteBookingAppointmentRequest } from "./siteBooking"; @@ -62,6 +64,10 @@ export interface IBookingServiceClient { * @generated from protobuf rpc: UpdateAppointment */ updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: UpdateAppointmentStatus + */ + updateAppointmentStatus(input: UpdateBookingAppointmentStatusRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: UpdateAppointmentNoReference */ @@ -163,53 +169,60 @@ export class BookingServiceClient implements IBookingServiceClient, ServiceInfo const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: UpdateAppointmentStatus + */ + updateAppointmentStatus(input: UpdateBookingAppointmentStatusRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[9], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } /** * @generated from protobuf rpc: UpdateAppointmentNoReference */ updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[9], opt = this._transport.mergeOptions(options); + const method = this.methods[10], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ForceUpdateAppointment */ forceUpdateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[10], opt = this._transport.mergeOptions(options); + const method = this.methods[11], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: WMSUpdateAppointment */ wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[11], opt = this._transport.mergeOptions(options); + const method = this.methods[12], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: RescheduleAppointment */ rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[12], opt = this._transport.mergeOptions(options); + const method = this.methods[13], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ForceRescheduleAppointment */ forceRescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[13], opt = this._transport.mergeOptions(options); + const method = this.methods[14], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CheckAppointmentEditable */ checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[14], opt = this._transport.mergeOptions(options); + const method = this.methods[15], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: LockBooking */ lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[15], opt = this._transport.mergeOptions(options); + const method = this.methods[16], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/siteBooking.ts b/siteBooking.ts index 672c554..4b059c9 100644 --- a/siteBooking.ts +++ b/siteBooking.ts @@ -352,6 +352,53 @@ export interface UpdateAppointmentPayload { * @generated from protobuf field: repeated string Emails = 8 */ Emails: string[]; + /** + * Carrier information metadata + * + * @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 9 + */ + CarrierInformation: MetadataElement[]; +} +/** + * Update Appointment Status + * + * @generated from protobuf message api.UpdateBookingAppointmentStatusRequest + */ +export interface UpdateBookingAppointmentStatusRequest { + /** + * @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.UpdateAppointmentStatusPayload Payload = 3 + */ + Payload?: UpdateAppointmentStatusPayload; +} +/** + * @generated from protobuf message api.UpdateAppointmentStatusPayload + */ +export interface UpdateAppointmentStatusPayload { + /** + * @generated from protobuf field: api.AppointmentStatusInputEvent AppointmentStatusInputEvent = 1 + */ + AppointmentStatusInputEvent: AppointmentStatusInputEvent; +} +/** + * @generated from protobuf message api.UpdateBookingAppointmentStatusResponse + */ +export interface UpdateBookingAppointmentStatusResponse { + /** + * @generated from protobuf field: api.ResponseHeader Header = 2 + */ + Header?: ResponseHeader; + /** + * @generated from protobuf field: string AppointmentID = 1 + */ + AppointmentID: string; } /** * @generated from protobuf message api.WMSUpdateBookingAppointmentRequest @@ -464,6 +511,47 @@ export interface LockBookingRequest { */ export interface LockBookingResponse { } +/** + * @generated from protobuf enum api.AppointmentStatusInputEvent + */ +export enum AppointmentStatusInputEvent { + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_UNKNOWN = 0; + */ + APPOINTMENT_INPUT_EVENT_UNKNOWN = 0, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_CARRIER_EXPECTED = 1; + */ + APPOINTMENT_INPUT_EVENT_CARRIER_EXPECTED = 1, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_CARRIER_ARRIVED = 2; + */ + APPOINTMENT_INPUT_EVENT_CARRIER_ARRIVED = 2, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_CARRIER_DEPARTED = 3; + */ + APPOINTMENT_INPUT_EVENT_CARRIER_DEPARTED = 3, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_ALLOCATION_ERROR = 4; + */ + APPOINTMENT_INPUT_EVENT_ALLOCATION_ERROR = 4, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_LOADING_STARTED = 5; + */ + APPOINTMENT_INPUT_EVENT_LOADING_STARTED = 5, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_LOADING_COMPLETED = 6; + */ + APPOINTMENT_INPUT_EVENT_LOADING_COMPLETED = 6, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_UNLOADING_STARTED = 7; + */ + APPOINTMENT_INPUT_EVENT_UNLOADING_STARTED = 7, + /** + * @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_UNLOADING_COMPLETED = 8; + */ + APPOINTMENT_INPUT_EVENT_UNLOADING_COMPLETED = 8 +} // @generated message type with reflection information, may provide speed optimized methods class GetBookingSlotsRequest$Type extends MessageType { constructor() { @@ -1286,7 +1374,8 @@ class UpdateAppointmentPayload$Type extends MessageType AppointmentContent }, { no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, - { no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } } + { no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } }, + { no: 9, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Slot", "Attendees"] } } }); } create(value?: PartialMessage): UpdateAppointmentPayload { @@ -1294,6 +1383,7 @@ class UpdateAppointmentPayload$Type extends MessageType(this, message, value); return message; @@ -1321,6 +1411,9 @@ class UpdateAppointmentPayload$Type extends MessageType { + constructor() { + super("api.UpdateBookingAppointmentStatusRequest", [ + { 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: () => UpdateAppointmentStatusPayload, options: { "n1validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); + } + create(value?: PartialMessage): UpdateBookingAppointmentStatusRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateBookingAppointmentStatusRequest): UpdateBookingAppointmentStatusRequest { + 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.UpdateAppointmentStatusPayload Payload */ 3: + message.Payload = UpdateAppointmentStatusPayload.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: UpdateBookingAppointmentStatusRequest, 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.UpdateAppointmentStatusPayload Payload = 3; */ + if (message.Payload) + UpdateAppointmentStatusPayload.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.UpdateBookingAppointmentStatusRequest + */ +export const UpdateBookingAppointmentStatusRequest = new UpdateBookingAppointmentStatusRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateAppointmentStatusPayload$Type extends MessageType { + constructor() { + super("api.UpdateAppointmentStatusPayload", [ + { no: 1, name: "AppointmentStatusInputEvent", kind: "enum", localName: "AppointmentStatusInputEvent", jsonName: "AppointmentStatusInputEvent", T: () => ["api.AppointmentStatusInputEvent", AppointmentStatusInputEvent], options: { "n1validate.rules": { enum: { definedOnly: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentInputEvent"] } } }); + } + create(value?: PartialMessage): UpdateAppointmentStatusPayload { + const message = globalThis.Object.create((this.messagePrototype!)); + message.AppointmentStatusInputEvent = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentStatusPayload): UpdateAppointmentStatusPayload { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.AppointmentStatusInputEvent AppointmentStatusInputEvent */ 1: + message.AppointmentStatusInputEvent = reader.int32(); + 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: UpdateAppointmentStatusPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.AppointmentStatusInputEvent AppointmentStatusInputEvent = 1; */ + if (message.AppointmentStatusInputEvent !== 0) + writer.tag(1, WireType.Varint).int32(message.AppointmentStatusInputEvent); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.UpdateAppointmentStatusPayload + */ +export const UpdateAppointmentStatusPayload = new UpdateAppointmentStatusPayload$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class UpdateBookingAppointmentStatusResponse$Type extends MessageType { + constructor() { + super("api.UpdateBookingAppointmentStatusResponse", [ + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, + { no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): UpdateBookingAppointmentStatusResponse { + const message = globalThis.Object.create((this.messagePrototype!)); + message.AppointmentID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateBookingAppointmentStatusResponse): UpdateBookingAppointmentStatusResponse { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.ResponseHeader Header */ 2: + message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); + break; + case /* string AppointmentID */ 1: + message.AppointmentID = reader.string(); + 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: UpdateBookingAppointmentStatusResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string AppointmentID = 1; */ + if (message.AppointmentID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID); + /* api.ResponseHeader Header = 2; */ + if (message.Header) + ResponseHeader.internalBinaryWrite(message.Header, 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.UpdateBookingAppointmentStatusResponse + */ +export const UpdateBookingAppointmentStatusResponse = new UpdateBookingAppointmentStatusResponse$Type(); +// @generated message type with reflection information, may provide speed optimized methods class WMSUpdateBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.WMSUpdateBookingAppointmentRequest", [ @@ -1727,6 +1984,7 @@ export const BookingService = new ServiceType("api.BookingService", [ { name: "ForceCancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Cancel an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: CancelBookingAppointmentRequest, O: CancelBookingAppointmentResponse }, { name: "DeleteAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Delete an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: DeleteBookingAppointmentRequest, O: DeleteBookingAppointmentResponse }, { name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees), if the requested slots are available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, + { name: "UpdateAppointmentStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update the status of an appointment." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentStatusRequest, O: UpdateBookingAppointmentStatusResponse }, { name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) without order references, if the requested slots are available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) even if the slots are not available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment from a wms even if the slots are not available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: WMSUpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },