@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
@@ -79,8 +79,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
79
79
  // http bearer authentication required
80
80
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
81
 
82
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
83
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
82
+ // Only Authorization falls back to the configured token; an empty value is never sent.
83
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
84
+ if (authorizationValue) {
85
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
84
86
  }
85
87
 
86
88
 
@@ -126,8 +128,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
126
128
  // http bearer authentication required
127
129
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
130
 
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ // Only Authorization falls back to the configured token; an empty value is never sent.
132
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
133
+ if (authorizationValue) {
134
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
135
  }
132
136
 
133
137
 
@@ -174,8 +178,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
174
178
  // http bearer authentication required
175
179
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
176
180
 
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
183
+ if (authorizationValue) {
184
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
179
185
  }
180
186
 
181
187
 
@@ -219,8 +225,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
219
225
  // http bearer authentication required
220
226
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
227
 
222
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
223
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ // Only Authorization falls back to the configured token; an empty value is never sent.
229
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
230
+ if (authorizationValue) {
231
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
224
232
  }
225
233
 
226
234
 
@@ -267,8 +275,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
267
275
  // http bearer authentication required
268
276
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
269
277
 
270
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
278
+ // Only Authorization falls back to the configured token; an empty value is never sent.
279
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
280
+ if (authorizationValue) {
281
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
272
282
  }
273
283
 
274
284
 
@@ -315,8 +325,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
315
325
  // http bearer authentication required
316
326
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
317
327
 
318
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
319
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
328
+ // Only Authorization falls back to the configured token; an empty value is never sent.
329
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
330
+ if (authorizationValue) {
331
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
320
332
  }
321
333
 
322
334
 
@@ -360,8 +372,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
360
372
  // http bearer authentication required
361
373
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
362
374
 
363
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
364
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
375
+ // Only Authorization falls back to the configured token; an empty value is never sent.
376
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
377
+ if (authorizationValue) {
378
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
365
379
  }
366
380
 
367
381
 
@@ -401,8 +415,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
401
415
  // http bearer authentication required
402
416
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
403
417
 
404
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
405
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
418
+ // Only Authorization falls back to the configured token; an empty value is never sent.
419
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
420
+ if (authorizationValue) {
421
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
406
422
  }
407
423
 
408
424
 
@@ -477,8 +493,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
477
493
  localVarQueryParameter['filters'] = filters;
478
494
  }
479
495
 
480
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
481
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
496
+ // Only Authorization falls back to the configured token; an empty value is never sent.
497
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
498
+ if (authorizationValue) {
499
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
482
500
  }
483
501
 
484
502
 
@@ -525,8 +543,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
525
543
  // http bearer authentication required
526
544
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
527
545
 
528
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
529
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
546
+ // Only Authorization falls back to the configured token; an empty value is never sent.
547
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
548
+ if (authorizationValue) {
549
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
530
550
  }
531
551
 
532
552
 
