Files
npm-core-sdk/calendar.client.ts
2025-10-03 14:29:18 +00:00

219 lines
12 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "calendar.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { CalendarService } from "./calendar";
import type { ComputeSLAPeriodOnSiteRequest } from "./calendar";
import type { GetPublicHolidaysResponse } from "./calendar";
import type { GetPublicHolidaysRequest } from "./calendar";
import type { DeleteOnSiteResponse } from "./calendar";
import type { DeleteOnSiteRequest } from "./calendar";
import type { UpdateOnSiteResponse } from "./calendar";
import type { UpdateOnSiteRequest } from "./calendar";
import type { ListOnSiteResponse } from "./calendar";
import type { ListOnSiteRequest } from "./calendar";
import type { GetOnSiteResponse } from "./calendar";
import type { GetOnSiteRequest } from "./calendar";
import type { CreateOnSiteResponse } from "./calendar";
import type { CreateOnSiteRequest } from "./calendar";
import type { ComputeSLAPeriodResponse } from "./calendar";
import type { ComputeSLAPeriodOnOrganisationRequest } from "./calendar";
import type { DeleteAllForProjectResponse } from "./calendar";
import type { DeleteAllForProjectRequest } from "./calendar";
import type { DeleteAllForOrganisationResponse } from "./calendar";
import type { DeleteAllForOrganisationRequest } from "./calendar";
import type { DeleteOnOrganisationResponse } from "./calendar";
import type { DeleteOnOrganisationRequest } from "./calendar";
import type { UpdateOnOrganisationResponse } from "./calendar";
import type { UpdateOnOrganisationRequest } from "./calendar";
import type { ListOnOrganisationResponse } from "./calendar";
import type { ListOnOrganisationRequest } from "./calendar";
import type { GetOnOrganisationResponse } from "./calendar";
import type { GetOnOrganisationRequest } from "./calendar";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { CreateOnOrganisationResponse } from "./calendar";
import type { CreateOnOrganisationRequest } from "./calendar";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service api.CalendarService
*/
export interface ICalendarServiceClient {
/**
* @generated from protobuf rpc: CreateOnOrganisation
*/
createOnOrganisation(input: CreateOnOrganisationRequest, options?: RpcOptions): UnaryCall<CreateOnOrganisationRequest, CreateOnOrganisationResponse>;
/**
* @generated from protobuf rpc: GetOnOrganisation
*/
getOnOrganisation(input: GetOnOrganisationRequest, options?: RpcOptions): UnaryCall<GetOnOrganisationRequest, GetOnOrganisationResponse>;
/**
* @generated from protobuf rpc: ListOnOrganisation
*/
listOnOrganisation(input: ListOnOrganisationRequest, options?: RpcOptions): UnaryCall<ListOnOrganisationRequest, ListOnOrganisationResponse>;
/**
* @generated from protobuf rpc: UpdateOnOrganisation
*/
updateOnOrganisation(input: UpdateOnOrganisationRequest, options?: RpcOptions): UnaryCall<UpdateOnOrganisationRequest, UpdateOnOrganisationResponse>;
/**
* @generated from protobuf rpc: DeleteOnOrganisation
*/
deleteOnOrganisation(input: DeleteOnOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteOnOrganisationRequest, DeleteOnOrganisationResponse>;
/**
* @generated from protobuf rpc: DeleteAllForOrganisation
*/
deleteAllForOrganisation(input: DeleteAllForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteAllForOrganisationRequest, DeleteAllForOrganisationResponse>;
/**
* @generated from protobuf rpc: DeleteAllForProject
*/
deleteAllForProject(input: DeleteAllForProjectRequest, options?: RpcOptions): UnaryCall<DeleteAllForProjectRequest, DeleteAllForProjectResponse>;
/**
* @generated from protobuf rpc: ComputeSLAPeriodOnOrganisation
*/
computeSLAPeriodOnOrganisation(input: ComputeSLAPeriodOnOrganisationRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnOrganisationRequest, ComputeSLAPeriodResponse>;
/**
* @generated from protobuf rpc: CreateOnSite
*/
createOnSite(input: CreateOnSiteRequest, options?: RpcOptions): UnaryCall<CreateOnSiteRequest, CreateOnSiteResponse>;
/**
* @generated from protobuf rpc: GetOnSite
*/
getOnSite(input: GetOnSiteRequest, options?: RpcOptions): UnaryCall<GetOnSiteRequest, GetOnSiteResponse>;
/**
* @generated from protobuf rpc: ListOnSite
*/
listOnSite(input: ListOnSiteRequest, options?: RpcOptions): UnaryCall<ListOnSiteRequest, ListOnSiteResponse>;
/**
* @generated from protobuf rpc: UpdateOnSite
*/
updateOnSite(input: UpdateOnSiteRequest, options?: RpcOptions): UnaryCall<UpdateOnSiteRequest, UpdateOnSiteResponse>;
/**
* @generated from protobuf rpc: DeleteOnSite
*/
deleteOnSite(input: DeleteOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteOnSiteRequest, DeleteOnSiteResponse>;
/**
* @generated from protobuf rpc: GetPublicHolidays
*/
getPublicHolidays(input: GetPublicHolidaysRequest, options?: RpcOptions): UnaryCall<GetPublicHolidaysRequest, GetPublicHolidaysResponse>;
/**
* @generated from protobuf rpc: ComputeSLAPeriodOnSite
*/
computeSLAPeriodOnSite(input: ComputeSLAPeriodOnSiteRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodResponse>;
}
/**
* @generated from protobuf service api.CalendarService
*/
export class CalendarServiceClient implements ICalendarServiceClient, ServiceInfo {
typeName = CalendarService.typeName;
methods = CalendarService.methods;
options = CalendarService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: CreateOnOrganisation
*/
createOnOrganisation(input: CreateOnOrganisationRequest, options?: RpcOptions): UnaryCall<CreateOnOrganisationRequest, CreateOnOrganisationResponse> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateOnOrganisationRequest, CreateOnOrganisationResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetOnOrganisation
*/
getOnOrganisation(input: GetOnOrganisationRequest, options?: RpcOptions): UnaryCall<GetOnOrganisationRequest, GetOnOrganisationResponse> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<GetOnOrganisationRequest, GetOnOrganisationResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListOnOrganisation
*/
listOnOrganisation(input: ListOnOrganisationRequest, options?: RpcOptions): UnaryCall<ListOnOrganisationRequest, ListOnOrganisationResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<ListOnOrganisationRequest, ListOnOrganisationResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateOnOrganisation
*/
updateOnOrganisation(input: UpdateOnOrganisationRequest, options?: RpcOptions): UnaryCall<UpdateOnOrganisationRequest, UpdateOnOrganisationResponse> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateOnOrganisationRequest, UpdateOnOrganisationResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteOnOrganisation
*/
deleteOnOrganisation(input: DeleteOnOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteOnOrganisationRequest, DeleteOnOrganisationResponse> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteOnOrganisationRequest, DeleteOnOrganisationResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteAllForOrganisation
*/
deleteAllForOrganisation(input: DeleteAllForOrganisationRequest, options?: RpcOptions): UnaryCall<DeleteAllForOrganisationRequest, DeleteAllForOrganisationResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteAllForOrganisationRequest, DeleteAllForOrganisationResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteAllForProject
*/
deleteAllForProject(input: DeleteAllForProjectRequest, options?: RpcOptions): UnaryCall<DeleteAllForProjectRequest, DeleteAllForProjectResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteAllForProjectRequest, DeleteAllForProjectResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ComputeSLAPeriodOnOrganisation
*/
computeSLAPeriodOnOrganisation(input: ComputeSLAPeriodOnOrganisationRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnOrganisationRequest, ComputeSLAPeriodResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<ComputeSLAPeriodOnOrganisationRequest, ComputeSLAPeriodResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateOnSite
*/
createOnSite(input: CreateOnSiteRequest, options?: RpcOptions): UnaryCall<CreateOnSiteRequest, CreateOnSiteResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateOnSiteRequest, CreateOnSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetOnSite
*/
getOnSite(input: GetOnSiteRequest, options?: RpcOptions): UnaryCall<GetOnSiteRequest, GetOnSiteResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<GetOnSiteRequest, GetOnSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListOnSite
*/
listOnSite(input: ListOnSiteRequest, options?: RpcOptions): UnaryCall<ListOnSiteRequest, ListOnSiteResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<ListOnSiteRequest, ListOnSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateOnSite
*/
updateOnSite(input: UpdateOnSiteRequest, options?: RpcOptions): UnaryCall<UpdateOnSiteRequest, UpdateOnSiteResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateOnSiteRequest, UpdateOnSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteOnSite
*/
deleteOnSite(input: DeleteOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteOnSiteRequest, DeleteOnSiteResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteOnSiteRequest, DeleteOnSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetPublicHolidays
*/
getPublicHolidays(input: GetPublicHolidaysRequest, options?: RpcOptions): UnaryCall<GetPublicHolidaysRequest, GetPublicHolidaysResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<GetPublicHolidaysRequest, GetPublicHolidaysResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ComputeSLAPeriodOnSite
*/
computeSLAPeriodOnSite(input: ComputeSLAPeriodOnSiteRequest, options?: RpcOptions): UnaryCall<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<ComputeSLAPeriodOnSiteRequest, ComputeSLAPeriodResponse>("unary", this._transport, method, opt, input);
}
}