@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 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);
package/dist/api.d.ts CHANGED
@@ -27,6 +27,7 @@ export * from './api/named-ranges-api';
27
27
  export * from './api/partner-links-api';
28
28
  export * from './api/partner-roles-api';
29
29
  export * from './api/policies-api';
30
+ export * from './api/premium-calculation-api';
30
31
  export * from './api/premium-formulas-api';
31
32
  export * from './api/product-configs-api';
32
33
  export * from './api/product-factors-api';
package/dist/api.js CHANGED
@@ -45,6 +45,7 @@ __exportStar(require("./api/named-ranges-api"), exports);
45
45
  __exportStar(require("./api/partner-links-api"), exports);
46
46
  __exportStar(require("./api/partner-roles-api"), exports);
47
47
  __exportStar(require("./api/policies-api"), exports);
48
+ __exportStar(require("./api/premium-calculation-api"), exports);
48
49
  __exportStar(require("./api/premium-formulas-api"), exports);
49
50
  __exportStar(require("./api/product-configs-api"), exports);
50
51
  __exportStar(require("./api/product-factors-api"), exports);
@@ -0,0 +1,39 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CalculatedPolicyObjectsClass } from './calculated-policy-objects-class';
13
+ import { CalculationErrorsClass } from './calculation-errors-class';
14
+ import { PolicyPremiumClass } from './policy-premium-class';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CalculatePremiumResponseClass
19
+ */
20
+ export interface CalculatePremiumResponseClass {
21
+ /**
22
+ * Policy premium
23
+ * @type {PolicyPremiumClass}
24
+ * @memberof CalculatePremiumResponseClass
25
+ */
26
+ 'premium': PolicyPremiumClass;
27
+ /**
28
+ * Calculated policy objects
29
+ * @type {CalculatedPolicyObjectsClass}
30
+ * @memberof CalculatePremiumResponseClass
31
+ */
32
+ 'policyObjects': CalculatedPolicyObjectsClass;
33
+ /**
34
+ * Calculation errors
35
+ * @type {CalculationErrorsClass}
36
+ * @memberof CalculatePremiumResponseClass
37
+ */
38
+ 'errors': CalculationErrorsClass;
39
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CalculatedPolicyObjectClass } from './calculated-policy-object-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalculatedPolicyObjectsClass
17
+ */
18
+ export interface CalculatedPolicyObjectsClass {
19
+ /**
20
+ * Calculated policy objects.
21
+ * @type {Array<CalculatedPolicyObjectClass>}
22
+ * @memberof CalculatedPolicyObjectsClass
23
+ */
24
+ 'policyObjects': Array<CalculatedPolicyObjectClass>;
25
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { ClaimPositionFieldsClass } from './claim-position-fields-class';
13
13
  import { GeneralSettingClass } from './general-setting-class';
14
+ import { RegulationSubtypesClass } from './regulation-subtypes-class';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -29,4 +30,10 @@ export interface ClaimConfigClass {
29
30
  * @memberof ClaimConfigClass
30
31
  */
31
32
  'claimPositionFields': ClaimPositionFieldsClass;
33
+ /**
34
+ * Client-defined subtypes per regulation item type, selectable on claim regulations
35
+ * @type {RegulationSubtypesClass}
36
+ * @memberof ClaimConfigClass
37
+ */
38
+ 'regulationSubtypes'?: RegulationSubtypesClass;
32
39
  }
@@ -24,7 +24,7 @@ export interface CreateDraftPolicyRequestDto {
24
24
  */
25
25
  'policyObjects': Array<PolicyObjectDto>;
26
26
  /**
27
- * Date from which the policy should be updated. This will create a new timeline starting from this date.
27
+ * Date from which the policy should be updated. This will create a new timeline starting from this date. Required — unlike on the PATCH draft endpoint, `from` cannot be omitted when creating a draft.
28
28
  * @type {string}
29
29
  * @memberof CreateDraftPolicyRequestDto
30
30
  */
@@ -75,6 +75,12 @@ export interface CreatePremiumFormulaRequestDto {
75
75
  * @memberof CreatePremiumFormulaRequestDto
76
76
  */
77
77
  'order': number;
78
+ /**
79
+ * Unique, immutable identifier for this Premium item. Omit it and one is generated. Supply it only when importing a Premium item that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
80
+ * @type {string}
81
+ * @memberof CreatePremiumFormulaRequestDto
82
+ */
83
+ 'code'?: string;
78
84
  }
79
85
  export declare const CreatePremiumFormulaRequestDtoTypeEnum: {
80
86
  readonly Time: "time";
@@ -45,6 +45,18 @@ export interface CreateProductRequestDto {
45
45
  * @memberof CreateProductRequestDto
46
46
  */
47
47
  'defaultLanguage': CreateProductRequestDtoDefaultLanguageEnum;
48
+ /**
49
+ * Unique, immutable identifier for this product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
50
+ * @type {string}
51
+ * @memberof CreateProductRequestDto
52
+ */
53
+ 'code'?: string;
54
+ /**
55
+ * Unique, immutable identifier for the product version created along with the product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at its first version. It cannot be changed afterwards.
56
+ * @type {string}
57
+ * @memberof CreateProductRequestDto
58
+ */
59
+ 'versionCode'?: string;
48
60
  }
49
61
  export declare const CreateProductRequestDtoInsuredObjectTypesEnum: {
50
62
  readonly Default: "default";
@@ -27,4 +27,10 @@ export interface CreateProductVersionRequestDto {
27
27
  * @memberof CreateProductVersionRequestDto
28
28
  */
29
29
  'description': string;
30
+ /**
31
+ * Unique, immutable identifier for this product version. Omit it and one is generated. Supply it only when importing a product version that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
32
+ * @type {string}
33
+ * @memberof CreateProductVersionRequestDto
34
+ */
35
+ 'code'?: string;
30
36
  }
@@ -22,7 +22,7 @@ export interface GetDraftPolicyRequestDto {
22
22
  */
23
23
  'policyCode': string;
24
24
  /**
25
- * Fields to expand response by.
25
+ * Fields to expand in the draft response. Pass the unprefixed relation name; for example, \"premiumItems\" expands the draft premium items relation.<br/> <br/> <i>Allowed values: version, timelines, premiums, premiumItems, premiumFormulas</i>
26
26
  * @type {string}
27
27
  * @memberof GetDraftPolicyRequestDto
28
28
  */
@@ -7,8 +7,10 @@ export * from './billing-address-dto';
7
7
  export * from './booking-funnel-class';
8
8
  export * from './calculate-custom-premium-request-dto';
9
9
  export * from './calculate-premium-request-dto';
10
+ export * from './calculate-premium-response-class';
10
11
  export * from './calculate-product-fields-request-dto';
11
12
  export * from './calculated-policy-object-class';
13
+ export * from './calculated-policy-objects-class';
12
14
  export * from './calculation-errors-class';
13
15
  export * from './calculation-item-errors-class';
14
16
  export * from './calculation-message-class';
@@ -122,8 +124,6 @@ export * from './grouped-product-factor-class';
122
124
  export * from './grouped-product-factor-value-class';
123
125
  export * from './grouped-product-factors-response-class';
124
126
  export * from './grpc-mandate-dto';
125
- export * from './inline-response200';
126
- export * from './inline-response503';
127
127
  export * from './insured-object-class';
128
128
  export * from './insured-object-type-class';
129
129
  export * from './invoice-item-class';
@@ -196,6 +196,8 @@ export * from './product-factor-value-for-version-class';
196
196
  export * from './product-field-class';
197
197
  export * from './product-field-type-class';
198
198
  export * from './product-version-class';
199
+ export * from './regulation-subtype-class';
200
+ export * from './regulation-subtypes-class';
199
201
  export * from './rest-calculate-product-tariff-quote-request-dto';
200
202
  export * from './rest-calculate-product-tariff-quote-response-class';
201
203
  export * from './rest-clone-lead-account-request-dto';
@@ -23,8 +23,10 @@ __exportStar(require("./billing-address-dto"), exports);
23
23
  __exportStar(require("./booking-funnel-class"), exports);
24
24
  __exportStar(require("./calculate-custom-premium-request-dto"), exports);
25
25
  __exportStar(require("./calculate-premium-request-dto"), exports);
26
+ __exportStar(require("./calculate-premium-response-class"), exports);
26
27
  __exportStar(require("./calculate-product-fields-request-dto"), exports);
27
28
  __exportStar(require("./calculated-policy-object-class"), exports);
29
+ __exportStar(require("./calculated-policy-objects-class"), exports);
28
30
  __exportStar(require("./calculation-errors-class"), exports);
29
31
  __exportStar(require("./calculation-item-errors-class"), exports);
30
32
  __exportStar(require("./calculation-message-class"), exports);
@@ -138,8 +140,6 @@ __exportStar(require("./grouped-product-factor-class"), exports);
138
140
  __exportStar(require("./grouped-product-factor-value-class"), exports);
139
141
  __exportStar(require("./grouped-product-factors-response-class"), exports);
140
142
  __exportStar(require("./grpc-mandate-dto"), exports);
141
- __exportStar(require("./inline-response200"), exports);
142
- __exportStar(require("./inline-response503"), exports);
143
143
  __exportStar(require("./insured-object-class"), exports);
144
144
  __exportStar(require("./insured-object-type-class"), exports);
145
145
  __exportStar(require("./invoice-item-class"), exports);
@@ -212,6 +212,8 @@ __exportStar(require("./product-factor-value-for-version-class"), exports);
212
212
  __exportStar(require("./product-field-class"), exports);
213
213
  __exportStar(require("./product-field-type-class"), exports);
214
214
  __exportStar(require("./product-version-class"), exports);
215
+ __exportStar(require("./regulation-subtype-class"), exports);
216
+ __exportStar(require("./regulation-subtypes-class"), exports);
215
217
  __exportStar(require("./rest-calculate-product-tariff-quote-request-dto"), exports);
216
218
  __exportStar(require("./rest-calculate-product-tariff-quote-response-class"), exports);
217
219
  __exportStar(require("./rest-clone-lead-account-request-dto"), exports);
@@ -64,4 +64,10 @@ export interface PartnerClass {
64
64
  * @memberof PartnerClass
65
65
  */
66
66
  'tags': Array<TagClass>;
67
+ /**
68
+ * The business subtypes of the partner, as recorded in partnerservice. Empty when unset.
69
+ * @type {Array<string>}
70
+ * @memberof PartnerClass
71
+ */
72
+ 'subtypes': Array<string>;
67
73
  }
@@ -24,7 +24,7 @@ export interface PatchDraftPolicyRequestDto {
24
24
  */
25
25
  'policyObjects': Array<PolicyObjectDto>;
26
26
  /**
27
- * Date from which the policy should be updated. This will create a new timeline starting from this date.
27
+ * Date from which the policy should be updated. This will create a new timeline starting from this date. Optional on PATCH — omit it to leave the current version unaffected.
28
28
  * @type {string}
29
29
  * @memberof PatchDraftPolicyRequestDto
30
30
  */
@@ -36,7 +36,7 @@ export interface PatchDraftPolicyRequestDto {
36
36
  */
37
37
  'to'?: string;
38
38
  /**
39
- * Policy revision status.
39
+ * Policy revision status. Terminal values change the draft lifecycle:<br/> <br/> - <b>APPROVED</b>: promotes the draft to the current policy version (`isCurrent: true`, `isDraft: false`), replacing the current version.<br/> - <b>REJECTED</b>: deletes the draft version; subsequent `GET .../draft` requests return 404.<br/> - <b>CREATED</b>, <b>IN_REVIEW</b>, or <b>REVIEWED</b>: updates the draft in place with the supplied payload and leaves it as a draft (`isCurrent: false`, `isDraft: true`).
40
40
  * @type {string}
41
41
  * @memberof PatchDraftPolicyRequestDto
42
42
  */
@@ -28,7 +28,7 @@ export interface PolicyObjectDto {
28
28
  */
29
29
  'insuredObjectName'?: string;
30
30
  /**
31
- * Insured object data.
31
+ * Insured object data. For the \"Coverage\" insured object, pass the tariff variant as `tariffVariant`, for example `{ \"tariffVariant\": \"...\" }`.
32
32
  * @type {object}
33
33
  * @memberof PolicyObjectDto
34
34
  */
@@ -47,7 +47,7 @@ export interface PolicyPremiumItemClass {
47
47
  */
48
48
  'premiumFormula': PremiumFormulaClass;
49
49
  /**
50
- * Is premium override?
50
+ * Whether this premium item is priced from an override rather than the formula. Read-only — it cannot be set directly. It is computed per formula (matched by `name` + `unit`) from whether the request included a matching entry in `premiumOverride.premiumOverrides`.
51
51
  * @type {boolean}
52
52
  * @memberof PolicyPremiumItemClass
53
53
  */
@@ -27,6 +27,12 @@ export interface PremiumFormulaClass {
27
27
  * @memberof PremiumFormulaClass
28
28
  */
29
29
  'productVersionId': number;
30
+ /**
31
+ * Unique, immutable identifier for the Premium item. Stable across environments; use it instead of the numeric id in cross-service configuration.
32
+ * @type {string}
33
+ * @memberof PremiumFormulaClass
34
+ */
35
+ 'code': string;
30
36
  /**
31
37
  * Premium group name.
32
38
  * @type {string}