@abyss-project/banking 1.0.0 → 1.0.1

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 (67) hide show
  1. package/package.json +1 -1
  2. package/src/api/abyss.admin.api.ts +0 -16
  3. package/src/api/banking.admin.api.ts +0 -141
  4. package/src/api/banking.api.ts +0 -197
  5. package/src/api/categorization-rule.admin.api.ts +0 -80
  6. package/src/api/categorization-rule.api.ts +0 -80
  7. package/src/api/category.admin.api.ts +0 -63
  8. package/src/api/category.api.ts +0 -74
  9. package/src/api/index.ts +0 -12
  10. package/src/api/monitor.api.ts +0 -6
  11. package/src/api/panel.admin.api.ts +0 -57
  12. package/src/api/panel.api.ts +0 -45
  13. package/src/api/user.admin.api.ts +0 -44
  14. package/src/api/user.api.ts +0 -20
  15. package/src/index.ts +0 -72
  16. package/src/types/enum/aggregator-type.enum.ts +0 -4
  17. package/src/types/enum/api-error.enum.ts +0 -18
  18. package/src/types/enum/bank-connection-status.enum.ts +0 -6
  19. package/src/types/enum/cash-account-type.enum.ts +0 -54
  20. package/src/types/enum/index.ts +0 -7
  21. package/src/types/enum/panel-component-type.enum.ts +0 -12
  22. package/src/types/enum/period-configuration.enum.ts +0 -7
  23. package/src/types/index.ts +0 -2
  24. package/src/types/interface/api/index.ts +0 -29
  25. package/src/types/interface/api/requests/abyss.admin.request.ts +0 -3
  26. package/src/types/interface/api/requests/banking.admin.request.ts +0 -57
  27. package/src/types/interface/api/requests/banking.request.ts +0 -89
  28. package/src/types/interface/api/requests/categorization-rule.admin.request.ts +0 -40
  29. package/src/types/interface/api/requests/categorization-rule.request.ts +0 -38
  30. package/src/types/interface/api/requests/category.admin.request.ts +0 -27
  31. package/src/types/interface/api/requests/category.request.ts +0 -31
  32. package/src/types/interface/api/requests/panel.admin.request.ts +0 -28
  33. package/src/types/interface/api/requests/panel.request.ts +0 -27
  34. package/src/types/interface/api/requests/user.admin.request.ts +0 -20
  35. package/src/types/interface/api/requests/user.request.ts +0 -2
  36. package/src/types/interface/api/responses/abyss.admin.response.ts +0 -7
  37. package/src/types/interface/api/responses/banking.admin.response.ts +0 -73
  38. package/src/types/interface/api/responses/banking.response.ts +0 -119
  39. package/src/types/interface/api/responses/categorization-rule.admin.response.ts +0 -28
  40. package/src/types/interface/api/responses/categorization-rule.response.ts +0 -28
  41. package/src/types/interface/api/responses/category.admin.response.ts +0 -24
  42. package/src/types/interface/api/responses/category.response.ts +0 -39
  43. package/src/types/interface/api/responses/monitor.response.ts +0 -8
  44. package/src/types/interface/api/responses/panel.admin.response.ts +0 -24
  45. package/src/types/interface/api/responses/panel.response.ts +0 -24
  46. package/src/types/interface/api/responses/storage.admin.response.ts +0 -4
  47. package/src/types/interface/api/responses/user.admin.response.ts +0 -18
  48. package/src/types/interface/api/responses/user.response.ts +0 -16
  49. package/src/types/interface/api/type-message/api-error.ts +0 -9
  50. package/src/types/interface/api/type-message/base-order.ts +0 -4
  51. package/src/types/interface/api/type-message/base-paginate.ts +0 -11
  52. package/src/types/interface/api/type-message/response.ts +0 -6
  53. package/src/types/interface/index.ts +0 -15
  54. package/src/types/interface/models/account-transaction.model.ts +0 -53
  55. package/src/types/interface/models/aggregator-bank.model.ts +0 -15
  56. package/src/types/interface/models/aggregator-link.model.ts +0 -15
  57. package/src/types/interface/models/bank-account-history.model.ts +0 -14
  58. package/src/types/interface/models/bank-account.model.ts +0 -29
  59. package/src/types/interface/models/bank-connection.model.ts +0 -20
  60. package/src/types/interface/models/categorization-rule-category.model.ts +0 -14
  61. package/src/types/interface/models/categorization-rule.model.ts +0 -48
  62. package/src/types/interface/models/category.model.ts +0 -17
  63. package/src/types/interface/models/panel.model.ts +0 -135
  64. package/src/types/interface/models/transaction-category.model.ts +0 -17
  65. package/src/types/interface/models/user.model.ts +0 -16
  66. package/src/utils/error.utils.ts +0 -30
  67. package/src/utils/index.ts +0 -1
