@emilgroup/accounting-sdk 1.34.1-beta.11 → 1.34.1-beta.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +35 -1
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +85 -45
- package/api/booking-entries-api.ts +252 -13
- package/api/commission-account-mappings-api.ts +1231 -0
- package/api/financial-accounts-api.ts +56 -31
- package/api/financial-transactions-api.ts +16 -6
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +32 -12
- package/api/personal-accounts-api.ts +32 -12
- package/api/product-account-mappings-api.ts +1751 -0
- package/api.ts +4 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +25 -25
- package/dist/api/accounting-configs-api.js +136 -80
- package/dist/api/booking-entries-api.d.ts +121 -7
- package/dist/api/booking-entries-api.js +241 -26
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1051 -0
- package/dist/api/financial-accounts-api.d.ts +21 -21
- package/dist/api/financial-accounts-api.js +81 -52
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +22 -14
- 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 +52 -30
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +52 -30
- package/dist/api/product-account-mappings-api.d.ts +972 -0
- package/dist/api/product-account-mappings-api.js +1493 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +5 -2
- package/dist/models/account-mapping-class.js +6 -3
- package/dist/models/accounting-category-class.d.ts +12 -0
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/accounting-config-data-class.d.ts +7 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +11 -2
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +6 -3
- package/dist/models/accounting-config-data-dto.d.ts +7 -0
- package/dist/models/booking-entry-class.d.ts +35 -0
- package/dist/models/booking-entry-class.js +11 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
- package/dist/models/commission-agreement-partner-class.d.ts +30 -0
- package/dist/models/commission-agreement-partner-class.js +15 -0
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
- package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
- package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
- package/dist/models/commission-type-account-mapping-class.js +15 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +16 -0
- package/dist/models/create-booking-entry-request-dto.js +4 -0
- package/dist/models/create-financial-account-request-dto.d.ts +11 -2
- package/dist/models/create-financial-account-request-dto.js +6 -3
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +18 -1
- package/dist/models/financial-account-class.js +5 -1
- package/dist/models/financial-transaction-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +7 -0
- package/dist/models/financial-transaction-data-dto.js +1 -0
- package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
- package/dist/models/get-activation-snapshot-response-class.js +15 -0
- package/dist/models/index.d.ts +33 -1
- package/dist/models/index.js +33 -1
- package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
- package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-product-account-mappings-response-class.js +15 -0
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
- package/dist/models/opening-balance-item-dto.d.ts +41 -0
- package/dist/models/opening-balance-item-dto.js +20 -0
- package/dist/models/personal-account-class.d.ts +6 -0
- package/dist/models/personal-account-range-class.d.ts +42 -0
- package/dist/models/personal-account-range-class.js +21 -0
- package/dist/models/personal-account-range-dto.d.ts +42 -0
- package/dist/models/personal-account-range-dto.js +21 -0
- package/dist/models/post-financial-event-request-dto.d.ts +46 -0
- package/dist/models/post-financial-event-request-dto.js +25 -0
- package/dist/models/post-financial-event-response-class.d.ts +25 -0
- package/dist/models/post-financial-event-response-class.js +15 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
- package/dist/models/premium-item-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-class.d.ts +61 -0
- package/dist/models/product-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-risk-carrier-class.d.ts +42 -0
- package/dist/models/product-risk-carrier-class.js +15 -0
- package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-version-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
- package/dist/models/product-version-with-account-mappings-class.js +15 -0
- package/dist/models/product-with-account-mappings-class.d.ts +49 -0
- package/dist/models/product-with-account-mappings-class.js +15 -0
- package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-account-body-dto.js +15 -0
- package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-category-account-body-dto.js +15 -0
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
- package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-version-category-account-body-dto.js +15 -0
- package/dist/models/resolved-account-mapping-class.d.ts +31 -0
- package/dist/models/resolved-account-mapping-class.js +15 -0
- package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
- package/dist/models/resolved-commission-account-mapping-class.js +21 -0
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
- package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-type-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-body-dto.d.ts +6 -0
- package/models/account-mapping-class.ts +6 -3
- package/models/accounting-category-class.ts +12 -0
- package/models/accounting-config-class.ts +14 -0
- package/models/accounting-config-data-class.ts +7 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +12 -3
- package/models/accounting-config-data-dto.ts +7 -0
- package/models/booking-entry-class.ts +36 -0
- package/models/commission-account-mapping-class.ts +55 -0
- package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
- package/models/commission-agreement-partner-class.ts +36 -0
- package/models/commission-agreement-with-account-mapping-class.ts +49 -0
- package/models/commission-type-account-mapping-class.ts +37 -0
- package/models/create-booking-entry-request-dto.ts +19 -0
- package/models/create-financial-account-request-dto.ts +12 -3
- package/models/create-or-correct-opening-balance-dto.ts +31 -0
- package/models/create-or-correct-opening-balance-response-class.ts +31 -0
- package/models/financial-account-class.ts +19 -1
- package/models/financial-transaction-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +7 -0
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +33 -1
- package/models/list-commission-account-mappings-response-class.ts +49 -0
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
- package/models/list-commission-type-account-mappings-response-class.ts +49 -0
- package/models/list-product-account-mappings-response-class.ts +49 -0
- package/models/list-products-with-account-mappings-response-class.ts +49 -0
- package/models/opening-balance-item-dto.ts +50 -0
- package/models/personal-account-class.ts +6 -0
- package/models/personal-account-range-class.ts +51 -0
- package/models/personal-account-range-dto.ts +51 -0
- package/models/post-financial-event-request-dto.ts +55 -0
- package/models/post-financial-event-response-class.ts +31 -0
- package/models/premium-item-account-mapping-class.ts +43 -0
- package/models/product-account-mapping-class.ts +67 -0
- package/models/product-account-mapping-detail-class.ts +62 -0
- package/models/product-risk-carrier-class.ts +48 -0
- package/models/product-version-account-mapping-detail-class.ts +56 -0
- package/models/product-version-with-account-mappings-class.ts +48 -0
- package/models/product-with-account-mappings-class.ts +55 -0
- package/models/put-premium-item-account-body-dto.ts +30 -0
- package/models/put-product-category-account-body-dto.ts +30 -0
- package/models/put-product-risk-carrier-body-dto.ts +30 -0
- package/models/put-product-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/resolved-commission-account-mapping-class.ts +46 -0
- package/models/update-commission-agreement-account-body-dto.ts +30 -0
- package/models/update-commission-type-account-body-dto.ts +30 -0
- package/models/update-financial-account-body-dto.ts +6 -0
- package/package.json +2 -2
- package/dist/models/get-subledger-settings-response-class.d.ts +0 -36
- package/models/get-subledger-settings-response-class.ts +0 -42
- /package/dist/models/{get-subledger-settings-response-class.js → commission-account-mapping-class.js} +0 -0
|
@@ -103,9 +103,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
|
|
@@ -120,13 +121,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
createAndEnableSubledgerFromFile: function (file, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'file' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
|
|
@@ -170,13 +178,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
170
178
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
171
179
|
// authentication bearer required
|
|
172
180
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
174
185
|
case 1:
|
|
175
186
|
// authentication bearer required
|
|
176
187
|
// http bearer authentication required
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
194
|
}
|
|
181
195
|
if (file !== undefined) {
|
|
182
196
|
localVarFormParams.append('file', file);
|
|
@@ -203,9 +217,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
203
217
|
exportAccountingConfig: function (authorization, options) {
|
|
204
218
|
if (options === void 0) { options = {}; }
|
|
205
219
|
return __awaiter(_this, void 0, void 0, function () {
|
|
206
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
207
|
-
|
|
208
|
-
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
221
|
+
var _a;
|
|
222
|
+
return __generator(this, function (_b) {
|
|
223
|
+
switch (_b.label) {
|
|
209
224
|
case 0:
|
|
210
225
|
localVarPath = "/accountingservice/v1/subledger/config/export";
|
|
211
226
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -218,13 +233,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
218
233
|
localVarQueryParameter = {};
|
|
219
234
|
// authentication bearer required
|
|
220
235
|
// http bearer authentication required
|
|
221
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
236
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
237
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
238
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
239
|
+
];
|
|
222
240
|
case 1:
|
|
223
241
|
// authentication bearer required
|
|
224
242
|
// http bearer authentication required
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
243
|
+
_b.sent();
|
|
244
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
245
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
246
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
247
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
248
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
228
249
|
}
|
|
229
250
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
251
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -247,9 +268,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
247
268
|
getAccountingCategories: function (authorization, options) {
|
|
248
269
|
if (options === void 0) { options = {}; }
|
|
249
270
|
return __awaiter(_this, void 0, void 0, function () {
|
|
250
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
251
|
-
|
|
252
|
-
|
|
271
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
272
|
+
var _a;
|
|
273
|
+
return __generator(this, function (_b) {
|
|
274
|
+
switch (_b.label) {
|
|
253
275
|
case 0:
|
|
254
276
|
localVarPath = "/accountingservice/v1/subledger/categories";
|
|
255
277
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -262,13 +284,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
262
284
|
localVarQueryParameter = {};
|
|
263
285
|
// authentication bearer required
|
|
264
286
|
// http bearer authentication required
|
|
265
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
287
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
288
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
289
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
290
|
+
];
|
|
266
291
|
case 1:
|
|
267
292
|
// authentication bearer required
|
|
268
293
|
// http bearer authentication required
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
294
|
+
_b.sent();
|
|
295
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
296
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
297
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
298
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
299
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
272
300
|
}
|
|
273
301
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
274
302
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -282,20 +310,21 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
282
310
|
});
|
|
283
311
|
},
|
|
284
312
|
/**
|
|
285
|
-
* Returns the
|
|
286
|
-
* @summary Retrieve the get
|
|
313
|
+
* 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\"
|
|
314
|
+
* @summary Retrieve the get activation snapshot
|
|
287
315
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
288
316
|
* @param {*} [options] Override http request option.
|
|
289
317
|
* @throws {RequiredError}
|
|
290
318
|
*/
|
|
291
|
-
|
|
319
|
+
getActivationSnapshot: function (authorization, options) {
|
|
292
320
|
if (options === void 0) { options = {}; }
|
|
293
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
294
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
295
|
-
|
|
296
|
-
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
323
|
+
var _a;
|
|
324
|
+
return __generator(this, function (_b) {
|
|
325
|
+
switch (_b.label) {
|
|
297
326
|
case 0:
|
|
298
|
-
localVarPath = "/accountingservice/v1/subledger/
|
|
327
|
+
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
299
328
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
300
329
|
if (configuration) {
|
|
301
330
|
baseOptions = configuration.baseOptions;
|
|
@@ -306,13 +335,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
306
335
|
localVarQueryParameter = {};
|
|
307
336
|
// authentication bearer required
|
|
308
337
|
// http bearer authentication required
|
|
309
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
338
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
339
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
340
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
341
|
+
];
|
|
310
342
|
case 1:
|
|
311
343
|
// authentication bearer required
|
|
312
344
|
// http bearer authentication required
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
345
|
+
_b.sent();
|
|
346
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
347
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
348
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
349
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
316
351
|
}
|
|
317
352
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
353
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -335,9 +370,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
335
370
|
resetSubledger: function (authorization, options) {
|
|
336
371
|
if (options === void 0) { options = {}; }
|
|
337
372
|
return __awaiter(_this, void 0, void 0, function () {
|
|
338
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
339
|
-
|
|
340
|
-
|
|
373
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
374
|
+
var _a;
|
|
375
|
+
return __generator(this, function (_b) {
|
|
376
|
+
switch (_b.label) {
|
|
341
377
|
case 0:
|
|
342
378
|
localVarPath = "/accountingservice/v1/subledger/reset";
|
|
343
379
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -350,13 +386,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
350
386
|
localVarQueryParameter = {};
|
|
351
387
|
// authentication bearer required
|
|
352
388
|
// http bearer authentication required
|
|
353
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
389
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
390
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
391
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
392
|
+
];
|
|
354
393
|
case 1:
|
|
355
394
|
// authentication bearer required
|
|
356
395
|
// http bearer authentication required
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
396
|
+
_b.sent();
|
|
397
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
398
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
399
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
400
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
401
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
360
402
|
}
|
|
361
403
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
362
404
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -380,9 +422,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
380
422
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
381
423
|
if (options === void 0) { options = {}; }
|
|
382
424
|
return __awaiter(_this, void 0, void 0, function () {
|
|
383
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
384
|
-
|
|
385
|
-
|
|
425
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
426
|
+
var _a;
|
|
427
|
+
return __generator(this, function (_b) {
|
|
428
|
+
switch (_b.label) {
|
|
386
429
|
case 0:
|
|
387
430
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
388
431
|
(0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
|
|
@@ -397,13 +440,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
397
440
|
localVarQueryParameter = {};
|
|
398
441
|
// authentication bearer required
|
|
399
442
|
// http bearer authentication required
|
|
400
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
443
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
401
447
|
case 1:
|
|
402
448
|
// authentication bearer required
|
|
403
449
|
// http bearer authentication required
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
450
|
+
_b.sent();
|
|
451
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
452
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
453
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
454
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
455
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
407
456
|
}
|
|
408
457
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
409
458
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -429,9 +478,10 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
429
478
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
430
479
|
if (options === void 0) { options = {}; }
|
|
431
480
|
return __awaiter(_this, void 0, void 0, function () {
|
|
432
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
433
|
-
|
|
434
|
-
|
|
481
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
482
|
+
var _a;
|
|
483
|
+
return __generator(this, function (_b) {
|
|
484
|
+
switch (_b.label) {
|
|
435
485
|
case 0:
|
|
436
486
|
// verify required parameter 'file' is not null or undefined
|
|
437
487
|
(0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
|
|
@@ -447,13 +497,19 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
447
497
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
448
498
|
// authentication bearer required
|
|
449
499
|
// http bearer authentication required
|
|
450
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
500
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
501
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
502
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
503
|
+
];
|
|
451
504
|
case 1:
|
|
452
505
|
// authentication bearer required
|
|
453
506
|
// http bearer authentication required
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
507
|
+
_b.sent();
|
|
508
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
509
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
510
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
511
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
512
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
457
513
|
}
|
|
458
514
|
if (file !== undefined) {
|
|
459
515
|
localVarFormParams.append('file', file);
|
|
@@ -563,18 +619,18 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
563
619
|
});
|
|
564
620
|
},
|
|
565
621
|
/**
|
|
566
|
-
* Returns the
|
|
567
|
-
* @summary Retrieve the get
|
|
622
|
+
* 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\"
|
|
623
|
+
* @summary Retrieve the get activation snapshot
|
|
568
624
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
569
625
|
* @param {*} [options] Override http request option.
|
|
570
626
|
* @throws {RequiredError}
|
|
571
627
|
*/
|
|
572
|
-
|
|
628
|
+
getActivationSnapshot: function (authorization, options) {
|
|
573
629
|
return __awaiter(this, void 0, void 0, function () {
|
|
574
630
|
var localVarAxiosArgs;
|
|
575
631
|
return __generator(this, function (_a) {
|
|
576
632
|
switch (_a.label) {
|
|
577
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
633
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
|
|
578
634
|
case 1:
|
|
579
635
|
localVarAxiosArgs = _a.sent();
|
|
580
636
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -697,14 +753,14 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
697
753
|
return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
698
754
|
},
|
|
699
755
|
/**
|
|
700
|
-
* Returns the
|
|
701
|
-
* @summary Retrieve the get
|
|
756
|
+
* 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\"
|
|
757
|
+
* @summary Retrieve the get activation snapshot
|
|
702
758
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
703
759
|
* @param {*} [options] Override http request option.
|
|
704
760
|
* @throws {RequiredError}
|
|
705
761
|
*/
|
|
706
|
-
|
|
707
|
-
return localVarFp.
|
|
762
|
+
getActivationSnapshot: function (authorization, options) {
|
|
763
|
+
return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
708
764
|
},
|
|
709
765
|
/**
|
|
710
766
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -762,7 +818,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
762
818
|
*/
|
|
763
819
|
AccountingConfigsApi.prototype.createAndEnableSubledger = function (requestParameters, options) {
|
|
764
820
|
var _this = this;
|
|
765
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
821
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
766
822
|
};
|
|
767
823
|
/**
|
|
768
824
|
* This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
@@ -774,7 +830,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
774
830
|
*/
|
|
775
831
|
AccountingConfigsApi.prototype.createAndEnableSubledgerFromFile = function (requestParameters, options) {
|
|
776
832
|
var _this = this;
|
|
777
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
833
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
778
834
|
};
|
|
779
835
|
/**
|
|
780
836
|
* This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -787,7 +843,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
787
843
|
AccountingConfigsApi.prototype.exportAccountingConfig = function (requestParameters, options) {
|
|
788
844
|
var _this = this;
|
|
789
845
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
790
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
846
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).exportAccountingConfig(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
791
847
|
};
|
|
792
848
|
/**
|
|
793
849
|
* This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -800,20 +856,20 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
800
856
|
AccountingConfigsApi.prototype.getAccountingCategories = function (requestParameters, options) {
|
|
801
857
|
var _this = this;
|
|
802
858
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
803
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
859
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
804
860
|
};
|
|
805
861
|
/**
|
|
806
|
-
* Returns the
|
|
807
|
-
* @summary Retrieve the get
|
|
808
|
-
* @param {
|
|
862
|
+
* 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\"
|
|
863
|
+
* @summary Retrieve the get activation snapshot
|
|
864
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
809
865
|
* @param {*} [options] Override http request option.
|
|
810
866
|
* @throws {RequiredError}
|
|
811
867
|
* @memberof AccountingConfigsApi
|
|
812
868
|
*/
|
|
813
|
-
AccountingConfigsApi.prototype.
|
|
869
|
+
AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
|
|
814
870
|
var _this = this;
|
|
815
871
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
816
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).
|
|
872
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
817
873
|
};
|
|
818
874
|
/**
|
|
819
875
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -826,7 +882,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
826
882
|
AccountingConfigsApi.prototype.resetSubledger = function (requestParameters, options) {
|
|
827
883
|
var _this = this;
|
|
828
884
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
829
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).resetSubledger(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
885
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).resetSubledger(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
830
886
|
};
|
|
831
887
|
/**
|
|
832
888
|
* This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
@@ -838,7 +894,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
838
894
|
*/
|
|
839
895
|
AccountingConfigsApi.prototype.validateAccountingConfig = function (requestParameters, options) {
|
|
840
896
|
var _this = this;
|
|
841
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
897
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
842
898
|
};
|
|
843
899
|
/**
|
|
844
900
|
* This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
@@ -850,7 +906,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
850
906
|
*/
|
|
851
907
|
AccountingConfigsApi.prototype.validateAccountingConfigFromFile = function (requestParameters, options) {
|
|
852
908
|
var _this = this;
|
|
853
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
909
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
854
910
|
};
|
|
855
911
|
return AccountingConfigsApi;
|
|
856
912
|
}(base_1.BaseAPI));
|