/* tslint:disable */
/* eslint-disable */
/**
 * ERVU Subpoena List services
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: evgeniy.rodin@rtlabs.ru
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import { Configuration } from '../configuration';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
// @ts-ignore
import { ChangeAddressArrayDeliveryV1 } from '../models';
// @ts-ignore
import { ChangeAddressRecruitListRequestV1 } from '../models';
// @ts-ignore
import { ListIdsResponse } from '../models';
// @ts-ignore
import { ListOpisRequestV1 } from '../models';
// @ts-ignore
import { ListSearchRequest } from '../models';
// @ts-ignore
import { ListSearchResponseV2 } from '../models';
// @ts-ignore
import { ListsSearchRequest } from '../models';
// @ts-ignore
import { ListsSearchResponseV2 } from '../models';
// @ts-ignore
import { NewListRequestV3 } from '../models';
// @ts-ignore
import { NewListResponse } from '../models';
// @ts-ignore
import { RecruitsListActionResponse } from '../models';
// @ts-ignore
import { S3SchemeV1 } from '../models';
/**
 * SummonListRegistryApi - axios parameter creator
 * @export
 */
export const SummonListRegistryApiAxiosParamCreator = function (configuration?: Configuration) {
    return {
        /**
         * Добавление id граждан в список
         * @summary Добавление id граждан в список
         * @param {string} listId 
         * @param {Array<string>} requestBody 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addRecruitsV2: async (listId: string, requestBody: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('addRecruitsV2', 'listId', listId)
            // verify required parameter 'requestBody' is not null or undefined
            assertParamExists('addRecruitsV2', 'requestBody', requestBody)
            const localVarPath = `/ervu-summon-list-registry/list/v2/{listId}/add`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Метод для изменения способа направления в листе у рекрута
         * @summary Метод для изменения способа направления в листе у рекрута
         * @param {string} listId 
         * @param {Array<ChangeAddressArrayDeliveryV1>} changeAddressArrayDeliveryV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeAddressListSettingsV1: async (listId: string, changeAddressArrayDeliveryV1: Array<ChangeAddressArrayDeliveryV1>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('changeAddressListSettingsV1', 'listId', listId)
            // verify required parameter 'changeAddressArrayDeliveryV1' is not null or undefined
            assertParamExists('changeAddressListSettingsV1', 'changeAddressArrayDeliveryV1', changeAddressArrayDeliveryV1)
            const localVarPath = `/ervu-summon-list-registry/summonedList/updateSendInfo/v1/{listId}`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(changeAddressArrayDeliveryV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Метод для изменения способа направления в листе у рекрута
         * @summary Метод для изменения способа направления в листе у рекрута
         * @param {string} listId 
         * @param {Array<ChangeAddressRecruitListRequestV1>} changeAddressRecruitListRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeAddressSettingsV1: async (listId: string, changeAddressRecruitListRequestV1: Array<ChangeAddressRecruitListRequestV1>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('changeAddressSettingsV1', 'listId', listId)
            // verify required parameter 'changeAddressRecruitListRequestV1' is not null or undefined
            assertParamExists('changeAddressSettingsV1', 'changeAddressRecruitListRequestV1', changeAddressRecruitListRequestV1)
            const localVarPath = `/ervu-summon-list-registry/summonedList/v1/{listId}`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(changeAddressRecruitListRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Добавление id граждан в список
         * @summary Добавление id граждан в список
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeStatusV1: async (listId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('changeStatusV1', 'listId', listId)
            const localVarPath = `/ervu-summon-list-registry/list/v1/{listId}/changeStatus`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Удаление списка
         * @summary Удаление списка
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteListV1: async (listId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('deleteListV1', 'listId', listId)
            const localVarPath = `/ervu-summon-list-registry/list/v1/{listId}`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение id записей по списку
         * @summary Получение id записей по списку
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getListIdsV1: async (listId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('getListIdsV1', 'listId', listId)
            const localVarPath = `/ervu-summon-list-registry/list/v1/{listId}`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получения списков на вызов
         * @summary Получения списков на вызов
         * @param {ListsSearchRequest} listsSearchRequest 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getListsV2: async (listsSearchRequest: ListsSearchRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listsSearchRequest' is not null or undefined
            assertParamExists('getListsV2', 'listsSearchRequest', listsSearchRequest)
            const localVarPath = `/ervu-summon-list-registry/list/v2/search`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(listsSearchRequest, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение списка граждан из одного списка
         * @summary Получение списка граждан из одного списка
         * @param {string} listId 
         * @param {ListSearchRequest} listSearchRequest 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getRecruitsFromListV2: async (listId: string, listSearchRequest: ListSearchRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('getRecruitsFromListV2', 'listId', listId)
            // verify required parameter 'listSearchRequest' is not null or undefined
            assertParamExists('getRecruitsFromListV2', 'listSearchRequest', listSearchRequest)
            const localVarPath = `/ervu-summon-list-registry/list/v2/{listId}/search`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(listSearchRequest, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение файла описи
         * @summary Получение файла описи
         * @param {ListOpisRequestV1} listOpisRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getS3UrlOpisV1: async (listOpisRequestV1: ListOpisRequestV1, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listOpisRequestV1' is not null or undefined
            assertParamExists('getS3UrlOpisV1', 'listOpisRequestV1', listOpisRequestV1)
            const localVarPath = `/ervu-summon-list-registry/v1/opis`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(listOpisRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Создание нового списка
         * @summary Создание нового списка
         * @param {NewListRequestV3} newListRequestV3 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        newListV3: async (newListRequestV3: NewListRequestV3, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'newListRequestV3' is not null or undefined
            assertParamExists('newListV3', 'newListRequestV3', newListRequestV3)
            const localVarPath = `/ervu-summon-list-registry/list/v3/new`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(newListRequestV3, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Удаление id граждан из списка
         * @summary Удаление id граждан из списка
         * @param {string} listId 
         * @param {Array<string>} requestBody 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        removeRecruitsV1: async (listId: string, requestBody: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'listId' is not null or undefined
            assertParamExists('removeRecruitsV1', 'listId', listId)
            // verify required parameter 'requestBody' is not null or undefined
            assertParamExists('removeRecruitsV1', 'requestBody', requestBody)
            const localVarPath = `/ervu-summon-list-registry/list/v1/{listId}/remove`
                .replace(`{${"listId"}}`, encodeURIComponent(String(listId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    }
};

/**
 * SummonListRegistryApi - functional programming interface
 * @export
 */
export const SummonListRegistryApiFp = function(configuration?: Configuration) {
    const localVarAxiosParamCreator = SummonListRegistryApiAxiosParamCreator(configuration)
    return {
        /**
         * Добавление id граждан в список
         * @summary Добавление id граждан в список
         * @param {string} listId 
         * @param {Array<string>} requestBody 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async addRecruitsV2(listId: string, requestBody: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecruitsListActionResponse>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.addRecruitsV2(listId, requestBody, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Метод для изменения способа направления в листе у рекрута
         * @summary Метод для изменения способа направления в листе у рекрута
         * @param {string} listId 
         * @param {Array<ChangeAddressArrayDeliveryV1>} changeAddressArrayDeliveryV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async changeAddressListSettingsV1(listId: string, changeAddressArrayDeliveryV1: Array<ChangeAddressArrayDeliveryV1>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.changeAddressListSettingsV1(listId, changeAddressArrayDeliveryV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Метод для изменения способа направления в листе у рекрута
         * @summary Метод для изменения способа направления в листе у рекрута
         * @param {string} listId 
         * @param {Array<ChangeAddressRecruitListRequestV1>} changeAddressRecruitListRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async changeAddressSettingsV1(listId: string, changeAddressRecruitListRequestV1: Array<ChangeAddressRecruitListRequestV1>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.changeAddressSettingsV1(listId, changeAddressRecruitListRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Добавление id граждан в список
         * @summary Добавление id граждан в список
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async changeStatusV1(listId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.changeStatusV1(listId, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Удаление списка
         * @summary Удаление списка
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteListV1(listId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteListV1(listId, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение id записей по списку
         * @summary Получение id записей по списку
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getListIdsV1(listId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListIdsResponse>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getListIdsV1(listId, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получения списков на вызов
         * @summary Получения списков на вызов
         * @param {ListsSearchRequest} listsSearchRequest 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getListsV2(listsSearchRequest: ListsSearchRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListsSearchResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getListsV2(listsSearchRequest, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка граждан из одного списка
         * @summary Получение списка граждан из одного списка
         * @param {string} listId 
         * @param {ListSearchRequest} listSearchRequest 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getRecruitsFromListV2(listId: string, listSearchRequest: ListSearchRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getRecruitsFromListV2(listId, listSearchRequest, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение файла описи
         * @summary Получение файла описи
         * @param {ListOpisRequestV1} listOpisRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getS3UrlOpisV1(listOpisRequestV1: ListOpisRequestV1, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<S3SchemeV1>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getS3UrlOpisV1(listOpisRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Создание нового списка
         * @summary Создание нового списка
         * @param {NewListRequestV3} newListRequestV3 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async newListV3(newListRequestV3: NewListRequestV3, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NewListResponse>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.newListV3(newListRequestV3, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Удаление id граждан из списка
         * @summary Удаление id граждан из списка
         * @param {string} listId 
         * @param {Array<string>} requestBody 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async removeRecruitsV1(listId: string, requestBody: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecruitsListActionResponse>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.removeRecruitsV1(listId, requestBody, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
    }
};

/**
 * SummonListRegistryApi - factory interface
 * @export
 */
export const SummonListRegistryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
    const localVarFp = SummonListRegistryApiFp(configuration)
    return {
        /**
         * Добавление id граждан в список
         * @summary Добавление id граждан в список
         * @param {string} listId 
         * @param {Array<string>} requestBody 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addRecruitsV2(listId: string, requestBody: Array<string>, options?: any): AxiosPromise<RecruitsListActionResponse> {
            return localVarFp.addRecruitsV2(listId, requestBody, options).then((request) => request(axios, basePath));
        },
        /**
         * Метод для изменения способа направления в листе у рекрута
         * @summary Метод для изменения способа направления в листе у рекрута
         * @param {string} listId 
         * @param {Array<ChangeAddressArrayDeliveryV1>} changeAddressArrayDeliveryV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeAddressListSettingsV1(listId: string, changeAddressArrayDeliveryV1: Array<ChangeAddressArrayDeliveryV1>, options?: any): AxiosPromise<string> {
            return localVarFp.changeAddressListSettingsV1(listId, changeAddressArrayDeliveryV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Метод для изменения способа направления в листе у рекрута
         * @summary Метод для изменения способа направления в листе у рекрута
         * @param {string} listId 
         * @param {Array<ChangeAddressRecruitListRequestV1>} changeAddressRecruitListRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeAddressSettingsV1(listId: string, changeAddressRecruitListRequestV1: Array<ChangeAddressRecruitListRequestV1>, options?: any): AxiosPromise<string> {
            return localVarFp.changeAddressSettingsV1(listId, changeAddressRecruitListRequestV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Добавление id граждан в список
         * @summary Добавление id граждан в список
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeStatusV1(listId: string, options?: any): AxiosPromise<string> {
            return localVarFp.changeStatusV1(listId, options).then((request) => request(axios, basePath));
        },
        /**
         * Удаление списка
         * @summary Удаление списка
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteListV1(listId: string, options?: any): AxiosPromise<string> {
            return localVarFp.deleteListV1(listId, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение id записей по списку
         * @summary Получение id записей по списку
         * @param {string} listId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getListIdsV1(listId: string, options?: any): AxiosPromise<ListIdsResponse> {
            return localVarFp.getListIdsV1(listId, options).then((request) => request(axios, basePath));
        },
        /**
         * Получения списков на вызов
         * @summary Получения списков на вызов
         * @param {ListsSearchRequest} listsSearchRequest 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getListsV2(listsSearchRequest: ListsSearchRequest, options?: any): AxiosPromise<ListsSearchResponseV2> {
            return localVarFp.getListsV2(listsSearchRequest, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка граждан из одного списка
         * @summary Получение списка граждан из одного списка
         * @param {string} listId 
         * @param {ListSearchRequest} listSearchRequest 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getRecruitsFromListV2(listId: string, listSearchRequest: ListSearchRequest, options?: any): AxiosPromise<ListSearchResponseV2> {
            return localVarFp.getRecruitsFromListV2(listId, listSearchRequest, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение файла описи
         * @summary Получение файла описи
         * @param {ListOpisRequestV1} listOpisRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getS3UrlOpisV1(listOpisRequestV1: ListOpisRequestV1, options?: any): AxiosPromise<S3SchemeV1> {
            return localVarFp.getS3UrlOpisV1(listOpisRequestV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Создание нового списка
         * @summary Создание нового списка
         * @param {NewListRequestV3} newListRequestV3 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        newListV3(newListRequestV3: NewListRequestV3, options?: any): AxiosPromise<NewListResponse> {
            return localVarFp.newListV3(newListRequestV3, options).then((request) => request(axios, basePath));
        },
        /**
         * Удаление id граждан из списка
         * @summary Удаление id граждан из списка
         * @param {string} listId 
         * @param {Array<string>} requestBody 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        removeRecruitsV1(listId: string, requestBody: Array<string>, options?: any): AxiosPromise<RecruitsListActionResponse> {
            return localVarFp.removeRecruitsV1(listId, requestBody, options).then((request) => request(axios, basePath));
        },
    };
};

/**
 * SummonListRegistryApi - object-oriented interface
 * @export
 * @class SummonListRegistryApi
 * @extends {BaseAPI}
 */
export class SummonListRegistryApi extends BaseAPI {
    /**
     * Добавление id граждан в список
     * @summary Добавление id граждан в список
     * @param {string} listId 
     * @param {Array<string>} requestBody 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public addRecruitsV2(listId: string, requestBody: Array<string>, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).addRecruitsV2(listId, requestBody, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Метод для изменения способа направления в листе у рекрута
     * @summary Метод для изменения способа направления в листе у рекрута
     * @param {string} listId 
     * @param {Array<ChangeAddressArrayDeliveryV1>} changeAddressArrayDeliveryV1 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public changeAddressListSettingsV1(listId: string, changeAddressArrayDeliveryV1: Array<ChangeAddressArrayDeliveryV1>, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).changeAddressListSettingsV1(listId, changeAddressArrayDeliveryV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Метод для изменения способа направления в листе у рекрута
     * @summary Метод для изменения способа направления в листе у рекрута
     * @param {string} listId 
     * @param {Array<ChangeAddressRecruitListRequestV1>} changeAddressRecruitListRequestV1 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public changeAddressSettingsV1(listId: string, changeAddressRecruitListRequestV1: Array<ChangeAddressRecruitListRequestV1>, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).changeAddressSettingsV1(listId, changeAddressRecruitListRequestV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Добавление id граждан в список
     * @summary Добавление id граждан в список
     * @param {string} listId 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public changeStatusV1(listId: string, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).changeStatusV1(listId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Удаление списка
     * @summary Удаление списка
     * @param {string} listId 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public deleteListV1(listId: string, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).deleteListV1(listId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение id записей по списку
     * @summary Получение id записей по списку
     * @param {string} listId 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public getListIdsV1(listId: string, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).getListIdsV1(listId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получения списков на вызов
     * @summary Получения списков на вызов
     * @param {ListsSearchRequest} listsSearchRequest 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public getListsV2(listsSearchRequest: ListsSearchRequest, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).getListsV2(listsSearchRequest, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка граждан из одного списка
     * @summary Получение списка граждан из одного списка
     * @param {string} listId 
     * @param {ListSearchRequest} listSearchRequest 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public getRecruitsFromListV2(listId: string, listSearchRequest: ListSearchRequest, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).getRecruitsFromListV2(listId, listSearchRequest, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение файла описи
     * @summary Получение файла описи
     * @param {ListOpisRequestV1} listOpisRequestV1 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public getS3UrlOpisV1(listOpisRequestV1: ListOpisRequestV1, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).getS3UrlOpisV1(listOpisRequestV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Создание нового списка
     * @summary Создание нового списка
     * @param {NewListRequestV3} newListRequestV3 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public newListV3(newListRequestV3: NewListRequestV3, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).newListV3(newListRequestV3, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Удаление id граждан из списка
     * @summary Удаление id граждан из списка
     * @param {string} listId 
     * @param {Array<string>} requestBody 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SummonListRegistryApi
     */
    public removeRecruitsV1(listId: string, requestBody: Array<string>, options?: AxiosRequestConfig) {
        return SummonListRegistryApiFp(this.configuration).removeRecruitsV1(listId, requestBody, options).then((request) => request(this.axios, this.basePath));
    }
}
