forked from loafle/openapi-generator-original
[Typescript] Fix generated type for files (#12831)
* fix file types description problem in: https://github.com/OpenAPITools/openapi-generator/issues/12744 * fix: generate
This commit is contained in:
@@ -436,9 +436,9 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
|
||||
String nullSafeSuffix = getNullSafeAdditionalProps() ? " | undefined" : "";
|
||||
return "{ [key: string]: " + getTypeDeclaration(unaliasSchema(inner)) + nullSafeSuffix + "; }";
|
||||
} else if (ModelUtils.isFileSchema(p)) {
|
||||
return "any";
|
||||
return "File";
|
||||
} else if (ModelUtils.isBinarySchema(p)) {
|
||||
return "any";
|
||||
return "ArrayBuffer";
|
||||
}
|
||||
return super.getTypeDeclaration(p);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ export interface IUpdatePetWithFormParams {
|
||||
export interface IUploadFileParams {
|
||||
petId: number;
|
||||
additionalMetadata?: string;
|
||||
file?: any;
|
||||
file?: File;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -550,11 +550,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -693,11 +693,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -790,11 +790,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -900,12 +900,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -550,11 +550,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -693,11 +693,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -790,11 +790,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -900,12 +900,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -793,10 +793,10 @@ export interface FormatTest {
|
||||
'byte': string;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @type {File}
|
||||
* @memberof FormatTest
|
||||
*/
|
||||
'binary'?: any;
|
||||
'binary'?: File;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -2255,7 +2255,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -2263,7 +2263,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
testEndpointParameters: async (number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: any, date?: string, dateTime?: string, password?: string, callback?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
testEndpointParameters: async (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: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'number' is not null or undefined
|
||||
assertParamExists('testEndpointParameters', 'number', number)
|
||||
// verify required parameter '_double' is not null or undefined
|
||||
@@ -2770,7 +2770,7 @@ export const FakeApiFp = function(configuration?: Configuration) {
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -2778,7 +2778,7 @@ export const FakeApiFp = function(configuration?: Configuration) {
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: any, date?: string, dateTime?: string, password?: string, callback?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
async 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?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -2958,7 +2958,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath?
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -2966,7 +2966,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?: any, date?: string, dateTime?: string, password?: string, callback?: string, options?: any): AxiosPromise<void> {
|
||||
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<void> {
|
||||
return localVarFp.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@@ -3158,7 +3158,7 @@ export class FakeApi extends BaseAPI {
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -3167,7 +3167,7 @@ export class FakeApi extends BaseAPI {
|
||||
* @throws {RequiredError}
|
||||
* @memberof FakeApi
|
||||
*/
|
||||
public testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: any, date?: string, dateTime?: string, password?: string, callback?: string, options?: AxiosRequestConfig) {
|
||||
public 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?: AxiosRequestConfig) {
|
||||
return FakeApiFp(this.configuration).testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
@@ -3673,11 +3673,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -3724,12 +3724,12 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFileWithRequiredFile: async (petId: number, requiredFile: any, additionalMetadata?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFileWithRequiredFile: async (petId: number, requiredFile: File, additionalMetadata?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFileWithRequiredFile', 'petId', petId)
|
||||
// verify required parameter 'requiredFile' is not null or undefined
|
||||
@@ -3870,11 +3870,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -3882,12 +3882,12 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFileWithRequiredFile(petId: number, requiredFile: any, additionalMetadata?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -3980,23 +3980,23 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFileWithRequiredFile(petId: number, requiredFile: any, additionalMetadata?: string, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -4102,12 +4102,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
@@ -4115,13 +4115,13 @@ export class PetApi extends BaseAPI {
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFileWithRequiredFile(petId: number, requiredFile: any, additionalMetadata?: string, options?: AxiosRequestConfig) {
|
||||
public uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -584,11 +584,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -730,11 +730,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -830,11 +830,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -943,12 +943,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -573,10 +573,10 @@ export interface FormatTest {
|
||||
'byte': string;
|
||||
/**
|
||||
*
|
||||
* @type {any}
|
||||
* @type {File}
|
||||
* @memberof FormatTest
|
||||
*/
|
||||
'binary'?: any;
|
||||
'binary'?: File;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -1853,7 +1853,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -1861,7 +1861,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
testEndpointParameters: async (number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: any, date?: string, dateTime?: string, password?: string, callback?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
testEndpointParameters: async (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: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'number' is not null or undefined
|
||||
assertParamExists('testEndpointParameters', 'number', number)
|
||||
// verify required parameter '_double' is not null or undefined
|
||||
@@ -2402,7 +2402,7 @@ export const FakeApiFp = function(configuration?: Configuration) {
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -2410,7 +2410,7 @@ export const FakeApiFp = function(configuration?: Configuration) {
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: any, date?: string, dateTime?: string, password?: string, callback?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
async 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?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -2592,7 +2592,7 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath?
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -2600,7 +2600,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?: any, date?: string, dateTime?: string, password?: string, callback?: string, options?: any): AxiosPromise<void> {
|
||||
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<void> {
|
||||
return localVarFp.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@@ -2791,7 +2791,7 @@ export class FakeApi extends BaseAPI {
|
||||
* @param {number} [int64] None
|
||||
* @param {number} [_float] None
|
||||
* @param {string} [string] None
|
||||
* @param {any} [binary] None
|
||||
* @param {File} [binary] None
|
||||
* @param {string} [date] None
|
||||
* @param {string} [dateTime] None
|
||||
* @param {string} [password] None
|
||||
@@ -2800,7 +2800,7 @@ export class FakeApi extends BaseAPI {
|
||||
* @throws {RequiredError}
|
||||
* @memberof FakeApi
|
||||
*/
|
||||
public testEndpointParameters(number: number, _double: number, patternWithoutDelimiter: string, _byte: string, integer?: number, int32?: number, int64?: number, _float?: number, string?: string, binary?: any, date?: string, dateTime?: string, password?: string, callback?: string, options?: AxiosRequestConfig) {
|
||||
public 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?: AxiosRequestConfig) {
|
||||
return FakeApiFp(this.configuration).testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, callback, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
@@ -3318,11 +3318,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -3369,12 +3369,12 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFileWithRequiredFile: async (petId: number, requiredFile: any, additionalMetadata?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFileWithRequiredFile: async (petId: number, requiredFile: File, additionalMetadata?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFileWithRequiredFile', 'petId', petId)
|
||||
// verify required parameter 'requiredFile' is not null or undefined
|
||||
@@ -3515,11 +3515,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -3527,12 +3527,12 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFileWithRequiredFile(petId: number, requiredFile: any, additionalMetadata?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -3625,23 +3625,23 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFileWithRequiredFile(petId: number, requiredFile: any, additionalMetadata?: string, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -3747,12 +3747,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
@@ -3760,13 +3760,13 @@ export class PetApi extends BaseAPI {
|
||||
*
|
||||
* @summary uploads an image (required)
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {any} requiredFile file to upload
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFileWithRequiredFile(petId: number, requiredFile: any, additionalMetadata?: string, options?: AxiosRequestConfig) {
|
||||
public uploadFileWithRequiredFile(petId: number, requiredFile: File, additionalMetadata?: string, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -550,11 +550,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -693,11 +693,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -790,11 +790,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -885,12 +885,12 @@ export interface PetApiInterface {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApiInterface
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): AxiosPromise<ApiResponse>;
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): AxiosPromise<ApiResponse>;
|
||||
|
||||
}
|
||||
|
||||
@@ -994,12 +994,12 @@ export class PetApi extends BaseAPI implements PetApiInterface {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -554,11 +554,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -697,11 +697,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -794,11 +794,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -904,12 +904,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,11 +330,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -473,11 +473,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -570,11 +570,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -680,12 +680,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -550,11 +550,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -693,11 +693,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -790,11 +790,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -900,12 +900,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -550,11 +550,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -693,11 +693,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -790,11 +790,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -941,10 +941,10 @@ export interface PetApiUploadFileRequest {
|
||||
|
||||
/**
|
||||
* file to upload
|
||||
* @type {any}
|
||||
* @type {File}
|
||||
* @memberof PetApiUploadFile
|
||||
*/
|
||||
readonly file?: any
|
||||
readonly file?: File
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -554,11 +554,11 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
uploadFile: async (petId: number, additionalMetadata?: string, file?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'petId' is not null or undefined
|
||||
assertParamExists('uploadFile', 'petId', petId)
|
||||
const localVarPath = `/pet/{petId}/uploadImage`
|
||||
@@ -697,11 +697,11 @@ export const PetApiFp = function(configuration?: Configuration) {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(petId, additionalMetadata, file, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -794,11 +794,11 @@ export const PetApiFactory = function (configuration?: Configuration, basePath?:
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: any): AxiosPromise<ApiResponse> {
|
||||
uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: any): AxiosPromise<ApiResponse> {
|
||||
return localVarFp.uploadFile(petId, additionalMetadata, file, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -904,12 +904,12 @@ export class PetApi extends BaseAPI {
|
||||
* @summary uploads an image
|
||||
* @param {number} petId ID of pet to update
|
||||
* @param {string} [additionalMetadata] Additional data to pass to server
|
||||
* @param {any} [file] file to upload
|
||||
* @param {File} [file] file to upload
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof PetApi
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, options?: AxiosRequestConfig) {
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, options?: AxiosRequestConfig) {
|
||||
return PetApiFp(this.configuration).uploadFile(petId, additionalMetadata, file, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -584,7 +584,7 @@ export class PetApi {
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
* @param file file to upload
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise<
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise<
|
||||
{ response: JQueryXHR; body: models.ApiResponse; },
|
||||
{ response: JQueryXHR; errorThrown: string }
|
||||
> {
|
||||
|
||||
@@ -584,7 +584,7 @@ export class PetApi {
|
||||
* @param additionalMetadata Additional data to pass to server
|
||||
* @param file file to upload
|
||||
*/
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: any, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise<
|
||||
public uploadFile(petId: number, additionalMetadata?: string, file?: File, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQuery.Promise<
|
||||
{ response: JQueryXHR; body: models.ApiResponse; },
|
||||
{ response: JQueryXHR; errorThrown: string }
|
||||
> {
|
||||
|
||||
Reference in New Issue
Block a user