@@ -50,7 +50,7 @@ export class PetService {
50
50
*/
51
51
private canConsumeForm ( consumes : string [ ] ) : boolean {
52
52
const form = 'multipart/form-data' ;
53
- for ( let consume of consumes ) {
53
+ for ( const consume of consumes ) {
54
54
if ( form === consume ) {
55
55
return true ;
56
56
}
@@ -207,7 +207,7 @@ export class PetService {
207
207
208
208
// authentication (petstore_auth) required
209
209
if ( this . configuration . accessToken ) {
210
- let accessToken = typeof this . configuration . accessToken === 'function'
210
+ const accessToken = typeof this . configuration . accessToken === 'function'
211
211
? this . configuration . accessToken ( )
212
212
: this . configuration . accessToken ;
213
213
headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
@@ -218,17 +218,17 @@ export class PetService {
218
218
'application/xml' ,
219
219
'application/json'
220
220
] ;
221
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
221
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
222
222
if ( httpHeaderAcceptSelected != undefined ) {
223
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
223
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
224
224
}
225
225
226
226
// to determine the Content-Type header
227
- let consumes : string [ ] = [
227
+ const consumes : string [ ] = [
228
228
'application/json' ,
229
229
'application/xml'
230
230
] ;
231
- let httpContentTypeSelected :string | undefined = this . configuration . selectHeaderContentType ( consumes ) ;
231
+ const httpContentTypeSelected : string | undefined = this . configuration . selectHeaderContentType ( consumes ) ;
232
232
if ( httpContentTypeSelected != undefined ) {
233
233
headers . set ( 'Content-Type' , httpContentTypeSelected ) ;
234
234
}
@@ -266,7 +266,7 @@ export class PetService {
266
266
267
267
// authentication (petstore_auth) required
268
268
if ( this . configuration . accessToken ) {
269
- let accessToken = typeof this . configuration . accessToken === 'function'
269
+ const accessToken = typeof this . configuration . accessToken === 'function'
270
270
? this . configuration . accessToken ( )
271
271
: this . configuration . accessToken ;
272
272
headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
@@ -277,13 +277,13 @@ export class PetService {
277
277
'application/xml' ,
278
278
'application/json'
279
279
] ;
280
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
280
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
281
281
if ( httpHeaderAcceptSelected != undefined ) {
282
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
282
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
283
283
}
284
284
285
285
// to determine the Content-Type header
286
- let consumes : string [ ] = [
286
+ const consumes : string [ ] = [
287
287
] ;
288
288
289
289
let requestOptions : RequestOptionsArgs = new RequestOptions ( {
@@ -319,7 +319,7 @@ export class PetService {
319
319
320
320
// authentication (petstore_auth) required
321
321
if ( this . configuration . accessToken ) {
322
- let accessToken = typeof this . configuration . accessToken === 'function'
322
+ const accessToken = typeof this . configuration . accessToken === 'function'
323
323
? this . configuration . accessToken ( )
324
324
: this . configuration . accessToken ;
325
325
headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
@@ -330,13 +330,13 @@ export class PetService {
330
330
'application/xml' ,
331
331
'application/json'
332
332
] ;
333
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
333
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
334
334
if ( httpHeaderAcceptSelected != undefined ) {
335
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
335
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
336
336
}
337
337
338
338
// to determine the Content-Type header
339
- let consumes : string [ ] = [
339
+ const consumes : string [ ] = [
340
340
] ;
341
341
342
342
let requestOptions : RequestOptionsArgs = new RequestOptions ( {
@@ -373,7 +373,7 @@ export class PetService {
373
373
374
374
// authentication (petstore_auth) required
375
375
if ( this . configuration . accessToken ) {
376
- let accessToken = typeof this . configuration . accessToken === 'function'
376
+ const accessToken = typeof this . configuration . accessToken === 'function'
377
377
? this . configuration . accessToken ( )
378
378
: this . configuration . accessToken ;
379
379
headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
@@ -384,13 +384,13 @@ export class PetService {
384
384
'application/xml' ,
385
385
'application/json'
386
386
] ;
387
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
387
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
388
388
if ( httpHeaderAcceptSelected != undefined ) {
389
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
389
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
390
390
}
391
391
392
392
// to determine the Content-Type header
393
- let consumes : string [ ] = [
393
+ const consumes : string [ ] = [
394
394
] ;
395
395
396
396
let requestOptions : RequestOptionsArgs = new RequestOptions ( {
@@ -430,13 +430,13 @@ export class PetService {
430
430
'application/xml' ,
431
431
'application/json'
432
432
] ;
433
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
433
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
434
434
if ( httpHeaderAcceptSelected != undefined ) {
435
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
435
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
436
436
}
437
437
438
438
// to determine the Content-Type header
439
- let consumes : string [ ] = [
439
+ const consumes : string [ ] = [
440
440
] ;
441
441
442
442
let requestOptions : RequestOptionsArgs = new RequestOptions ( {
@@ -467,7 +467,7 @@ export class PetService {
467
467
468
468
// authentication (petstore_auth) required
469
469
if ( this . configuration . accessToken ) {
470
- let accessToken = typeof this . configuration . accessToken === 'function'
470
+ const accessToken = typeof this . configuration . accessToken === 'function'
471
471
? this . configuration . accessToken ( )
472
472
: this . configuration . accessToken ;
473
473
headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
@@ -478,17 +478,17 @@ export class PetService {
478
478
'application/xml' ,
479
479
'application/json'
480
480
] ;
481
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
481
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
482
482
if ( httpHeaderAcceptSelected != undefined ) {
483
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
483
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
484
484
}
485
485
486
486
// to determine the Content-Type header
487
- let consumes : string [ ] = [
487
+ const consumes : string [ ] = [
488
488
'application/json' ,
489
489
'application/xml'
490
490
] ;
491
- let httpContentTypeSelected :string | undefined = this . configuration . selectHeaderContentType ( consumes ) ;
491
+ const httpContentTypeSelected : string | undefined = this . configuration . selectHeaderContentType ( consumes ) ;
492
492
if ( httpContentTypeSelected != undefined ) {
493
493
headers . set ( 'Content-Type' , httpContentTypeSelected ) ;
494
494
}
@@ -524,7 +524,7 @@ export class PetService {
524
524
525
525
// authentication (petstore_auth) required
526
526
if ( this . configuration . accessToken ) {
527
- let accessToken = typeof this . configuration . accessToken === 'function'
527
+ const accessToken = typeof this . configuration . accessToken === 'function'
528
528
? this . configuration . accessToken ( )
529
529
: this . configuration . accessToken ;
530
530
headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
@@ -535,13 +535,13 @@ export class PetService {
535
535
'application/xml' ,
536
536
'application/json'
537
537
] ;
538
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
538
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
539
539
if ( httpHeaderAcceptSelected != undefined ) {
540
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
540
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
541
541
}
542
542
543
543
// to determine the Content-Type header
544
- let consumes : string [ ] = [
544
+ const consumes : string [ ] = [
545
545
'application/x-www-form-urlencoded'
546
546
] ;
547
547
@@ -598,7 +598,7 @@ export class PetService {
598
598
599
599
// authentication (petstore_auth) required
600
600
if ( this . configuration . accessToken ) {
601
- let accessToken = typeof this . configuration . accessToken === 'function'
601
+ const accessToken = typeof this . configuration . accessToken === 'function'
602
602
? this . configuration . accessToken ( )
603
603
: this . configuration . accessToken ;
604
604
headers . set ( 'Authorization' , 'Bearer ' + accessToken ) ;
@@ -608,13 +608,13 @@ export class PetService {
608
608
let httpHeaderAccepts : string [ ] = [
609
609
'application/json'
610
610
] ;
611
- let httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
611
+ const httpHeaderAcceptSelected : string | undefined = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ;
612
612
if ( httpHeaderAcceptSelected != undefined ) {
613
- headers . set ( " Accept" , httpHeaderAcceptSelected ) ;
613
+ headers . set ( ' Accept' , httpHeaderAcceptSelected ) ;
614
614
}
615
615
616
616
// to determine the Content-Type header
617
- let consumes : string [ ] = [
617
+ const consumes : string [ ] = [
618
618
'multipart/form-data'
619
619
] ;
620
620
0 commit comments