@emilgroup/insurance-sdk 1.107.1-beta.119 → 1.107.1-beta.120

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 (87) hide show
  1. package/README.md +2 -2
  2. package/api/booking-funnel-versions-api.ts +4 -14
  3. package/api/booking-funnels-api.ts +12 -42
  4. package/api/commission-agreement-items-api.ts +10 -35
  5. package/api/commission-agreement-products-api.ts +10 -35
  6. package/api/commission-agreement-versions-api.ts +8 -28
  7. package/api/commission-agreements-api.ts +10 -35
  8. package/api/commission-recipients-api.ts +10 -35
  9. package/api/emil-functions-api.ts +22 -77
  10. package/api/insured-object-types-api.ts +2 -7
  11. package/api/insured-objects-api.ts +8 -28
  12. package/api/lead-statuses-api.ts +10 -35
  13. package/api/lead-versions-api.ts +4 -14
  14. package/api/leads-api.ts +20 -70
  15. package/api/named-ranges-api.ts +12 -42
  16. package/api/partner-links-api.ts +12 -42
  17. package/api/partner-roles-api.ts +10 -35
  18. package/api/policies-api.ts +34 -119
  19. package/api/premium-calculation-api.ts +2 -7
  20. package/api/premium-formulas-api.ts +12 -42
  21. package/api/product-configs-api.ts +12 -42
  22. package/api/product-factors-api.ts +14 -49
  23. package/api/product-fields-api.ts +14 -49
  24. package/api/product-versions-api.ts +4 -14
  25. package/api/products-api.ts +12 -42
  26. package/api/status-transition-rules-api.ts +12 -42
  27. package/base.ts +41 -188
  28. package/common.ts +2 -3
  29. package/configuration.ts +0 -20
  30. package/dist/api/booking-funnel-versions-api.d.ts +2 -2
  31. package/dist/api/booking-funnel-versions-api.js +13 -24
  32. package/dist/api/booking-funnels-api.d.ts +6 -6
  33. package/dist/api/booking-funnels-api.js +41 -80
  34. package/dist/api/commission-agreement-items-api.d.ts +5 -5
  35. package/dist/api/commission-agreement-items-api.js +33 -62
  36. package/dist/api/commission-agreement-products-api.d.ts +5 -5
  37. package/dist/api/commission-agreement-products-api.js +33 -62
  38. package/dist/api/commission-agreement-versions-api.d.ts +4 -4
  39. package/dist/api/commission-agreement-versions-api.js +26 -48
  40. package/dist/api/commission-agreements-api.d.ts +5 -5
  41. package/dist/api/commission-agreements-api.js +33 -62
  42. package/dist/api/commission-recipients-api.d.ts +5 -5
  43. package/dist/api/commission-recipients-api.js +34 -66
  44. package/dist/api/emil-functions-api.d.ts +11 -11
  45. package/dist/api/emil-functions-api.js +76 -150
  46. package/dist/api/health-check-api.d.ts +1 -1
  47. package/dist/api/insured-object-types-api.d.ts +1 -1
  48. package/dist/api/insured-object-types-api.js +6 -10
  49. package/dist/api/insured-objects-api.d.ts +4 -4
  50. package/dist/api/insured-objects-api.js +26 -48
  51. package/dist/api/lead-statuses-api.d.ts +5 -5
  52. package/dist/api/lead-statuses-api.js +34 -66
  53. package/dist/api/lead-versions-api.d.ts +2 -2
  54. package/dist/api/lead-versions-api.js +13 -24
  55. package/dist/api/leads-api.d.ts +10 -10
  56. package/dist/api/leads-api.js +68 -132
  57. package/dist/api/named-ranges-api.d.ts +6 -6
  58. package/dist/api/named-ranges-api.js +40 -76
  59. package/dist/api/partner-links-api.d.ts +6 -6
  60. package/dist/api/partner-links-api.js +40 -76
  61. package/dist/api/partner-roles-api.d.ts +5 -5
  62. package/dist/api/partner-roles-api.js +34 -66
  63. package/dist/api/policies-api.d.ts +17 -17
  64. package/dist/api/policies-api.js +113 -214
  65. package/dist/api/premium-calculation-api.d.ts +1 -1
  66. package/dist/api/premium-calculation-api.js +7 -14
  67. package/dist/api/premium-formulas-api.d.ts +6 -6
  68. package/dist/api/premium-formulas-api.js +41 -80
  69. package/dist/api/product-configs-api.d.ts +6 -6
  70. package/dist/api/product-configs-api.js +41 -80
  71. package/dist/api/product-factors-api.d.ts +7 -7
  72. package/dist/api/product-factors-api.js +45 -82
  73. package/dist/api/product-fields-api.d.ts +7 -7
  74. package/dist/api/product-fields-api.js +47 -90
  75. package/dist/api/product-versions-api.d.ts +2 -2
  76. package/dist/api/product-versions-api.js +13 -24
  77. package/dist/api/products-api.d.ts +6 -6
  78. package/dist/api/products-api.js +39 -72
  79. package/dist/api/status-transition-rules-api.d.ts +6 -6
  80. package/dist/api/status-transition-rules-api.js +40 -76
  81. package/dist/base.d.ts +0 -24
  82. package/dist/base.js +59 -192
  83. package/dist/common.d.ts +1 -1
  84. package/dist/common.js +0 -1
  85. package/dist/configuration.d.ts +0 -17
  86. package/dist/configuration.js +0 -2
  87. package/package.json +2 -2
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk@1.107.1-beta.119 --save
20
+ npm install @emilgroup/insurance-sdk@1.107.1-beta.120 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.107.1-beta.119
24
+ yarn add @emilgroup/insurance-sdk@1.107.1-beta.120
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -60,13 +60,8 @@ export const BookingFunnelVersionsApiAxiosParamCreator = function (configuration
60
60
  // http bearer authentication required
61
61
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
62
 
63
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
64
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
65
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
66
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
67
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
68
- if (authorizationValue || authorizationKeepEmpty) {
69
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
63
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
65
  }
71
66
 
72
67
 
@@ -145,13 +140,8 @@ export const BookingFunnelVersionsApiAxiosParamCreator = function (configuration
145
140
  localVarQueryParameter['filters'] = filters;
146
141
  }
147
142
 
148
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
149
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
150
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
151
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
152
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
153
- if (authorizationValue || authorizationKeepEmpty) {
154
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
143
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
155
145
  }
156
146
 
157
147
 
@@ -73,13 +73,8 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
77
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
78
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
79
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
80
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
81
- if (authorizationValue || authorizationKeepEmpty) {
82
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
83
78
  }
84
79
 
85
80
 
@@ -126,13 +121,8 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
126
121
  // http bearer authentication required
127
122
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
123
 
129
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
132
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
133
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
134
- if (authorizationValue || authorizationKeepEmpty) {
135
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
124
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
126
  }
137
127
 
138
128
 
@@ -176,13 +166,8 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
176
166
  // http bearer authentication required
177
167
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
168
 
179
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
180
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
181
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
182
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
183
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
184
- if (authorizationValue || authorizationKeepEmpty) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
171
  }
