|
12 | 12 | /* tslint:disable:no-unused-variable member-ordering */
|
13 | 13 |
|
14 | 14 | import { HttpService, Injectable, Optional } from '@nestjs/common';
|
15 |
| -import { AxiosResponse, RawAxiosRequestConfig } from 'axios'; |
| 15 | +import { AxiosRequestConfig, AxiosResponse } from 'axios'; |
16 | 16 | import { Observable, from, of, switchMap } from 'rxjs';
|
17 | 17 | import { ApiResponse } from '../model/apiResponse';
|
18 | 18 | import { Pet } from '../model/pet';
|
@@ -51,8 +51,8 @@ export class PetService {
|
51 | 51 | * @param reportProgress flag to report request and response progress.
|
52 | 52 | * @param {*} [options] Override http request option.
|
53 | 53 | */
|
54 |
| - public addPet(pet: Pet, options?: RawAxiosRequestConfig): Observable<AxiosResponse<Pet>>; |
55 |
| - public addPet(pet: Pet, options?: RawAxiosRequestConfig): Observable<any> { |
| 54 | + public addPet(pet: Pet, options?: AxiosRequestConfig): Observable<AxiosResponse<Pet>>; |
| 55 | + public addPet(pet: Pet, options?: AxiosRequestConfig): Observable<any> { |
56 | 56 | if (pet === null || pet === undefined) {
|
57 | 57 | throw new Error('Required parameter pet was null or undefined when calling addPet.');
|
58 | 58 | }
|
@@ -113,8 +113,8 @@ export class PetService {
|
113 | 113 | * @param reportProgress flag to report request and response progress.
|
114 | 114 | * @param {*} [options] Override http request option.
|
115 | 115 | */
|
116 |
| - public deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): Observable<AxiosResponse<any>>; |
117 |
| - public deletePet(petId: number, apiKey?: string, options?: RawAxiosRequestConfig): Observable<any> { |
| 116 | + public deletePet(petId: number, apiKey?: string, options?: AxiosRequestConfig): Observable<AxiosResponse<any>>; |
| 117 | + public deletePet(petId: number, apiKey?: string, options?: AxiosRequestConfig): Observable<any> { |
118 | 118 | if (petId === null || petId === undefined) {
|
119 | 119 | throw new Error('Required parameter petId was null or undefined when calling deletePet.');
|
120 | 120 | }
|
@@ -168,8 +168,8 @@ export class PetService {
|
168 | 168 | * @param reportProgress flag to report request and response progress.
|
169 | 169 | * @param {*} [options] Override http request option.
|
170 | 170 | */
|
171 |
| - public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: RawAxiosRequestConfig): Observable<AxiosResponse<Array<Pet>>>; |
172 |
| - public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: RawAxiosRequestConfig): Observable<any> { |
| 171 | + public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: AxiosRequestConfig): Observable<AxiosResponse<Array<Pet>>>; |
| 172 | + public findPetsByStatus(status: Array<'available' | 'pending' | 'sold'>, options?: AxiosRequestConfig): Observable<any> { |
173 | 173 | if (status === null || status === undefined) {
|
174 | 174 | throw new Error('Required parameter status was null or undefined when calling findPetsByStatus.');
|
175 | 175 | }
|
@@ -228,8 +228,8 @@ export class PetService {
|
228 | 228 | * @param reportProgress flag to report request and response progress.
|
229 | 229 | * @param {*} [options] Override http request option.
|
230 | 230 | */
|
231 |
| - public findPetsByTags(tags: Array<string>, options?: RawAxiosRequestConfig): Observable<AxiosResponse<Array<Pet>>>; |
232 |
| - public findPetsByTags(tags: Array<string>, options?: RawAxiosRequestConfig): Observable<any> { |
| 231 | + public findPetsByTags(tags: Array<string>, options?: AxiosRequestConfig): Observable<AxiosResponse<Array<Pet>>>; |
| 232 | + public findPetsByTags(tags: Array<string>, options?: AxiosRequestConfig): Observable<any> { |
233 | 233 | if (tags === null || tags === undefined) {
|
234 | 234 | throw new Error('Required parameter tags was null or undefined when calling findPetsByTags.');
|
235 | 235 | }
|
@@ -288,8 +288,8 @@ export class PetService {
|
288 | 288 | * @param reportProgress flag to report request and response progress.
|
289 | 289 | * @param {*} [options] Override http request option.
|
290 | 290 | */
|
291 |
| - public getPetById(petId: number, options?: RawAxiosRequestConfig): Observable<AxiosResponse<Pet>>; |
292 |
| - public getPetById(petId: number, options?: RawAxiosRequestConfig): Observable<any> { |
| 291 | + public getPetById(petId: number, options?: AxiosRequestConfig): Observable<AxiosResponse<Pet>>; |
| 292 | + public getPetById(petId: number, options?: AxiosRequestConfig): Observable<any> { |
293 | 293 | if (petId === null || petId === undefined) {
|
294 | 294 | throw new Error('Required parameter petId was null or undefined when calling getPetById.');
|
295 | 295 | }
|
@@ -340,8 +340,8 @@ export class PetService {
|
340 | 340 | * @param reportProgress flag to report request and response progress.
|
341 | 341 | * @param {*} [options] Override http request option.
|
342 | 342 | */
|
343 |
| - public updatePet(pet: Pet, options?: RawAxiosRequestConfig): Observable<AxiosResponse<Pet>>; |
344 |
| - public updatePet(pet: Pet, options?: RawAxiosRequestConfig): Observable<any> { |
| 343 | + public updatePet(pet: Pet, options?: AxiosRequestConfig): Observable<AxiosResponse<Pet>>; |
| 344 | + public updatePet(pet: Pet, options?: AxiosRequestConfig): Observable<any> { |
345 | 345 | if (pet === null || pet === undefined) {
|
346 | 346 | throw new Error('Required parameter pet was null or undefined when calling updatePet.');
|
347 | 347 | }
|
@@ -403,8 +403,8 @@ export class PetService {
|
403 | 403 | * @param reportProgress flag to report request and response progress.
|
404 | 404 | * @param {*} [options] Override http request option.
|
405 | 405 | */
|
406 |
| - public updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): Observable<AxiosResponse<any>>; |
407 |
| - public updatePetWithForm(petId: number, name?: string, status?: string, options?: RawAxiosRequestConfig): Observable<any> { |
| 406 | + public updatePetWithForm(petId: number, name?: string, status?: string, options?: AxiosRequestConfig): Observable<AxiosResponse<any>>; |
| 407 | + public updatePetWithForm(petId: number, name?: string, status?: string, options?: AxiosRequestConfig): Observable<any> { |
408 | 408 | if (petId === null || petId === undefined) {
|
409 | 409 | throw new Error('Required parameter petId was null or undefined when calling updatePetWithForm.');
|
410 | 410 | }
|
@@ -479,8 +479,8 @@ export class PetService {
|
479 | 479 | * @param reportProgress flag to report request and response progress.
|
480 | 480 | * @param {*} [options] Override http request option.
|
481 | 481 | */
|
482 |
| - public uploadFile(petId: number, additionalMetadata?: string, file?: Blob, options?: RawAxiosRequestConfig): Observable<AxiosResponse<ApiResponse>>; |
483 |
| - public uploadFile(petId: number, additionalMetadata?: string, file?: Blob, options?: RawAxiosRequestConfig): Observable<any> { |
| 482 | + public uploadFile(petId: number, additionalMetadata?: string, file?: Blob, options?: AxiosRequestConfig): Observable<AxiosResponse<ApiResponse>>; |
| 483 | + public uploadFile(petId: number, additionalMetadata?: string, file?: Blob, options?: AxiosRequestConfig): Observable<any> { |
484 | 484 | if (petId === null || petId === undefined) {
|
485 | 485 | throw new Error('Required parameter petId was null or undefined when calling uploadFile.');
|
486 | 486 | }
|
|
0 commit comments