@emilgroup/accounting-sdk 1.34.1-beta.82 → 1.34.1-beta.83
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.
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +48 -24
- package/api/booking-entries-api.ts +30 -15
- package/api/commission-account-mappings-api.ts +48 -24
- package/api/financial-accounts-api.ts +30 -15
- package/api/financial-transactions-api.ts +12 -6
- package/api/number-ranges-api.ts +24 -12
- package/api/personal-accounts-api.ts +24 -12
- package/api/product-account-mappings-api.ts +72 -36
- package/base.ts +14 -0
- package/dist/api/accounting-configs-api.js +88 -56
- package/dist/api/booking-entries-api.js +51 -33
- package/dist/api/commission-account-mappings-api.js +82 -53
- package/dist/api/financial-accounts-api.js +51 -33
- package/dist/api/financial-transactions-api.js +18 -12
- package/dist/api/number-ranges-api.js +40 -26
- package/dist/api/personal-accounts-api.js +40 -26
- package/dist/api/product-account-mappings-api.js +128 -82
- package/dist/base.js +15 -1
- package/dist/models/accounting-config-data-class.d.ts +6 -0
- package/dist/models/accounting-config-data-dto.d.ts +6 -0
- package/models/accounting-config-data-class.ts +6 -0
- package/models/accounting-config-data-dto.ts +6 -0
- package/package.json +1 -1
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/accounting-sdk@1.34.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk@1.34.1-beta.83 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk@1.34.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk@1.34.1-beta.83
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -69,9 +69,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
// Only Authorization falls back to the configured token
|
|
73
|
-
|
|
74
|
-
|
|
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) {
|
|
75
78
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
79
|
}
|
|
77
80
|
|
|
@@ -119,9 +122,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
119
122
|
// http bearer authentication required
|
|
120
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
124
|
|
|
122
|
-
// Only Authorization falls back to the configured token
|
|
123
|
-
|
|
124
|
-
|
|
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) {
|
|
125
131
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
132
|
}
|
|
127
133
|
|
|
@@ -169,9 +175,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
169
175
|
// http bearer authentication required
|
|
170
176
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
171
177
|
|
|
172
|
-
// Only Authorization falls back to the configured token
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
179
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
180
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
181
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
182
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
183
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
175
184
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
176
185
|
}
|
|
177
186
|
|
|
@@ -212,9 +221,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
212
221
|
// http bearer authentication required
|
|
213
222
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
223
|
|
|
215
|
-
// Only Authorization falls back to the configured token
|
|
216
|
-
|
|
217
|
-
|
|
224
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
225
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
226
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
227
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
228
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
229
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
218
230
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
219
231
|
}
|
|
220
232
|
|
|
@@ -255,9 +267,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
255
267
|
// http bearer authentication required
|
|
256
268
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
257
269
|
|
|
258
|
-
// Only Authorization falls back to the configured token
|
|
259
|
-
|
|
260
|
-
|
|
270
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
271
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
272
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
273
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
274
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
275
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
261
276
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
262
277
|
}
|
|
263
278
|
|
|
@@ -298,9 +313,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
298
313
|
// http bearer authentication required
|
|
299
314
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
300
315
|
|
|
301
|
-
// Only Authorization falls back to the configured token
|
|
302
|
-
|
|
303
|
-
|
|
316
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
317
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
318
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
319
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
320
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
321
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
304
322
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
305
323
|
}
|
|
306
324
|
|
|
@@ -344,9 +362,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
344
362
|
// http bearer authentication required
|
|
345
363
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
346
364
|
|
|
347
|
-
// Only Authorization falls back to the configured token
|
|
348
|
-
|
|
349
|
-
|
|
365
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
366
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
367
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
368
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
369
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
370
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
350
371
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
351
372
|
}
|
|
352
373
|
|
|
@@ -394,9 +415,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
394
415
|
// http bearer authentication required
|
|
395
416
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
396
417
|
|
|
397
|
-
// Only Authorization falls back to the configured token
|
|
398
|
-
|
|
399
|
-
|
|
418
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
419
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
420
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
421
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
422
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
423
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
400
424
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
401
425
|
}
|
|
402
426
|
|
|
@@ -71,9 +71,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
71
71
|
// http bearer authentication required
|
|
72
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
73
|
|
|
74
|
-
// Only Authorization falls back to the configured token
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
75
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
76
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
77
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
78
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
79
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
77
80
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
81
|
}
|
|
79
82
|
|
|
@@ -120,9 +123,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
120
123
|
// http bearer authentication required
|
|
121
124
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
122
125
|
|
|
123
|
-
// Only Authorization falls back to the configured token
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
127
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
128
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
129
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
130
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
131
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
126
132
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
133
|
}
|
|
128
134
|
|
|
@@ -177,9 +183,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
177
183
|
localVarQueryParameter['expand'] = expand;
|
|
178
184
|
}
|
|
179
185
|
|
|
180
|
-
// Only Authorization falls back to the configured token
|
|
181
|
-
|
|
182
|
-
|
|
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) {
|
|
183
192
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
193
|
}
|
|
185
194
|
|
|
@@ -255,9 +264,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
255
264
|
localVarQueryParameter['filters'] = filters;
|
|
256
265
|
}
|
|
257
266
|
|
|
258
|
-
// Only Authorization falls back to the configured token
|
|
259
|
-
|
|
260
|
-
|
|
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) {
|
|
261
273
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
262
274
|
}
|
|
263
275
|
|
|
@@ -301,9 +313,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
301
313
|
// http bearer authentication required
|
|
302
314
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
303
315
|
|
|
304
|
-
// Only Authorization falls back to the configured token
|
|
305
|
-
|
|
306
|
-
|
|
316
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
317
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
318
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
319
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
320
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
321
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
307
322
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
323
|
}
|
|
309
324
|
|
|
@@ -74,9 +74,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
74
74
|
// http bearer authentication required
|
|
75
75
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76
76
|
|
|
77
|
-
// Only Authorization falls back to the configured token
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
78
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
79
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
80
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
81
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
82
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
80
83
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
81
84
|
}
|
|
82
85
|
|
|
@@ -121,9 +124,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
121
124
|
// http bearer authentication required
|
|
122
125
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
126
|
|
|
124
|
-
// Only Authorization falls back to the configured token
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
128
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
130
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
132
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
127
133
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
134
|
}
|
|
129
135
|
|
|
@@ -168,9 +174,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
168
174
|
// http bearer authentication required
|
|
169
175
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
176
|
|
|
171
|
-
// Only Authorization falls back to the configured token
|
|
172
|
-
|
|
173
|
-
|
|
177
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
178
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
179
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
180
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
181
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
182
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
174
183
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
175
184
|
}
|
|
176
185
|
|
|
@@ -246,9 +255,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
246
255
|
localVarQueryParameter['filters'] = filters;
|
|
247
256
|
}
|
|
248
257
|
|
|
249
|
-
// Only Authorization falls back to the configured token
|
|
250
|
-
|
|
251
|
-
|
|
258
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
259
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
260
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
261
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
262
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
263
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
252
264
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
253
265
|
}
|
|
254
266
|
|
|
@@ -324,9 +336,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
324
336
|
localVarQueryParameter['filters'] = filters;
|
|
325
337
|
}
|
|
326
338
|
|
|
327
|
-
// Only Authorization falls back to the configured token
|
|
328
|
-
|
|
329
|
-
|
|
339
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
340
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
341
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
342
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
343
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
344
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
330
345
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
331
346
|
}
|
|
332
347
|
|
|
@@ -402,9 +417,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
402
417
|
localVarQueryParameter['filters'] = filters;
|
|
403
418
|
}
|
|
404
419
|
|
|
405
|
-
// Only Authorization falls back to the configured token
|
|
406
|
-
|
|
407
|
-
|
|
420
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
421
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
422
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
423
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
424
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
425
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
408
426
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
409
427
|
}
|
|
410
428
|
|
|
@@ -456,9 +474,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
456
474
|
// http bearer authentication required
|
|
457
475
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
458
476
|
|
|
459
|
-
// Only Authorization falls back to the configured token
|
|
460
|
-
|
|
461
|
-
|
|
477
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
478
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
479
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
480
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
481
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
482
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
462
483
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
463
484
|
}
|
|
464
485
|
|
|
@@ -509,9 +530,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
509
530
|
// http bearer authentication required
|
|
510
531
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
511
532
|
|
|
512
|
-
// Only Authorization falls back to the configured token
|
|
513
|
-
|
|
514
|
-
|
|
533
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
534
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
535
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
536
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
537
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
538
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
515
539
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
516
540
|
}
|
|
517
541
|
|
|
@@ -67,9 +67,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
// Only Authorization falls back to the configured token
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
71
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
72
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
73
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
75
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
73
76
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
77
|
}
|
|
75
78
|
|
|
@@ -117,9 +120,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
117
120
|
// http bearer authentication required
|
|
118
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
122
|
|
|
120
|
-
// Only Authorization falls back to the configured token
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
124
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
125
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
126
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
127
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
128
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
123
129
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
130
|
}
|
|
125
131
|
|
|
@@ -171,9 +177,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
171
177
|
localVarQueryParameter['expand'] = expand;
|
|
172
178
|
}
|
|
173
179
|
|
|
174
|
-
// Only Authorization falls back to the configured token
|
|
175
|
-
|
|
176
|
-
|
|
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) {
|
|
177
186
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
187
|
}
|
|
179
188
|
|
|
@@ -249,9 +258,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
249
258
|
localVarQueryParameter['filters'] = filters;
|
|
250
259
|
}
|
|
251
260
|
|
|
252
|
-
// Only Authorization falls back to the configured token
|
|
253
|
-
|
|
254
|
-
|
|
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) {
|
|
255
267
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
256
268
|
}
|
|
257
269
|
|
|
@@ -299,9 +311,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
299
311
|
// http bearer authentication required
|
|
300
312
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
301
313
|
|
|
302
|
-
// Only Authorization falls back to the configured token
|
|
303
|
-
|
|
304
|
-
|
|
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) {
|
|
305
320
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
306
321
|
}
|
|
307
322
|
|
|
@@ -67,9 +67,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
67
67
|
localVarQueryParameter['expand'] = expand;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
// Only Authorization falls back to the configured token
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
71
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
72
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
73
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
75
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
73
76
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
77
|
}
|
|
75
78
|
|
|
@@ -145,9 +148,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
145
148
|
localVarQueryParameter['filters'] = filters;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
|
-
// Only Authorization falls back to the configured token
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
152
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
153
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
154
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
155
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
156
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
151
157
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
152
158
|
}
|
|
153
159
|
|
package/api/number-ranges-api.ts
CHANGED
|
@@ -63,9 +63,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
63
63
|
// http bearer authentication required
|
|
64
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
65
|
|
|
66
|
-
// Only Authorization falls back to the configured token
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
67
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
68
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
69
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
70
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
71
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
69
72
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
73
|
}
|
|
71
74
|
|
|
@@ -113,9 +116,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
113
116
|
// http bearer authentication required
|
|
114
117
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
115
118
|
|
|
116
|
-
// Only Authorization falls back to the configured token
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
120
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
121
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
122
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
123
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
124
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
119
125
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
126
|
}
|
|
121
127
|
|
|
@@ -167,9 +173,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
167
173
|
localVarQueryParameter['expand'] = expand;
|
|
168
174
|
}
|
|
169
175
|
|
|
170
|
-
// Only Authorization falls back to the configured token
|
|
171
|
-
|
|
172
|
-
|
|
176
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
177
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
178
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
179
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
180
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
181
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
173
182
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
174
183
|
}
|
|
175
184
|
|
|
@@ -245,9 +254,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
245
254
|
localVarQueryParameter['filters'] = filters;
|
|
246
255
|
}
|
|
247
256
|
|
|
248
|
-
// Only Authorization falls back to the configured token
|
|
249
|
-
|
|
250
|
-
|
|
257
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
258
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
259
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
260
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
261
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
262
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
251
263
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
252
264
|
}
|
|
253
265
|
|