@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
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
+
'filenames-simple/naming-convention': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
// Use custom regexp to match migration file
|
|
29
|
+
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
overrides: [],
|
|
34
|
+
};
|
package/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.activateUserServiceAbyssAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const activateUserServiceAbyssAdmin = async (body) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.post(`abyss/admin/user/activate-service`, body)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.activateUserServiceAbyssAdmin = activateUserServiceAbyssAdmin;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IConfirmRequisitionBankingAdminParams, IConfirmRequisitionBankingAdminResponse, IListInstitutionBankingAdminResponse, IListInstitutionBankingAdminQuery, IListBankConnectionBankingAdminResponse, IListBankBankingAdminResponse, IGetBankConnectionBankingAdminResponse, IGetBankConnectionBankingAdminParams, IPaginateAccountTransactionBankingAdminQuery, IPaginateAccountTransactionBankingAdminResponse, IGetAccountTransactionBankingAdminParams, IGetAccountTransactionBankingAdminResponse, IUpdateBankAccountBankingAdminParams, IUpdateBankAccountBankingAdminBody, IUpdateBankAccountBankingAdminResponse, ILoadDemoDataBankingAdminResponse, IDeleteDemoDataBankingAdminResponse, IListBankConnectionBankingAdminParams, ILoadDemoDataBankingAdminParams, IDeleteDemoDataBankingAdminParams, IUpdateAccountTransactionBankingAdminParams, IUpdateAccountTransactionBankingAdminBody } from '..';
|
|
2
|
+
export declare const listBankConnectionBankingAdmin: (params: IListBankConnectionBankingAdminParams) => Promise<IListBankConnectionBankingAdminResponse>;
|
|
3
|
+
export declare const getBankConnectionBankingAdmin: (params: IGetBankConnectionBankingAdminParams) => Promise<IGetBankConnectionBankingAdminResponse>;
|
|
4
|
+
export declare const listBankBankingAdmin: () => Promise<IListBankBankingAdminResponse>;
|
|
5
|
+
export declare const listInstitutionBankingAdmin: (query: IListInstitutionBankingAdminQuery) => Promise<IListInstitutionBankingAdminResponse>;
|
|
6
|
+
export declare const confirmRequisitionBankingAdmin: (params: IConfirmRequisitionBankingAdminParams) => Promise<IConfirmRequisitionBankingAdminResponse>;
|
|
7
|
+
export declare const paginateAccountTransactionBankingAdmin: (query: IPaginateAccountTransactionBankingAdminQuery) => Promise<IPaginateAccountTransactionBankingAdminResponse>;
|
|
8
|
+
export declare const getAccountTransactionBankingAdmin: (params: IGetAccountTransactionBankingAdminParams) => Promise<IGetAccountTransactionBankingAdminResponse>;
|
|
9
|
+
export declare const updateAccountTransactionBankingAdmin: (params: IUpdateAccountTransactionBankingAdminParams, body: IUpdateAccountTransactionBankingAdminBody) => Promise<IGetAccountTransactionBankingAdminResponse>;
|
|
10
|
+
export declare const updateBankAccountBankingAdmin: (params: IUpdateBankAccountBankingAdminParams, body: IUpdateBankAccountBankingAdminBody) => Promise<IUpdateBankAccountBankingAdminResponse>;
|
|
11
|
+
export declare const loadDemoDataBankingAdmin: (params: ILoadDemoDataBankingAdminParams) => Promise<ILoadDemoDataBankingAdminResponse>;
|
|
12
|
+
export declare const deleteDemoDataBankingAdmin: (params: IDeleteDemoDataBankingAdminParams) => Promise<IDeleteDemoDataBankingAdminResponse>;
|
|
13
|
+
export declare const fetchBankingDataBankingAdmin: () => Promise<string>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchBankingDataBankingAdmin = exports.deleteDemoDataBankingAdmin = exports.loadDemoDataBankingAdmin = exports.updateBankAccountBankingAdmin = exports.updateAccountTransactionBankingAdmin = exports.getAccountTransactionBankingAdmin = exports.paginateAccountTransactionBankingAdmin = exports.confirmRequisitionBankingAdmin = exports.listInstitutionBankingAdmin = exports.listBankBankingAdmin = exports.getBankConnectionBankingAdmin = exports.listBankConnectionBankingAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const listBankConnectionBankingAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/admin/connection/${params.userId}/list`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.listBankConnectionBankingAdmin = listBankConnectionBankingAdmin;
|
|
9
|
+
const getBankConnectionBankingAdmin = async (params) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/admin/connection/${params.bankConnectionId}`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getBankConnectionBankingAdmin = getBankConnectionBankingAdmin;
|
|
13
|
+
const listBankBankingAdmin = async () => {
|
|
14
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/admin/bank/list`)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.listBankBankingAdmin = listBankBankingAdmin;
|
|
17
|
+
const listInstitutionBankingAdmin = async (query) => {
|
|
18
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/admin/institution/list`, { params: query })).data;
|
|
19
|
+
};
|
|
20
|
+
exports.listInstitutionBankingAdmin = listInstitutionBankingAdmin;
|
|
21
|
+
const confirmRequisitionBankingAdmin = async (params) => {
|
|
22
|
+
return (await __1.AbyssBankingCore.axios.post(`banking/admin/requisition/confirm/${params.userId}/${params.reference}`)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.confirmRequisitionBankingAdmin = confirmRequisitionBankingAdmin;
|
|
25
|
+
const paginateAccountTransactionBankingAdmin = async (query) => {
|
|
26
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/admin/transaction/paginate`, { params: query })).data;
|
|
27
|
+
};
|
|
28
|
+
exports.paginateAccountTransactionBankingAdmin = paginateAccountTransactionBankingAdmin;
|
|
29
|
+
const getAccountTransactionBankingAdmin = async (params) => {
|
|
30
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/admin/transaction/${params.accountTransactionId}`)).data;
|
|
31
|
+
};
|
|
32
|
+
exports.getAccountTransactionBankingAdmin = getAccountTransactionBankingAdmin;
|
|
33
|
+
const updateAccountTransactionBankingAdmin = async (params, body) => {
|
|
34
|
+
return (await __1.AbyssBankingCore.axios.put(`banking/admin/transaction/${params.accountTransactionId}`, body)).data;
|
|
35
|
+
};
|
|
36
|
+
exports.updateAccountTransactionBankingAdmin = updateAccountTransactionBankingAdmin;
|
|
37
|
+
const updateBankAccountBankingAdmin = async (params, body) => {
|
|
38
|
+
return (await __1.AbyssBankingCore.axios.put(`banking/admin/account/${params.bankAccountId}`, body)).data;
|
|
39
|
+
};
|
|
40
|
+
exports.updateBankAccountBankingAdmin = updateBankAccountBankingAdmin;
|
|
41
|
+
const loadDemoDataBankingAdmin = async (params) => {
|
|
42
|
+
return (await __1.AbyssBankingCore.axios.post(`banking/admin/demo-data/${params.userId}`)).data;
|
|
43
|
+
};
|
|
44
|
+
exports.loadDemoDataBankingAdmin = loadDemoDataBankingAdmin;
|
|
45
|
+
const deleteDemoDataBankingAdmin = async (params) => {
|
|
46
|
+
return (await __1.AbyssBankingCore.axios.delete(`banking/admin/demo-data/${params.userId}`)).data;
|
|
47
|
+
};
|
|
48
|
+
exports.deleteDemoDataBankingAdmin = deleteDemoDataBankingAdmin;
|
|
49
|
+
const fetchBankingDataBankingAdmin = async () => {
|
|
50
|
+
return (await __1.AbyssBankingCore.axios.post(`banking/admin/fetch-banking-data`)).data;
|
|
51
|
+
};
|
|
52
|
+
exports.fetchBankingDataBankingAdmin = fetchBankingDataBankingAdmin;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IConfirmRequisitionBankingParams, IConfirmRequisitionBankingResponse, ICreateRequisitionBankingBody, ICreateRequisitionBankingResponse, IListInstitutionBankingResponse, IListInstitutionBankingQuery, IListConnectionBankingResponse, IListBankBankingResponse, IGetBankConnectionBankingResponse, IGetBankConnectionBankingParams, IRenewRequisitionBankingParams, IRenewRequisitionBankingResponse, IRenewRequisitionBankingBody, IPaginateAccountTransactionBankingQuery, IPaginateAccountTransactionBankingResponse, IGetAccountTransactionBankingParams, IGetAccountTransactionBankingResponse, IUpdateBankAccountBankingParams, IUpdateBankAccountBankingBody, IUpdateBankAccountBankingResponse, ILoadDemoDataBankingResponse, IDeleteDemoDataBankingResponse, IGetTransactionPerCategoryBankingQuery, IGetTransactionPerCategoryBankingResponse, IGetSumTransactionPerBankAccountPerCategoryQuery, IGetSumTransactionPerBankAccountPerCategoryBankingResponse, IPaginateBankAccountHistoryBankingQuery, IPaginateBankAccountHistoryBankingResponse, IListBankAccountHistoryBankingQuery, IListBankAccountHistoryBankingResponse, IUpdateAccountTransactionBankingParams, IUpdateAccountTransactionBankingBody } from '..';
|
|
2
|
+
export declare const listConnectionBanking: () => Promise<IListConnectionBankingResponse>;
|
|
3
|
+
export declare const getBankConnectionBanking: (params: IGetBankConnectionBankingParams) => Promise<IGetBankConnectionBankingResponse>;
|
|
4
|
+
export declare const listBankBanking: () => Promise<IListBankBankingResponse>;
|
|
5
|
+
export declare const listInstitutionBanking: (query: IListInstitutionBankingQuery) => Promise<IListInstitutionBankingResponse>;
|
|
6
|
+
export declare const createRequisitionBanking: (body: ICreateRequisitionBankingBody) => Promise<ICreateRequisitionBankingResponse>;
|
|
7
|
+
export declare const confirmRequisitionBanking: (params: IConfirmRequisitionBankingParams) => Promise<IConfirmRequisitionBankingResponse>;
|
|
8
|
+
export declare const renewRequisitionBanking: (params: IRenewRequisitionBankingParams, body: IRenewRequisitionBankingBody) => Promise<IRenewRequisitionBankingResponse>;
|
|
9
|
+
export declare const paginateAccountTransactionBanking: (query: IPaginateAccountTransactionBankingQuery) => Promise<IPaginateAccountTransactionBankingResponse>;
|
|
10
|
+
export declare const getAccountTransactionBanking: (params: IGetAccountTransactionBankingParams) => Promise<IGetAccountTransactionBankingResponse>;
|
|
11
|
+
export declare const updateAccountTransactionBanking: (params: IUpdateAccountTransactionBankingParams, body: IUpdateAccountTransactionBankingBody) => Promise<IGetAccountTransactionBankingResponse>;
|
|
12
|
+
export declare const updateBankAccountBanking: (params: IUpdateBankAccountBankingParams, body: IUpdateBankAccountBankingBody) => Promise<IUpdateBankAccountBankingResponse>;
|
|
13
|
+
export declare const loadDemoDataBanking: () => Promise<ILoadDemoDataBankingResponse>;
|
|
14
|
+
export declare const deleteDemoDataBanking: () => Promise<IDeleteDemoDataBankingResponse>;
|
|
15
|
+
export declare const getTransactionPerCategoryBanking: (query: IGetTransactionPerCategoryBankingQuery) => Promise<IGetTransactionPerCategoryBankingResponse>;
|
|
16
|
+
export declare const getSumTransactionPerBankAccountPerCategoryBanking: (query: IGetSumTransactionPerBankAccountPerCategoryQuery) => Promise<IGetSumTransactionPerBankAccountPerCategoryBankingResponse>;
|
|
17
|
+
export declare const paginateBankAccountHistoryBanking: (query: IPaginateBankAccountHistoryBankingQuery) => Promise<IPaginateBankAccountHistoryBankingResponse>;
|
|
18
|
+
export declare const listBankAccountHistoryBanking: (query: IListBankAccountHistoryBankingQuery) => Promise<IListBankAccountHistoryBankingResponse>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listBankAccountHistoryBanking = exports.paginateBankAccountHistoryBanking = exports.getSumTransactionPerBankAccountPerCategoryBanking = exports.getTransactionPerCategoryBanking = exports.deleteDemoDataBanking = exports.loadDemoDataBanking = exports.updateBankAccountBanking = exports.updateAccountTransactionBanking = exports.getAccountTransactionBanking = exports.paginateAccountTransactionBanking = exports.renewRequisitionBanking = exports.confirmRequisitionBanking = exports.createRequisitionBanking = exports.listInstitutionBanking = exports.listBankBanking = exports.getBankConnectionBanking = exports.listConnectionBanking = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const listConnectionBanking = async () => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/connection/list`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.listConnectionBanking = listConnectionBanking;
|
|
9
|
+
const getBankConnectionBanking = async (params) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/connection/${params.bankConnectionId}`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getBankConnectionBanking = getBankConnectionBanking;
|
|
13
|
+
const listBankBanking = async () => {
|
|
14
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/bank/list`)).data;
|
|
15
|
+
};
|
|
16
|
+
exports.listBankBanking = listBankBanking;
|
|
17
|
+
const listInstitutionBanking = async (query) => {
|
|
18
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/institution/list`, {
|
|
19
|
+
params: query,
|
|
20
|
+
})).data;
|
|
21
|
+
};
|
|
22
|
+
exports.listInstitutionBanking = listInstitutionBanking;
|
|
23
|
+
const createRequisitionBanking = async (body) => {
|
|
24
|
+
return (await __1.AbyssBankingCore.axios.post(`banking/requisition/create`, body)).data;
|
|
25
|
+
};
|
|
26
|
+
exports.createRequisitionBanking = createRequisitionBanking;
|
|
27
|
+
const confirmRequisitionBanking = async (params) => {
|
|
28
|
+
return (await __1.AbyssBankingCore.axios.post(`banking/requisition/confirm/${params.reference}`)).data;
|
|
29
|
+
};
|
|
30
|
+
exports.confirmRequisitionBanking = confirmRequisitionBanking;
|
|
31
|
+
const renewRequisitionBanking = async (params, body) => {
|
|
32
|
+
return (await __1.AbyssBankingCore.axios.post(`banking/requisition/${params.bankConnectionId}/renew`, body)).data;
|
|
33
|
+
};
|
|
34
|
+
exports.renewRequisitionBanking = renewRequisitionBanking;
|
|
35
|
+
const paginateAccountTransactionBanking = async (query) => {
|
|
36
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/transaction/paginate`, { params: query })).data;
|
|
37
|
+
};
|
|
38
|
+
exports.paginateAccountTransactionBanking = paginateAccountTransactionBanking;
|
|
39
|
+
const getAccountTransactionBanking = async (params) => {
|
|
40
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/transaction/${params.accountTransactionId}`)).data;
|
|
41
|
+
};
|
|
42
|
+
exports.getAccountTransactionBanking = getAccountTransactionBanking;
|
|
43
|
+
const updateAccountTransactionBanking = async (params, body) => {
|
|
44
|
+
return (await __1.AbyssBankingCore.axios.put(`banking/transaction/${params.accountTransactionId}`, body)).data;
|
|
45
|
+
};
|
|
46
|
+
exports.updateAccountTransactionBanking = updateAccountTransactionBanking;
|
|
47
|
+
const updateBankAccountBanking = async (params, body) => {
|
|
48
|
+
return (await __1.AbyssBankingCore.axios.put(`banking/account/${params.bankAccountId}`, body)).data;
|
|
49
|
+
};
|
|
50
|
+
exports.updateBankAccountBanking = updateBankAccountBanking;
|
|
51
|
+
const loadDemoDataBanking = async () => {
|
|
52
|
+
return (await __1.AbyssBankingCore.axios.post(`banking/demo-data`))
|
|
53
|
+
.data;
|
|
54
|
+
};
|
|
55
|
+
exports.loadDemoDataBanking = loadDemoDataBanking;
|
|
56
|
+
const deleteDemoDataBanking = async () => {
|
|
57
|
+
return (await __1.AbyssBankingCore.axios.delete(`banking/demo-data`))
|
|
58
|
+
.data;
|
|
59
|
+
};
|
|
60
|
+
exports.deleteDemoDataBanking = deleteDemoDataBanking;
|
|
61
|
+
const getTransactionPerCategoryBanking = async (query) => {
|
|
62
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/transaction-per-category`, { params: query })).data;
|
|
63
|
+
};
|
|
64
|
+
exports.getTransactionPerCategoryBanking = getTransactionPerCategoryBanking;
|
|
65
|
+
const getSumTransactionPerBankAccountPerCategoryBanking = async (query) => {
|
|
66
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/sum-transaction-per-bank-account-category`, { params: query })).data;
|
|
67
|
+
};
|
|
68
|
+
exports.getSumTransactionPerBankAccountPerCategoryBanking = getSumTransactionPerBankAccountPerCategoryBanking;
|
|
69
|
+
const paginateBankAccountHistoryBanking = async (query) => {
|
|
70
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/bank-account-history/paginate`, { params: query })).data;
|
|
71
|
+
};
|
|
72
|
+
exports.paginateBankAccountHistoryBanking = paginateBankAccountHistoryBanking;
|
|
73
|
+
const listBankAccountHistoryBanking = async (query) => {
|
|
74
|
+
return (await __1.AbyssBankingCore.axios.get(`banking/bank-account-history/list`, { params: query })).data;
|
|
75
|
+
};
|
|
76
|
+
exports.listBankAccountHistoryBanking = listBankAccountHistoryBanking;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IApplyCategorizationRuleAdminParams, IApplyCategorizationRuleAdminResponse, ICreateCategorizationRuleAdminBody, ICreateCategorizationRuleAdminResponse, IDeleteCategorizationRuleAdminParams, IDeleteCategorizationRuleAdminResponse, IGetCategorizationRuleAdminParams, IGetCategorizationRuleAdminResponse, IPaginateCategorizationRuleAdminQuery, IPaginateCategorizationRuleAdminResponse, IUpdateCategorizationRuleAdminBody, IUpdateCategorizationRuleAdminParams, IUpdateCategorizationRuleAdminResponse } from '..';
|
|
2
|
+
export declare const getCategorizationRuleAdmin: (params: IGetCategorizationRuleAdminParams) => Promise<IGetCategorizationRuleAdminResponse>;
|
|
3
|
+
export declare const applyCategorizationRuleAdmin: (params: IApplyCategorizationRuleAdminParams) => Promise<IApplyCategorizationRuleAdminResponse>;
|
|
4
|
+
export declare const paginateCategorizationRuleAdmin: (query: IPaginateCategorizationRuleAdminQuery) => Promise<IPaginateCategorizationRuleAdminResponse>;
|
|
5
|
+
export declare const deleteCategorizationRuleAdmin: (params: IDeleteCategorizationRuleAdminParams) => Promise<IDeleteCategorizationRuleAdminResponse>;
|
|
6
|
+
export declare const createCategorizationRuleAdmin: (body: ICreateCategorizationRuleAdminBody) => Promise<ICreateCategorizationRuleAdminResponse>;
|
|
7
|
+
export declare const updateCategorizationRuleAdmin: (params: IUpdateCategorizationRuleAdminParams, body: IUpdateCategorizationRuleAdminBody) => Promise<IUpdateCategorizationRuleAdminResponse>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCategorizationRuleAdmin = exports.createCategorizationRuleAdmin = exports.deleteCategorizationRuleAdmin = exports.paginateCategorizationRuleAdmin = exports.applyCategorizationRuleAdmin = exports.getCategorizationRuleAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getCategorizationRuleAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`categorization-rule/admin/${params.categorizationRuleId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getCategorizationRuleAdmin = getCategorizationRuleAdmin;
|
|
9
|
+
const applyCategorizationRuleAdmin = async (params) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.post(`categorization-rule/admin/${params.categorizationRuleId}/apply`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.applyCategorizationRuleAdmin = applyCategorizationRuleAdmin;
|
|
13
|
+
const paginateCategorizationRuleAdmin = async (query) => {
|
|
14
|
+
return (await __1.AbyssBankingCore.axios.get(`categorization-rule/admin/paginate`, { params: query })).data;
|
|
15
|
+
};
|
|
16
|
+
exports.paginateCategorizationRuleAdmin = paginateCategorizationRuleAdmin;
|
|
17
|
+
const deleteCategorizationRuleAdmin = async (params) => {
|
|
18
|
+
return (await __1.AbyssBankingCore.axios.delete(`categorization-rule/admin/${params.categorizationRuleId}`)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.deleteCategorizationRuleAdmin = deleteCategorizationRuleAdmin;
|
|
21
|
+
const createCategorizationRuleAdmin = async (body) => {
|
|
22
|
+
return (await __1.AbyssBankingCore.axios.post(`categorization-rule/admin`, body)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.createCategorizationRuleAdmin = createCategorizationRuleAdmin;
|
|
25
|
+
const updateCategorizationRuleAdmin = async (params, body) => {
|
|
26
|
+
return (await __1.AbyssBankingCore.axios.put(`categorization-rule/admin/${params.categorizationRuleId}`, body)).data;
|
|
27
|
+
};
|
|
28
|
+
exports.updateCategorizationRuleAdmin = updateCategorizationRuleAdmin;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IApplyCategorizationRuleParams, IApplyCategorizationRuleResponse, ICreateCategorizationRuleBody, ICreateCategorizationRuleResponse, IDeleteCategorizationRuleParams, IDeleteCategorizationRuleResponse, IGetCategorizationRuleParams, IGetCategorizationRuleResponse, IPaginateCategorizationRuleQuery, IPaginateCategorizationRuleResponse, IUpdateCategorizationRuleBody, IUpdateCategorizationRuleParams, IUpdateCategorizationRuleResponse } from '..';
|
|
2
|
+
export declare const getCategorizationRule: (params: IGetCategorizationRuleParams) => Promise<IGetCategorizationRuleResponse>;
|
|
3
|
+
export declare const applyCategorizationRule: (params: IApplyCategorizationRuleParams) => Promise<IApplyCategorizationRuleResponse>;
|
|
4
|
+
export declare const paginateCategorizationRule: (query: IPaginateCategorizationRuleQuery) => Promise<IPaginateCategorizationRuleResponse>;
|
|
5
|
+
export declare const deleteCategorizationRule: (params: IDeleteCategorizationRuleParams) => Promise<IDeleteCategorizationRuleResponse>;
|
|
6
|
+
export declare const createCategorizationRule: (body: ICreateCategorizationRuleBody) => Promise<ICreateCategorizationRuleResponse>;
|
|
7
|
+
export declare const updateCategorizationRule: (params: IUpdateCategorizationRuleParams, body: IUpdateCategorizationRuleBody) => Promise<IUpdateCategorizationRuleResponse>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCategorizationRule = exports.createCategorizationRule = exports.deleteCategorizationRule = exports.paginateCategorizationRule = exports.applyCategorizationRule = exports.getCategorizationRule = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getCategorizationRule = async (params) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`categorization-rule/${params.categorizationRuleId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getCategorizationRule = getCategorizationRule;
|
|
9
|
+
const applyCategorizationRule = async (params) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.post(`categorization-rule/${params.categorizationRuleId}/apply`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.applyCategorizationRule = applyCategorizationRule;
|
|
13
|
+
const paginateCategorizationRule = async (query) => {
|
|
14
|
+
return (await __1.AbyssBankingCore.axios.get(`categorization-rule/paginate`, { params: query })).data;
|
|
15
|
+
};
|
|
16
|
+
exports.paginateCategorizationRule = paginateCategorizationRule;
|
|
17
|
+
const deleteCategorizationRule = async (params) => {
|
|
18
|
+
return (await __1.AbyssBankingCore.axios.delete(`categorization-rule/${params.categorizationRuleId}`)).data;
|
|
19
|
+
};
|
|
20
|
+
exports.deleteCategorizationRule = deleteCategorizationRule;
|
|
21
|
+
const createCategorizationRule = async (body) => {
|
|
22
|
+
return (await __1.AbyssBankingCore.axios.post(`categorization-rule`, body)).data;
|
|
23
|
+
};
|
|
24
|
+
exports.createCategorizationRule = createCategorizationRule;
|
|
25
|
+
const updateCategorizationRule = async (params, body) => {
|
|
26
|
+
return (await __1.AbyssBankingCore.axios.put(`categorization-rule/${params.categorizationRuleId}`, body)).data;
|
|
27
|
+
};
|
|
28
|
+
exports.updateCategorizationRule = updateCategorizationRule;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IGetCategoryAdminParams, IGetCategoryAdminResponse, IPaginateCategoryAdminQuery, IPaginateCategoryAdminResponse, IDeleteCategoryAdminResponse, IDeleteCategoryAdminParams, ICreateCategoryAdminBody, ICreateCategoryAdminResponse, IUpdateCategoryAdminBody, IUpdateCategoryAdminParams, IUpdateCategoryAdminResponse } from '../types';
|
|
2
|
+
export declare const getCategoryAdmin: (params: IGetCategoryAdminParams) => Promise<IGetCategoryAdminResponse>;
|
|
3
|
+
export declare const paginateCategoryAdmin: (query: IPaginateCategoryAdminQuery) => Promise<IPaginateCategoryAdminResponse>;
|
|
4
|
+
export declare const deleteCategoryAdmin: (params: IDeleteCategoryAdminParams) => Promise<IDeleteCategoryAdminResponse>;
|
|
5
|
+
export declare const createCategoryAdmin: (body: ICreateCategoryAdminBody) => Promise<ICreateCategoryAdminResponse>;
|
|
6
|
+
export declare const updateCategoryAdmin: (params: IUpdateCategoryAdminParams, body: IUpdateCategoryAdminBody) => Promise<IUpdateCategoryAdminResponse>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCategoryAdmin = exports.createCategoryAdmin = exports.deleteCategoryAdmin = exports.paginateCategoryAdmin = exports.getCategoryAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getCategoryAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`category/admin/${params.categoryId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getCategoryAdmin = getCategoryAdmin;
|
|
9
|
+
const paginateCategoryAdmin = async (query) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.get(`category/admin/paginate`, {
|
|
11
|
+
params: query,
|
|
12
|
+
})).data;
|
|
13
|
+
};
|
|
14
|
+
exports.paginateCategoryAdmin = paginateCategoryAdmin;
|
|
15
|
+
const deleteCategoryAdmin = async (params) => {
|
|
16
|
+
return (await __1.AbyssBankingCore.axios.delete(`category/admin/${params.categoryId}`)).data;
|
|
17
|
+
};
|
|
18
|
+
exports.deleteCategoryAdmin = deleteCategoryAdmin;
|
|
19
|
+
const createCategoryAdmin = async (body) => {
|
|
20
|
+
return (await __1.AbyssBankingCore.axios.post(`category/admin`, body))
|
|
21
|
+
.data;
|
|
22
|
+
};
|
|
23
|
+
exports.createCategoryAdmin = createCategoryAdmin;
|
|
24
|
+
const updateCategoryAdmin = async (params, body) => {
|
|
25
|
+
return (await __1.AbyssBankingCore.axios.put(`category/admin/${params.categoryId}`, body)).data;
|
|
26
|
+
};
|
|
27
|
+
exports.updateCategoryAdmin = updateCategoryAdmin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IListCategoryResponse, IRemoveCategoryResponse, IAddCategoryResponse, IDeleteCategoryResponse, ICreateCategoryResponse, IUpdateCategoryResponse, IListAnalyticsCategoryResponse } from '../types';
|
|
2
|
+
import { IRemoveCategoryParams, IAddCategoryParams, IDeleteCategoryParams, ICreateCategoryBody, IUpdateCategoryParams, IUpdateCategoryBody, IListAnalyticsCategoryQuery } from '../types/interface/api/requests/category.request';
|
|
3
|
+
export declare const listCategory: () => Promise<IListCategoryResponse>;
|
|
4
|
+
export declare const listAnalyticsCategory: (query: IListAnalyticsCategoryQuery) => Promise<IListAnalyticsCategoryResponse>;
|
|
5
|
+
export declare const removeCategory: (params: IRemoveCategoryParams) => Promise<IRemoveCategoryResponse>;
|
|
6
|
+
export declare const addCategory: (params: IAddCategoryParams) => Promise<IAddCategoryResponse>;
|
|
7
|
+
export declare const deleteCategory: (params: IDeleteCategoryParams) => Promise<IDeleteCategoryResponse>;
|
|
8
|
+
export declare const createCategory: (body: ICreateCategoryBody) => Promise<ICreateCategoryResponse>;
|
|
9
|
+
export declare const updateCategory: (params: IUpdateCategoryParams, body: IUpdateCategoryBody) => Promise<IUpdateCategoryResponse>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCategory = exports.createCategory = exports.deleteCategory = exports.addCategory = exports.removeCategory = exports.listAnalyticsCategory = exports.listCategory = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const listCategory = async () => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`category/list`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.listCategory = listCategory;
|
|
9
|
+
const listAnalyticsCategory = async (query) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.get(`category/list/analytics`, {
|
|
11
|
+
params: query,
|
|
12
|
+
})).data;
|
|
13
|
+
};
|
|
14
|
+
exports.listAnalyticsCategory = listAnalyticsCategory;
|
|
15
|
+
const removeCategory = async (params) => {
|
|
16
|
+
return (await __1.AbyssBankingCore.axios.delete(`category/transaction/${params.transactionCategoryId}`)).data;
|
|
17
|
+
};
|
|
18
|
+
exports.removeCategory = removeCategory;
|
|
19
|
+
const addCategory = async (params) => {
|
|
20
|
+
return (await __1.AbyssBankingCore.axios.post(`category/${params.categoryId}/transaction/${params.accountTransactionId}`)).data;
|
|
21
|
+
};
|
|
22
|
+
exports.addCategory = addCategory;
|
|
23
|
+
const deleteCategory = async (params) => {
|
|
24
|
+
return (await __1.AbyssBankingCore.axios.delete(`category/${params.categoryId}`)).data;
|
|
25
|
+
};
|
|
26
|
+
exports.deleteCategory = deleteCategory;
|
|
27
|
+
const createCategory = async (body) => {
|
|
28
|
+
return (await __1.AbyssBankingCore.axios.post(`category`, body)).data;
|
|
29
|
+
};
|
|
30
|
+
exports.createCategory = createCategory;
|
|
31
|
+
const updateCategory = async (params, body) => {
|
|
32
|
+
return (await __1.AbyssBankingCore.axios.put(`category/${params.categoryId}`, body)).data;
|
|
33
|
+
};
|
|
34
|
+
exports.updateCategory = updateCategory;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './abyss.admin.api';
|
|
2
|
+
export * from './user.admin.api';
|
|
3
|
+
export * from './user.api';
|
|
4
|
+
export * from './monitor.api';
|
|
5
|
+
export * from './banking.admin.api';
|
|
6
|
+
export * from './banking.api';
|
|
7
|
+
export * from './category.admin.api';
|
|
8
|
+
export * from './category.api';
|
|
9
|
+
export * from './categorization-rule.admin.api';
|
|
10
|
+
export * from './categorization-rule.api';
|
|
11
|
+
export * from './panel.api';
|
|
12
|
+
export * from './panel.admin.api';
|
|
@@ -0,0 +1,24 @@
|
|
|
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("./abyss.admin.api"), exports);
|
|
14
|
+
__exportStar(require("./user.admin.api"), exports);
|
|
15
|
+
__exportStar(require("./user.api"), exports);
|
|
16
|
+
__exportStar(require("./monitor.api"), exports);
|
|
17
|
+
__exportStar(require("./banking.admin.api"), exports);
|
|
18
|
+
__exportStar(require("./banking.api"), exports);
|
|
19
|
+
__exportStar(require("./category.admin.api"), exports);
|
|
20
|
+
__exportStar(require("./category.api"), exports);
|
|
21
|
+
__exportStar(require("./categorization-rule.admin.api"), exports);
|
|
22
|
+
__exportStar(require("./categorization-rule.api"), exports);
|
|
23
|
+
__exportStar(require("./panel.api"), exports);
|
|
24
|
+
__exportStar(require("./panel.admin.api"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.upMonitor = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const upMonitor = async () => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`monitor/up`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.upMonitor = upMonitor;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICreatePanelAdminBody, ICreatePanelAdminResponse, IDeletePanelAdminParams, IDeletePanelAdminResponse, IGetPanelAdminParams, IGetPanelAdminResponse, IPaginatePanelAdminQuery, IPaginatePanelAdminResponse, IUpdatePanelAdminBody, IUpdatePanelAdminParams, IUpdatePanelAdminResponse } from '..';
|
|
2
|
+
export declare const getPanelAdmin: (params: IGetPanelAdminParams) => Promise<IGetPanelAdminResponse>;
|
|
3
|
+
export declare const paginatePanelAdmin: (query: IPaginatePanelAdminQuery) => Promise<IPaginatePanelAdminResponse>;
|
|
4
|
+
export declare const deletePanelAdmin: (params: IDeletePanelAdminParams) => Promise<IDeletePanelAdminResponse>;
|
|
5
|
+
export declare const createPanelAdmin: (body: ICreatePanelAdminBody) => Promise<ICreatePanelAdminResponse>;
|
|
6
|
+
export declare const updatePanelAdmin: (params: IUpdatePanelAdminParams, body: IUpdatePanelAdminBody) => Promise<IUpdatePanelAdminResponse>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePanelAdmin = exports.createPanelAdmin = exports.deletePanelAdmin = exports.paginatePanelAdmin = exports.getPanelAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getPanelAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`panel/admin/${params.panelId}`))
|
|
7
|
+
.data;
|
|
8
|
+
};
|
|
9
|
+
exports.getPanelAdmin = getPanelAdmin;
|
|
10
|
+
const paginatePanelAdmin = async (query) => {
|
|
11
|
+
return (await __1.AbyssBankingCore.axios.get(`panel/admin/paginate`, {
|
|
12
|
+
params: query,
|
|
13
|
+
})).data;
|
|
14
|
+
};
|
|
15
|
+
exports.paginatePanelAdmin = paginatePanelAdmin;
|
|
16
|
+
const deletePanelAdmin = async (params) => {
|
|
17
|
+
return (await __1.AbyssBankingCore.axios.delete(`panel/admin/${params.panelId}`)).data;
|
|
18
|
+
};
|
|
19
|
+
exports.deletePanelAdmin = deletePanelAdmin;
|
|
20
|
+
const createPanelAdmin = async (body) => {
|
|
21
|
+
return (await __1.AbyssBankingCore.axios.post(`panel/admin`, body)).data;
|
|
22
|
+
};
|
|
23
|
+
exports.createPanelAdmin = createPanelAdmin;
|
|
24
|
+
const updatePanelAdmin = async (params, body) => {
|
|
25
|
+
return (await __1.AbyssBankingCore.axios.put(`panel/admin/${params.panelId}`, body)).data;
|
|
26
|
+
};
|
|
27
|
+
exports.updatePanelAdmin = updatePanelAdmin;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICreatePanelBody, ICreatePanelResponse, IDeletePanelParams, IDeletePanelResponse, IGetPanelParams, IGetPanelResponse, IPaginatePanelQuery, IPaginatePanelResponse, IUpdatePanelBody, IUpdatePanelParams, IUpdatePanelResponse } from '..';
|
|
2
|
+
export declare const getPanel: (params: IGetPanelParams) => Promise<IGetPanelResponse>;
|
|
3
|
+
export declare const paginatePanel: (query: IPaginatePanelQuery) => Promise<IPaginatePanelResponse>;
|
|
4
|
+
export declare const deletePanel: (params: IDeletePanelParams) => Promise<IDeletePanelResponse>;
|
|
5
|
+
export declare const createPanel: (body: ICreatePanelBody) => Promise<ICreatePanelResponse>;
|
|
6
|
+
export declare const updatePanel: (params: IUpdatePanelParams, body: IUpdatePanelBody) => Promise<IUpdatePanelResponse>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePanel = exports.createPanel = exports.deletePanel = exports.paginatePanel = exports.getPanel = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getPanel = async (params) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`panel/${params.panelId}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getPanel = getPanel;
|
|
9
|
+
const paginatePanel = async (query) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.get(`panel/paginate`, {
|
|
11
|
+
params: query,
|
|
12
|
+
})).data;
|
|
13
|
+
};
|
|
14
|
+
exports.paginatePanel = paginatePanel;
|
|
15
|
+
const deletePanel = async (params) => {
|
|
16
|
+
return (await __1.AbyssBankingCore.axios.delete(`panel/${params.panelId}`))
|
|
17
|
+
.data;
|
|
18
|
+
};
|
|
19
|
+
exports.deletePanel = deletePanel;
|
|
20
|
+
const createPanel = async (body) => {
|
|
21
|
+
return (await __1.AbyssBankingCore.axios.post(`panel`, body)).data;
|
|
22
|
+
};
|
|
23
|
+
exports.createPanel = createPanel;
|
|
24
|
+
const updatePanel = async (params, body) => {
|
|
25
|
+
return (await __1.AbyssBankingCore.axios.put(`panel/${params.panelId}`, body))
|
|
26
|
+
.data;
|
|
27
|
+
};
|
|
28
|
+
exports.updatePanel = updatePanel;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IGetUserAdminParams, IGetUserAdminResponse, IUpdateUserAdminParams, IUpdateUserAdminResponse, IUpdateUserAdminBody, IPaginateUserAdminResponse, IPaginateUserAdminQuery, IResetApiKeyUserAdminResponse, IResetApiKeyUserAdminParams } from '..';
|
|
2
|
+
export declare const getUserAdmin: (params: IGetUserAdminParams) => Promise<IGetUserAdminResponse>;
|
|
3
|
+
export declare const resetApiKeyUserAdmin: (params: IResetApiKeyUserAdminParams) => Promise<IResetApiKeyUserAdminResponse>;
|
|
4
|
+
export declare const paginateUserAdmin: (query: IPaginateUserAdminQuery) => Promise<IPaginateUserAdminResponse>;
|
|
5
|
+
export declare const updateUserAdmin: (params: IUpdateUserAdminParams, body: IUpdateUserAdminBody) => Promise<IUpdateUserAdminResponse>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateUserAdmin = exports.paginateUserAdmin = exports.resetApiKeyUserAdmin = exports.getUserAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getUserAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`user/admin/${params.userId}`))
|
|
7
|
+
.data;
|
|
8
|
+
};
|
|
9
|
+
exports.getUserAdmin = getUserAdmin;
|
|
10
|
+
const resetApiKeyUserAdmin = async (params) => {
|
|
11
|
+
return (await __1.AbyssBankingCore.axios.post(`user/admin/${params.userId}`)).data;
|
|
12
|
+
};
|
|
13
|
+
exports.resetApiKeyUserAdmin = resetApiKeyUserAdmin;
|
|
14
|
+
const paginateUserAdmin = async (query) => {
|
|
15
|
+
return (await __1.AbyssBankingCore.axios.get(`user/admin/paginate`, {
|
|
16
|
+
params: query,
|
|
17
|
+
})).data;
|
|
18
|
+
};
|
|
19
|
+
exports.paginateUserAdmin = paginateUserAdmin;
|
|
20
|
+
const updateUserAdmin = async (params, body) => {
|
|
21
|
+
return (await __1.AbyssBankingCore.axios.put(`user/admin/${params.userId}`, body)).data;
|
|
22
|
+
};
|
|
23
|
+
exports.updateUserAdmin = updateUserAdmin;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IMeUserResponse, IUpdateUserBody, IUpdateUserResponse, IResetApiKeyUserResponse } from '..';
|
|
2
|
+
export declare const meUser: () => Promise<IMeUserResponse>;
|
|
3
|
+
export declare const updateUser: (body: IUpdateUserBody) => Promise<IUpdateUserResponse>;
|
|
4
|
+
export declare const resetApiKeyUser: () => Promise<IResetApiKeyUserResponse>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resetApiKeyUser = exports.updateUser = exports.meUser = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const meUser = async () => {
|
|
6
|
+
return (await __1.AbyssBankingCore.axios.get(`user/me`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.meUser = meUser;
|
|
9
|
+
const updateUser = async (body) => {
|
|
10
|
+
return (await __1.AbyssBankingCore.axios.put(`user/me`, body)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.updateUser = updateUser;
|
|
13
|
+
const resetApiKeyUser = async () => {
|
|
14
|
+
return (await __1.AbyssBankingCore.axios.post(`user/me/reset-api-key`))
|
|
15
|
+
.data;
|
|
16
|
+
};
|
|
17
|
+
exports.resetApiKeyUser = resetApiKeyUser;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IAxiosRetryConfig } from 'axios-retry';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './utils';
|
|
4
|
+
export * from './api';
|
|
5
|
+
export declare const API_KEY_HEADER = "abyss-banking-api-key";
|
|
6
|
+
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
7
|
+
declare type CoreConfig = {
|
|
8
|
+
token?: string;
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
adminToken?: string;
|
|
11
|
+
baseURL?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class AbyssBankingCore {
|
|
14
|
+
private static config;
|
|
15
|
+
static axios: import("axios").AxiosInstance;
|
|
16
|
+
static enableAxiosRetry(axiosRetryConfig?: IAxiosRetryConfig): void;
|
|
17
|
+
static setConfig(config: CoreConfig): void;
|
|
18
|
+
static getConfig(): CoreConfig;
|
|
19
|
+
}
|