@emilgroup/accounting-sdk 1.34.1-beta.82 → 1.34.1-beta.84
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/.openapi-generator/FILES +2 -0
- 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 +7 -0
- package/dist/models/accounting-config-data-dto.d.ts +7 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/personal-account-range-class.d.ts +42 -0
- package/dist/models/personal-account-range-class.js +21 -0
- package/dist/models/personal-account-range-dto.d.ts +42 -0
- package/dist/models/personal-account-range-dto.js +21 -0
- package/models/accounting-config-data-class.ts +7 -0
- package/models/accounting-config-data-dto.ts +7 -0
- package/models/index.ts +2 -0
- package/models/personal-account-range-class.ts +51 -0
- package/models/personal-account-range-dto.ts +51 -0
- package/package.json +1 -1
|
@@ -63,9 +63,12 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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 PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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 PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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 PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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
|
|
|
@@ -90,9 +90,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
90
90
|
// http bearer authentication required
|
|
91
91
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
92
92
|
|
|
93
|
-
// Only Authorization falls back to the configured token
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
94
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
95
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
96
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
97
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
98
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
96
99
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
97
100
|
}
|
|
98
101
|
|
|
@@ -141,9 +144,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
141
144
|
// http bearer authentication required
|
|
142
145
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
143
146
|
|
|
144
|
-
// Only Authorization falls back to the configured token
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
148
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
149
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
150
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
151
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
152
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
147
153
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
148
154
|
}
|
|
149
155
|
|
|
@@ -188,9 +194,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
188
194
|
// http bearer authentication required
|
|
189
195
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
190
196
|
|
|
191
|
-
// Only Authorization falls back to the configured token
|
|
192
|
-
|
|
193
|
-
|
|
197
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
198
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
199
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
200
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
201
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
202
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
194
203
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
195
204
|
}
|
|
196
205
|
|
|
@@ -243,9 +252,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
243
252
|
// http bearer authentication required
|
|
244
253
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
245
254
|
|
|
246
|
-
// Only Authorization falls back to the configured token
|
|
247
|
-
|
|
248
|
-
|
|
255
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
256
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
257
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
258
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
259
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
260
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
249
261
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
250
262
|
}
|
|
251
263
|
|
|
@@ -290,9 +302,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
290
302
|
// http bearer authentication required
|
|
291
303
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
292
304
|
|
|
293
|
-
// Only Authorization falls back to the configured token
|
|
294
|
-
|
|
295
|
-
|
|
305
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
306
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
307
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
308
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
309
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
310
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
296
311
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
297
312
|
}
|
|
298
313
|
|
|
@@ -341,9 +356,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
341
356
|
// http bearer authentication required
|
|
342
357
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
343
358
|
|
|
344
|
-
// Only Authorization falls back to the configured token
|
|
345
|
-
|
|
346
|
-
|
|
359
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
360
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
361
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
362
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
363
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
364
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
347
365
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
348
366
|
}
|
|
349
367
|
|
|
@@ -419,9 +437,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
419
437
|
localVarQueryParameter['filters'] = filters;
|
|
420
438
|
}
|
|
421
439
|
|
|
422
|
-
// Only Authorization falls back to the configured token
|
|
423
|
-
|
|
424
|
-
|
|
440
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
441
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
442
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
443
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
444
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
445
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
425
446
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
426
447
|
}
|
|
427
448
|
|
|
@@ -497,9 +518,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
497
518
|
localVarQueryParameter['filters'] = filters;
|
|
498
519
|
}
|
|
499
520
|
|
|
500
|
-
// Only Authorization falls back to the configured token
|
|
501
|
-
|
|
502
|
-
|
|
521
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
522
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
523
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
524
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
525
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
526
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
503
527
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
504
528
|
}
|
|
505
529
|
|
|
@@ -559,9 +583,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
559
583
|
// http bearer authentication required
|
|
560
584
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
561
585
|
|
|
562
|
-
// Only Authorization falls back to the configured token
|
|
563
|
-
|
|
564
|
-
|
|
586
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
587
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
588
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
589
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
590
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
591
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
565
592
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
566
593
|
}
|
|
567
594
|
|
|
@@ -616,9 +643,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
616
643
|
// http bearer authentication required
|
|
617
644
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
618
645
|
|
|
619
|
-
// Only Authorization falls back to the configured token
|
|
620
|
-
|
|
621
|
-
|
|
646
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
647
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
648
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
649
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
650
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
651
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
622
652
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
623
653
|
}
|
|
624
654
|
|
|
@@ -669,9 +699,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
669
699
|
// http bearer authentication required
|
|
670
700
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
671
701
|
|
|
672
|
-
// Only Authorization falls back to the configured token
|
|
673
|
-
|
|
674
|
-
|
|
702
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
703
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
704
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
705
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
706
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
707
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
675
708
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
676
709
|
}
|
|
677
710
|
|
|
@@ -730,9 +763,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
730
763
|
// http bearer authentication required
|
|
731
764
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
732
765
|
|
|
733
|
-
// Only Authorization falls back to the configured token
|
|
734
|
-
|
|
735
|
-
|
|
766
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
767
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
768
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
769
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
770
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
771
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
736
772
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
737
773
|
}
|
|
738
774
|
|
package/base.ts
CHANGED
|
@@ -120,6 +120,15 @@ export class BaseAPI {
|
|
|
120
120
|
this.loadTokenData();
|
|
121
121
|
|
|
122
122
|
if (configuration) {
|
|
123
|
+
// Two accounts in one browser share APP_TOKEN: never take the token or session account saved for
|
|
124
|
+
// another account. The mode stays (an app naming its account keeps its session). Saved with the next refresh.
|
|
125
|
+
const ownUser = configuration.username;
|
|
126
|
+
const storedUser = this.tokenData.username;
|
|
127
|
+
if (ownUser && storedUser && ownUser.toLowerCase() !== storedUser.toLowerCase()) {
|
|
128
|
+
delete this.tokenData.accessToken;
|
|
129
|
+
delete this.tokenData.sub;
|
|
130
|
+
this.tokenData.username = ownUser;
|
|
131
|
+
}
|
|
123
132
|
const { accessToken } = this.tokenData;
|
|
124
133
|
this.configuration = configuration;
|
|
125
134
|
this.basePath = configuration.basePath || this.basePath;
|
|
@@ -434,8 +443,13 @@ export class BaseAPI {
|
|
|
434
443
|
this.applyTokenReply(reply);
|
|
435
444
|
this.storeTokenData(this.tokenData);
|
|
436
445
|
|
|
446
|
+
// The limit is for refreshes that do not help; one that worked starts the count again.
|
|
447
|
+
// Not awaited, so a failed retry reaches the app as the same axios error as before.
|
|
437
448
|
return axios.request({
|
|
438
449
|
...this.withCurrentAuth(originalConfig),
|
|
450
|
+
}).then((retried) => {
|
|
451
|
+
_retry_count = 0;
|
|
452
|
+
return retried;
|
|
439
453
|
});
|
|
440
454
|
} catch (_error) {
|
|
441
455
|
if (_error.response && _error.response.data) {
|
|
@@ -103,9 +103,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
|
|
@@ -121,14 +122,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
124
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
-
// Only Authorization falls back to the configured token
|
|
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.
|
|
125
127
|
];
|
|
126
128
|
case 1:
|
|
127
129
|
// authentication bearer required
|
|
128
130
|
// http bearer authentication required
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
132
136
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
137
|
}
|
|
134
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -155,9 +159,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
155
159
|
createAndEnableSubledgerFromFile: function (file, authorization, options) {
|
|
156
160
|
if (options === void 0) { options = {}; }
|
|
157
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
161
166
|
case 0:
|
|
162
167
|
// verify required parameter 'file' is not null or undefined
|
|
163
168
|
(0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
|
|
@@ -174,14 +179,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
174
179
|
// authentication bearer required
|
|
175
180
|
// http bearer authentication required
|
|
176
181
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
177
|
-
// Only Authorization falls back to the configured token
|
|
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.
|
|
178
184
|
];
|
|
179
185
|
case 1:
|
|
180
186
|
// authentication bearer required
|
|
181
187
|
// http bearer authentication required
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
185
193
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
186
194
|
}
|
|
187
195
|
if (file !== undefined) {
|
|
@@ -209,9 +217,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
209
217
|
exportAccountingConfig: function (authorization, options) {
|
|
210
218
|
if (options === void 0) { options = {}; }
|
|
211
219
|
return __awaiter(_this, void 0, void 0, function () {
|
|
212
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
213
|
-
|
|
214
|
-
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
221
|
+
var _a;
|
|
222
|
+
return __generator(this, function (_b) {
|
|
223
|
+
switch (_b.label) {
|
|
215
224
|
case 0:
|
|
216
225
|
localVarPath = "/accountingservice/v1/subledger/config/export";
|
|
217
226
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -225,14 +234,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
225
234
|
// authentication bearer required
|
|
226
235
|
// http bearer authentication required
|
|
227
236
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
228
|
-
// Only Authorization falls back to the configured token
|
|
237
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
238
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
229
239
|
];
|
|
230
240
|
case 1:
|
|
231
241
|
// authentication bearer required
|
|
232
242
|
// http bearer authentication required
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
243
|
+
_b.sent();
|
|
244
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
245
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
246
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
247
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
236
248
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
237
249
|
}
|
|
238
250
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -256,9 +268,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
256
268
|
getAccountingCategories: function (authorization, options) {
|
|
257
269
|
if (options === void 0) { options = {}; }
|
|
258
270
|
return __awaiter(_this, void 0, void 0, function () {
|
|
259
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
260
|
-
|
|
261
|
-
|
|
271
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
272
|
+
var _a;
|
|
273
|
+
return __generator(this, function (_b) {
|
|
274
|
+
switch (_b.label) {
|
|
262
275
|
case 0:
|
|
263
276
|
localVarPath = "/accountingservice/v1/subledger/categories";
|
|
264
277
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -272,14 +285,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
272
285
|
// authentication bearer required
|
|
273
286
|
// http bearer authentication required
|
|
274
287
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
275
|
-
// Only Authorization falls back to the configured token
|
|
288
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
289
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
276
290
|
];
|
|
277
291
|
case 1:
|
|
278
292
|
// authentication bearer required
|
|
279
293
|
// http bearer authentication required
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
294
|
+
_b.sent();
|
|
295
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
296
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
297
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
298
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
283
299
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
284
300
|
}
|
|
285
301
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -303,9 +319,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
303
319
|
getActivationSnapshot: function (authorization, options) {
|
|
304
320
|
if (options === void 0) { options = {}; }
|
|
305
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
306
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
307
|
-
|
|
308
|
-
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
323
|
+
var _a;
|
|
324
|
+
return __generator(this, function (_b) {
|
|
325
|
+
switch (_b.label) {
|
|
309
326
|
case 0:
|
|
310
327
|
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
311
328
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -319,14 +336,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
319
336
|
// authentication bearer required
|
|
320
337
|
// http bearer authentication required
|
|
321
338
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
322
|
-
// Only Authorization falls back to the configured token
|
|
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.
|
|
323
341
|
];
|
|
324
342
|
case 1:
|
|
325
343
|
// authentication bearer required
|
|
326
344
|
// http bearer authentication required
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
345
|
+
_b.sent();
|
|
346
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
347
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
348
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
349
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
330
350
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
331
351
|
}
|
|
332
352
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -350,9 +370,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
350
370
|
resetSubledger: function (authorization, options) {
|
|
351
371
|
if (options === void 0) { options = {}; }
|
|
352
372
|
return __awaiter(_this, void 0, void 0, function () {
|
|
353
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
354
|
-
|
|
355
|
-
|
|
373
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
374
|
+
var _a;
|
|
375
|
+
return __generator(this, function (_b) {
|
|
376
|
+
switch (_b.label) {
|
|
356
377
|
case 0:
|
|
357
378
|
localVarPath = "/accountingservice/v1/subledger/reset";
|
|
358
379
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -366,14 +387,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
366
387
|
// authentication bearer required
|
|
367
388
|
// http bearer authentication required
|
|
368
389
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
369
|
-
// Only Authorization falls back to the configured token
|
|
390
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
391
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
370
392
|
];
|
|
371
393
|
case 1:
|
|
372
394
|
// authentication bearer required
|
|
373
395
|
// http bearer authentication required
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
396
|
+
_b.sent();
|
|
397
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
398
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
399
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
400
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
377
401
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
378
402
|
}
|
|
379
403
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -398,9 +422,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
398
422
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
399
423
|
if (options === void 0) { options = {}; }
|
|
400
424
|
return __awaiter(_this, void 0, void 0, function () {
|
|
401
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
402
|
-
|
|
403
|
-
|
|
425
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
426
|
+
var _a;
|
|
427
|
+
return __generator(this, function (_b) {
|
|
428
|
+
switch (_b.label) {
|
|
404
429
|
case 0:
|
|
405
430
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
406
431
|
(0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
|
|
@@ -416,14 +441,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
416
441
|
// authentication bearer required
|
|
417
442
|
// http bearer authentication required
|
|
418
443
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
419
|
-
// Only Authorization falls back to the configured token
|
|
444
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
445
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
420
446
|
];
|
|
421
447
|
case 1:
|
|
422
448
|
// authentication bearer required
|
|
423
449
|
// http bearer authentication required
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
450
|
+
_b.sent();
|
|
451
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
452
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
453
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
454
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
427
455
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
428
456
|
}
|
|
429
457
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -450,9 +478,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
450
478
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
451
479
|
if (options === void 0) { options = {}; }
|
|
452
480
|
return __awaiter(_this, void 0, void 0, function () {
|
|
453
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
454
|
-
|
|
455
|
-
|
|
481
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
482
|
+
var _a;
|
|
483
|
+
return __generator(this, function (_b) {
|
|
484
|
+
switch (_b.label) {
|
|
456
485
|
case 0:
|
|
457
486
|
// verify required parameter 'file' is not null or undefined
|
|
458
487
|
(0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
|
|
@@ -469,14 +498,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
469
498
|
// authentication bearer required
|
|
470
499
|
// http bearer authentication required
|
|
471
500
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
472
|
-
// Only Authorization falls back to the configured token
|
|
501
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
502
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
473
503
|
];
|
|
474
504
|
case 1:
|
|
475
505
|
// authentication bearer required
|
|
476
506
|
// http bearer authentication required
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
507
|
+
_b.sent();
|
|
508
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
509
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
510
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
511
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
480
512
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
481
513
|
}
|
|
482
514
|
if (file !== undefined) {
|