// tslint:disable
/**
 * 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 * as globalImportUrl from 'url';
import globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH, BaseAPI, RequiredError, } from '../base';
/**
 * StatusConditionsApi - axios parameter creator
 * @export
 */
export const StatusConditionsApiAxiosParamCreator = function (configuration) {
    return {
        /**
         *
         * @summary Create a new status condition
         * @param {string} statusId
         * @param {WebitelCasesInputCreateStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createStatusCondition: async (statusId, input, fields, options = {}) => {
            // verify required parameter 'statusId' is not null or undefined
            if (statusId === null || statusId === undefined) {
                throw new RequiredError('statusId', 'Required parameter statusId was null or undefined when calling createStatusCondition.');
            }
            // verify required parameter 'input' is not null or undefined
            if (input === null || input === undefined) {
                throw new RequiredError('input', 'Required parameter input was null or undefined when calling createStatusCondition.');
            }
            const localVarPath = `/statuses/{status_id}/status`.replace(`{${'status_id'}}`, encodeURIComponent(String(statusId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'POST',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            const needsSerialization = typeof input !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(input !== undefined ? input : {})
                : input || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Delete a status condition
         * @param {string} statusId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteStatusCondition: async (statusId, id, options = {}) => {
            // verify required parameter 'statusId' is not null or undefined
            if (statusId === null || statusId === undefined) {
                throw new RequiredError('statusId', 'Required parameter statusId was null or undefined when calling deleteStatusCondition.');
            }
            // verify required parameter 'id' is not null or undefined
            if (id === null || id === undefined) {
                throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteStatusCondition.');
            }
            const localVarPath = `/statuses/{status_id}/status/{id}`
                .replace(`{${'status_id'}}`, encodeURIComponent(String(statusId)))
                .replace(`{${'id'}}`, encodeURIComponent(String(id)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'DELETE',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Retrieve a list of statuses or search status conditions
         * @param {string} statusId Filter by Status Id.
         * @param {number} [page] Page number of result dataset records. offset &#x3D; (page*size)
         * @param {number} [size] Size count of records on result page. limit &#x3D; (size++)
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {string} [sort] Sort the result according to fields.
         * @param {Array<string>} [id] Filter by unique IDs.
         * @param {string} [q] Search query string for filtering by name. Supports: - Wildcards (*) for substring matching - Placeholder (?) for single character substitution - Exact match for full names
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listStatusConditions: async (statusId, page, size, fields, sort, id, q, options = {}) => {
            // verify required parameter 'statusId' is not null or undefined
            if (statusId === null || statusId === undefined) {
                throw new RequiredError('statusId', 'Required parameter statusId was null or undefined when calling listStatusConditions.');
            }
            const localVarPath = `/statuses/{status_id}/status`.replace(`{${'status_id'}}`, encodeURIComponent(String(statusId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'GET',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (page !== undefined) {
                localVarQueryParameter['page'] = page;
            }
            if (size !== undefined) {
                localVarQueryParameter['size'] = size;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            if (sort !== undefined) {
                localVarQueryParameter['sort'] = sort;
            }
            if (id) {
                localVarQueryParameter['id'] = id;
            }
            if (q !== undefined) {
                localVarQueryParameter['q'] = q;
            }
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Locate a status condition by ID
         * @param {string} statusId ID of the status to be located
         * @param {string} id ID of the status condition to be located
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateStatusCondition: async (statusId, id, fields, options = {}) => {
            // verify required parameter 'statusId' is not null or undefined
            if (statusId === null || statusId === undefined) {
                throw new RequiredError('statusId', 'Required parameter statusId was null or undefined when calling locateStatusCondition.');
            }
            // verify required parameter 'id' is not null or undefined
            if (id === null || id === undefined) {
                throw new RequiredError('id', 'Required parameter id was null or undefined when calling locateStatusCondition.');
            }
            const localVarPath = `/statuses/{status_id}/status/{id}`
                .replace(`{${'status_id'}}`, encodeURIComponent(String(statusId)))
                .replace(`{${'id'}}`, encodeURIComponent(String(id)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'GET',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Update an existing status condition
         * @param {string} statusId
         * @param {string} id
         * @param {WebitelCasesInputStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateStatusCondition: async (statusId, id, input, fields, options = {}) => {
            // verify required parameter 'statusId' is not null or undefined
            if (statusId === null || statusId === undefined) {
                throw new RequiredError('statusId', 'Required parameter statusId was null or undefined when calling updateStatusCondition.');
            }
            // verify required parameter 'id' is not null or undefined
            if (id === null || id === undefined) {
                throw new RequiredError('id', 'Required parameter id was null or undefined when calling updateStatusCondition.');
            }
            // verify required parameter 'input' is not null or undefined
            if (input === null || input === undefined) {
                throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateStatusCondition.');
            }
            const localVarPath = `/statuses/{status_id}/status/{id}`
                .replace(`{${'status_id'}}`, encodeURIComponent(String(statusId)))
                .replace(`{${'id'}}`, encodeURIComponent(String(id)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'PUT',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            const needsSerialization = typeof input !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(input !== undefined ? input : {})
                : input || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary Update an existing status condition
         * @param {string} statusId
         * @param {string} id
         * @param {WebitelCasesInputStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateStatusCondition2: async (statusId, id, input, fields, options = {}) => {
            // verify required parameter 'statusId' is not null or undefined
            if (statusId === null || statusId === undefined) {
                throw new RequiredError('statusId', 'Required parameter statusId was null or undefined when calling updateStatusCondition2.');
            }
            // verify required parameter 'id' is not null or undefined
            if (id === null || id === undefined) {
                throw new RequiredError('id', 'Required parameter id was null or undefined when calling updateStatusCondition2.');
            }
            // verify required parameter 'input' is not null or undefined
            if (input === null || input === undefined) {
                throw new RequiredError('input', 'Required parameter input was null or undefined when calling updateStatusCondition2.');
            }
            const localVarPath = `/statuses/{status_id}/status/{id}`
                .replace(`{${'status_id'}}`, encodeURIComponent(String(statusId)))
                .replace(`{${'id'}}`, encodeURIComponent(String(id)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'PATCH',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            const needsSerialization = typeof input !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(input !== undefined ? input : {})
                : input || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    };
};
/**
 * StatusConditionsApi - functional programming interface
 * @export
 */
export const StatusConditionsApiFp = function (configuration) {
    return {
        /**
         *
         * @summary Create a new status condition
         * @param {string} statusId
         * @param {WebitelCasesInputCreateStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createStatusCondition(statusId, input, fields, options) {
            const localVarAxiosArgs = await StatusConditionsApiAxiosParamCreator(configuration).createStatusCondition(statusId, input, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Delete a status condition
         * @param {string} statusId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteStatusCondition(statusId, id, options) {
            const localVarAxiosArgs = await StatusConditionsApiAxiosParamCreator(configuration).deleteStatusCondition(statusId, id, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Retrieve a list of statuses or search status conditions
         * @param {string} statusId Filter by Status Id.
         * @param {number} [page] Page number of result dataset records. offset &#x3D; (page*size)
         * @param {number} [size] Size count of records on result page. limit &#x3D; (size++)
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {string} [sort] Sort the result according to fields.
         * @param {Array<string>} [id] Filter by unique IDs.
         * @param {string} [q] Search query string for filtering by name. Supports: - Wildcards (*) for substring matching - Placeholder (?) for single character substitution - Exact match for full names
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async listStatusConditions(statusId, page, size, fields, sort, id, q, options) {
            const localVarAxiosArgs = await StatusConditionsApiAxiosParamCreator(configuration).listStatusConditions(statusId, page, size, fields, sort, id, q, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Locate a status condition by ID
         * @param {string} statusId ID of the status to be located
         * @param {string} id ID of the status condition to be located
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async locateStatusCondition(statusId, id, fields, options) {
            const localVarAxiosArgs = await StatusConditionsApiAxiosParamCreator(configuration).locateStatusCondition(statusId, id, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Update an existing status condition
         * @param {string} statusId
         * @param {string} id
         * @param {WebitelCasesInputStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateStatusCondition(statusId, id, input, fields, options) {
            const localVarAxiosArgs = await StatusConditionsApiAxiosParamCreator(configuration).updateStatusCondition(statusId, id, input, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Update an existing status condition
         * @param {string} statusId
         * @param {string} id
         * @param {WebitelCasesInputStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateStatusCondition2(statusId, id, input, fields, options) {
            const localVarAxiosArgs = await StatusConditionsApiAxiosParamCreator(configuration).updateStatusCondition2(statusId, id, input, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
    };
};
/**
 * StatusConditionsApi - factory interface
 * @export
 */
export const StatusConditionsApiFactory = function (configuration, basePath, axios) {
    return {
        /**
         *
         * @summary Create a new status condition
         * @param {string} statusId
         * @param {WebitelCasesInputCreateStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createStatusCondition(statusId, input, fields, options) {
            return StatusConditionsApiFp(configuration)
                .createStatusCondition(statusId, input, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Delete a status condition
         * @param {string} statusId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteStatusCondition(statusId, id, options) {
            return StatusConditionsApiFp(configuration)
                .deleteStatusCondition(statusId, id, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Retrieve a list of statuses or search status conditions
         * @param {string} statusId Filter by Status Id.
         * @param {number} [page] Page number of result dataset records. offset &#x3D; (page*size)
         * @param {number} [size] Size count of records on result page. limit &#x3D; (size++)
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {string} [sort] Sort the result according to fields.
         * @param {Array<string>} [id] Filter by unique IDs.
         * @param {string} [q] Search query string for filtering by name. Supports: - Wildcards (*) for substring matching - Placeholder (?) for single character substitution - Exact match for full names
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listStatusConditions(statusId, page, size, fields, sort, id, q, options) {
            return StatusConditionsApiFp(configuration)
                .listStatusConditions(statusId, page, size, fields, sort, id, q, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Locate a status condition by ID
         * @param {string} statusId ID of the status to be located
         * @param {string} id ID of the status condition to be located
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateStatusCondition(statusId, id, fields, options) {
            return StatusConditionsApiFp(configuration)
                .locateStatusCondition(statusId, id, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Update an existing status condition
         * @param {string} statusId
         * @param {string} id
         * @param {WebitelCasesInputStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateStatusCondition(statusId, id, input, fields, options) {
            return StatusConditionsApiFp(configuration)
                .updateStatusCondition(statusId, id, input, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Update an existing status condition
         * @param {string} statusId
         * @param {string} id
         * @param {WebitelCasesInputStatusCondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateStatusCondition2(statusId, id, input, fields, options) {
            return StatusConditionsApiFp(configuration)
                .updateStatusCondition2(statusId, id, input, fields, options)
                .then((request) => request(axios, basePath));
        },
    };
};
/**
 * StatusConditionsApi - object-oriented interface
 * @export
 * @class StatusConditionsApi
 * @extends {BaseAPI}
 */
export class StatusConditionsApi extends BaseAPI {
    /**
     *
     * @summary Create a new status condition
     * @param {string} statusId
     * @param {WebitelCasesInputCreateStatusCondition} input
     * @param {Array<string>} [fields]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof StatusConditionsApi
     */
    createStatusCondition(statusId, input, fields, options) {
        return StatusConditionsApiFp(this.configuration)
            .createStatusCondition(statusId, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Delete a status condition
     * @param {string} statusId
     * @param {string} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof StatusConditionsApi
     */
    deleteStatusCondition(statusId, id, options) {
        return StatusConditionsApiFp(this.configuration)
            .deleteStatusCondition(statusId, id, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Retrieve a list of statuses or search status conditions
     * @param {string} statusId Filter by Status Id.
     * @param {number} [page] Page number of result dataset records. offset &#x3D; (page*size)
     * @param {number} [size] Size count of records on result page. limit &#x3D; (size++)
     * @param {Array<string>} [fields] Fields to be retrieved as a result.
     * @param {string} [sort] Sort the result according to fields.
     * @param {Array<string>} [id] Filter by unique IDs.
     * @param {string} [q] Search query string for filtering by name. Supports: - Wildcards (*) for substring matching - Placeholder (?) for single character substitution - Exact match for full names
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof StatusConditionsApi
     */
    listStatusConditions(statusId, page, size, fields, sort, id, q, options) {
        return StatusConditionsApiFp(this.configuration)
            .listStatusConditions(statusId, page, size, fields, sort, id, q, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Locate a status condition by ID
     * @param {string} statusId ID of the status to be located
     * @param {string} id ID of the status condition to be located
     * @param {Array<string>} [fields] Fields to be retrieved as a result.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof StatusConditionsApi
     */
    locateStatusCondition(statusId, id, fields, options) {
        return StatusConditionsApiFp(this.configuration)
            .locateStatusCondition(statusId, id, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Update an existing status condition
     * @param {string} statusId
     * @param {string} id
     * @param {WebitelCasesInputStatusCondition} input
     * @param {Array<string>} [fields]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof StatusConditionsApi
     */
    updateStatusCondition(statusId, id, input, fields, options) {
        return StatusConditionsApiFp(this.configuration)
            .updateStatusCondition(statusId, id, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Update an existing status condition
     * @param {string} statusId
     * @param {string} id
     * @param {WebitelCasesInputStatusCondition} input
     * @param {Array<string>} [fields]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof StatusConditionsApi
     */
    updateStatusCondition2(statusId, id, input, fields, options) {
        return StatusConditionsApiFp(this.configuration)
            .updateStatusCondition2(statusId, id, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
}
//# sourceMappingURL=status-conditions-api.js.map