@@ -576,8 +596,10 @@ export const EmilFunctionsApiAxiosParamCreator = function (configuration?: Confi
576
596
  // http bearer authentication required
577
597
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
578
598
 
579
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
580
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
599
+ // Only Authorization falls back to the configured token; an empty value is never sent.
600
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
601
+ if (authorizationValue) {
602
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
581
603
  }
582
604
 
583
605
 
@@ -20,10 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { InlineResponse200 } from '../models';
25
- // @ts-ignore
26
- import { InlineResponse503 } from '../models';
27
23
  // URLSearchParams not necessarily used
28
24
  // @ts-ignore
29
25
  import { URL, URLSearchParams } from 'url';
@@ -35,7 +31,7 @@ const FormData = require('form-data');
35
31
  export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
36
32
  return {
37
33
  /**
38
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
34
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
39
35
  * @summary Health Check
40
36
  * @param {*} [options] Override http request option.
41
37
  * @throws {RequiredError}
@@ -77,12 +73,12 @@ export const HealthCheckApiFp = function(configuration?: Configuration) {
77
73
  const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
78
74
  return {
79
75
  /**
80
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
76
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
81
77
  * @summary Health Check
82
78
  * @param {*} [options] Override http request option.
83
79
  * @throws {RequiredError}
84
80
  */
85
- async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
81
+ async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
86
82
  const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
87
83
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
88
84
  },
@@ -97,12 +93,12 @@ export const HealthCheckApiFactory = function (configuration?: Configuration, ba
97
93
  const localVarFp = HealthCheckApiFp(configuration)
98
94
  return {
99
95
  /**
100
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
96
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
101
97
  * @summary Health Check
102
98
  * @param {*} [options] Override http request option.
103
99
  * @throws {RequiredError}
104
100
  */
105
- check(options?: any): AxiosPromise<InlineResponse200> {
101
+ check(options?: any): AxiosPromise<void> {
106
102
  return localVarFp.check(options).then((request) => request(axios, basePath));
107
103
  },
108
104
  };
@@ -116,7 +112,7 @@ export const HealthCheckApiFactory = function (configuration?: Configuration, ba
116
112
  */
117
113
  export class HealthCheckApi extends BaseAPI {
118
114
  /**
119
- * Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
115
+ * Returns the health status of the insuranceservice service. This endpoint is used to monitor the operational status of the insuranceservice service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
120
116
  * @summary Health Check
121
117
  * @param {*} [options] Override http request option.
122
118
  * @throws {RequiredError}
@@ -93,8 +93,10 @@ export const InsuredObjectTypesApiAxiosParamCreator = function (configuration?:
93
93
  localVarQueryParameter['filters'] = filters;
94
94
  }
95
95
 
96
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
96
+ // Only Authorization falls back to the configured token; an empty value is never sent.
97
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
98
+ if (authorizationValue) {
99
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
98
100
  }
99
101
 
100
102
 
@@ -67,8 +67,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token; an empty value is never sent.
71
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
+ if (authorizationValue) {
73
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
74
  }
73
75
 
74
76
 
@@ -115,8 +117,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
115
117
  // http bearer authentication required
116
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
119
 
118
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ // Only Authorization falls back to the configured token; an empty value is never sent.
121
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
122
+ if (authorizationValue) {
123
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
124
  }
121
125
 
122
126
 
@@ -165,8 +169,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
165
169
  localVarQueryParameter['expand'] = expand;
166
170
  }
167
171
 
168
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
172
+ // Only Authorization falls back to the configured token; an empty value is never sent.
173
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
174
+ if (authorizationValue) {
175
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
176
  }
171
177
 
172
178
 
@@ -241,8 +247,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
241
247
  localVarQueryParameter['filters'] = filters;
242
248
  }
243
249
 
244
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ // Only Authorization falls back to the configured token; an empty value is never sent.
251
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
246
254
  }
247
255
 
248
256
 
@@ -73,8 +73,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ // Only Authorization falls back to the configured token; an empty value is never sent.
77
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
+ if (authorizationValue) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
80
  }
79
81
 
80
82
 
@@ -121,8 +123,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
121
123
  // http bearer authentication required
122
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
125
 
124
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ // Only Authorization falls back to the configured token; an empty value is never sent.
127
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
+ if (authorizationValue) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
130
  }
127
131
 
128
132
 
@@ -166,8 +170,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
166
170
  // http bearer authentication required
167
171
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
172
 
169
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
+ // Only Authorization falls back to the configured token; an empty value is never sent.
174
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
175
+ if (authorizationValue) {
176
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
171
177
  }
172
178
 
173
179
 
@@ -242,8 +248,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
242
248
  localVarQueryParameter['filters'] = filters;
243
249
  }
244
250
 
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ // Only Authorization falls back to the configured token; an empty value is never sent.
252
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
253
+ if (authorizationValue) {
254
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
255
  }
248
256
 
249
257
 
@@ -290,8 +298,10 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
290
298
  // http bearer authentication required
291
299
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
292
300
 
293
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
294
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ // Only Authorization falls back to the configured token; an empty value is never sent.
302
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
303
+ if (authorizationValue) {
304
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
295
305
  }
296
306
 
297
307
 
@@ -68,8 +68,10 @@ export const LeadVersionsApiAxiosParamCreator = function (configuration?: Config
68
68
  // http bearer authentication required
69
69
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
70
 
71
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
71
+ // Only Authorization falls back to the configured token; an empty value is never sent.
72
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
73
+ if (authorizationValue) {
74
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
73
75
  }
74
76
 
75
77
 
@@ -148,8 +150,10 @@ export const LeadVersionsApiAxiosParamCreator = function (configuration?: Config
148
150
  localVarQueryParameter['filters'] = filters;
149
151
  }
150
152
 
151
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
152
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
153
+ // Only Authorization falls back to the configured token; an empty value is never sent.
154
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
155
+ if (authorizationValue) {
156
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
153
157
  }
154
158
 
155
159
 
package/api/leads-api.ts CHANGED
@@ -85,8 +85,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
85
85
  // http bearer authentication required
86
86
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
87
87
 
88
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
89
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
88
+ // Only Authorization falls back to the configured token; an empty value is never sent.
89
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
90
+ if (authorizationValue) {
91
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
90
92
  }
91
93
 
92
94
 
@@ -132,8 +134,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
132
134
  // http bearer authentication required
133
135
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
134
136
 
135
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
+ // Only Authorization falls back to the configured token; an empty value is never sent.
138
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
139
+ if (authorizationValue) {
140
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
137
141
  }
138
142
 
139
143
 
@@ -179,8 +183,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
179
183
  // http bearer authentication required
180
184
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
181
185
 
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ // Only Authorization falls back to the configured token; an empty value is never sent.
187
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
 
186
192
 
@@ -226,8 +232,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
226
232
  // http bearer authentication required
227
233
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
228
234
 
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ // Only Authorization falls back to the configured token; an empty value is never sent.
236
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
+ if (authorizationValue) {
238
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
239
  }
232
240
 
233
241
 
@@ -274,8 +282,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
274
282
  // http bearer authentication required
275
283
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
276
284
 
277
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
278
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
285
+ // Only Authorization falls back to the configured token; an empty value is never sent.
286
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
287
+ if (authorizationValue) {
288
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
279
289
  }
280
290
 
281
291
 
@@ -324,8 +334,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
324
334
  localVarQueryParameter['expand'] = expand;
325
335
  }
326
336
 
327
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
328
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
337
+ // Only Authorization falls back to the configured token; an empty value is never sent.
338
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
339
+ if (authorizationValue) {
340
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
329
341
  }
330
342
 
331
343
 
@@ -346,7 +358,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
346
358
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
347
359
  * @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.
348
360
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
349
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
361
+ * @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.
350
362
  * @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.
351
363
  * @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.
352
364
  * @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.
@@ -400,8 +412,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
400
412
  localVarQueryParameter['filters'] = filters;
401
413
  }
402
414
 
403
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
404
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
415
+ // Only Authorization falls back to the configured token; an empty value is never sent.
416
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
417
+ if (authorizationValue) {
418
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
405
419
  }
406
420
 
407
421
 
@@ -448,8 +462,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
448
462
  // http bearer authentication required
449
463
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
450
464
 
451
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
452
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
465
+ // Only Authorization falls back to the configured token; an empty value is never sent.
466
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
467
+ if (authorizationValue) {
468
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
453
469
  }
454
470
 
455
471
 
@@ -499,8 +515,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
499
515
  // http bearer authentication required
500
516
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
501
517
 
502
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
503
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
518
+ // Only Authorization falls back to the configured token; an empty value is never sent.
519
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
520
+ if (authorizationValue) {
521
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
504
522
  }
505
523
 
506
524
 
@@ -550,8 +568,10 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
550
568
  // http bearer authentication required
551
569
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
552
570
 
553
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
554
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
571
+ // Only Authorization falls back to the configured token; an empty value is never sent.
572
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
573
+ if (authorizationValue) {
574
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
555
575
  }
556
576
 
557
577
 
@@ -659,7 +679,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
659
679
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
660
680
  * @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.
661
681
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
662
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
682
+ * @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.
663
683
  * @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.
664
684
  * @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.
665
685
  * @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.
@@ -794,7 +814,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
794
814
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
795
815
  * @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.
796
816
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
797
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
817
+ * @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.
798
818
  * @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.
799
819
  * @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.
800
820
  * @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.
@@ -1018,7 +1038,7 @@ export interface LeadsApiListLeadsRequest {
1018
1038
  readonly filter?: string
1019
1039
 
1020
1040
  /**
1021
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1041
+ * 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.
1022
1042
  * @type {string}
1023
1043
  * @memberof LeadsApiListLeads
1024
1044
  */