@emilgroup/insurance-sdk-node 1.104.1-beta.107 → 1.104.1-beta.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.openapi-generator/FILES +0 -2
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -4
  4. package/api/booking-funnels-api.ts +24 -12
  5. package/api/commission-agreement-items-api.ts +20 -10
  6. package/api/commission-agreement-products-api.ts +20 -10
  7. package/api/commission-agreement-versions-api.ts +16 -8
  8. package/api/commission-agreements-api.ts +20 -10
  9. package/api/commission-recipients-api.ts +20 -10
  10. package/api/emil-functions-api.ts +44 -22
  11. package/api/health-check-api.ts +6 -10
  12. package/api/insured-object-types-api.ts +4 -2
  13. package/api/insured-objects-api.ts +16 -8
  14. package/api/lead-statuses-api.ts +20 -10
  15. package/api/lead-versions-api.ts +8 -4
  16. package/api/leads-api.ts +40 -20
  17. package/api/named-ranges-api.ts +24 -12
  18. package/api/partner-links-api.ts +24 -12
  19. package/api/partner-roles-api.ts +20 -10
  20. package/api/policies-api.ts +68 -34
  21. package/api/premium-calculation-api.ts +4 -2
  22. package/api/premium-formulas-api.ts +24 -12
  23. package/api/product-configs-api.ts +24 -12
  24. package/api/product-factors-api.ts +28 -14
  25. package/api/product-fields-api.ts +28 -14
  26. package/api/product-versions-api.ts +8 -4
  27. package/api/products-api.ts +24 -12
  28. package/api/status-transition-rules-api.ts +24 -12
  29. package/dist/api/booking-funnel-versions-api.js +11 -7
  30. package/dist/api/booking-funnels-api.js +39 -23
  31. package/dist/api/commission-agreement-items-api.js +29 -18
  32. package/dist/api/commission-agreement-products-api.js +29 -18
  33. package/dist/api/commission-agreement-versions-api.js +22 -14
  34. package/dist/api/commission-agreements-api.js +29 -18
  35. package/dist/api/commission-recipients-api.js +32 -19
  36. package/dist/api/emil-functions-api.js +74 -43
  37. package/dist/api/health-check-api.d.ts +7 -8
  38. package/dist/api/health-check-api.js +4 -4
  39. package/dist/api/insured-object-types-api.js +4 -3
  40. package/dist/api/insured-objects-api.js +22 -14
  41. package/dist/api/lead-statuses-api.js +32 -19
  42. package/dist/api/lead-versions-api.js +11 -7
  43. package/dist/api/leads-api.js +64 -38
  44. package/dist/api/named-ranges-api.js +36 -22
  45. package/dist/api/partner-links-api.js +36 -22
  46. package/dist/api/partner-roles-api.js +32 -19
  47. package/dist/api/policies-api.js +101 -62
  48. package/dist/api/premium-calculation-api.js +7 -4
  49. package/dist/api/premium-formulas-api.js +39 -23
  50. package/dist/api/product-configs-api.js +39 -23
  51. package/dist/api/product-factors-api.js +37 -24
  52. package/dist/api/product-fields-api.js +43 -26
  53. package/dist/api/product-versions-api.js +11 -7
  54. package/dist/api/products-api.js +33 -21
  55. package/dist/api/status-transition-rules-api.js +36 -22
  56. package/dist/models/index.d.ts +0 -2
  57. package/dist/models/index.js +0 -2
  58. package/models/index.ts +0 -2
  59. package/package.json +1 -1
  60. package/dist/models/inline-response200.d.ts +0 -54
  61. package/dist/models/inline-response200.js +0 -15
  62. package/dist/models/inline-response503.d.ts +0 -54
  63. package/dist/models/inline-response503.js +0 -15
  64. package/models/inline-response200.ts +0 -48
  65. package/models/inline-response503.ts +0 -48
@@ -20,10 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { InlineResponse200 } from '../models';
25
- // @ts-ignore
26
- import { InlineResponse503 } from '../models';
27
23
  // URLSearchParams not necessarily used
28
24
  // @ts-ignore
29
25
  import { URL, URLSearchParams } from 'url';
@@ -35,7 +31,7 @@ const FormData = require('form-data');
35
31
  export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
