@abyss-project/banking 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +34 -0
- package/README.md +2 -0
- package/dist/api/abyss.admin.api.d.ts +2 -0
- package/dist/api/abyss.admin.api.js +8 -0
- package/dist/api/banking.admin.api.d.ts +13 -0
- package/dist/api/banking.admin.api.js +52 -0
- package/dist/api/banking.api.d.ts +18 -0
- package/dist/api/banking.api.js +76 -0
- package/dist/api/categorization-rule.admin.api.d.ts +7 -0
- package/dist/api/categorization-rule.admin.api.js +28 -0
- package/dist/api/categorization-rule.api.d.ts +7 -0
- package/dist/api/categorization-rule.api.js +28 -0
- package/dist/api/category.admin.api.d.ts +6 -0
- package/dist/api/category.admin.api.js +27 -0
- package/dist/api/category.api.d.ts +9 -0
- package/dist/api/category.api.js +34 -0
- package/dist/api/index.d.ts +12 -0
- package/dist/api/index.js +24 -0
- package/dist/api/monitor.api.d.ts +2 -0
- package/dist/api/monitor.api.js +8 -0
- package/dist/api/panel.admin.api.d.ts +6 -0
- package/dist/api/panel.admin.api.js +27 -0
- package/dist/api/panel.api.d.ts +6 -0
- package/dist/api/panel.api.js +28 -0
- package/dist/api/user.admin.api.d.ts +5 -0
- package/dist/api/user.admin.api.js +23 -0
- package/dist/api/user.api.d.ts +4 -0
- package/dist/api/user.api.js +17 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +84 -0
- package/dist/types/enum/aggregator-type.enum.d.ts +4 -0
- package/dist/types/enum/aggregator-type.enum.js +8 -0
- package/dist/types/enum/api-error.enum.d.ts +16 -0
- package/dist/types/enum/api-error.enum.js +21 -0
- package/dist/types/enum/bank-connection-status.enum.d.ts +6 -0
- package/dist/types/enum/bank-connection-status.enum.js +10 -0
- package/dist/types/enum/cash-account-type.enum.d.ts +26 -0
- package/dist/types/enum/cash-account-type.enum.js +30 -0
- package/dist/types/enum/index.d.ts +6 -0
- package/dist/types/enum/index.js +18 -0
- package/dist/types/enum/panel-component-type.enum.d.ts +12 -0
- package/dist/types/enum/panel-component-type.enum.js +16 -0
- package/dist/types/enum/period-configuration.enum.d.ts +7 -0
- package/dist/types/enum/period-configuration.enum.js +11 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +14 -0
- package/dist/types/interface/api/index.d.ts +27 -0
- package/dist/types/interface/api/index.js +39 -0
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/abyss.admin.request.js +2 -0
- package/dist/types/interface/api/requests/banking.admin.request.d.ts +47 -0
- package/dist/types/interface/api/requests/banking.admin.request.js +2 -0
- package/dist/types/interface/api/requests/banking.request.d.ts +75 -0
- package/dist/types/interface/api/requests/banking.request.js +2 -0
- package/dist/types/interface/api/requests/categorization-rule.admin.request.d.ts +34 -0
- package/dist/types/interface/api/requests/categorization-rule.admin.request.js +2 -0
- package/dist/types/interface/api/requests/categorization-rule.request.d.ts +32 -0
- package/dist/types/interface/api/requests/categorization-rule.request.js +2 -0
- package/dist/types/interface/api/requests/category.admin.request.d.ts +22 -0
- package/dist/types/interface/api/requests/category.admin.request.js +2 -0
- package/dist/types/interface/api/requests/category.request.d.ts +26 -0
- package/dist/types/interface/api/requests/category.request.js +2 -0
- package/dist/types/interface/api/requests/panel.admin.request.d.ts +23 -0
- package/dist/types/interface/api/requests/panel.admin.request.js +2 -0
- package/dist/types/interface/api/requests/panel.request.d.ts +22 -0
- package/dist/types/interface/api/requests/panel.request.js +2 -0
- package/dist/types/interface/api/requests/user.admin.request.d.ts +15 -0
- package/dist/types/interface/api/requests/user.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user.request.d.ts +2 -0
- package/dist/types/interface/api/requests/user.request.js +2 -0
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +6 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js +2 -0
- package/dist/types/interface/api/responses/banking.admin.response.d.ts +48 -0
- package/dist/types/interface/api/responses/banking.admin.response.js +2 -0
- package/dist/types/interface/api/responses/banking.response.d.ts +86 -0
- package/dist/types/interface/api/responses/banking.response.js +2 -0
- package/dist/types/interface/api/responses/categorization-rule.admin.response.d.ts +22 -0
- package/dist/types/interface/api/responses/categorization-rule.admin.response.js +2 -0
- package/dist/types/interface/api/responses/categorization-rule.response.d.ts +22 -0
- package/dist/types/interface/api/responses/categorization-rule.response.js +2 -0
- package/dist/types/interface/api/responses/category.admin.response.d.ts +19 -0
- package/dist/types/interface/api/responses/category.admin.response.js +2 -0
- package/dist/types/interface/api/responses/category.response.d.ts +32 -0
- package/dist/types/interface/api/responses/category.response.js +2 -0
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
- package/dist/types/interface/api/responses/monitor.response.js +2 -0
- package/dist/types/interface/api/responses/panel.admin.response.d.ts +19 -0
- package/dist/types/interface/api/responses/panel.admin.response.js +2 -0
- package/dist/types/interface/api/responses/panel.response.d.ts +19 -0
- package/dist/types/interface/api/responses/panel.response.js +2 -0
- package/dist/types/interface/api/responses/storage.admin.response.d.ts +3 -0
- package/dist/types/interface/api/responses/storage.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.admin.response.d.ts +14 -0
- package/dist/types/interface/api/responses/user.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.response.d.ts +13 -0
- package/dist/types/interface/api/responses/user.response.js +2 -0
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
- package/dist/types/interface/api/type-message/api-error.js +2 -0
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
- package/dist/types/interface/api/type-message/base-order.js +2 -0
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
- package/dist/types/interface/api/type-message/base-paginate.js +2 -0
- package/dist/types/interface/api/type-message/response.d.ts +5 -0
- package/dist/types/interface/api/type-message/response.js +2 -0
- package/dist/types/interface/index.d.ts +13 -0
- package/dist/types/interface/index.js +25 -0
- package/dist/types/interface/models/account-transaction.model.d.ts +46 -0
- package/dist/types/interface/models/account-transaction.model.js +2 -0
- package/dist/types/interface/models/aggregator-bank.model.d.ts +12 -0
- package/dist/types/interface/models/aggregator-bank.model.js +2 -0
- package/dist/types/interface/models/aggregator-link.model.d.ts +12 -0
- package/dist/types/interface/models/aggregator-link.model.js +2 -0
- package/dist/types/interface/models/bank-account-history.model.d.ts +11 -0
- package/dist/types/interface/models/bank-account-history.model.js +2 -0
- package/dist/types/interface/models/bank-account-transaction.model.d.ts +14 -0
- package/dist/types/interface/models/bank-account-transaction.model.js +2 -0
- package/dist/types/interface/models/bank-account.model.d.ts +26 -0
- package/dist/types/interface/models/bank-account.model.js +2 -0
- package/dist/types/interface/models/bank-connection.model.d.ts +17 -0
- package/dist/types/interface/models/bank-connection.model.js +2 -0
- package/dist/types/interface/models/categorization-rule-category.model.d.ts +11 -0
- package/dist/types/interface/models/categorization-rule-category.model.js +2 -0
- package/dist/types/interface/models/categorization-rule.model.d.ts +44 -0
- package/dist/types/interface/models/categorization-rule.model.js +2 -0
- package/dist/types/interface/models/category.model.d.ts +14 -0
- package/dist/types/interface/models/category.model.js +2 -0
- package/dist/types/interface/models/panel.model.d.ts +108 -0
- package/dist/types/interface/models/panel.model.js +2 -0
- package/dist/types/interface/models/transaction-category.model.d.ts +14 -0
- package/dist/types/interface/models/transaction-category.model.js +2 -0
- package/dist/types/interface/models/user.model.d.ts +13 -0
- package/dist/types/interface/models/user.model.js +2 -0
- package/dist/utils/error.utils.d.ts +15 -0
- package/dist/utils/error.utils.js +24 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +13 -0
- package/package.json +48 -0
- package/src/api/abyss.admin.api.ts +16 -0
- package/src/api/banking.admin.api.ts +141 -0
- package/src/api/banking.api.ts +197 -0
- package/src/api/categorization-rule.admin.api.ts +80 -0
- package/src/api/categorization-rule.api.ts +80 -0
- package/src/api/category.admin.api.ts +63 -0
- package/src/api/category.api.ts +74 -0
- package/src/api/index.ts +12 -0
- package/src/api/monitor.api.ts +6 -0
- package/src/api/panel.admin.api.ts +57 -0
- package/src/api/panel.api.ts +45 -0
- package/src/api/user.admin.api.ts +44 -0
- package/src/api/user.api.ts +20 -0
- package/src/index.ts +72 -0
- package/src/types/enum/aggregator-type.enum.ts +4 -0
- package/src/types/enum/api-error.enum.ts +18 -0
- package/src/types/enum/bank-connection-status.enum.ts +6 -0
- package/src/types/enum/cash-account-type.enum.ts +54 -0
- package/src/types/enum/index.ts +7 -0
- package/src/types/enum/panel-component-type.enum.ts +12 -0
- package/src/types/enum/period-configuration.enum.ts +7 -0
- package/src/types/index.ts +2 -0
- package/src/types/interface/api/index.ts +29 -0
- package/src/types/interface/api/requests/abyss.admin.request.ts +3 -0
- package/src/types/interface/api/requests/banking.admin.request.ts +57 -0
- package/src/types/interface/api/requests/banking.request.ts +89 -0
- package/src/types/interface/api/requests/categorization-rule.admin.request.ts +40 -0
- package/src/types/interface/api/requests/categorization-rule.request.ts +38 -0
- package/src/types/interface/api/requests/category.admin.request.ts +27 -0
- package/src/types/interface/api/requests/category.request.ts +31 -0
- package/src/types/interface/api/requests/panel.admin.request.ts +28 -0
- package/src/types/interface/api/requests/panel.request.ts +27 -0
- package/src/types/interface/api/requests/user.admin.request.ts +20 -0
- package/src/types/interface/api/requests/user.request.ts +2 -0
- package/src/types/interface/api/responses/abyss.admin.response.ts +7 -0
- package/src/types/interface/api/responses/banking.admin.response.ts +73 -0
- package/src/types/interface/api/responses/banking.response.ts +119 -0
- package/src/types/interface/api/responses/categorization-rule.admin.response.ts +28 -0
- package/src/types/interface/api/responses/categorization-rule.response.ts +28 -0
- package/src/types/interface/api/responses/category.admin.response.ts +24 -0
- package/src/types/interface/api/responses/category.response.ts +39 -0
- package/src/types/interface/api/responses/monitor.response.ts +8 -0
- package/src/types/interface/api/responses/panel.admin.response.ts +24 -0
- package/src/types/interface/api/responses/panel.response.ts +24 -0
- package/src/types/interface/api/responses/storage.admin.response.ts +4 -0
- package/src/types/interface/api/responses/user.admin.response.ts +18 -0
- package/src/types/interface/api/responses/user.response.ts +16 -0
- package/src/types/interface/api/type-message/api-error.ts +9 -0
- package/src/types/interface/api/type-message/base-order.ts +4 -0
- package/src/types/interface/api/type-message/base-paginate.ts +11 -0
- package/src/types/interface/api/type-message/response.ts +6 -0
- package/src/types/interface/index.ts +15 -0
- package/src/types/interface/models/account-transaction.model.ts +53 -0
- package/src/types/interface/models/aggregator-bank.model.ts +15 -0
- package/src/types/interface/models/aggregator-link.model.ts +15 -0
- package/src/types/interface/models/bank-account-history.model.ts +14 -0
- package/src/types/interface/models/bank-account.model.ts +29 -0
- package/src/types/interface/models/bank-connection.model.ts +20 -0
- package/src/types/interface/models/categorization-rule-category.model.ts +14 -0
- package/src/types/interface/models/categorization-rule.model.ts +48 -0
- package/src/types/interface/models/category.model.ts +17 -0
- package/src/types/interface/models/panel.model.ts +135 -0
- package/src/types/interface/models/transaction-category.model.ts +17 -0
- package/src/types/interface/models/user.model.ts +16 -0
- package/src/utils/error.utils.ts +30 -0
- package/src/utils/index.ts +1 -0
- package/tsconfig.json +105 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface IRemoveCategoryParams {
|
|
2
|
+
transactionCategoryId: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IAddCategoryParams {
|
|
5
|
+
categoryId: string;
|
|
6
|
+
accountTransactionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IDeleteCategoryParams {
|
|
9
|
+
categoryId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ICreateCategoryBody {
|
|
12
|
+
name: string;
|
|
13
|
+
color: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IUpdateCategoryParams {
|
|
16
|
+
categoryId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateCategoryBody {
|
|
19
|
+
name?: string;
|
|
20
|
+
color?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IListAnalyticsCategoryQuery {
|
|
23
|
+
bankAccountId?: string[];
|
|
24
|
+
before?: Date;
|
|
25
|
+
after?: Date;
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PanelComposition } from '../../models/panel.model';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
export declare type IPaginatePanelAdminQuery = {
|
|
4
|
+
name?: string;
|
|
5
|
+
} & QueryPaginate;
|
|
6
|
+
export interface IGetPanelAdminParams {
|
|
7
|
+
panelId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IDeletePanelAdminParams {
|
|
10
|
+
panelId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreatePanelAdminBody {
|
|
13
|
+
userId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
composition: PanelComposition;
|
|
16
|
+
}
|
|
17
|
+
export interface IUpdatePanelAdminParams {
|
|
18
|
+
panelId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IUpdatePanelAdminBody {
|
|
21
|
+
name?: string;
|
|
22
|
+
composition?: PanelComposition;
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PanelComposition } from '../../models/panel.model';
|
|
2
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
|
+
export declare type IPaginatePanelQuery = {
|
|
4
|
+
name?: string;
|
|
5
|
+
} & QueryPaginate;
|
|
6
|
+
export interface IGetPanelParams {
|
|
7
|
+
panelId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IDeletePanelParams {
|
|
10
|
+
panelId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreatePanelBody {
|
|
13
|
+
name: string;
|
|
14
|
+
composition: PanelComposition;
|
|
15
|
+
}
|
|
16
|
+
export interface IUpdatePanelParams {
|
|
17
|
+
panelId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IUpdatePanelBody {
|
|
20
|
+
name?: string;
|
|
21
|
+
composition?: PanelComposition;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
import * as core from 'express-serve-static-core';
|
|
3
|
+
export interface IGetUserAdminParams extends core.ParamsDictionary {
|
|
4
|
+
userId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IResetApiKeyUserAdminParams extends core.ParamsDictionary {
|
|
7
|
+
userId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type IPaginateUserAdminQuery = QueryPaginate;
|
|
10
|
+
export interface IUpdateUserAdminParams extends core.ParamsDictionary {
|
|
11
|
+
userId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IUpdateUserAdminBody {
|
|
14
|
+
isAdmin?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IUser } from '../../models/user.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IActivateUserServiceAbyssAdminData {
|
|
4
|
+
user: IUser;
|
|
5
|
+
}
|
|
6
|
+
export declare type IActivateUserServiceAbyssAdminResponse = IResponse<IActivateUserServiceAbyssAdminData>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BasePaginate, IAccountTransaction, IAggregatorBank, IAggregatorLink, IBankAccount, IBankConnection, IResponse } from '../..';
|
|
2
|
+
export interface IListBankConnectionBankingAdminData {
|
|
3
|
+
aggregatorLink: IAggregatorLink[];
|
|
4
|
+
}
|
|
5
|
+
export declare type IListBankConnectionBankingAdminResponse = IResponse<IListBankConnectionBankingAdminData>;
|
|
6
|
+
export interface IGetBankConnectionBankingAdminData {
|
|
7
|
+
bankConnection: IBankConnection;
|
|
8
|
+
}
|
|
9
|
+
export declare type IGetBankConnectionBankingAdminResponse = IResponse<IGetBankConnectionBankingAdminData>;
|
|
10
|
+
export interface IListInstitutionBankingAdminData {
|
|
11
|
+
institution: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
countries: string[];
|
|
15
|
+
logoUrl: string;
|
|
16
|
+
bic: string;
|
|
17
|
+
transactionTotalDays: string;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export declare type IListInstitutionBankingAdminResponse = IResponse<IListInstitutionBankingAdminData>;
|
|
21
|
+
export interface IListBankBankingAdminData {
|
|
22
|
+
aggregatorBank: IAggregatorBank[];
|
|
23
|
+
}
|
|
24
|
+
export declare type IListBankBankingAdminResponse = IResponse<IListBankBankingAdminData>;
|
|
25
|
+
export interface IConfirmRequisitionBankingAdminData {
|
|
26
|
+
bankConnection: IBankConnection;
|
|
27
|
+
}
|
|
28
|
+
export declare type IConfirmRequisitionBankingAdminResponse = IResponse<IConfirmRequisitionBankingAdminData>;
|
|
29
|
+
export declare type IPaginateAccountTransactionBankingAdminResponse = IResponse<BasePaginate<IAccountTransaction>>;
|
|
30
|
+
export interface IGetAccountTransactionBankingAdminData {
|
|
31
|
+
accountTransaction: IAccountTransaction;
|
|
32
|
+
}
|
|
33
|
+
export declare type IGetAccountTransactionBankingAdminResponse = IResponse<IGetAccountTransactionBankingAdminData>;
|
|
34
|
+
export interface IUpdateAccountTransactionBankingAdminData {
|
|
35
|
+
accountTransaction: IAccountTransaction;
|
|
36
|
+
}
|
|
37
|
+
export declare type IUpdateAccountTransactionBankingAdminResponse = IResponse<IUpdateAccountTransactionBankingAdminData>;
|
|
38
|
+
export interface IUpdateBankAccountBankingAdminData {
|
|
39
|
+
bankAccount: IBankAccount;
|
|
40
|
+
}
|
|
41
|
+
export declare type IUpdateBankAccountBankingAdminResponse = IResponse<IUpdateBankAccountBankingAdminData>;
|
|
42
|
+
export interface ILoadDemoDataBankingAdminData {
|
|
43
|
+
aggregatorLink: IAggregatorLink;
|
|
44
|
+
}
|
|
45
|
+
export declare type ILoadDemoDataBankingAdminResponse = IResponse<ILoadDemoDataBankingAdminData>;
|
|
46
|
+
export interface IDeleteDemoDataBankingAdminData {
|
|
47
|
+
}
|
|
48
|
+
export declare type IDeleteDemoDataBankingAdminResponse = IResponse<IDeleteDemoDataBankingAdminData>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { BasePaginate, IAccountTransaction, IAggregatorBank, IAggregatorLink, IBankAccount, IBankAccountHistory, IBankConnection, IResponse } from '../..';
|
|
2
|
+
export interface IListConnectionBankingData {
|
|
3
|
+
aggregatorLink: IAggregatorLink[];
|
|
4
|
+
}
|
|
5
|
+
export declare type IListConnectionBankingResponse = IResponse<IListConnectionBankingData>;
|
|
6
|
+
export interface IGetBankConnectionBankingData {
|
|
7
|
+
bankConnection: IBankConnection;
|
|
8
|
+
}
|
|
9
|
+
export declare type IGetBankConnectionBankingResponse = IResponse<IGetBankConnectionBankingData>;
|
|
10
|
+
export interface IListInstitutionBankingData {
|
|
11
|
+
institution: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
countries: string[];
|
|
15
|
+
logoUrl: string;
|
|
16
|
+
bic: string;
|
|
17
|
+
transactionTotalDays: string;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
20
|
+
export declare type IListInstitutionBankingResponse = IResponse<IListInstitutionBankingData>;
|
|
21
|
+
export interface IListBankBankingData {
|
|
22
|
+
aggregatorBank: IAggregatorBank[];
|
|
23
|
+
}
|
|
24
|
+
export declare type IListBankBankingResponse = IResponse<IListBankBankingData>;
|
|
25
|
+
export interface ICreateRequisitionBankingData {
|
|
26
|
+
connectionLink: string;
|
|
27
|
+
}
|
|
28
|
+
export declare type ICreateRequisitionBankingResponse = IResponse<ICreateRequisitionBankingData>;
|
|
29
|
+
export interface IRenewRequisitionBankingData {
|
|
30
|
+
connectionLink: string;
|
|
31
|
+
}
|
|
32
|
+
export declare type IRenewRequisitionBankingResponse = IResponse<IRenewRequisitionBankingData>;
|
|
33
|
+
export interface IConfirmRequisitionBankingData {
|
|
34
|
+
bankConnection: IBankConnection;
|
|
35
|
+
}
|
|
36
|
+
export declare type IConfirmRequisitionBankingResponse = IResponse<IConfirmRequisitionBankingData>;
|
|
37
|
+
export declare type IPaginateAccountTransactionBankingResponse = IResponse<BasePaginate<IAccountTransaction>>;
|
|
38
|
+
export interface IGetAccountTransactionBankingData {
|
|
39
|
+
accountTransaction: IAccountTransaction;
|
|
40
|
+
}
|
|
41
|
+
export declare type IGetAccountTransactionBankingResponse = IResponse<IGetAccountTransactionBankingData>;
|
|
42
|
+
export interface IUpdateAccountTransactionBankingData {
|
|
43
|
+
accountTransaction: IAccountTransaction;
|
|
44
|
+
}
|
|
45
|
+
export declare type IUpdateAccountTransactionBankingResponse = IResponse<IUpdateAccountTransactionBankingData>;
|
|
46
|
+
export interface IUpdateBankAccountBankingData {
|
|
47
|
+
bankAccount: IBankAccount;
|
|
48
|
+
}
|
|
49
|
+
export declare type IUpdateBankAccountBankingResponse = IResponse<IUpdateBankAccountBankingData>;
|
|
50
|
+
export interface ILoadDemoDataBankingData {
|
|
51
|
+
aggregatorLink: IAggregatorLink;
|
|
52
|
+
}
|
|
53
|
+
export declare type ILoadDemoDataBankingResponse = IResponse<ILoadDemoDataBankingData>;
|
|
54
|
+
export interface IDeleteDemoDataBankingData {
|
|
55
|
+
}
|
|
56
|
+
export declare type IDeleteDemoDataBankingResponse = IResponse<IDeleteDemoDataBankingData>;
|
|
57
|
+
export interface IGetTransactionPerCategoryBankingData {
|
|
58
|
+
analytics: {
|
|
59
|
+
bankAccountId: string;
|
|
60
|
+
transactionCount: number;
|
|
61
|
+
}[];
|
|
62
|
+
}
|
|
63
|
+
export declare type IGetTransactionPerCategoryBankingResponse = IResponse<IGetTransactionPerCategoryBankingData>;
|
|
64
|
+
export interface IGetSumTransactionPerBankAccountPerCategoryBankingData {
|
|
65
|
+
analytics: {
|
|
66
|
+
bankAccountId: string;
|
|
67
|
+
categories: {
|
|
68
|
+
categoryId: string | null;
|
|
69
|
+
transactionCount: number;
|
|
70
|
+
transactionSum: number;
|
|
71
|
+
transactions: {
|
|
72
|
+
id: string;
|
|
73
|
+
amount: number;
|
|
74
|
+
date: Date;
|
|
75
|
+
description: string;
|
|
76
|
+
comment: string | null;
|
|
77
|
+
}[];
|
|
78
|
+
}[];
|
|
79
|
+
}[];
|
|
80
|
+
}
|
|
81
|
+
export declare type IGetSumTransactionPerBankAccountPerCategoryBankingResponse = IResponse<IGetSumTransactionPerBankAccountPerCategoryBankingData>;
|
|
82
|
+
export declare type IPaginateBankAccountHistoryBankingResponse = IResponse<BasePaginate<IBankAccountHistory>>;
|
|
83
|
+
export interface IListBankAccountHistoryBankingData {
|
|
84
|
+
bankAccountHistory: IBankAccountHistory[];
|
|
85
|
+
}
|
|
86
|
+
export declare type IListBankAccountHistoryBankingResponse = IResponse<IListBankAccountHistoryBankingData>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICategorizationRule } from '../../models/categorization-rule.model';
|
|
2
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IGetCategorizationRuleAdminData {
|
|
5
|
+
categorizationRule: ICategorizationRule;
|
|
6
|
+
}
|
|
7
|
+
export declare type IGetCategorizationRuleAdminResponse = IResponse<IGetCategorizationRuleAdminData>;
|
|
8
|
+
export declare type IPaginateCategorizationRuleAdminResponse = IResponse<BasePaginate<ICategorizationRule>>;
|
|
9
|
+
export interface IDeleteCategorizationRuleAdminData {
|
|
10
|
+
}
|
|
11
|
+
export declare type IDeleteCategorizationRuleAdminResponse = IResponse<IDeleteCategorizationRuleAdminData>;
|
|
12
|
+
export interface ICreateCategorizationRuleAdminData {
|
|
13
|
+
categorizationRule: ICategorizationRule;
|
|
14
|
+
}
|
|
15
|
+
export declare type ICreateCategorizationRuleAdminResponse = IResponse<ICreateCategorizationRuleAdminData>;
|
|
16
|
+
export interface IUpdateCategorizationRuleAdminData {
|
|
17
|
+
categorizationRule: ICategorizationRule;
|
|
18
|
+
}
|
|
19
|
+
export declare type IUpdateCategorizationRuleAdminResponse = IResponse<IUpdateCategorizationRuleAdminData>;
|
|
20
|
+
export interface IApplyCategorizationRuleAdminData {
|
|
21
|
+
}
|
|
22
|
+
export declare type IApplyCategorizationRuleAdminResponse = IResponse<IApplyCategorizationRuleAdminData>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICategorizationRule } from '../../models/categorization-rule.model';
|
|
2
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IGetCategorizationRuleData {
|
|
5
|
+
categorizationRule: ICategorizationRule;
|
|
6
|
+
}
|
|
7
|
+
export declare type IGetCategorizationRuleResponse = IResponse<IGetCategorizationRuleData>;
|
|
8
|
+
export declare type IPaginateCategorizationRuleResponse = IResponse<BasePaginate<ICategorizationRule>>;
|
|
9
|
+
export interface IDeleteCategorizationRuleData {
|
|
10
|
+
}
|
|
11
|
+
export declare type IDeleteCategorizationRuleResponse = IResponse<IDeleteCategorizationRuleData>;
|
|
12
|
+
export interface ICreateCategorizationRuleData {
|
|
13
|
+
categorizationRule: ICategorizationRule;
|
|
14
|
+
}
|
|
15
|
+
export declare type ICreateCategorizationRuleResponse = IResponse<ICreateCategorizationRuleData>;
|
|
16
|
+
export interface IUpdateCategorizationRuleData {
|
|
17
|
+
categorizationRule: ICategorizationRule;
|
|
18
|
+
}
|
|
19
|
+
export declare type IUpdateCategorizationRuleResponse = IResponse<IUpdateCategorizationRuleData>;
|
|
20
|
+
export interface IApplyCategorizationRuleData {
|
|
21
|
+
}
|
|
22
|
+
export declare type IApplyCategorizationRuleResponse = IResponse<IApplyCategorizationRuleData>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICategory } from '../../models/category.model';
|
|
2
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IGetCategoryAdminData {
|
|
5
|
+
category: ICategory;
|
|
6
|
+
}
|
|
7
|
+
export declare type IGetCategoryAdminResponse = IResponse<IGetCategoryAdminData>;
|
|
8
|
+
export declare type IPaginateCategoryAdminResponse = IResponse<BasePaginate<ICategory>>;
|
|
9
|
+
export interface IDeleteCategoryAdminData {
|
|
10
|
+
}
|
|
11
|
+
export declare type IDeleteCategoryAdminResponse = IResponse<IDeleteCategoryAdminData>;
|
|
12
|
+
export interface ICreateCategoryAdminData {
|
|
13
|
+
category: ICategory;
|
|
14
|
+
}
|
|
15
|
+
export declare type ICreateCategoryAdminResponse = IResponse<ICreateCategoryAdminData>;
|
|
16
|
+
export interface IUpdateCategoryAdminData {
|
|
17
|
+
category: ICategory;
|
|
18
|
+
}
|
|
19
|
+
export declare type IUpdateCategoryAdminResponse = IResponse<IUpdateCategoryAdminData>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ICategory } from '../../models/category.model';
|
|
2
|
+
import { ITransactionCategory } from '../../models/transaction-category.model';
|
|
3
|
+
import { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IListCategoryData {
|
|
5
|
+
category: ICategory[];
|
|
6
|
+
}
|
|
7
|
+
export declare type IListCategoryResponse = IResponse<IListCategoryData>;
|
|
8
|
+
export interface IListAnalyticsCategoryData {
|
|
9
|
+
categories: {
|
|
10
|
+
transactionCount: number;
|
|
11
|
+
category: ICategory;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
export declare type IListAnalyticsCategoryResponse = IResponse<IListAnalyticsCategoryData>;
|
|
15
|
+
export interface IRemoveCategoryData {
|
|
16
|
+
}
|
|
17
|
+
export declare type IRemoveCategoryResponse = IResponse<IRemoveCategoryData>;
|
|
18
|
+
export interface IAddCategoryData {
|
|
19
|
+
transactionCategory: ITransactionCategory;
|
|
20
|
+
}
|
|
21
|
+
export declare type IAddCategoryResponse = IResponse<IAddCategoryData>;
|
|
22
|
+
export interface IDeleteCategoryData {
|
|
23
|
+
}
|
|
24
|
+
export declare type IDeleteCategoryResponse = IResponse<IDeleteCategoryData>;
|
|
25
|
+
export interface ICreateCategoryData {
|
|
26
|
+
category: ICategory;
|
|
27
|
+
}
|
|
28
|
+
export declare type ICreateCategoryResponse = IResponse<ICreateCategoryData>;
|
|
29
|
+
export interface IUpdateCategoryData {
|
|
30
|
+
category: ICategory;
|
|
31
|
+
}
|
|
32
|
+
export declare type IUpdateCategoryResponse = IResponse<IUpdateCategoryData>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IPanel } from '../../models/panel.model';
|
|
2
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IGetPanelAdminData {
|
|
5
|
+
panel: IPanel;
|
|
6
|
+
}
|
|
7
|
+
export declare type IGetPanelAdminResponse = IResponse<IGetPanelAdminData>;
|
|
8
|
+
export declare type IPaginatePanelAdminResponse = IResponse<BasePaginate<IPanel>>;
|
|
9
|
+
export interface IDeletePanelAdminData {
|
|
10
|
+
}
|
|
11
|
+
export declare type IDeletePanelAdminResponse = IResponse<IDeletePanelAdminData>;
|
|
12
|
+
export interface ICreatePanelAdminData {
|
|
13
|
+
panel: IPanel;
|
|
14
|
+
}
|
|
15
|
+
export declare type ICreatePanelAdminResponse = IResponse<ICreatePanelAdminData>;
|
|
16
|
+
export interface IUpdatePanelAdminData {
|
|
17
|
+
panel: IPanel;
|
|
18
|
+
}
|
|
19
|
+
export declare type IUpdatePanelAdminResponse = IResponse<IUpdatePanelAdminData>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IPanel } from '../../models/panel.model';
|
|
2
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IGetPanelData {
|
|
5
|
+
panel: IPanel;
|
|
6
|
+
}
|
|
7
|
+
export declare type IGetPanelResponse = IResponse<IGetPanelData>;
|
|
8
|
+
export declare type IPaginatePanelResponse = IResponse<BasePaginate<IPanel>>;
|
|
9
|
+
export interface IDeletePanelData {
|
|
10
|
+
}
|
|
11
|
+
export declare type IDeletePanelResponse = IResponse<IDeletePanelData>;
|
|
12
|
+
export interface ICreatePanelData {
|
|
13
|
+
panel: IPanel;
|
|
14
|
+
}
|
|
15
|
+
export declare type ICreatePanelResponse = IResponse<ICreatePanelData>;
|
|
16
|
+
export interface IUpdatePanelData {
|
|
17
|
+
panel: IPanel;
|
|
18
|
+
}
|
|
19
|
+
export declare type IUpdatePanelResponse = IResponse<IUpdatePanelData>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BasePaginate, IResponse, IUser } from '../..';
|
|
2
|
+
export interface IGetUserAdminData {
|
|
3
|
+
user: IUser;
|
|
4
|
+
}
|
|
5
|
+
export declare type IGetUserAdminResponse = IResponse<IGetUserAdminData>;
|
|
6
|
+
export declare type IPaginateUserAdminResponse = IResponse<BasePaginate<IUser>>;
|
|
7
|
+
export interface IUpdateUserAdminData {
|
|
8
|
+
user: IUser;
|
|
9
|
+
}
|
|
10
|
+
export declare type IUpdateUserAdminResponse = IResponse<IUpdateUserAdminData>;
|
|
11
|
+
export interface IResetApiKeyUserAdminData {
|
|
12
|
+
user: IUser;
|
|
13
|
+
}
|
|
14
|
+
export declare type IResetApiKeyUserAdminResponse = IResponse<IResetApiKeyUserAdminData>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IResponse, IUser } from '../..';
|
|
2
|
+
export interface IMeUserData {
|
|
3
|
+
user: IUser;
|
|
4
|
+
}
|
|
5
|
+
export declare type IMeUserResponse = IResponse<IMeUserData>;
|
|
6
|
+
export interface IResetApiKeyUserData {
|
|
7
|
+
user: IUser;
|
|
8
|
+
}
|
|
9
|
+
export declare type IResetApiKeyUserResponse = IResponse<IResetApiKeyUserData>;
|
|
10
|
+
export interface IUpdateUserData {
|
|
11
|
+
user: IUser;
|
|
12
|
+
}
|
|
13
|
+
export declare type IUpdateUserResponse = IResponse<IUpdateUserData>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export * from './api';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./models/user.model"), exports);
|
|
14
|
+
__exportStar(require("./models/aggregator-link.model"), exports);
|
|
15
|
+
__exportStar(require("./models/bank-connection.model"), exports);
|
|
16
|
+
__exportStar(require("./models/bank-account.model"), exports);
|
|
17
|
+
__exportStar(require("./models/bank-account-history.model"), exports);
|
|
18
|
+
__exportStar(require("./models/account-transaction.model"), exports);
|
|
19
|
+
__exportStar(require("./models/aggregator-bank.model"), exports);
|
|
20
|
+
__exportStar(require("./models/category.model"), exports);
|
|
21
|
+
__exportStar(require("./models/transaction-category.model"), exports);
|
|
22
|
+
__exportStar(require("./models/categorization-rule.model"), exports);
|
|
23
|
+
__exportStar(require("./models/categorization-rule-category.model"), exports);
|
|
24
|
+
__exportStar(require("./models/panel.model"), exports);
|
|
25
|
+
__exportStar(require("./api"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IBankAccount } from './bank-account.model';
|
|
2
|
+
import { ITransactionCategory } from './transaction-category.model';
|
|
3
|
+
export declare type AccountTransactionMetadata = {
|
|
4
|
+
debtorAgent?: string;
|
|
5
|
+
debtorName?: string;
|
|
6
|
+
debtorAccount?: unknown;
|
|
7
|
+
additionalDataStructured?: unknown;
|
|
8
|
+
additionalInformation?: string;
|
|
9
|
+
additionalInformationStructured?: string;
|
|
10
|
+
bankTransactionCode?: string;
|
|
11
|
+
proprietaryBankTransactionCode?: string;
|
|
12
|
+
currencyExchange?: unknown;
|
|
13
|
+
ultimateCreditor?: string;
|
|
14
|
+
ultimateDebtor?: string;
|
|
15
|
+
internalTransactionId?: string;
|
|
16
|
+
transactionId?: string;
|
|
17
|
+
bookingDate?: string;
|
|
18
|
+
bookingDateTime?: string;
|
|
19
|
+
valueDate?: string;
|
|
20
|
+
valueDateTime?: string;
|
|
21
|
+
remittanceInformationUnstructured?: string;
|
|
22
|
+
remittanceInformationUnstructuredArray?: string[];
|
|
23
|
+
remittanceInformationStructured?: string;
|
|
24
|
+
remittanceInformationStructuredArray?: string[];
|
|
25
|
+
};
|
|
26
|
+
export interface IAccountTransaction {
|
|
27
|
+
id?: string;
|
|
28
|
+
date: Date;
|
|
29
|
+
amount: number;
|
|
30
|
+
currency: string;
|
|
31
|
+
description: string;
|
|
32
|
+
comment: string | null;
|
|
33
|
+
aggregatorTransactionId: string;
|
|
34
|
+
bankAccountId: string;
|
|
35
|
+
mandateId: string | null;
|
|
36
|
+
merchantCategoryCode: string | null;
|
|
37
|
+
entryReference: string | null;
|
|
38
|
+
endToEndId: string | null;
|
|
39
|
+
purposeCode: string | null;
|
|
40
|
+
checkId: string | null;
|
|
41
|
+
metadata: AccountTransactionMetadata;
|
|
42
|
+
updatedAt?: Date;
|
|
43
|
+
createdAt?: Date;
|
|
44
|
+
bankAccount?: IBankAccount;
|
|
45
|
+
transactionCategory?: ITransactionCategory[];
|
|
46
|
+
}
|