@emilgroup/accounting-sdk-node 1.32.1-beta.1 → 1.32.1-beta.101
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 +37 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +158 -28
- package/api/booking-entries-api.ts +252 -13
- package/api/commission-account-mappings-api.ts +1235 -0
- package/api/financial-accounts-api.ts +169 -24
- 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 +1755 -0
- package/api.ts +4 -0
- package/base.ts +4 -0
- package/common.ts +3 -2
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +206 -63
- 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 +1055 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +168 -40
- 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 +1497 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -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-account-mapping-class.js +15 -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 +14 -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 +30 -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 +35 -0
- package/dist/models/index.js +35 -0
- 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 +48 -0
- package/dist/models/update-financial-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-response-class.d.ts +25 -0
- package/dist/models/update-financial-account-response-class.js +15 -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 +15 -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 +31 -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 +35 -0
- 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 +54 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +2 -2
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,6 +48,7 @@ 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
|
|
@@ -48,12 +58,39 @@ models/index.ts
|
|
|
48
58
|
models/inline-response200.ts
|
|
49
59
|
models/inline-response503.ts
|
|
50
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
|
|
51
64
|
models/list-financial-accounts-response-class.ts
|
|
52
65
|
models/list-financial-transactions-response-class.ts
|
|
53
66
|
models/list-number-range-response-class.ts
|
|
54
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
|
|
55
70
|
models/number-range-class.ts
|
|
71
|
+
models/opening-balance-item-dto.ts
|
|
56
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
|
|
92
|
+
models/update-financial-account-body-dto.ts
|
|
93
|
+
models/update-financial-account-response-class.ts
|
|
57
94
|
models/validate-accounting-config-request-dto.ts
|
|
58
95
|
models/validate-accounting-config-response-class.ts
|
|
59
96
|
package.json
|
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-node@1.32.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk-node@1.32.1-beta.101 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.101
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -29,6 +29,8 @@ import { ExportAccountingConfigResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetAccountingCategoriesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { GetActivationSnapshotResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { ValidateAccountingConfigRequestDto } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
36
|
import { ValidateAccountingConfigResponseClass } from '../models';
|
|
@@ -53,7 +55,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
53
55
|
createAndEnableSubledger: async (createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
56
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
55
57
|
assertParamExists('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto)
|
|
56
|
-
const localVarPath = `/accountingservice/v1/
|
|
58
|
+
const localVarPath = `/accountingservice/v1/subledger`;
|
|
57
59
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
60
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
61
|
let baseOptions;
|
|
@@ -71,8 +73,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
71
73
|
// http bearer authentication required
|
|
72
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
75
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
77
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
78
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
79
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
80
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
81
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
82
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
|
|
@@ -100,7 +107,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
100
107
|
createAndEnableSubledgerFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
108
|
// verify required parameter 'file' is not null or undefined
|
|
102
109
|
assertParamExists('createAndEnableSubledgerFromFile', 'file', file)
|
|
103
|
-
const localVarPath = `/accountingservice/v1/
|
|
110
|
+
const localVarPath = `/accountingservice/v1/subledger/upload`;
|
|
104
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
112
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
113
|
let baseOptions;
|
|
@@ -119,8 +126,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
119
126
|
// http bearer authentication required
|
|
120
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
128
|
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
134
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
136
|
}
|
|
125
137
|
|
|
126
138
|
|
|
@@ -150,7 +162,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
150
162
|
* @throws {RequiredError}
|
|
151
163
|
*/
|
|
152
164
|
exportAccountingConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
153
|
-
const localVarPath = `/accountingservice/v1/
|
|
165
|
+
const localVarPath = `/accountingservice/v1/subledger/config/export`;
|
|
154
166
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
167
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
168
|
let baseOptions;
|
|
@@ -168,8 +180,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
168
180
|
// http bearer authentication required
|
|
169
181
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
182
|
|
|
171
|
-
|
|
172
|
-
|
|
183
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
184
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
185
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
186
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
187
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
188
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
173
190
|
}
|
|
174
191
|
|
|
175
192
|
|
|
@@ -191,7 +208,53 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
191
208
|
* @throws {RequiredError}
|
|
192
209
|
*/
|
|
193
210
|
getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
194
|
-
const localVarPath = `/accountingservice/v1/
|
|
211
|
+
const localVarPath = `/accountingservice/v1/subledger/categories`;
|
|
212
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
214
|
+
let baseOptions;
|
|
215
|
+
let baseAccessToken;
|
|
216
|
+
if (configuration) {
|
|
217
|
+
baseOptions = configuration.baseOptions;
|
|
218
|
+
baseAccessToken = configuration.accessToken;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
222
|
+
const localVarHeaderParameter = {} as any;
|
|
223
|
+
const localVarQueryParameter = {} as any;
|
|
224
|
+
|
|
225
|
+
// authentication bearer required
|
|
226
|
+
// http bearer authentication required
|
|
227
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
228
|
+
|
|
229
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
230
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
231
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
232
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
233
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
234
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
235
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
241
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
url: toPathString(localVarUrlObj),
|
|
246
|
+
options: localVarRequestOptions,
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* 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\"
|
|
251
|
+
* @summary Retrieve the get activation snapshot
|
|
252
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
*/
|
|
256
|
+
getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
257
|
+
const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
|
|
195
258
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
259
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
260
|
let baseOptions;
|
|
@@ -209,8 +272,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
209
272
|
// http bearer authentication required
|
|
210
273
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
211
274
|
|
|
212
|
-
|
|
213
|
-
|
|
275
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
276
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
277
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
278
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
279
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
280
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
281
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
214
282
|
}
|
|
215
283
|
|
|
216
284
|
|
|
@@ -232,7 +300,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
232
300
|
* @throws {RequiredError}
|
|
233
301
|
*/
|
|
234
302
|
resetSubledger: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
235
|
-
const localVarPath = `/accountingservice/v1/
|
|
303
|
+
const localVarPath = `/accountingservice/v1/subledger/reset`;
|
|
236
304
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
305
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
238
306
|
let baseOptions;
|
|
@@ -250,8 +318,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
250
318
|
// http bearer authentication required
|
|
251
319
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
252
320
|
|
|
253
|
-
|
|
254
|
-
|
|
321
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
322
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
323
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
324
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
325
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
326
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
327
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
255
328
|
}
|
|
256
329
|
|
|
257
330
|
|
|
@@ -276,7 +349,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
276
349
|
validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
277
350
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
278
351
|
assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
|
|
279
|
-
const localVarPath = `/accountingservice/v1/
|
|
352
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate`;
|
|
280
353
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
354
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
355
|
let baseOptions;
|
|
@@ -294,8 +367,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
294
367
|
// http bearer authentication required
|
|
295
368
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
296
369
|
|
|
297
|
-
|
|
298
|
-
|
|
370
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
371
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
372
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
373
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
374
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
375
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
376
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
299
377
|
}
|
|
300
378
|
|
|
301
379
|
|
|
@@ -323,7 +401,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
323
401
|
validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
324
402
|
// verify required parameter 'file' is not null or undefined
|
|
325
403
|
assertParamExists('validateAccountingConfigFromFile', 'file', file)
|
|
326
|
-
const localVarPath = `/accountingservice/v1/
|
|
404
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate/upload`;
|
|
327
405
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
328
406
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
329
407
|
let baseOptions;
|
|
@@ -342,8 +420,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
342
420
|
// http bearer authentication required
|
|
343
421
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
344
422
|
|
|
345
|
-
|
|
346
|
-
|
|
423
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
424
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
425
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
426
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
427
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
428
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
429
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
347
430
|
}
|
|
348
431
|
|
|
349
432
|
|
|
@@ -421,6 +504,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
421
504
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
|
|
422
505
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
423
506
|
},
|
|
507
|
+
/**
|
|
508
|
+
* 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\"
|
|
509
|
+
* @summary Retrieve the get activation snapshot
|
|
510
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
511
|
+
* @param {*} [options] Override http request option.
|
|
512
|
+
* @throws {RequiredError}
|
|
513
|
+
*/
|
|
514
|
+
async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
|
|
515
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
|
|
516
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
517
|
+
},
|
|
424
518
|
/**
|
|
425
519
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
426
520
|
* @summary Delete the reset subledger
|
|
@@ -508,6 +602,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
|
|
|
508
602
|
getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
|
|
509
603
|
return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
|
|
510
604
|
},
|
|
605
|
+
/**
|
|
606
|
+
* 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\"
|
|
607
|
+
* @summary Retrieve the get activation snapshot
|
|
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
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
|
|
613
|
+
return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
|
|
614
|
+
},
|
|
511
615
|
/**
|
|
512
616
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
513
617
|
* @summary Delete the reset subledger
|
|
@@ -613,6 +717,20 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
613
717
|
readonly authorization?: string
|
|
614
718
|
}
|
|
615
719
|
|
|
720
|
+
/**
|
|
721
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
722
|
+
* @export
|
|
723
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
724
|
+
*/
|
|
725
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
726
|
+
/**
|
|
727
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
728
|
+
* @type {string}
|
|
729
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
730
|
+
*/
|
|
731
|
+
readonly authorization?: string
|
|
732
|
+
}
|
|
733
|
+
|
|
616
734
|
/**
|
|
617
735
|
* Request parameters for resetSubledger operation in AccountingConfigsApi.
|
|
618
736
|
* @export
|
|
@@ -685,7 +803,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
685
803
|
* @memberof AccountingConfigsApi
|
|
686
804
|
*/
|
|
687
805
|
public createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig) {
|
|
688
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
806
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
689
807
|
}
|
|
690
808
|
|
|
691
809
|
/**
|
|
@@ -697,7 +815,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
697
815
|
* @memberof AccountingConfigsApi
|
|
698
816
|
*/
|
|
699
817
|
public createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig) {
|
|
700
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
818
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
701
819
|
}
|
|
702
820
|
|
|
703
821
|
/**
|
|
@@ -709,7 +827,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
709
827
|
* @memberof AccountingConfigsApi
|
|
710
828
|
*/
|
|
711
829
|
public exportAccountingConfig(requestParameters: AccountingConfigsApiExportAccountingConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
712
|
-
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
830
|
+
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
713
831
|
}
|
|
714
832
|
|
|
715
833
|
/**
|
|
@@ -721,7 +839,19 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
721
839
|
* @memberof AccountingConfigsApi
|
|
722
840
|
*/
|
|
723
841
|
public getAccountingCategories(requestParameters: AccountingConfigsApiGetAccountingCategoriesRequest = {}, options?: AxiosRequestConfig) {
|
|
724
|
-
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
842
|
+
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* 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\"
|
|
847
|
+
* @summary Retrieve the get activation snapshot
|
|
848
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
* @memberof AccountingConfigsApi
|
|
852
|
+
*/
|
|
853
|
+
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
854
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
725
855
|
}
|
|
726
856
|
|
|
727
857
|
/**
|
|
@@ -733,7 +863,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
733
863
|
* @memberof AccountingConfigsApi
|
|
734
864
|
*/
|
|
735
865
|
public resetSubledger(requestParameters: AccountingConfigsApiResetSubledgerRequest = {}, options?: AxiosRequestConfig) {
|
|
736
|
-
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
866
|
+
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
737
867
|
}
|
|
738
868
|
|
|
739
869
|
/**
|
|
@@ -745,7 +875,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
745
875
|
* @memberof AccountingConfigsApi
|
|
746
876
|
*/
|
|
747
877
|
public validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig) {
|
|
748
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
878
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
749
879
|
}
|
|
750
880
|
|
|
751
881
|
/**
|
|
@@ -757,6 +887,6 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
757
887
|
* @memberof AccountingConfigsApi
|
|
758
888
|
*/
|
|
759
889
|
public validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig) {
|
|
760
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
890
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
761
891
|
}
|
|
762
892
|
}
|