36
32
  return {
37
33
  /**
38
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
34
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
39
35
  * @summary Health Check
40
36
  * @param {*} [options] Override http request option.
41
37
  * @throws {RequiredError}
@@ -77,12 +73,12 @@ export const HealthCheckApiFp = function(configuration?: Configuration) {
77
73
  const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
78
74
  return {
79
75
  /**
80
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
76
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
81
77
  * @summary Health Check
82
78
  * @param {*} [options] Override http request option.
83
79
  * @throws {RequiredError}
84
80
  */
85
- async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
81
+ async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
86
82
  const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
87
83
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
88
84
  },
@@ -97,12 +93,12 @@ export const HealthCheckApiFactory = function (configuration?: Configuration, ba
97
93
  const localVarFp = HealthCheckApiFp(configuration)
98
94
  return {
99
95
  /**
100
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
96
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
101
97
  * @summary Health Check
102
98
  * @param {*} [options] Override http request option.
103
99
  * @throws {RequiredError}
104
100
  */
105
- check(options?: any): AxiosPromise<InlineResponse200> {
101
+ check(options?: any): AxiosPromise<void> {
106
102
  return localVarFp.check(options).then((request) => request(axios, basePath));
107
103
  },
108
104
  };
@@ -116,7 +112,7 @@ export const HealthCheckApiFactory = function (configuration?: Configuration, ba
116
112
  */
117
113
  export class HealthCheckApi extends BaseAPI {
118
114
  /**
119
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
115
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
120
116
  * @summary Health Check
121
117
  * @param {*} [options] Override http request option.
122
118
  * @throws {RequiredError}
@@ -93,8 +93,10 @@ export const InsuredObjectTypesApiAxiosParamCreator = function (configuration?:
93
93
  localVarQueryParameter['filters'] = filters;
94
94
  }
95
95
 
96
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
96
+ // Only Authorization falls back to the configured token; an empty value is never sent.
97
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
98
+ if (authorizationValue) {
99
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
98
100
  }
99
101
 
100
102
 
@@ -67,8 +67,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token; an empty value is never sent.
71
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
+ if (authorizationValue) {
73
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
74
  }
73
75
 
74
76
 
@@ -115,8 +117,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
115
117
  // http bearer authentication required
116
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
119
 
118
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ // Only Authorization falls back to the configured token; an empty value is never sent.
121
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
122
+ if (authorizationValue) {
123
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
124
  }
121
125
 
122
126
 
@@ -165,8 +169,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
165
169
  localVarQueryParameter['expand'] = expand;
166
170
  }
167
171
 
168
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
172
+ // Only Authorization falls back to the configured token; an empty value is never sent.
173
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
174
+ if (authorizationValue) {
175
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
176
  }
171
177
 
172
178
 
@@ -241,8 +247,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
241
247
  localVarQueryParameter['filters'] = filters;
242
248
  }
243
249
 
244
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ // Only Authorization falls back to the configured token; an empty value is never sent.
251
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
246
254
  }
247
255
 
248
256
 
@@ -73,8 +73,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ // Only Authorization falls back to the configured token; an empty value is never sent.
77
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
+ if (authorizationValue) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
80
  }
79
81
 
80
82
 
@@ -121,8 +123,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
121
123
  // http bearer authentication required
122
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
125
 
124
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ // Only Authorization falls back to the configured token; an empty value is never sent.
127
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
+ if (authorizationValue) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
130
  }
127
131
 
128
132
 
@@ -166,8 +170,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
166
170
  // http bearer authentication required
167
171
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
172
 
169
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
+ // Only Authorization falls back to the configured token; an empty value is never sent.
174
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
175
+ if (authorizationValue) {
176
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
171
177
  }
172
178
 
173
179
 
@@ -242,8 +248,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
242
248
  localVarQueryParameter['filters'] = filters;
243
249
  }
244
250
 
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ // Only Authorization falls back to the configured token; an empty value is never sent.
252
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
253
+ if (authorizationValue) {
254
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
255
  }
248
256
 
249
257
 
@@ -290,8 +298,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
290
298
  // http bearer authentication required
291
299
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
292
300
 
293
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
294
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ // Only Authorization falls back to the configured token; an empty value is never sent.
302
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
303
+ if (authorizationValue) {
304
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
295
305
  }
296
306
 
297
307
 
@@ -68,8 +68,10 @@ export const LeadVersionsApiAxiosParamCreator = function (configuration?: Config
68
68
  // http bearer authentication required
69
69
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
70
 
71
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
71
+ // Only Authorization falls back to the configured token; an empty value is never sent.
72
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
73
+ if (authorizationValue) {
74
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
73
75
  }
74
76
 
75
77
 
@@ -148,8 +150,10 @@ export const LeadVersionsApiAxiosParamCreator = function (configuration?: Config
148
150
  localVarQueryParameter['filters'] = filters;
149
151
  }
150
152
 
151
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
152
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
153
+ // Only Authorization falls back to the configured token; an empty value is never sent.
154
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
155
+ if (authorizationValue) {
156
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
153
157
  }
154
158
 
155
159
 
package/api/leads-api.ts CHANGED
@@ -85,8 +85,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
85
85
  // http bearer authentication required
86
86
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
87
87
 
88
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
89
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
88
+ // Only Authorization falls back to the configured token; an empty value is never sent.
89
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
90
+ if (authorizationValue) {
91
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
90
92
  }
91
93
 
92
94
 
@@ -132,8 +134,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
132
134
  // http bearer authentication required
133
135
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
134
136
 
135
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
+ // Only Authorization falls back to the configured token; an empty value is never sent.
138
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
139
+ if (authorizationValue) {
140
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
137
141
  }
138
142
 
139
143
 
@@ -179,8 +183,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
179
183
  // http bearer authentication required
180
184
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
181
185
 
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ // Only Authorization falls back to the configured token; an empty value is never sent.
187
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
 
186
192
 
@@ -226,8 +232,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
226
232
  // http bearer authentication required
227
233
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
228
234
 
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ // Only Authorization falls back to the configured token; an empty value is never sent.
236
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
+ if (authorizationValue) {
238
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
239
  }
232
240
 
233
241
 
@@ -274,8 +282,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
274
282
  // http bearer authentication required
275
283
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
276
284
 
277
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
278
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
285
+ // Only Authorization falls back to the configured token; an empty value is never sent.
286
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
287
+ if (authorizationValue) {
288
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
279
289
  }
280
290
 
281
291
 
@@ -324,8 +334,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
324
334
  localVarQueryParameter['expand'] = expand;
325
335
  }
326
336
 
327
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
328
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
337
+ // Only Authorization falls back to the configured token; an empty value is never sent.
338
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
339
+ if (authorizationValue) {
340
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
329
341
  }
330
342
 
331
343
 
@@ -400,8 +412,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
400
412
  localVarQueryParameter['filters'] = filters;
401
413
  }
402
414
 
403
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
404
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
415
+ // Only Authorization falls back to the configured token; an empty value is never sent.
416
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
417
+ if (authorizationValue) {
418
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
405
419
  }
406
420
 
407
421
 
@@ -448,8 +462,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
448
462
  // http bearer authentication required
449
463
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
450
464
 
451
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
452
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
465
+ // Only Authorization falls back to the configured token; an empty value is never sent.
466
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
467
+ if (authorizationValue) {
468
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
453
469
  }
454
470
 
455
471
 
@@ -499,8 +515,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
499
515
  // http bearer authentication required
500
516
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
501
517
 
502
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
503
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
518
+ // Only Authorization falls back to the configured token; an empty value is never sent.
519
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
520
+ if (authorizationValue) {
521
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
504
522
  }
505
523
 
506
524
 
@@ -550,8 +568,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
550
568
  // http bearer authentication required
551
569
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
552
570
 
553
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
554
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
571
+ // Only Authorization falls back to the configured token; an empty value is never sent.
572
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
573
+ if (authorizationValue) {
574
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
555
575
  }
556
576
 
557
577
 
@@ -75,8 +75,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
75
75
  // http bearer authentication required
76
76
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
77
 
78
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
79
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
+ // Only Authorization falls back to the configured token; an empty value is never sent.
79
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
80
+ if (authorizationValue) {
81
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
80
82
  }
81
83
 
82
84
 
@@ -123,8 +125,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
123
125
  // http bearer authentication required
124
126
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
125
127
 
126
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
127
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
130
+ if (authorizationValue) {
131
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
132
  }
129
133
 
130
134
 
@@ -193,8 +197,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
193
197
  localVarQueryParameter['order'] = order;
194
198
  }
195
199
 
196
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
197
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
200
+ // Only Authorization falls back to the configured token; an empty value is never sent.
201
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
202
+ if (authorizationValue) {
203
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
198
204
  }
199
205
 
200
206
 
@@ -238,8 +244,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
238
244
  // http bearer authentication required
239
245
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
240
246
 
241
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
242
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
247
+ // Only Authorization falls back to the configured token; an empty value is never sent.
248
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
249
+ if (authorizationValue) {
250
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
243
251
  }
244
252
 
245
253
 
@@ -314,8 +322,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
314
322
  localVarQueryParameter['filters'] = filters;
315
323
  }
316
324
 
317
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
325
+ // Only Authorization falls back to the configured token; an empty value is never sent.
326
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
327
+ if (authorizationValue) {
328
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
319
329
  }
320
330
 
321
331
 
@@ -362,8 +372,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
362
372
  // http bearer authentication required
363
373
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
364
374
 
365
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
366
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
375
+ // Only Authorization falls back to the configured token; an empty value is never sent.
376
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
377
+ if (authorizationValue) {
378
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
367
379
  }
368
380
 
369
381
 
@@ -76,8 +76,10 @@ export const PartnerLinksApiAxiosParamCreator = function (configuration?: Config
76
76
  // http bearer authentication required
77
77
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
78
78
 
79
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
80
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
79
+ // Only Authorization falls back to the configured token; an empty value is never sent.
80
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
81
+ if (authorizationValue) {
82
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
81
83
  }
82
84
 
83
85
 
@@ -126,8 +128,10 @@ export const PartnerLinksApiAxiosParamCreator = function (configuration?: Config
126
128
  localVarQueryParameter['expand'] = expand;
127
129
  }
128
130
 
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ // Only Authorization falls back to the configured token; an empty value is never sent.
132
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
133
+ if (authorizationValue) {
134
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
135
  }
132
136
 
133
137
 
@@ -170,8 +174,10 @@ export const PartnerLinksApiAxiosParamCreator = function (configuration?: Config
170
174
  // http bearer authentication required
171
175
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
172
176
 
173
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
174
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
179
+ if (authorizationValue) {
180
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
175
181
  }
176
182
 
177
183
 
@@ -249,8 +255,10 @@ export const PartnerLinksApiAxiosParamCreator = function (configuration?: Config
249
255
  localVarQueryParameter['filters'] = filters;
250
256
  }
251
257
 
252
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
258
+ // Only Authorization falls back to the configured token; an empty value is never sent.
259
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
+ if (authorizationValue) {
261
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
254
262
  }
255
263
 
256
264
 
@@ -294,8 +302,10 @@ export const PartnerLinksApiAxiosParamCreator = function (configuration?: Config
294
302
  // http bearer authentication required
295
303
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
296
304
 
297
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
298
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
305
+ // Only Authorization falls back to the configured token; an empty value is never sent.
306
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
307
+ if (authorizationValue) {
308
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
299
309
  }
300
310
 
301
311
 
@@ -342,8 +352,10 @@ export const PartnerLinksApiAxiosParamCreator = function (configuration?: Config
342
352
  // http bearer authentication required
343
353
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
344
354
 
345
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
355
+ // Only Authorization falls back to the configured token; an empty value is never sent.
356
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
357
+ if (authorizationValue) {
358
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
347
359
  }
348
360
 
349
361
 
@@ -73,8 +73,10 @@ export const PartnerRolesApiAxiosParamCreator = function (configuration?: Config
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ // Only Authorization falls back to the configured token; an empty value is never sent.
77
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
+ if (authorizationValue) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
80
  }
79
81
 
80
82
 
@@ -121,8 +123,10 @@ export const PartnerRolesApiAxiosParamCreator = function (configuration?: Config
121
123
  // http bearer authentication required
122
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
125
 
124
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ // Only Authorization falls back to the configured token; an empty value is never sent.
127
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
+ if (authorizationValue) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
130
  }
127
131
 
128
132
 
@@ -166,8 +170,10 @@ export const PartnerRolesApiAxiosParamCreator = function (configuration?: Config
166
170
  // http bearer authentication required
167
171
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
172
 
169
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
+ // Only Authorization falls back to the configured token; an empty value is never sent.
174
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
175
+ if (authorizationValue) {
176
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
171
177
  }
172
178
 
173
179
 
@@ -242,8 +248,10 @@ export const PartnerRolesApiAxiosParamCreator = function (configuration?: Config
242
248
  localVarQueryParameter['filters'] = filters;
243
249
  }
244
250
 
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ // Only Authorization falls back to the configured token; an empty value is never sent.
252
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
253
+ if (authorizationValue) {
254
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
255
  }
248
256
 
249
257
 
@@ -290,8 +298,10 @@ export const PartnerRolesApiAxiosParamCreator = function (configuration?: Config
290
298
  // http bearer authentication required
291
299
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
292
300
 
293
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
294
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ // Only Authorization falls back to the configured token; an empty value is never sent.
302
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
303
+ if (authorizationValue) {
304
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
295
305
  }
296
306
 
297
307