@emilgroup/accounting-sdk-node 1.32.1-beta.81 → 1.32.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/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/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-node@1.32.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk-node@1.32.1-beta.83 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.83
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -73,9 +73,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
// Only Authorization falls back to the configured token
|
|
77
|
-
|
|
78
|
-
|
|
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) {
|
|
79
82
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -123,9 +126,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
123
126
|
// http bearer authentication required
|
|
124
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
128
|
|
|
126
|
-
// Only Authorization falls back to the configured token
|
|
127
|
-
|
|
128
|
-
|
|
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) {
|
|
129
135
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
136
|
}
|
|
131
137
|
|
|
@@ -174,9 +180,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
174
180
|
// http bearer authentication required
|
|
175
181
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
176
182
|
|
|
177
|
-
// Only Authorization falls back to the configured token
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
184
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
185
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
186
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
187
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
188
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
180
189
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
190
|
}
|
|
182
191
|
|
|
@@ -217,9 +226,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
217
226
|
// http bearer authentication required
|
|
218
227
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
219
228
|
|
|
220
|
-
// Only Authorization falls back to the configured token
|
|
221
|
-
|
|
222
|
-
|
|
229
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
230
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
231
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
232
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
233
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
234
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
223
235
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
224
236
|
}
|
|
225
237
|
|
|
@@ -260,9 +272,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
260
272
|
// http bearer authentication required
|
|
261
273
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
262
274
|
|
|
263
|
-
// Only Authorization falls back to the configured token
|
|
264
|
-
|
|
265
|
-
|
|
275
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
276
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
277
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
278
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
279
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
280
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
266
281
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
267
282
|
}
|
|
268
283
|
|
|
@@ -303,9 +318,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
303
318
|
// http bearer authentication required
|
|
304
319
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
305
320
|
|
|
306
|
-
// Only Authorization falls back to the configured token
|
|
307
|
-
|
|
308
|
-
|
|
321
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
322
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
323
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
324
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
325
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
326
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
309
327
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
310
328
|
}
|
|
311
329
|
|
|
@@ -349,9 +367,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
349
367
|
// http bearer authentication required
|
|
350
368
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
351
369
|
|
|
352
|
-
// Only Authorization falls back to the configured token
|
|
353
|
-
|
|
354
|
-
|
|
370
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
371
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
372
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
373
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
374
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
375
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
355
376
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
356
377
|
}
|
|
357
378
|
|
|
@@ -399,9 +420,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
399
420
|
// http bearer authentication required
|
|
400
421
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
401
422
|
|
|
402
|
-
// Only Authorization falls back to the configured token
|
|
403
|
-
|
|
404
|
-
|
|
423
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
424
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
425
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
426
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
427
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
428
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
405
429
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
406
430
|
}
|
|
407
431
|
|
|
@@ -75,9 +75,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
75
75
|
// http bearer authentication required
|
|
76
76
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
77
77
|
|
|
78
|
-
// Only Authorization falls back to the configured token
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
79
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
80
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
81
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
82
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
83
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
81
84
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
82
85
|
}
|
|
83
86
|
|
|
@@ -124,9 +127,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
124
127
|
// http bearer authentication required
|
|
125
128
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
126
129
|
|
|
127
|
-
// Only Authorization falls back to the configured token
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
131
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
132
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
130
136
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
137
|
}
|
|
132
138
|
|
|
@@ -181,9 +187,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
181
187
|
localVarQueryParameter['expand'] = expand;
|
|
182
188
|
}
|
|
183
189
|
|
|
184
|
-
// Only Authorization falls back to the configured token
|
|
185
|
-
|
|
186
|
-
|
|
190
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
191
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
192
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
193
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
194
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
195
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
187
196
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
188
197
|
}
|
|
189
198
|
|
|
@@ -259,9 +268,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
259
268
|
localVarQueryParameter['filters'] = filters;
|
|
260
269
|
}
|
|
261
270
|
|
|
262
|
-
// Only Authorization falls back to the configured token
|
|
263
|
-
|
|
264
|
-
|
|
271
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
272
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
273
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
274
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
275
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
276
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
265
277
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
266
278
|
}
|
|
267
279
|
|
|
@@ -305,9 +317,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
305
317
|
// http bearer authentication required
|
|
306
318
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
307
319
|
|
|
308
|
-
// Only Authorization falls back to the configured token
|
|
309
|
-
|
|
310
|
-
|
|
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) {
|
|
311
326
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
312
327
|
}
|
|
313
328
|
|
|
@@ -78,9 +78,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
78
78
|
// http bearer authentication required
|
|
79
79
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
80
80
|
|
|
81
|
-
// Only Authorization falls back to the configured token
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
82
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
83
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
84
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
85
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
86
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
84
87
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
85
88
|
}
|
|
86
89
|
|
|
@@ -125,9 +128,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
125
128
|
// http bearer authentication required
|
|
126
129
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
127
130
|
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
132
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
133
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
134
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
136
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
131
137
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
138
|
}
|
|
133
139
|
|
|
@@ -172,9 +178,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
172
178
|
// http bearer authentication required
|
|
173
179
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
174
180
|
|
|
175
|
-
// Only Authorization falls back to the configured token
|
|
176
|
-
|
|
177
|
-
|
|
181
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
182
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
183
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
184
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
185
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
186
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
178
187
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
179
188
|
}
|
|
180
189
|
|
|
@@ -250,9 +259,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
250
259
|
localVarQueryParameter['filters'] = filters;
|
|
251
260
|
}
|
|
252
261
|
|
|
253
|
-
// Only Authorization falls back to the configured token
|
|
254
|
-
|
|
255
|
-
|
|
262
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
263
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
264
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
265
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
266
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
267
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
256
268
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
257
269
|
}
|
|
258
270
|
|
|
@@ -328,9 +340,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
328
340
|
localVarQueryParameter['filters'] = filters;
|
|
329
341
|
}
|
|
330
342
|
|
|
331
|
-
// Only Authorization falls back to the configured token
|
|
332
|
-
|
|
333
|
-
|
|
343
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
344
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
345
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
346
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
347
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
348
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
334
349
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
335
350
|
}
|
|
336
351
|
|
|
@@ -406,9 +421,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
406
421
|
localVarQueryParameter['filters'] = filters;
|
|
407
422
|
}
|
|
408
423
|
|
|
409
|
-
// Only Authorization falls back to the configured token
|
|
410
|
-
|
|
411
|
-
|
|
424
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
425
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
426
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
427
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
428
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
429
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
412
430
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
413
431
|
}
|
|
414
432
|
|
|
@@ -460,9 +478,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
460
478
|
// http bearer authentication required
|
|
461
479
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
462
480
|
|
|
463
|
-
// Only Authorization falls back to the configured token
|
|
464
|
-
|
|
465
|
-
|
|
481
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
482
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
483
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
484
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
485
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
486
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
466
487
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
467
488
|
}
|
|
468
489
|
|
|
@@ -513,9 +534,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
513
534
|
// http bearer authentication required
|
|
514
535
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
515
536
|
|
|
516
|
-
// Only Authorization falls back to the configured token
|
|
517
|
-
|
|
518
|
-
|
|
537
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
538
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
539
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
540
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
541
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
542
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
519
543
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
520
544
|
}
|
|
521
545
|
|
|
@@ -71,9 +71,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
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
|
|
|
@@ -121,9 +124,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
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
|
|
|
@@ -175,9 +181,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
175
181
|
localVarQueryParameter['expand'] = expand;
|
|
176
182
|
}
|
|
177
183
|
|
|
178
|
-
// Only Authorization falls back to the configured token
|
|
179
|
-
|
|
180
|
-
|
|
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) {
|
|
181
190
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
191
|
}
|
|
183
192
|
|
|
@@ -253,9 +262,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
253
262
|
localVarQueryParameter['filters'] = filters;
|
|
254
263
|
}
|
|
255
264
|
|
|
256
|
-
// Only Authorization falls back to the configured token
|
|
257
|
-
|
|
258
|
-
|
|
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) {
|
|
259
271
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
260
272
|
}
|
|
261
273
|
|
|
@@ -303,9 +315,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
303
315
|
// http bearer authentication required
|
|
304
316
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
305
317
|
|
|
306
|
-
// Only Authorization falls back to the configured token
|
|
307
|
-
|
|
308
|
-
|
|
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) {
|
|
309
324
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
310
325
|
}
|
|
311
326
|
|
|
@@ -71,9 +71,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
71
71
|
localVarQueryParameter['expand'] = expand;
|
|
72
72
|
}
|
|
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
|
|
|
@@ -149,9 +152,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
149
152
|
localVarQueryParameter['filters'] = filters;
|
|
150
153
|
}
|
|
151
154
|
|
|
152
|
-
// Only Authorization falls back to the configured token
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
156
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
157
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
158
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
159
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
160
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
155
161
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
156
162
|
}
|
|
157
163
|
|
package/api/number-ranges-api.ts
CHANGED
|
@@ -67,9 +67,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
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 NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
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 NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
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 NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
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
|
|