@emilgroup/accounting-sdk-node 1.32.1-beta.82 → 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
|
@@ -67,9 +67,12 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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 PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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 PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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 PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
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
|
|
|
@@ -94,9 +94,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
94
94
|
// http bearer authentication required
|
|
95
95
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
96
96
|
|
|
97
|
-
// Only Authorization falls back to the configured token
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
98
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
99
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
100
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
101
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
102
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
100
103
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
101
104
|
}
|
|
102
105
|
|
|
@@ -145,9 +148,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
145
148
|
// http bearer authentication required
|
|
146
149
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
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
|
|
|
@@ -192,9 +198,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
192
198
|
// http bearer authentication required
|
|
193
199
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
194
200
|
|
|
195
|
-
// Only Authorization falls back to the configured token
|
|
196
|
-
|
|
197
|
-
|
|
201
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
202
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
203
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
204
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
205
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
206
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
198
207
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
199
208
|
}
|
|
200
209
|
|
|
@@ -247,9 +256,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
247
256
|
// http bearer authentication required
|
|
248
257
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
249
258
|
|
|
250
|
-
// Only Authorization falls back to the configured token
|
|
251
|
-
|
|
252
|
-
|
|
259
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
260
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
261
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
262
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
263
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
264
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
253
265
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
254
266
|
}
|
|
255
267
|
|
|
@@ -294,9 +306,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
294
306
|
// http bearer authentication required
|
|
295
307
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
296
308
|
|
|
297
|
-
// Only Authorization falls back to the configured token
|
|
298
|
-
|
|
299
|
-
|
|
309
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
310
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
311
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
312
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
313
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
314
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
300
315
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
301
316
|
}
|
|
302
317
|
|
|
@@ -345,9 +360,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
345
360
|
// http bearer authentication required
|
|
346
361
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
347
362
|
|
|
348
|
-
// Only Authorization falls back to the configured token
|
|
349
|
-
|
|
350
|
-
|
|
363
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
364
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
365
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
366
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
367
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
368
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
351
369
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
352
370
|
}
|
|
353
371
|
|
|
@@ -423,9 +441,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
423
441
|
localVarQueryParameter['filters'] = filters;
|
|
424
442
|
}
|
|
425
443
|
|
|
426
|
-
// Only Authorization falls back to the configured token
|
|
427
|
-
|
|
428
|
-
|
|
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.
|
|
446
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
447
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
448
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
449
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
429
450
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
430
451
|
}
|
|
431
452
|
|
|
@@ -501,9 +522,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
501
522
|
localVarQueryParameter['filters'] = filters;
|
|
502
523
|
}
|
|
503
524
|
|
|
504
|
-
// Only Authorization falls back to the configured token
|
|
505
|
-
|
|
506
|
-
|
|
525
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
526
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
527
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
528
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
529
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
530
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
507
531
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
508
532
|
}
|
|
509
533
|
|
|
@@ -563,9 +587,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
563
587
|
// http bearer authentication required
|
|
564
588
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
565
589
|
|
|
566
|
-
// Only Authorization falls back to the configured token
|
|
567
|
-
|
|
568
|
-
|
|
590
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
591
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
592
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
593
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
594
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
595
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
569
596
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
570
597
|
}
|
|
571
598
|
|
|
@@ -620,9 +647,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
620
647
|
// http bearer authentication required
|
|
621
648
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
622
649
|
|
|
623
|
-
// Only Authorization falls back to the configured token
|
|
624
|
-
|
|
625
|
-
|
|
650
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
651
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
652
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
653
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
654
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
655
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
626
656
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
627
657
|
}
|
|
628
658
|
|
|
@@ -673,9 +703,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
673
703
|
// http bearer authentication required
|
|
674
704
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
675
705
|
|
|
676
|
-
// Only Authorization falls back to the configured token
|
|
677
|
-
|
|
678
|
-
|
|
706
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
707
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
708
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
709
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
710
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
711
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
679
712
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
680
713
|
}
|
|
681
714
|
|
|
@@ -734,9 +767,12 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
734
767
|
// http bearer authentication required
|
|
735
768
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
736
769
|
|
|
737
|
-
// Only Authorization falls back to the configured token
|
|
738
|
-
|
|
739
|
-
|
|
770
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
771
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
772
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
773
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
774
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
775
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
740
776
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
741
777
|
}
|
|
742
778
|
|
|
@@ -107,9 +107,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
|
|
@@ -125,14 +126,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
128
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
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.
|
|
129
131
|
];
|
|
130
132
|
case 1:
|
|
131
133
|
// authentication bearer required
|
|
132
134
|
// http bearer authentication required
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
140
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
141
|
}
|
|
138
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -159,9 +163,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
createAndEnableSubledgerFromFile: function (file, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
165
170
|
case 0:
|
|
166
171
|
// verify required parameter 'file' is not null or undefined
|
|
167
172
|
(0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
|
|
@@ -178,14 +183,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token
|
|
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.
|
|
182
188
|
];
|
|
183
189
|
case 1:
|
|
184
190
|
// authentication bearer required
|
|
185
191
|
// http bearer authentication required
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
197
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
198
|
}
|
|
191
199
|
if (file !== undefined) {
|
|
@@ -214,9 +222,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
214
222
|
exportAccountingConfig: function (authorization, options) {
|
|
215
223
|
if (options === void 0) { options = {}; }
|
|
216
224
|
return __awaiter(_this, void 0, void 0, function () {
|
|
217
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
218
|
-
|
|
219
|
-
|
|
225
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
226
|
+
var _a;
|
|
227
|
+
return __generator(this, function (_b) {
|
|
228
|
+
switch (_b.label) {
|
|
220
229
|
case 0:
|
|
221
230
|
localVarPath = "/accountingservice/v1/subledger/config/export";
|
|
222
231
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -230,14 +239,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
230
239
|
// authentication bearer required
|
|
231
240
|
// http bearer authentication required
|
|
232
241
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
233
|
-
// Only Authorization falls back to the configured token
|
|
242
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
243
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
234
244
|
];
|
|
235
245
|
case 1:
|
|
236
246
|
// authentication bearer required
|
|
237
247
|
// http bearer authentication required
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
248
|
+
_b.sent();
|
|
249
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
250
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
251
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
252
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
241
253
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
242
254
|
}
|
|
243
255
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -261,9 +273,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
261
273
|
getAccountingCategories: function (authorization, options) {
|
|
262
274
|
if (options === void 0) { options = {}; }
|
|
263
275
|
return __awaiter(_this, void 0, void 0, function () {
|
|
264
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
265
|
-
|
|
266
|
-
|
|
276
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
277
|
+
var _a;
|
|
278
|
+
return __generator(this, function (_b) {
|
|
279
|
+
switch (_b.label) {
|
|
267
280
|
case 0:
|
|
268
281
|
localVarPath = "/accountingservice/v1/subledger/categories";
|
|
269
282
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -277,14 +290,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
277
290
|
// authentication bearer required
|
|
278
291
|
// http bearer authentication required
|
|
279
292
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
280
|
-
// Only Authorization falls back to the configured token
|
|
293
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
294
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
281
295
|
];
|
|
282
296
|
case 1:
|
|
283
297
|
// authentication bearer required
|
|
284
298
|
// http bearer authentication required
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
299
|
+
_b.sent();
|
|
300
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
301
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
302
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
303
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
288
304
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
289
305
|
}
|
|
290
306
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -308,9 +324,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
308
324
|
getActivationSnapshot: function (authorization, options) {
|
|
309
325
|
if (options === void 0) { options = {}; }
|
|
310
326
|
return __awaiter(_this, void 0, void 0, function () {
|
|
311
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
312
|
-
|
|
313
|
-
|
|
327
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
328
|
+
var _a;
|
|
329
|
+
return __generator(this, function (_b) {
|
|
330
|
+
switch (_b.label) {
|
|
314
331
|
case 0:
|
|
315
332
|
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
316
333
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -324,14 +341,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
324
341
|
// authentication bearer required
|
|
325
342
|
// http bearer authentication required
|
|
326
343
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
327
|
-
// Only Authorization falls back to the configured token
|
|
344
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
345
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
328
346
|
];
|
|
329
347
|
case 1:
|
|
330
348
|
// authentication bearer required
|
|
331
349
|
// http bearer authentication required
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
350
|
+
_b.sent();
|
|
351
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
352
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
353
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
354
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
335
355
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
336
356
|
}
|
|
337
357
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -355,9 +375,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
355
375
|
resetSubledger: function (authorization, options) {
|
|
356
376
|
if (options === void 0) { options = {}; }
|
|
357
377
|
return __awaiter(_this, void 0, void 0, function () {
|
|
358
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
359
|
-
|
|
360
|
-
|
|
378
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
379
|
+
var _a;
|
|
380
|
+
return __generator(this, function (_b) {
|
|
381
|
+
switch (_b.label) {
|
|
361
382
|
case 0:
|
|
362
383
|
localVarPath = "/accountingservice/v1/subledger/reset";
|
|
363
384
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -371,14 +392,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
371
392
|
// authentication bearer required
|
|
372
393
|
// http bearer authentication required
|
|
373
394
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
374
|
-
// Only Authorization falls back to the configured token
|
|
395
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
396
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
375
397
|
];
|
|
376
398
|
case 1:
|
|
377
399
|
// authentication bearer required
|
|
378
400
|
// http bearer authentication required
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
401
|
+
_b.sent();
|
|
402
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
403
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
404
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
405
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
382
406
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
383
407
|
}
|
|
384
408
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -403,9 +427,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
403
427
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
404
428
|
if (options === void 0) { options = {}; }
|
|
405
429
|
return __awaiter(_this, void 0, void 0, function () {
|
|
406
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
407
|
-
|
|
408
|
-
|
|
430
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
431
|
+
var _a;
|
|
432
|
+
return __generator(this, function (_b) {
|
|
433
|
+
switch (_b.label) {
|
|
409
434
|
case 0:
|
|
410
435
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
411
436
|
(0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
|
|
@@ -421,14 +446,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
421
446
|
// authentication bearer required
|
|
422
447
|
// http bearer authentication required
|
|
423
448
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
424
|
-
// Only Authorization falls back to the configured token
|
|
449
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
450
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
425
451
|
];
|
|
426
452
|
case 1:
|
|
427
453
|
// authentication bearer required
|
|
428
454
|
// http bearer authentication required
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
455
|
+
_b.sent();
|
|
456
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
457
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
458
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
459
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
432
460
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
433
461
|
}
|
|
434
462
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -455,9 +483,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
455
483
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
456
484
|
if (options === void 0) { options = {}; }
|
|
457
485
|
return __awaiter(_this, void 0, void 0, function () {
|
|
458
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
459
|
-
|
|
460
|
-
|
|
486
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
487
|
+
var _a;
|
|
488
|
+
return __generator(this, function (_b) {
|
|
489
|
+
switch (_b.label) {
|
|
461
490
|
case 0:
|
|
462
491
|
// verify required parameter 'file' is not null or undefined
|
|
463
492
|
(0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
|
|
@@ -474,14 +503,17 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
474
503
|
// authentication bearer required
|
|
475
504
|
// http bearer authentication required
|
|
476
505
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
477
|
-
// Only Authorization falls back to the configured token
|
|
506
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
507
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
478
508
|
];
|
|
479
509
|
case 1:
|
|
480
510
|
// authentication bearer required
|
|
481
511
|
// http bearer authentication required
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
512
|
+
_b.sent();
|
|
513
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
514
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
515
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
516
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
485
517
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
486
518
|
}
|
|
487
519
|
if (file !== undefined) {
|