// 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';
/**
 * DictionariesApi - axios parameter creator
 * @export
 */
export const DictionariesApiAxiosParamCreator = function (configuration) {
    return {
        /**
         * (Record) {
         * @summary Create a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {object} record Record data.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createData: async (repo, record, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling createData.');
            }
            // verify required parameter 'record' is not null or undefined
            if (record === null || record === undefined) {
                throw new RequiredError('record', 'Required parameter record was null or undefined when calling createData.');
            }
            const localVarPath = `/dictionaries/{repo}`.replace(`{${'repo'}}`, encodeURIComponent(String(repo)));
            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;
            }
            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 record !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(record !== undefined ? record : {})
                : record || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * (Dictionary) {
         * @summary Create custom dictionary.
         * @param {string} repo NEW [&#x60;types.repo&#x60;] repository name, e.g.: &#x60;countries&#x60;.
         * @param {WebitelProtoDataInputDictionary} input NEW dictionary [type] definition.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createType: async (repo, input, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling createType.');
            }
            // 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 createType.');
            }
            const localVarPath = `/types/dictionaries/{repo}`.replace(`{${'repo'}}`, encodeURIComponent(String(repo)));
            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;
            }
            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 dictionary records.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {Array<string>} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteData: async (repo, id, fields, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling deleteData.');
            }
            // 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 deleteData.');
            }
            const localVarPath = `/dictionaries/{repo}`.replace(`{${'repo'}}`, encodeURIComponent(String(repo)));
            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;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            if (id) {
                localVarQueryParameter['id'] = id;
            }
            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 Delete a dictionary records.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {Array<string>} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteData2: async (repo, id, fields, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling deleteData2.');
            }
            // 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 deleteData2.');
            }
            const localVarPath = `/dictionaries/{repo}/{id}`
                .replace(`{${'repo'}}`, encodeURIComponent(String(repo)))
                .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;
            }
            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,
            };
        },
        /**
         * (DictionaryList) {
         * @summary Delete custom dictionaries.
         * @param {Array<string>} repo &#x60;types.repo&#x60;  // &#x60;record.pk&#x60;  repeated string id &#x3D; 3;
         * @param {Array<string>} [fields] Fields to retrive into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteType: async (repo, fields, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling deleteType.');
            }
            const localVarPath = `/types/dictionaries`;
            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;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            if (repo) {
                localVarQueryParameter['repo'] = repo;
            }
            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 Import dataset from CSV file.
         * @param {string} repo &#x60;types.repo&#x60;
         * @param {InlineObject2} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        importCSV: async (repo, body, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling importCSV.');
            }
            // verify required parameter 'body' is not null or undefined
            if (body === null || body === undefined) {
                throw new RequiredError('body', 'Required parameter body was null or undefined when calling importCSV.');
            }
            const localVarPath = `/dictionaries/{repo}/csv`.replace(`{${'repo'}}`, encodeURIComponent(String(repo)));
            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;
            }
            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 body !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(body !== undefined ? body : {})
                : body || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * (Record) {
         * @summary Locate a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {string} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateData: async (repo, id, fields, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling locateData.');
            }
            // 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 locateData.');
            }
            const localVarPath = `/dictionaries/{repo}/{id}`
                .replace(`{${'repo'}}`, encodeURIComponent(String(repo)))
                .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,
            };
        },
        /**
         * (Dictionary) {
         * @summary Locate the dictionary type.
         * @param {string} repo &#x60;types.repo&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateType: async (repo, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling locateType.');
            }
            const localVarPath = `/types/dictionaries/{repo}`.replace(`{${'repo'}}`, encodeURIComponent(String(repo)));
            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;
            }
            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 Lookup a dictionary dataset.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {number} [size] Number of result records (per page). Default: 16.
         * @param {number} [page] Page number of result set of records. Default: 1.
         * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
         * @param {Array<string>} [id] [&#x60;record.id&#x60;]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchData: async (repo, size, page, sort, fields, q, id, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling searchData.');
            }
            const localVarPath = `/dictionaries/{repo}`.replace(`{${'repo'}}`, encodeURIComponent(String(repo)));
            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 (size !== undefined) {
                localVarQueryParameter['size'] = size;
            }
            if (page !== undefined) {
                localVarQueryParameter['page'] = page;
            }
            if (sort) {
                localVarQueryParameter['sort'] = sort;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            if (q !== undefined) {
                localVarQueryParameter['q'] = q;
            }
            if (id) {
                localVarQueryParameter['id'] = id;
            }
            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 Lookup dictionaries data types.
         * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
         * @param {string} [id] &#x60;types.id&#x60;
         * @param {string} [name] &#x60;types.name&#x60;
         * @param {string} [repo] &#x60;types.repo&#x60;
         * @param {string} [path] &#x60;types.path&#x60;
         * @param {boolean} [readonly] [NOT] [ system / custom ] types only
         * @param {boolean} [extendable] [NOT] Extend[able] types only.
         * @param {boolean} [extensions] [NOT] include extensions/_* types.
         * @param {boolean} [extended] [NOT] Extend[ed] types only.
         * @param {boolean} [administered] [NOT] Administer access control only
         * @param {number} [size] Number of result records (per page). Default: 16.
         * @param {number} [page] Page number of result set of records. Default: 1.
         * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchType: async (q, id, name, repo, path, readonly, extendable, extensions, extended, administered, size, page, sort, fields, options = {}) => {
            const localVarPath = `/types/dictionaries`;
            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 (q !== undefined) {
                localVarQueryParameter['q'] = q;
            }
            if (id !== undefined) {
                localVarQueryParameter['id'] = id;
            }
            if (name !== undefined) {
                localVarQueryParameter['name'] = name;
            }
            if (repo !== undefined) {
                localVarQueryParameter['repo'] = repo;
            }
            if (path !== undefined) {
                localVarQueryParameter['path'] = path;
            }
            if (readonly !== undefined) {
                localVarQueryParameter['readonly'] = readonly;
            }
            if (extendable !== undefined) {
                localVarQueryParameter['extendable'] = extendable;
            }
            if (extensions !== undefined) {
                localVarQueryParameter['extensions'] = extensions;
            }
            if (extended !== undefined) {
                localVarQueryParameter['extended'] = extended;
            }
            if (administered !== undefined) {
                localVarQueryParameter['administered'] = administered;
            }
            if (size !== undefined) {
                localVarQueryParameter['size'] = size;
            }
            if (page !== undefined) {
                localVarQueryParameter['page'] = page;
            }
            if (sort) {
                localVarQueryParameter['sort'] = sort;
            }
            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,
            };
        },
        /**
         * (Record) {
         * @summary Update a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;] data source
         * @param {string} id [&#x60;record.id&#x60;] for update
         * @param {object} record Record data fields changes.
         * @param {Array<string>} [fields] Source Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateData: async (repo, id, record, fields, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling updateData.');
            }
            // 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 updateData.');
            }
            // verify required parameter 'record' is not null or undefined
            if (record === null || record === undefined) {
                throw new RequiredError('record', 'Required parameter record was null or undefined when calling updateData.');
            }
            const localVarPath = `/dictionaries/{repo}/{id}`
                .replace(`{${'repo'}}`, encodeURIComponent(String(repo)))
                .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 record !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(record !== undefined ? record : {})
                : record || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * (Record) {
         * @summary Update a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;] data source
         * @param {string} id [&#x60;record.id&#x60;] for update
         * @param {object} record Record data fields changes.
         * @param {Array<string>} [fields] Source Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateData2: async (repo, id, record, fields, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling updateData2.');
            }
            // 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 updateData2.');
            }
            // verify required parameter 'record' is not null or undefined
            if (record === null || record === undefined) {
                throw new RequiredError('record', 'Required parameter record was null or undefined when calling updateData2.');
            }
            const localVarPath = `/dictionaries/{repo}/{id}`
                .replace(`{${'repo'}}`, encodeURIComponent(String(repo)))
                .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 record !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(record !== undefined ? record : {})
                : record || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * (Dictionary) {
         * @summary Update custom dictionary.
         * @param {string} repo [**repo**] name of the dataset type, e.g.: &#x60;countries&#x60;.
         * @param {WebitelProtoDataInputDictionary} input The dictionary [**type**] changes.
         * @param {Array<string>} [fields] Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateType: async (repo, input, fields, options = {}) => {
            // verify required parameter 'repo' is not null or undefined
            if (repo === null || repo === undefined) {
                throw new RequiredError('repo', 'Required parameter repo was null or undefined when calling updateType.');
            }
            // 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 updateType.');
            }
            const localVarPath = `/types/dictionaries/{repo}`.replace(`{${'repo'}}`, encodeURIComponent(String(repo)));
            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,
            };
        },
    };
};
/**
 * DictionariesApi - functional programming interface
 * @export
 */
export const DictionariesApiFp = function (configuration) {
    return {
        /**
         * (Record) {
         * @summary Create a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {object} record Record data.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createData(repo, record, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).createData(repo, record, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         * (Dictionary) {
         * @summary Create custom dictionary.
         * @param {string} repo NEW [&#x60;types.repo&#x60;] repository name, e.g.: &#x60;countries&#x60;.
         * @param {WebitelProtoDataInputDictionary} input NEW dictionary [type] definition.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createType(repo, input, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).createType(repo, input, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Delete a dictionary records.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {Array<string>} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteData(repo, id, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).deleteData(repo, id, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Delete a dictionary records.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {Array<string>} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteData2(repo, id, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).deleteData2(repo, id, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         * (DictionaryList) {
         * @summary Delete custom dictionaries.
         * @param {Array<string>} repo &#x60;types.repo&#x60;  // &#x60;record.pk&#x60;  repeated string id &#x3D; 3;
         * @param {Array<string>} [fields] Fields to retrive into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteType(repo, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).deleteType(repo, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Import dataset from CSV file.
         * @param {string} repo &#x60;types.repo&#x60;
         * @param {InlineObject2} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async importCSV(repo, body, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).importCSV(repo, body, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         * (Record) {
         * @summary Locate a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {string} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async locateData(repo, id, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).locateData(repo, id, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         * (Dictionary) {
         * @summary Locate the dictionary type.
         * @param {string} repo &#x60;types.repo&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async locateType(repo, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).locateType(repo, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Lookup a dictionary dataset.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {number} [size] Number of result records (per page). Default: 16.
         * @param {number} [page] Page number of result set of records. Default: 1.
         * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
         * @param {Array<string>} [id] [&#x60;record.id&#x60;]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async searchData(repo, size, page, sort, fields, q, id, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).searchData(repo, size, page, sort, fields, q, id, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @summary Lookup dictionaries data types.
         * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
         * @param {string} [id] &#x60;types.id&#x60;
         * @param {string} [name] &#x60;types.name&#x60;
         * @param {string} [repo] &#x60;types.repo&#x60;
         * @param {string} [path] &#x60;types.path&#x60;
         * @param {boolean} [readonly] [NOT] [ system / custom ] types only
         * @param {boolean} [extendable] [NOT] Extend[able] types only.
         * @param {boolean} [extensions] [NOT] include extensions/_* types.
         * @param {boolean} [extended] [NOT] Extend[ed] types only.
         * @param {boolean} [administered] [NOT] Administer access control only
         * @param {number} [size] Number of result records (per page). Default: 16.
         * @param {number} [page] Page number of result set of records. Default: 1.
         * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async searchType(q, id, name, repo, path, readonly, extendable, extensions, extended, administered, size, page, sort, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).searchType(q, id, name, repo, path, readonly, extendable, extensions, extended, administered, size, page, sort, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         * (Record) {
         * @summary Update a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;] data source
         * @param {string} id [&#x60;record.id&#x60;] for update
         * @param {object} record Record data fields changes.
         * @param {Array<string>} [fields] Source Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateData(repo, id, record, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).updateData(repo, id, record, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         * (Record) {
         * @summary Update a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;] data source
         * @param {string} id [&#x60;record.id&#x60;] for update
         * @param {object} record Record data fields changes.
         * @param {Array<string>} [fields] Source Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateData2(repo, id, record, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).updateData2(repo, id, record, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         * (Dictionary) {
         * @summary Update custom dictionary.
         * @param {string} repo [**repo**] name of the dataset type, e.g.: &#x60;countries&#x60;.
         * @param {WebitelProtoDataInputDictionary} input The dictionary [**type**] changes.
         * @param {Array<string>} [fields] Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateType(repo, input, fields, options) {
            const localVarAxiosArgs = await DictionariesApiAxiosParamCreator(configuration).updateType(repo, input, fields, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
    };
};
/**
 * DictionariesApi - factory interface
 * @export
 */
export const DictionariesApiFactory = function (configuration, basePath, axios) {
    return {
        /**
         * (Record) {
         * @summary Create a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {object} record Record data.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createData(repo, record, options) {
            return DictionariesApiFp(configuration)
                .createData(repo, record, options)
                .then((request) => request(axios, basePath));
        },
        /**
         * (Dictionary) {
         * @summary Create custom dictionary.
         * @param {string} repo NEW [&#x60;types.repo&#x60;] repository name, e.g.: &#x60;countries&#x60;.
         * @param {WebitelProtoDataInputDictionary} input NEW dictionary [type] definition.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createType(repo, input, options) {
            return DictionariesApiFp(configuration)
                .createType(repo, input, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Delete a dictionary records.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {Array<string>} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteData(repo, id, fields, options) {
            return DictionariesApiFp(configuration)
                .deleteData(repo, id, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Delete a dictionary records.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {Array<string>} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteData2(repo, id, fields, options) {
            return DictionariesApiFp(configuration)
                .deleteData2(repo, id, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         * (DictionaryList) {
         * @summary Delete custom dictionaries.
         * @param {Array<string>} repo &#x60;types.repo&#x60;  // &#x60;record.pk&#x60;  repeated string id &#x3D; 3;
         * @param {Array<string>} [fields] Fields to retrive into result dataset.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteType(repo, fields, options) {
            return DictionariesApiFp(configuration)
                .deleteType(repo, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Import dataset from CSV file.
         * @param {string} repo &#x60;types.repo&#x60;
         * @param {InlineObject2} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        importCSV(repo, body, options) {
            return DictionariesApiFp(configuration)
                .importCSV(repo, body, options)
                .then((request) => request(axios, basePath));
        },
        /**
         * (Record) {
         * @summary Locate a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {string} id [&#x60;record.id&#x60;]
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateData(repo, id, fields, options) {
            return DictionariesApiFp(configuration)
                .locateData(repo, id, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         * (Dictionary) {
         * @summary Locate the dictionary type.
         * @param {string} repo &#x60;types.repo&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        locateType(repo, options) {
            return DictionariesApiFp(configuration)
                .locateType(repo, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Lookup a dictionary dataset.
         * @param {string} repo [&#x60;types.repo&#x60;]
         * @param {number} [size] Number of result records (per page). Default: 16.
         * @param {number} [page] Page number of result set of records. Default: 1.
         * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
         * @param {Array<string>} [id] [&#x60;record.id&#x60;]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchData(repo, size, page, sort, fields, q, id, options) {
            return DictionariesApiFp(configuration)
                .searchData(repo, size, page, sort, fields, q, id, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary Lookup dictionaries data types.
         * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
         * @param {string} [id] &#x60;types.id&#x60;
         * @param {string} [name] &#x60;types.name&#x60;
         * @param {string} [repo] &#x60;types.repo&#x60;
         * @param {string} [path] &#x60;types.path&#x60;
         * @param {boolean} [readonly] [NOT] [ system / custom ] types only
         * @param {boolean} [extendable] [NOT] Extend[able] types only.
         * @param {boolean} [extensions] [NOT] include extensions/_* types.
         * @param {boolean} [extended] [NOT] Extend[ed] types only.
         * @param {boolean} [administered] [NOT] Administer access control only
         * @param {number} [size] Number of result records (per page). Default: 16.
         * @param {number} [page] Page number of result set of records. Default: 1.
         * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
         * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchType(q, id, name, repo, path, readonly, extendable, extensions, extended, administered, size, page, sort, fields, options) {
            return DictionariesApiFp(configuration)
                .searchType(q, id, name, repo, path, readonly, extendable, extensions, extended, administered, size, page, sort, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         * (Record) {
         * @summary Update a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;] data source
         * @param {string} id [&#x60;record.id&#x60;] for update
         * @param {object} record Record data fields changes.
         * @param {Array<string>} [fields] Source Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateData(repo, id, record, fields, options) {
            return DictionariesApiFp(configuration)
                .updateData(repo, id, record, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         * (Record) {
         * @summary Update a dictionary record.
         * @param {string} repo [&#x60;types.repo&#x60;] data source
         * @param {string} id [&#x60;record.id&#x60;] for update
         * @param {object} record Record data fields changes.
         * @param {Array<string>} [fields] Source Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateData2(repo, id, record, fields, options) {
            return DictionariesApiFp(configuration)
                .updateData2(repo, id, record, fields, options)
                .then((request) => request(axios, basePath));
        },
        /**
         * (Dictionary) {
         * @summary Update custom dictionary.
         * @param {string} repo [**repo**] name of the dataset type, e.g.: &#x60;countries&#x60;.
         * @param {WebitelProtoDataInputDictionary} input The dictionary [**type**] changes.
         * @param {Array<string>} [fields] Fields to return into result.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateType(repo, input, fields, options) {
            return DictionariesApiFp(configuration)
                .updateType(repo, input, fields, options)
                .then((request) => request(axios, basePath));
        },
    };
};
/**
 * DictionariesApi - object-oriented interface
 * @export
 * @class DictionariesApi
 * @extends {BaseAPI}
 */
export class DictionariesApi extends BaseAPI {
    /**
     * (Record) {
     * @summary Create a dictionary record.
     * @param {string} repo [&#x60;types.repo&#x60;]
     * @param {object} record Record data.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    createData(repo, record, options) {
        return DictionariesApiFp(this.configuration)
            .createData(repo, record, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     * (Dictionary) {
     * @summary Create custom dictionary.
     * @param {string} repo NEW [&#x60;types.repo&#x60;] repository name, e.g.: &#x60;countries&#x60;.
     * @param {WebitelProtoDataInputDictionary} input NEW dictionary [type] definition.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    createType(repo, input, options) {
        return DictionariesApiFp(this.configuration)
            .createType(repo, input, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Delete a dictionary records.
     * @param {string} repo [&#x60;types.repo&#x60;]
     * @param {Array<string>} id [&#x60;record.id&#x60;]
     * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    deleteData(repo, id, fields, options) {
        return DictionariesApiFp(this.configuration)
            .deleteData(repo, id, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Delete a dictionary records.
     * @param {string} repo [&#x60;types.repo&#x60;]
     * @param {Array<string>} id [&#x60;record.id&#x60;]
     * @param {Array<string>} [fields] Fields to be retrieved into result dataset.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    deleteData2(repo, id, fields, options) {
        return DictionariesApiFp(this.configuration)
            .deleteData2(repo, id, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     * (DictionaryList) {
     * @summary Delete custom dictionaries.
     * @param {Array<string>} repo &#x60;types.repo&#x60;  // &#x60;record.pk&#x60;  repeated string id &#x3D; 3;
     * @param {Array<string>} [fields] Fields to retrive into result dataset.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    deleteType(repo, fields, options) {
        return DictionariesApiFp(this.configuration)
            .deleteType(repo, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Import dataset from CSV file.
     * @param {string} repo &#x60;types.repo&#x60;
     * @param {InlineObject2} body
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    importCSV(repo, body, options) {
        return DictionariesApiFp(this.configuration)
            .importCSV(repo, body, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     * (Record) {
     * @summary Locate a dictionary record.
     * @param {string} repo [&#x60;types.repo&#x60;]
     * @param {string} id [&#x60;record.id&#x60;]
     * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    locateData(repo, id, fields, options) {
        return DictionariesApiFp(this.configuration)
            .locateData(repo, id, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     * (Dictionary) {
     * @summary Locate the dictionary type.
     * @param {string} repo &#x60;types.repo&#x60;
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    locateType(repo, options) {
        return DictionariesApiFp(this.configuration)
            .locateType(repo, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Lookup a dictionary dataset.
     * @param {string} repo [&#x60;types.repo&#x60;]
     * @param {number} [size] Number of result records (per page). Default: 16.
     * @param {number} [page] Page number of result set of records. Default: 1.
     * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
     * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
     * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
     * @param {Array<string>} [id] [&#x60;record.id&#x60;]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    searchData(repo, size, page, sort, fields, q, id, options) {
        return DictionariesApiFp(this.configuration)
            .searchData(repo, size, page, sort, fields, q, id, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary Lookup dictionaries data types.
     * @param {string} [q] Search term: &#x60;?&#x60; - matches any character &#x60;*&#x60; - matches 0 or more characters e.g.: name,emails{type},labels etc...
     * @param {string} [id] &#x60;types.id&#x60;
     * @param {string} [name] &#x60;types.name&#x60;
     * @param {string} [repo] &#x60;types.repo&#x60;
     * @param {string} [path] &#x60;types.path&#x60;
     * @param {boolean} [readonly] [NOT] [ system / custom ] types only
     * @param {boolean} [extendable] [NOT] Extend[able] types only.
     * @param {boolean} [extensions] [NOT] include extensions/_* types.
     * @param {boolean} [extended] [NOT] Extend[ed] types only.
     * @param {boolean} [administered] [NOT] Administer access control only
     * @param {number} [size] Number of result records (per page). Default: 16.
     * @param {number} [page] Page number of result set of records. Default: 1.
     * @param {Array<string>} [sort] Sort result dataset of records by fields. &#x60;&#x60;&#x60; sort ::&#x3D; *( ORDER name )  ORDER  &#x3D; ASC / DESC DESC   &#x3D; \&quot;-\&quot; / \&quot;!\&quot; ASC    &#x3D; [ \&quot;+\&quot; ]   ; Default &#x60;&#x60;&#x60;  Fields available  - &#x60;id&#x60;(seq) - &#x60;domain&#x60;{name} - &#x60;created_at&#x60; - &#x60;created_by&#x60;{name} - &#x60;updated_at&#x60; - &#x60;updated_by&#x60;{name}  Use ?fields&#x3D;&#x60;field.sort()&#x60; option to sort Edge fields.
     * @param {Array<string>} [fields] Fields [Q]uery to build result dataset record. &#x60;&#x60;&#x60; fields ::&#x3D; field [ *( \&quot;,\&quot; field ) ] field  ::&#x3D; name [ *( func ) ] [ inner ] inner  ::&#x3D; \&quot;{\&quot; fields \&quot;}\&quot; funcs  ::&#x3D; *( func ) func   ::&#x3D; \&quot;.\&quot; name \&quot;(\&quot; [ args ] \&quot;)\&quot; name   ::&#x3D; ALPHA / DIGIT / USCORE  ALPHA    &#x3D; %x41-5A / %x61-7A  ; \&quot;A\&quot;-\&quot;Z\&quot; / \&quot;a\&quot;-\&quot;z\&quot; DIGIT    &#x3D; %x30-39            ; \&quot;0\&quot;-\&quot;9\&quot; USCORE   &#x3D; %x5F ; underscore  ; \&quot;_\&quot; &#x60;&#x60;&#x60;
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    searchType(q, id, name, repo, path, readonly, extendable, extensions, extended, administered, size, page, sort, fields, options) {
        return DictionariesApiFp(this.configuration)
            .searchType(q, id, name, repo, path, readonly, extendable, extensions, extended, administered, size, page, sort, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     * (Record) {
     * @summary Update a dictionary record.
     * @param {string} repo [&#x60;types.repo&#x60;] data source
     * @param {string} id [&#x60;record.id&#x60;] for update
     * @param {object} record Record data fields changes.
     * @param {Array<string>} [fields] Source Fields to return into result.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    updateData(repo, id, record, fields, options) {
        return DictionariesApiFp(this.configuration)
            .updateData(repo, id, record, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     * (Record) {
     * @summary Update a dictionary record.
     * @param {string} repo [&#x60;types.repo&#x60;] data source
     * @param {string} id [&#x60;record.id&#x60;] for update
     * @param {object} record Record data fields changes.
     * @param {Array<string>} [fields] Source Fields to return into result.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    updateData2(repo, id, record, fields, options) {
        return DictionariesApiFp(this.configuration)
            .updateData2(repo, id, record, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     * (Dictionary) {
     * @summary Update custom dictionary.
     * @param {string} repo [**repo**] name of the dataset type, e.g.: &#x60;countries&#x60;.
     * @param {WebitelProtoDataInputDictionary} input The dictionary [**type**] changes.
     * @param {Array<string>} [fields] Fields to return into result.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof DictionariesApi
     */
    updateType(repo, input, fields, options) {
        return DictionariesApiFp(this.configuration)
            .updateType(repo, input, fields, options)
            .then((request) => request(this.axios, this.basePath));
    }
}
//# sourceMappingURL=dictionaries-api.js.map