/** * 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 { InputDataWithUpdatedFields } from '../api'; import { InputDataWithUpdatedFields1 } from '../api'; import { WebitelCasesCase } from '../api'; import { WebitelCasesCaseList } from '../api'; import { WebitelCasesInputCreateCase } from '../api'; /** * CasesApi - axios parameter creator * @export */ export declare const CasesApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary RPC method for creating a new case. * @param {WebitelCasesInputCreateCase} input Input data for creating the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCase: (input: WebitelCasesInputCreateCase, fields?: Array, options?: any) => Promise; /** * * @summary RPC method for deleting an existing case by its etag. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the deleted case response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCase: (etag: string, fields?: Array, options?: any) => Promise; /** * * @summary RPC method to retrieve a specific case by its etag identifier. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ locateCase: (etag: string, fields?: Array, options?: any) => Promise; /** * * @summary RPC method for searching cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {string} [contactId] Contact ID for filtering cases. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCases: (page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, contactId?: string, options?: any) => Promise; /** * * @summary RPC method for searching cases. * @param {string} contactId Contact ID for filtering cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCases2: (contactId: string, page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, options?: any) => Promise; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCase: (inputEtag: string, input: InputDataWithUpdatedFields, xJsonMask?: Array, fields?: Array, options?: any) => Promise; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields1} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCase2: (inputEtag: string, input: InputDataWithUpdatedFields1, xJsonMask?: Array, fields?: Array, options?: any) => Promise; }; /** * CasesApi - functional programming interface * @export */ export declare const CasesApiFp: (configuration?: Configuration) => { /** * * @summary RPC method for creating a new case. * @param {WebitelCasesInputCreateCase} input Input data for creating the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCase(input: WebitelCasesInputCreateCase, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary RPC method for deleting an existing case by its etag. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the deleted case response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCase(etag: string, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary RPC method to retrieve a specific case by its etag identifier. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ locateCase(etag: string, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary RPC method for searching cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {string} [contactId] Contact ID for filtering cases. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCases(page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, contactId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary RPC method for searching cases. * @param {string} contactId Contact ID for filtering cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCases2(contactId: string, page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCase(inputEtag: string, input: InputDataWithUpdatedFields, xJsonMask?: Array, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields1} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCase2(inputEtag: string, input: InputDataWithUpdatedFields1, xJsonMask?: Array, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * CasesApi - factory interface * @export */ export declare const CasesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary RPC method for creating a new case. * @param {WebitelCasesInputCreateCase} input Input data for creating the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCase(input: WebitelCasesInputCreateCase, fields?: Array, options?: any): AxiosPromise; /** * * @summary RPC method for deleting an existing case by its etag. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the deleted case response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCase(etag: string, fields?: Array, options?: any): AxiosPromise; /** * * @summary RPC method to retrieve a specific case by its etag identifier. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ locateCase(etag: string, fields?: Array, options?: any): AxiosPromise; /** * * @summary RPC method for searching cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {string} [contactId] Contact ID for filtering cases. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCases(page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, contactId?: string, options?: any): AxiosPromise; /** * * @summary RPC method for searching cases. * @param {string} contactId Contact ID for filtering cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchCases2(contactId: string, page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, options?: any): AxiosPromise; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCase(inputEtag: string, input: InputDataWithUpdatedFields, xJsonMask?: Array, fields?: Array, options?: any): AxiosPromise; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields1} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCase2(inputEtag: string, input: InputDataWithUpdatedFields1, xJsonMask?: Array, fields?: Array, options?: any): AxiosPromise; }; /** * CasesApi - object-oriented interface * @export * @class CasesApi * @extends {BaseAPI} */ export declare class CasesApi extends BaseAPI { /** * * @summary RPC method for creating a new case. * @param {WebitelCasesInputCreateCase} input Input data for creating the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CasesApi */ createCase(input: WebitelCasesInputCreateCase, fields?: Array, options?: any): Promise>; /** * * @summary RPC method for deleting an existing case by its etag. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the deleted case response. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CasesApi */ deleteCase(etag: string, fields?: Array, options?: any): Promise>; /** * * @summary RPC method to retrieve a specific case by its etag identifier. * @param {string} etag Unique etag identifier of the case. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CasesApi */ locateCase(etag: string, fields?: Array, options?: any): Promise>; /** * * @summary RPC method for searching cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {string} [contactId] Contact ID for filtering cases. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CasesApi */ searchCases(page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, contactId?: string, options?: any): Promise>; /** * * @summary RPC method for searching cases. * @param {string} contactId Contact ID for filtering cases. * @param {number} [page] Page number for pagination. * @param {number} [size] Number of results per page. * @param {string} [q] Query string for searching cases. * @param {Array} [ids] List of specific case IDs to retrieve. * @param {string} [sort] Sorting criteria (e.g., field:asc). * @param {Array} [fields] List of fields to include in the response. * @param {Array} [filters] Key-value pairs for additional filtering. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CasesApi */ searchCases2(contactId: string, page?: number, size?: number, q?: string, ids?: Array, sort?: string, fields?: Array, filters?: Array, options?: any): Promise>; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CasesApi */ updateCase(inputEtag: string, input: InputDataWithUpdatedFields, xJsonMask?: Array, fields?: Array, options?: any): Promise>; /** * * @summary RPC method for updating an existing case. * @param {string} inputEtag * @param {InputDataWithUpdatedFields1} input * @param {Array} [xJsonMask] List of JSON fields to update. * @param {Array} [fields] List of fields to include in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CasesApi */ updateCase2(inputEtag: string, input: InputDataWithUpdatedFields1, xJsonMask?: Array, fields?: Array, options?: any): Promise>; } //# sourceMappingURL=cases-api.d.ts.map