@emilgroup/accounting-sdk-node 1.32.1-beta.103 → 1.32.1-beta.104
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 +24 -64
- package/api/booking-entries-api.ts +15 -40
- package/api/commission-account-mappings-api.ts +24 -64
- package/api/financial-accounts-api.ts +15 -40
- package/api/financial-transactions-api.ts +6 -16
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +12 -32
- package/api/personal-accounts-api.ts +12 -32
- package/api/product-account-mappings-api.ts +36 -96
- package/base.ts +0 -4
- package/common.ts +2 -3
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +64 -120
- package/dist/api/booking-entries-api.d.ts +5 -5
- package/dist/api/booking-entries-api.js +38 -67
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +61 -108
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +38 -67
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +14 -22
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +30 -52
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +30 -52
- package/dist/api/product-account-mappings-api.d.ts +12 -12
- package/dist/api/product-account-mappings-api.js +94 -172
- package/dist/base.d.ts +0 -1
- package/dist/base.js +0 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/package.json +2 -2
|
@@ -107,10 +107,9 @@ 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,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
switch (_b.label) {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
114
113
|
case 0:
|
|
115
114
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
116
115
|
(0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
|
|
@@ -125,19 +124,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
125
124
|
localVarQueryParameter = {};
|
|
126
125
|
// authentication bearer required
|
|
127
126
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
132
128
|
case 1:
|
|
133
129
|
// authentication bearer required
|
|
134
130
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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) {
|
|
140
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
141
134
|
}
|
|
142
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -163,10 +156,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
163
156
|
createAndEnableSubledgerFromFile: function (file, authorization, options) {
|
|
164
157
|
if (options === void 0) { options = {}; }
|
|
165
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
166
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
switch (_b.label) {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
170
162
|
case 0:
|
|
171
163
|
// verify required parameter 'file' is not null or undefined
|
|
172
164
|
(0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
|
|
@@ -182,19 +174,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
182
174
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
183
175
|
// authentication bearer required
|
|
184
176
|
// http bearer authentication required
|
|
185
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
186
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
188
|
-
];
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
189
178
|
case 1:
|
|
190
179
|
// authentication bearer required
|
|
191
180
|
// http bearer authentication required
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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) {
|
|
197
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
|
+
_a.sent();
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
198
184
|
}
|
|
199
185
|
if (file !== undefined) {
|
|
200
186
|
localVarFormParams.append('file', file);
|
|
@@ -222,10 +208,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
222
208
|
exportAccountingConfig: function (authorization, options) {
|
|
223
209
|
if (options === void 0) { options = {}; }
|
|
224
210
|
return __awaiter(_this, void 0, void 0, function () {
|
|
225
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
switch (_b.label) {
|
|
211
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
212
|
+
return __generator(this, function (_a) {
|
|
213
|
+
switch (_a.label) {
|
|
229
214
|
case 0:
|
|
230
215
|
localVarPath = "/accountingservice/v1/subledger/config/export";
|
|
231
216
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -238,19 +223,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
238
223
|
localVarQueryParameter = {};
|
|
239
224
|
// authentication bearer required
|
|
240
225
|
// http bearer authentication required
|
|
241
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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.
|
|
244
|
-
];
|
|
226
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
245
227
|
case 1:
|
|
246
228
|
// authentication bearer required
|
|
247
229
|
// http bearer authentication required
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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) {
|
|
253
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
230
|
+
_a.sent();
|
|
231
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
254
233
|
}
|
|
255
234
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
256
235
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -273,10 +252,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
273
252
|
getAccountingCategories: function (authorization, options) {
|
|
274
253
|
if (options === void 0) { options = {}; }
|
|
275
254
|
return __awaiter(_this, void 0, void 0, function () {
|
|
276
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
switch (_b.label) {
|
|
255
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
256
|
+
return __generator(this, function (_a) {
|
|
257
|
+
switch (_a.label) {
|
|
280
258
|
case 0:
|
|
281
259
|
localVarPath = "/accountingservice/v1/subledger/categories";
|
|
282
260
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -289,19 +267,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
289
267
|
localVarQueryParameter = {};
|
|
290
268
|
// authentication bearer required
|
|
291
269
|
// http bearer authentication required
|
|
292
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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.
|
|
295
|
-
];
|
|
270
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
296
271
|
case 1:
|
|
297
272
|
// authentication bearer required
|
|
298
273
|
// http bearer authentication required
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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) {
|
|
304
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
274
|
+
_a.sent();
|
|
275
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
276
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
305
277
|
}
|
|
306
278
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
279
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -324,10 +296,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
324
296
|
getActivationSnapshot: function (authorization, options) {
|
|
325
297
|
if (options === void 0) { options = {}; }
|
|
326
298
|
return __awaiter(_this, void 0, void 0, function () {
|
|
327
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
switch (_b.label) {
|
|
299
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
300
|
+
return __generator(this, function (_a) {
|
|
301
|
+
switch (_a.label) {
|
|
331
302
|
case 0:
|
|
332
303
|
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
333
304
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -340,19 +311,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
340
311
|
localVarQueryParameter = {};
|
|
341
312
|
// authentication bearer required
|
|
342
313
|
// http bearer authentication required
|
|
343
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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.
|
|
346
|
-
];
|
|
314
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
347
315
|
case 1:
|
|
348
316
|
// authentication bearer required
|
|
349
317
|
// http bearer authentication required
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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) {
|
|
355
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
318
|
+
_a.sent();
|
|
319
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
356
321
|
}
|
|
357
322
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
323
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -375,10 +340,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
375
340
|
resetSubledger: function (authorization, options) {
|
|
376
341
|
if (options === void 0) { options = {}; }
|
|
377
342
|
return __awaiter(_this, void 0, void 0, function () {
|
|
378
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
switch (_b.label) {
|
|
343
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
344
|
+
return __generator(this, function (_a) {
|
|
345
|
+
switch (_a.label) {
|
|
382
346
|
case 0:
|
|
383
347
|
localVarPath = "/accountingservice/v1/subledger/reset";
|
|
384
348
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -391,19 +355,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
391
355
|
localVarQueryParameter = {};
|
|
392
356
|
// authentication bearer required
|
|
393
357
|
// http bearer authentication required
|
|
394
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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.
|
|
397
|
-
];
|
|
358
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
398
359
|
case 1:
|
|
399
360
|
// authentication bearer required
|
|
400
361
|
// http bearer authentication required
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
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) {
|
|
406
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
362
|
+
_a.sent();
|
|
363
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
364
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
407
365
|
}
|
|
408
366
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
409
367
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -427,10 +385,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
427
385
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
428
386
|
if (options === void 0) { options = {}; }
|
|
429
387
|
return __awaiter(_this, void 0, void 0, function () {
|
|
430
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
switch (_b.label) {
|
|
388
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
389
|
+
return __generator(this, function (_a) {
|
|
390
|
+
switch (_a.label) {
|
|
434
391
|
case 0:
|
|
435
392
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
436
393
|
(0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
|
|
@@ -445,19 +402,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
445
402
|
localVarQueryParameter = {};
|
|
446
403
|
// authentication bearer required
|
|
447
404
|
// http bearer authentication required
|
|
448
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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.
|
|
451
|
-
];
|
|
405
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
452
406
|
case 1:
|
|
453
407
|
// authentication bearer required
|
|
454
408
|
// http bearer authentication required
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
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) {
|
|
460
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
409
|
+
_a.sent();
|
|
410
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
411
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
461
412
|
}
|
|
462
413
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
463
414
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -483,10 +434,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
483
434
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
484
435
|
if (options === void 0) { options = {}; }
|
|
485
436
|
return __awaiter(_this, void 0, void 0, function () {
|
|
486
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
switch (_b.label) {
|
|
437
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
438
|
+
return __generator(this, function (_a) {
|
|
439
|
+
switch (_a.label) {
|
|
490
440
|
case 0:
|
|
491
441
|
// verify required parameter 'file' is not null or undefined
|
|
492
442
|
(0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
|
|
@@ -502,19 +452,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
502
452
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
503
453
|
// authentication bearer required
|
|
504
454
|
// http bearer authentication required
|
|
505
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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.
|
|
508
|
-
];
|
|
455
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
509
456
|
case 1:
|
|
510
457
|
// authentication bearer required
|
|
511
458
|
// http bearer authentication required
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
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) {
|
|
517
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
459
|
+
_a.sent();
|
|
460
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
461
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
518
462
|
}
|
|
519
463
|
if (file !== undefined) {
|
|
520
464
|
localVarFormParams.append('file', file);
|
|
@@ -824,7 +768,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
824
768
|
*/
|
|
825
769
|
AccountingConfigsApi.prototype.createAndEnableSubledger = function (requestParameters, options) {
|
|
826
770
|
var _this = this;
|
|
827
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization,
|
|
771
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
828
772
|
};
|
|
829
773
|
/**
|
|
830
774
|
* This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
@@ -836,7 +780,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
836
780
|
*/
|
|
837
781
|
AccountingConfigsApi.prototype.createAndEnableSubledgerFromFile = function (requestParameters, options) {
|
|
838
782
|
var _this = this;
|
|
839
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization,
|
|
783
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
840
784
|
};
|
|
841
785
|
/**
|
|
842
786
|
* This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -849,7 +793,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
849
793
|
AccountingConfigsApi.prototype.exportAccountingConfig = function (requestParameters, options) {
|
|
850
794
|
var _this = this;
|
|
851
795
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
852
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).exportAccountingConfig(requestParameters.authorization,
|
|
796
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
853
797
|
};
|
|
854
798
|
/**
|
|
855
799
|
* This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -862,7 +806,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
862
806
|
AccountingConfigsApi.prototype.getAccountingCategories = function (requestParameters, options) {
|
|
863
807
|
var _this = this;
|
|
864
808
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
865
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization,
|
|
809
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
866
810
|
};
|
|
867
811
|
/**
|
|
868
812
|
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -875,7 +819,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
875
819
|
AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
|
|
876
820
|
var _this = this;
|
|
877
821
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
878
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization,
|
|
822
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
879
823
|
};
|
|
880
824
|
/**
|
|
881
825
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -888,7 +832,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
888
832
|
AccountingConfigsApi.prototype.resetSubledger = function (requestParameters, options) {
|
|
889
833
|
var _this = this;
|
|
890
834
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
891
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).resetSubledger(requestParameters.authorization,
|
|
835
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).resetSubledger(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
892
836
|
};
|
|
893
837
|
/**
|
|
894
838
|
* This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
@@ -900,7 +844,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
900
844
|
*/
|
|
901
845
|
AccountingConfigsApi.prototype.validateAccountingConfig = function (requestParameters, options) {
|
|
902
846
|
var _this = this;
|
|
903
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization,
|
|
847
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
904
848
|
};
|
|
905
849
|
/**
|
|
906
850
|
* This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
@@ -912,7 +856,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
912
856
|
*/
|
|
913
857
|
AccountingConfigsApi.prototype.validateAccountingConfigFromFile = function (requestParameters, options) {
|
|
914
858
|
var _this = this;
|
|
915
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization,
|
|
859
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
916
860
|
};
|
|
917
861
|
return AccountingConfigsApi;
|
|
918
862
|
}(base_1.BaseAPI));
|
|
@@ -346,7 +346,7 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
346
346
|
* @throws {RequiredError}
|
|
347
347
|
* @memberof BookingEntriesApi
|
|
348
348
|
*/
|
|
349
|
-
createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}
|
|
349
|
+
createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
|
|
350
350
|
/**
|
|
351
351
|
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
352
352
|
* @summary Update the create or correct opening balance
|
|
@@ -355,7 +355,7 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
355
355
|
* @throws {RequiredError}
|
|
356
356
|
* @memberof BookingEntriesApi
|
|
357
357
|
*/
|
|
358
|
-
createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrCorrectOpeningBalanceResponseClass, any, {}
|
|
358
|
+
createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrCorrectOpeningBalanceResponseClass, any, {}>>;
|
|
359
359
|
/**
|
|
360
360
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
361
361
|
* @summary Retrieve the booking entry
|
|
@@ -364,7 +364,7 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
364
364
|
* @throws {RequiredError}
|
|
365
365
|
* @memberof BookingEntriesApi
|
|
366
366
|
*/
|
|
367
|
-
getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}
|
|
367
|
+
getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}>>;
|
|
368
368
|
/**
|
|
369
369
|
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
370
370
|
* @summary List booking entries
|
|
@@ -373,7 +373,7 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
373
373
|
* @throws {RequiredError}
|
|
374
374
|
* @memberof BookingEntriesApi
|
|
375
375
|
*/
|
|
376
|
-
listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}
|
|
376
|
+
listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
|
|
377
377
|
/**
|
|
378
378
|
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
379
379
|
* @summary Create the booking entry from a source entity
|
|
@@ -382,5 +382,5 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
382
382
|
* @throws {RequiredError}
|
|
383
383
|
* @memberof BookingEntriesApi
|
|
384
384
|
*/
|
|
385
|
-
postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}
|
|
385
|
+
postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}>>;
|
|
386
386
|
}
|