Files
npm-core-sdk/siteBooking.client.ts
2026-03-04 15:32:16 +00:00

190 lines
11 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "siteBooking.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { BookingService } from "./siteBooking";
import type { CheckBookingAppointmentEditableResponse } from "./siteBooking";
import type { CheckBookingAppointmentEditableRequest } from "./siteBooking";
import type { RescheduleBookingAppointmentRequest } from "./siteBooking";
import type { WMSUpdateBookingAppointmentRequest } from "./siteBooking";
import type { UpdateBookingAppointmentRequest } from "./siteBooking";
import type { CancelBookingAppointmentResponse } from "./siteBooking";
import type { CancelBookingAppointmentRequest } from "./siteBooking";
import type { BookBookingAppointmentResponse } from "./siteBooking";
import type { BookBookingAppointmentRequest } from "./siteBooking";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { GetBookingSlotsResponse } from "./siteBooking";
import type { GetBookingSlotsRequest } from "./siteBooking";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service api.BookingService
*/
export interface IBookingServiceClient {
/**
* @generated from protobuf rpc: GetAvailableSlots
*/
getAvailableSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse>;
/**
* @generated from protobuf rpc: GetAllSlots
*/
getAllSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse>;
/**
* @generated from protobuf rpc: BookAppointment
*/
bookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: BookAppointmentNoReference
*/
bookAppointmentNoReference(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: ForceBookAppointment
*/
forceBookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: CancelAppointment
*/
cancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: ForceCancelAppointment
*/
forceCancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: UpdateAppointment
*/
updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: UpdateAppointmentNoReference
*/
updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: ForceUpdateAppointment
*/
forceUpdateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: WMSUpdateAppointment
*/
wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: RescheduleAppointment
*/
rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: ForceRescheduleAppointment
*/
forceRescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: CheckAppointmentEditable
*/
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>;
}
/**
* @generated from protobuf service api.BookingService
*/
export class BookingServiceClient implements IBookingServiceClient, ServiceInfo {
typeName = BookingService.typeName;
methods = BookingService.methods;
options = BookingService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: GetAvailableSlots
*/
getAvailableSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingSlotsRequest, GetBookingSlotsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetAllSlots
*/
getAllSlots(input: GetBookingSlotsRequest, options?: RpcOptions): UnaryCall<GetBookingSlotsRequest, GetBookingSlotsResponse> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingSlotsRequest, GetBookingSlotsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: BookAppointment
*/
bookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<BookBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: BookAppointmentNoReference
*/
bookAppointmentNoReference(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<BookBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceBookAppointment
*/
forceBookAppointment(input: BookBookingAppointmentRequest, options?: RpcOptions): UnaryCall<BookBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<BookBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CancelAppointment
*/
cancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceCancelAppointment
*/
forceCancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateAppointment
*/
updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateAppointmentNoReference
*/
updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceUpdateAppointment
*/
forceUpdateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: WMSUpdateAppointment
*/
wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RescheduleAppointment
*/
rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceRescheduleAppointment
*/
forceRescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CheckAppointmentEditable
*/
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input);
}
}