187
172
 
188
173
 
@@ -257,13 +242,8 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
257
242
  localVarQueryParameter['filters'] = filters;
258
243
  }
259
244
 
260
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
261
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
262
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
263
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
264
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
265
- if (authorizationValue || authorizationKeepEmpty) {
266
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
267
247
  }
268
248
 
269
249
 
@@ -309,13 +289,8 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
309
289
  // http bearer authentication required
310
290
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
311
291
 
312
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
313
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
314
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
315
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
316
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
317
- if (authorizationValue || authorizationKeepEmpty) {
318
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
292
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
294
  }
320
295
 
321
296
 
@@ -365,13 +340,8 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
365
340
  // http bearer authentication required
366
341
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
367
342
 
368
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
369
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
370
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
371
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
372
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
373
- if (authorizationValue || authorizationKeepEmpty) {
374
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
343
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
344
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
375
345
  }
376
346
 
377
347
 
@@ -73,13 +73,8 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
77
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
78
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
79
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
80
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
81
- if (authorizationValue || authorizationKeepEmpty) {
82
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
83
78
  }
84
79
 
85
80
 
@@ -126,13 +121,8 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
126
121
  // http bearer authentication required
127
122
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
123
 
129
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
132
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
133
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
134
- if (authorizationValue || authorizationKeepEmpty) {
135
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
124
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
126
  }
137
127
 
138
128
 
@@ -183,13 +173,8 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
183
173
  localVarQueryParameter['expand'] = expand;
184
174
  }
185
175
 
186
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
187
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
188
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
189
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
190
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
191
- if (authorizationValue || authorizationKeepEmpty) {
192
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
176
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
193
178
  }
194
179
 
195
180
 
@@ -264,13 +249,8 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
264
249
  localVarQueryParameter['filters'] = filters;
265
250
  }
266
251
 
267
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
268
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
269
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
270
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
271
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
272
- if (authorizationValue || authorizationKeepEmpty) {
273
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
252
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
274
254
  }
275
255
 
276
256
 
@@ -317,13 +297,8 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
317
297
  // http bearer authentication required
318
298
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
319
299
 
320
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
321
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
322
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
323
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
324
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
325
- if (authorizationValue || authorizationKeepEmpty) {
326
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
300
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
301
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
327
302
  }
328
303
 
329
304
 
@@ -73,13 +73,8 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
77
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
78
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
79
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
80
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
81
- if (authorizationValue || authorizationKeepEmpty) {
82
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
83
78
  }
84
79
 
85
80
 
@@ -126,13 +121,8 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
126
121
  // http bearer authentication required
