@@ -83,7 +83,7 @@ export class PetApi {
83
83
* @summary Add a new pet to the store
84
84
* @param body Pet object that needs to be added to the store
85
85
*/
86
- public addPet ( body : Pet ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
86
+ public addPet ( body : Pet , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
87
87
const localVarPath = this . basePath + '/pet' ;
88
88
let localVarQueryParameters : any = { } ;
89
89
let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . defaultHeaders ) ;
@@ -94,6 +94,7 @@ export class PetApi {
94
94
throw new Error ( 'Required parameter body was null or undefined when calling addPet.' ) ;
95
95
}
96
96
97
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
97
98
98
99
let localVarUseFormData = false ;
99
100
@@ -138,7 +139,7 @@ export class PetApi {
138
139
* @param petId Pet id to delete
139
140
* @param apiKey
140
141
*/
141
- public deletePet ( petId : number , apiKey ?: string ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
142
+ public deletePet ( petId : number , apiKey ?: string , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
142
143
const localVarPath = this . basePath + '/pet/{petId}'
143
144
. replace ( '{' + 'petId' + '}' , encodeURIComponent ( String ( petId ) ) ) ;
144
145
let localVarQueryParameters : any = { } ;
@@ -151,6 +152,7 @@ export class PetApi {
151
152
}
152
153
153
154
localVarHeaderParams [ 'api_key' ] = ObjectSerializer . serialize ( apiKey , "string" ) ;
155
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
154
156
155
157
let localVarUseFormData = false ;
156
158
@@ -193,7 +195,7 @@ export class PetApi {
193
195
* @summary Finds Pets by status
194
196
* @param status Status values that need to be considered for filter
195
197
*/
196
- public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > ) : Promise < { response : http . ClientResponse ; body : Array < Pet > ; } > {
198
+ public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body : Array < Pet > ; } > {
197
199
const localVarPath = this . basePath + '/pet/findByStatus' ;
198
200
let localVarQueryParameters : any = { } ;
199
201
let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . defaultHeaders ) ;
@@ -208,6 +210,7 @@ export class PetApi {
208
210
localVarQueryParameters [ 'status' ] = ObjectSerializer . serialize ( status , "Array<'available' | 'pending' | 'sold'>" ) ;
209
211
}
210
212
213
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
211
214
212
215
let localVarUseFormData = false ;
213
216
@@ -251,7 +254,7 @@ export class PetApi {
251
254
* @summary Finds Pets by tags
252
255
* @param tags Tags to filter by
253
256
*/
254
- public findPetsByTags ( tags : Array < string > ) : Promise < { response : http . ClientResponse ; body : Array < Pet > ; } > {
257
+ public findPetsByTags ( tags : Array < string > , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body : Array < Pet > ; } > {
255
258
const localVarPath = this . basePath + '/pet/findByTags' ;
256
259
let localVarQueryParameters : any = { } ;
257
260
let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . defaultHeaders ) ;
@@ -266,6 +269,7 @@ export class PetApi {
266
269
localVarQueryParameters [ 'tags' ] = ObjectSerializer . serialize ( tags , "Array<string>" ) ;
267
270
}
268
271
272
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
269
273
270
274
let localVarUseFormData = false ;
271
275
@@ -309,7 +313,7 @@ export class PetApi {
309
313
* @summary Find pet by ID
310
314
* @param petId ID of pet to return
311
315
*/
312
- public getPetById ( petId : number ) : Promise < { response : http . ClientResponse ; body : Pet ; } > {
316
+ public getPetById ( petId : number , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body : Pet ; } > {
313
317
const localVarPath = this . basePath + '/pet/{petId}'
314
318
. replace ( '{' + 'petId' + '}' , encodeURIComponent ( String ( petId ) ) ) ;
315
319
let localVarQueryParameters : any = { } ;
@@ -321,6 +325,7 @@ export class PetApi {
321
325
throw new Error ( 'Required parameter petId was null or undefined when calling getPetById.' ) ;
322
326
}
323
327
328
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
324
329
325
330
let localVarUseFormData = false ;
326
331
@@ -364,7 +369,7 @@ export class PetApi {
364
369
* @summary Update an existing pet
365
370
* @param body Pet object that needs to be added to the store
366
371
*/
367
- public updatePet ( body : Pet ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
372
+ public updatePet ( body : Pet , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
368
373
const localVarPath = this . basePath + '/pet' ;
369
374
let localVarQueryParameters : any = { } ;
370
375
let localVarHeaderParams : any = ( < any > Object ) . assign ( { } , this . defaultHeaders ) ;
@@ -375,6 +380,7 @@ export class PetApi {
375
380
throw new Error ( 'Required parameter body was null or undefined when calling updatePet.' ) ;
376
381
}
377
382
383
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
378
384
379
385
let localVarUseFormData = false ;
380
386
@@ -420,7 +426,7 @@ export class PetApi {
420
426
* @param name Updated name of the pet
421
427
* @param status Updated status of the pet
422
428
*/
423
- public updatePetWithForm ( petId : number , name ?: string , status ?: string ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
429
+ public updatePetWithForm ( petId : number , name ?: string , status ?: string , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body ?: any ; } > {
424
430
const localVarPath = this . basePath + '/pet/{petId}'
425
431
. replace ( '{' + 'petId' + '}' , encodeURIComponent ( String ( petId ) ) ) ;
426
432
let localVarQueryParameters : any = { } ;
@@ -432,6 +438,7 @@ export class PetApi {
432
438
throw new Error ( 'Required parameter petId was null or undefined when calling updatePetWithForm.' ) ;
433
439
}
434
440
441
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
435
442
436
443
let localVarUseFormData = false ;
437
444
@@ -484,7 +491,7 @@ export class PetApi {
484
491
* @param additionalMetadata Additional data to pass to server
485
492
* @param file file to upload
486
493
*/
487
- public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Buffer ) : Promise < { response : http . ClientResponse ; body : ApiResponse ; } > {
494
+ public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Buffer , options : { headers : { [ name : string ] : string } } = { headers : { } } ) : Promise < { response : http . ClientResponse ; body : ApiResponse ; } > {
488
495
const localVarPath = this . basePath + '/pet/{petId}/uploadImage'
489
496
. replace ( '{' + 'petId' + '}' , encodeURIComponent ( String ( petId ) ) ) ;
490
497
let localVarQueryParameters : any = { } ;
@@ -496,6 +503,7 @@ export class PetApi {
496
503
throw new Error ( 'Required parameter petId was null or undefined when calling uploadFile.' ) ;
497
504
}
498
505
506
+ ( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
499
507
500
508
let localVarUseFormData = false ;
501
509
0 commit comments