@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
@@ -345,7 +345,7 @@ export declare class LeadStatusesApi extends BaseAPI {
345
345
  * @throws {RequiredError}
346
346
  * @memberof LeadStatusesApi
347
347
  */
348
- createLeadStatus(requestParameters: LeadStatusesApiCreateLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadStatusResponseClass, any, {}>>;
348
+ createLeadStatus(requestParameters: LeadStatusesApiCreateLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadStatusResponseClass, any, {}, any>>;
349
349
  /**
350
350
  * Permanently deletes the lead status. Supply the unique id that was returned when you created the lead status and this will delete it. Deleting a lead status can have an impact on workflows, and it\'s crucial to ensure that no workflows are using the lead status that is being deleted. **Required Permissions** \"policy-management.products.delete\"
351
351
  * @summary Delete the lead status
@@ -354,7 +354,7 @@ export declare class LeadStatusesApi extends BaseAPI {
354
354
  * @throws {RequiredError}
355
355
  * @memberof LeadStatusesApi
356
356
  */
357
- deleteLeadStatus(requestParameters: LeadStatusesApiDeleteLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
357
+ deleteLeadStatus(requestParameters: LeadStatusesApiDeleteLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
358
358
  /**
359
359
  * Retrieves the details of the lead status that was previously created. Supply the unique lead status code that was returned when you created it and Emil Api will return the corresponding lead status information. **Required Permissions** \"policy-management.products.view\"
360
360
  * @summary Retrieve the lead status
@@ -363,7 +363,7 @@ export declare class LeadStatusesApi extends BaseAPI {
363
363
  * @throws {RequiredError}
364
364
  * @memberof LeadStatusesApi
365
365
  */
366
- getLeadStatus(requestParameters: LeadStatusesApiGetLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadStatusResponseClass, any, {}>>;
366
+ getLeadStatus(requestParameters: LeadStatusesApiGetLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadStatusResponseClass, any, {}, any>>;
367
367
  /**
368
368
  * Returns a list of lead statuses you have previously created. The lead statuses 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\"
369
369
  * @summary List lead statuses
@@ -372,7 +372,7 @@ export declare class LeadStatusesApi extends BaseAPI {
372
372
  * @throws {RequiredError}
373
373
  * @memberof LeadStatusesApi
374
374
  */
375
- listLeadStatuses(requestParameters?: LeadStatusesApiListLeadStatusesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadStatusesResponseClass, any, {}>>;
375
+ listLeadStatuses(requestParameters?: LeadStatusesApiListLeadStatusesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadStatusesResponseClass, any, {}, any>>;
376
376
  /**
377
377
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
378
378
  * @summary Update the lead status
@@ -381,5 +381,5 @@ export declare class LeadStatusesApi extends BaseAPI {
381
381
  * @throws {RequiredError}
382
382
  * @memberof LeadStatusesApi
383
383
  */
384
- updateLeadStatus(requestParameters: LeadStatusesApiUpdateLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadStatusResponseClass, any, {}>>;
384
+ updateLeadStatus(requestParameters: LeadStatusesApiUpdateLeadStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadStatusResponseClass, any, {}, any>>;
385
385
  }
@@ -107,7 +107,7 @@ var LeadStatusesApiAxiosParamCreator = function (configuration) {
107
107
  createLeadStatus: function (createLeadStatusRequestDto, 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 LeadStatusesApiAxiosParamCreator = 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 LeadStatusesApiAxiosParamCreator = function (configuration) {
156
159
  deleteLeadStatus: 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 LeadStatusesApiAxiosParamCreator = 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 LeadStatusesApiAxiosParamCreator = function (configuration) {
204
210
  getLeadStatus: function (code, 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 LeadStatusesApiAxiosParamCreator = 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 LeadStatusesApiAxiosParamCreator = function (configuration) {
258
267
  listLeadStatuses: 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 LeadStatusesApiAxiosParamCreator = 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 : {};
@@ -325,7 +335,7 @@ var LeadStatusesApiAxiosParamCreator = function (configuration) {
325
335
  updateLeadStatus: function (code, updateLeadStatusRequestDto, authorization, options) {
326
336
  if (options === void 0) { options = {}; }
327
337
  return __awaiter(_this, void 0, void 0, function () {
328
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
338
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
329
339
  return __generator(this, function (_a) {
330
340
  switch (_a.label) {
331
341
  case 0:
@@ -345,13 +355,16 @@ var LeadStatusesApiAxiosParamCreator = function (configuration) {
345
355
  localVarQueryParameter = {};
346
356
  // authentication bearer required
347
357
  // http bearer authentication required
348
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
358
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
359
+ // Only Authorization falls back to the configured token; an empty value is never sent.
360
+ ];
349
361
  case 1:
350
362
  // authentication bearer required
351
363
  // http bearer authentication required
352
364
  _a.sent();
353
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
365
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
366
+ if (authorizationValue) {
367
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
355
368
  }
356
369
  localVarHeaderParameter['Content-Type'] = 'application/json';
357
370
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -211,7 +211,7 @@ export declare class LeadVersionsApi extends BaseAPI {
211
211
  * @throws {RequiredError}
212
212
  * @memberof LeadVersionsApi
213
213
  */
214
- getLeadVersion(requestParameters: LeadVersionsApiGetLeadVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadVersionResponseClass, any, {}>>;
214
+ getLeadVersion(requestParameters: LeadVersionsApiGetLeadVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadVersionResponseClass, any, {}, any>>;
215
215
  /**
216
216
  * Returns a list of lead versions you have previously created. The lead versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
217
217
  * @summary List lead versions
@@ -220,5 +220,5 @@ export declare class LeadVersionsApi extends BaseAPI {
220
220
  * @throws {RequiredError}
221
221
  * @memberof LeadVersionsApi
222
222
  */
223
- listLeadVersions(requestParameters: LeadVersionsApiListLeadVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadVersionsResponseClass, any, {}>>;
223
+ listLeadVersions(requestParameters: LeadVersionsApiListLeadVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadVersionsResponseClass, any, {}, any>>;
224
224
  }
@@ -108,7 +108,7 @@ var LeadVersionsApiAxiosParamCreator = function (configuration) {
108
108
  getLeadVersion: function (code, version, 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:
@@ -129,13 +129,16 @@ var LeadVersionsApiAxiosParamCreator = function (configuration) {
129
129
  localVarQueryParameter = {};
130
130
  // authentication bearer required
131
131
  // http bearer authentication required
132
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
133
+ // Only Authorization falls back to the configured token; an empty value is never sent.
134
+ ];
133
135
  case 1:
134
136
  // authentication bearer required
135
137
  // http bearer authentication required
136
138
  _a.sent();
137
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
140
+ if (authorizationValue) {
141
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
139
142
  }
140
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
144
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -166,7 +169,7 @@ var LeadVersionsApiAxiosParamCreator = function (configuration) {
166
169
  listLeadVersions: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
167
170
  if (options === void 0) { options = {}; }
168
171
  return __awaiter(_this, void 0, void 0, function () {
169
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
172
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
170
173
  return __generator(this, function (_a) {
171
174
  switch (_a.label) {
172
175
  case 0:
@@ -210,8 +213,9 @@ var LeadVersionsApiAxiosParamCreator = function (configuration) {
210
213
  if (filters !== undefined) {
211
214
  localVarQueryParameter['filters'] = filters;
212
215
  }
213
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
214
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
217
+ if (authorizationValue) {
218
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
215
219
  }
216
220
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
217
221
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -91,7 +91,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
91
91
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
92
92
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
93
93
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
94
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
94
+ * @param {string} [search] Free-text search across the lead\&#39;s key fields: codes, status, product, account data (name, company, e-mail, address, phone), policy and insured-object data, bank and quote values. Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;account.lastName:Müller or search&#x3D;policyObjects.data.vin:WVW123. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
95
95
  * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
96
96
  * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
97
97
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -198,7 +198,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
198
198
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
199
199
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
200
200
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
201
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
201
+ * @param {string} [search] Free-text search across the lead\&#39;s key fields: codes, status, product, account data (name, company, e-mail, address, phone), policy and insured-object data, bank and quote values. Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;account.lastName:Müller or search&#x3D;policyObjects.data.vin:WVW123. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
202
202
  * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
203
203
  * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
204
204
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -305,7 +305,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
305
305
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
306
306
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
307
307
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
308
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
308
+ * @param {string} [search] Free-text search across the lead\&#39;s key fields: codes, status, product, account data (name, company, e-mail, address, phone), policy and insured-object data, bank and quote values. Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;account.lastName:Müller or search&#x3D;policyObjects.data.vin:WVW123. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
309
309
  * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
310
310
  * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
311
311
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -501,7 +501,7 @@ export interface LeadsApiListLeadsRequest {
501
501
  */
502
502
  readonly filter?: string;
503
503
  /**
504
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
504
+ * Free-text search across the lead\&#39;s key fields: codes, status, product, account data (name, company, e-mail, address, phone), policy and insured-object data, bank and quote values. Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;account.lastName:Müller or search&#x3D;policyObjects.data.vin:WVW123. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
505
505
  * @type {string}
506
506
  * @memberof LeadsApiListLeads
507
507
  */
@@ -615,7 +615,7 @@ export declare class LeadsApi extends BaseAPI {
615
615
  * @throws {RequiredError}
616
616
  * @memberof LeadsApi
617
617
  */
618
- cloneLead(requestParameters: LeadsApiCloneLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}>>;
618
+ cloneLead(requestParameters: LeadsApiCloneLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}, any>>;
619
619
  /**
620
620
  * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information. **Required Permissions** \"policy-management.leads.create\"
621
621
  * @summary Create the lead
@@ -624,7 +624,7 @@ export declare class LeadsApi extends BaseAPI {
624
624
  * @throws {RequiredError}
625
625
  * @memberof LeadsApi
626
626
  */
627
- createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}>>;
627
+ createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}, any>>;
628
628
  /**
629
629
  * This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'. **Required Permissions** \"policy-management.leads.create\"
630
630
  * @summary Create the lead asynchronously
@@ -633,7 +633,7 @@ export declare class LeadsApi extends BaseAPI {
633
633
  * @throws {RequiredError}
634
634
  * @memberof LeadsApi
635
635
  */
636
- createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadAsyncResponseClass, any, {}>>;
636
+ createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadAsyncResponseClass, any, {}, any>>;
637
637
  /**
638
638
  * This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response. **Required Permissions** \"policy-management.leads.create\"
639
639
  * @summary Create the lead
@@ -642,7 +642,7 @@ export declare class LeadsApi extends BaseAPI {
642
642
  * @throws {RequiredError}
643
643
  * @memberof LeadsApi
644
644
  */
645
- createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}>>;
645
+ createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any, {}, any>>;
646
646
  /**
647
647
  * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it. **Required Permissions** \"policy-management.leads.delete\"
648
648
  * @summary Delete the lead
@@ -651,7 +651,7 @@ export declare class LeadsApi extends BaseAPI {
651
651
  * @throws {RequiredError}
652
652
  * @memberof LeadsApi
653
653
  */
654
- deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
654
+ deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
655
655
  /**
656
656
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information. **Required Permissions** \"policy-management.leads.view\"
657
657
  * @summary Retrieve the lead
@@ -660,7 +660,7 @@ export declare class LeadsApi extends BaseAPI {
660
660
  * @throws {RequiredError}
661
661
  * @memberof LeadsApi
662
662
  */
663
- getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any, {}>>;
663
+ getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any, {}, any>>;
664
664
  /**
665
665
  * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.leads.view\"
666
666
  * @summary List leads
@@ -669,7 +669,7 @@ export declare class LeadsApi extends BaseAPI {
669
669
  * @throws {RequiredError}
670
670
  * @memberof LeadsApi
671
671
  */
672
- listLeads(requestParameters?: LeadsApiListLeadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadsResponseClass, any, {}>>;
672
+ listLeads(requestParameters?: LeadsApiListLeadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadsResponseClass, any, {}, any>>;
673
673
  /**
674
674
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.leads.update\"
675
675
  * @summary Patch the lead
@@ -678,7 +678,7 @@ export declare class LeadsApi extends BaseAPI {
678
678
  * @throws {RequiredError}
679
679
  * @memberof LeadsApi
680
680
  */
681
- patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchLeadResponseClass, any, {}>>;
681
+ patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchLeadResponseClass, any, {}, any>>;
682
682
  /**
683
683
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.leads.update\"
684
684
  * @summary Update the lead
@@ -687,7 +687,7 @@ export declare class LeadsApi extends BaseAPI {
687
687
  * @throws {RequiredError}
688
688
  * @memberof LeadsApi
689
689
  */
690
- updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}>>;
690
+ updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}, any>>;
691
691
  /**
692
692
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.leads.update\"
693
693
  * @summary Update the lead
@@ -696,5 +696,5 @@ export declare class LeadsApi extends BaseAPI {
696
696
  * @throws {RequiredError}
697
697
  * @memberof LeadsApi
698
698
  */
699
- updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}>>;
699
+ updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any, {}, any>>;
700
700
  }