@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
@@ -107,7 +107,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
107
107
  createEmilFunction: function (createEmilFunctionRequestDto, 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 EmilFunctionsApiAxiosParamCreator = 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 EmilFunctionsApiAxiosParamCreator = function (configuration) {
156
159
  createEmilFunctionSecret: function (createEmilFunctionSecretRequestDto, 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:
@@ -173,13 +176,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
173
176
  localVarQueryParameter = {};
174
177
  // authentication bearer required
175
178
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
177
182
  case 1:
178
183
  // authentication bearer required
179
184
  // http bearer authentication required
180
185
  _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
189
  }
184
190
  localVarHeaderParameter['Content-Type'] = 'application/json';
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -205,7 +211,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
205
211
  deleteEmilFunction: function (id, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -223,13 +229,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
223
229
  localVarQueryParameter = {};
224
230
  // authentication bearer required
225
231
  // http bearer authentication required
226
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
232
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
233
+ // Only Authorization falls back to the configured token; an empty value is never sent.
234
+ ];
227
235
  case 1:
228
236
  // authentication bearer required
229
237
  // http bearer authentication required
230
238
  _a.sent();
231
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
232
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
240
+ if (authorizationValue) {
241
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
233
242
  }
234
243
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
244
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -253,7 +262,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
253
262
  deleteEmilFunctionSecret: function (name, authorization, options) {
254
263
  if (options === void 0) { options = {}; }
255
264
  return __awaiter(_this, void 0, void 0, function () {
256
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
257
266
  return __generator(this, function (_a) {
258
267
  switch (_a.label) {
259
268
  case 0:
@@ -271,13 +280,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
271
280
  localVarQueryParameter = {};
272
281
  // authentication bearer required
273
282
  // http bearer authentication required
274
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
283
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
284
+ // Only Authorization falls back to the configured token; an empty value is never sent.
285
+ ];
275
286
  case 1:
276
287
  // authentication bearer required
277
288
  // http bearer authentication required
278
289
  _a.sent();
279
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
291
+ if (authorizationValue) {
292
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
281
293
  }
282
294
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
295
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -302,7 +314,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
302
314
  executeEmilFunction: function (slug, executeEmilFunctionRequestDto, authorization, options) {
303
315
  if (options === void 0) { options = {}; }
304
316
  return __awaiter(_this, void 0, void 0, function () {
305
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
317
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
306
318
  return __generator(this, function (_a) {
307
319
  switch (_a.label) {
308
320
  case 0:
@@ -322,13 +334,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
322
334
  localVarQueryParameter = {};
323
335
  // authentication bearer required
324
336
  // http bearer authentication required
325
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
337
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
338
+ // Only Authorization falls back to the configured token; an empty value is never sent.
339
+ ];
326
340
  case 1:
327
341
  // authentication bearer required
328
342
  // http bearer authentication required
329
343
  _a.sent();
330
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
331
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
345
+ if (authorizationValue) {
346
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
332
347
  }
333
348
  localVarHeaderParameter['Content-Type'] = 'application/json';
334
349
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -354,7 +369,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
354
369
  getEmilFunction: function (id, authorization, options) {
355
370
  if (options === void 0) { options = {}; }
356
371
  return __awaiter(_this, void 0, void 0, function () {
357
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
372
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
358
373
  return __generator(this, function (_a) {
359
374
  switch (_a.label) {
360
375
  case 0:
@@ -372,13 +387,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
372
387
  localVarQueryParameter = {};
373
388
  // authentication bearer required
374
389
  // http bearer authentication required
375
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
390
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
391
+ // Only Authorization falls back to the configured token; an empty value is never sent.
392
+ ];
376
393
  case 1:
377
394
  // authentication bearer required
378
395
  // http bearer authentication required
379
396
  _a.sent();
380
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
381
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
397
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
398
+ if (authorizationValue) {
399
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
382
400
  }
383
401
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
384
402
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -402,7 +420,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
402
420
  getEmilFunctionSecret: function (name, authorization, options) {
403
421
  if (options === void 0) { options = {}; }
404
422
  return __awaiter(_this, void 0, void 0, function () {
405
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
423
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
406
424
  return __generator(this, function (_a) {
407
425
  switch (_a.label) {
408
426
  case 0:
@@ -420,13 +438,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
420
438
  localVarQueryParameter = {};
421
439
  // authentication bearer required
422
440
  // http bearer authentication required
423
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
441
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
442
+ // Only Authorization falls back to the configured token; an empty value is never sent.
443
+ ];
424
444
  case 1:
425
445
  // authentication bearer required
426
446
  // http bearer authentication required
427
447
  _a.sent();
428
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
429
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
448
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
449
+ if (authorizationValue) {
450
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
430
451
  }
431
452
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
432
453
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -449,7 +470,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
449
470
  listEmilFunctionSecrets: function (authorization, options) {
450
471
  if (options === void 0) { options = {}; }
451
472
  return __awaiter(_this, void 0, void 0, function () {
452
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
473
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
453
474
  return __generator(this, function (_a) {
454
475
  switch (_a.label) {
455
476
  case 0:
@@ -464,13 +485,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
464
485
  localVarQueryParameter = {};
465
486
  // authentication bearer required
466
487
  // http bearer authentication required
467
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
488
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
489
+ // Only Authorization falls back to the configured token; an empty value is never sent.
490
+ ];
468
491
  case 1:
469
492
  // authentication bearer required
470
493
  // http bearer authentication required
471
494
  _a.sent();
472
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
473
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
495
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
496
+ if (authorizationValue) {
497
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
474
498
  }
475
499
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
476
500
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -500,7 +524,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
500
524
  listEmilFunctions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
501
525
  if (options === void 0) { options = {}; }
502
526
  return __awaiter(_this, void 0, void 0, function () {
503
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
527
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
504
528
  return __generator(this, function (_a) {
505
529
  switch (_a.label) {
506
530
  case 0:
@@ -541,8 +565,9 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
541
565
  if (filters !== undefined) {
542
566
  localVarQueryParameter['filters'] = filters;
543
567
  }
544
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
545
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
568
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
569
+ if (authorizationValue) {
570
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
546
571
  }
547
572
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
548
573
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -567,7 +592,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
567
592
  updateEmilFunction: function (id, updateEmilFunctionRequestDto, authorization, options) {
568
593
  if (options === void 0) { options = {}; }
569
594
  return __awaiter(_this, void 0, void 0, function () {
570
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
595
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
571
596
  return __generator(this, function (_a) {
572
597
  switch (_a.label) {
573
598
  case 0:
@@ -587,13 +612,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
587
612
  localVarQueryParameter = {};
588
613
  // authentication bearer required
589
614
  // http bearer authentication required
590
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
615
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
616
+ // Only Authorization falls back to the configured token; an empty value is never sent.
617
+ ];
591
618
  case 1:
592
619
  // authentication bearer required
593
620
  // http bearer authentication required
594
621
  _a.sent();
595
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
596
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
622
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
623
+ if (authorizationValue) {
624
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
597
625
  }
598
626
  localVarHeaderParameter['Content-Type'] = 'application/json';
599
627
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -620,7 +648,7 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
620
648
  updateEmilFunctionSecret: function (name, updateEmilFunctionSecretRequestDto, authorization, options) {
621
649
  if (options === void 0) { options = {}; }
622
650
  return __awaiter(_this, void 0, void 0, function () {
623
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
651
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
624
652
  return __generator(this, function (_a) {
625
653
  switch (_a.label) {
626
654
  case 0:
@@ -640,13 +668,16 @@ var EmilFunctionsApiAxiosParamCreator = function (configuration) {
640
668
  localVarQueryParameter = {};
641
669
  // authentication bearer required
642
670
  // http bearer authentication required
643
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
671
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
672
+ // Only Authorization falls back to the configured token; an empty value is never sent.
673
+ ];
644
674
  case 1:
645
675
  // authentication bearer required
646
676
  // http bearer authentication required
647
677
  _a.sent();
648
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
649
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
678
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
679
+ if (authorizationValue) {
680
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
650
681
  }
651
682
  localVarHeaderParameter['Content-Type'] = 'application/json';
652
683
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -12,14 +12,13 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { InlineResponse200 } from '../models';
16
15
  /**
17
16
  * HealthCheckApi - axios parameter creator
18
17
  * @export
19
18
  */
20
19
  export declare const HealthCheckApiAxiosParamCreator: (configuration?: Configuration) => {
21
20
  /**
22
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
21
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
23
22
  * @summary Health Check
24
23
  * @param {*} [options] Override http request option.
25
24
  * @throws {RequiredError}
@@ -32,12 +31,12 @@ export declare const HealthCheckApiAxiosParamCreator: (configuration?: Configura
32
31
  */
33
32
  export declare const HealthCheckApiFp: (configuration?: Configuration) => {
34
33
  /**
35
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
34
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
36
35
  * @summary Health Check
37
36
  * @param {*} [options] Override http request option.
38
37
  * @throws {RequiredError}
39
38
  */
40
- check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
+ check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
41
40
  };
42
41
  /**
43
42
  * HealthCheckApi - factory interface
@@ -45,12 +44,12 @@ export declare const HealthCheckApiFp: (configuration?: Configuration) => {
45
44
  */
46
45
  export declare const HealthCheckApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
46
  /**
48
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
47
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
49
48
  * @summary Health Check
50
49
  * @param {*} [options] Override http request option.
51
50
  * @throws {RequiredError}
52
51
  */
53
- check(options?: any): AxiosPromise<InlineResponse200>;
52
+ check(options?: any): AxiosPromise<void>;
54
53
  };
55
54
  /**
56
55
  * HealthCheckApi - object-oriented interface
@@ -60,11 +59,11 @@ export declare const HealthCheckApiFactory: (configuration?: Configuration, base
60
59
  */
61
60
  export declare class HealthCheckApi extends BaseAPI {
62
61
  /**
63
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
62
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
64
63
  * @summary Health Check
65
64
  * @param {*} [options] Override http request option.
66
65
  * @throws {RequiredError}
67
66
  * @memberof HealthCheckApi
68
67
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
68
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
70
69
  }
@@ -97,7 +97,7 @@ var HealthCheckApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
100
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
101
101
  * @summary Health Check
102
102
  * @param {*} [options] Override http request option.
103
103
  * @throws {RequiredError}
@@ -137,7 +137,7 @@ var HealthCheckApiFp = function (configuration) {
137
137
  var localVarAxiosParamCreator = (0, exports.HealthCheckApiAxiosParamCreator)(configuration);
138
138
  return {
139
139
  /**
140
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
140
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
141
141
  * @summary Health Check
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
@@ -166,7 +166,7 @@ var HealthCheckApiFactory = function (configuration, basePath, axios) {
166
166
  var localVarFp = (0, exports.HealthCheckApiFp)(configuration);
167
167
  return {
168
168
  /**
169
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
169
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
170
170
  * @summary Health Check
171
171
  * @param {*} [options] Override http request option.
172
172
  * @throws {RequiredError}
@@ -189,7 +189,7 @@ var HealthCheckApi = /** @class */ (function (_super) {
189
189
  return _super !== null && _super.apply(this, arguments) || this;
190
190
  }
191
191
  /**
192
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
192
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
193
193
  * @summary Health Check
194
194
  * @param {*} [options] Override http request option.
195
195
  * @throws {RequiredError}
@@ -113,7 +113,7 @@ var InsuredObjectTypesApiAxiosParamCreator = function (configuration) {
113
113
  listInsuredObjectTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
114
114
  if (options === void 0) { options = {}; }
115
115
  return __awaiter(_this, void 0, void 0, function () {
116
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
117
117
  return __generator(this, function (_a) {
118
118
  switch (_a.label) {
119
119
  case 0:
@@ -154,8 +154,9 @@ var InsuredObjectTypesApiAxiosParamCreator = function (configuration) {
154
154
  if (filters !== undefined) {
155
155
  localVarQueryParameter['filters'] = filters;
156
156
  }
157
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
158
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
157
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
158
+ if (authorizationValue) {
159
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
159
160
  }
160
161
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
161
162
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -107,7 +107,7 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
107
107
  createInsuredObject: function (createInsuredObjectRequestDto, 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 InsuredObjectsApiAxiosParamCreator = 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 InsuredObjectsApiAxiosParamCreator = function (configuration) {
156
159
  deleteInsuredObject: 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 InsuredObjectsApiAxiosParamCreator = 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 : {};
@@ -205,7 +211,7 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
205
211
  getInsuredObject: function (id, authorization, expand, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -231,8 +237,9 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
231
237
  if (expand !== undefined) {
232
238
  localVarQueryParameter['expand'] = expand;
233
239
  }
234
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
241
+ if (authorizationValue) {
242
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
236
243
  }
237
244
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
245
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -262,7 +269,7 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
262
269
  listInsuredObjects: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
263
270
  if (options === void 0) { options = {}; }
264
271
  return __awaiter(_this, void 0, void 0, function () {
265
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
272
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
266
273
  return __generator(this, function (_a) {
267
274
  switch (_a.label) {
268
275
  case 0:
@@ -303,8 +310,9 @@ var InsuredObjectsApiAxiosParamCreator = function (configuration) {
303
310
  if (filters !== undefined) {
304
311
  localVarQueryParameter['filters'] = filters;
305
312
  }
306
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
307
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
313
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
314
+ if (authorizationValue) {
315
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
308
316
  }
309
317
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
310
318
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};