// 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';
/**
 * SLAConditionsApi - axios parameter creator
 * @export
 */
export const SLAConditionsApiAxiosParamCreator = function (configuration) {
    return {
        /**
         *
         * @summary Create a new SLACondition
         * @param {string} slaId
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createSLACondition: async (slaId, input, fields, options = {}) => {
            // verify required parameter 'slaId' is not null or undefined
            if (slaId === null || slaId === undefined) {
                throw new RequiredError('slaId', 'Required parameter slaId was null or undefined when calling createSLACondition.');
            }
            // 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 createSLACondition.');
            }
            const localVarPath = `/slas/{sla_id}/sla_condition`.replace(`{${'sla_id'}}`, encodeURIComponent(String(slaId)));
            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 an SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteSLACondition: async (slaId, id, options = {}) => {
            // verify required parameter 'slaId' is not null or undefined
            if (slaId === null || slaId === undefined) {
                throw new RequiredError('slaId', 'Required parameter slaId was null or undefined when calling deleteSLACondition.');
            }
            // 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 deleteSLACondition.');
            }
            const localVarPath = `/slas/{sla_id}/sla_condition/{id}`
                .replace(`{${'sla_id'}}`, encodeURIComponent(String(slaId)))
                .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 SLAConditions or search SLACondition conditions
         * @param {string} slaId Filter by SLA 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 {string} [slaConditionId] Filter by SLACondition Id.
         * @param {string} [priorityId] filter by priority id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listSLAConditions: async (slaId, page, size, fields, sort, id, q, slaConditionId, priorityId, options = {}) => {
            // verify required parameter 'slaId' is not null or undefined
            if (slaId === null || slaId === undefined) {
                throw new RequiredError('slaId', 'Required parameter slaId was null or undefined when calling listSLAConditions.');
            }
            const localVarPath = `/slas/{sla_id}/sla_conditions`.replace(`{${'sla_id'}}`, encodeURIComponent(String(slaId)));
            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;
            }
            if (slaConditionId !== undefined) {
                localVarQueryParameter['sla_condition_id'] = slaConditionId;
            }
            if (priorityId !== undefined) {
                localVarQueryParameter['priority_id'] = priorityId;
            }
            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 an SLACondition by ID
         * @param {string} slaId Unique identifier of the SLACondition
         * @param {string} id Unique identifier of the SLACondition
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateSLACondition: async (slaId, id, fields, options = {}) => {
            // verify required parameter 'slaId' is not null or undefined
            if (slaId === null || slaId === undefined) {
                throw new RequiredError('slaId', 'Required parameter slaId was null or undefined when calling locateSLACondition.');
            }
            // 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 locateSLACondition.');
            }
            const localVarPath = `/slas/{sla_id}/sla_condition/{id}`
                .replace(`{${'sla_id'}}`, encodeURIComponent(String(slaId)))
                .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 SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateSLACondition: async (slaId, id, input, fields, options = {}) => {
            // verify required parameter 'slaId' is not null or undefined
            if (slaId === null || slaId === undefined) {
                throw new RequiredError('slaId', 'Required parameter slaId was null or undefined when calling updateSLACondition.');
            }
            // 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 updateSLACondition.');
            }
            // 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 updateSLACondition.');
            }
            const localVarPath = `/slas/{sla_id}/sla_condition/{id}`
                .replace(`{${'sla_id'}}`, encodeURIComponent(String(slaId)))
                .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 SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateSLACondition2: async (slaId, id, input, fields, options = {}) => {
            // verify required parameter 'slaId' is not null or undefined
            if (slaId === null || slaId === undefined) {
                throw new RequiredError('slaId', 'Required parameter slaId was null or undefined when calling updateSLACondition2.');
            }
            // 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 updateSLACondition2.');
            }
            // 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 updateSLACondition2.');
            }
            const localVarPath = `/slas/{sla_id}/sla_condition/{id}`
                .replace(`{${'sla_id'}}`, encodeURIComponent(String(slaId)))
                .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,
            };
        },
    };
};
/**
 * SLAConditionsApi - functional programming interface
 * @export
 */
export const SLAConditionsApiFp = function (configuration) {
    return {
        /**
         *
         * @summary Create a new SLACondition
         * @param {string} slaId
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createSLACondition(slaId, input, fields, options) {
            const localVarAxiosArgs = await SLAConditionsApiAxiosParamCreator(configuration).createSLACondition(slaId, input, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Delete an SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteSLACondition(slaId, id, options) {
            const localVarAxiosArgs = await SLAConditionsApiAxiosParamCreator(configuration).deleteSLACondition(slaId, 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 SLAConditions or search SLACondition conditions
         * @param {string} slaId Filter by SLA 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 {string} [slaConditionId] Filter by SLACondition Id.
         * @param {string} [priorityId] filter by priority id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async listSLAConditions(slaId, page, size, fields, sort, id, q, slaConditionId, priorityId, options) {
            const localVarAxiosArgs = await SLAConditionsApiAxiosParamCreator(configuration).listSLAConditions(slaId, page, size, fields, sort, id, q, slaConditionId, priorityId, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Locate an SLACondition by ID
         * @param {string} slaId Unique identifier of the SLACondition
         * @param {string} id Unique identifier of the SLACondition
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async locateSLACondition(slaId, id, fields, options) {
            const localVarAxiosArgs = await SLAConditionsApiAxiosParamCreator(configuration).locateSLACondition(slaId, 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 SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateSLACondition(slaId, id, input, fields, options) {
            const localVarAxiosArgs = await SLAConditionsApiAxiosParamCreator(configuration).updateSLACondition(slaId, 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 SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateSLACondition2(slaId, id, input, fields, options) {
            const localVarAxiosArgs = await SLAConditionsApiAxiosParamCreator(configuration).updateSLACondition2(slaId, id, input, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
    };
};
/**
 * SLAConditionsApi - factory interface
 * @export
 */
export const SLAConditionsApiFactory = function (configuration, basePath, axios) {
    return {
        /**
         *
         * @summary Create a new SLACondition
         * @param {string} slaId
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createSLACondition(slaId, input, fields, options) {
            return SLAConditionsApiFp(configuration)
                .createSLACondition(slaId, input, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Delete an SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteSLACondition(slaId, id, options) {
            return SLAConditionsApiFp(configuration)
                .deleteSLACondition(slaId, id, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Retrieve a list of SLAConditions or search SLACondition conditions
         * @param {string} slaId Filter by SLA 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 {string} [slaConditionId] Filter by SLACondition Id.
         * @param {string} [priorityId] filter by priority id
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listSLAConditions(slaId, page, size, fields, sort, id, q, slaConditionId, priorityId, options) {
            return SLAConditionsApiFp(configuration)
                .listSLAConditions(slaId, page, size, fields, sort, id, q, slaConditionId, priorityId, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Locate an SLACondition by ID
         * @param {string} slaId Unique identifier of the SLACondition
         * @param {string} id Unique identifier of the SLACondition
         * @param {Array<string>} [fields] Fields to be retrieved as a result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateSLACondition(slaId, id, fields, options) {
            return SLAConditionsApiFp(configuration)
                .locateSLACondition(slaId, id, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Update an existing SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateSLACondition(slaId, id, input, fields, options) {
            return SLAConditionsApiFp(configuration)
                .updateSLACondition(slaId, id, input, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Update an existing SLACondition
         * @param {string} slaId
         * @param {string} id
         * @param {WebitelCasesInputSLACondition} input
         * @param {Array<string>} [fields]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateSLACondition2(slaId, id, input, fields, options) {
            return SLAConditionsApiFp(configuration)
                .updateSLACondition2(slaId, id, input, fields, options)
                .then((request) => request(axios, basePath));
        },
    };
};
/**
 * SLAConditionsApi - object-oriented interface
 * @export
 * @class SLAConditionsApi
 * @extends {BaseAPI}
 */
export class SLAConditionsApi extends BaseAPI {
    /**
     *
     * @summary Create a new SLACondition
     * @param {string} slaId
     * @param {WebitelCasesInputSLACondition} input
     * @param {Array<string>} [fields]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SLAConditionsApi
     */
    createSLACondition(slaId, input, fields, options) {
        return SLAConditionsApiFp(this.configuration)
            .createSLACondition(slaId, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Delete an SLACondition
     * @param {string} slaId
     * @param {string} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SLAConditionsApi
     */
    deleteSLACondition(slaId, id, options) {
        return SLAConditionsApiFp(this.configuration)
            .deleteSLACondition(slaId, id, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Retrieve a list of SLAConditions or search SLACondition conditions
     * @param {string} slaId Filter by SLA 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 {string} [slaConditionId] Filter by SLACondition Id.
     * @param {string} [priorityId] filter by priority id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SLAConditionsApi
     */
    listSLAConditions(slaId, page, size, fields, sort, id, q, slaConditionId, priorityId, options) {
        return SLAConditionsApiFp(this.configuration)
            .listSLAConditions(slaId, page, size, fields, sort, id, q, slaConditionId, priorityId, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Locate an SLACondition by ID
     * @param {string} slaId Unique identifier of the SLACondition
     * @param {string} id Unique identifier of the SLACondition
     * @param {Array<string>} [fields] Fields to be retrieved as a result.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SLAConditionsApi
     */
    locateSLACondition(slaId, id, fields, options) {
        return SLAConditionsApiFp(this.configuration)
            .locateSLACondition(slaId, id, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Update an existing SLACondition
     * @param {string} slaId
     * @param {string} id
     * @param {WebitelCasesInputSLACondition} input
     * @param {Array<string>} [fields]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SLAConditionsApi
     */
    updateSLACondition(slaId, id, input, fields, options) {
        return SLAConditionsApiFp(this.configuration)
            .updateSLACondition(slaId, id, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Update an existing SLACondition
     * @param {string} slaId
     * @param {string} id
     * @param {WebitelCasesInputSLACondition} input
     * @param {Array<string>} [fields]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SLAConditionsApi
     */
    updateSLACondition2(slaId, id, input, fields, options) {
        return SLAConditionsApiFp(this.configuration)
            .updateSLACondition2(slaId, id, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
}
//# sourceMappingURL=slaconditions-api.js.map