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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.openapi-generator/FILES +0 -2
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -4
  4. package/api/booking-funnels-api.ts +24 -12
  5. package/api/commission-agreement-items-api.ts +20 -10
  6. package/api/commission-agreement-products-api.ts +20 -10
  7. package/api/commission-agreement-versions-api.ts +16 -8
  8. package/api/commission-agreements-api.ts +20 -10
  9. package/api/commission-recipients-api.ts +20 -10
  10. package/api/emil-functions-api.ts +44 -22
  11. package/api/health-check-api.ts +6 -10
  12. package/api/insured-object-types-api.ts +4 -2
  13. package/api/insured-objects-api.ts +16 -8
  14. package/api/lead-statuses-api.ts +20 -10
  15. package/api/lead-versions-api.ts +8 -4
  16. package/api/leads-api.ts +40 -20
  17. package/api/named-ranges-api.ts +24 -12
  18. package/api/partner-links-api.ts +24 -12
  19. package/api/partner-roles-api.ts +20 -10
  20. package/api/policies-api.ts +68 -34
  21. package/api/premium-calculation-api.ts +4 -2
  22. package/api/premium-formulas-api.ts +24 -12
  23. package/api/product-configs-api.ts +24 -12
  24. package/api/product-factors-api.ts +28 -14
  25. package/api/product-fields-api.ts +28 -14
  26. package/api/product-versions-api.ts +8 -4
  27. package/api/products-api.ts +24 -12
  28. package/api/status-transition-rules-api.ts +24 -12
  29. package/dist/api/booking-funnel-versions-api.js +11 -7
  30. package/dist/api/booking-funnels-api.js +39 -23
  31. package/dist/api/commission-agreement-items-api.js +29 -18
  32. package/dist/api/commission-agreement-products-api.js +29 -18
  33. package/dist/api/commission-agreement-versions-api.js +22 -14
  34. package/dist/api/commission-agreements-api.js +29 -18
  35. package/dist/api/commission-recipients-api.js +32 -19
  36. package/dist/api/emil-functions-api.js +74 -43
  37. package/dist/api/health-check-api.d.ts +7 -8
  38. package/dist/api/health-check-api.js +4 -4
  39. package/dist/api/insured-object-types-api.js +4 -3
  40. package/dist/api/insured-objects-api.js +22 -14
  41. package/dist/api/lead-statuses-api.js +32 -19
  42. package/dist/api/lead-versions-api.js +11 -7
  43. package/dist/api/leads-api.js +64 -38
  44. package/dist/api/named-ranges-api.js +36 -22
  45. package/dist/api/partner-links-api.js +36 -22
  46. package/dist/api/partner-roles-api.js +32 -19
  47. package/dist/api/policies-api.js +101 -62
  48. package/dist/api/premium-calculation-api.js +7 -4
  49. package/dist/api/premium-formulas-api.js +39 -23
  50. package/dist/api/product-configs-api.js +39 -23
  51. package/dist/api/product-factors-api.js +37 -24
  52. package/dist/api/product-fields-api.js +43 -26
  53. package/dist/api/product-versions-api.js +11 -7
  54. package/dist/api/products-api.js +33 -21
  55. package/dist/api/status-transition-rules-api.js +36 -22
  56. package/dist/models/index.d.ts +0 -2
  57. package/dist/models/index.js +0 -2
  58. package/models/index.ts +0 -2
  59. package/package.json +1 -1
  60. package/dist/models/inline-response200.d.ts +0 -54
  61. package/dist/models/inline-response200.js +0 -15
  62. package/dist/models/inline-response503.d.ts +0 -54
  63. package/dist/models/inline-response503.js +0 -15
  64. package/models/inline-response200.ts +0 -48
  65. package/models/inline-response503.ts +0 -48
@@ -107,7 +107,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
107
107
  createProductField: function (createProductFieldRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
156
159
  deleteProductField: function (id, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -204,7 +210,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
204
210
  getProductField: function (id, authorization, options) {
205
211
  if (options === void 0) { options = {}; }
206
212
  return __awaiter(_this, void 0, void 0, function () {
207
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
208
214
  return __generator(this, function (_a) {
209
215
  switch (_a.label) {
210
216
  case 0:
@@ -222,13 +228,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
222
228
  localVarQueryParameter = {};
223
229
  // authentication bearer required
224
230
  // http bearer authentication required
225
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
232
+ // Only Authorization falls back to the configured token; an empty value is never sent.
233
+ ];
226
234
  case 1:
227
235
  // authentication bearer required
228
236
  // http bearer authentication required
229
237
  _a.sent();
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
241
  }
233
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -258,7 +267,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
258
267
  listProductFieldTypes: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
259
268
  if (options === void 0) { options = {}; }
260
269
  return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
262
271
  return __generator(this, function (_a) {
263
272
  switch (_a.label) {
264
273
  case 0:
@@ -299,8 +308,9 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
299
308
  if (filters !== undefined) {
300
309
  localVarQueryParameter['filters'] = filters;
301
310
  }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
+ if (authorizationValue) {
313
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
314
  }
305
315
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
316
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -330,7 +340,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
330
340
  listProductFields: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
331
341
  if (options === void 0) { options = {}; }
332
342
  return __awaiter(_this, void 0, void 0, function () {
333
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
343
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
334
344
  return __generator(this, function (_a) {
335
345
  switch (_a.label) {
336
346
  case 0:
@@ -371,8 +381,9 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
371
381
  if (filters !== undefined) {
372
382
  localVarQueryParameter['filters'] = filters;
373
383
  }
374
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
375
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
384
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
385
+ if (authorizationValue) {
386
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
376
387
  }
377
388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
378
389
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -396,7 +407,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
396
407
  swapProductFieldsOrder: function (swapProductFieldsOrderRequestDto, authorization, options) {
397
408
  if (options === void 0) { options = {}; }
398
409
  return __awaiter(_this, void 0, void 0, function () {
399
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
410
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
400
411
  return __generator(this, function (_a) {
401
412
  switch (_a.label) {
402
413
  case 0:
@@ -413,13 +424,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
413
424
  localVarQueryParameter = {};
414
425
  // authentication bearer required
415
426
  // http bearer authentication required
416
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
427
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
428
+ // Only Authorization falls back to the configured token; an empty value is never sent.
429
+ ];
417
430
  case 1:
418
431
  // authentication bearer required
419
432
  // http bearer authentication required
420
433
  _a.sent();
421
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
422
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
434
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
435
+ if (authorizationValue) {
436
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
423
437
  }
424
438
  localVarHeaderParameter['Content-Type'] = 'application/json';
425
439
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -446,7 +460,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
446
460
  updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
447
461
  if (options === void 0) { options = {}; }
448
462
  return __awaiter(_this, void 0, void 0, function () {
449
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
463
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
450
464
  return __generator(this, function (_a) {
451
465
  switch (_a.label) {
452
466
  case 0:
@@ -466,13 +480,16 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
466
480
  localVarQueryParameter = {};
467
481
  // authentication bearer required
468
482
  // http bearer authentication required
469
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
483
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
484
+ // Only Authorization falls back to the configured token; an empty value is never sent.
485
+ ];
470
486
  case 1:
471
487
  // authentication bearer required
472
488
  // http bearer authentication required
473
489
  _a.sent();
474
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
475
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
490
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
491
+ if (authorizationValue) {
492
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
476
493
  }
477
494
  localVarHeaderParameter['Content-Type'] = 'application/json';
478
495
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -110,7 +110,7 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
110
110
  getProductVersion: function (id, id2, authorization, filter, expand, options) {
111
111
  if (options === void 0) { options = {}; }
112
112
  return __awaiter(_this, void 0, void 0, function () {
113
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
113
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
114
114
  return __generator(this, function (_a) {
115
115
  switch (_a.label) {
116
116
  case 0:
@@ -144,8 +144,9 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
144
144
  if (expand !== undefined) {
145
145
  localVarQueryParameter['expand'] = expand;
146
146
  }
147
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
148
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
147
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
148
+ if (authorizationValue) {
149
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
149
150
  }
150
151
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
152
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -170,7 +171,7 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
170
171
  updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
171
172
  if (options === void 0) { options = {}; }
172
173
  return __awaiter(_this, void 0, void 0, function () {
173
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
174
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
174
175
  return __generator(this, function (_a) {
175
176
  switch (_a.label) {
176
177
  case 0:
@@ -190,13 +191,16 @@ var ProductVersionsApiAxiosParamCreator = function (configuration) {
190
191
  localVarQueryParameter = {};
191
192
  // authentication bearer required
192
193
  // http bearer authentication required
193
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
194
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
195
+ // Only Authorization falls back to the configured token; an empty value is never sent.
196
+ ];
194
197
  case 1:
195
198
  // authentication bearer required
196
199
  // http bearer authentication required
197
200
  _a.sent();
198
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
199
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
201
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
202
+ if (authorizationValue) {
203
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
200
204
  }
201
205
  localVarHeaderParameter['Content-Type'] = 'application/json';
202
206
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -107,7 +107,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
107
107
  createProduct: function (createProductRequestDto, 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 ProductsApiAxiosParamCreator = 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 ProductsApiAxiosParamCreator = function (configuration) {
156
159
  deleteProduct: 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 ProductsApiAxiosParamCreator = 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 : {};
@@ -207,7 +213,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
207
213
  getProductByCode: function (code, authorization, id, slug, expand, options) {
208
214
  if (options === void 0) { options = {}; }
209
215
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
216
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
211
217
  return __generator(this, function (_a) {
212
218
  switch (_a.label) {
213
219
  case 0:
@@ -239,8 +245,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
239
245
  if (expand !== undefined) {
240
246
  localVarQueryParameter['expand'] = expand;
241
247
  }
242
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
249
+ if (authorizationValue) {
250
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
244
251
  }
245
252
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
246
253
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -267,7 +274,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
267
274
  getProductByIdentifier: function (authorization, id, code, slug, expand, options) {
268
275
  if (options === void 0) { options = {}; }
269
276
  return __awaiter(_this, void 0, void 0, function () {
270
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
277
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
271
278
  return __generator(this, function (_a) {
272
279
  switch (_a.label) {
273
280
  case 0:
@@ -299,8 +306,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
299
306
  if (expand !== undefined) {
300
307
  localVarQueryParameter['expand'] = expand;
301
308
  }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
309
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
+ if (authorizationValue) {
311
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
312
  }
305
313
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
314
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -330,7 +338,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
330
338
  listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
331
339
  if (options === void 0) { options = {}; }
332
340
  return __awaiter(_this, void 0, void 0, function () {
333
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
341
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
334
342
  return __generator(this, function (_a) {
335
343
  switch (_a.label) {
336
344
  case 0:
@@ -371,8 +379,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
371
379
  if (filters !== undefined) {
372
380
  localVarQueryParameter['filters'] = filters;
373
381
  }
374
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
375
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
382
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
383
+ if (authorizationValue) {
384
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
376
385
  }
377
386
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
378
387
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -397,7 +406,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
397
406
  updateProduct: function (id, updateProductRequestDto, authorization, options) {
398
407
  if (options === void 0) { options = {}; }
399
408
  return __awaiter(_this, void 0, void 0, function () {
400
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
409
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
401
410
  return __generator(this, function (_a) {
402
411
  switch (_a.label) {
403
412
  case 0:
@@ -417,13 +426,16 @@ var ProductsApiAxiosParamCreator = function (configuration) {
417
426
  localVarQueryParameter = {};
418
427
  // authentication bearer required
419
428
  // http bearer authentication required
420
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
429
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
430
+ // Only Authorization falls back to the configured token; an empty value is never sent.
431
+ ];
421
432
  case 1:
422
433
  // authentication bearer required
423
434
  // http bearer authentication required
424
435
  _a.sent();
425
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
426
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
436
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
437
+ if (authorizationValue) {
438
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
427
439
  }
428
440
  localVarHeaderParameter['Content-Type'] = 'application/json';
429
441
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -107,7 +107,7 @@ var StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
107
107
  createStatusTransitionRule: function (createStatusTransitionRuleRequestDto, 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 StatusTransitionRulesApiAxiosParamCreator = 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 StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
156
159
  deleteStatusTransitionRule: function (code, 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 StatusTransitionRulesApiAxiosParamCreator = 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 StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
205
211
  getStatusTransitionRule: function (code, 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 StatusTransitionRulesApiAxiosParamCreator = 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 StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
262
269
  listStatusTransitionRules: 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 StatusTransitionRulesApiAxiosParamCreator = 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 : {};
@@ -329,7 +337,7 @@ var StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
329
337
  patchStatusTransitionRule: function (code, patchStatusTransitionRuleRequestDto, authorization, options) {
330
338
  if (options === void 0) { options = {}; }
331
339
  return __awaiter(_this, void 0, void 0, function () {
332
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
340
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
333
341
  return __generator(this, function (_a) {
334
342
  switch (_a.label) {
335
343
  case 0:
@@ -349,13 +357,16 @@ var StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
349
357
  localVarQueryParameter = {};
350
358
  // authentication bearer required
351
359
  // http bearer authentication required
352
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
360
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
361
+ // Only Authorization falls back to the configured token; an empty value is never sent.
362
+ ];
353
363
  case 1:
354
364
  // authentication bearer required
355
365
  // http bearer authentication required
356
366
  _a.sent();
357
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
358
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
367
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
368
+ if (authorizationValue) {
369
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
359
370
  }
360
371
  localVarHeaderParameter['Content-Type'] = 'application/json';
361
372
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -382,7 +393,7 @@ var StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
382
393
  updateStatusTransitionRule: function (code, updateStatusTransitionRuleRequestDto, authorization, options) {
383
394
  if (options === void 0) { options = {}; }
384
395
  return __awaiter(_this, void 0, void 0, function () {
385
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
396
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
386
397
  return __generator(this, function (_a) {
387
398
  switch (_a.label) {
388
399
  case 0:
@@ -402,13 +413,16 @@ var StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
402
413
  localVarQueryParameter = {};
403
414
  // authentication bearer required
404
415
  // http bearer authentication required
405
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
416
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
417
+ // Only Authorization falls back to the configured token; an empty value is never sent.
418
+ ];
406
419
  case 1:
407
420
  // authentication bearer required
408
421
  // http bearer authentication required
409
422
  _a.sent();
410
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
411
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
423
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
424
+ if (authorizationValue) {
425
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
412
426
  }
413
427
  localVarHeaderParameter['Content-Type'] = 'application/json';
414
428
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -124,8 +124,6 @@ export * from './grouped-product-factor-class';
124
124
  export * from './grouped-product-factor-value-class';
125
125
  export * from './grouped-product-factors-response-class';
126
126
  export * from './grpc-mandate-dto';
127
- export * from './inline-response200';
128
- export * from './inline-response503';
129
127
  export * from './insured-object-class';
130
128
  export * from './insured-object-type-class';
131
129
  export * from './invoice-item-class';
@@ -140,8 +140,6 @@ __exportStar(require("./grouped-product-factor-class"), exports);
140
140
  __exportStar(require("./grouped-product-factor-value-class"), exports);
141
141
  __exportStar(require("./grouped-product-factors-response-class"), exports);
142
142
  __exportStar(require("./grpc-mandate-dto"), exports);
143
- __exportStar(require("./inline-response200"), exports);
144
- __exportStar(require("./inline-response503"), exports);
145
143
  __exportStar(require("./insured-object-class"), exports);
146
144
  __exportStar(require("./insured-object-type-class"), exports);
147
145
  __exportStar(require("./invoice-item-class"), exports);
package/models/index.ts CHANGED
@@ -124,8 +124,6 @@ export * from './grouped-product-factor-class';
124
124
  export * from './grouped-product-factor-value-class';
125
125
  export * from './grouped-product-factors-response-class';
126
126
  export * from './grpc-mandate-dto';
127
- export * from './inline-response200';
128
- export * from './inline-response503';
129
127
  export * from './insured-object-class';
130
128
  export * from './insured-object-type-class';
131
129
  export * from './invoice-item-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.104.1-beta.107",
3
+ "version": "1.104.1-beta.110",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [