/* tslint:disable */
/* eslint-disable */
/**
 * ERVU services
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: yu.mironov@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 { ActiveIncidentsRequestV1 } from '../models';
// @ts-ignore
import { ActiveIncidentsRequestV2 } from '../models';
// @ts-ignore
import { ActiveIncidentsResponseV1 } from '../models';
// @ts-ignore
import { ActiveIncidentsResponseV2 } from '../models';
// @ts-ignore
import { ArchiveIncidentsRequestV1 } from '../models';
// @ts-ignore
import { ArchiveIncidentsRequestV2 } from '../models';
// @ts-ignore
import { ArchiveIncidentsResponseV1 } from '../models';
// @ts-ignore
import { ArchiveIncidentsResponseV2 } from '../models';
// @ts-ignore
import { ChangeStatusIncidentV1Request } from '../models';
// @ts-ignore
import { IncidentResponseV1 } from '../models';
// @ts-ignore
import { IncidentResponseV2 } from '../models';
// @ts-ignore
import { IncidentsByRecruitV1 } from '../models';
// @ts-ignore
import { IncidentsByRecruitV2 } from '../models';
// @ts-ignore
import { Pagination } from '../models';
/**
 * ErvuIncidentsServiceApi - axios parameter creator
 * @export
 */
export const ErvuIncidentsServiceApiAxiosParamCreator = function (configuration?: Configuration) {
    return {
        /**
         * Изменение статуса одного инцидента по его ID
         * @summary Изменение статуса одного инцидента по его ID
         * @param {string} incidentId 
         * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        changeStatusIncidentV1: async (incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'incidentId' is not null or undefined
            assertParamExists('changeStatusIncidentV1', 'incidentId', incidentId)
            // verify required parameter 'changeStatusIncidentV1Request' is not null or undefined
            assertParamExists('changeStatusIncidentV1', 'changeStatusIncidentV1Request', changeStatusIncidentV1Request)
            const localVarPath = `/ervu-incidents-service/incident/v1/{incidentId}`
                .replace(`{${"incidentId"}}`, encodeURIComponent(String(incidentId)));
            // 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(changeStatusIncidentV1Request, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Изменение статуса одного инцидента по его ID
         * @summary Изменение статуса одного инцидента по его ID
         * @param {string} incidentId 
         * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeStatusIncidentV3: async (incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'incidentId' is not null or undefined
            assertParamExists('changeStatusIncidentV3', 'incidentId', incidentId)
            // verify required parameter 'changeStatusIncidentV1Request' is not null or undefined
            assertParamExists('changeStatusIncidentV3', 'changeStatusIncidentV1Request', changeStatusIncidentV1Request)
            const localVarPath = `/ervu-incidents-service/incident/v3/{incidentId}`
                .replace(`{${"incidentId"}}`, encodeURIComponent(String(incidentId)));
            // 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(changeStatusIncidentV1Request, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение одного инцидента по его ID
         * @summary Получение одного инцидента по его ID
         * @param {string} incidentId 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentV2: async (incidentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'incidentId' is not null or undefined
            assertParamExists('getIncidentV2', 'incidentId', incidentId)
            const localVarPath = `/ervu-incidents-service/incident/v1/{incidentId}`
                .replace(`{${"incidentId"}}`, encodeURIComponent(String(incidentId)));
            // 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,
            };
        },
        /**
         * Получение одного инцидента по его ID
         * @summary Получение одного инцидента по его ID
         * @param {string} incidentId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentV3: async (incidentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'incidentId' is not null or undefined
            assertParamExists('getIncidentV3', 'incidentId', incidentId)
            const localVarPath = `/ervu-incidents-service/incident/v3/{incidentId}`
                .replace(`{${"incidentId"}}`, encodeURIComponent(String(incidentId)));
            // 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 {ActiveIncidentsRequestV1} [activeIncidentsRequestV1] 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentsActiveV1: async (activeIncidentsRequestV1?: ActiveIncidentsRequestV1, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/ervu-incidents-service/incidents/active/v1/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(activeIncidentsRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение списка активных инцидентов
         * @summary Получение списка активных инцидентов
         * @param {ActiveIncidentsRequestV2} [activeIncidentsRequestV2] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentsActiveV2: async (activeIncidentsRequestV2?: ActiveIncidentsRequestV2, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/ervu-incidents-service/incidents/active/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(activeIncidentsRequestV2, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение списка архивных инцидентов
         * @summary Получение списка архивных инцидентов
         * @param {ArchiveIncidentsRequestV1} [archiveIncidentsRequestV1] 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentsArchiveV1: async (archiveIncidentsRequestV1?: ArchiveIncidentsRequestV1, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/ervu-incidents-service/incidents/archive/v1/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(archiveIncidentsRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение списка архивных инцидентов
         * @summary Получение списка архивных инцидентов
         * @param {ArchiveIncidentsRequestV2} [archiveIncidentsRequestV2] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentsArchiveV2: async (archiveIncidentsRequestV2?: ArchiveIncidentsRequestV2, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/ervu-incidents-service/incidents/archive/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(archiveIncidentsRequestV2, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение инцидентов по гражданину
         * @summary Получение инцидентов по гражданину
         * @param {string} id 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentsByRecruitV1: async (id: string, pagination: Pagination, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'id' is not null or undefined
            assertParamExists('getIncidentsByRecruitV1', 'id', id)
            // verify required parameter 'pagination' is not null or undefined
            assertParamExists('getIncidentsByRecruitV1', 'pagination', pagination)
            const localVarPath = `/ervu-incidents-service/incidents/byRecruit/v1/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // 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(pagination, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение инцидентов по гражданину
         * @summary Получение инцидентов по гражданину
         * @param {string} id 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentsByRecruitV2: async (id: string, pagination: Pagination, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'id' is not null or undefined
            assertParamExists('getIncidentsByRecruitV2', 'id', id)
            // verify required parameter 'pagination' is not null or undefined
            assertParamExists('getIncidentsByRecruitV2', 'pagination', pagination)
            const localVarPath = `/ervu-incidents-service/incidents/byRecruit/v2/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // 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(pagination, localVarRequestOptions, configuration)

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

/**
 * ErvuIncidentsServiceApi - functional programming interface
 * @export
 */
export const ErvuIncidentsServiceApiFp = function(configuration?: Configuration) {
    const localVarAxiosParamCreator = ErvuIncidentsServiceApiAxiosParamCreator(configuration)
    return {
        /**
         * Изменение статуса одного инцидента по его ID
         * @summary Изменение статуса одного инцидента по его ID
         * @param {string} incidentId 
         * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async changeStatusIncidentV1(incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncidentResponseV1>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.changeStatusIncidentV1(incidentId, changeStatusIncidentV1Request, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Изменение статуса одного инцидента по его ID
         * @summary Изменение статуса одного инцидента по его ID
         * @param {string} incidentId 
         * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async changeStatusIncidentV3(incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncidentResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.changeStatusIncidentV3(incidentId, changeStatusIncidentV1Request, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение одного инцидента по его ID
         * @summary Получение одного инцидента по его ID
         * @param {string} incidentId 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async getIncidentV2(incidentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncidentResponseV1>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentV2(incidentId, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение одного инцидента по его ID
         * @summary Получение одного инцидента по его ID
         * @param {string} incidentId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getIncidentV3(incidentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncidentResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentV3(incidentId, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка активных инцидентов
         * @summary Получение списка активных инцидентов
         * @param {ActiveIncidentsRequestV1} [activeIncidentsRequestV1] 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async getIncidentsActiveV1(activeIncidentsRequestV1?: ActiveIncidentsRequestV1, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActiveIncidentsResponseV1>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentsActiveV1(activeIncidentsRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка активных инцидентов
         * @summary Получение списка активных инцидентов
         * @param {ActiveIncidentsRequestV2} [activeIncidentsRequestV2] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getIncidentsActiveV2(activeIncidentsRequestV2?: ActiveIncidentsRequestV2, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActiveIncidentsResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentsActiveV2(activeIncidentsRequestV2, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка архивных инцидентов
         * @summary Получение списка архивных инцидентов
         * @param {ArchiveIncidentsRequestV1} [archiveIncidentsRequestV1] 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async getIncidentsArchiveV1(archiveIncidentsRequestV1?: ArchiveIncidentsRequestV1, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArchiveIncidentsResponseV1>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentsArchiveV1(archiveIncidentsRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка архивных инцидентов
         * @summary Получение списка архивных инцидентов
         * @param {ArchiveIncidentsRequestV2} [archiveIncidentsRequestV2] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getIncidentsArchiveV2(archiveIncidentsRequestV2?: ArchiveIncidentsRequestV2, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArchiveIncidentsResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentsArchiveV2(archiveIncidentsRequestV2, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение инцидентов по гражданину
         * @summary Получение инцидентов по гражданину
         * @param {string} id 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async getIncidentsByRecruitV1(id: string, pagination: Pagination, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<IncidentsByRecruitV1>>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentsByRecruitV1(id, pagination, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение инцидентов по гражданину
         * @summary Получение инцидентов по гражданину
         * @param {string} id 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getIncidentsByRecruitV2(id: string, pagination: Pagination, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<IncidentsByRecruitV2>>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getIncidentsByRecruitV2(id, pagination, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
    }
};

/**
 * ErvuIncidentsServiceApi - factory interface
 * @export
 */
export const ErvuIncidentsServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
    const localVarFp = ErvuIncidentsServiceApiFp(configuration)
    return {
        /**
         * Изменение статуса одного инцидента по его ID
         * @summary Изменение статуса одного инцидента по его ID
         * @param {string} incidentId 
         * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        changeStatusIncidentV1(incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options?: any): AxiosPromise<IncidentResponseV1> {
            return localVarFp.changeStatusIncidentV1(incidentId, changeStatusIncidentV1Request, options).then((request) => request(axios, basePath));
        },
        /**
         * Изменение статуса одного инцидента по его ID
         * @summary Изменение статуса одного инцидента по его ID
         * @param {string} incidentId 
         * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeStatusIncidentV3(incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options?: any): AxiosPromise<IncidentResponseV2> {
            return localVarFp.changeStatusIncidentV3(incidentId, changeStatusIncidentV1Request, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение одного инцидента по его ID
         * @summary Получение одного инцидента по его ID
         * @param {string} incidentId 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentV2(incidentId: string, options?: any): AxiosPromise<IncidentResponseV1> {
            return localVarFp.getIncidentV2(incidentId, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение одного инцидента по его ID
         * @summary Получение одного инцидента по его ID
         * @param {string} incidentId 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentV3(incidentId: string, options?: any): AxiosPromise<IncidentResponseV2> {
            return localVarFp.getIncidentV3(incidentId, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка активных инцидентов
         * @summary Получение списка активных инцидентов
         * @param {ActiveIncidentsRequestV1} [activeIncidentsRequestV1] 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentsActiveV1(activeIncidentsRequestV1?: ActiveIncidentsRequestV1, options?: any): AxiosPromise<ActiveIncidentsResponseV1> {
            return localVarFp.getIncidentsActiveV1(activeIncidentsRequestV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка активных инцидентов
         * @summary Получение списка активных инцидентов
         * @param {ActiveIncidentsRequestV2} [activeIncidentsRequestV2] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentsActiveV2(activeIncidentsRequestV2?: ActiveIncidentsRequestV2, options?: any): AxiosPromise<ActiveIncidentsResponseV2> {
            return localVarFp.getIncidentsActiveV2(activeIncidentsRequestV2, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка архивных инцидентов
         * @summary Получение списка архивных инцидентов
         * @param {ArchiveIncidentsRequestV1} [archiveIncidentsRequestV1] 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentsArchiveV1(archiveIncidentsRequestV1?: ArchiveIncidentsRequestV1, options?: any): AxiosPromise<ArchiveIncidentsResponseV1> {
            return localVarFp.getIncidentsArchiveV1(archiveIncidentsRequestV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка архивных инцидентов
         * @summary Получение списка архивных инцидентов
         * @param {ArchiveIncidentsRequestV2} [archiveIncidentsRequestV2] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentsArchiveV2(archiveIncidentsRequestV2?: ArchiveIncidentsRequestV2, options?: any): AxiosPromise<ArchiveIncidentsResponseV2> {
            return localVarFp.getIncidentsArchiveV2(archiveIncidentsRequestV2, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение инцидентов по гражданину
         * @summary Получение инцидентов по гражданину
         * @param {string} id 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getIncidentsByRecruitV1(id: string, pagination: Pagination, options?: any): AxiosPromise<Array<IncidentsByRecruitV1>> {
            return localVarFp.getIncidentsByRecruitV1(id, pagination, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение инцидентов по гражданину
         * @summary Получение инцидентов по гражданину
         * @param {string} id 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getIncidentsByRecruitV2(id: string, pagination: Pagination, options?: any): AxiosPromise<Array<IncidentsByRecruitV2>> {
            return localVarFp.getIncidentsByRecruitV2(id, pagination, options).then((request) => request(axios, basePath));
        },
    };
};

/**
 * ErvuIncidentsServiceApi - object-oriented interface
 * @export
 * @class ErvuIncidentsServiceApi
 * @extends {BaseAPI}
 */
export class ErvuIncidentsServiceApi extends BaseAPI {
    /**
     * Изменение статуса одного инцидента по его ID
     * @summary Изменение статуса одного инцидента по его ID
     * @param {string} incidentId 
     * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public changeStatusIncidentV1(incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).changeStatusIncidentV1(incidentId, changeStatusIncidentV1Request, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Изменение статуса одного инцидента по его ID
     * @summary Изменение статуса одного инцидента по его ID
     * @param {string} incidentId 
     * @param {ChangeStatusIncidentV1Request} changeStatusIncidentV1Request 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public changeStatusIncidentV3(incidentId: string, changeStatusIncidentV1Request: ChangeStatusIncidentV1Request, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).changeStatusIncidentV3(incidentId, changeStatusIncidentV1Request, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение одного инцидента по его ID
     * @summary Получение одного инцидента по его ID
     * @param {string} incidentId 
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentV2(incidentId: string, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentV2(incidentId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение одного инцидента по его ID
     * @summary Получение одного инцидента по его ID
     * @param {string} incidentId 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentV3(incidentId: string, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentV3(incidentId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка активных инцидентов
     * @summary Получение списка активных инцидентов
     * @param {ActiveIncidentsRequestV1} [activeIncidentsRequestV1] 
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentsActiveV1(activeIncidentsRequestV1?: ActiveIncidentsRequestV1, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentsActiveV1(activeIncidentsRequestV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка активных инцидентов
     * @summary Получение списка активных инцидентов
     * @param {ActiveIncidentsRequestV2} [activeIncidentsRequestV2] 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentsActiveV2(activeIncidentsRequestV2?: ActiveIncidentsRequestV2, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentsActiveV2(activeIncidentsRequestV2, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка архивных инцидентов
     * @summary Получение списка архивных инцидентов
     * @param {ArchiveIncidentsRequestV1} [archiveIncidentsRequestV1] 
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentsArchiveV1(archiveIncidentsRequestV1?: ArchiveIncidentsRequestV1, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentsArchiveV1(archiveIncidentsRequestV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка архивных инцидентов
     * @summary Получение списка архивных инцидентов
     * @param {ArchiveIncidentsRequestV2} [archiveIncidentsRequestV2] 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentsArchiveV2(archiveIncidentsRequestV2?: ArchiveIncidentsRequestV2, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentsArchiveV2(archiveIncidentsRequestV2, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение инцидентов по гражданину
     * @summary Получение инцидентов по гражданину
     * @param {string} id 
     * @param {Pagination} pagination 
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentsByRecruitV1(id: string, pagination: Pagination, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentsByRecruitV1(id, pagination, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение инцидентов по гражданину
     * @summary Получение инцидентов по гражданину
     * @param {string} id 
     * @param {Pagination} pagination 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ErvuIncidentsServiceApi
     */
    public getIncidentsByRecruitV2(id: string, pagination: Pagination, options?: AxiosRequestConfig) {
        return ErvuIncidentsServiceApiFp(this.configuration).getIncidentsByRecruitV2(id, pagination, options).then((request) => request(this.axios, this.basePath));
    }
}
