@emilgroup/accounting-sdk 1.34.0 → 1.34.1-beta.0

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.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +756 -0
  4. package/api/financial-accounts-api.ts +12 -12
  5. package/api.ts +2 -0
  6. package/dist/api/accounting-configs-api.d.ts +404 -0
  7. package/dist/api/accounting-configs-api.js +770 -0
  8. package/dist/api/financial-accounts-api.d.ts +12 -12
  9. package/dist/api/financial-accounts-api.js +9 -9
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/account-mapping-class.d.ts +71 -0
  13. package/dist/models/account-mapping-class.js +38 -0
  14. package/dist/models/accounting-category-class.d.ts +45 -0
  15. package/dist/models/accounting-category-class.js +24 -0
  16. package/dist/models/accounting-config-class.d.ts +67 -0
  17. package/dist/models/accounting-config-class.js +15 -0
  18. package/dist/models/accounting-config-data-class.d.ts +38 -0
  19. package/dist/models/accounting-config-data-class.js +15 -0
  20. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +46 -0
  21. package/dist/models/accounting-config-data-dto-accounting-configuration.js +24 -0
  22. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +71 -0
  23. package/dist/models/accounting-config-data-dto-default-account-mappings.js +38 -0
  24. package/dist/models/accounting-config-data-dto.d.ts +38 -0
  25. package/dist/models/accounting-config-data-dto.js +15 -0
  26. package/dist/models/accounting-configuration-class.d.ts +36 -0
  27. package/dist/models/accounting-configuration-class.js +15 -0
  28. package/dist/models/create-and-enable-subledger-request-dto.d.ts +25 -0
  29. package/dist/models/create-and-enable-subledger-request-dto.js +15 -0
  30. package/dist/models/create-and-enable-subledger-response-class.d.ts +25 -0
  31. package/dist/models/create-and-enable-subledger-response-class.js +15 -0
  32. package/dist/models/create-booking-entry-request-dto.d.ts +4 -2
  33. package/dist/models/create-financial-account-request-dto.d.ts +40 -3
  34. package/dist/models/create-financial-account-request-dto.js +24 -2
  35. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  36. package/dist/models/create-number-range-request-dto.js +4 -4
  37. package/dist/models/create-personal-account-request-dto.d.ts +14 -6
  38. package/dist/models/create-personal-account-request-dto.js +3 -3
  39. package/dist/models/export-accounting-config-response-class.d.ts +25 -0
  40. package/dist/models/export-accounting-config-response-class.js +15 -0
  41. package/dist/models/financial-account-class.d.ts +20 -2
  42. package/dist/models/financial-account-class.js +1 -1
  43. package/dist/models/financial-transaction-data-dto.d.ts +4 -2
  44. package/dist/models/get-accounting-categories-response-class.d.ts +25 -0
  45. package/dist/models/get-accounting-categories-response-class.js +15 -0
  46. package/dist/models/index.d.ts +14 -0
  47. package/dist/models/index.js +14 -0
  48. package/dist/models/personal-account-class.d.ts +8 -2
  49. package/dist/models/personal-account-class.js +1 -1
  50. package/dist/models/validate-accounting-config-request-dto.d.ts +25 -0
  51. package/dist/models/validate-accounting-config-request-dto.js +15 -0
  52. package/dist/models/validate-accounting-config-response-class.d.ts +30 -0
  53. package/dist/models/validate-accounting-config-response-class.js +15 -0
  54. package/models/account-mapping-class.ts +80 -0
  55. package/models/accounting-category-class.ts +54 -0
  56. package/models/accounting-config-class.ts +73 -0
  57. package/models/accounting-config-data-class.ts +44 -0
  58. package/models/accounting-config-data-dto-accounting-configuration.ts +56 -0
  59. package/models/accounting-config-data-dto-default-account-mappings.ts +80 -0
  60. package/models/accounting-config-data-dto.ts +44 -0
  61. package/models/accounting-configuration-class.ts +42 -0
  62. package/models/create-and-enable-subledger-request-dto.ts +31 -0
  63. package/models/create-and-enable-subledger-response-class.ts +31 -0
  64. package/models/create-booking-entry-request-dto.ts +2 -2
  65. package/models/create-financial-account-request-dto.ts +39 -3
  66. package/models/create-number-range-request-dto.ts +4 -4
  67. package/models/create-personal-account-request-dto.ts +12 -6
  68. package/models/export-accounting-config-response-class.ts +31 -0
  69. package/models/financial-account-class.ts +20 -2
  70. package/models/financial-transaction-data-dto.ts +2 -2
  71. package/models/get-accounting-categories-response-class.ts +31 -0
  72. package/models/index.ts +14 -0
  73. package/models/personal-account-class.ts +8 -2
  74. package/models/validate-accounting-config-request-dto.ts +31 -0
  75. package/models/validate-accounting-config-response-class.ts +36 -0
  76. package/package.json +1 -1
