@emilgroup/insurance-sdk-node 1.104.1-beta.11 → 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 (103) hide show
  1. package/.openapi-generator/FILES +5 -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 +44 -24
  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 +100 -66
  21. package/api/premium-calculation-api.ts +171 -0
  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/api.ts +2 -0
  30. package/dist/api/booking-funnel-versions-api.js +11 -7
  31. package/dist/api/booking-funnels-api.js +39 -23
  32. package/dist/api/commission-agreement-items-api.js +29 -18
  33. package/dist/api/commission-agreement-products-api.js +29 -18
  34. package/dist/api/commission-agreement-versions-api.js +22 -14
  35. package/dist/api/commission-agreements-api.js +29 -18
  36. package/dist/api/commission-recipients-api.js +32 -19
  37. package/dist/api/emil-functions-api.js +74 -43
  38. package/dist/api/health-check-api.d.ts +7 -8
  39. package/dist/api/health-check-api.js +4 -4
  40. package/dist/api/insured-object-types-api.js +4 -3
  41. package/dist/api/insured-objects-api.js +22 -14
  42. package/dist/api/lead-statuses-api.js +32 -19
  43. package/dist/api/lead-versions-api.js +11 -7
  44. package/dist/api/leads-api.d.ts +4 -4
  45. package/dist/api/leads-api.js +67 -41
  46. package/dist/api/named-ranges-api.js +36 -22
  47. package/dist/api/partner-links-api.js +36 -22
  48. package/dist/api/partner-roles-api.js +32 -19
  49. package/dist/api/policies-api.d.ts +32 -32
  50. package/dist/api/policies-api.js +129 -90
  51. package/dist/api/premium-calculation-api.d.ts +97 -0
  52. package/dist/api/premium-calculation-api.js +231 -0
  53. package/dist/api/premium-formulas-api.js +39 -23
  54. package/dist/api/product-configs-api.js +39 -23
  55. package/dist/api/product-factors-api.js +37 -24
  56. package/dist/api/product-fields-api.js +43 -26
  57. package/dist/api/product-versions-api.js +11 -7
  58. package/dist/api/products-api.js +33 -21
  59. package/dist/api/status-transition-rules-api.js +36 -22
  60. package/dist/api.d.ts +1 -0
  61. package/dist/api.js +1 -0
  62. package/dist/models/calculate-premium-response-class.d.ts +39 -0
  63. package/dist/models/calculated-policy-objects-class.d.ts +25 -0
  64. package/dist/models/claim-config-class.d.ts +7 -0
  65. package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
  66. package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
  67. package/dist/models/create-product-request-dto.d.ts +12 -0
  68. package/dist/models/create-product-version-request-dto.d.ts +6 -0
  69. package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
  70. package/dist/models/index.d.ts +4 -2
  71. package/dist/models/index.js +4 -2
  72. package/dist/models/partner-class.d.ts +6 -0
  73. package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
  74. package/dist/models/policy-object-dto.d.ts +1 -1
  75. package/dist/models/policy-premium-item-class.d.ts +1 -1
  76. package/dist/models/premium-formula-class.d.ts +6 -0
  77. package/dist/models/regulation-subtype-class.d.ts +30 -0
  78. package/dist/models/regulation-subtype-class.js +15 -0
  79. package/dist/models/regulation-subtypes-class.d.ts +37 -0
  80. package/dist/models/regulation-subtypes-class.js +15 -0
  81. package/models/calculate-premium-response-class.ts +45 -0
  82. package/models/calculated-policy-objects-class.ts +31 -0
  83. package/models/claim-config-class.ts +7 -0
  84. package/models/create-draft-policy-request-dto.ts +1 -1
  85. package/models/create-premium-formula-request-dto.ts +6 -0
  86. package/models/create-product-request-dto.ts +12 -0
  87. package/models/create-product-version-request-dto.ts +6 -0
  88. package/models/get-draft-policy-request-dto.ts +1 -1
  89. package/models/index.ts +4 -2
  90. package/models/partner-class.ts +6 -0
  91. package/models/patch-draft-policy-request-dto.ts +2 -2
  92. package/models/policy-object-dto.ts +1 -1
  93. package/models/policy-premium-item-class.ts +1 -1
  94. package/models/premium-formula-class.ts +6 -0
  95. package/models/regulation-subtype-class.ts +36 -0
  96. package/models/regulation-subtypes-class.ts +43 -0
  97. package/package.json +1 -1
  98. package/dist/models/inline-response200.d.ts +0 -54
  99. package/dist/models/inline-response503.d.ts +0 -54
  100. package/models/inline-response200.ts +0 -48
  101. package/models/inline-response503.ts +0 -48
  102. /package/dist/models/{inline-response200.js → calculate-premium-response-class.js} +0 -0
  103. /package/dist/models/{inline-response503.js → calculated-policy-objects-class.js} +0 -0
@@ -108,7 +108,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
108
108
  calculateProductTariffQuote: function (productVersionId, restCalculateProductTariffQuoteRequestDto, authorization, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -128,13 +128,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
128
128
  localVarQueryParameter = {};
129
129
  // authentication bearer required
130
130
  // http bearer authentication required
131
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
132
+ // Only Authorization falls back to the configured token; an empty value is never sent.
133
+ ];
132
134
  case 1:
133
135
  // authentication bearer required
134
136
  // http bearer authentication required
135
137
  _a.sent();
136
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
139
+ if (authorizationValue) {
140
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
138
141
  }
139
142
  localVarHeaderParameter['Content-Type'] = 'application/json';
140
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -162,7 +165,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
162
165
  createProductConfig: function (slug, productVersionId, file, authorization, options) {
163
166
  if (options === void 0) { options = {}; }
164
167
  return __awaiter(_this, void 0, void 0, function () {
165
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
168
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
166
169
  return __generator(this, function (_a) {
167
170
  switch (_a.label) {
168
171
  case 0:
@@ -184,13 +187,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
184
187
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
185
188
  // authentication bearer required
186
189
  // http bearer authentication required
187
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
190
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
191
+ // Only Authorization falls back to the configured token; an empty value is never sent.
192
+ ];
188
193
  case 1:
189
194
  // authentication bearer required
190
195
  // http bearer authentication required
191
196
  _a.sent();
192
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
193
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
197
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
198
+ if (authorizationValue) {
199
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
194
200
  }
195
201
  if (slug !== undefined) {
196
202
  localVarFormParams.append('slug', slug);
@@ -225,7 +231,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
225
231
  getProductConfig: function (code, authorization, options) {
226
232
  if (options === void 0) { options = {}; }
227
233
  return __awaiter(_this, void 0, void 0, function () {
228
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
234
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
229
235
  return __generator(this, function (_a) {
230
236
  switch (_a.label) {
231
237
  case 0:
@@ -243,13 +249,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
243
249
  localVarQueryParameter = {};
244
250
  // authentication bearer required
245
251
  // http bearer authentication required
246
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
252
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
253
+ // Only Authorization falls back to the configured token; an empty value is never sent.
254
+ ];
247
255
  case 1:
248
256
  // authentication bearer required
249
257
  // http bearer authentication required
250
258
  _a.sent();
251
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
252
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
259
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
+ if (authorizationValue) {
261
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
253
262
  }
254
263
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
255
264
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -273,7 +282,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
273
282
  getProductConfigTariffs: function (productVersionId, authorization, options) {
274
283
  if (options === void 0) { options = {}; }
275
284
  return __awaiter(_this, void 0, void 0, function () {
276
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
285
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
277
286
  return __generator(this, function (_a) {
278
287
  switch (_a.label) {
279
288
  case 0:
@@ -291,13 +300,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
291
300
  localVarQueryParameter = {};
292
301
  // authentication bearer required
293
302
  // http bearer authentication required
294
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
303
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
304
+ // Only Authorization falls back to the configured token; an empty value is never sent.
305
+ ];
295
306
  case 1:
296
307
  // authentication bearer required
297
308
  // http bearer authentication required
298
309
  _a.sent();
299
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
300
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
311
+ if (authorizationValue) {
312
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
301
313
  }
302
314
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
303
315
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -327,7 +339,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
327
339
  listProductConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
328
340
  if (options === void 0) { options = {}; }
329
341
  return __awaiter(_this, void 0, void 0, function () {
330
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
331
343
  return __generator(this, function (_a) {
332
344
  switch (_a.label) {
333
345
  case 0:
@@ -368,8 +380,9 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
368
380
  if (filters !== undefined) {
369
381
  localVarQueryParameter['filters'] = filters;
370
382
  }
371
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
372
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
383
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
384
+ if (authorizationValue) {
385
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
373
386
  }
374
387
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
375
388
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -395,7 +408,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
395
408
  updateProductConfig: function (code, file, authorization, slug, options) {
396
409
  if (options === void 0) { options = {}; }
397
410
  return __awaiter(_this, void 0, void 0, function () {
398
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
411
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
399
412
  return __generator(this, function (_a) {
400
413
  switch (_a.label) {
401
414
  case 0:
@@ -416,13 +429,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
416
429
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
417
430
  // authentication bearer required
418
431
  // http bearer authentication required
419
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
432
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
433
+ // Only Authorization falls back to the configured token; an empty value is never sent.
434
+ ];
420
435
  case 1:
421
436
  // authentication bearer required
422
437
  // http bearer authentication required
423
438
  _a.sent();
424
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
425
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
439
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
440
+ if (authorizationValue) {
441
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
426
442
  }
427
443
  if (file !== undefined) {
428
444
  localVarFormParams.append('file', file);
@@ -106,7 +106,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
106
106
  deleteProductFactor: function (id, authorization, options) {
107
107
  if (options === void 0) { options = {}; }
108
108
  return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
110
110
  return __generator(this, function (_a) {
111
111
  switch (_a.label) {
112
112
  case 0:
@@ -124,13 +124,16 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
139
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -156,7 +159,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
156
159
  getProductFactor: function (id, id2, authorization, expand, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -187,8 +190,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
187
190
  if (expand !== undefined) {
188
191
  localVarQueryParameter['expand'] = expand;
189
192
  }
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
193
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
194
+ if (authorizationValue) {
195
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
196
  }
193
197
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
198
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -215,7 +219,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
215
219
  getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
216
220
  if (options === void 0) { options = {}; }
217
221
  return __awaiter(_this, void 0, void 0, function () {
218
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
222
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
219
223
  return __generator(this, function (_a) {
220
224
  switch (_a.label) {
221
225
  case 0:
@@ -255,8 +259,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
255
259
  if (name !== undefined) {
256
260
  localVarQueryParameter['name'] = name;
257
261
  }
258
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
259
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
262
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
263
+ if (authorizationValue) {
264
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
260
265
  }
261
266
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
262
267
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -282,7 +287,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
282
287
  getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
283
288
  if (options === void 0) { options = {}; }
284
289
  return __awaiter(_this, void 0, void 0, function () {
285
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
290
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
286
291
  return __generator(this, function (_a) {
287
292
  switch (_a.label) {
288
293
  case 0:
@@ -315,8 +320,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
315
320
  if (forPublic !== undefined) {
316
321
  localVarQueryParameter['forPublic'] = forPublic;
317
322
  }
318
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
319
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
323
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
324
+ if (authorizationValue) {
325
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
320
326
  }
321
327
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
322
328
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -346,7 +352,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
346
352
  listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
347
353
  if (options === void 0) { options = {}; }
348
354
  return __awaiter(_this, void 0, void 0, function () {
349
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
355
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
350
356
  return __generator(this, function (_a) {
351
357
  switch (_a.label) {
352
358
  case 0:
@@ -387,8 +393,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
387
393
  if (filters !== undefined) {
388
394
  localVarQueryParameter['filters'] = filters;
389
395
  }
390
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
391
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
396
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
397
+ if (authorizationValue) {
398
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
392
399
  }
393
400
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
394
401
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -413,7 +420,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
413
420
  storeProductFactors: function (authorization, productVersionId, factors, options) {
414
421
  if (options === void 0) { options = {}; }
415
422
  return __awaiter(_this, void 0, void 0, function () {
416
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
423
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
417
424
  return __generator(this, function (_a) {
418
425
  switch (_a.label) {
419
426
  case 0:
@@ -429,13 +436,16 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
429
436
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
430
437
  // authentication bearer required
431
438
  // http bearer authentication required
432
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
439
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
440
+ // Only Authorization falls back to the configured token; an empty value is never sent.
441
+ ];
433
442
  case 1:
434
443
  // authentication bearer required
435
444
  // http bearer authentication required
436
445
  _a.sent();
437
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
438
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
446
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
447
+ if (authorizationValue) {
448
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
439
449
  }
440
450
  if (productVersionId !== undefined) {
441
451
  localVarFormParams.append('productVersionId', productVersionId);
@@ -467,7 +477,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
467
477
  validateProductFactors: function (authorization, factors, options) {
468
478
  if (options === void 0) { options = {}; }
469
479
  return __awaiter(_this, void 0, void 0, function () {
470
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
480
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
471
481
  return __generator(this, function (_a) {
472
482
  switch (_a.label) {
473
483
  case 0:
@@ -483,13 +493,16 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
483
493
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
484
494
  // authentication bearer required
485
495
  // http bearer authentication required
486
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
496
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
497
+ // Only Authorization falls back to the configured token; an empty value is never sent.
498
+ ];
487
499
  case 1:
488
500
  // authentication bearer required
489
501
  // http bearer authentication required
490
502
  _a.sent();
491
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
492
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
503
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
504
+ if (authorizationValue) {
505
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
493
506
  }
494
507
  if (factors !== undefined) {
495
508
  localVarFormParams.append('factors', factors);
@@ -107,7 +107,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
107
107
  createProductField: function (createProductFieldRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
156
159
  deleteProductField: function (id, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -204,7 +210,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
204
210
  getProductField: function (id, authorization, options) {
205
211
  if (options === void 0) { options = {}; }
206
212
  return __awaiter(_this, void 0, void 0, function () {
207
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
208
214
  return __generator(this, function (_a) {
209
215
  switch (_a.label) {
210
216
  case 0:
@@ -222,13 +228,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
222
228
  localVarQueryParameter = {};
223
229
  // authentication bearer required
224
230
  // http bearer authentication required
225
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
232
+ // Only Authorization falls back to the configured token; an empty value is never sent.
233
+ ];
226
234
  case 1:
227
235
  // authentication bearer required
228
236
  // http bearer authentication required
229
237
  _a.sent();
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
241
  }
233
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -258,7 +267,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
258
267
  listProductFieldTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
259
268
  if (options === void 0) { options = {}; }
260
269
  return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
262
271
  return __generator(this, function (_a) {
263
272
  switch (_a.label) {
264
273
  case 0:
@@ -299,8 +308,9 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
299
308
  if (filters !== undefined) {
300
309
  localVarQueryParameter['filters'] = filters;
301
310
  }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
+ if (authorizationValue) {
313
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
314
  }
305
315
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
316
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -330,7 +340,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
330
340
  listProductFields: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
331
341
  if (options === void 0) { options = {}; }
332
342
  return __awaiter(_this, void 0, void 0, function () {
333
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
343
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
334
344
  return __generator(this, function (_a) {
335
345
  switch (_a.label) {
336
346
  case 0:
@@ -371,8 +381,9 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
371
381
  if (filters !== undefined) {
372
382
  localVarQueryParameter['filters'] = filters;
373
383
  }
374
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
375
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
384
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
385
+ if (authorizationValue) {
386
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
376
387
  }
377
388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
378
389
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -396,7 +407,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
396
407
  swapProductFieldsOrder: function (swapProductFieldsOrderRequestDto, authorization, options) {
397
408
  if (options === void 0) { options = {}; }
398
409
  return __awaiter(_this, void 0, void 0, function () {
399
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
410
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
400
411
  return __generator(this, function (_a) {
401
412
  switch (_a.label) {
402
413
  case 0:
@@ -413,13 +424,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
413
424
  localVarQueryParameter = {};
414
425
  // authentication bearer required
415
426
  // http bearer authentication required
416
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
427
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
428
+ // Only Authorization falls back to the configured token; an empty value is never sent.
429
+ ];
417
430
  case 1:
418
431
  // authentication bearer required
419
432
  // http bearer authentication required
420
433
  _a.sent();
421
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
422
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
434
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
435
+ if (authorizationValue) {
436
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
423
437
  }
424
438
  localVarHeaderParameter['Content-Type'] = 'application/json';
425
439
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -446,7 +460,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
446
460
  updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
447
461
  if (options === void 0) { options = {}; }
448
462
  return __awaiter(_this, void 0, void 0, function () {
449
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
463
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
450
464
  return __generator(this, function (_a) {
451
465
  switch (_a.label) {
452
466
  case 0:
@@ -466,13 +480,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
466
480
  localVarQueryParameter = {};
467
481
  // authentication bearer required
468
482
  // http bearer authentication required
469
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
483
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
484
+ // Only Authorization falls back to the configured token; an empty value is never sent.
485
+ ];
470
486
  case 1:
471
487
  // authentication bearer required
472
488
  // http bearer authentication required
473
489
  _a.sent();
474
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
475
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
490
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
491
+ if (authorizationValue) {
492
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
476
493
  }
477
494
  localVarHeaderParameter['Content-Type'] = 'application/json';
478
495
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -110,7 +110,7 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
110
110
  getProductVersion: function (id, id2, authorization, filter, expand, options) {
111
111
  if (options === void 0) { options = {}; }
112
112
  return __awaiter(_this, void 0, void 0, function () {
113
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
113
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
114
114
  return __generator(this, function (_a) {
115
115
  switch (_a.label) {
116
116
  case 0:
@@ -144,8 +144,9 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
144
144
  if (expand !== undefined) {
145
145
  localVarQueryParameter['expand'] = expand;
146
146
  }
147
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
148
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
147
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
148
+ if (authorizationValue) {
149
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
149
150
  }
150
151
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
152
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -170,7 +171,7 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
170
171
  updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
171
172
  if (options === void 0) { options = {}; }
172
173
  return __awaiter(_this, void 0, void 0, function () {
173
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
174
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
174
175
  return __generator(this, function (_a) {
175
176
  switch (_a.label) {
176
177
  case 0:
@@ -190,13 +191,16 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
190
191
  localVarQueryParameter = {};
191
192
  // authentication bearer required
192
193
  // http bearer authentication required
193
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
194
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
195
+ // Only Authorization falls back to the configured token; an empty value is never sent.
196
+ ];
194
197
  case 1:
195
198
  // authentication bearer required
196
199
  // http bearer authentication required
197
200
  _a.sent();
198
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
199
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
201
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
202
+ if (authorizationValue) {
203
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
200
204
  }
201
205
  localVarHeaderParameter['Content-Type'] = 'application/json';
202
206
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);