/** * 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 { NEWUpdateOfTheManagerLink } from '../api'; import { NEWUpdateOfTheManagerLink1 } from '../api'; import { WebitelContactsInputManager } from '../api'; import { WebitelContactsManager } from '../api'; import { WebitelContactsManagerList } from '../api'; /** * ManagersApi - axios parameter creator * @export */ export declare const ManagersApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Remove the contact\'s manager address link * @param {string} contactId Contact ID associated with. * @param {string} etag Unique ID to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManager: (contactId: string, etag: string, fields?: Array, options?: any) => Promise; /** * * @summary Remove Contact Managers associations. * @param {string} contactId Contact ID associated with. * @param {Array} etag Set of unique ID(s) to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManagers: (contactId: string, etag: Array, fields?: Array, options?: any) => Promise; /** * * @summary Search the Contact\'s Managers. * @param {string} contactId Contact ID associated with. * @param {number} [page] Page number of result. offset = ((page-1)*size) * @param {number} [size] Size of result page. limit = (size++) * @param {string} [q] Search term: user name; `?` - matches any one character `*` - matches 0 or more characters * @param {Array} [sort] Sort the result according to fields. * @param {Array} [fields] Fields to be retrieved as a result. * @param {Array} [id] Record(s) with unique ID only. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listManagers: (contactId: string, page?: number, size?: number, q?: string, sort?: Array, fields?: Array, id?: Array, options?: any) => Promise; /** * * @summary Locate the manager address link. * @param {string} contactId Contact source ID. * @param {string} etag Unique manager link IDentifier. Accept: `etag` (obsolete+) or `id`. * @param {Array} [fields] Fields to be retrieved into result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ locateManager: (contactId: string, etag: string, fields?: Array, options?: any) => Promise; /** * * @summary Associate new Managers to the Contact. * @param {string} contactId Link contact ID. * @param {Array} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeManagers: (contactId: string, input: Array, fields?: Array, options?: any) => Promise; /** * * @summary Reset Managers to fit the specified final set. * @param {string} contactId Contact ID associated with. * @param {Array} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become `primary` if no other specified. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetManagers: (contactId: string, input: Array, fields?: Array, options?: any) => Promise; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateManager: (contactId: string, etag: string, input: NEWUpdateOfTheManagerLink, fields?: Array, options?: any) => Promise; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink1} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateManager2: (contactId: string, etag: string, input: NEWUpdateOfTheManagerLink1, fields?: Array, options?: any) => Promise; }; /** * ManagersApi - functional programming interface * @export */ export declare const ManagersApiFp: (configuration?: Configuration) => { /** * * @summary Remove the contact\'s manager address link * @param {string} contactId Contact ID associated with. * @param {string} etag Unique ID to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManager(contactId: string, etag: string, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Remove Contact Managers associations. * @param {string} contactId Contact ID associated with. * @param {Array} etag Set of unique ID(s) to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManagers(contactId: string, etag: Array, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * * @summary Search the Contact\'s Managers. * @param {string} contactId Contact ID associated with. * @param {number} [page] Page number of result. offset = ((page-1)*size) * @param {number} [size] Size of result page. limit = (size++) * @param {string} [q] Search term: user name; `?` - matches any one character `*` - matches 0 or more characters * @param {Array} [sort] Sort the result according to fields. * @param {Array} [fields] Fields to be retrieved as a result. * @param {Array} [id] Record(s) with unique ID only. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listManagers(contactId: string, page?: number, size?: number, q?: string, sort?: Array, fields?: Array, id?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Locate the manager address link. * @param {string} contactId Contact source ID. * @param {string} etag Unique manager link IDentifier. Accept: `etag` (obsolete+) or `id`. * @param {Array} [fields] Fields to be retrieved into result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ locateManager(contactId: string, etag: string, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Associate new Managers to the Contact. * @param {string} contactId Link contact ID. * @param {Array} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeManagers(contactId: string, input: Array, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Reset Managers to fit the specified final set. * @param {string} contactId Contact ID associated with. * @param {Array} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become `primary` if no other specified. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetManagers(contactId: string, input: Array, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateManager(contactId: string, etag: string, input: NEWUpdateOfTheManagerLink, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink1} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateManager2(contactId: string, etag: string, input: NEWUpdateOfTheManagerLink1, fields?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * ManagersApi - factory interface * @export */ export declare const ManagersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Remove the contact\'s manager address link * @param {string} contactId Contact ID associated with. * @param {string} etag Unique ID to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManager(contactId: string, etag: string, fields?: Array, options?: any): AxiosPromise; /** * * @summary Remove Contact Managers associations. * @param {string} contactId Contact ID associated with. * @param {Array} etag Set of unique ID(s) to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManagers(contactId: string, etag: Array, fields?: Array, options?: any): AxiosPromise>; /** * * @summary Search the Contact\'s Managers. * @param {string} contactId Contact ID associated with. * @param {number} [page] Page number of result. offset = ((page-1)*size) * @param {number} [size] Size of result page. limit = (size++) * @param {string} [q] Search term: user name; `?` - matches any one character `*` - matches 0 or more characters * @param {Array} [sort] Sort the result according to fields. * @param {Array} [fields] Fields to be retrieved as a result. * @param {Array} [id] Record(s) with unique ID only. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listManagers(contactId: string, page?: number, size?: number, q?: string, sort?: Array, fields?: Array, id?: Array, options?: any): AxiosPromise; /** * * @summary Locate the manager address link. * @param {string} contactId Contact source ID. * @param {string} etag Unique manager link IDentifier. Accept: `etag` (obsolete+) or `id`. * @param {Array} [fields] Fields to be retrieved into result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ locateManager(contactId: string, etag: string, fields?: Array, options?: any): AxiosPromise; /** * * @summary Associate new Managers to the Contact. * @param {string} contactId Link contact ID. * @param {Array} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeManagers(contactId: string, input: Array, fields?: Array, options?: any): AxiosPromise; /** * * @summary Reset Managers to fit the specified final set. * @param {string} contactId Contact ID associated with. * @param {Array} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become `primary` if no other specified. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetManagers(contactId: string, input: Array, fields?: Array, options?: any): AxiosPromise; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateManager(contactId: string, etag: string, input: NEWUpdateOfTheManagerLink, fields?: Array, options?: any): AxiosPromise; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink1} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateManager2(contactId: string, etag: string, input: NEWUpdateOfTheManagerLink1, fields?: Array, options?: any): AxiosPromise; }; /** * ManagersApi - object-oriented interface * @export * @class ManagersApi * @extends {BaseAPI} */ export declare class ManagersApi extends BaseAPI { /** * * @summary Remove the contact\'s manager address link * @param {string} contactId Contact ID associated with. * @param {string} etag Unique ID to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ deleteManager(contactId: string, etag: string, fields?: Array, options?: any): Promise>; /** * * @summary Remove Contact Managers associations. * @param {string} contactId Contact ID associated with. * @param {Array} etag Set of unique ID(s) to remove. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ deleteManagers(contactId: string, etag: Array, fields?: Array, options?: any): Promise>; /** * * @summary Search the Contact\'s Managers. * @param {string} contactId Contact ID associated with. * @param {number} [page] Page number of result. offset = ((page-1)*size) * @param {number} [size] Size of result page. limit = (size++) * @param {string} [q] Search term: user name; `?` - matches any one character `*` - matches 0 or more characters * @param {Array} [sort] Sort the result according to fields. * @param {Array} [fields] Fields to be retrieved as a result. * @param {Array} [id] Record(s) with unique ID only. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ listManagers(contactId: string, page?: number, size?: number, q?: string, sort?: Array, fields?: Array, id?: Array, options?: any): Promise>; /** * * @summary Locate the manager address link. * @param {string} contactId Contact source ID. * @param {string} etag Unique manager link IDentifier. Accept: `etag` (obsolete+) or `id`. * @param {Array} [fields] Fields to be retrieved into result. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ locateManager(contactId: string, etag: string, fields?: Array, options?: any): Promise>; /** * * @summary Associate new Managers to the Contact. * @param {string} contactId Link contact ID. * @param {Array} input Array of the unique User(s) to associate with the Contact. Any duplicate of an already linked user{id} will result in an error. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ mergeManagers(contactId: string, input: Array, fields?: Array, options?: any): Promise>; /** * * @summary Reset Managers to fit the specified final set. * @param {string} contactId Contact ID associated with. * @param {Array} input Final set of unique User(s) to be linked with the Contact. User(s) that are already linked with the Contact but not listed here will be removed. The first element will become `primary` if no other specified. * @param {Array} [fields] Fields to be retrieved as a result. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ resetManagers(contactId: string, input: Array, fields?: Array, options?: any): Promise>; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ updateManager(contactId: string, etag: string, input: NEWUpdateOfTheManagerLink, fields?: Array, options?: any): Promise>; /** * * @summary Update the contact\'s manager address link details * @param {string} contactId Link contact ID. * @param {string} etag Unique ID of the latest version of an existing resource. * @param {NEWUpdateOfTheManagerLink1} input * @param {Array} [fields] Fields to be retrieved into result of changes. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ManagersApi */ updateManager2(contactId: string, etag: string, input: NEWUpdateOfTheManagerLink1, fields?: Array, options?: any): Promise>; } //# sourceMappingURL=managers-api.d.ts.map