You've already forked npm-core-sdk
355 lines
20 KiB
TypeScript
355 lines
20 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "site.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { SiteService } from "./site";
|
|
import type { ClearSiteAliasResponse } from "./site";
|
|
import type { ClearSiteAliasRequest } from "./site";
|
|
import type { SetSiteAliasResponse } from "./site";
|
|
import type { SetSiteAliasRequest } from "./site";
|
|
import type { GetAliasesOfSiteResponse } from "./site";
|
|
import type { GetAliasesOfSiteRequest } from "./site";
|
|
import type { GetSiteFromAliasResponse } from "./site";
|
|
import type { GetSiteFromAliasRequest } from "./site";
|
|
import type { GetPossibleSegmentationOnSiteForBookingResponse } from "./site";
|
|
import type { GetPossibleSegmentationOnSiteForBookingRequest } from "./site";
|
|
import type { ListSitesAuthorizedForBookingResponse } from "./site";
|
|
import type { ListSitesAuthorizedForBookingRequest } from "./site";
|
|
import type { GetBasicSettingsResponse } from "./site";
|
|
import type { GetBasicSettingsRequest } from "./site";
|
|
import type { CreateSettingsResponse } from "./site";
|
|
import type { CreateSettingsRequest } from "./site";
|
|
import type { DeleteSettingsResult } from "./site";
|
|
import type { DeleteSettingsRequest } from "./site";
|
|
import type { ForceUpdateAppointmentRequest } from "./site";
|
|
import type { UpdateAppointmentNoReferenceRequest } from "./site";
|
|
import type { UpdateAppointmentRequest } from "./site";
|
|
import type { CancelAppointmentResponse } from "./site";
|
|
import type { CancelAppointmentRequest } from "./site";
|
|
import type { ForceBookAppointmentRequest } from "./site";
|
|
import type { BookAppointmentNoReferenceRequest } from "./site";
|
|
import type { BookAppointmentResponse } from "./site";
|
|
import type { BookAppointmentRequest } from "./site";
|
|
import type { ListUserSitesResponse } from "./site";
|
|
import type { ListUserSitesRequest } from "./site";
|
|
import type { GetAllSlotsResponse } from "./site";
|
|
import type { GetAvailableSlotsResponse } from "./site";
|
|
import type { GetAvailableSlotsRequest } from "./site";
|
|
import type { DeleteInstructionDocumentResponse } from "./site";
|
|
import type { DeleteInstructionDocumentRequest } from "./site";
|
|
import type { UploadInstructionDocumentResponse } from "./site";
|
|
import type { UploadInstructionDocumentRequest } from "./site";
|
|
import type { DeletePhotoResponse } from "./site";
|
|
import type { DeletePhotoRequest } from "./site";
|
|
import type { UploadPhotoResponse } from "./site";
|
|
import type { UploadPhotoRequest } from "./site";
|
|
import type { UpdateSettingsResponse } from "./site";
|
|
import type { UpdateSettingsRequest } from "./site";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { GetSettingsResponse } from "./site";
|
|
import type { GetSettingsRequest } from "./site";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service api.SiteService
|
|
*/
|
|
export interface ISiteServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: GetSettings
|
|
*/
|
|
getSettings(input: GetSettingsRequest, options?: RpcOptions): UnaryCall<GetSettingsRequest, GetSettingsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: UpdateSettings
|
|
*/
|
|
updateSettings(input: UpdateSettingsRequest, options?: RpcOptions): UnaryCall<UpdateSettingsRequest, UpdateSettingsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: UploadPhoto
|
|
*/
|
|
uploadPhoto(input: UploadPhotoRequest, options?: RpcOptions): UnaryCall<UploadPhotoRequest, UploadPhotoResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: DeletePhoto
|
|
*/
|
|
deletePhoto(input: DeletePhotoRequest, options?: RpcOptions): UnaryCall<DeletePhotoRequest, DeletePhotoResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: UploadInstructionDocument
|
|
*/
|
|
uploadInstructionDocument(input: UploadInstructionDocumentRequest, options?: RpcOptions): UnaryCall<UploadInstructionDocumentRequest, UploadInstructionDocumentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteInstructionDocument
|
|
*/
|
|
deleteInstructionDocument(input: DeleteInstructionDocumentRequest, options?: RpcOptions): UnaryCall<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: GetAvailableSlots
|
|
*/
|
|
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: GetAllSlots
|
|
*/
|
|
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ListUserSites
|
|
*/
|
|
listUserSites(input: ListUserSitesRequest, options?: RpcOptions): UnaryCall<ListUserSitesRequest, ListUserSitesResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: BookAppointment
|
|
*/
|
|
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: BookAppointmentNoReference
|
|
*/
|
|
bookAppointmentNoReference(input: BookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<BookAppointmentNoReferenceRequest, BookAppointmentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ForceBookAppointment
|
|
*/
|
|
forceBookAppointment(input: ForceBookAppointmentRequest, options?: RpcOptions): UnaryCall<ForceBookAppointmentRequest, BookAppointmentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: CancelAppointment
|
|
*/
|
|
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: UpdateAppointment
|
|
*/
|
|
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
|
*/
|
|
updateAppointmentNoReference(input: UpdateAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ForceUpdateAppointment
|
|
*/
|
|
forceUpdateAppointment(input: ForceUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<ForceUpdateAppointmentRequest, BookAppointmentResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: DeleteSettings
|
|
*/
|
|
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: CreateSettings
|
|
*/
|
|
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: CreateSettingsV2
|
|
*/
|
|
createSettingsV2(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: GetBasicSettings
|
|
*/
|
|
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
|
|
*/
|
|
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: GetPossibleSegmentationOnSiteForBooking
|
|
*/
|
|
getPossibleSegmentationOnSiteForBooking(input: GetPossibleSegmentationOnSiteForBookingRequest, options?: RpcOptions): UnaryCall<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: GetSiteFromAlias
|
|
*/
|
|
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: GetAliasesOfSite
|
|
*/
|
|
getAliasesOfSite(input: GetAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: SetSiteAlias
|
|
*/
|
|
setSiteAlias(input: SetSiteAliasRequest, options?: RpcOptions): UnaryCall<SetSiteAliasRequest, SetSiteAliasResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: ClearSiteAlias
|
|
*/
|
|
clearSiteAlias(input: ClearSiteAliasRequest, options?: RpcOptions): UnaryCall<ClearSiteAliasRequest, ClearSiteAliasResponse>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service api.SiteService
|
|
*/
|
|
export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|
typeName = SiteService.typeName;
|
|
methods = SiteService.methods;
|
|
options = SiteService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetSettings
|
|
*/
|
|
getSettings(input: GetSettingsRequest, options?: RpcOptions): UnaryCall<GetSettingsRequest, GetSettingsResponse> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetSettingsRequest, GetSettingsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UpdateSettings
|
|
*/
|
|
updateSettings(input: UpdateSettingsRequest, options?: RpcOptions): UnaryCall<UpdateSettingsRequest, UpdateSettingsResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateSettingsRequest, UpdateSettingsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UploadPhoto
|
|
*/
|
|
uploadPhoto(input: UploadPhotoRequest, options?: RpcOptions): UnaryCall<UploadPhotoRequest, UploadPhotoResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UploadPhotoRequest, UploadPhotoResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeletePhoto
|
|
*/
|
|
deletePhoto(input: DeletePhotoRequest, options?: RpcOptions): UnaryCall<DeletePhotoRequest, DeletePhotoResponse> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeletePhotoRequest, DeletePhotoResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UploadInstructionDocument
|
|
*/
|
|
uploadInstructionDocument(input: UploadInstructionDocumentRequest, options?: RpcOptions): UnaryCall<UploadInstructionDocumentRequest, UploadInstructionDocumentResponse> {
|
|
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UploadInstructionDocumentRequest, UploadInstructionDocumentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteInstructionDocument
|
|
*/
|
|
deleteInstructionDocument(input: DeleteInstructionDocumentRequest, options?: RpcOptions): UnaryCall<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse> {
|
|
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetAvailableSlots
|
|
*/
|
|
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse> {
|
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetAvailableSlotsRequest, GetAvailableSlotsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetAllSlots
|
|
*/
|
|
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse> {
|
|
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetAvailableSlotsRequest, GetAllSlotsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ListUserSites
|
|
*/
|
|
listUserSites(input: ListUserSitesRequest, options?: RpcOptions): UnaryCall<ListUserSitesRequest, ListUserSitesResponse> {
|
|
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListUserSitesRequest, ListUserSitesResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: BookAppointment
|
|
*/
|
|
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
|
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: BookAppointmentNoReference
|
|
*/
|
|
bookAppointmentNoReference(input: BookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<BookAppointmentNoReferenceRequest, BookAppointmentResponse> {
|
|
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<BookAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ForceBookAppointment
|
|
*/
|
|
forceBookAppointment(input: ForceBookAppointmentRequest, options?: RpcOptions): UnaryCall<ForceBookAppointmentRequest, BookAppointmentResponse> {
|
|
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ForceBookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CancelAppointment
|
|
*/
|
|
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse> {
|
|
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UpdateAppointment
|
|
*/
|
|
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
|
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
|
*/
|
|
updateAppointmentNoReference(input: UpdateAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse> {
|
|
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ForceUpdateAppointment
|
|
*/
|
|
forceUpdateAppointment(input: ForceUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<ForceUpdateAppointmentRequest, BookAppointmentResponse> {
|
|
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ForceUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeleteSettings
|
|
*/
|
|
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult> {
|
|
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteSettingsRequest, DeleteSettingsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CreateSettings
|
|
*/
|
|
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
|
|
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: CreateSettingsV2
|
|
*/
|
|
createSettingsV2(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
|
|
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetBasicSettings
|
|
*/
|
|
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse> {
|
|
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetBasicSettingsRequest, GetBasicSettingsResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
|
|
*/
|
|
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse> {
|
|
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetPossibleSegmentationOnSiteForBooking
|
|
*/
|
|
getPossibleSegmentationOnSiteForBooking(input: GetPossibleSegmentationOnSiteForBookingRequest, options?: RpcOptions): UnaryCall<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse> {
|
|
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetSiteFromAlias
|
|
*/
|
|
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse> {
|
|
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetSiteFromAliasRequest, GetSiteFromAliasResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: GetAliasesOfSite
|
|
*/
|
|
getAliasesOfSite(input: GetAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse> {
|
|
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: SetSiteAlias
|
|
*/
|
|
setSiteAlias(input: SetSiteAliasRequest, options?: RpcOptions): UnaryCall<SetSiteAliasRequest, SetSiteAliasResponse> {
|
|
const method = this.methods[24], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<SetSiteAliasRequest, SetSiteAliasResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ClearSiteAlias
|
|
*/
|
|
clearSiteAlias(input: ClearSiteAliasRequest, options?: RpcOptions): UnaryCall<ClearSiteAliasRequest, ClearSiteAliasResponse> {
|
|
const method = this.methods[25], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|