@@ -7,7 +7,7 @@ import * as errors from "./models/errors";
7
7
import * as operations from "./models/operations" ;
8
8
import * as shared from "./models/shared" ;
9
9
import { SDKConfiguration } from "./sdk" ;
10
- import { AxiosInstance , AxiosRequestConfig , AxiosResponse } from "axios" ;
10
+ import { AxiosInstance , AxiosRequestConfig , AxiosResponse , RawAxiosRequestHeaders } from "axios" ;
11
11
12
12
/**
13
13
* REST APIs for managing ApiEndpoint entities
@@ -56,7 +56,7 @@ export class ApiEndpoints {
56
56
globalSecurity = new shared . Security ( globalSecurity ) ;
57
57
}
58
58
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
59
- const headers = { ...config ?. headers , ...properties . headers } ;
59
+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
60
60
headers [ "Accept" ] = "application/json" ;
61
61
62
62
headers [
@@ -137,7 +137,7 @@ export class ApiEndpoints {
137
137
globalSecurity = new shared . Security ( globalSecurity ) ;
138
138
}
139
139
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
140
- const headers = { ...config ?. headers , ...properties . headers } ;
140
+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
141
141
headers [ "Accept" ] = "application/json" ;
142
142
143
143
headers [
@@ -231,7 +231,7 @@ export class ApiEndpoints {
231
231
globalSecurity = new shared . Security ( globalSecurity ) ;
232
232
}
233
233
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
234
- const headers = { ...config ?. headers , ...properties . headers } ;
234
+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
235
235
headers [ "Accept" ] = "application/json" ;
236
236
237
237
headers [
@@ -326,7 +326,7 @@ export class ApiEndpoints {
326
326
globalSecurity = new shared . Security ( globalSecurity ) ;
327
327
}
328
328
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
329
- const headers = { ...config ?. headers , ...properties . headers } ;
329
+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
330
330
if ( acceptHeaderOverride !== undefined ) {
331
331
headers [ "Accept" ] = acceptHeaderOverride . toString ( ) ;
332
332
} else {
@@ -414,7 +414,7 @@ export class ApiEndpoints {
414
414
globalSecurity = new shared . Security ( globalSecurity ) ;
415
415
}
416
416
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
417
- const headers = { ...config ?. headers , ...properties . headers } ;
417
+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
418
418
headers [ "Accept" ] = "application/json" ;
419
419
420
420
headers [
@@ -508,7 +508,7 @@ export class ApiEndpoints {
508
508
globalSecurity = new shared . Security ( globalSecurity ) ;
509
509
}
510
510
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
511
- const headers = { ...config ?. headers , ...properties . headers } ;
511
+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
512
512
headers [ "Accept" ] = "application/json" ;
513
513
514
514
headers [
@@ -602,7 +602,7 @@ export class ApiEndpoints {
602
602
globalSecurity = new shared . Security ( globalSecurity ) ;
603
603
}
604
604
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
605
- const headers = { ...config ?. headers , ...properties . headers } ;
605
+ const headers : RawAxiosRequestHeaders = { ...config ?. headers , ...properties . headers } ;
606
606
headers [ "Accept" ] = "application/json" ;
607
607
608
608
headers [
@@ -705,7 +705,11 @@ export class ApiEndpoints {
705
705
globalSecurity = new shared . Security ( globalSecurity ) ;
706
706
}
707
707
const properties = utils . parseSecurityProperties ( globalSecurity ) ;
708
- const headers = { ...reqBodyHeaders , ...config ?. headers , ...properties . headers } ;
708
+ const headers : RawAxiosRequestHeaders = {
709
+ ...reqBodyHeaders ,
710
+ ...config ?. headers ,
711
+ ...properties . headers ,
712
+ } ;
709
713
if ( reqBody == null ) throw new Error ( "request body is required" ) ;
710
714
headers [ "Accept" ] = "application/json" ;
711
715
0 commit comments