@emilgroup/accounting-sdk-node 1.32.1-beta.15 → 1.32.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-node@1.32.1-beta.15 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.32.1-beta.17 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.15
24
+ yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.17
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -0,0 +1,250 @@
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
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * AccountMappingsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const AccountMappingsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * 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\"
37
+ * @summary List Account Mappings
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
40
+ * @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.
41
+ * @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>
42
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
43
+ * @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>
44
+ * @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>
45
+ * @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>
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ listAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ const localVarPath = `/accountingservice/v1/account-mappings`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ let baseAccessToken;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ baseAccessToken = configuration.accessToken;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication bearer required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ if (pageSize !== undefined) {
69
+ localVarQueryParameter['pageSize'] = pageSize;
70
+ }
71
+
72
+ if (pageToken !== undefined) {
73
+ localVarQueryParameter['pageToken'] = pageToken;
74
+ }
75
+
76
+ if (filter !== undefined) {
77
+ localVarQueryParameter['filter'] = filter;
78
+ }
79
+
80
+ if (search !== undefined) {
81
+ localVarQueryParameter['search'] = search;
82
+ }
83
+
84
+ if (order !== undefined) {
85
+ localVarQueryParameter['order'] = order;
86
+ }
87
+
88
+ if (expand !== undefined) {
89
+ localVarQueryParameter['expand'] = expand;
90
+ }
91
+
92
+ if (filters !== undefined) {
93
+ localVarQueryParameter['filters'] = filters;
94
+ }
95
+
96
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
98
+ }
99
+
100
+
101
+
102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
105
+
106
+ return {
107
+ url: toPathString(localVarUrlObj),
108
+ options: localVarRequestOptions,
109
+ };
110
+ },
111
+ }
112
+ };
113
+
114
+ /**
115
+ * AccountMappingsApi - functional programming interface
116
+ * @export
117
+ */
118
+ export const AccountMappingsApiFp = function(configuration?: Configuration) {
119
+ const localVarAxiosParamCreator = AccountMappingsApiAxiosParamCreator(configuration)
120
+ return {
121
+ /**
122
+ * 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\"
123
+ * @summary List Account Mappings
124
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
125
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
126
+ * @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.
127
+ * @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;
128
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
129
+ * @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;
130
+ * @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;
131
+ * @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;
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ 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>> {
136
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
137
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
138
+ },
139
+ }
140
+ };
141
+
142
+ /**
143
+ * AccountMappingsApi - factory interface
144
+ * @export
145
+ */
146
+ export const AccountMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
147
+ const localVarFp = AccountMappingsApiFp(configuration)
148
+ return {
149
+ /**
150
+ * 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\"
151
+ * @summary List Account Mappings
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
154
+ * @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.
155
+ * @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;
156
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
157
+ * @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;
158
+ * @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;
159
+ * @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;
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ listAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListAccountMappingsResponseClass> {
164
+ return localVarFp.listAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
165
+ },
166
+ };
167
+ };
168
+
169
+ /**
170
+ * Request parameters for listAccountMappings operation in AccountMappingsApi.
171
+ * @export
172
+ * @interface AccountMappingsApiListAccountMappingsRequest
173
+ */
174
+ export interface AccountMappingsApiListAccountMappingsRequest {
175
+ /**
176
+ * Bearer Token: provided by the login endpoint under the name accessToken.
177
+ * @type {string}
178
+ * @memberof AccountMappingsApiListAccountMappings
179
+ */
180
+ readonly authorization?: string
181
+
182
+ /**
183
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
184
+ * @type {number}
185
+ * @memberof AccountMappingsApiListAccountMappings
186
+ */
187
+ readonly pageSize?: number
188
+
189
+ /**
190
+ * 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.
191
+ * @type {string}
192
+ * @memberof AccountMappingsApiListAccountMappings
193
+ */
194
+ readonly pageToken?: string
195
+
196
+ /**
197
+ * 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;
198
+ * @type {string}
199
+ * @memberof AccountMappingsApiListAccountMappings
200
+ */
201
+ readonly filter?: string
202
+
203
+ /**
204
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
205
+ * @type {string}
206
+ * @memberof AccountMappingsApiListAccountMappings
207
+ */
208
+ readonly search?: string
209
+
210
+ /**
211
+ * 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;
212
+ * @type {string}
213
+ * @memberof AccountMappingsApiListAccountMappings
214
+ */
215
+ readonly order?: string
216
+
217
+ /**
218
+ * 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;
219
+ * @type {string}
220
+ * @memberof AccountMappingsApiListAccountMappings
221
+ */
222
+ readonly expand?: string
223
+
224
+ /**
225
+ * 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;
226
+ * @type {string}
227
+ * @memberof AccountMappingsApiListAccountMappings
228
+ */
229
+ readonly filters?: string
230
+ }
231
+
232
+ /**
233
+ * AccountMappingsApi - object-oriented interface
234
+ * @export
235
+ * @class AccountMappingsApi
236
+ * @extends {BaseAPI}
237
+ */
238
+ export class AccountMappingsApi extends BaseAPI {
239
+ /**
240
+ * 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\"
241
+ * @summary List Account Mappings
242
+ * @param {AccountMappingsApiListAccountMappingsRequest} requestParameters Request parameters.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof AccountMappingsApi
246
+ */
247
+ public listAccountMappings(requestParameters: AccountMappingsApiListAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
248
+ 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));
249
+ }
250
+ }
@@ -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
@@ -227,14 +227,14 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
227
227
  };
228
228
  },
229
229
  /**
230
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
231
- * @summary Retrieve the get subledger settings
230
+ * 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\"
231
+ * @summary Retrieve the get activation snapshot
232
232
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
233
233
  * @param {*} [options] Override http request option.
234
234
  * @throws {RequiredError}
235
235
  */
236
- getSubledgerSettings: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
237
- const localVarPath = `/accountingservice/v1/subledger/settings`;
236
+ getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
237
+ const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
238
238
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
239
239
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
240
240
  let baseOptions;
@@ -465,14 +465,14 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
465
465
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
466
466
  },
467
467
  /**
468
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
469
- * @summary Retrieve the get subledger settings
468
+ * 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\"
469
+ * @summary Retrieve the get activation snapshot
470
470
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
471
  * @param {*} [options] Override http request option.
472
472
  * @throws {RequiredError}
473
473
  */
474
- async getSubledgerSettings(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubledgerSettingsResponseClass>> {
475
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubledgerSettings(authorization, options);
474
+ async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
475
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
476
476
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
477
477
  },
478
478
  /**
@@ -563,14 +563,14 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
563
563
  return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
564
564
  },
565
565
  /**
566
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
567
- * @summary Retrieve the get subledger settings
566
+ * 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\"
567
+ * @summary Retrieve the get activation snapshot
568
568
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
569
569
  * @param {*} [options] Override http request option.
570
570
  * @throws {RequiredError}
571
571
  */
572
- getSubledgerSettings(authorization?: string, options?: any): AxiosPromise<GetSubledgerSettingsResponseClass> {
573
- return localVarFp.getSubledgerSettings(authorization, options).then((request) => request(axios, basePath));
572
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
573
+ return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
574
574
  },
575
575
  /**
576
576
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -678,15 +678,15 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
678
678
  }
679
679
 
680
680
  /**
681
- * Request parameters for getSubledgerSettings operation in AccountingConfigsApi.
681
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
682
682
  * @export
683
- * @interface AccountingConfigsApiGetSubledgerSettingsRequest
683
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
684
684
  */
685
- export interface AccountingConfigsApiGetSubledgerSettingsRequest {
685
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
686
686
  /**
687
687
  * Bearer Token: provided by the login endpoint under the name accessToken.
688
688
  * @type {string}
689
- * @memberof AccountingConfigsApiGetSubledgerSettings
689
+ * @memberof AccountingConfigsApiGetActivationSnapshot
690
690
  */
691
691
  readonly authorization?: string
692
692
  }
@@ -803,15 +803,15 @@ export class AccountingConfigsApi extends BaseAPI {
803
803
  }
804
804
 
805
805
  /**
806
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
807
- * @summary Retrieve the get subledger settings
808
- * @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
806
+ * 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\"
807
+ * @summary Retrieve the get activation snapshot
808
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
809
809
  * @param {*} [options] Override http request option.
810
810
  * @throws {RequiredError}
811
811
  * @memberof AccountingConfigsApi
812
812
  */
813
- public getSubledgerSettings(requestParameters: AccountingConfigsApiGetSubledgerSettingsRequest = {}, options?: AxiosRequestConfig) {
814
- return AccountingConfigsApiFp(this.configuration).getSubledgerSettings(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
813
+ public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
814
+ return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
815
815
  }
816
816
 
817
817
  /**
package/api.ts CHANGED
@@ -24,6 +24,7 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
+ import { AccountMappingsApi } from './api';
27
28
  import { AccountingConfigsApi } from './api';
28
29
  import { BookingEntriesApi } from './api';
29
30
  import { FinancialAccountsApi } from './api';
@@ -33,6 +34,7 @@ import { NumberRangesApi } from './api';
33
34
  import { PersonalAccountsApi } from './api';
34
35
 
35
36
 
37
+ export * from './api/account-mappings-api';
36
38
  export * from './api/accounting-configs-api';
37
39
  export * from './api/booking-entries-api';
38
40
  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
+ }