@emilgroup/accounting-sdk 1.34.1-beta.15 → 1.34.1-beta.17

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.
@@ -3,6 +3,7 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
+ api/account-mappings-api.ts
6
7
  api/accounting-configs-api.ts
7
8
  api/booking-entries-api.ts
8
9
  api/financial-accounts-api.ts
@@ -39,15 +40,16 @@ models/financial-account-class.ts
39
40
  models/financial-transaction-class.ts
40
41
  models/financial-transaction-data-dto.ts
41
42
  models/get-accounting-categories-response-class.ts
43
+ models/get-activation-snapshot-response-class.ts
42
44
  models/get-booking-entry-response-class.ts
43
45
  models/get-financial-account-response-class.ts
44
46
  models/get-financial-transaction-response-class.ts
45
47
  models/get-number-range-response-class.ts
46
48
  models/get-personal-account-response-class.ts
47
- models/get-subledger-settings-response-class.ts
48
49
  models/index.ts
49
50
  models/inline-response200.ts
50
51
  models/inline-response503.ts
52
+ models/list-account-mappings-response-class.ts
51
53
  models/list-booking-entries-response-class.ts
52
54
  models/list-financial-accounts-response-class.ts
53
55
  models/list-financial-transactions-response-class.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.15 --save
20
+ npm install @emilgroup/accounting-sdk@1.34.1-beta.17 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.34.1-beta.15
24
+ yarn add @emilgroup/accounting-sdk@1.34.1-beta.17
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -0,0 +1,246 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { ListAccountMappingsResponseClass } from '../models';
25
+ /**
26
+ * AccountMappingsApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export const AccountMappingsApiAxiosParamCreator = function (configuration?: Configuration) {
30
+ return {
31
+ /**
32
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
33
+ * @summary List Account Mappings
34
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
35
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
36
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
37
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: type, key, subKey</i>
38
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
39
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, type, key, subKey</i>
40
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount<i>
41
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: type, key, subKey</i>
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ listAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ const localVarPath = `/accountingservice/v1/account-mappings`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ let baseAccessToken;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ baseAccessToken = configuration.accessToken;
54
+ }
55
+
56
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57
+ const localVarHeaderParameter = {} as any;
58
+ const localVarQueryParameter = {} as any;
59
+
60
+ // authentication bearer required
61
+ // http bearer authentication required
62
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
63
+
64
+ if (pageSize !== undefined) {
65
+ localVarQueryParameter['pageSize'] = pageSize;
66
+ }
67
+
68
+ if (pageToken !== undefined) {
69
+ localVarQueryParameter['pageToken'] = pageToken;
70
+ }
71
+
72
+ if (filter !== undefined) {
73
+ localVarQueryParameter['filter'] = filter;
74
+ }
75
+
76
+ if (search !== undefined) {
77
+ localVarQueryParameter['search'] = search;
78
+ }
79
+
80
+ if (order !== undefined) {
81
+ localVarQueryParameter['order'] = order;
82
+ }
83
+
84
+ if (expand !== undefined) {
85
+ localVarQueryParameter['expand'] = expand;
86
+ }
87
+
88
+ if (filters !== undefined) {
89
+ localVarQueryParameter['filters'] = filters;
90
+ }
91
+
92
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
93
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
94
+ }
95
+
96
+
97
+
98
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
99
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
101
+
102
+ return {
103
+ url: toPathString(localVarUrlObj),
104
+ options: localVarRequestOptions,
105
+ };
106
+ },
107
+ }
108
+ };
109
+
110
+ /**
111
+ * AccountMappingsApi - functional programming interface
112
+ * @export
113
+ */
114
+ export const AccountMappingsApiFp = function(configuration?: Configuration) {
115
+ const localVarAxiosParamCreator = AccountMappingsApiAxiosParamCreator(configuration)
116
+ return {
117
+ /**
118
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
119
+ * @summary List Account Mappings
120
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
121
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
122
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
123
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
124
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
125
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
126
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
127
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ async listAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountMappingsResponseClass>> {
132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
133
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
134
+ },
135
+ }
136
+ };
137
+
138
+ /**
139
+ * AccountMappingsApi - factory interface
140
+ * @export
141
+ */
142
+ export const AccountMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
143
+ const localVarFp = AccountMappingsApiFp(configuration)
144
+ return {
145
+ /**
146
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
147
+ * @summary List Account Mappings
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
150
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
151
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
152
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
153
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
154
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
155
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ listAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListAccountMappingsResponseClass> {
160
+ return localVarFp.listAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
161
+ },
162
+ };
163
+ };
164
+
165
+ /**
166
+ * Request parameters for listAccountMappings operation in AccountMappingsApi.
167
+ * @export
168
+ * @interface AccountMappingsApiListAccountMappingsRequest
169
+ */
170
+ export interface AccountMappingsApiListAccountMappingsRequest {
171
+ /**
172
+ * Bearer Token: provided by the login endpoint under the name accessToken.
173
+ * @type {string}
174
+ * @memberof AccountMappingsApiListAccountMappings
175
+ */
176
+ readonly authorization?: string
177
+
178
+ /**
179
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
180
+ * @type {number}
181
+ * @memberof AccountMappingsApiListAccountMappings
182
+ */
183
+ readonly pageSize?: number
184
+
185
+ /**
186
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
187
+ * @type {string}
188
+ * @memberof AccountMappingsApiListAccountMappings
189
+ */
190
+ readonly pageToken?: string
191
+
192
+ /**
193
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
194
+ * @type {string}
195
+ * @memberof AccountMappingsApiListAccountMappings
196
+ */
197
+ readonly filter?: string
198
+
199
+ /**
200
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
201
+ * @type {string}
202
+ * @memberof AccountMappingsApiListAccountMappings
203
+ */
204
+ readonly search?: string
205
+
206
+ /**
207
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
208
+ * @type {string}
209
+ * @memberof AccountMappingsApiListAccountMappings
210
+ */
211
+ readonly order?: string
212
+
213
+ /**
214
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
215
+ * @type {string}
216
+ * @memberof AccountMappingsApiListAccountMappings
217
+ */
218
+ readonly expand?: string
219
+
220
+ /**
221
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
222
+ * @type {string}
223
+ * @memberof AccountMappingsApiListAccountMappings
224
+ */
225
+ readonly filters?: string
226
+ }
227
+
228
+ /**
229
+ * AccountMappingsApi - object-oriented interface
230
+ * @export
231
+ * @class AccountMappingsApi
232
+ * @extends {BaseAPI}
233
+ */
234
+ export class AccountMappingsApi extends BaseAPI {
235
+ /**
236
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
237
+ * @summary List Account Mappings
238
+ * @param {AccountMappingsApiListAccountMappingsRequest} requestParameters Request parameters.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ * @memberof AccountMappingsApi
242
+ */
243
+ public listAccountMappings(requestParameters: AccountMappingsApiListAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
244
+ return AccountMappingsApiFp(this.configuration).listAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
245
+ }
246
+ }
@@ -29,7 +29,7 @@ import { ExportAccountingConfigResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { GetAccountingCategoriesResponseClass } from '../models';
31
31
  // @ts-ignore
32
- import { GetSubledgerSettingsResponseClass } from '../models';
32
+ import { GetActivationSnapshotResponseClass } from '../models';
33
33
  // @ts-ignore
34
34
  import { ValidateAccountingConfigRequestDto } from '../models';
35
35
  // @ts-ignore
@@ -222,14 +222,14 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
222
222
  };
223
223
  },
224
224
  /**
225
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
226
- * @summary Retrieve the get subledger settings
225
+ * 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\"
226
+ * @summary Retrieve the get activation snapshot
227
227
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
228
228
  * @param {*} [options] Override http request option.
229
229
  * @throws {RequiredError}
230
230
  */
231
- getSubledgerSettings: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
232
- const localVarPath = `/accountingservice/v1/subledger/settings`;
231
+ getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
232
+ const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
233
233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
234
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
235
  let baseOptions;
@@ -459,14 +459,14 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
459
459
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
460
460
  },
461
461
  /**
462
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
463
- * @summary Retrieve the get subledger settings
462
+ * 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\"
463
+ * @summary Retrieve the get activation snapshot
464
464
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
465
  * @param {*} [options] Override http request option.
466
466
  * @throws {RequiredError}
467
467
  */
468
- async getSubledgerSettings(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubledgerSettingsResponseClass>> {
469
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubledgerSettings(authorization, options);
468
+ async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
469
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
470
470
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
471
471
  },
472
472
  /**
@@ -557,14 +557,14 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
557
557
  return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
558
558
  },
559
559
  /**
560
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
561
- * @summary Retrieve the get subledger settings
560
+ * 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\"
561
+ * @summary Retrieve the get activation snapshot
562
562
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
563
563
  * @param {*} [options] Override http request option.
564
564
  * @throws {RequiredError}
565
565
  */
566
- getSubledgerSettings(authorization?: string, options?: any): AxiosPromise<GetSubledgerSettingsResponseClass> {
567
- return localVarFp.getSubledgerSettings(authorization, options).then((request) => request(axios, basePath));
566
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
567
+ return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
568
568
  },
569
569
  /**
570
570
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -672,15 +672,15 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
672
672
  }
673
673
 
674
674
  /**
675
- * Request parameters for getSubledgerSettings operation in AccountingConfigsApi.
675
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
676
676
  * @export
677
- * @interface AccountingConfigsApiGetSubledgerSettingsRequest
677
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
678
678
  */
679
- export interface AccountingConfigsApiGetSubledgerSettingsRequest {
679
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
680
680
  /**
681
681
  * Bearer Token: provided by the login endpoint under the name accessToken.
682
682
  * @type {string}
683
- * @memberof AccountingConfigsApiGetSubledgerSettings
683
+ * @memberof AccountingConfigsApiGetActivationSnapshot
684
684
  */
685
685
  readonly authorization?: string
686
686
  }
@@ -797,15 +797,15 @@ export class AccountingConfigsApi extends BaseAPI {
797
797
  }
798
798
 
799
799
  /**
800
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
801
- * @summary Retrieve the get subledger settings
802
- * @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
800
+ * 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\"
801
+ * @summary Retrieve the get activation snapshot
802
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
803
803
  * @param {*} [options] Override http request option.
804
804
  * @throws {RequiredError}
805
805
  * @memberof AccountingConfigsApi
806
806
  */
807
- public getSubledgerSettings(requestParameters: AccountingConfigsApiGetSubledgerSettingsRequest = {}, options?: AxiosRequestConfig) {
808
- return AccountingConfigsApiFp(this.configuration).getSubledgerSettings(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
807
+ public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
808
+ return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
809
809
  }
810
810
 
811
811
  /**
package/api.ts CHANGED
@@ -20,6 +20,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
+ import { AccountMappingsApi } from './api';
23
24
  import { AccountingConfigsApi } from './api';
24
25
  import { BookingEntriesApi } from './api';
25
26
  import { FinancialAccountsApi } from './api';
@@ -29,6 +30,7 @@ import { NumberRangesApi } from './api';
29
30
  import { PersonalAccountsApi } from './api';
30
31
 
31
32
 
33
+ export * from './api/account-mappings-api';
32
34
  export * from './api/accounting-configs-api';
33
35
  export * from './api/booking-entries-api';
34
36
  export * from './api/financial-accounts-api';
@@ -0,0 +1,150 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ListAccountMappingsResponseClass } from '../models';
16
+ /**
17
+ * AccountMappingsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const AccountMappingsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
23
+ * @summary List Account Mappings
24
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
25
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
26
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
27
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
28
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
29
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
30
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
31
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ listAccountMappings: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ };
37
+ /**
38
+ * AccountMappingsApi - functional programming interface
39
+ * @export
40
+ */
41
+ export declare const AccountMappingsApiFp: (configuration?: Configuration) => {
42
+ /**
43
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
44
+ * @summary List Account Mappings
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
47
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
48
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
49
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
50
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
51
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
52
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ listAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountMappingsResponseClass>>;
57
+ };
58
+ /**
59
+ * AccountMappingsApi - factory interface
60
+ * @export
61
+ */
62
+ export declare const AccountMappingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
63
+ /**
64
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
65
+ * @summary List Account Mappings
66
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
67
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
68
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
69
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
70
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
71
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
72
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
73
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ listAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListAccountMappingsResponseClass>;
78
+ };
79
+ /**
80
+ * Request parameters for listAccountMappings operation in AccountMappingsApi.
81
+ * @export
82
+ * @interface AccountMappingsApiListAccountMappingsRequest
83
+ */
84
+ export interface AccountMappingsApiListAccountMappingsRequest {
85
+ /**
86
+ * Bearer Token: provided by the login endpoint under the name accessToken.
87
+ * @type {string}
88
+ * @memberof AccountMappingsApiListAccountMappings
89
+ */
90
+ readonly authorization?: string;
91
+ /**
92
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
93
+ * @type {number}
94
+ * @memberof AccountMappingsApiListAccountMappings
95
+ */
96
+ readonly pageSize?: number;
97
+ /**
98
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
99
+ * @type {string}
100
+ * @memberof AccountMappingsApiListAccountMappings
101
+ */
102
+ readonly pageToken?: string;
103
+ /**
104
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
105
+ * @type {string}
106
+ * @memberof AccountMappingsApiListAccountMappings
107
+ */
108
+ readonly filter?: string;
109
+ /**
110
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
111
+ * @type {string}
112
+ * @memberof AccountMappingsApiListAccountMappings
113
+ */
114
+ readonly search?: string;
115
+ /**
116
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
117
+ * @type {string}
118
+ * @memberof AccountMappingsApiListAccountMappings
119
+ */
120
+ readonly order?: string;
121
+ /**
122
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
123
+ * @type {string}
124
+ * @memberof AccountMappingsApiListAccountMappings
125
+ */
126
+ readonly expand?: string;
127
+ /**
128
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
129
+ * @type {string}
130
+ * @memberof AccountMappingsApiListAccountMappings
131
+ */
132
+ readonly filters?: string;
133
+ }
134
+ /**
135
+ * AccountMappingsApi - object-oriented interface
136
+ * @export
137
+ * @class AccountMappingsApi
138
+ * @extends {BaseAPI}
139
+ */
140
+ export declare class AccountMappingsApi extends BaseAPI {
141
+ /**
142
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
143
+ * @summary List Account Mappings
144
+ * @param {AccountMappingsApiListAccountMappingsRequest} requestParameters Request parameters.
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ * @memberof AccountMappingsApi
148
+ */
149
+ listAccountMappings(requestParameters?: AccountMappingsApiListAccountMappingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountMappingsResponseClass, any, {}>>;
150
+ }