From 2ef175d0cfb5d89713cec56b7a9ac6d6389bf567 Mon Sep 17 00:00:00 2001 From: ci core model Date: Mon, 23 Mar 2026 08:53:01 +0000 Subject: [PATCH] Latest generation --- appointmentInput.client.ts | 57 +++++--- appointmentInput.ts | 289 +++++++++++++++++++++++++++++++++++++ package.json | 2 +- siteBooking.client.ts | 29 +++- siteBooking.ts | 136 +++++++++++++++++ 5 files changed, 482 insertions(+), 31 deletions(-) diff --git a/appointmentInput.client.ts b/appointmentInput.client.ts index 377246a..5312a84 100644 --- a/appointmentInput.client.ts +++ b/appointmentInput.client.ts @@ -48,6 +48,8 @@ import type { AppointmentCommissionsUpdatedResponse } from "./appointmentInput"; import type { AppointmentCommissionsUpdatedRequest } from "./appointmentInput"; import type { AppointmentSlotUpdatedResponse } from "./appointmentInput"; import type { AppointmentSlotUpdatedRequest } from "./appointmentInput"; +import type { AppointmentDeletedResponse } from "./appointmentInput"; +import type { AppointmentDeletedRequest } from "./appointmentInput"; import type { AppointmentCanceledResponse } from "./appointmentInput"; import type { AppointmentCanceledRequest } from "./appointmentInput"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; @@ -70,6 +72,10 @@ export interface IAppointmentInputAPIClient { * @generated from protobuf rpc: Canceled */ canceled(input: AppointmentCanceledRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: Deleted + */ + deleted(input: AppointmentDeletedRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: SlotUpdated */ @@ -187,109 +193,116 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: Deleted + */ + deleted(input: AppointmentDeletedRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[2], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } /** * @generated from protobuf rpc: SlotUpdated */ slotUpdated(input: AppointmentSlotUpdatedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[2], opt = this._transport.mergeOptions(options); + const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CommissionsUpdated */ commissionsUpdated(input: AppointmentCommissionsUpdatedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[3], opt = this._transport.mergeOptions(options); + const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ReasonUpdated */ reasonUpdated(input: AppointmentReasonUpdatedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[4], opt = this._transport.mergeOptions(options); + const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CarrierInformationUpdated */ carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[5], opt = this._transport.mergeOptions(options); + const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CarrierExpected */ carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[6], opt = this._transport.mergeOptions(options); + const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AllocationError */ allocationError(input: AppointmentAllocationErrorRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[7], opt = this._transport.mergeOptions(options); + const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CarrierArrived */ carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[8], opt = this._transport.mergeOptions(options); + const method = this.methods[9], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: LoadingStarted */ loadingStarted(input: AppointmentLoadingStartedRequest, 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: LoadingCompleted */ loadingCompleted(input: AppointmentLoadingCompletedRequest, 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: UnloadingStarted */ unloadingStarted(input: AppointmentUnloadingStartedRequest, 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: UnloadingCompleted */ unloadingCompleted(input: AppointmentUnloadingCompletedRequest, 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: CarrierDeparted */ carrierDeparted(input: AppointmentCarrierDepartedRequest, 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: MetaDataUpdated */ metaDataUpdated(input: AppointmentMetaDataUpdatedRequest, 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: AttachmentAdded */ attachmentAdded(input: AppointmentAttachmentAddedRequest, 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); } /** * @generated from protobuf rpc: AttachmentRemoved */ attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[16], opt = this._transport.mergeOptions(options); + const method = this.methods[17], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** @@ -297,7 +310,7 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se * @generated from protobuf rpc: EmailsAdded */ emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[17], opt = this._transport.mergeOptions(options); + const method = this.methods[18], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** @@ -305,42 +318,42 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se * @generated from protobuf rpc: EmailsRemoved */ emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[18], opt = this._transport.mergeOptions(options); + const method = this.methods[19], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AttendeesAdded */ attendeesAdded(input: AppointmentAttendeesAddedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[19], opt = this._transport.mergeOptions(options); + const method = this.methods[20], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AttendeesRemoved */ attendeesRemoved(input: AppointmentAttendeesRemovedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[20], opt = this._transport.mergeOptions(options); + const method = this.methods[21], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Sanitised */ sanitised(input: AppointmentSanitisedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[21], opt = this._transport.mergeOptions(options); + const method = this.methods[22], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CustomFieldsUpdated */ customFieldsUpdated(input: AppointmentCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[22], opt = this._transport.mergeOptions(options); + const method = this.methods[23], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: Redetected */ redetected(input: AppointmentRedetectedRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[23], opt = this._transport.mergeOptions(options); + const method = this.methods[24], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/appointmentInput.ts b/appointmentInput.ts index 061e6f5..18abb41 100644 --- a/appointmentInput.ts +++ b/appointmentInput.ts @@ -257,6 +257,74 @@ export interface AppointmentCanceledResponse { ID?: EntityID; } // +// Deleted : this message tells that appointment is deleted + +/** + * Event Payload + * + * @generated from protobuf message api.AppointmentDeletedPayload + */ +export interface AppointmentDeletedPayload { + /** + * @deprecated + * @generated from protobuf field: string ActorID = 1 [deprecated = true] + */ + ActorID: string; +} +/** + * Event message + * + * @generated from protobuf message api.AppointmentDeletedEvent + */ +export interface AppointmentDeletedEvent { + /** + * @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.AppointmentDeletedPayload Payload = 3 + */ + Payload?: AppointmentDeletedPayload; +} +/** + * API Request + * + * @generated from protobuf message api.AppointmentDeletedRequest + */ +export interface AppointmentDeletedRequest { + /** + * @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.AppointmentDeletedPayload Payload = 3 + */ + Payload?: AppointmentDeletedPayload; +} +/** + * API Response + * + * @generated from protobuf message api.AppointmentDeletedResponse + */ +export interface AppointmentDeletedResponse { + /** + * @generated from protobuf field: api.ResponseHeader Header = 1 + */ + Header?: ResponseHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; +} +// // SlotUpdated : this message tells that appointment date has been modified /** @@ -2298,6 +2366,226 @@ class AppointmentCanceledResponse$Type extends MessageType { + constructor() { + super("api.AppointmentDeletedPayload", [ + { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Deleted" }); + } + create(value?: PartialMessage): AppointmentDeletedPayload { + const message = globalThis.Object.create((this.messagePrototype!)); + message.ActorID = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedPayload): AppointmentDeletedPayload { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string ActorID = 1 [deprecated = true] */ 1: + message.ActorID = 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: AppointmentDeletedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string ActorID = 1 [deprecated = true]; */ + if (message.ActorID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.ActorID); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.AppointmentDeletedPayload + */ +export const AppointmentDeletedPayload = new AppointmentDeletedPayload$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentDeletedEvent$Type extends MessageType { + constructor() { + super("api.AppointmentDeletedEvent", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Deleted", "api.preAggMethods": "checkDeleted" }); + } + create(value?: PartialMessage): AppointmentDeletedEvent { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedEvent): AppointmentDeletedEvent { + 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.AppointmentDeletedPayload Payload */ 3: + message.Payload = AppointmentDeletedPayload.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: AppointmentDeletedEvent, 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.AppointmentDeletedPayload Payload = 3; */ + if (message.Payload) + AppointmentDeletedPayload.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.AppointmentDeletedEvent + */ +export const AppointmentDeletedEvent = new AppointmentDeletedEvent$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentDeletedRequest$Type extends MessageType { + constructor() { + super("api.AppointmentDeletedRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Deleted" }); + } + create(value?: PartialMessage): AppointmentDeletedRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedRequest): AppointmentDeletedRequest { + 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.AppointmentDeletedPayload Payload */ 3: + message.Payload = AppointmentDeletedPayload.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: AppointmentDeletedRequest, 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.AppointmentDeletedPayload Payload = 3; */ + if (message.Payload) + AppointmentDeletedPayload.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.AppointmentDeletedRequest + */ +export const AppointmentDeletedRequest = new AppointmentDeletedRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentDeletedResponse$Type extends MessageType { + constructor() { + super("api.AppointmentDeletedResponse", [ + { 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": "Deleted" }); + } + create(value?: PartialMessage): AppointmentDeletedResponse { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedResponse): AppointmentDeletedResponse { + 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: AppointmentDeletedResponse, 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.AppointmentDeletedResponse + */ +export const AppointmentDeletedResponse = new AppointmentDeletedResponse$Type(); +// @generated message type with reflection information, may provide speed optimized methods class AppointmentSlotUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentSlotUpdatedPayload", [ @@ -7219,6 +7507,7 @@ export const AppointmentRedetectedResponse = new AppointmentRedetectedResponse$T export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [ { name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been created." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCreatedRequest, O: AppointmentCreatedResponse }, { name: "Canceled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse }, + { name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been deleted." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentDeletedRequest, O: AppointmentDeletedResponse }, { name: "SlotUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSlotUpdatedRequest, O: AppointmentSlotUpdatedResponse }, { name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment commissions has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse }, { name: "ReasonUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment reason has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentReasonUpdatedRequest, O: AppointmentReasonUpdatedResponse }, diff --git a/package.json b/package.json index 8d912a9..d23c5a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260320104255", + "version": "1.13.0-SNAPSHOT-260323085232", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/siteBooking.client.ts b/siteBooking.client.ts index ff24e45..a27b138 100644 --- a/siteBooking.client.ts +++ b/siteBooking.client.ts @@ -11,6 +11,8 @@ import type { CheckBookingAppointmentEditableRequest } from "./siteBooking"; import type { RescheduleBookingAppointmentRequest } from "./siteBooking"; import type { WMSUpdateBookingAppointmentRequest } from "./siteBooking"; import type { UpdateBookingAppointmentRequest } from "./siteBooking"; +import type { DeleteBookingAppointmentResponse } from "./siteBooking"; +import type { DeleteBookingAppointmentRequest } from "./siteBooking"; import type { CancelBookingAppointmentResponse } from "./siteBooking"; import type { CancelBookingAppointmentRequest } from "./siteBooking"; import type { BookBookingAppointmentResponse } from "./siteBooking"; @@ -52,6 +54,10 @@ export interface IBookingServiceClient { * @generated from protobuf rpc: ForceCancelAppointment */ forceCancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: DeleteAppointment + */ + deleteAppointment(input: DeleteBookingAppointmentRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: UpdateAppointment */ @@ -143,60 +149,67 @@ export class BookingServiceClient implements IBookingServiceClient, ServiceInfo const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: DeleteAppointment + */ + deleteAppointment(input: DeleteBookingAppointmentRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[7], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } /** * @generated from protobuf rpc: UpdateAppointment */ updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[7], opt = this._transport.mergeOptions(options); + const method = this.methods[8], 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[8], opt = this._transport.mergeOptions(options); + const method = this.methods[9], 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[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: WMSUpdateAppointment */ wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, 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: RescheduleAppointment */ rescheduleAppointment(input: RescheduleBookingAppointmentRequest, 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: ForceRescheduleAppointment */ forceRescheduleAppointment(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: CheckAppointmentEditable */ checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, 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: LockBooking */ lockBooking(input: LockBookingRequest, 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); } } diff --git a/siteBooking.ts b/siteBooking.ts index c348848..ca9fc5c 100644 --- a/siteBooking.ts +++ b/siteBooking.ts @@ -213,6 +213,34 @@ export interface CancelBookingAppointmentResponse { */ AppointmentID: string; } +/** + * DeleteAppointment + * + * @generated from protobuf message api.DeleteBookingAppointmentRequest + */ +export interface DeleteBookingAppointmentRequest { + /** + * @generated from protobuf field: api.RequestProjectHeader Header = 1 + */ + Header?: RequestProjectHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; +} +/** + * @generated from protobuf message api.DeleteBookingAppointmentResponse + */ +export interface DeleteBookingAppointmentResponse { + /** + * @generated from protobuf field: api.ResponseHeader Header = 2 + */ + Header?: ResponseHeader; + /** + * @generated from protobuf field: string AppointmentID = 1 + */ + AppointmentID: string; +} /** * Reschedule * @@ -915,6 +943,113 @@ class CancelBookingAppointmentResponse$Type extends MessageType { + constructor() { + super("api.DeleteBookingAppointmentRequest", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); + } + create(value?: PartialMessage): DeleteBookingAppointmentRequest { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteBookingAppointmentRequest): DeleteBookingAppointmentRequest { + 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; + 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: DeleteBookingAppointmentRequest, 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(); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.DeleteBookingAppointmentRequest + */ +export const DeleteBookingAppointmentRequest = new DeleteBookingAppointmentRequest$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class DeleteBookingAppointmentResponse$Type extends MessageType { + constructor() { + super("api.DeleteBookingAppointmentResponse", [ + { 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): DeleteBookingAppointmentResponse { + 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?: DeleteBookingAppointmentResponse): DeleteBookingAppointmentResponse { + 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: DeleteBookingAppointmentResponse, 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.DeleteBookingAppointmentResponse + */ +export const DeleteBookingAppointmentResponse = new DeleteBookingAppointmentResponse$Type(); +// @generated message type with reflection information, may provide speed optimized methods class RescheduleBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.RescheduleBookingAppointmentRequest", [ @@ -1512,6 +1647,7 @@ export const BookingService = new ServiceType("api.BookingService", [ { name: "ForceBookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Book an appointment even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: BookBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelBookingAppointmentRequest, O: CancelBookingAppointmentResponse }, { name: "ForceCancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },