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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.openapi-generator/FILES +5 -2
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -4
  4. package/api/booking-funnels-api.ts +24 -12
  5. package/api/commission-agreement-items-api.ts +20 -10
  6. package/api/commission-agreement-products-api.ts +20 -10
  7. package/api/commission-agreement-versions-api.ts +16 -8
  8. package/api/commission-agreements-api.ts +20 -10
  9. package/api/commission-recipients-api.ts +20 -10
  10. package/api/emil-functions-api.ts +44 -22
  11. package/api/health-check-api.ts +6 -10
  12. package/api/insured-object-types-api.ts +4 -2
  13. package/api/insured-objects-api.ts +16 -8
  14. package/api/lead-statuses-api.ts +20 -10
  15. package/api/lead-versions-api.ts +8 -4
  16. package/api/leads-api.ts +44 -24
  17. package/api/named-ranges-api.ts +24 -12
  18. package/api/partner-links-api.ts +24 -12
  19. package/api/partner-roles-api.ts +20 -10
  20. package/api/policies-api.ts +100 -66
  21. package/api/premium-calculation-api.ts +171 -0
  22. package/api/premium-formulas-api.ts +24 -12
  23. package/api/product-configs-api.ts +24 -12
  24. package/api/product-factors-api.ts +28 -14
  25. package/api/product-fields-api.ts +28 -14
  26. package/api/product-versions-api.ts +8 -4
  27. package/api/products-api.ts +24 -12
  28. package/api/status-transition-rules-api.ts +24 -12
  29. package/api.ts +2 -0
  30. package/common.ts +3 -2
  31. package/dist/api/booking-funnel-versions-api.d.ts +2 -2
  32. package/dist/api/booking-funnel-versions-api.js +11 -7
  33. package/dist/api/booking-funnels-api.d.ts +6 -6
  34. package/dist/api/booking-funnels-api.js +39 -23
  35. package/dist/api/commission-agreement-items-api.d.ts +5 -5
  36. package/dist/api/commission-agreement-items-api.js +29 -18
  37. package/dist/api/commission-agreement-products-api.d.ts +5 -5
  38. package/dist/api/commission-agreement-products-api.js +29 -18
  39. package/dist/api/commission-agreement-versions-api.d.ts +4 -4
  40. package/dist/api/commission-agreement-versions-api.js +22 -14
  41. package/dist/api/commission-agreements-api.d.ts +5 -5
  42. package/dist/api/commission-agreements-api.js +29 -18
  43. package/dist/api/commission-recipients-api.d.ts +5 -5
  44. package/dist/api/commission-recipients-api.js +32 -19
  45. package/dist/api/emil-functions-api.d.ts +11 -11
  46. package/dist/api/emil-functions-api.js +74 -43
  47. package/dist/api/health-check-api.d.ts +7 -8
  48. package/dist/api/health-check-api.js +4 -4
  49. package/dist/api/insured-object-types-api.d.ts +1 -1
  50. package/dist/api/insured-object-types-api.js +4 -3
  51. package/dist/api/insured-objects-api.d.ts +4 -4
  52. package/dist/api/insured-objects-api.js +22 -14
  53. package/dist/api/lead-statuses-api.d.ts +5 -5
  54. package/dist/api/lead-statuses-api.js +32 -19
  55. package/dist/api/lead-versions-api.d.ts +2 -2
  56. package/dist/api/lead-versions-api.js +11 -7
  57. package/dist/api/leads-api.d.ts +14 -14
  58. package/dist/api/leads-api.js +67 -41
  59. package/dist/api/named-ranges-api.d.ts +6 -6
  60. package/dist/api/named-ranges-api.js +36 -22
  61. package/dist/api/partner-links-api.d.ts +6 -6
  62. package/dist/api/partner-links-api.js +36 -22
  63. package/dist/api/partner-roles-api.d.ts +5 -5
  64. package/dist/api/partner-roles-api.js +32 -19
  65. package/dist/api/policies-api.d.ts +49 -49
  66. package/dist/api/policies-api.js +129 -90
  67. package/dist/api/premium-calculation-api.d.ts +97 -0
  68. package/dist/api/premium-calculation-api.js +231 -0
  69. package/dist/api/premium-formulas-api.d.ts +6 -6
  70. package/dist/api/premium-formulas-api.js +39 -23
  71. package/dist/api/product-configs-api.d.ts +6 -6
  72. package/dist/api/product-configs-api.js +39 -23
  73. package/dist/api/product-factors-api.d.ts +7 -7
  74. package/dist/api/product-factors-api.js +37 -24
  75. package/dist/api/product-fields-api.d.ts +7 -7
  76. package/dist/api/product-fields-api.js +43 -26
  77. package/dist/api/product-versions-api.d.ts +2 -2
  78. package/dist/api/product-versions-api.js +11 -7
  79. package/dist/api/products-api.d.ts +6 -6
  80. package/dist/api/products-api.js +33 -21
  81. package/dist/api/status-transition-rules-api.d.ts +6 -6
  82. package/dist/api/status-transition-rules-api.js +36 -22
  83. package/dist/api.d.ts +1 -0
  84. package/dist/api.js +1 -0
  85. package/dist/common.d.ts +1 -1
  86. package/dist/common.js +1 -0
  87. package/dist/models/calculate-premium-response-class.d.ts +39 -0
  88. package/dist/models/calculated-policy-objects-class.d.ts +25 -0
  89. package/dist/models/claim-config-class.d.ts +7 -0
  90. package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
  91. package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
  92. package/dist/models/create-product-request-dto.d.ts +12 -0
  93. package/dist/models/create-product-version-request-dto.d.ts +6 -0
  94. package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
  95. package/dist/models/index.d.ts +4 -2
  96. package/dist/models/index.js +4 -2
  97. package/dist/models/partner-class.d.ts +6 -0
  98. package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
  99. package/dist/models/policy-object-dto.d.ts +1 -1
  100. package/dist/models/policy-premium-item-class.d.ts +1 -1
  101. package/dist/models/premium-formula-class.d.ts +6 -0
  102. package/dist/models/regulation-subtype-class.d.ts +30 -0
  103. package/dist/models/regulation-subtype-class.js +15 -0
  104. package/dist/models/regulation-subtypes-class.d.ts +37 -0
  105. package/dist/models/regulation-subtypes-class.js +15 -0
  106. package/models/calculate-premium-response-class.ts +45 -0
  107. package/models/calculated-policy-objects-class.ts +31 -0
  108. package/models/claim-config-class.ts +7 -0
  109. package/models/create-draft-policy-request-dto.ts +1 -1
  110. package/models/create-premium-formula-request-dto.ts +6 -0
  111. package/models/create-product-request-dto.ts +12 -0
  112. package/models/create-product-version-request-dto.ts +6 -0
  113. package/models/get-draft-policy-request-dto.ts +1 -1
  114. package/models/index.ts +4 -2
  115. package/models/partner-class.ts +6 -0
  116. package/models/patch-draft-policy-request-dto.ts +2 -2
  117. package/models/policy-object-dto.ts +1 -1
  118. package/models/policy-premium-item-class.ts +1 -1
  119. package/models/premium-formula-class.ts +6 -0
  120. package/models/regulation-subtype-class.ts +36 -0
  121. package/models/regulation-subtypes-class.ts +43 -0
  122. package/package.json +2 -2
  123. package/dist/models/inline-response200.d.ts +0 -54
  124. package/dist/models/inline-response503.d.ts +0 -54
  125. package/models/inline-response200.ts +0 -48
  126. package/models/inline-response503.ts +0 -48
  127. /package/dist/models/{inline-response200.js → calculate-premium-response-class.js} +0 -0
  128. /package/dist/models/{inline-response503.js → calculated-policy-objects-class.js} +0 -0
@@ -108,7 +108,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
108
108
  calculateProductTariffQuote: function (productVersionId, restCalculateProductTariffQuoteRequestDto, authorization, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -128,13 +128,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
128
128
  localVarQueryParameter = {};
129
129
  // authentication bearer required
130
130
  // http bearer authentication required
131
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
132
+ // Only Authorization falls back to the configured token; an empty value is never sent.
133
+ ];
132
134
  case 1:
133
135
  // authentication bearer required
134
136
  // http bearer authentication required
135
137
  _a.sent();
136
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
139
+ if (authorizationValue) {
140
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
138
141
  }
139
142
  localVarHeaderParameter['Content-Type'] = 'application/json';
140
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -162,7 +165,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
162
165
  createProductConfig: function (slug, productVersionId, file, authorization, options) {
163
166
  if (options === void 0) { options = {}; }
164
167
  return __awaiter(_this, void 0, void 0, function () {
165
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
168
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
166
169
  return __generator(this, function (_a) {
167
170
  switch (_a.label) {
168
171
  case 0:
@@ -184,13 +187,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
184
187
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
185
188
  // authentication bearer required
186
189
  // http bearer authentication required
187
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
190
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
191
+ // Only Authorization falls back to the configured token; an empty value is never sent.
192
+ ];
188
193
  case 1:
189
194
  // authentication bearer required
190
195
  // http bearer authentication required
191
196
  _a.sent();
192
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
193
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
197
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
198
+ if (authorizationValue) {
199
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
194
200
  }
195
201
  if (slug !== undefined) {
196
202
  localVarFormParams.append('slug', slug);
@@ -225,7 +231,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
225
231
  getProductConfig: function (code, authorization, options) {
226
232
  if (options === void 0) { options = {}; }
227
233
  return __awaiter(_this, void 0, void 0, function () {
228
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
234
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
229
235
  return __generator(this, function (_a) {
230
236
  switch (_a.label) {
231
237
  case 0:
@@ -243,13 +249,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
243
249
  localVarQueryParameter = {};
244
250
  // authentication bearer required
245
251
  // http bearer authentication required
246
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
252
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
253
+ // Only Authorization falls back to the configured token; an empty value is never sent.
254
+ ];
247
255
  case 1:
248
256
  // authentication bearer required
249
257
  // http bearer authentication required
250
258
  _a.sent();
251
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
252
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
259
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
+ if (authorizationValue) {
261
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
253
262
  }
254
263
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
255
264
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -273,7 +282,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
273
282
  getProductConfigTariffs: function (productVersionId, authorization, options) {
274
283
  if (options === void 0) { options = {}; }
275
284
  return __awaiter(_this, void 0, void 0, function () {
276
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
285
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
277
286
  return __generator(this, function (_a) {
278
287
  switch (_a.label) {
279
288
  case 0:
@@ -291,13 +300,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
291
300
  localVarQueryParameter = {};
292
301
  // authentication bearer required
293
302
  // http bearer authentication required
294
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
303
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
304
+ // Only Authorization falls back to the configured token; an empty value is never sent.
305
+ ];
295
306
  case 1:
296
307
  // authentication bearer required
297
308
  // http bearer authentication required
298
309
  _a.sent();
299
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
300
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
311
+ if (authorizationValue) {
312
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
301
313
  }
302
314
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
303
315
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -327,7 +339,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
327
339
  listProductConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
328
340
  if (options === void 0) { options = {}; }
329
341
  return __awaiter(_this, void 0, void 0, function () {
330
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
331
343
  return __generator(this, function (_a) {
332
344
  switch (_a.label) {
333
345
  case 0:
@@ -368,8 +380,9 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
368
380
  if (filters !== undefined) {
369
381
  localVarQueryParameter['filters'] = filters;
370
382
  }
371
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
372
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
383
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
384
+ if (authorizationValue) {
385
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
373
386
  }
374
387
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
375
388
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -395,7 +408,7 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
395
408
  updateProductConfig: function (code, file, authorization, slug, options) {
396
409
  if (options === void 0) { options = {}; }
397
410
  return __awaiter(_this, void 0, void 0, function () {
398
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
411
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
399
412
  return __generator(this, function (_a) {
400
413
  switch (_a.label) {
401
414
  case 0:
@@ -416,13 +429,16 @@ var ProductConfigsApiAxiosParamCreator = function (configuration) {
416
429
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
417
430
  // authentication bearer required
418
431
  // http bearer authentication required
419
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
432
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
433
+ // Only Authorization falls back to the configured token; an empty value is never sent.
434
+ ];
420
435
  case 1:
421
436
  // authentication bearer required
422
437
  // http bearer authentication required
423
438
  _a.sent();
424
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
425
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
439
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
440
+ if (authorizationValue) {
441
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
426
442
  }
427
443
  if (file !== undefined) {
428
444
  localVarFormParams.append('file', file);
@@ -496,7 +496,7 @@ export declare class ProductFactorsApi extends BaseAPI {
496
496
  * @throws {RequiredError}
497
497
  * @memberof ProductFactorsApi
498
498
  */
499
- deleteProductFactor(requestParameters: ProductFactorsApiDeleteProductFactorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
499
+ deleteProductFactor(requestParameters: ProductFactorsApiDeleteProductFactorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
500
500
  /**
501
501
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information. **Required Permissions** \"policy-management.products.view\"
502
502
  * @summary Retrieve the product factor
@@ -505,7 +505,7 @@ export declare class ProductFactorsApi extends BaseAPI {
505
505
  * @throws {RequiredError}
506
506
  * @memberof ProductFactorsApi
507
507
  */
508
- getProductFactor(requestParameters: ProductFactorsApiGetProductFactorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFactorResponseClass, any, {}>>;
508
+ getProductFactor(requestParameters: ProductFactorsApiGetProductFactorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFactorResponseClass, any, {}, any>>;
509
509
  /**
510
510
  * Get the value corresponding to a specific product factor. **Required Permissions** \"policy-management.products.view\"
511
511
  * @summary Get product factor value
@@ -514,7 +514,7 @@ export declare class ProductFactorsApi extends BaseAPI {
514
514
  * @throws {RequiredError}
515
515
  * @memberof ProductFactorsApi
516
516
  */
517
- getProductFactorValue(requestParameters: ProductFactorsApiGetProductFactorValueRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFactorValueResponseClass, any, {}>>;
517
+ getProductFactorValue(requestParameters: ProductFactorsApiGetProductFactorValueRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFactorValueResponseClass, any, {}, any>>;
518
518
  /**
519
519
  * Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds). **Required Permissions** \"policy-management.products.view\"
520
520
  * @summary List product factors for version
@@ -523,7 +523,7 @@ export declare class ProductFactorsApi extends BaseAPI {
523
523
  * @throws {RequiredError}
524
524
  * @memberof ProductFactorsApi
525
525
  */
526
- getProductFactorsForVersion(requestParameters: ProductFactorsApiGetProductFactorsForVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFactorsForVersionResponseClass, any, {}>>;
526
+ getProductFactorsForVersion(requestParameters: ProductFactorsApiGetProductFactorsForVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFactorsForVersionResponseClass, any, {}, any>>;
527
527
  /**
528
528
  * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
529
529
  * @summary List product factors
@@ -532,7 +532,7 @@ export declare class ProductFactorsApi extends BaseAPI {
532
532
  * @throws {RequiredError}
533
533
  * @memberof ProductFactorsApi
534
534
  */
535
- listProductFactors(requestParameters?: ProductFactorsApiListProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductFactorsResponseClass, any, {}>>;
535
+ listProductFactors(requestParameters?: ProductFactorsApiListProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductFactorsResponseClass, any, {}, any>>;
536
536
  /**
537
537
  * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first. **Required Permissions** \"policy-management.products.create\"
538
538
  * @summary Upload product factors
@@ -541,7 +541,7 @@ export declare class ProductFactorsApi extends BaseAPI {
541
541
  * @throws {RequiredError}
542
542
  * @memberof ProductFactorsApi
543
543
  */
544
- storeProductFactors(requestParameters?: ProductFactorsApiStoreProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StoreProductFactorsResponseClass, any, {}>>;
544
+ storeProductFactors(requestParameters?: ProductFactorsApiStoreProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StoreProductFactorsResponseClass, any, {}, any>>;
545
545
  /**
546
546
  * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value. **Required Permissions** \"policy-management.products.create\"
547
547
  * @summary Validate product factors
@@ -550,5 +550,5 @@ export declare class ProductFactorsApi extends BaseAPI {
550
550
  * @throws {RequiredError}
551
551
  * @memberof ProductFactorsApi
552
552
  */
553
- validateProductFactors(requestParameters?: ProductFactorsApiValidateProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupedProductFactorsResponseClass, any, {}>>;
553
+ validateProductFactors(requestParameters?: ProductFactorsApiValidateProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupedProductFactorsResponseClass, any, {}, any>>;
554
554
  }
@@ -106,7 +106,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
106
106
  deleteProductFactor: function (id, authorization, options) {
107
107
  if (options === void 0) { options = {}; }
108
108
  return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
110
110
  return __generator(this, function (_a) {
111
111
  switch (_a.label) {
112
112
  case 0:
@@ -124,13 +124,16 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
139
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -156,7 +159,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
156
159
  getProductFactor: function (id, id2, authorization, expand, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -187,8 +190,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
187
190
  if (expand !== undefined) {
188
191
  localVarQueryParameter['expand'] = expand;
189
192
  }
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
193
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
194
+ if (authorizationValue) {
195
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
196
  }
193
197
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
198
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -215,7 +219,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
215
219
  getProductFactorValue: function (productVersionId, label, key, name, authorization, options) {
216
220
  if (options === void 0) { options = {}; }
217
221
  return __awaiter(_this, void 0, void 0, function () {
218
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
222
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
219
223
  return __generator(this, function (_a) {
220
224
  switch (_a.label) {
221
225
  case 0:
@@ -255,8 +259,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
255
259
  if (name !== undefined) {
256
260
  localVarQueryParameter['name'] = name;
257
261
  }
258
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
259
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
262
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
263
+ if (authorizationValue) {
264
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
260
265
  }
261
266
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
262
267
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -282,7 +287,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
282
287
  getProductFactorsForVersion: function (productVersionId, values, authorization, forPublic, options) {
283
288
  if (options === void 0) { options = {}; }
284
289
  return __awaiter(_this, void 0, void 0, function () {
285
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
290
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
286
291
  return __generator(this, function (_a) {
287
292
  switch (_a.label) {
288
293
  case 0:
@@ -315,8 +320,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
315
320
  if (forPublic !== undefined) {
316
321
  localVarQueryParameter['forPublic'] = forPublic;
317
322
  }
318
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
319
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
323
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
324
+ if (authorizationValue) {
325
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
320
326
  }
321
327
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
322
328
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -346,7 +352,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
346
352
  listProductFactors: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
347
353
  if (options === void 0) { options = {}; }
348
354
  return __awaiter(_this, void 0, void 0, function () {
349
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
355
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
350
356
  return __generator(this, function (_a) {
351
357
  switch (_a.label) {
352
358
  case 0:
@@ -387,8 +393,9 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
387
393
  if (filters !== undefined) {
388
394
  localVarQueryParameter['filters'] = filters;
389
395
  }
390
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
391
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
396
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
397
+ if (authorizationValue) {
398
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
392
399
  }
393
400
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
394
401
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -413,7 +420,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
413
420
  storeProductFactors: function (authorization, productVersionId, factors, options) {
414
421
  if (options === void 0) { options = {}; }
415
422
  return __awaiter(_this, void 0, void 0, function () {
416
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
423
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
417
424
  return __generator(this, function (_a) {
418
425
  switch (_a.label) {
419
426
  case 0:
@@ -429,13 +436,16 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
429
436
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
430
437
  // authentication bearer required
431
438
  // http bearer authentication required
432
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
439
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
440
+ // Only Authorization falls back to the configured token; an empty value is never sent.
441
+ ];
433
442
  case 1:
434
443
  // authentication bearer required
435
444
  // http bearer authentication required
436
445
  _a.sent();
437
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
438
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
446
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
447
+ if (authorizationValue) {
448
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
439
449
  }
440
450
  if (productVersionId !== undefined) {
441
451
  localVarFormParams.append('productVersionId', productVersionId);
@@ -467,7 +477,7 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
467
477
  validateProductFactors: function (authorization, factors, options) {
468
478
  if (options === void 0) { options = {}; }
469
479
  return __awaiter(_this, void 0, void 0, function () {
470
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
480
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
471
481
  return __generator(this, function (_a) {
472
482
  switch (_a.label) {
473
483
  case 0:
@@ -483,13 +493,16 @@ var ProductFactorsApiAxiosParamCreator = function (configuration) {
483
493
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
484
494
  // authentication bearer required
485
495
  // http bearer authentication required
486
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
496
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
497
+ // Only Authorization falls back to the configured token; an empty value is never sent.
498
+ ];
487
499
  case 1:
488
500
  // authentication bearer required
489
501
  // http bearer authentication required
490
502
  _a.sent();
491
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
492
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
503
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
504
+ if (authorizationValue) {
505
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
493
506
  }
494
507
  if (factors !== undefined) {
495
508
  localVarFormParams.append('factors', factors);
@@ -494,7 +494,7 @@ export declare class ProductFieldsApi extends BaseAPI {
494
494
  * @throws {RequiredError}
495
495
  * @memberof ProductFieldsApi
496
496
  */
497
- createProductField(requestParameters: ProductFieldsApiCreateProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductFieldResponseClass, any, {}>>;
497
+ createProductField(requestParameters: ProductFieldsApiCreateProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductFieldResponseClass, any, {}, any>>;
498
498
  /**
499
499
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it. **Required Permissions** \"policy-management.products.delete\"
500
500
  * @summary Delete the product
@@ -503,7 +503,7 @@ export declare class ProductFieldsApi extends BaseAPI {
503
503
  * @throws {RequiredError}
504
504
  * @memberof ProductFieldsApi
505
505
  */
506
- deleteProductField(requestParameters: ProductFieldsApiDeleteProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
506
+ deleteProductField(requestParameters: ProductFieldsApiDeleteProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
507
507
  /**
508
508
  * Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information. **Required Permissions** \"policy-management.products.view\"
509
509
  * @summary Retrieve the product field
@@ -512,7 +512,7 @@ export declare class ProductFieldsApi extends BaseAPI {
512
512
  * @throws {RequiredError}
513
513
  * @memberof ProductFieldsApi
514
514
  */
515
- getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFieldResponseClass, any, {}>>;
515
+ getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductFieldResponseClass, any, {}, any>>;
516
516
  /**
517
517
  * Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
518
518
  * @summary List product field types
@@ -521,7 +521,7 @@ export declare class ProductFieldsApi extends BaseAPI {
521
521
  * @throws {RequiredError}
522
522
  * @memberof ProductFieldsApi
523
523
  */
524
- listProductFieldTypes(requestParameters?: ProductFieldsApiListProductFieldTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductFieldTypesResponseClass, any, {}>>;
524
+ listProductFieldTypes(requestParameters?: ProductFieldsApiListProductFieldTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductFieldTypesResponseClass, any, {}, any>>;
525
525
  /**
526
526
  * Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.products.view\"
527
527
  * @summary List product fields
@@ -530,7 +530,7 @@ export declare class ProductFieldsApi extends BaseAPI {
530
530
  * @throws {RequiredError}
531
531
  * @memberof ProductFieldsApi
532
532
  */
533
- listProductFields(requestParameters?: ProductFieldsApiListProductFieldsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductFieldsResponseClass, any, {}>>;
533
+ listProductFields(requestParameters?: ProductFieldsApiListProductFieldsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductFieldsResponseClass, any, {}, any>>;
534
534
  /**
535
535
  * Order of the product field is mostly used for display for both the product and policy.This function will swap the order of two product fields, resulting in the two fields swapping their place in the list, be it on product or policy page. **Required Permissions** \"policy-management.products.update\"
536
536
  * @summary Swaps product fields order
@@ -539,7 +539,7 @@ export declare class ProductFieldsApi extends BaseAPI {
539
539
  * @throws {RequiredError}
540
540
  * @memberof ProductFieldsApi
541
541
  */
542
- swapProductFieldsOrder(requestParameters: ProductFieldsApiSwapProductFieldsOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EmptyResponseClass, any, {}>>;
542
+ swapProductFieldsOrder(requestParameters: ProductFieldsApiSwapProductFieldsOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EmptyResponseClass, any, {}, any>>;
543
543
  /**
544
544
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
545
545
  * @summary Update the product
@@ -548,5 +548,5 @@ export declare class ProductFieldsApi extends BaseAPI {
548
548
  * @throws {RequiredError}
549
549
  * @memberof ProductFieldsApi
550
550
  */
551
- updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateProductFieldResponseClass, any, {}>>;
551
+ updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateProductFieldResponseClass, any, {}, any>>;
552
552
  }