@@ -1,28 +0,0 @@
1
- import { PanelComposition } from '../../models/panel.model';
2
- import { QueryPaginate } from '../type-message/base-paginate';
3
-
4
- export type IPaginatePanelAdminQuery = {
5
- name?: string;
6
- } & QueryPaginate;
7
-
8
- export interface IGetPanelAdminParams {
9
- panelId: string;
10
- }
11
-
12
- export interface IDeletePanelAdminParams {
13
- panelId: string;
14
- }
15
-
16
- export interface ICreatePanelAdminBody {
17
- userId: string;
18
- name: string;
19
- composition: PanelComposition;
20
- }
21
-
22
- export interface IUpdatePanelAdminParams {
23
- panelId: string;
24
- }
25
- export interface IUpdatePanelAdminBody {
26
- name?: string;
27
- composition?: PanelComposition;
28
- }
@@ -1,27 +0,0 @@
1
- import { PanelComposition } from '../../models/panel.model';
2
- import { QueryPaginate } from '../type-message/base-paginate';
3
-
4
- export type IPaginatePanelQuery = {
5
- name?: string;
6
- } & QueryPaginate;
7
-
8
- export interface IGetPanelParams {
9
- panelId: string;
10
- }
11
-
12
- export interface IDeletePanelParams {
13
- panelId: string;
14
- }
15
-
16
- export interface ICreatePanelBody {
17
- name: string;
18
- composition: PanelComposition;
19
- }
20
-
21
- export interface IUpdatePanelParams {
22
- panelId: string;
23
- }
24
- export interface IUpdatePanelBody {
25
- name?: string;
26
- composition?: PanelComposition;
27
- }
@@ -1,20 +0,0 @@
1
- import { QueryPaginate } from '..';
2
-
3
- import * as core from 'express-serve-static-core';
4
-
5
- export interface IGetUserAdminParams extends core.ParamsDictionary {
6
- userId: string;
7
- }
8
-
9
- export interface IResetApiKeyUserAdminParams extends core.ParamsDictionary {
10
- userId: string;
11
- }
12
-
13
- export type IPaginateUserAdminQuery = QueryPaginate;
14
-
15
- export interface IUpdateUserAdminParams extends core.ParamsDictionary {
16
- userId: string;
17
- }
18
- export interface IUpdateUserAdminBody {
19
- isAdmin?: boolean;
20
- }
@@ -1,2 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
2
- export interface IUpdateUserBody {}
@@ -1,7 +0,0 @@
1
- import { IUser } from '../../models/user.model';
2
- import { IResponse } from '../type-message/response';
3
-
4
- export interface IActivateUserServiceAbyssAdminData {
5
- user: IUser;
6
- }
7
- export type IActivateUserServiceAbyssAdminResponse = IResponse<IActivateUserServiceAbyssAdminData>;
@@ -1,73 +0,0 @@
1
- import {
2
- BasePaginate,
3
- IAccountTransaction,
4
- IAggregatorBank,
5
- IAggregatorLink,
6
- IBankAccount,
7
- IBankConnection,
8
- IResponse,
9
- } from '../..';
10
-
11
- export interface IListBankConnectionBankingAdminData {
12
- aggregatorLink: IAggregatorLink[];
13
- }
14
- export type IListBankConnectionBankingAdminResponse =
15
- IResponse<IListBankConnectionBankingAdminData>;
16
-
17
- export interface IGetBankConnectionBankingAdminData {
18
- bankConnection: IBankConnection;
19
- }
20
- export type IGetBankConnectionBankingAdminResponse = IResponse<IGetBankConnectionBankingAdminData>;
21
-
22
- export interface IListInstitutionBankingAdminData {
23
- institution: {
24
- id: string;
25
- name: string;
26
- countries: string[];
27
- logoUrl: string;
28
- bic: string;
29
- transactionTotalDays: string;
30
- }[];
31
- }
32
- export type IListInstitutionBankingAdminResponse = IResponse<IListInstitutionBankingAdminData>;
33
-
34
- export interface IListBankBankingAdminData {
35
- aggregatorBank: IAggregatorBank[];
36
- }
37
- export type IListBankBankingAdminResponse = IResponse<IListBankBankingAdminData>;
38
-
39
- export interface IConfirmRequisitionBankingAdminData {
40
- bankConnection: IBankConnection;
41
- }
42
- export type IConfirmRequisitionBankingAdminResponse =
43
- IResponse<IConfirmRequisitionBankingAdminData>;
44
-
45
- export type IPaginateAccountTransactionBankingAdminResponse = IResponse<
46
- BasePaginate<IAccountTransaction>
47
- >;
48
-
49
- export interface IGetAccountTransactionBankingAdminData {
50
- accountTransaction: IAccountTransaction;
51
- }
52
- export type IGetAccountTransactionBankingAdminResponse =
53
- IResponse<IGetAccountTransactionBankingAdminData>;
54
-
55
- export interface IUpdateAccountTransactionBankingAdminData {
56
- accountTransaction: IAccountTransaction;
57
- }
58
- export type IUpdateAccountTransactionBankingAdminResponse =
59
- IResponse<IUpdateAccountTransactionBankingAdminData>;
60
-
61
- export interface IUpdateBankAccountBankingAdminData {
62
- bankAccount: IBankAccount;
63
- }
64
- export type IUpdateBankAccountBankingAdminResponse = IResponse<IUpdateBankAccountBankingAdminData>;
65
-
66
- export interface ILoadDemoDataBankingAdminData {
67
- aggregatorLink: IAggregatorLink;
68
- }
69
- export type ILoadDemoDataBankingAdminResponse = IResponse<ILoadDemoDataBankingAdminData>;
70
-
71
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
72
- export interface IDeleteDemoDataBankingAdminData {}
73
- export type IDeleteDemoDataBankingAdminResponse = IResponse<IDeleteDemoDataBankingAdminData>;
@@ -1,119 +0,0 @@
1
- import {
2
- BasePaginate,
3
- IAccountTransaction,
4
- IAggregatorBank,
5
- IAggregatorLink,
6
- IBankAccount,
7
- IBankAccountHistory,
8
- IBankConnection,
9
- IResponse,
10
- } from '../..';
11
-
12
- export interface IListConnectionBankingData {
13
- aggregatorLink: IAggregatorLink[];
14
- }
15
- export type IListConnectionBankingResponse = IResponse<IListConnectionBankingData>;
16
-
17
- export interface IGetBankConnectionBankingData {
18
- bankConnection: IBankConnection;
19
- }
20
- export type IGetBankConnectionBankingResponse = IResponse<IGetBankConnectionBankingData>;
21
-
22
- export interface IListInstitutionBankingData {
23
- institution: {
24
- id: string;
25
- name: string;
26
- countries: string[];
27
- logoUrl: string;
28
- bic: string;
29
- transactionTotalDays: string;
30
- }[];
31
- }
32
- export type IListInstitutionBankingResponse = IResponse<IListInstitutionBankingData>;
33
-
34
- export interface IListBankBankingData {
35
- aggregatorBank: IAggregatorBank[];
36
- }
37
- export type IListBankBankingResponse = IResponse<IListBankBankingData>;
38
-
39
- export interface ICreateRequisitionBankingData {
40
- connectionLink: string;
41
- }
42
- export type ICreateRequisitionBankingResponse = IResponse<ICreateRequisitionBankingData>;
43
-
44
- export interface IRenewRequisitionBankingData {
45
- connectionLink: string;
46
- }
47
- export type IRenewRequisitionBankingResponse = IResponse<IRenewRequisitionBankingData>;
48
-
49
- export interface IConfirmRequisitionBankingData {
50
- bankConnection: IBankConnection;
51
- }
52
- export type IConfirmRequisitionBankingResponse = IResponse<IConfirmRequisitionBankingData>;
53
-
54
- export type IPaginateAccountTransactionBankingResponse = IResponse<
55
- BasePaginate<IAccountTransaction>
56
- >;
57
-
58
- export interface IGetAccountTransactionBankingData {
59
- accountTransaction: IAccountTransaction;
60
- }
61
- export type IGetAccountTransactionBankingResponse = IResponse<IGetAccountTransactionBankingData>;
62
-
63
- export interface IUpdateAccountTransactionBankingData {
64
- accountTransaction: IAccountTransaction;
65
- }
66
- export type IUpdateAccountTransactionBankingResponse =
67
- IResponse<IUpdateAccountTransactionBankingData>;
68
-
69
- export interface IUpdateBankAccountBankingData {
70
- bankAccount: IBankAccount;
71
- }
72
- export type IUpdateBankAccountBankingResponse = IResponse<IUpdateBankAccountBankingData>;
73
-
74
- export interface ILoadDemoDataBankingData {
75
- aggregatorLink: IAggregatorLink;
76
- }
77
- export type ILoadDemoDataBankingResponse = IResponse<ILoadDemoDataBankingData>;
78
-
79
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
80
- export interface IDeleteDemoDataBankingData {}
81
- export type IDeleteDemoDataBankingResponse = IResponse<IDeleteDemoDataBankingData>;
82
-
83
- export interface IGetTransactionPerCategoryBankingData {
84
- analytics: {
85
- bankAccountId: string;
86
- transactionCount: number;
87
- }[];
88
- }
89
- export type IGetTransactionPerCategoryBankingResponse =
90
- IResponse<IGetTransactionPerCategoryBankingData>;
91
-
92
- export interface IGetSumTransactionPerBankAccountPerCategoryBankingData {
93
- analytics: {
94
- bankAccountId: string;
95
- categories: {
96
- categoryId: string | null;
97
- transactionCount: number;
98
- transactionSum: number;
99
- transactions: {
100
- id: string;
101
- amount: number;
102
- date: Date;
103
- description: string;
104
- comment: string | null;
105
- }[];
106
- }[];
107
- }[];
108
- }
109
- export type IGetSumTransactionPerBankAccountPerCategoryBankingResponse =
110
- IResponse<IGetSumTransactionPerBankAccountPerCategoryBankingData>;
111
-
112
- export type IPaginateBankAccountHistoryBankingResponse = IResponse<
113
- BasePaginate<IBankAccountHistory>
114
- >;
115
-
116
- export interface IListBankAccountHistoryBankingData {
117
- bankAccountHistory: IBankAccountHistory[];
118
- }
119
- export type IListBankAccountHistoryBankingResponse = IResponse<IListBankAccountHistoryBankingData>;
@@ -1,28 +0,0 @@
1
- import { ICategorizationRule } from '../../models/categorization-rule.model';
2
- import { BasePaginate } from '../type-message/base-paginate';
3
- import { IResponse } from '../type-message/response';
4
-
5
- export interface IGetCategorizationRuleAdminData {
6
- categorizationRule: ICategorizationRule;
7
- }
8
- export type IGetCategorizationRuleAdminResponse = IResponse<IGetCategorizationRuleAdminData>;
9
-
10
- export type IPaginateCategorizationRuleAdminResponse = IResponse<BasePaginate<ICategorizationRule>>;
11
-
12
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
13
- export interface IDeleteCategorizationRuleAdminData {}
14
- export type IDeleteCategorizationRuleAdminResponse = IResponse<IDeleteCategorizationRuleAdminData>;
15
-
16
- export interface ICreateCategorizationRuleAdminData {
17
- categorizationRule: ICategorizationRule;
18
- }
19
- export type ICreateCategorizationRuleAdminResponse = IResponse<ICreateCategorizationRuleAdminData>;
20
-
21
- export interface IUpdateCategorizationRuleAdminData {
22
- categorizationRule: ICategorizationRule;
23
- }
24
- export type IUpdateCategorizationRuleAdminResponse = IResponse<IUpdateCategorizationRuleAdminData>;
25
-
26
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
27
- export interface IApplyCategorizationRuleAdminData {}
28
- export type IApplyCategorizationRuleAdminResponse = IResponse<IApplyCategorizationRuleAdminData>;
@@ -1,28 +0,0 @@
1
- import { ICategorizationRule } from '../../models/categorization-rule.model';
2
- import { BasePaginate } from '../type-message/base-paginate';
3
- import { IResponse } from '../type-message/response';
4
-
5
- export interface IGetCategorizationRuleData {
6
- categorizationRule: ICategorizationRule;
7
- }
8
- export type IGetCategorizationRuleResponse = IResponse<IGetCategorizationRuleData>;
9
-
10
- export type IPaginateCategorizationRuleResponse = IResponse<BasePaginate<ICategorizationRule>>;
11
-
12
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
13
- export interface IDeleteCategorizationRuleData {}
14
- export type IDeleteCategorizationRuleResponse = IResponse<IDeleteCategorizationRuleData>;
15
-
16
- export interface ICreateCategorizationRuleData {
17
- categorizationRule: ICategorizationRule;
18
- }
19
- export type ICreateCategorizationRuleResponse = IResponse<ICreateCategorizationRuleData>;
20
-
21
- export interface IUpdateCategorizationRuleData {
22
- categorizationRule: ICategorizationRule;
23
- }
24
- export type IUpdateCategorizationRuleResponse = IResponse<IUpdateCategorizationRuleData>;
25
-
26
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
27
- export interface IApplyCategorizationRuleData {}
28
- export type IApplyCategorizationRuleResponse = IResponse<IApplyCategorizationRuleData>;
@@ -1,24 +0,0 @@
1
- import { ICategory } from '../../models/category.model';
2
- import { BasePaginate } from '../type-message/base-paginate';
3
- import { IResponse } from '../type-message/response';
4
-
5
- export interface IGetCategoryAdminData {
6
- category: ICategory;
7
- }
8
- export type IGetCategoryAdminResponse = IResponse<IGetCategoryAdminData>;
9
-
10
- export type IPaginateCategoryAdminResponse = IResponse<BasePaginate<ICategory>>;
11
-
12
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
13
- export interface IDeleteCategoryAdminData {}
14
- export type IDeleteCategoryAdminResponse = IResponse<IDeleteCategoryAdminData>;
15
-
16
- export interface ICreateCategoryAdminData {
17
- category: ICategory;
18
- }
19
- export type ICreateCategoryAdminResponse = IResponse<ICreateCategoryAdminData>;
20
-
21
- export interface IUpdateCategoryAdminData {
22
- category: ICategory;
23
- }
24
- export type IUpdateCategoryAdminResponse = IResponse<IUpdateCategoryAdminData>;
@@ -1,39 +0,0 @@
1
- import { ICategory } from '../../models/category.model';
2
- import { ITransactionCategory } from '../../models/transaction-category.model';
3
- import { IResponse } from '../type-message/response';
4
-
5
- export interface IListCategoryData {
6
- category: ICategory[];
7
- }
8
- export type IListCategoryResponse = IResponse<IListCategoryData>;
9
-
10
- export interface IListAnalyticsCategoryData {
11
- categories: {
12
- transactionCount: number;
13
- category: ICategory;
14
- }[];
15
- }
16
- export type IListAnalyticsCategoryResponse = IResponse<IListAnalyticsCategoryData>;
17
-
18
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
19
- export interface IRemoveCategoryData {}
20
- export type IRemoveCategoryResponse = IResponse<IRemoveCategoryData>;
21
-
22
- export interface IAddCategoryData {
23
- transactionCategory: ITransactionCategory;
24
- }
25
- export type IAddCategoryResponse = IResponse<IAddCategoryData>;
26
-
27
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
28
- export interface IDeleteCategoryData {}
29
- export type IDeleteCategoryResponse = IResponse<IDeleteCategoryData>;
30
-
31
- export interface ICreateCategoryData {
32
- category: ICategory;
33
- }
34
- export type ICreateCategoryResponse = IResponse<ICreateCategoryData>;
35
-
36
- export interface IUpdateCategoryData {
37
- category: ICategory;
38
- }
39
- export type IUpdateCategoryResponse = IResponse<IUpdateCategoryData>;
@@ -1,8 +0,0 @@
1
- import { IResponse } from '..';
2
-
3
- export interface IUpMonitorData {
4
- upTime: number;
5
- processId: string;
6
- requestId: string;
7
- }
8
- export type IUpMonitorResponse = IResponse<IUpMonitorData>;
@@ -1,24 +0,0 @@
1
- import { IPanel } from '../../models/panel.model';
2
- import { BasePaginate } from '../type-message/base-paginate';
3
- import { IResponse } from '../type-message/response';
4
-
5
- export interface IGetPanelAdminData {
6
- panel: IPanel;
7
- }
8
- export type IGetPanelAdminResponse = IResponse<IGetPanelAdminData>;
9
-
10
- export type IPaginatePanelAdminResponse = IResponse<BasePaginate<IPanel>>;
11
-
12
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
13
- export interface IDeletePanelAdminData {}
14
- export type IDeletePanelAdminResponse = IResponse<IDeletePanelAdminData>;
15
-
16
- export interface ICreatePanelAdminData {
17
- panel: IPanel;
18
- }
19
- export type ICreatePanelAdminResponse = IResponse<ICreatePanelAdminData>;
20
-
21
- export interface IUpdatePanelAdminData {
22
- panel: IPanel;
23
- }
24
- export type IUpdatePanelAdminResponse = IResponse<IUpdatePanelAdminData>;
@@ -1,24 +0,0 @@
1
- import { IPanel } from '../../models/panel.model';
2
- import { BasePaginate } from '../type-message/base-paginate';
3
- import { IResponse } from '../type-message/response';
4
-
5
- export interface IGetPanelData {
6
- panel: IPanel;
7
- }
8
- export type IGetPanelResponse = IResponse<IGetPanelData>;
9
-
10
- export type IPaginatePanelResponse = IResponse<BasePaginate<IPanel>>;
11
-
12
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
13
- export interface IDeletePanelData {}
14
- export type IDeletePanelResponse = IResponse<IDeletePanelData>;
15
-
16
- export interface ICreatePanelData {
17
- panel: IPanel;
18
- }
19
- export type ICreatePanelResponse = IResponse<ICreatePanelData>;
20
-
21
- export interface IUpdatePanelData {
22
- panel: IPanel;
23
- }
24
- export type IUpdatePanelResponse = IResponse<IUpdatePanelData>;
@@ -1,4 +0,0 @@
1
- import { IResponse } from '../type-message/response';
2
-
3
- export type ICheckIntegrityStorageAdminData = Record<string, never>;
4
- export type ICheckIntegrityStorageAdminResponse = IResponse<ICheckIntegrityStorageAdminData>;
@@ -1,18 +0,0 @@
1
- import { BasePaginate, IResponse, IUser } from '../..';
2
-
3
- export interface IGetUserAdminData {
4
- user: IUser;
5
- }
6
- export type IGetUserAdminResponse = IResponse<IGetUserAdminData>;
7
-
8
- export type IPaginateUserAdminResponse = IResponse<BasePaginate<IUser>>;
9
-
10
- export interface IUpdateUserAdminData {
11
- user: IUser;
12
- }
13
- export type IUpdateUserAdminResponse = IResponse<IUpdateUserAdminData>;
14
-
15
- export interface IResetApiKeyUserAdminData {
16
- user: IUser;
17
- }
18
- export type IResetApiKeyUserAdminResponse = IResponse<IResetApiKeyUserAdminData>;
@@ -1,16 +0,0 @@
1
- import { IResponse, IUser } from '../..';
2
-
3
- export interface IMeUserData {
4
- user: IUser;
5
- }
6
- export type IMeUserResponse = IResponse<IMeUserData>;
7
-
8
- export interface IResetApiKeyUserData {
9
- user: IUser;
10
- }
11
- export type IResetApiKeyUserResponse = IResponse<IResetApiKeyUserData>;
12
-
13
- export interface IUpdateUserData {
14
- user: IUser;
15
- }
16
- export type IUpdateUserResponse = IResponse<IUpdateUserData>;
@@ -1,9 +0,0 @@
1
- import { Code, ErrorType } from '../../../enum';
2
-
3
- export interface IApiError {
4
- type: ErrorType;
5
- code: Code;
6
- message: string;
7
- params?: string;
8
- field?: string;
9
- }
@@ -1,4 +0,0 @@
1
- export interface BaseOrder {
2
- orderBy?: string;
3
- descending?: boolean;
4
- }
@@ -1,11 +0,0 @@
1
- export interface BasePaginate<T> {
2
- maxPages: number;
3
- currentPage: number;
4
- totalItems: number;
5
- data: T[];
6
- }
7
-
8
- export interface QueryPaginate {
9
- page?: number;
10
- limit?: number;
11
- }
@@ -1,6 +0,0 @@
1
- import { IApiError } from './api-error';
2
-
3
- export interface IResponse<T> {
4
- data: T;
5
- error?: IApiError | Error;
6
- }
@@ -1,15 +0,0 @@
1
- export * from './models/user.model';
2
- export * from './models/aggregator-link.model';
3
- export * from './models/bank-connection.model';
4
- export * from './models/bank-account.model';
5
- export * from './models/bank-account-history.model';
6
- export * from './models/account-transaction.model';
7
- export * from './models/aggregator-bank.model';
8
- export * from './models/category.model';
9
- export * from './models/transaction-category.model';
10
- export * from './models/categorization-rule.model';
11
- export * from './models/categorization-rule-category.model';
12
- export * from './models/panel.model';
13
-
14
- // API Request
15
- export * from './api';
@@ -1,53 +0,0 @@
1
- import { IBankAccount } from './bank-account.model';
2
- import { ITransactionCategory } from './transaction-category.model';
3
-
4
- export type AccountTransactionMetadata = {
5
- debtorAgent?: string;
6
- debtorName?: string;
7
- debtorAccount?: unknown;
8
-
9
- additionalDataStructured?: unknown;
10
- additionalInformation?: string;
11
- additionalInformationStructured?: string;
12
- bankTransactionCode?: string;
13
- proprietaryBankTransactionCode?: string;
14
- currencyExchange?: unknown;
15
- ultimateCreditor?: string;
16
- ultimateDebtor?: string;
17
-
18
- // Note(Mehdi): Already existing in model but possibly not visible
19
- internalTransactionId?: string;
20
- transactionId?: string;
21
- bookingDate?: string;
22
- bookingDateTime?: string;
23
- valueDate?: string;
24
- valueDateTime?: string;
25
- remittanceInformationUnstructured?: string;
26
- remittanceInformationUnstructuredArray?: string[];
27
- remittanceInformationStructured?: string;
28
- remittanceInformationStructuredArray?: string[];
29
- };
30
-
31
- export interface IAccountTransaction {
32
- id?: string;
33
- date: Date;
34
- amount: number;
35
- currency: string;
36
- description: string;
37
- comment: string | null;
38
- aggregatorTransactionId: string;
39
- bankAccountId: string;
40
- mandateId: string | null;
41
- merchantCategoryCode: string | null;
42
- entryReference: string | null;
43
- endToEndId: string | null;
44
- purposeCode: string | null;
45
- checkId: string | null;
46
- metadata: AccountTransactionMetadata;
47
- updatedAt?: Date;
48
- createdAt?: Date;
49
-
50
- // Associations
51
- bankAccount?: IBankAccount;
52
- transactionCategory?: ITransactionCategory[];
53
- }
@@ -1,15 +0,0 @@
1
- import { AggregatorType } from '../../enum';
2
-
3
- export interface IAggregatorBank {
4
- id?: string;
5
- aggregatorType: AggregatorType;
6
- aggregatorBankId: string;
7
- logoUrl: string;
8
- name: string;
9
- bic: string;
10
- countries: string[];
11
- updatedAt?: Date;
12
- createdAt?: Date;
13
-
14
- // Associations
15
- }
@@ -1,15 +0,0 @@
1
- import { AggregatorType } from '../../enum';
2
- import { IBankConnection } from './bank-connection.model';
3
- import { IUser } from './user.model';
4
-
5
- export interface IAggregatorLink {
6
- id?: string;
7
- type: AggregatorType;
8
- userId: string;
9
- updatedAt?: Date;
10
- createdAt?: Date;
11
-
12
- // Associations
13
- user?: IUser;
14
- bankConnection?: IBankConnection[];
15
- }
@@ -1,14 +0,0 @@
1
- import { IBankAccount } from './bank-account.model';
2
-
3
- export interface IBankAccountHistory {
4
- id?: string;
5
- expectedBalance: number;
6
- availableBalance: number;
7
- date: Date;
8
- bankAccountId: string;
9
- updatedAt?: Date;
10
- createdAt?: Date;
11
-
12
- // Associations
13
- bankAccount?: IBankAccount;
14
- }