From d5d4c058af17b5321000eac057403980c6f56fb3 Mon Sep 17 00:00:00 2001 From: Marek Bodinger Date: Wed, 19 Jun 2024 14:36:57 +0200 Subject: [PATCH] Change options from any to RawAxiosRequestConfig in typescript-axios and update samples --- .../typescript-axios/apiInner.mustache | 2 +- .../echo_api/typescript-axios/build/api.ts | 54 ++++++------ .../builds/composed-schemas/api.ts | 6 +- .../typescript-axios/builds/default/api.ts | 40 ++++----- .../typescript-axios/builds/es6-target/api.ts | 40 ++++----- .../builds/test-petstore/api.ts | 86 +++++++++---------- .../builds/with-complex-headers/api.ts | 40 ++++----- .../api.ts | 84 +++++++++--------- .../builds/with-interfaces/api.ts | 40 ++++----- .../builds/with-node-imports/api.ts | 40 ++++----- .../api/another/level/pet-api.ts | 16 ++-- .../api/another/level/store-api.ts | 8 +- .../api/another/level/user-api.ts | 16 ++-- .../builds/with-npm-version/api.ts | 40 ++++----- .../builds/with-string-enums/api.ts | 40 ++++----- 15 files changed, 276 insertions(+), 276 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache index 8a67592a2e4c..1e991b810225 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache @@ -308,7 +308,7 @@ export const {{classname}}Factory = function (configuration?: Configuration, bas }, {{/useSingleRequestParameter}} {{^useSingleRequestParameter}} - {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/allParams}}options?: any): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}> { + {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/allParams}}options?: RawAxiosRequestConfig): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}> { return localVarFp.{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options).then((request) => request(axios, basePath)); }, {{/useSingleRequestParameter}} diff --git a/samples/client/echo_api/typescript-axios/build/api.ts b/samples/client/echo_api/typescript-axios/build/api.ts index 384ba1cdfc3c..ffe05310d2dd 100644 --- a/samples/client/echo_api/typescript-axios/build/api.ts +++ b/samples/client/echo_api/typescript-axios/build/api.ts @@ -473,7 +473,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testAuthHttpBasic(options?: any): AxiosPromise { + testAuthHttpBasic(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testAuthHttpBasic(options).then((request) => request(axios, basePath)); }, /** @@ -482,7 +482,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testAuthHttpBearer(options?: any): AxiosPromise { + testAuthHttpBearer(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testAuthHttpBearer(options).then((request) => request(axios, basePath)); }, }; @@ -1031,7 +1031,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBinaryGif(options?: any): AxiosPromise { + testBinaryGif(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBinaryGif(options).then((request) => request(axios, basePath)); }, /** @@ -1041,7 +1041,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBodyApplicationOctetstreamBinary(body?: File, options?: any): AxiosPromise { + testBodyApplicationOctetstreamBinary(body?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBodyApplicationOctetstreamBinary(body, options).then((request) => request(axios, basePath)); }, /** @@ -1051,7 +1051,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBodyMultipartFormdataArrayOfBinary(files: Array, options?: any): AxiosPromise { + testBodyMultipartFormdataArrayOfBinary(files: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBodyMultipartFormdataArrayOfBinary(files, options).then((request) => request(axios, basePath)); }, /** @@ -1061,7 +1061,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBodyMultipartFormdataSingleBinary(myFile?: File, options?: any): AxiosPromise { + testBodyMultipartFormdataSingleBinary(myFile?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBodyMultipartFormdataSingleBinary(myFile, options).then((request) => request(axios, basePath)); }, /** @@ -1071,7 +1071,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyAllOfPet(pet?: Pet, options?: any): AxiosPromise { + testEchoBodyAllOfPet(pet?: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEchoBodyAllOfPet(pet, options).then((request) => request(axios, basePath)); }, /** @@ -1081,7 +1081,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyFreeFormObjectResponseString(body?: object, options?: any): AxiosPromise { + testEchoBodyFreeFormObjectResponseString(body?: object, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEchoBodyFreeFormObjectResponseString(body, options).then((request) => request(axios, basePath)); }, /** @@ -1091,7 +1091,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyPet(pet?: Pet, options?: any): AxiosPromise { + testEchoBodyPet(pet?: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEchoBodyPet(pet, options).then((request) => request(axios, basePath)); }, /** @@ -1101,7 +1101,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyPetResponseString(pet?: Pet, options?: any): AxiosPromise { + testEchoBodyPetResponseString(pet?: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEchoBodyPetResponseString(pet, options).then((request) => request(axios, basePath)); }, /** @@ -1111,7 +1111,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyStringEnum(body?: string, options?: any): AxiosPromise { + testEchoBodyStringEnum(body?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEchoBodyStringEnum(body, options).then((request) => request(axios, basePath)); }, /** @@ -1121,7 +1121,7 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyTagResponseString(tag?: Tag, options?: any): AxiosPromise { + testEchoBodyTagResponseString(tag?: Tag, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEchoBodyTagResponseString(tag, options).then((request) => request(axios, basePath)); }, }; @@ -1491,7 +1491,7 @@ export const FormApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testFormIntegerBooleanString(integerForm?: number, booleanForm?: boolean, stringForm?: string, options?: any): AxiosPromise { + testFormIntegerBooleanString(integerForm?: number, booleanForm?: boolean, stringForm?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testFormIntegerBooleanString(integerForm, booleanForm, stringForm, options).then((request) => request(axios, basePath)); }, /** @@ -1501,7 +1501,7 @@ export const FormApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testFormObjectMultipart(marker: TestFormObjectMultipartRequestMarker, options?: any): AxiosPromise { + testFormObjectMultipart(marker: TestFormObjectMultipartRequestMarker, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testFormObjectMultipart(marker, options).then((request) => request(axios, basePath)); }, /** @@ -1516,7 +1516,7 @@ export const FormApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testFormOneof(form1?: string, form2?: number, form3?: string, form4?: boolean, id?: number, name?: string, options?: any): AxiosPromise { + testFormOneof(form1?: string, form2?: number, form3?: string, form4?: boolean, id?: number, name?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testFormOneof(form1, form2, form3, form4, id, name, options).then((request) => request(axios, basePath)); }, }; @@ -1690,7 +1690,7 @@ export const HeaderApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testHeaderIntegerBooleanStringEnums(integerHeader?: number, booleanHeader?: boolean, stringHeader?: string, enumNonrefStringHeader?: TestHeaderIntegerBooleanStringEnumsEnumNonrefStringHeaderEnum, enumRefStringHeader?: StringEnumRef, options?: any): AxiosPromise { + testHeaderIntegerBooleanStringEnums(integerHeader?: number, booleanHeader?: boolean, stringHeader?: string, enumNonrefStringHeader?: TestHeaderIntegerBooleanStringEnumsEnumNonrefStringHeaderEnum, enumRefStringHeader?: StringEnumRef, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, options).then((request) => request(axios, basePath)); }, }; @@ -1829,7 +1829,7 @@ export const PathApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString: string, pathInteger: number, enumNonrefStringPath: TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathEnum, enumRefStringPath: StringEnumRef, options?: any): AxiosPromise { + testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString: string, pathInteger: number, enumNonrefStringPath: TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathEnum, enumRefStringPath: StringEnumRef, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, options).then((request) => request(axios, basePath)); }, }; @@ -2427,7 +2427,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEnumRefString(enumNonrefStringQuery?: TestEnumRefStringEnumNonrefStringQueryEnum, enumRefStringQuery?: StringEnumRef, options?: any): AxiosPromise { + testEnumRefString(enumNonrefStringQuery?: TestEnumRefStringEnumNonrefStringQueryEnum, enumRefStringQuery?: StringEnumRef, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery, options).then((request) => request(axios, basePath)); }, /** @@ -2439,7 +2439,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryDatetimeDateString(datetimeQuery?: string, dateQuery?: string, stringQuery?: string, options?: any): AxiosPromise { + testQueryDatetimeDateString(datetimeQuery?: string, dateQuery?: string, stringQuery?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery, options).then((request) => request(axios, basePath)); }, /** @@ -2451,7 +2451,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryIntegerBooleanString(integerQuery?: number, booleanQuery?: boolean, stringQuery?: string, options?: any): AxiosPromise { + testQueryIntegerBooleanString(integerQuery?: number, booleanQuery?: boolean, stringQuery?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery, options).then((request) => request(axios, basePath)); }, /** @@ -2461,7 +2461,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryStyleDeepObjectExplodeTrueObject(queryObject?: Pet, options?: any): AxiosPromise { + testQueryStyleDeepObjectExplodeTrueObject(queryObject?: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryStyleDeepObjectExplodeTrueObject(queryObject, options).then((request) => request(axios, basePath)); }, /** @@ -2471,7 +2471,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject?: TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter, options?: any): AxiosPromise { + testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject?: TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject, options).then((request) => request(axios, basePath)); }, /** @@ -2481,7 +2481,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryStyleFormExplodeFalseArrayInteger(queryObject?: Array, options?: any): AxiosPromise { + testQueryStyleFormExplodeFalseArrayInteger(queryObject?: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryStyleFormExplodeFalseArrayInteger(queryObject, options).then((request) => request(axios, basePath)); }, /** @@ -2491,7 +2491,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryStyleFormExplodeFalseArrayString(queryObject?: Array, options?: any): AxiosPromise { + testQueryStyleFormExplodeFalseArrayString(queryObject?: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryStyleFormExplodeFalseArrayString(queryObject, options).then((request) => request(axios, basePath)); }, /** @@ -2501,7 +2501,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryStyleFormExplodeTrueArrayString(queryObject?: TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter, options?: any): AxiosPromise { + testQueryStyleFormExplodeTrueArrayString(queryObject?: TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryStyleFormExplodeTrueArrayString(queryObject, options).then((request) => request(axios, basePath)); }, /** @@ -2511,7 +2511,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryStyleFormExplodeTrueObject(queryObject?: Pet, options?: any): AxiosPromise { + testQueryStyleFormExplodeTrueObject(queryObject?: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryStyleFormExplodeTrueObject(queryObject, options).then((request) => request(axios, basePath)); }, /** @@ -2521,7 +2521,7 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryStyleFormExplodeTrueObjectAllOf(queryObject?: DataQuery, options?: any): AxiosPromise { + testQueryStyleFormExplodeTrueObjectAllOf(queryObject?: DataQuery, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryStyleFormExplodeTrueObjectAllOf(queryObject, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts index d759ff399064..1941b1646e7c 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts @@ -343,7 +343,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - filePost(filePostRequest?: FilePostRequest, options?: any): AxiosPromise { + filePost(filePostRequest?: FilePostRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.filePost(filePostRequest, options).then((request) => request(axios, basePath)); }, /** @@ -352,7 +352,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest | null, options?: any): AxiosPromise { + petsFilteredPatch(petsFilteredPatchRequest?: PetsFilteredPatchRequest | null, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.petsFilteredPatch(petsFilteredPatchRequest, options).then((request) => request(axios, basePath)); }, /** @@ -361,7 +361,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - petsPatch(petsPatchRequest?: PetsPatchRequest | null, options?: any): AxiosPromise { + petsPatch(petsPatchRequest?: PetsPatchRequest | null, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.petsPatch(petsPatchRequest, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/default/api.ts b/samples/client/petstore/typescript-axios/builds/default/api.ts index 0d32b2e8da0f..df0c45abc78d 100644 --- a/samples/client/petstore/typescript-axios/builds/default/api.ts +++ b/samples/client/petstore/typescript-axios/builds/default/api.ts @@ -736,7 +736,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(body: Pet, options?: any): AxiosPromise { + addPet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(body, options).then((request) => request(axios, basePath)); }, /** @@ -747,7 +747,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -757,7 +757,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -768,7 +768,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -778,7 +778,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -788,7 +788,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(body: Pet, options?: any): AxiosPromise { + updatePet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(body, options).then((request) => request(axios, basePath)); }, /** @@ -800,7 +800,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -812,7 +812,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; @@ -1160,7 +1160,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1169,7 +1169,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -1179,7 +1179,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1189,7 +1189,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(body: Order, options?: any): AxiosPromise { + placeOrder(body: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(body, options).then((request) => request(axios, basePath)); }, }; @@ -1680,7 +1680,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(body: User, options?: any): AxiosPromise { + createUser(body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(body, options).then((request) => request(axios, basePath)); }, /** @@ -1690,7 +1690,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(body: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1700,7 +1700,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(body: Array, options?: any): AxiosPromise { + createUsersWithListInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1710,7 +1710,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -1720,7 +1720,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -1731,7 +1731,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -1740,7 +1740,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -1751,7 +1751,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, body: User, options?: any): AxiosPromise { + updateUser(username: string, body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, body, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts index 0d32b2e8da0f..df0c45abc78d 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts @@ -736,7 +736,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(body: Pet, options?: any): AxiosPromise { + addPet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(body, options).then((request) => request(axios, basePath)); }, /** @@ -747,7 +747,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -757,7 +757,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -768,7 +768,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -778,7 +778,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -788,7 +788,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(body: Pet, options?: any): AxiosPromise { + updatePet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(body, options).then((request) => request(axios, basePath)); }, /** @@ -800,7 +800,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -812,7 +812,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; @@ -1160,7 +1160,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1169,7 +1169,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -1179,7 +1179,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1189,7 +1189,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(body: Order, options?: any): AxiosPromise { + placeOrder(body: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(body, options).then((request) => request(axios, basePath)); }, }; @@ -1680,7 +1680,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(body: User, options?: any): AxiosPromise { + createUser(body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(body, options).then((request) => request(axios, basePath)); }, /** @@ -1690,7 +1690,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(body: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1700,7 +1700,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(body: Array, options?: any): AxiosPromise { + createUsersWithListInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1710,7 +1710,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -1720,7 +1720,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -1731,7 +1731,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -1740,7 +1740,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -1751,7 +1751,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, body: User, options?: any): AxiosPromise { + updateUser(username: string, body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, body, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts index 2d63feaab3a4..224662ffb657 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts @@ -1778,7 +1778,7 @@ export const AnotherFakeApiFactory = function (configuration?: Configuration, ba * @param {*} [options] Override http request option. * @throws {RequiredError} */ - _123testSpecialTags(client: Client, options?: any): AxiosPromise { + _123testSpecialTags(client: Client, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp._123testSpecialTags(client, options).then((request) => request(axios, basePath)); }, }; @@ -1877,7 +1877,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fooGet(options?: any): AxiosPromise { + fooGet(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fooGet(options).then((request) => request(axios, basePath)); }, }; @@ -3064,7 +3064,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeHealthGet(options?: any): AxiosPromise { + fakeHealthGet(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeHealthGet(options).then((request) => request(axios, basePath)); }, /** @@ -3073,7 +3073,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterBooleanSerialize(body?: boolean, options?: any): AxiosPromise { + fakeOuterBooleanSerialize(body?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterBooleanSerialize(body, options).then((request) => request(axios, basePath)); }, /** @@ -3082,7 +3082,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterCompositeSerialize(outerComposite?: OuterComposite, options?: any): AxiosPromise { + fakeOuterCompositeSerialize(outerComposite?: OuterComposite, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterCompositeSerialize(outerComposite, options).then((request) => request(axios, basePath)); }, /** @@ -3091,7 +3091,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterNumberSerialize(body?: number, options?: any): AxiosPromise { + fakeOuterNumberSerialize(body?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterNumberSerialize(body, options).then((request) => request(axios, basePath)); }, /** @@ -3100,7 +3100,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterStringSerialize(body?: string, options?: any): AxiosPromise { + fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterStringSerialize(body, options).then((request) => request(axios, basePath)); }, /** @@ -3109,7 +3109,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getArrayOfEnums(options?: any): AxiosPromise> { + getArrayOfEnums(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getArrayOfEnums(options).then((request) => request(axios, basePath)); }, /** @@ -3119,7 +3119,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postArrayOfString(requestBody?: Array, options?: any): AxiosPromise { + postArrayOfString(requestBody?: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postArrayOfString(requestBody, options).then((request) => request(axios, basePath)); }, /** @@ -3129,7 +3129,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testAdditionalPropertiesReference(requestBody: { [key: string]: any; }, options?: any): AxiosPromise { + testAdditionalPropertiesReference(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testAdditionalPropertiesReference(requestBody, options).then((request) => request(axios, basePath)); }, /** @@ -3138,7 +3138,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBodyWithFileSchema(fileSchemaTestClass: FileSchemaTestClass, options?: any): AxiosPromise { + testBodyWithFileSchema(fileSchemaTestClass: FileSchemaTestClass, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBodyWithFileSchema(fileSchemaTestClass, options).then((request) => request(axios, basePath)); }, /** @@ -3148,7 +3148,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBodyWithQueryParams(query: string, user: User, options?: any): AxiosPromise { + testBodyWithQueryParams(query: string, user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBodyWithQueryParams(query, user, options).then((request) => request(axios, basePath)); }, /** @@ -3158,7 +3158,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testClientModel(client: Client, options?: any): AxiosPromise { + testClientModel(client: Client, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testClientModel(client, options).then((request) => request(axios, basePath)); }, /** @@ -3181,7 +3181,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: File, date?: string, dateTime?: string, password?: string, callback?: string, options?: any): AxiosPromise { + testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: File, date?: string, dateTime?: string, password?: string, callback?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options).then((request) => request(axios, basePath)); }, /** @@ -3198,7 +3198,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEnumParameters(enumHeaderStringArray?: Array, enumHeaderString?: TestEnumParametersEnumHeaderStringEnum, enumQueryStringArray?: Array, enumQueryString?: TestEnumParametersEnumQueryStringEnum, enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum, enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum, enumFormStringArray?: Array, enumFormString?: TestEnumParametersEnumFormStringEnum, options?: any): AxiosPromise { + testEnumParameters(enumHeaderStringArray?: Array, enumHeaderString?: TestEnumParametersEnumHeaderStringEnum, enumQueryStringArray?: Array, enumQueryString?: TestEnumParametersEnumQueryStringEnum, enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum, enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum, enumFormStringArray?: Array, enumFormString?: TestEnumParametersEnumFormStringEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, options).then((request) => request(axios, basePath)); }, /** @@ -3213,7 +3213,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testGroupParameters(requiredStringGroup: number, requiredBooleanGroup: boolean, requiredInt64Group: number, stringGroup?: number, booleanGroup?: boolean, int64Group?: number, options?: any): AxiosPromise { + testGroupParameters(requiredStringGroup: number, requiredBooleanGroup: boolean, requiredInt64Group: number, stringGroup?: number, booleanGroup?: boolean, int64Group?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, options).then((request) => request(axios, basePath)); }, /** @@ -3223,7 +3223,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testInlineAdditionalProperties(requestBody: { [key: string]: string; }, options?: any): AxiosPromise { + testInlineAdditionalProperties(requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testInlineAdditionalProperties(requestBody, options).then((request) => request(axios, basePath)); }, /** @@ -3233,7 +3233,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest: TestInlineFreeformAdditionalPropertiesRequest, options?: any): AxiosPromise { + testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest: TestInlineFreeformAdditionalPropertiesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3244,7 +3244,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testJsonFormData(param: string, param2: string, options?: any): AxiosPromise { + testJsonFormData(param: string, param2: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testJsonFormData(param, param2, options).then((request) => request(axios, basePath)); }, /** @@ -3257,7 +3257,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryParameterCollectionFormat(pipe: Array, ioutil: Array, http: Array, url: Array, context: Array, options?: any): AxiosPromise { + testQueryParameterCollectionFormat(pipe: Array, ioutil: Array, http: Array, url: Array, context: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, options).then((request) => request(axios, basePath)); }, /** @@ -3267,7 +3267,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testStringMapReference(requestBody: { [key: string]: string; }, options?: any): AxiosPromise { + testStringMapReference(requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testStringMapReference(requestBody, options).then((request) => request(axios, basePath)); }, }; @@ -3685,7 +3685,7 @@ export const FakeClassnameTags123ApiFactory = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testClassname(client: Client, options?: any): AxiosPromise { + testClassname(client: Client, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testClassname(client, options).then((request) => request(axios, basePath)); }, }; @@ -4280,7 +4280,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(pet: Pet, options?: any): AxiosPromise { + addPet(pet: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(pet, options).then((request) => request(axios, basePath)); }, /** @@ -4291,7 +4291,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -4301,7 +4301,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -4312,7 +4312,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -4322,7 +4322,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -4332,7 +4332,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(pet: Pet, options?: any): AxiosPromise { + updatePet(pet: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(pet, options).then((request) => request(axios, basePath)); }, /** @@ -4344,7 +4344,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -4356,7 +4356,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, /** @@ -4368,7 +4368,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: any): AxiosPromise { + uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options).then((request) => request(axios, basePath)); }, }; @@ -4730,7 +4730,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -4739,7 +4739,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -4749,7 +4749,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -4759,7 +4759,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(order: Order, options?: any): AxiosPromise { + placeOrder(order: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(order, options).then((request) => request(axios, basePath)); }, }; @@ -5250,7 +5250,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(user: User, options?: any): AxiosPromise { + createUser(user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(user, options).then((request) => request(axios, basePath)); }, /** @@ -5260,7 +5260,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(user: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(user: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(user, options).then((request) => request(axios, basePath)); }, /** @@ -5270,7 +5270,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(user: Array, options?: any): AxiosPromise { + createUsersWithListInput(user: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(user, options).then((request) => request(axios, basePath)); }, /** @@ -5280,7 +5280,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -5290,7 +5290,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -5301,7 +5301,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -5310,7 +5310,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -5321,7 +5321,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, user: User, options?: any): AxiosPromise { + updateUser(username: string, user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, user, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts index 1ac8fc7796ff..a373dc21fe56 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts @@ -776,7 +776,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(pet: Pet, header1?: Pet, header2?: Array, accept?: MediaType, options?: any): AxiosPromise { + addPet(pet: Pet, header1?: Pet, header2?: Array, accept?: MediaType, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(pet, header1, header2, accept, options).then((request) => request(axios, basePath)); }, /** @@ -787,7 +787,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -797,7 +797,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -808,7 +808,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -818,7 +818,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -828,7 +828,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(pet: Pet, options?: any): AxiosPromise { + updatePet(pet: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(pet, options).then((request) => request(axios, basePath)); }, /** @@ -840,7 +840,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -852,7 +852,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; @@ -1203,7 +1203,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1212,7 +1212,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -1222,7 +1222,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1232,7 +1232,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(order: Order, options?: any): AxiosPromise { + placeOrder(order: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(order, options).then((request) => request(axios, basePath)); }, }; @@ -1723,7 +1723,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(user: User, options?: any): AxiosPromise { + createUser(user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(user, options).then((request) => request(axios, basePath)); }, /** @@ -1733,7 +1733,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(user: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(user: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(user, options).then((request) => request(axios, basePath)); }, /** @@ -1743,7 +1743,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(user: Array, options?: any): AxiosPromise { + createUsersWithListInput(user: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(user, options).then((request) => request(axios, basePath)); }, /** @@ -1753,7 +1753,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -1763,7 +1763,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -1774,7 +1774,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -1783,7 +1783,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -1794,7 +1794,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, user: User, options?: any): AxiosPromise { + updateUser(username: string, user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, user, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts index c0f214239f19..255ec3ed0e3e 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts @@ -1432,7 +1432,7 @@ export const AnotherFakeApiFactory = function (configuration?: Configuration, ba * @param {*} [options] Override http request option. * @throws {RequiredError} */ - _123testSpecialTags(client: Client, options?: any): AxiosPromise { + _123testSpecialTags(client: Client, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp._123testSpecialTags(client, options).then((request) => request(axios, basePath)); }, }; @@ -1531,7 +1531,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fooGet(options?: any): AxiosPromise { + fooGet(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fooGet(options).then((request) => request(axios, basePath)); }, }; @@ -2686,7 +2686,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeHealthGet(options?: any): AxiosPromise { + fakeHealthGet(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeHealthGet(options).then((request) => request(axios, basePath)); }, /** @@ -2695,7 +2695,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterBooleanSerialize(body?: boolean, options?: any): AxiosPromise { + fakeOuterBooleanSerialize(body?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterBooleanSerialize(body, options).then((request) => request(axios, basePath)); }, /** @@ -2704,7 +2704,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterCompositeSerialize(outerComposite?: OuterComposite, options?: any): AxiosPromise { + fakeOuterCompositeSerialize(outerComposite?: OuterComposite, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterCompositeSerialize(outerComposite, options).then((request) => request(axios, basePath)); }, /** @@ -2713,7 +2713,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterNumberSerialize(body?: number, options?: any): AxiosPromise { + fakeOuterNumberSerialize(body?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterNumberSerialize(body, options).then((request) => request(axios, basePath)); }, /** @@ -2722,7 +2722,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterStringSerialize(body?: string, options?: any): AxiosPromise { + fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fakeOuterStringSerialize(body, options).then((request) => request(axios, basePath)); }, /** @@ -2732,7 +2732,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testAdditionalPropertiesReference(requestBody: { [key: string]: any; }, options?: any): AxiosPromise { + testAdditionalPropertiesReference(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testAdditionalPropertiesReference(requestBody, options).then((request) => request(axios, basePath)); }, /** @@ -2741,7 +2741,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBodyWithFileSchema(fileSchemaTestClass: FileSchemaTestClass, options?: any): AxiosPromise { + testBodyWithFileSchema(fileSchemaTestClass: FileSchemaTestClass, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBodyWithFileSchema(fileSchemaTestClass, options).then((request) => request(axios, basePath)); }, /** @@ -2751,7 +2751,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testBodyWithQueryParams(query: string, user: User, options?: any): AxiosPromise { + testBodyWithQueryParams(query: string, user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testBodyWithQueryParams(query, user, options).then((request) => request(axios, basePath)); }, /** @@ -2761,7 +2761,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testClientModel(client: Client, options?: any): AxiosPromise { + testClientModel(client: Client, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testClientModel(client, options).then((request) => request(axios, basePath)); }, /** @@ -2784,7 +2784,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: File, date?: string, dateTime?: string, password?: string, callback?: string, options?: any): AxiosPromise { + testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: File, date?: string, dateTime?: string, password?: string, callback?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options).then((request) => request(axios, basePath)); }, /** @@ -2801,7 +2801,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEnumParameters(enumHeaderStringArray?: Array, enumHeaderString?: TestEnumParametersEnumHeaderStringEnum, enumQueryStringArray?: Array, enumQueryString?: TestEnumParametersEnumQueryStringEnum, enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum, enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum, enumFormStringArray?: Array, enumFormString?: TestEnumParametersEnumFormStringEnum, options?: any): AxiosPromise { + testEnumParameters(enumHeaderStringArray?: Array, enumHeaderString?: TestEnumParametersEnumHeaderStringEnum, enumQueryStringArray?: Array, enumQueryString?: TestEnumParametersEnumQueryStringEnum, enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum, enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum, enumFormStringArray?: Array, enumFormString?: TestEnumParametersEnumFormStringEnum, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, options).then((request) => request(axios, basePath)); }, /** @@ -2816,7 +2816,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testGroupParameters(requiredStringGroup: number, requiredBooleanGroup: boolean, requiredInt64Group: number, stringGroup?: number, booleanGroup?: boolean, int64Group?: number, options?: any): AxiosPromise { + testGroupParameters(requiredStringGroup: number, requiredBooleanGroup: boolean, requiredInt64Group: number, stringGroup?: number, booleanGroup?: boolean, int64Group?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, options).then((request) => request(axios, basePath)); }, /** @@ -2826,7 +2826,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testInlineAdditionalProperties(requestBody: { [key: string]: string; }, options?: any): AxiosPromise { + testInlineAdditionalProperties(requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testInlineAdditionalProperties(requestBody, options).then((request) => request(axios, basePath)); }, /** @@ -2836,7 +2836,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest: TestInlineFreeformAdditionalPropertiesRequest, options?: any): AxiosPromise { + testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest: TestInlineFreeformAdditionalPropertiesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, options).then((request) => request(axios, basePath)); }, /** @@ -2847,7 +2847,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testJsonFormData(param: string, param2: string, options?: any): AxiosPromise { + testJsonFormData(param: string, param2: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testJsonFormData(param, param2, options).then((request) => request(axios, basePath)); }, /** @@ -2860,7 +2860,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testQueryParameterCollectionFormat(pipe: Array, ioutil: Array, http: Array, url: Array, context: Array, options?: any): AxiosPromise { + testQueryParameterCollectionFormat(pipe: Array, ioutil: Array, http: Array, url: Array, context: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, options).then((request) => request(axios, basePath)); }, /** @@ -2870,7 +2870,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testStringMapReference(requestBody: { [key: string]: string; }, options?: any): AxiosPromise { + testStringMapReference(requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testStringMapReference(requestBody, options).then((request) => request(axios, basePath)); }, /** @@ -2880,7 +2880,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testUniqueItemsHeaderAndQueryParameterCollectionFormat(queryUnique: Set, headerUnique: Set, options?: any): AxiosPromise> { + testUniqueItemsHeaderAndQueryParameterCollectionFormat(queryUnique: Set, headerUnique: Set, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.testUniqueItemsHeaderAndQueryParameterCollectionFormat(queryUnique, headerUnique, options).then((request) => request(axios, basePath)); }, }; @@ -3287,7 +3287,7 @@ export const FakeClassnameTags123ApiFactory = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testClassname(client: Client, options?: any): AxiosPromise { + testClassname(client: Client, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.testClassname(client, options).then((request) => request(axios, basePath)); }, }; @@ -3882,7 +3882,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(pet: Pet, options?: any): AxiosPromise { + addPet(pet: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(pet, options).then((request) => request(axios, basePath)); }, /** @@ -3893,7 +3893,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -3903,7 +3903,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -3914,7 +3914,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -3924,7 +3924,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -3934,7 +3934,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(pet: Pet, options?: any): AxiosPromise { + updatePet(pet: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(pet, options).then((request) => request(axios, basePath)); }, /** @@ -3946,7 +3946,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -3958,7 +3958,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, /** @@ -3970,7 +3970,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: any): AxiosPromise { + uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options).then((request) => request(axios, basePath)); }, }; @@ -4332,7 +4332,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -4341,7 +4341,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -4351,7 +4351,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -4361,7 +4361,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(order: Order, options?: any): AxiosPromise { + placeOrder(order: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(order, options).then((request) => request(axios, basePath)); }, }; @@ -4852,7 +4852,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(user: User, options?: any): AxiosPromise { + createUser(user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(user, options).then((request) => request(axios, basePath)); }, /** @@ -4862,7 +4862,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(user: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(user: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(user, options).then((request) => request(axios, basePath)); }, /** @@ -4872,7 +4872,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(user: Array, options?: any): AxiosPromise { + createUsersWithListInput(user: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(user, options).then((request) => request(axios, basePath)); }, /** @@ -4882,7 +4882,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -4892,7 +4892,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -4903,7 +4903,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -4912,7 +4912,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -4923,7 +4923,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, user: User, options?: any): AxiosPromise { + updateUser(username: string, user: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, user, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts index 1c9b3e429869..e3035a1de518 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts @@ -736,7 +736,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(body: Pet, options?: any): AxiosPromise { + addPet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(body, options).then((request) => request(axios, basePath)); }, /** @@ -747,7 +747,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -757,7 +757,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -768,7 +768,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -778,7 +778,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -788,7 +788,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(body: Pet, options?: any): AxiosPromise { + updatePet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(body, options).then((request) => request(axios, basePath)); }, /** @@ -800,7 +800,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -812,7 +812,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; @@ -1254,7 +1254,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1263,7 +1263,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -1273,7 +1273,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1283,7 +1283,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(body: Order, options?: any): AxiosPromise { + placeOrder(body: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(body, options).then((request) => request(axios, basePath)); }, }; @@ -1821,7 +1821,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(body: User, options?: any): AxiosPromise { + createUser(body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(body, options).then((request) => request(axios, basePath)); }, /** @@ -1831,7 +1831,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(body: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1841,7 +1841,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(body: Array, options?: any): AxiosPromise { + createUsersWithListInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1851,7 +1851,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -1861,7 +1861,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -1872,7 +1872,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -1881,7 +1881,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -1892,7 +1892,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, body: User, options?: any): AxiosPromise { + updateUser(username: string, body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, body, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts index 01b529c0fda5..8f972c32b2e4 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts @@ -740,7 +740,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(body: Pet, options?: any): AxiosPromise { + addPet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(body, options).then((request) => request(axios, basePath)); }, /** @@ -751,7 +751,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -761,7 +761,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -772,7 +772,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -782,7 +782,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -792,7 +792,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(body: Pet, options?: any): AxiosPromise { + updatePet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(body, options).then((request) => request(axios, basePath)); }, /** @@ -804,7 +804,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -816,7 +816,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; @@ -1162,7 +1162,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1171,7 +1171,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -1181,7 +1181,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1191,7 +1191,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(body?: Order, options?: any): AxiosPromise { + placeOrder(body?: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(body, options).then((request) => request(axios, basePath)); }, }; @@ -1682,7 +1682,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(body: User, options?: any): AxiosPromise { + createUser(body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(body, options).then((request) => request(axios, basePath)); }, /** @@ -1692,7 +1692,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(body: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1702,7 +1702,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(body: Array, options?: any): AxiosPromise { + createUsersWithListInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1712,7 +1712,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -1722,7 +1722,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -1733,7 +1733,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -1742,7 +1742,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -1753,7 +1753,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, body: User, options?: any): AxiosPromise { + updateUser(username: string, body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, body, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts index eba8f3d29375..4814af94ce40 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts @@ -515,7 +515,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(body: Pet, options?: any): AxiosPromise { + addPet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(body, options).then((request) => request(axios, basePath)); }, /** @@ -526,7 +526,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -536,7 +536,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -547,7 +547,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -557,7 +557,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -567,7 +567,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(body: Pet, options?: any): AxiosPromise { + updatePet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(body, options).then((request) => request(axios, basePath)); }, /** @@ -579,7 +579,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -591,7 +591,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts index 9671779d1352..0fcfd906cc8c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts @@ -244,7 +244,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -253,7 +253,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -263,7 +263,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -273,7 +273,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(body: Order, options?: any): AxiosPromise { + placeOrder(body: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(body, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts index ca169877a3a6..7d6d6aeb2b66 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts @@ -451,7 +451,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(body: User, options?: any): AxiosPromise { + createUser(body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(body, options).then((request) => request(axios, basePath)); }, /** @@ -461,7 +461,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(body: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -471,7 +471,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(body: Array, options?: any): AxiosPromise { + createUsersWithListInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -481,7 +481,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -491,7 +491,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -502,7 +502,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -511,7 +511,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -522,7 +522,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, body: User, options?: any): AxiosPromise { + updateUser(username: string, body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, body, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts index 0d32b2e8da0f..df0c45abc78d 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts @@ -736,7 +736,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(body: Pet, options?: any): AxiosPromise { + addPet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(body, options).then((request) => request(axios, basePath)); }, /** @@ -747,7 +747,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -757,7 +757,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -768,7 +768,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -778,7 +778,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -788,7 +788,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(body: Pet, options?: any): AxiosPromise { + updatePet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(body, options).then((request) => request(axios, basePath)); }, /** @@ -800,7 +800,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -812,7 +812,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; @@ -1160,7 +1160,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1169,7 +1169,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -1179,7 +1179,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1189,7 +1189,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(body: Order, options?: any): AxiosPromise { + placeOrder(body: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(body, options).then((request) => request(axios, basePath)); }, }; @@ -1680,7 +1680,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(body: User, options?: any): AxiosPromise { + createUser(body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(body, options).then((request) => request(axios, basePath)); }, /** @@ -1690,7 +1690,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(body: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1700,7 +1700,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(body: Array, options?: any): AxiosPromise { + createUsersWithListInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1710,7 +1710,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -1720,7 +1720,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -1731,7 +1731,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -1740,7 +1740,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -1751,7 +1751,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, body: User, options?: any): AxiosPromise { + updateUser(username: string, body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, body, options).then((request) => request(axios, basePath)); }, }; diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts index ebd4a1ca230d..b9f8757a661c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts @@ -740,7 +740,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addPet(body: Pet, options?: any): AxiosPromise { + addPet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addPet(body, options).then((request) => request(axios, basePath)); }, /** @@ -751,7 +751,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePet(petId: number, apiKey?: string, options?: any): AxiosPromise { + deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deletePet(petId, apiKey, options).then((request) => request(axios, basePath)); }, /** @@ -761,7 +761,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - findPetsByStatus(status: Array, options?: any): AxiosPromise> { + findPetsByStatus(status: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByStatus(status, options).then((request) => request(axios, basePath)); }, /** @@ -772,7 +772,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @deprecated * @throws {RequiredError} */ - findPetsByTags(tags: Array, options?: any): AxiosPromise> { + findPetsByTags(tags: Array, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.findPetsByTags(tags, options).then((request) => request(axios, basePath)); }, /** @@ -782,7 +782,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPetById(petId: number, options?: any): AxiosPromise { + getPetById(petId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPetById(petId, options).then((request) => request(axios, basePath)); }, /** @@ -792,7 +792,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePet(body: Pet, options?: any): AxiosPromise { + updatePet(body: Pet, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePet(body, options).then((request) => request(axios, basePath)); }, /** @@ -804,7 +804,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePetWithForm(petId: number, name?: string, status?: string, options?: any): AxiosPromise { + updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updatePetWithForm(petId, name, status, options).then((request) => request(axios, basePath)); }, /** @@ -816,7 +816,7 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise { + uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath)); }, }; @@ -1164,7 +1164,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrder(orderId: string, options?: any): AxiosPromise { + deleteOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrder(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1173,7 +1173,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getInventory(options?: any): AxiosPromise<{ [key: string]: number; }> { + getInventory(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> { return localVarFp.getInventory(options).then((request) => request(axios, basePath)); }, /** @@ -1183,7 +1183,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrderById(orderId: number, options?: any): AxiosPromise { + getOrderById(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrderById(orderId, options).then((request) => request(axios, basePath)); }, /** @@ -1193,7 +1193,7 @@ export const StoreApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - placeOrder(body: Order, options?: any): AxiosPromise { + placeOrder(body: Order, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.placeOrder(body, options).then((request) => request(axios, basePath)); }, }; @@ -1684,7 +1684,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUser(body: User, options?: any): AxiosPromise { + createUser(body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUser(body, options).then((request) => request(axios, basePath)); }, /** @@ -1694,7 +1694,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithArrayInput(body: Array, options?: any): AxiosPromise { + createUsersWithArrayInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithArrayInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1704,7 +1704,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createUsersWithListInput(body: Array, options?: any): AxiosPromise { + createUsersWithListInput(body: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createUsersWithListInput(body, options).then((request) => request(axios, basePath)); }, /** @@ -1714,7 +1714,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteUser(username: string, options?: any): AxiosPromise { + deleteUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteUser(username, options).then((request) => request(axios, basePath)); }, /** @@ -1724,7 +1724,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUserByName(username: string, options?: any): AxiosPromise { + getUserByName(username: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath)); }, /** @@ -1735,7 +1735,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - loginUser(username: string, password: string, options?: any): AxiosPromise { + loginUser(username: string, password: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.loginUser(username, password, options).then((request) => request(axios, basePath)); }, /** @@ -1744,7 +1744,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logoutUser(options?: any): AxiosPromise { + logoutUser(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logoutUser(options).then((request) => request(axios, basePath)); }, /** @@ -1755,7 +1755,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUser(username: string, body: User, options?: any): AxiosPromise { + updateUser(username: string, body: User, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateUser(username, body, options).then((request) => request(axios, basePath)); }, };