/** * Webitel API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 24.04.0 * Contact: support@webitel.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { InlineObject4 } from '../api'; import { InlineObject5 } from '../api'; import { WfmCreateAgentAbsenceResponse } from '../api'; import { WfmCreateAgentsAbsencesRequest } from '../api'; import { WfmCreateAgentsAbsencesResponse } from '../api'; import { WfmDeleteAgentAbsenceResponse } from '../api'; import { WfmReadAgentAbsenceResponse } from '../api'; import { WfmSearchAgentAbsenceResponse } from '../api'; import { WfmSearchAgentsAbsencesResponse } from '../api'; import { WfmUpdateAgentAbsenceResponse } from '../api'; /** * AgentAbsenceServiceApi - axios parameter creator * @export */ export declare const AgentAbsenceServiceApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Creates one-day-absence for one agent. * @param {string} agentId * @param {InlineObject4} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAgentAbsence: (agentId: string, body: InlineObject4, options?: any) => Promise; /** * * @summary Creates absences for multiple specified agents. * @param {WfmCreateAgentsAbsencesRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAgentsAbsences: (body: WfmCreateAgentsAbsencesRequest, options?: any) => Promise; /** * * @summary Deletes agent concrete absence by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAgentAbsence: (agentId: string, id: string, options?: any) => Promise; /** * * @summary Reads one absence per agent by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ readAgentAbsence: (agentId: string, id: string, options?: any) => Promise; /** * * @summary Searches agent absences by filters. * @param {string} agentId * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAgentAbsence: (agentId: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any) => Promise; /** * * @summary Searches absences by filters. * @param {string} [q] Searches by agent name. * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAgentsAbsences: (q?: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any) => Promise; /** * * @summary Updates agent concrete absence by its id. * @param {string} agentId * @param {string} itemId * @param {InlineObject5} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAgentAbsence: (agentId: string, itemId: string, body: InlineObject5, options?: any) => Promise; }; /** * AgentAbsenceServiceApi - functional programming interface * @export */ export declare const AgentAbsenceServiceApiFp: (configuration?: Configuration) => { /** * * @summary Creates one-day-absence for one agent. * @param {string} agentId * @param {InlineObject4} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAgentAbsence(agentId: string, body: InlineObject4, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Creates absences for multiple specified agents. * @param {WfmCreateAgentsAbsencesRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAgentsAbsences(body: WfmCreateAgentsAbsencesRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Deletes agent concrete absence by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAgentAbsence(agentId: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Reads one absence per agent by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ readAgentAbsence(agentId: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Searches agent absences by filters. * @param {string} agentId * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAgentAbsence(agentId: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Searches absences by filters. * @param {string} [q] Searches by agent name. * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAgentsAbsences(q?: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Updates agent concrete absence by its id. * @param {string} agentId * @param {string} itemId * @param {InlineObject5} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAgentAbsence(agentId: string, itemId: string, body: InlineObject5, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AgentAbsenceServiceApi - factory interface * @export */ export declare const AgentAbsenceServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Creates one-day-absence for one agent. * @param {string} agentId * @param {InlineObject4} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAgentAbsence(agentId: string, body: InlineObject4, options?: any): AxiosPromise; /** * * @summary Creates absences for multiple specified agents. * @param {WfmCreateAgentsAbsencesRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAgentsAbsences(body: WfmCreateAgentsAbsencesRequest, options?: any): AxiosPromise; /** * * @summary Deletes agent concrete absence by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAgentAbsence(agentId: string, id: string, options?: any): AxiosPromise; /** * * @summary Reads one absence per agent by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ readAgentAbsence(agentId: string, id: string, options?: any): AxiosPromise; /** * * @summary Searches agent absences by filters. * @param {string} agentId * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAgentAbsence(agentId: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any): AxiosPromise; /** * * @summary Searches absences by filters. * @param {string} [q] Searches by agent name. * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchAgentsAbsences(q?: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any): AxiosPromise; /** * * @summary Updates agent concrete absence by its id. * @param {string} agentId * @param {string} itemId * @param {InlineObject5} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAgentAbsence(agentId: string, itemId: string, body: InlineObject5, options?: any): AxiosPromise; }; /** * AgentAbsenceServiceApi - object-oriented interface * @export * @class AgentAbsenceServiceApi * @extends {BaseAPI} */ export declare class AgentAbsenceServiceApi extends BaseAPI { /** * * @summary Creates one-day-absence for one agent. * @param {string} agentId * @param {InlineObject4} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgentAbsenceServiceApi */ createAgentAbsence(agentId: string, body: InlineObject4, options?: any): Promise>; /** * * @summary Creates absences for multiple specified agents. * @param {WfmCreateAgentsAbsencesRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgentAbsenceServiceApi */ createAgentsAbsences(body: WfmCreateAgentsAbsencesRequest, options?: any): Promise>; /** * * @summary Deletes agent concrete absence by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgentAbsenceServiceApi */ deleteAgentAbsence(agentId: string, id: string, options?: any): Promise>; /** * * @summary Reads one absence per agent by its id. * @param {string} agentId * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgentAbsenceServiceApi */ readAgentAbsence(agentId: string, id: string, options?: any): Promise>; /** * * @summary Searches agent absences by filters. * @param {string} agentId * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgentAbsenceServiceApi */ searchAgentAbsence(agentId: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any): Promise>; /** * * @summary Searches absences by filters. * @param {string} [q] Searches by agent name. * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {Array} [fields] * @param {Array} [filters] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgentAbsenceServiceApi */ searchAgentsAbsences(q?: string, page?: number, size?: number, sort?: string, fields?: Array, filters?: Array, options?: any): Promise>; /** * * @summary Updates agent concrete absence by its id. * @param {string} agentId * @param {string} itemId * @param {InlineObject5} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgentAbsenceServiceApi */ updateAgentAbsence(agentId: string, itemId: string, body: InlineObject5, options?: any): Promise>; } //# sourceMappingURL=agent-absence-service-api.d.ts.map