@@ -0,0 +1,770 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.AccountingConfigsApi = exports.AccountingConfigsApiFactory = exports.AccountingConfigsApiFp = exports.AccountingConfigsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * AccountingConfigsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
97
+ * @summary Create the create and enable subledger
98
+ * @param {CreateAndEnableSubledgerRequestDto} createAndEnableSubledgerRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
112
+ localVarPath = "/accountingservice/v1/accountingconfigs";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAndEnableSubledgerRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
146
+ * @summary Create the create and enable subledger from file
147
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ createAndEnableSubledgerFromFile: function (file, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'file' is not null or undefined
160
+ (0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
161
+ localVarPath = "/accountingservice/v1/accountingconfigs/upload";
162
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
168
+ localVarHeaderParameter = {};
169
+ localVarQueryParameter = {};
170
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ if (file !== undefined) {
182
+ localVarFormParams.append('file', file);
183
+ }
184
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
187
+ localVarRequestOptions.data = localVarFormParams;
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
192
+ }
193
+ });
194
+ });
195
+ },
196
+ /**
197
+ * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
198
+ * @summary Retrieve the export accounting config
199
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ exportAccountingConfig: function (authorization, options) {
204
+ if (options === void 0) { options = {}; }
205
+ return __awaiter(_this, void 0, void 0, function () {
206
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
207
+ return __generator(this, function (_a) {
208
+ switch (_a.label) {
209
+ case 0:
210
+ localVarPath = "/accountingservice/v1/accountingconfigs";
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ baseAccessToken = configuration.accessToken;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
+ case 1:
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return [2 /*return*/, {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ }];
236
+ }
237
+ });
238
+ });
239
+ },
240
+ /**
241
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
242
+ * @summary Retrieve the accounting categories
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ getAccountingCategories: function (authorization, options) {
248
+ if (options === void 0) { options = {}; }
249
+ return __awaiter(_this, void 0, void 0, function () {
250
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
251
+ return __generator(this, function (_a) {
252
+ switch (_a.label) {
253
+ case 0:
254
+ localVarPath = "/accountingservice/v1/accountingconfigs/categories";
255
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
256
+ if (configuration) {
257
+ baseOptions = configuration.baseOptions;
258
+ baseAccessToken = configuration.accessToken;
259
+ }
260
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
261
+ localVarHeaderParameter = {};
262
+ localVarQueryParameter = {};
263
+ // authentication bearer required
264
+ // http bearer authentication required
265
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
266
+ case 1:
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ _a.sent();
270
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
+ }
273
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
274
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
276
+ return [2 /*return*/, {
277
+ url: (0, common_1.toPathString)(localVarUrlObj),
278
+ options: localVarRequestOptions,
279
+ }];
280
+ }
281
+ });
282
+ });
283
+ },
284
+ /**
285
+ * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
286
+ * @summary Delete the reset subledger
287
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ resetSubledger: function (authorization, options) {
292
+ if (options === void 0) { options = {}; }
293
+ return __awaiter(_this, void 0, void 0, function () {
294
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
295
+ return __generator(this, function (_a) {
296
+ switch (_a.label) {
297
+ case 0:
298
+ localVarPath = "/accountingservice/v1/accountingconfigs";
299
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
300
+ if (configuration) {
301
+ baseOptions = configuration.baseOptions;
302
+ baseAccessToken = configuration.accessToken;
303
+ }
304
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
305
+ localVarHeaderParameter = {};
306
+ localVarQueryParameter = {};
307
+ // authentication bearer required
308
+ // http bearer authentication required
309
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
310
+ case 1:
311
+ // authentication bearer required
312
+ // http bearer authentication required
313
+ _a.sent();
314
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
315
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
316
+ }
317
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
318
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
319
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
320
+ return [2 /*return*/, {
321
+ url: (0, common_1.toPathString)(localVarUrlObj),
322
+ options: localVarRequestOptions,
323
+ }];
324
+ }
325
+ });
326
+ });
327
+ },
328
+ /**
329
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
330
+ * @summary Create the validate accounting config
331
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
332
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
337
+ if (options === void 0) { options = {}; }
338
+ return __awaiter(_this, void 0, void 0, function () {
339
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
340
+ return __generator(this, function (_a) {
341
+ switch (_a.label) {
342
+ case 0:
343
+ // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
344
+ (0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
345
+ localVarPath = "/accountingservice/v1/accountingconfigs/validate";
346
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
347
+ if (configuration) {
348
+ baseOptions = configuration.baseOptions;
349
+ baseAccessToken = configuration.accessToken;
350
+ }
351
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
352
+ localVarHeaderParameter = {};
353
+ localVarQueryParameter = {};
354
+ // authentication bearer required
355
+ // http bearer authentication required
356
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
357
+ case 1:
358
+ // authentication bearer required
359
+ // http bearer authentication required
360
+ _a.sent();
361
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
362
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
363
+ }
364
+ localVarHeaderParameter['Content-Type'] = 'application/json';
365
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
366
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
367
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
368
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validateAccountingConfigRequestDto, localVarRequestOptions, configuration);
369
+ return [2 /*return*/, {
370
+ url: (0, common_1.toPathString)(localVarUrlObj),
371
+ options: localVarRequestOptions,
372
+ }];
373
+ }
374
+ });
375
+ });
376
+ },
377
+ /**
378
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
379
+ * @summary Create the validate accounting config from file
380
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
381
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ validateAccountingConfigFromFile: function (file, authorization, options) {
386
+ if (options === void 0) { options = {}; }
387
+ return __awaiter(_this, void 0, void 0, function () {
388
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
389
+ return __generator(this, function (_a) {
390
+ switch (_a.label) {
391
+ case 0:
392
+ // verify required parameter 'file' is not null or undefined
393
+ (0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
394
+ localVarPath = "/accountingservice/v1/accountingconfigs/validate/upload";
395
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
396
+ if (configuration) {
397
+ baseOptions = configuration.baseOptions;
398
+ baseAccessToken = configuration.accessToken;
399
+ }
400
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
401
+ localVarHeaderParameter = {};
402
+ localVarQueryParameter = {};
403
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
404
+ // authentication bearer required
405
+ // http bearer authentication required
406
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
407
+ case 1:
408
+ // authentication bearer required
409
+ // http bearer authentication required
410
+ _a.sent();
411
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
412
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
413
+ }
414
+ if (file !== undefined) {
415
+ localVarFormParams.append('file', file);
416
+ }
417
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
418
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
419
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
420
+ localVarRequestOptions.data = localVarFormParams;
421
+ return [2 /*return*/, {
422
+ url: (0, common_1.toPathString)(localVarUrlObj),
423
+ options: localVarRequestOptions,
424
+ }];
425
+ }
426
+ });
427
+ });
428
+ },
429
+ };
430
+ };
431
+ exports.AccountingConfigsApiAxiosParamCreator = AccountingConfigsApiAxiosParamCreator;
432
+ /**
433
+ * AccountingConfigsApi - functional programming interface
434
+ * @export
435
+ */
436
+ var AccountingConfigsApiFp = function (configuration) {
437
+ var localVarAxiosParamCreator = (0, exports.AccountingConfigsApiAxiosParamCreator)(configuration);
438
+ return {
439
+ /**
440
+ * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
441
+ * @summary Create the create and enable subledger
442
+ * @param {CreateAndEnableSubledgerRequestDto} createAndEnableSubledgerRequestDto
443
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
448
+ return __awaiter(this, void 0, void 0, function () {
449
+ var localVarAxiosArgs;
450
+ return __generator(this, function (_a) {
451
+ switch (_a.label) {
452
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAndEnableSubledger(createAndEnableSubledgerRequestDto, authorization, options)];
453
+ case 1:
454
+ localVarAxiosArgs = _a.sent();
455
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
456
+ }
457
+ });
458
+ });
459
+ },
460
+ /**
461
+ * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
462
+ * @summary Create the create and enable subledger from file
463
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
464
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ createAndEnableSubledgerFromFile: function (file, authorization, options) {
469
+ return __awaiter(this, void 0, void 0, function () {
470
+ var localVarAxiosArgs;
471
+ return __generator(this, function (_a) {
472
+ switch (_a.label) {
473
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAndEnableSubledgerFromFile(file, authorization, options)];
474
+ case 1:
475
+ localVarAxiosArgs = _a.sent();
476
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
477
+ }
478
+ });
479
+ });
480
+ },
481
+ /**
482
+ * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
483
+ * @summary Retrieve the export accounting config
484
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
485
+ * @param {*} [options] Override http request option.
486
+ * @throws {RequiredError}
487
+ */
488
+ exportAccountingConfig: function (authorization, options) {
489
+ return __awaiter(this, void 0, void 0, function () {
490
+ var localVarAxiosArgs;
491
+ return __generator(this, function (_a) {
492
+ switch (_a.label) {
493
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportAccountingConfig(authorization, options)];
494
+ case 1:
495
+ localVarAxiosArgs = _a.sent();
496
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
497
+ }
498
+ });
499
+ });
500
+ },
501
+ /**
502
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
503
+ * @summary Retrieve the accounting categories
504
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ getAccountingCategories: function (authorization, options) {
509
+ return __awaiter(this, void 0, void 0, function () {
510
+ var localVarAxiosArgs;
511
+ return __generator(this, function (_a) {
512
+ switch (_a.label) {
513
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAccountingCategories(authorization, options)];
514
+ case 1:
515
+ localVarAxiosArgs = _a.sent();
516
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
517
+ }
518
+ });
519
+ });
520
+ },
521
+ /**
522
+ * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
523
+ * @summary Delete the reset subledger
524
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ resetSubledger: function (authorization, options) {
529
+ return __awaiter(this, void 0, void 0, function () {
530
+ var localVarAxiosArgs;
531
+ return __generator(this, function (_a) {
532
+ switch (_a.label) {
533
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetSubledger(authorization, options)];
534
+ case 1:
535
+ localVarAxiosArgs = _a.sent();
536
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
537
+ }
538
+ });
539
+ });
540
+ },
541
+ /**
542
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
543
+ * @summary Create the validate accounting config
544
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
545
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
550
+ return __awaiter(this, void 0, void 0, function () {
551
+ var localVarAxiosArgs;
552
+ return __generator(this, function (_a) {
553
+ switch (_a.label) {
554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options)];
555
+ case 1:
556
+ localVarAxiosArgs = _a.sent();
557
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
558
+ }
559
+ });
560
+ });
561
+ },
562
+ /**
563
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
564
+ * @summary Create the validate accounting config from file
565
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
566
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ */
570
+ validateAccountingConfigFromFile: function (file, authorization, options) {
571
+ return __awaiter(this, void 0, void 0, function () {
572
+ var localVarAxiosArgs;
573
+ return __generator(this, function (_a) {
574
+ switch (_a.label) {
575
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAccountingConfigFromFile(file, authorization, options)];
576
+ case 1:
577
+ localVarAxiosArgs = _a.sent();
578
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
579
+ }
580
+ });
581
+ });
582
+ },
583
+ };
584
+ };
585
+ exports.AccountingConfigsApiFp = AccountingConfigsApiFp;
586
+ /**
587
+ * AccountingConfigsApi - factory interface
588
+ * @export
589
+ */
590
+ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
591
+ var localVarFp = (0, exports.AccountingConfigsApiFp)(configuration);
592
+ return {
593
+ /**
594
+ * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
595
+ * @summary Create the create and enable subledger
596
+ * @param {CreateAndEnableSubledgerRequestDto} createAndEnableSubledgerRequestDto
597
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ */
601
+ createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
602
+ return localVarFp.createAndEnableSubledger(createAndEnableSubledgerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
603
+ },
604
+ /**
605
+ * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
606
+ * @summary Create the create and enable subledger from file
607
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
608
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ createAndEnableSubledgerFromFile: function (file, authorization, options) {
613
+ return localVarFp.createAndEnableSubledgerFromFile(file, authorization, options).then(function (request) { return request(axios, basePath); });
614
+ },
615
+ /**
616
+ * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
617
+ * @summary Retrieve the export accounting config
618
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ exportAccountingConfig: function (authorization, options) {
623
+ return localVarFp.exportAccountingConfig(authorization, options).then(function (request) { return request(axios, basePath); });
624
+ },
625
+ /**
626
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
627
+ * @summary Retrieve the accounting categories
628
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ */
632
+ getAccountingCategories: function (authorization, options) {
633
+ return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
634
+ },
635
+ /**
636
+ * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
637
+ * @summary Delete the reset subledger
638
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ resetSubledger: function (authorization, options) {
643
+ return localVarFp.resetSubledger(authorization, options).then(function (request) { return request(axios, basePath); });
644
+ },
645
+ /**
646
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
647
+ * @summary Create the validate accounting config
648
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
649
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
654
+ return localVarFp.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
655
+ },
656
+ /**
657
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
658
+ * @summary Create the validate accounting config from file
659
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
660
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ validateAccountingConfigFromFile: function (file, authorization, options) {
665
+ return localVarFp.validateAccountingConfigFromFile(file, authorization, options).then(function (request) { return request(axios, basePath); });
666
+ },
667
+ };
668
+ };
669
+ exports.AccountingConfigsApiFactory = AccountingConfigsApiFactory;
670
+ /**
671
+ * AccountingConfigsApi - object-oriented interface
672
+ * @export
673
+ * @class AccountingConfigsApi
674
+ * @extends {BaseAPI}
675
+ */
676
+ var AccountingConfigsApi = /** @class */ (function (_super) {
677
+ __extends(AccountingConfigsApi, _super);
678
+ function AccountingConfigsApi() {
679
+ return _super !== null && _super.apply(this, arguments) || this;
680
+ }
681
+ /**
682
+ * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
683
+ * @summary Create the create and enable subledger
684
+ * @param {AccountingConfigsApiCreateAndEnableSubledgerRequest} requestParameters Request parameters.
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ * @memberof AccountingConfigsApi
688
+ */
689
+ AccountingConfigsApi.prototype.createAndEnableSubledger = function (requestParameters, options) {
690
+ var _this = this;
691
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
692
+ };
693
+ /**
694
+ * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
695
+ * @summary Create the create and enable subledger from file
696
+ * @param {AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest} requestParameters Request parameters.
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ * @memberof AccountingConfigsApi
700
+ */
701
+ AccountingConfigsApi.prototype.createAndEnableSubledgerFromFile = function (requestParameters, options) {
702
+ var _this = this;
703
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
704
+ };
705
+ /**
706
+ * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
707
+ * @summary Retrieve the export accounting config
708
+ * @param {AccountingConfigsApiExportAccountingConfigRequest} requestParameters Request parameters.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ * @memberof AccountingConfigsApi
712
+ */
713
+ AccountingConfigsApi.prototype.exportAccountingConfig = function (requestParameters, options) {
714
+ var _this = this;
715
+ if (requestParameters === void 0) { requestParameters = {}; }
716
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
717
+ };
718
+ /**
719
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
720
+ * @summary Retrieve the accounting categories
721
+ * @param {AccountingConfigsApiGetAccountingCategoriesRequest} requestParameters Request parameters.
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ * @memberof AccountingConfigsApi
725
+ */
726
+ AccountingConfigsApi.prototype.getAccountingCategories = function (requestParameters, options) {
727
+ var _this = this;
728
+ if (requestParameters === void 0) { requestParameters = {}; }
729
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
730
+ };
731
+ /**
732
+ * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
733
+ * @summary Delete the reset subledger
734
+ * @param {AccountingConfigsApiResetSubledgerRequest} requestParameters Request parameters.
735
+ * @param {*} [options] Override http request option.
736
+ * @throws {RequiredError}
737
+ * @memberof AccountingConfigsApi
738
+ */
739
+ AccountingConfigsApi.prototype.resetSubledger = function (requestParameters, options) {
740
+ var _this = this;
741
+ if (requestParameters === void 0) { requestParameters = {}; }
742
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).resetSubledger(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
743
+ };
744
+ /**
745
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
746
+ * @summary Create the validate accounting config
747
+ * @param {AccountingConfigsApiValidateAccountingConfigRequest} requestParameters Request parameters.
748
+ * @param {*} [options] Override http request option.
749
+ * @throws {RequiredError}
750
+ * @memberof AccountingConfigsApi
751
+ */
752
+ AccountingConfigsApi.prototype.validateAccountingConfig = function (requestParameters, options) {
753
+ var _this = this;
754
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
755
+ };
756
+ /**
757
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
758
+ * @summary Create the validate accounting config from file
759
+ * @param {AccountingConfigsApiValidateAccountingConfigFromFileRequest} requestParameters Request parameters.
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ * @memberof AccountingConfigsApi
763
+ */
764
+ AccountingConfigsApi.prototype.validateAccountingConfigFromFile = function (requestParameters, options) {
765
+ var _this = this;
766
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
767
+ };
768
+ return AccountingConfigsApi;
769
+ }(base_1.BaseAPI));
770
+ exports.AccountingConfigsApi = AccountingConfigsApi;