@emilgroup/insurance-sdk-node 1.104.1-beta.11 → 1.104.1-beta.111

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 (128) 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/common.ts +3 -2
  31. package/dist/api/booking-funnel-versions-api.d.ts +2 -2
  32. package/dist/api/booking-funnel-versions-api.js +11 -7
  33. package/dist/api/booking-funnels-api.d.ts +6 -6
  34. package/dist/api/booking-funnels-api.js +39 -23
  35. package/dist/api/commission-agreement-items-api.d.ts +5 -5
  36. package/dist/api/commission-agreement-items-api.js +29 -18
  37. package/dist/api/commission-agreement-products-api.d.ts +5 -5
  38. package/dist/api/commission-agreement-products-api.js +29 -18
  39. package/dist/api/commission-agreement-versions-api.d.ts +4 -4
  40. package/dist/api/commission-agreement-versions-api.js +22 -14
  41. package/dist/api/commission-agreements-api.d.ts +5 -5
  42. package/dist/api/commission-agreements-api.js +29 -18
  43. package/dist/api/commission-recipients-api.d.ts +5 -5
  44. package/dist/api/commission-recipients-api.js +32 -19
  45. package/dist/api/emil-functions-api.d.ts +11 -11
  46. package/dist/api/emil-functions-api.js +74 -43
  47. package/dist/api/health-check-api.d.ts +7 -8
  48. package/dist/api/health-check-api.js +4 -4
  49. package/dist/api/insured-object-types-api.d.ts +1 -1
  50. package/dist/api/insured-object-types-api.js +4 -3
  51. package/dist/api/insured-objects-api.d.ts +4 -4
  52. package/dist/api/insured-objects-api.js +22 -14
  53. package/dist/api/lead-statuses-api.d.ts +5 -5
  54. package/dist/api/lead-statuses-api.js +32 -19
  55. package/dist/api/lead-versions-api.d.ts +2 -2
  56. package/dist/api/lead-versions-api.js +11 -7
  57. package/dist/api/leads-api.d.ts +14 -14
  58. package/dist/api/leads-api.js +67 -41
  59. package/dist/api/named-ranges-api.d.ts +6 -6
  60. package/dist/api/named-ranges-api.js +36 -22
  61. package/dist/api/partner-links-api.d.ts +6 -6
  62. package/dist/api/partner-links-api.js +36 -22
  63. package/dist/api/partner-roles-api.d.ts +5 -5
  64. package/dist/api/partner-roles-api.js +32 -19
  65. package/dist/api/policies-api.d.ts +49 -49
  66. package/dist/api/policies-api.js +129 -90
  67. package/dist/api/premium-calculation-api.d.ts +97 -0
  68. package/dist/api/premium-calculation-api.js +231 -0
  69. package/dist/api/premium-formulas-api.d.ts +6 -6
  70. package/dist/api/premium-formulas-api.js +39 -23
  71. package/dist/api/product-configs-api.d.ts +6 -6
  72. package/dist/api/product-configs-api.js +39 -23
  73. package/dist/api/product-factors-api.d.ts +7 -7
  74. package/dist/api/product-factors-api.js +37 -24
  75. package/dist/api/product-fields-api.d.ts +7 -7
  76. package/dist/api/product-fields-api.js +43 -26
  77. package/dist/api/product-versions-api.d.ts +2 -2
  78. package/dist/api/product-versions-api.js +11 -7
  79. package/dist/api/products-api.d.ts +6 -6
  80. package/dist/api/products-api.js +33 -21
  81. package/dist/api/status-transition-rules-api.d.ts +6 -6
  82. package/dist/api/status-transition-rules-api.js +36 -22
  83. package/dist/api.d.ts +1 -0
  84. package/dist/api.js +1 -0
  85. package/dist/common.d.ts +1 -1
  86. package/dist/common.js +1 -0
  87. package/dist/models/calculate-premium-response-class.d.ts +39 -0
  88. package/dist/models/calculated-policy-objects-class.d.ts +25 -0
  89. package/dist/models/claim-config-class.d.ts +7 -0
  90. package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
  91. package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
  92. package/dist/models/create-product-request-dto.d.ts +12 -0
  93. package/dist/models/create-product-version-request-dto.d.ts +6 -0
  94. package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
  95. package/dist/models/index.d.ts +4 -2
  96. package/dist/models/index.js +4 -2
  97. package/dist/models/partner-class.d.ts +6 -0
  98. package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
  99. package/dist/models/policy-object-dto.d.ts +1 -1
  100. package/dist/models/policy-premium-item-class.d.ts +1 -1
  101. package/dist/models/premium-formula-class.d.ts +6 -0
  102. package/dist/models/regulation-subtype-class.d.ts +30 -0
  103. package/dist/models/regulation-subtype-class.js +15 -0
  104. package/dist/models/regulation-subtypes-class.d.ts +37 -0
  105. package/dist/models/regulation-subtypes-class.js +15 -0
  106. package/models/calculate-premium-response-class.ts +45 -0
  107. package/models/calculated-policy-objects-class.ts +31 -0
  108. package/models/claim-config-class.ts +7 -0
  109. package/models/create-draft-policy-request-dto.ts +1 -1
  110. package/models/create-premium-formula-request-dto.ts +6 -0
  111. package/models/create-product-request-dto.ts +12 -0
  112. package/models/create-product-version-request-dto.ts +6 -0
  113. package/models/get-draft-policy-request-dto.ts +1 -1
  114. package/models/index.ts +4 -2
  115. package/models/partner-class.ts +6 -0
  116. package/models/patch-draft-policy-request-dto.ts +2 -2
  117. package/models/policy-object-dto.ts +1 -1
  118. package/models/policy-premium-item-class.ts +1 -1
  119. package/models/premium-formula-class.ts +6 -0
  120. package/models/regulation-subtype-class.ts +36 -0
  121. package/models/regulation-subtypes-class.ts +43 -0
  122. package/package.json +2 -2
  123. package/dist/models/inline-response200.d.ts +0 -54
  124. package/dist/models/inline-response503.d.ts +0 -54
  125. package/models/inline-response200.ts +0 -48
  126. package/models/inline-response503.ts +0 -48
  127. /package/dist/models/{inline-response200.js → calculate-premium-response-class.js} +0 -0
  128. /package/dist/models/{inline-response503.js → calculated-policy-objects-class.js} +0 -0
@@ -108,7 +108,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
108
108
  cloneLead: function (code, cloneLeadRequestDto, 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 LeadsApiAxiosParamCreator = 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);
@@ -160,7 +163,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
160
163
  createLead: function (createLeadRequestDto, authorization, options) {
161
164
  if (options === void 0) { options = {}; }
162
165
  return __awaiter(_this, void 0, void 0, function () {
163
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
164
167
  return __generator(this, function (_a) {
165
168
  switch (_a.label) {
166
169
  case 0:
@@ -177,13 +180,16 @@ var LeadsApiAxiosParamCreator = function (configuration) {
177
180
  localVarQueryParameter = {};
178
181
  // authentication bearer required
179
182
  // http bearer authentication required
180
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
183
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
184
+ // Only Authorization falls back to the configured token; an empty value is never sent.
185
+ ];
181
186
  case 1:
182
187
  // authentication bearer required
183
188
  // http bearer authentication required
184
189
  _a.sent();
185
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
191
+ if (authorizationValue) {
192
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
187
193
  }
188
194
  localVarHeaderParameter['Content-Type'] = 'application/json';
189
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -209,7 +215,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
209
215
  createLeadAsync: function (createLeadRequestDto, authorization, options) {
210
216
  if (options === void 0) { options = {}; }
211
217
  return __awaiter(_this, void 0, void 0, function () {
212
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
213
219
  return __generator(this, function (_a) {
214
220
  switch (_a.label) {
215
221
  case 0:
@@ -226,13 +232,16 @@ var LeadsApiAxiosParamCreator = function (configuration) {
226
232
  localVarQueryParameter = {};
227
233
  // authentication bearer required
228
234
  // http bearer authentication required
229
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
235
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
236
+ // Only Authorization falls back to the configured token; an empty value is never sent.
237
+ ];
230
238
  case 1:
231
239
  // authentication bearer required
232
240
  // http bearer authentication required
233
241
  _a.sent();
234
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
+ if (authorizationValue) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
236
245
  }
237
246
  localVarHeaderParameter['Content-Type'] = 'application/json';
238
247
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -258,7 +267,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
258
267
  createLeadSync: function (createLeadRequestDto, authorization, 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:
@@ -275,13 +284,16 @@ var LeadsApiAxiosParamCreator = function (configuration) {
275
284
  localVarQueryParameter = {};
276
285
  // authentication bearer required
277
286
  // http bearer authentication required
278
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
287
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
288
+ // Only Authorization falls back to the configured token; an empty value is never sent.
289
+ ];
279
290
  case 1:
280
291
  // authentication bearer required
281
292
  // http bearer authentication required
282
293
  _a.sent();
283
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
284
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
294
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
295
+ if (authorizationValue) {
296
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
285
297
  }
286
298
  localVarHeaderParameter['Content-Type'] = 'application/json';
287
299
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -307,7 +319,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
307
319
  deleteLead: function (code, authorization, options) {
308
320
  if (options === void 0) { options = {}; }
309
321
  return __awaiter(_this, void 0, void 0, function () {
310
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
322
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
311
323
  return __generator(this, function (_a) {
312
324
  switch (_a.label) {
313
325
  case 0:
@@ -325,13 +337,16 @@ var LeadsApiAxiosParamCreator = function (configuration) {
325
337
  localVarQueryParameter = {};
326
338
  // authentication bearer required
327
339
  // http bearer authentication required
328
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
340
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
341
+ // Only Authorization falls back to the configured token; an empty value is never sent.
342
+ ];
329
343
  case 1:
330
344
  // authentication bearer required
331
345
  // http bearer authentication required
332
346
  _a.sent();
333
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
334
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
347
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
348
+ if (authorizationValue) {
349
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
335
350
  }
336
351
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
352
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -356,7 +371,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
356
371
  getLead: function (code, authorization, expand, options) {
357
372
  if (options === void 0) { options = {}; }
358
373
  return __awaiter(_this, void 0, void 0, function () {
359
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
374
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
360
375
  return __generator(this, function (_a) {
361
376
  switch (_a.label) {
362
377
  case 0:
@@ -382,8 +397,9 @@ var LeadsApiAxiosParamCreator = function (configuration) {
382
397
  if (expand !== undefined) {
383
398
  localVarQueryParameter['expand'] = expand;
384
399
  }
385
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
386
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
400
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
401
+ if (authorizationValue) {
402
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
387
403
  }
388
404
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
389
405
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -403,7 +419,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
403
419
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
404
420
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
405
421
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
406
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
422
+ * @param {string} [search] Free-text search across the lead\'s key fields: codes, status, product, account data (name, company, e-mail, address, phone), policy and insured-object data, bank and quote values. Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search=path:value — e.g. search=account.lastName:Müller or search=policyObjects.data.vin:WVW123. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
407
423
  * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
408
424
  * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
409
425
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -413,7 +429,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
413
429
  listLeads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
414
430
  if (options === void 0) { options = {}; }
415
431
  return __awaiter(_this, void 0, void 0, function () {
416
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
432
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
417
433
  return __generator(this, function (_a) {
418
434
  switch (_a.label) {
419
435
  case 0:
@@ -454,8 +470,9 @@ var LeadsApiAxiosParamCreator = function (configuration) {
454
470
  if (filters !== undefined) {
455
471
  localVarQueryParameter['filters'] = filters;
456
472
  }
457
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
458
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
473
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
474
+ if (authorizationValue) {
475
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
459
476
  }
460
477
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
461
478
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -480,7 +497,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
480
497
  patchLead: function (code, patchLeadRequestDto, authorization, options) {
481
498
  if (options === void 0) { options = {}; }
482
499
  return __awaiter(_this, void 0, void 0, function () {
483
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
500
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
484
501
  return __generator(this, function (_a) {
485
502
  switch (_a.label) {
486
503
  case 0:
@@ -500,13 +517,16 @@ var LeadsApiAxiosParamCreator = function (configuration) {
500
517
  localVarQueryParameter = {};
501
518
  // authentication bearer required
502
519
  // http bearer authentication required
503
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
520
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
521
+ // Only Authorization falls back to the configured token; an empty value is never sent.
522
+ ];
504
523
  case 1:
505
524
  // authentication bearer required
506
525
  // http bearer authentication required
507
526
  _a.sent();
508
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
509
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
527
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
528
+ if (authorizationValue) {
529
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
510
530
  }
511
531
  localVarHeaderParameter['Content-Type'] = 'application/json';
512
532
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -533,7 +553,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
533
553
  updateLead: function (code, updateLeadRequestDto, authorization, options) {
534
554
  if (options === void 0) { options = {}; }
535
555
  return __awaiter(_this, void 0, void 0, function () {
536
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
556
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
537
557
  return __generator(this, function (_a) {
538
558
  switch (_a.label) {
539
559
  case 0:
@@ -553,13 +573,16 @@ var LeadsApiAxiosParamCreator = function (configuration) {
553
573
  localVarQueryParameter = {};
554
574
  // authentication bearer required
555
575
  // http bearer authentication required
556
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
576
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
577
+ // Only Authorization falls back to the configured token; an empty value is never sent.
578
+ ];
557
579
  case 1:
558
580
  // authentication bearer required
559
581
  // http bearer authentication required
560
582
  _a.sent();
561
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
562
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
583
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
584
+ if (authorizationValue) {
585
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
563
586
  }
564
587
  localVarHeaderParameter['Content-Type'] = 'application/json';
565
588
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -586,7 +609,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
586
609
  updateLeadSync: function (code, updateLeadRequestDto, authorization, options) {
587
610
  if (options === void 0) { options = {}; }
588
611
  return __awaiter(_this, void 0, void 0, function () {
589
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
612
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
590
613
  return __generator(this, function (_a) {
591
614
  switch (_a.label) {
592
615
  case 0:
@@ -606,13 +629,16 @@ var LeadsApiAxiosParamCreator = function (configuration) {
606
629
  localVarQueryParameter = {};
607
630
  // authentication bearer required
608
631
  // http bearer authentication required
609
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
632
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
633
+ // Only Authorization falls back to the configured token; an empty value is never sent.
634
+ ];
610
635
  case 1:
611
636
  // authentication bearer required
612
637
  // http bearer authentication required
613
638
  _a.sent();
614
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
615
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
639
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
640
+ if (authorizationValue) {
641
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
616
642
  }
617
643
  localVarHeaderParameter['Content-Type'] = 'application/json';
618
644
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -772,7 +798,7 @@ var LeadsApiFp = function (configuration) {
772
798
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
773
799
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
774
800
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
775
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
801
+ * @param {string} [search] Free-text search across the lead\'s key fields: codes, status, product, account data (name, company, e-mail, address, phone), policy and insured-object data, bank and quote values. Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search=path:value — e.g. search=account.lastName:Müller or search=policyObjects.data.vin:WVW123. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
776
802
  * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
777
803
  * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
778
804
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -943,7 +969,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
943
969
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
944
970
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
945
971
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
946
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
972
+ * @param {string} [search] Free-text search across the lead\'s key fields: codes, status, product, account data (name, company, e-mail, address, phone), policy and insured-object data, bank and quote values. Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search=path:value — e.g. search=account.lastName:Müller or search=policyObjects.data.vin:WVW123. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
947
973
  * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
948
974
  * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
949
975
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -437,7 +437,7 @@ export declare class NamedRangesApi extends BaseAPI {
437
437
  * @throws {RequiredError}
438
438
  * @memberof NamedRangesApi
439
439
  */
440
- createNamedRange(requestParameters: NamedRangesApiCreateNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNamedRangeResponseClass, any, {}>>;
440
+ createNamedRange(requestParameters: NamedRangesApiCreateNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNamedRangeResponseClass, any, {}, any>>;
441
441
  /**
442
442
  * Permanently deletes the named range. Supply the unique id that was returned when you created the named range and this will delete it. **Required Permissions** \"policy-management.products.delete\"
443
443
  * @summary Delete the named range
@@ -446,7 +446,7 @@ export declare class NamedRangesApi extends BaseAPI {
446
446
  * @throws {RequiredError}
447
447
  * @memberof NamedRangesApi
448
448
  */
449
- deleteNamedRange(requestParameters: NamedRangesApiDeleteNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
449
+ deleteNamedRange(requestParameters: NamedRangesApiDeleteNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
450
450
  /**
451
451
  * Filters the named range file rows. You can also sort the rerutnated rows and paginate the output. **Required Permissions** \"policy-management.products.view\"
452
452
  * @summary Filters the named range file rows.
@@ -455,7 +455,7 @@ export declare class NamedRangesApi extends BaseAPI {
455
455
  * @throws {RequiredError}
456
456
  * @memberof NamedRangesApi
457
457
  */
458
- filterNamedRanges(requestParameters: NamedRangesApiFilterNamedRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FilterNamedRangeResponseClass, any, {}>>;
458
+ filterNamedRanges(requestParameters: NamedRangesApiFilterNamedRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FilterNamedRangeResponseClass, any, {}, any>>;
459
459
  /**
460
460
  * Retrieves the details of the named range that was previously created. Supply the unique named range id that was returned when you created it and Emil Api will return the corresponding named range information. **Required Permissions** \"policy-management.products.view\"
461
461
  * @summary Retrieve the named range
@@ -464,7 +464,7 @@ export declare class NamedRangesApi extends BaseAPI {
464
464
  * @throws {RequiredError}
465
465
  * @memberof NamedRangesApi
466
466
  */
467
- getNamedRange(requestParameters: NamedRangesApiGetNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNamedRangeResponseClass, any, {}>>;
467
+ getNamedRange(requestParameters: NamedRangesApiGetNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNamedRangeResponseClass, any, {}, any>>;
468
468
  /**
469
469
  * Returns a list of named ranges you have previously created. The named ranges are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
470
470
  * @summary List named ranges
@@ -473,7 +473,7 @@ export declare class NamedRangesApi extends BaseAPI {
473
473
  * @throws {RequiredError}
474
474
  * @memberof NamedRangesApi
475
475
  */
476
- listNamedRanges(requestParameters?: NamedRangesApiListNamedRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNamedRangesResponseClass, any, {}>>;
476
+ listNamedRanges(requestParameters?: NamedRangesApiListNamedRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNamedRangesResponseClass, any, {}, any>>;
477
477
  /**
478
478
  * Updates the specified named range by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
479
479
  * @summary Update the named range
@@ -482,5 +482,5 @@ export declare class NamedRangesApi extends BaseAPI {
482
482
  * @throws {RequiredError}
483
483
  * @memberof NamedRangesApi
484
484
  */
485
- updateNamedRange(requestParameters: NamedRangesApiUpdateNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNamedRangeResponseClass, any, {}>>;
485
+ updateNamedRange(requestParameters: NamedRangesApiUpdateNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNamedRangeResponseClass, any, {}, any>>;
486
486
  }
@@ -107,7 +107,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
107
107
  createNamedRange: function (createNamedRangeRequestDto, 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 NamedRangesApiAxiosParamCreator = 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 NamedRangesApiAxiosParamCreator = function (configuration) {
156
159
  deleteNamedRange: 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 NamedRangesApiAxiosParamCreator = 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 : {};
@@ -209,7 +215,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
209
215
  filterNamedRanges: function (code, authorization, pageSize, pageToken, filters, search, order, options) {
210
216
  if (options === void 0) { options = {}; }
211
217
  return __awaiter(_this, void 0, void 0, function () {
212
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
213
219
  return __generator(this, function (_a) {
214
220
  switch (_a.label) {
215
221
  case 0:
@@ -247,8 +253,9 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
247
253
  if (order !== undefined) {
248
254
  localVarQueryParameter['order'] = order;
249
255
  }
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
257
+ if (authorizationValue) {
258
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
252
259
  }
253
260
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
261
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -272,7 +279,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
272
279
  getNamedRange: function (id, authorization, options) {
273
280
  if (options === void 0) { options = {}; }
274
281
  return __awaiter(_this, void 0, void 0, function () {
275
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
282
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
276
283
  return __generator(this, function (_a) {
277
284
  switch (_a.label) {
278
285
  case 0:
@@ -290,13 +297,16 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
290
297
  localVarQueryParameter = {};
291
298
  // authentication bearer required
292
299
  // http bearer authentication required
293
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
300
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
301
+ // Only Authorization falls back to the configured token; an empty value is never sent.
302
+ ];
294
303
  case 1:
295
304
  // authentication bearer required
296
305
  // http bearer authentication required
297
306
  _a.sent();
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
307
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
+ if (authorizationValue) {
309
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
300
310
  }
301
311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
312
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -326,7 +336,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
326
336
  listNamedRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
327
337
  if (options === void 0) { options = {}; }
328
338
  return __awaiter(_this, void 0, void 0, function () {
329
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
339
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
330
340
  return __generator(this, function (_a) {
331
341
  switch (_a.label) {
332
342
  case 0:
@@ -367,8 +377,9 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
367
377
  if (filters !== undefined) {
368
378
  localVarQueryParameter['filters'] = filters;
369
379
  }
370
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
371
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
380
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
381
+ if (authorizationValue) {
382
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
372
383
  }
373
384
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
374
385
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -393,7 +404,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
393
404
  updateNamedRange: function (id, updateNamedRangeRequestDto, authorization, options) {
394
405
  if (options === void 0) { options = {}; }
395
406
  return __awaiter(_this, void 0, void 0, function () {
396
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
407
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
397
408
  return __generator(this, function (_a) {
398
409
  switch (_a.label) {
399
410
  case 0:
@@ -413,13 +424,16 @@ var NamedRangesApiAxiosParamCreator = 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);
@@ -401,7 +401,7 @@ export declare class PartnerLinksApi extends BaseAPI {
401
401
  * @throws {RequiredError}
402
402
  * @memberof PartnerLinksApi
403
403
  */
404
- deletePartnerLink(requestParameters: PartnerLinksApiDeletePartnerLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
404
+ deletePartnerLink(requestParameters: PartnerLinksApiDeletePartnerLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
405
405
  /**
406
406
  * Retrieves the details of the partner link that was previously created. Supply the unique partner link id that was returned when you created it and Emil Api will return the corresponding partner link information. **Required Permissions** \"partner-management.partners.view\"
407
407
  * @summary Retrieve the partner link
@@ -410,7 +410,7 @@ export declare class PartnerLinksApi extends BaseAPI {
410
410
  * @throws {RequiredError}
411
411
  * @memberof PartnerLinksApi
412
412
  */
413
- getPartnerLink(requestParameters: PartnerLinksApiGetPartnerLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerLinkResponseClass, any, {}>>;
413
+ getPartnerLink(requestParameters: PartnerLinksApiGetPartnerLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerLinkResponseClass, any, {}, any>>;
414
414
  /**
415
415
  * This will create a partner link. **Required Permissions** \"partner-management.partners.create\"
416
416
  * @summary Create the partner link
@@ -419,7 +419,7 @@ export declare class PartnerLinksApi extends BaseAPI {
419
419
  * @throws {RequiredError}
420
420
  * @memberof PartnerLinksApi
421
421
  */
422
- linkPartner(requestParameters: PartnerLinksApiLinkPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkPartnerResponseClass, any, {}>>;
422
+ linkPartner(requestParameters: PartnerLinksApiLinkPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkPartnerResponseClass, any, {}, any>>;
423
423
  /**
424
424
  * Returns a list of partner links you have previously created. The partner links are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
425
425
  * @summary List partner links
@@ -428,7 +428,7 @@ export declare class PartnerLinksApi extends BaseAPI {
428
428
  * @throws {RequiredError}
429
429
  * @memberof PartnerLinksApi
430
430
  */
431
- listPartnerLinks(requestParameters?: PartnerLinksApiListPartnerLinksRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerLinksResponseClass, any, {}>>;
431
+ listPartnerLinks(requestParameters?: PartnerLinksApiListPartnerLinksRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerLinksResponseClass, any, {}, any>>;
432
432
  /**
433
433
  * Ends the partner link setting the end date of the specified partner link to today. **Required Permissions** \"partner-management.partners.update\"
434
434
  * @summary Ends the partner link
@@ -437,7 +437,7 @@ export declare class PartnerLinksApi extends BaseAPI {
437
437
  * @throws {RequiredError}
438
438
  * @memberof PartnerLinksApi
439
439
  */
440
- unlinkPartner(requestParameters: PartnerLinksApiUnlinkPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkPartnerResponseClass, any, {}>>;
440
+ unlinkPartner(requestParameters: PartnerLinksApiUnlinkPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkPartnerResponseClass, any, {}, any>>;
441
441
  /**
442
442
  * Updates the specified partner link by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
443
443
  * @summary Update the partner link
@@ -446,5 +446,5 @@ export declare class PartnerLinksApi extends BaseAPI {
446
446
  * @throws {RequiredError}
447
447
  * @memberof PartnerLinksApi
448
448
  */
449
- updatePartnerLink(requestParameters: PartnerLinksApiUpdatePartnerLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerLinkResponseClass, any, {}>>;
449
+ updatePartnerLink(requestParameters: PartnerLinksApiUpdatePartnerLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerLinkResponseClass, any, {}, any>>;
450
450
  }