127
122
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
123
 
129
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
132
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
133
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
134
- if (authorizationValue || authorizationKeepEmpty) {
135
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
124
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
126
  }
137
127
 
138
128
 
@@ -181,13 +171,8 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
181
171
  localVarQueryParameter['expand'] = expand;
182
172
  }
183
173
 
184
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
185
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
186
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
187
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
188
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
189
- if (authorizationValue || authorizationKeepEmpty) {
190
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
174
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
176
  }
192
177
 
193
178
 
@@ -262,13 +247,8 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
262
247
  localVarQueryParameter['filters'] = filters;
263
248
  }
264
249
 
265
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
266
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
267
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
268
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
269
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
270
- if (authorizationValue || authorizationKeepEmpty) {
271
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
250
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
252
  }
273
253
 
274
254
 
@@ -315,13 +295,8 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
315
295
  // http bearer authentication required
316
296
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
317
297
 
318
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
319
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
320
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
321
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
322
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
323
- if (authorizationValue || authorizationKeepEmpty) {
324
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
325
300
  }
326
301
 
327
302
 
@@ -69,13 +69,8 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
73
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
74
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
75
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
76
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
77
- if (authorizationValue || authorizationKeepEmpty) {
78
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
79
74
  }
80
75
 
81
76
 
@@ -122,13 +117,8 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
122
117
  // http bearer authentication required
123
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
124
119
 
125
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
128
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
129
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
130
- if (authorizationValue || authorizationKeepEmpty) {
131
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
121
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
132
122
  }
133
123
 
134
124
 
@@ -179,13 +169,8 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
179
169
  localVarQueryParameter['expand'] = expand;
180
170
  }
181
171
 
182
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
184
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
185
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
186
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
187
- if (authorizationValue || authorizationKeepEmpty) {
188
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
172
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
173
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
189
174
  }
190
175
 
191
176
 
@@ -260,13 +245,8 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
260
245
  localVarQueryParameter['filters'] = filters;
261
246
  }
262
247
 
263
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
264
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
265
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
266
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
267
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
268
- if (authorizationValue || authorizationKeepEmpty) {
269
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
248
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
249
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
270
250
  }
271
251
 
272
252
 
@@ -69,13 +69,8 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
73
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
74
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
75
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
76
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
77
- if (authorizationValue || authorizationKeepEmpty) {
78
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
79
74
  }
80
75
 
81
76
 
@@ -122,13 +117,8 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
122
117
  // http bearer authentication required
123
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
124
119
 
125
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
128
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
129
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
130
- if (authorizationValue || authorizationKeepEmpty) {
131
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
121
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
132
122
  }
133
123
 
134
124
 
@@ -177,13 +167,8 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
177
167
  localVarQueryParameter['expand'] = expand;
178
168
  }
179
169
 
180
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
181
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
182
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
183
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
184
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
185
- if (authorizationValue || authorizationKeepEmpty) {
186
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
172
  }
188
173
 
189
174
 
@@ -258,13 +243,8 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
258
243
  localVarQueryParameter['filters'] = filters;
259
244
  }
260
245
 
261
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
262
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
263
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
264
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
265
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
266
- if (authorizationValue || authorizationKeepEmpty) {
267
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
268
248
  }
269
249
 
270
250
 
@@ -311,13 +291,8 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
311
291
  // http bearer authentication required
312
292
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
313
293
 
314
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
315
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
316
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
317
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
318
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
319
- if (authorizationValue || authorizationKeepEmpty) {
320
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
321
296
  }
322
297
 
323
298
 
@@ -73,13 +73,8 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
77
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
78
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
79
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
80
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
81
- if (authorizationValue || authorizationKeepEmpty) {
82
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
83
78
  }
84
79
 
85
80
 
@@ -126,13 +121,8 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
126
121
  // http bearer authentication required
127
122
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
128
123
 
129
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
132
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
133
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
134
- if (authorizationValue || authorizationKeepEmpty) {
135
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
124
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
126
  }
137
127
 
138
128
 
@@ -176,13 +166,8 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
176
166
  // http bearer authentication required
177
167
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
168
 
179
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
180
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
181
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
182
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
183
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
184
- if (authorizationValue || authorizationKeepEmpty) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
171
  }
187
172
 
188
173
 
@@ -257,13 +242,8 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
257
242
  localVarQueryParameter['filters'] = filters;
258
243
  }
259
244
 
260
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
261
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
262
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
263
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
264
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
265
- if (authorizationValue || authorizationKeepEmpty) {
266
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
267
247
  }
268
248
 
269
249
 
@@ -310,13 +290,8 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
310
290
  // http bearer authentication required
311
291
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
312
292
 
313
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
314
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
315
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
316
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
317
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
318
- if (authorizationValue || authorizationKeepEmpty) {
319
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
293
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
294
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
320
295
  }
321
296
 
322
297