@emilgroup/accounting-sdk 1.28.1-beta.30 → 1.28.1-beta.31

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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +90 -0
  4. package/dist/api/accounting-configs-api.d.ts +47 -0
  5. package/dist/api/accounting-configs-api.js +87 -0
  6. package/dist/models/accounting-category-class.d.ts +45 -0
  7. package/dist/models/accounting-category-class.js +24 -0
  8. package/dist/models/chart-of-accounts-item-class.d.ts +1 -1
  9. package/dist/models/chart-of-accounts-item-class.js +1 -1
  10. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config-items.d.ts +1 -1
  11. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config-items.js +1 -1
  12. package/dist/models/create-accounting-config-data-dto-opening-balances-opening-balances.d.ts +1 -1
  13. package/dist/models/create-accounting-config-data-dto-opening-balances-opening-balances.js +1 -1
  14. package/dist/models/create-financial-account-request-dto.d.ts +1 -1
  15. package/dist/models/create-financial-account-request-dto.js +1 -1
  16. package/dist/models/get-accounting-categories-response-class.d.ts +25 -0
  17. package/dist/models/get-accounting-categories-response-class.js +15 -0
  18. package/dist/models/index.d.ts +2 -0
  19. package/dist/models/index.js +2 -0
  20. package/dist/models/opening-balance-class.d.ts +1 -1
  21. package/dist/models/opening-balance-class.js +1 -1
  22. package/models/accounting-category-class.ts +54 -0
  23. package/models/chart-of-accounts-item-class.ts +1 -1
  24. package/models/create-accounting-config-data-dto-chart-of-accounts-config-items.ts +1 -1
  25. package/models/create-accounting-config-data-dto-opening-balances-opening-balances.ts +1 -1
  26. package/models/create-financial-account-request-dto.ts +1 -1
  27. package/models/get-accounting-categories-response-class.ts +31 -0
  28. package/models/index.ts +2 -0
  29. package/models/opening-balance-class.ts +1 -1
  30. package/package.json +1 -1
@@ -15,6 +15,7 @@ common.ts
15
15
  configuration.ts
16
16
  git_push.sh
17
17
  index.ts
18
+ models/accounting-category-class.ts
18
19
  models/accounting-config-class.ts
19
20
  models/accounting-config-data-class.ts
20
21
  models/accounting-configuration-class.ts
@@ -40,6 +41,7 @@ models/create-personal-account-response-class.ts
40
41
  models/financial-account-class.ts
41
42
  models/financial-transaction-class.ts
42
43
  models/financial-transaction-data-dto.ts
44
+ models/get-accounting-categories-response-class.ts
43
45
  models/get-accounting-config-response-class.ts
44
46
  models/get-booking-entry-response-class.ts
45
47
  models/get-financial-account-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.28.1-beta.30 --save
20
+ npm install @emilgroup/accounting-sdk@1.28.1-beta.31 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.28.1-beta.30
24
+ yarn add @emilgroup/accounting-sdk@1.28.1-beta.31
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -25,6 +25,8 @@ import { CreateAccountingConfigRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateAccountingConfigResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { GetAccountingCategoriesResponseClass } from '../models';
29
+ // @ts-ignore
28
30
  import { GetAccountingConfigResponseClass } from '../models';
29
31
  // @ts-ignore
30
32
  import { InlineObject2 } from '../models';
@@ -177,6 +179,47 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
177
179
 
178
180
 
179
181
 
182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
185
+
186
+ return {
187
+ url: toPathString(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ };
190
+ },
191
+ /**
192
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
193
+ * @summary Retrieve the accounting categories
194
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ const localVarPath = `/accountingservice/v1/accountingconfigs/categories`;
200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
202
+ let baseOptions;
203
+ let baseAccessToken;
204
+ if (configuration) {
205
+ baseOptions = configuration.baseOptions;
206
+ baseAccessToken = configuration.accessToken;
207
+ }
208
+
209
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
210
+ const localVarHeaderParameter = {} as any;
211
+ const localVarQueryParameter = {} as any;
212
+
213
+ // authentication bearer required
214
+ // http bearer authentication required
215
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
216
+
217
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
218
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
219
+ }
220
+
221
+
222
+
180
223
  setSearchParams(localVarUrlObj, localVarQueryParameter);
181
224
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
225
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -566,6 +609,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
566
609
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountingConfig(code, authorization, options);
567
610
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
568
611
  },
612
+ /**
613
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
614
+ * @summary Retrieve the accounting categories
615
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ */
619
+ async getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>> {
620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
621
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
622
+ },
569
623
  /**
570
624
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
571
625
  * @summary Retrieve the accounting config
@@ -690,6 +744,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
690
744
  deleteAccountingConfig(code: string, authorization?: string, options?: any): AxiosPromise<void> {
691
745
  return localVarFp.deleteAccountingConfig(code, authorization, options).then((request) => request(axios, basePath));
692
746
  },
747
+ /**
748
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
749
+ * @summary Retrieve the accounting categories
750
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ */
754
+ getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
755
+ return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
756
+ },
693
757
  /**
694
758
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
695
759
  * @summary Retrieve the accounting config
@@ -831,6 +895,20 @@ export interface AccountingConfigsApiDeleteAccountingConfigRequest {
831
895
  readonly authorization?: string
832
896
  }
833
897
 
898
+ /**
899
+ * Request parameters for getAccountingCategories operation in AccountingConfigsApi.
900
+ * @export
901
+ * @interface AccountingConfigsApiGetAccountingCategoriesRequest
902
+ */
903
+ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
904
+ /**
905
+ * Bearer Token: provided by the login endpoint under the name accessToken.
906
+ * @type {string}
907
+ * @memberof AccountingConfigsApiGetAccountingCategories
908
+ */
909
+ readonly authorization?: string
910
+ }
911
+
834
912
  /**
835
913
  * Request parameters for getAccountingConfig operation in AccountingConfigsApi.
836
914
  * @export
@@ -1063,6 +1141,18 @@ export class AccountingConfigsApi extends BaseAPI {
1063
1141
  return AccountingConfigsApiFp(this.configuration).deleteAccountingConfig(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1064
1142
  }
1065
1143
 
1144
+ /**
1145
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
1146
+ * @summary Retrieve the accounting categories
1147
+ * @param {AccountingConfigsApiGetAccountingCategoriesRequest} requestParameters Request parameters.
1148
+ * @param {*} [options] Override http request option.
1149
+ * @throws {RequiredError}
1150
+ * @memberof AccountingConfigsApi
1151
+ */
1152
+ public getAccountingCategories(requestParameters: AccountingConfigsApiGetAccountingCategoriesRequest = {}, options?: AxiosRequestConfig) {
1153
+ return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1154
+ }
1155
+
1066
1156
  /**
1067
1157
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
1068
1158
  * @summary Retrieve the accounting config
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateAccountingConfigRequestDto } from '../models';
16
16
  import { CreateAccountingConfigResponseClass } from '../models';
17
+ import { GetAccountingCategoriesResponseClass } from '../models';
17
18
  import { GetAccountingConfigResponseClass } from '../models';
18
19
  import { InlineObject2 } from '../models';
19
20
  import { ListAccountingConfigsResponseClass } from '../models';
@@ -52,6 +53,14 @@ export declare const AccountingConfigsApiAxiosParamCreator: (configuration?: Con
52
53
  * @throws {RequiredError}
53
54
  */
54
55
  deleteAccountingConfig: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
+ /**
57
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
58
+ * @summary Retrieve the accounting categories
59
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ getAccountingCategories: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
64
  /**
56
65
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
57
66
  * @summary Retrieve the accounting config
@@ -148,6 +157,14 @@ export declare const AccountingConfigsApiFp: (configuration?: Configuration) =>
148
157
  * @throws {RequiredError}
149
158
  */
150
159
  deleteAccountingConfig(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
160
+ /**
161
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
162
+ * @summary Retrieve the accounting categories
163
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>>;
151
168
  /**
152
169
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
153
170
  * @summary Retrieve the accounting config
@@ -244,6 +261,14 @@ export declare const AccountingConfigsApiFactory: (configuration?: Configuration
244
261
  * @throws {RequiredError}
245
262
  */
246
263
  deleteAccountingConfig(code: string, authorization?: string, options?: any): AxiosPromise<void>;
264
+ /**
265
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
266
+ * @summary Retrieve the accounting categories
267
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass>;
247
272
  /**
248
273
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
249
274
  * @summary Retrieve the accounting config
@@ -365,6 +390,19 @@ export interface AccountingConfigsApiDeleteAccountingConfigRequest {
365
390
  */
366
391
  readonly authorization?: string;
367
392
  }
393
+ /**
394
+ * Request parameters for getAccountingCategories operation in AccountingConfigsApi.
395
+ * @export
396
+ * @interface AccountingConfigsApiGetAccountingCategoriesRequest
397
+ */
398
+ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
399
+ /**
400
+ * Bearer Token: provided by the login endpoint under the name accessToken.
401
+ * @type {string}
402
+ * @memberof AccountingConfigsApiGetAccountingCategories
403
+ */
404
+ readonly authorization?: string;
405
+ }
368
406
  /**
369
407
  * Request parameters for getAccountingConfig operation in AccountingConfigsApi.
370
408
  * @export
@@ -567,6 +605,15 @@ export declare class AccountingConfigsApi extends BaseAPI {
567
605
  * @memberof AccountingConfigsApi
568
606
  */
569
607
  deleteAccountingConfig(requestParameters: AccountingConfigsApiDeleteAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
608
+ /**
609
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
610
+ * @summary Retrieve the accounting categories
611
+ * @param {AccountingConfigsApiGetAccountingCategoriesRequest} requestParameters Request parameters.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ * @memberof AccountingConfigsApi
615
+ */
616
+ getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
570
617
  /**
571
618
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
572
619
  * @summary Retrieve the accounting config
@@ -241,6 +241,50 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
241
241
  });
242
242
  });
243
243
  },
244
+ /**
245
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
246
+ * @summary Retrieve the accounting categories
247
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ getAccountingCategories: function (authorization, options) {
252
+ if (options === void 0) { options = {}; }
253
+ return __awaiter(_this, void 0, void 0, function () {
254
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
255
+ return __generator(this, function (_a) {
256
+ switch (_a.label) {
257
+ case 0:
258
+ localVarPath = "/accountingservice/v1/accountingconfigs/categories";
259
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
260
+ if (configuration) {
261
+ baseOptions = configuration.baseOptions;
262
+ baseAccessToken = configuration.accessToken;
263
+ }
264
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
265
+ localVarHeaderParameter = {};
266
+ localVarQueryParameter = {};
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
270
+ case 1:
271
+ // authentication bearer required
272
+ // http bearer authentication required
273
+ _a.sent();
274
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
275
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
276
+ }
277
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
278
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
280
+ return [2 /*return*/, {
281
+ url: (0, common_1.toPathString)(localVarUrlObj),
282
+ options: localVarRequestOptions,
283
+ }];
284
+ }
285
+ });
286
+ });
287
+ },
244
288
  /**
245
289
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
246
290
  * @summary Retrieve the accounting config
@@ -650,6 +694,26 @@ var AccountingConfigsApiFp = function (configuration) {
650
694
  });
651
695
  });
652
696
  },
697
+ /**
698
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
699
+ * @summary Retrieve the accounting categories
700
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
701
+ * @param {*} [options] Override http request option.
702
+ * @throws {RequiredError}
703
+ */
704
+ getAccountingCategories: function (authorization, options) {
705
+ return __awaiter(this, void 0, void 0, function () {
706
+ var localVarAxiosArgs;
707
+ return __generator(this, function (_a) {
708
+ switch (_a.label) {
709
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAccountingCategories(authorization, options)];
710
+ case 1:
711
+ localVarAxiosArgs = _a.sent();
712
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
713
+ }
714
+ });
715
+ });
716
+ },
653
717
  /**
654
718
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
655
719
  * @summary Retrieve the accounting config
@@ -828,6 +892,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
828
892
  deleteAccountingConfig: function (code, authorization, options) {
829
893
  return localVarFp.deleteAccountingConfig(code, authorization, options).then(function (request) { return request(axios, basePath); });
830
894
  },
895
+ /**
896
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
897
+ * @summary Retrieve the accounting categories
898
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ getAccountingCategories: function (authorization, options) {
903
+ return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
904
+ },
831
905
  /**
832
906
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
833
907
  * @summary Retrieve the accounting config
@@ -953,6 +1027,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
953
1027
  var _this = this;
954
1028
  return (0, exports.AccountingConfigsApiFp)(this.configuration).deleteAccountingConfig(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
955
1029
  };
1030
+ /**
1031
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
1032
+ * @summary Retrieve the accounting categories
1033
+ * @param {AccountingConfigsApiGetAccountingCategoriesRequest} requestParameters Request parameters.
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ * @memberof AccountingConfigsApi
1037
+ */
1038
+ AccountingConfigsApi.prototype.getAccountingCategories = function (requestParameters, options) {
1039
+ var _this = this;
1040
+ if (requestParameters === void 0) { requestParameters = {}; }
1041
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1042
+ };
956
1043
  /**
957
1044
  * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
958
1045
  * @summary Retrieve the accounting config
@@ -0,0 +1,45 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface AccountingCategoryClass
16
+ */
17
+ export interface AccountingCategoryClass {
18
+ /**
19
+ * The functional category
20
+ * @type {string}
21
+ * @memberof AccountingCategoryClass
22
+ */
23
+ 'category': string;
24
+ /**
25
+ * True if the category allows multiple defined accounts, like revenue and expense categories that may have one for each product.
26
+ * @type {boolean}
27
+ * @memberof AccountingCategoryClass
28
+ */
29
+ 'isPoolCategory': boolean;
30
+ /**
31
+ * The accounttype of the category
32
+ * @type {string}
33
+ * @memberof AccountingCategoryClass
34
+ */
35
+ 'type': AccountingCategoryClassTypeEnum;
36
+ }
37
+ export declare const AccountingCategoryClassTypeEnum: {
38
+ readonly Asset: "asset";
39
+ readonly Liability: "liability";
40
+ readonly Equity: "equity";
41
+ readonly Income: "income";
42
+ readonly Expense: "expense";
43
+ readonly OpeningBalance: "opening_balance";
44
+ };
45
+ export type AccountingCategoryClassTypeEnum = typeof AccountingCategoryClassTypeEnum[keyof typeof AccountingCategoryClassTypeEnum];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountingCategoryClassTypeEnum = void 0;
17
+ exports.AccountingCategoryClassTypeEnum = {
18
+ Asset: 'asset',
19
+ Liability: 'liability',
20
+ Equity: 'equity',
21
+ Income: 'income',
22
+ Expense: 'expense',
23
+ OpeningBalance: 'opening_balance'
24
+ };
@@ -60,7 +60,7 @@ export declare const ChartOfAccountsItemClassCategoryEnum: {
60
60
  readonly WriteOffExpAcc: "write_off_exp_acc";
61
61
  readonly RoundingDiffAcc: "rounding_diff_acc";
62
62
  readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
63
- readonly FeeRevenueAccAcc: "fee_revenue_acc_acc";
63
+ readonly FeeRevenueAcc: "fee_revenue_acc";
64
64
  readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
65
65
  readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
66
66
  readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
@@ -28,7 +28,7 @@ exports.ChartOfAccountsItemClassCategoryEnum = {
28
28
  WriteOffExpAcc: 'write_off_exp_acc',
29
29
  RoundingDiffAcc: 'rounding_diff_acc',
30
30
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
31
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
31
+ FeeRevenueAcc: 'fee_revenue_acc',
32
32
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
33
33
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
34
34
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -48,7 +48,7 @@ export declare const CreateAccountingConfigDataDtoChartOfAccountsConfigItemsCate
48
48
  readonly WriteOffExpAcc: "write_off_exp_acc";
49
49
  readonly RoundingDiffAcc: "rounding_diff_acc";
50
50
  readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
51
- readonly FeeRevenueAccAcc: "fee_revenue_acc_acc";
51
+ readonly FeeRevenueAcc: "fee_revenue_acc";
52
52
  readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
53
53
  readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
54
54
  readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
@@ -28,7 +28,7 @@ exports.CreateAccountingConfigDataDtoChartOfAccountsConfigItemsCategoryEnum = {
28
28
  WriteOffExpAcc: 'write_off_exp_acc',
29
29
  RoundingDiffAcc: 'rounding_diff_acc',
30
30
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
31
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
31
+ FeeRevenueAcc: 'fee_revenue_acc',
32
32
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
33
33
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
34
34
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -54,7 +54,7 @@ export declare const CreateAccountingConfigDataDtoOpeningBalancesOpeningBalances
54
54
  readonly WriteOffExpAcc: "write_off_exp_acc";
55
55
  readonly RoundingDiffAcc: "rounding_diff_acc";
56
56
  readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
57
- readonly FeeRevenueAccAcc: "fee_revenue_acc_acc";
57
+ readonly FeeRevenueAcc: "fee_revenue_acc";
58
58
  readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
59
59
  readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
60
60
  readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
@@ -28,7 +28,7 @@ exports.CreateAccountingConfigDataDtoOpeningBalancesOpeningBalancesCategoryEnum
28
28
  WriteOffExpAcc: 'write_off_exp_acc',
29
29
  RoundingDiffAcc: 'rounding_diff_acc',
30
30
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
31
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
31
+ FeeRevenueAcc: 'fee_revenue_acc',
32
32
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
33
33
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
34
34
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -99,7 +99,7 @@ export declare const CreateFinancialAccountRequestDtoFunctionalCategoryEnum: {
99
99
  readonly WriteOffExpAcc: "write_off_exp_acc";
100
100
  readonly RoundingDiffAcc: "rounding_diff_acc";
101
101
  readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
102
- readonly FeeRevenueAccAcc: "fee_revenue_acc_acc";
102
+ readonly FeeRevenueAcc: "fee_revenue_acc";
103
103
  readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
104
104
  readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
105
105
  readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
@@ -36,7 +36,7 @@ exports.CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
36
36
  WriteOffExpAcc: 'write_off_exp_acc',
37
37
  RoundingDiffAcc: 'rounding_diff_acc',
38
38
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
39
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
39
+ FeeRevenueAcc: 'fee_revenue_acc',
40
40
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
41
41
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
42
42
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -0,0 +1,25 @@
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 { AccountingCategoryClass } from './accounting-category-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetAccountingCategoriesResponseClass
17
+ */
18
+ export interface GetAccountingCategoriesResponseClass {
19
+ /**
20
+ * The list of functional categories
21
+ * @type {Array<AccountingCategoryClass>}
22
+ * @memberof GetAccountingCategoriesResponseClass
23
+ */
24
+ 'items': Array<AccountingCategoryClass>;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from './accounting-category-class';
1
2
  export * from './accounting-config-class';
2
3
  export * from './accounting-config-data-class';
3
4
  export * from './accounting-configuration-class';
@@ -23,6 +24,7 @@ export * from './create-personal-account-response-class';
23
24
  export * from './financial-account-class';
24
25
  export * from './financial-transaction-class';
25
26
  export * from './financial-transaction-data-dto';
27
+ export * from './get-accounting-categories-response-class';
26
28
  export * from './get-accounting-config-response-class';
27
29
  export * from './get-booking-entry-response-class';
28
30
  export * from './get-financial-account-response-class';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./accounting-category-class"), exports);
17
18
  __exportStar(require("./accounting-config-class"), exports);
18
19
  __exportStar(require("./accounting-config-data-class"), exports);
19
20
  __exportStar(require("./accounting-configuration-class"), exports);
@@ -39,6 +40,7 @@ __exportStar(require("./create-personal-account-response-class"), exports);
39
40
  __exportStar(require("./financial-account-class"), exports);
40
41
  __exportStar(require("./financial-transaction-class"), exports);
41
42
  __exportStar(require("./financial-transaction-data-dto"), exports);
43
+ __exportStar(require("./get-accounting-categories-response-class"), exports);
42
44
  __exportStar(require("./get-accounting-config-response-class"), exports);
43
45
  __exportStar(require("./get-booking-entry-response-class"), exports);
44
46
  __exportStar(require("./get-financial-account-response-class"), exports);
@@ -54,7 +54,7 @@ export declare const OpeningBalanceClassCategoryEnum: {
54
54
  readonly WriteOffExpAcc: "write_off_exp_acc";
55
55
  readonly RoundingDiffAcc: "rounding_diff_acc";
56
56
  readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
57
- readonly FeeRevenueAccAcc: "fee_revenue_acc_acc";
57
+ readonly FeeRevenueAcc: "fee_revenue_acc";
58
58
  readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
59
59
  readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
60
60
  readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
@@ -28,7 +28,7 @@ exports.OpeningBalanceClassCategoryEnum = {
28
28
  WriteOffExpAcc: 'write_off_exp_acc',
29
29
  RoundingDiffAcc: 'rounding_diff_acc',
30
30
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
31
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
31
+ FeeRevenueAcc: 'fee_revenue_acc',
32
32
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
33
33
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
34
34
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -0,0 +1,54 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface AccountingCategoryClass
21
+ */
22
+ export interface AccountingCategoryClass {
23
+ /**
24
+ * The functional category
25
+ * @type {string}
26
+ * @memberof AccountingCategoryClass
27
+ */
28
+ 'category': string;
29
+ /**
30
+ * True if the category allows multiple defined accounts, like revenue and expense categories that may have one for each product.
31
+ * @type {boolean}
32
+ * @memberof AccountingCategoryClass
33
+ */
34
+ 'isPoolCategory': boolean;
35
+ /**
36
+ * The accounttype of the category
37
+ * @type {string}
38
+ * @memberof AccountingCategoryClass
39
+ */
40
+ 'type': AccountingCategoryClassTypeEnum;
41
+ }
42
+
43
+ export const AccountingCategoryClassTypeEnum = {
44
+ Asset: 'asset',
45
+ Liability: 'liability',
46
+ Equity: 'equity',
47
+ Income: 'income',
48
+ Expense: 'expense',
49
+ OpeningBalance: 'opening_balance'
50
+ } as const;
51
+
52
+ export type AccountingCategoryClassTypeEnum = typeof AccountingCategoryClassTypeEnum[keyof typeof AccountingCategoryClassTypeEnum];
53
+
54
+
@@ -66,7 +66,7 @@ export const ChartOfAccountsItemClassCategoryEnum = {
66
66
  WriteOffExpAcc: 'write_off_exp_acc',
67
67
  RoundingDiffAcc: 'rounding_diff_acc',
68
68
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
69
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
69
+ FeeRevenueAcc: 'fee_revenue_acc',
70
70
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
71
71
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
72
72
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -54,7 +54,7 @@ export const CreateAccountingConfigDataDtoChartOfAccountsConfigItemsCategoryEnum
54
54
  WriteOffExpAcc: 'write_off_exp_acc',
55
55
  RoundingDiffAcc: 'rounding_diff_acc',
56
56
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
57
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
57
+ FeeRevenueAcc: 'fee_revenue_acc',
58
58
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
59
59
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
60
60
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -60,7 +60,7 @@ export const CreateAccountingConfigDataDtoOpeningBalancesOpeningBalancesCategory
60
60
  WriteOffExpAcc: 'write_off_exp_acc',
61
61
  RoundingDiffAcc: 'rounding_diff_acc',
62
62
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
63
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
63
+ FeeRevenueAcc: 'fee_revenue_acc',
64
64
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
65
65
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
66
66
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -106,7 +106,7 @@ export const CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
106
106
  WriteOffExpAcc: 'write_off_exp_acc',
107
107
  RoundingDiffAcc: 'rounding_diff_acc',
108
108
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
109
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
109
+ FeeRevenueAcc: 'fee_revenue_acc',
110
110
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
111
111
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
112
112
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
@@ -0,0 +1,31 @@
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 { AccountingCategoryClass } from './accounting-category-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetAccountingCategoriesResponseClass
22
+ */
23
+ export interface GetAccountingCategoriesResponseClass {
24
+ /**
25
+ * The list of functional categories
26
+ * @type {Array<AccountingCategoryClass>}
27
+ * @memberof GetAccountingCategoriesResponseClass
28
+ */
29
+ 'items': Array<AccountingCategoryClass>;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './accounting-category-class';
1
2
  export * from './accounting-config-class';
2
3
  export * from './accounting-config-data-class';
3
4
  export * from './accounting-configuration-class';
@@ -23,6 +24,7 @@ export * from './create-personal-account-response-class';
23
24
  export * from './financial-account-class';
24
25
  export * from './financial-transaction-class';
25
26
  export * from './financial-transaction-data-dto';
27
+ export * from './get-accounting-categories-response-class';
26
28
  export * from './get-accounting-config-response-class';
27
29
  export * from './get-booking-entry-response-class';
28
30
  export * from './get-financial-account-response-class';
@@ -60,7 +60,7 @@ export const OpeningBalanceClassCategoryEnum = {
60
60
  WriteOffExpAcc: 'write_off_exp_acc',
61
61
  RoundingDiffAcc: 'rounding_diff_acc',
62
62
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
63
- FeeRevenueAccAcc: 'fee_revenue_acc_acc',
63
+ FeeRevenueAcc: 'fee_revenue_acc',
64
64
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
65
65
  OpeningBalEquityAcc: 'opening_bal_equity_acc',
66
66
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.28.1-beta.30",
3
+ "version": "1.28.1-beta.31",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [