@emilgroup/accounting-sdk 1.34.1-beta.9 → 1.34.1-beta.91
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 +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- 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 +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- 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 +22 -0
- package/dist/models/create-booking-entry-request-dto.js +10 -0
- package/dist/models/create-financial-account-request-dto.d.ts +8 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- 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 +3 -1
- 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 +9 -1
- 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 +25 -0
- package/models/create-financial-account-request-dto.ts +9 -1
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -5,11 +5,13 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/accounting-configs-api.ts
|
|
7
7
|
api/booking-entries-api.ts
|
|
8
|
+
api/commission-account-mappings-api.ts
|
|
8
9
|
api/financial-accounts-api.ts
|
|
9
10
|
api/financial-transactions-api.ts
|
|
10
11
|
api/health-api.ts
|
|
11
12
|
api/number-ranges-api.ts
|
|
12
13
|
api/personal-accounts-api.ts
|
|
14
|
+
api/product-account-mappings-api.ts
|
|
13
15
|
base.ts
|
|
14
16
|
common.ts
|
|
15
17
|
configuration.ts
|
|
@@ -24,6 +26,11 @@ models/accounting-config-data-dto-default-account-mappings.ts
|
|
|
24
26
|
models/accounting-config-data-dto.ts
|
|
25
27
|
models/accounting-configuration-class.ts
|
|
26
28
|
models/booking-entry-class.ts
|
|
29
|
+
models/commission-account-mapping-class.ts
|
|
30
|
+
models/commission-agreement-account-mapping-detail-class.ts
|
|
31
|
+
models/commission-agreement-partner-class.ts
|
|
32
|
+
models/commission-agreement-with-account-mapping-class.ts
|
|
33
|
+
models/commission-type-account-mapping-class.ts
|
|
27
34
|
models/create-and-enable-subledger-request-dto.ts
|
|
28
35
|
models/create-and-enable-subledger-response-class.ts
|
|
29
36
|
models/create-booking-entry-request-dto.ts
|
|
@@ -32,6 +39,8 @@ models/create-financial-account-request-dto.ts
|
|
|
32
39
|
models/create-financial-account-response-class.ts
|
|
33
40
|
models/create-number-range-request-dto.ts
|
|
34
41
|
models/create-number-range-response-class.ts
|
|
42
|
+
models/create-or-correct-opening-balance-dto.ts
|
|
43
|
+
models/create-or-correct-opening-balance-response-class.ts
|
|
35
44
|
models/create-personal-account-request-dto.ts
|
|
36
45
|
models/create-personal-account-response-class.ts
|
|
37
46
|
models/export-accounting-config-response-class.ts
|
|
@@ -39,22 +48,47 @@ models/financial-account-class.ts
|
|
|
39
48
|
models/financial-transaction-class.ts
|
|
40
49
|
models/financial-transaction-data-dto.ts
|
|
41
50
|
models/get-accounting-categories-response-class.ts
|
|
51
|
+
models/get-activation-snapshot-response-class.ts
|
|
42
52
|
models/get-booking-entry-response-class.ts
|
|
43
53
|
models/get-financial-account-response-class.ts
|
|
44
54
|
models/get-financial-transaction-response-class.ts
|
|
45
55
|
models/get-number-range-response-class.ts
|
|
46
56
|
models/get-personal-account-response-class.ts
|
|
47
|
-
models/get-subledger-settings-response-class.ts
|
|
48
57
|
models/index.ts
|
|
49
58
|
models/inline-response200.ts
|
|
50
59
|
models/inline-response503.ts
|
|
51
60
|
models/list-booking-entries-response-class.ts
|
|
61
|
+
models/list-commission-account-mappings-response-class.ts
|
|
62
|
+
models/list-commission-agreements-with-account-mappings-response-class.ts
|
|
63
|
+
models/list-commission-type-account-mappings-response-class.ts
|
|
52
64
|
models/list-financial-accounts-response-class.ts
|
|
53
65
|
models/list-financial-transactions-response-class.ts
|
|
54
66
|
models/list-number-range-response-class.ts
|
|
55
67
|
models/list-personal-accounts-response-class.ts
|
|
68
|
+
models/list-product-account-mappings-response-class.ts
|
|
69
|
+
models/list-products-with-account-mappings-response-class.ts
|
|
56
70
|
models/number-range-class.ts
|
|
71
|
+
models/opening-balance-item-dto.ts
|
|
57
72
|
models/personal-account-class.ts
|
|
73
|
+
models/personal-account-range-class.ts
|
|
74
|
+
models/personal-account-range-dto.ts
|
|
75
|
+
models/post-financial-event-request-dto.ts
|
|
76
|
+
models/post-financial-event-response-class.ts
|
|
77
|
+
models/premium-item-account-mapping-class.ts
|
|
78
|
+
models/product-account-mapping-class.ts
|
|
79
|
+
models/product-account-mapping-detail-class.ts
|
|
80
|
+
models/product-risk-carrier-class.ts
|
|
81
|
+
models/product-version-account-mapping-detail-class.ts
|
|
82
|
+
models/product-version-with-account-mappings-class.ts
|
|
83
|
+
models/product-with-account-mappings-class.ts
|
|
84
|
+
models/put-premium-item-account-body-dto.ts
|
|
85
|
+
models/put-product-category-account-body-dto.ts
|
|
86
|
+
models/put-product-risk-carrier-body-dto.ts
|
|
87
|
+
models/put-product-version-category-account-body-dto.ts
|
|
88
|
+
models/resolved-account-mapping-class.ts
|
|
89
|
+
models/resolved-commission-account-mapping-class.ts
|
|
90
|
+
models/update-commission-agreement-account-body-dto.ts
|
|
91
|
+
models/update-commission-type-account-body-dto.ts
|
|
58
92
|
models/update-financial-account-body-dto.ts
|
|
59
93
|
models/update-financial-account-response-class.ts
|
|
60
94
|
models/validate-accounting-config-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/accounting-sdk@1.34.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk@1.34.1-beta.91 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk@1.34.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk@1.34.1-beta.91
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -29,7 +29,7 @@ import { ExportAccountingConfigResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetAccountingCategoriesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { GetActivationSnapshotResponseClass } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ValidateAccountingConfigRequestDto } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
@@ -69,8 +69,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
73
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
74
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
75
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
77
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
|
|
@@ -117,8 +122,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
117
122
|
// http bearer authentication required
|
|
118
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
124
|
|
|
120
|
-
|
|
121
|
-
|
|
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
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
128
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
130
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
131
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
122
132
|
}
|
|
123
133
|
|
|
124
134
|
|
|
@@ -165,8 +175,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
165
175
|
// http bearer authentication required
|
|
166
176
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
167
177
|
|
|
168
|
-
|
|
169
|
-
|
|
178
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
179
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
180
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
181
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
182
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
183
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
184
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
170
185
|
}
|
|
171
186
|
|
|
172
187
|
|
|
@@ -206,8 +221,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
206
221
|
// http bearer authentication required
|
|
207
222
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
208
223
|
|
|
209
|
-
|
|
210
|
-
|
|
224
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
225
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
226
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
227
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
228
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
229
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
230
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
211
231
|
}
|
|
212
232
|
|
|
213
233
|
|
|
@@ -222,14 +242,14 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
222
242
|
};
|
|
223
243
|
},
|
|
224
244
|
/**
|
|
225
|
-
* Returns the
|
|
226
|
-
* @summary Retrieve the get
|
|
245
|
+
* 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\"
|
|
246
|
+
* @summary Retrieve the get activation snapshot
|
|
227
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
228
248
|
* @param {*} [options] Override http request option.
|
|
229
249
|
* @throws {RequiredError}
|
|
230
250
|
*/
|
|
231
|
-
|
|
232
|
-
const localVarPath = `/accountingservice/v1/subledger/
|
|
251
|
+
getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
252
|
+
const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
|
|
233
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
235
255
|
let baseOptions;
|
|
@@ -247,8 +267,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
247
267
|
// http bearer authentication required
|
|
248
268
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
249
269
|
|
|
250
|
-
|
|
251
|
-
|
|
270
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
271
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
272
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
273
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
274
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
275
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
276
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
252
277
|
}
|
|
253
278
|
|
|
254
279
|
|
|
@@ -288,8 +313,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
288
313
|
// http bearer authentication required
|
|
289
314
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
290
315
|
|
|
291
|
-
|
|
292
|
-
|
|
316
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
317
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
318
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
319
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
320
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
321
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
322
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
293
323
|
}
|
|
294
324
|
|
|
295
325
|
|
|
@@ -332,8 +362,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
332
362
|
// http bearer authentication required
|
|
333
363
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
334
364
|
|
|
335
|
-
|
|
336
|
-
|
|
365
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
366
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
367
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
368
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
369
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
370
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
371
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
337
372
|
}
|
|
338
373
|
|
|
339
374
|
|
|
@@ -380,8 +415,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
380
415
|
// http bearer authentication required
|
|
381
416
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
382
417
|
|
|
383
|
-
|
|
384
|
-
|
|
418
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
419
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
420
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
421
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
422
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
423
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
424
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
385
425
|
}
|
|
386
426
|
|
|
387
427
|
|
|
@@ -459,14 +499,14 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
459
499
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
460
500
|
},
|
|
461
501
|
/**
|
|
462
|
-
* Returns the
|
|
463
|
-
* @summary Retrieve the get
|
|
502
|
+
* 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\"
|
|
503
|
+
* @summary Retrieve the get activation snapshot
|
|
464
504
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
505
|
* @param {*} [options] Override http request option.
|
|
466
506
|
* @throws {RequiredError}
|
|
467
507
|
*/
|
|
468
|
-
async
|
|
469
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
508
|
+
async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
|
|
509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
|
|
470
510
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
511
|
},
|
|
472
512
|
/**
|
|
@@ -557,14 +597,14 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
|
|
|
557
597
|
return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
|
|
558
598
|
},
|
|
559
599
|
/**
|
|
560
|
-
* Returns the
|
|
561
|
-
* @summary Retrieve the get
|
|
600
|
+
* 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\"
|
|
601
|
+
* @summary Retrieve the get activation snapshot
|
|
562
602
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
563
603
|
* @param {*} [options] Override http request option.
|
|
564
604
|
* @throws {RequiredError}
|
|
565
605
|
*/
|
|
566
|
-
|
|
567
|
-
return localVarFp.
|
|
606
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
|
|
607
|
+
return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
|
|
568
608
|
},
|
|
569
609
|
/**
|
|
570
610
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -672,15 +712,15 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
672
712
|
}
|
|
673
713
|
|
|
674
714
|
/**
|
|
675
|
-
* Request parameters for
|
|
715
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
676
716
|
* @export
|
|
677
|
-
* @interface
|
|
717
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
678
718
|
*/
|
|
679
|
-
export interface
|
|
719
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
680
720
|
/**
|
|
681
721
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
682
722
|
* @type {string}
|
|
683
|
-
* @memberof
|
|
723
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
684
724
|
*/
|
|
685
725
|
readonly authorization?: string
|
|
686
726
|
}
|
|
@@ -757,7 +797,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
757
797
|
* @memberof AccountingConfigsApi
|
|
758
798
|
*/
|
|
759
799
|
public createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig) {
|
|
760
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
800
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
761
801
|
}
|
|
762
802
|
|
|
763
803
|
/**
|
|
@@ -769,7 +809,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
769
809
|
* @memberof AccountingConfigsApi
|
|
770
810
|
*/
|
|
771
811
|
public createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig) {
|
|
772
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
812
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
773
813
|
}
|
|
774
814
|
|
|
775
815
|
/**
|
|
@@ -781,7 +821,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
781
821
|
* @memberof AccountingConfigsApi
|
|
782
822
|
*/
|
|
783
823
|
public exportAccountingConfig(requestParameters: AccountingConfigsApiExportAccountingConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
784
|
-
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
824
|
+
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
785
825
|
}
|
|
786
826
|
|
|
787
827
|
/**
|
|
@@ -793,19 +833,19 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
793
833
|
* @memberof AccountingConfigsApi
|
|
794
834
|
*/
|
|
795
835
|
public getAccountingCategories(requestParameters: AccountingConfigsApiGetAccountingCategoriesRequest = {}, options?: AxiosRequestConfig) {
|
|
796
|
-
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
836
|
+
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
797
837
|
}
|
|
798
838
|
|
|
799
839
|
/**
|
|
800
|
-
* Returns the
|
|
801
|
-
* @summary Retrieve the get
|
|
802
|
-
* @param {
|
|
840
|
+
* 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\"
|
|
841
|
+
* @summary Retrieve the get activation snapshot
|
|
842
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
803
843
|
* @param {*} [options] Override http request option.
|
|
804
844
|
* @throws {RequiredError}
|
|
805
845
|
* @memberof AccountingConfigsApi
|
|
806
846
|
*/
|
|
807
|
-
public
|
|
808
|
-
return AccountingConfigsApiFp(this.configuration).
|
|
847
|
+
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
848
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
809
849
|
}
|
|
810
850
|
|
|
811
851
|
/**
|
|
@@ -817,7 +857,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
817
857
|
* @memberof AccountingConfigsApi
|
|
818
858
|
*/
|
|
819
859
|
public resetSubledger(requestParameters: AccountingConfigsApiResetSubledgerRequest = {}, options?: AxiosRequestConfig) {
|
|
820
|
-
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
860
|
+
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
821
861
|
}
|
|
822
862
|
|
|
823
863
|
/**
|
|
@@ -829,7 +869,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
829
869
|
* @memberof AccountingConfigsApi
|
|
830
870
|
*/
|
|
831
871
|
public validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig) {
|
|
832
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
872
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
833
873
|
}
|
|
834
874
|
|
|
835
875
|
/**
|
|
@@ -841,6 +881,6 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
841
881
|
* @memberof AccountingConfigsApi
|
|
842
882
|
*/
|
|
843
883
|
public validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig) {
|
|
844
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
884
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
845
885
|
}
|
|
846
886
|
}
|