@abyss-project/banking 1.0.2 → 1.0.3
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/dist/api/abyss.admin.api.d.ts +2 -2
- package/dist/api/abyss.admin.api.js +8 -8
- package/dist/api/banking.admin.api.d.ts +13 -13
- package/dist/api/banking.admin.api.js +52 -52
- package/dist/api/banking.api.d.ts +20 -18
- package/dist/api/banking.api.js +86 -76
- package/dist/api/categorization-rule.admin.api.d.ts +7 -7
- package/dist/api/categorization-rule.admin.api.js +28 -28
- package/dist/api/categorization-rule.api.d.ts +7 -7
- package/dist/api/categorization-rule.api.js +28 -28
- package/dist/api/category.admin.api.d.ts +6 -6
- package/dist/api/category.admin.api.js +27 -27
- package/dist/api/category.api.d.ts +9 -9
- package/dist/api/category.api.js +34 -34
- package/dist/api/index.d.ts +12 -12
- package/dist/api/index.js +28 -24
- package/dist/api/monitor.api.d.ts +2 -2
- package/dist/api/monitor.api.js +8 -8
- package/dist/api/panel.admin.api.d.ts +6 -6
- package/dist/api/panel.admin.api.js +27 -27
- package/dist/api/panel.api.d.ts +6 -6
- package/dist/api/panel.api.js +28 -28
- package/dist/api/user.admin.api.d.ts +5 -5
- package/dist/api/user.admin.api.js +23 -23
- package/dist/api/user.api.d.ts +4 -4
- package/dist/api/user.api.js +17 -17
- package/dist/index.d.ts +19 -19
- package/dist/index.js +90 -86
- package/dist/types/enum/aggregator-type.enum.d.ts +4 -4
- package/dist/types/enum/aggregator-type.enum.js +8 -8
- package/dist/types/enum/api-error.enum.d.ts +16 -16
- package/dist/types/enum/api-error.enum.js +21 -21
- package/dist/types/enum/bank-connection-status.enum.d.ts +6 -6
- package/dist/types/enum/bank-connection-status.enum.js +10 -10
- package/dist/types/enum/cash-account-type.enum.d.ts +26 -26
- package/dist/types/enum/cash-account-type.enum.js +30 -30
- package/dist/types/enum/index.d.ts +6 -6
- package/dist/types/enum/index.js +22 -18
- package/dist/types/enum/panel-component-type.enum.d.ts +16 -12
- package/dist/types/enum/panel-component-type.enum.js +20 -16
- package/dist/types/enum/period-configuration.enum.d.ts +7 -7
- package/dist/types/enum/period-configuration.enum.js +11 -11
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +18 -14
- package/dist/types/interface/api/index.d.ts +27 -27
- package/dist/types/interface/api/index.js +43 -39
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +3 -3
- package/dist/types/interface/api/requests/abyss.admin.request.js +2 -2
- package/dist/types/interface/api/requests/banking.admin.request.d.ts +47 -47
- package/dist/types/interface/api/requests/banking.admin.request.js +2 -2
- package/dist/types/interface/api/requests/banking.request.d.ts +83 -75
- package/dist/types/interface/api/requests/banking.request.js +2 -2
- package/dist/types/interface/api/requests/categorization-rule.admin.request.d.ts +34 -34
- package/dist/types/interface/api/requests/categorization-rule.admin.request.js +2 -2
- package/dist/types/interface/api/requests/categorization-rule.request.d.ts +32 -32
- package/dist/types/interface/api/requests/categorization-rule.request.js +2 -2
- package/dist/types/interface/api/requests/category.admin.request.d.ts +22 -22
- package/dist/types/interface/api/requests/category.admin.request.js +2 -2
- package/dist/types/interface/api/requests/category.request.d.ts +26 -26
- package/dist/types/interface/api/requests/category.request.js +2 -2
- package/dist/types/interface/api/requests/panel.admin.request.d.ts +23 -23
- package/dist/types/interface/api/requests/panel.admin.request.js +2 -2
- package/dist/types/interface/api/requests/panel.request.d.ts +22 -22
- package/dist/types/interface/api/requests/panel.request.js +2 -2
- package/dist/types/interface/api/requests/user.admin.request.d.ts +15 -15
- package/dist/types/interface/api/requests/user.admin.request.js +2 -2
- package/dist/types/interface/api/requests/user.request.d.ts +2 -2
- package/dist/types/interface/api/requests/user.request.js +2 -2
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +6 -6
- package/dist/types/interface/api/responses/abyss.admin.response.js +2 -2
- package/dist/types/interface/api/responses/banking.admin.response.d.ts +48 -48
- package/dist/types/interface/api/responses/banking.admin.response.js +2 -2
- package/dist/types/interface/api/responses/banking.response.d.ts +112 -86
- package/dist/types/interface/api/responses/banking.response.js +2 -2
- package/dist/types/interface/api/responses/categorization-rule.admin.response.d.ts +22 -22
- package/dist/types/interface/api/responses/categorization-rule.admin.response.js +2 -2
- package/dist/types/interface/api/responses/categorization-rule.response.d.ts +22 -22
- package/dist/types/interface/api/responses/categorization-rule.response.js +2 -2
- package/dist/types/interface/api/responses/category.admin.response.d.ts +19 -19
- package/dist/types/interface/api/responses/category.admin.response.js +2 -2
- package/dist/types/interface/api/responses/category.response.d.ts +32 -32
- package/dist/types/interface/api/responses/category.response.js +2 -2
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -7
- package/dist/types/interface/api/responses/monitor.response.js +2 -2
- package/dist/types/interface/api/responses/panel.admin.response.d.ts +19 -19
- package/dist/types/interface/api/responses/panel.admin.response.js +2 -2
- package/dist/types/interface/api/responses/panel.response.d.ts +19 -19
- package/dist/types/interface/api/responses/panel.response.js +2 -2
- package/dist/types/interface/api/responses/storage.admin.response.d.ts +3 -3
- package/dist/types/interface/api/responses/storage.admin.response.js +2 -2
- package/dist/types/interface/api/responses/user.admin.response.d.ts +14 -14
- package/dist/types/interface/api/responses/user.admin.response.js +2 -2
- package/dist/types/interface/api/responses/user.response.d.ts +13 -13
- package/dist/types/interface/api/responses/user.response.js +2 -2
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -8
- package/dist/types/interface/api/type-message/api-error.js +2 -2
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -4
- package/dist/types/interface/api/type-message/base-order.js +2 -2
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -10
- package/dist/types/interface/api/type-message/base-paginate.js +2 -2
- package/dist/types/interface/api/type-message/response.d.ts +5 -5
- package/dist/types/interface/api/type-message/response.js +2 -2
- package/dist/types/interface/index.d.ts +13 -13
- package/dist/types/interface/index.js +29 -25
- package/dist/types/interface/models/account-transaction.model.d.ts +46 -46
- package/dist/types/interface/models/account-transaction.model.js +2 -2
- package/dist/types/interface/models/aggregator-bank.model.d.ts +12 -12
- package/dist/types/interface/models/aggregator-bank.model.js +2 -2
- package/dist/types/interface/models/aggregator-link.model.d.ts +12 -12
- package/dist/types/interface/models/aggregator-link.model.js +2 -2
- package/dist/types/interface/models/bank-account-history.model.d.ts +11 -11
- package/dist/types/interface/models/bank-account-history.model.js +2 -2
- package/dist/types/interface/models/bank-account.model.d.ts +26 -26
- package/dist/types/interface/models/bank-account.model.js +2 -2
- package/dist/types/interface/models/bank-connection.model.d.ts +17 -17
- package/dist/types/interface/models/bank-connection.model.js +2 -2
- package/dist/types/interface/models/categorization-rule-category.model.d.ts +11 -11
- package/dist/types/interface/models/categorization-rule-category.model.js +2 -2
- package/dist/types/interface/models/categorization-rule.model.d.ts +44 -44
- package/dist/types/interface/models/categorization-rule.model.js +2 -2
- package/dist/types/interface/models/category.model.d.ts +14 -14
- package/dist/types/interface/models/category.model.js +2 -2
- package/dist/types/interface/models/panel.model.d.ts +121 -108
- package/dist/types/interface/models/panel.model.js +2 -2
- package/dist/types/interface/models/transaction-category.model.d.ts +14 -14
- package/dist/types/interface/models/transaction-category.model.js +2 -2
- package/dist/types/interface/models/user.model.d.ts +13 -13
- package/dist/types/interface/models/user.model.js +2 -2
- package/dist/utils/error.utils.d.ts +15 -15
- package/dist/utils/error.utils.js +24 -24
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +17 -13
- package/package.json +5 -6
- package/dist/types/interface/models/bank-account-transaction.model.d.ts +0 -14
- package/dist/types/interface/models/bank-account-transaction.model.js +0 -2
package/dist/index.js
CHANGED
|
@@ -1,86 +1,90 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
};
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
exports
|
|
37
|
-
exports
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
_a
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
var _a;
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.AbyssBankingCore = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_HEADER = void 0;
|
|
34
|
+
const axios_1 = __importDefault(require("axios"));
|
|
35
|
+
const axios_retry_1 = __importStar(require("axios-retry"));
|
|
36
|
+
__exportStar(require("./types"), exports);
|
|
37
|
+
__exportStar(require("./utils"), exports);
|
|
38
|
+
__exportStar(require("./api"), exports);
|
|
39
|
+
const DEFAULT_BASE_URL = 'https://banking-api.abyss-project.fr/api/';
|
|
40
|
+
exports.API_KEY_HEADER = 'abyss-banking-api-key';
|
|
41
|
+
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
42
|
+
const NUMBER_RETRY_API = 10;
|
|
43
|
+
const BASE_DELAY_BETWEEN_RETRY = 5000;
|
|
44
|
+
const RETRY_CODES = [
|
|
45
|
+
502,
|
|
46
|
+
503,
|
|
47
|
+
];
|
|
48
|
+
class AbyssBankingCore {
|
|
49
|
+
static enableAxiosRetry(axiosRetryConfig) {
|
|
50
|
+
(0, axios_retry_1.default)(_a.axios, {
|
|
51
|
+
retries: NUMBER_RETRY_API,
|
|
52
|
+
retryDelay: (retryCount) => retryCount * BASE_DELAY_BETWEEN_RETRY,
|
|
53
|
+
retryCondition: (error) => {
|
|
54
|
+
var _b;
|
|
55
|
+
return (0, axios_retry_1.isNetworkOrIdempotentRequestError)(error) ||
|
|
56
|
+
RETRY_CODES.includes(((_b = error.response) === null || _b === void 0 ? void 0 : _b.status) || 502);
|
|
57
|
+
},
|
|
58
|
+
...axiosRetryConfig,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
static setConfig(config) {
|
|
62
|
+
_a.config = { ..._a.config, ...config };
|
|
63
|
+
if (config.baseURL) {
|
|
64
|
+
_a.axios.defaults.baseURL = config.baseURL;
|
|
65
|
+
}
|
|
66
|
+
if (config.token) {
|
|
67
|
+
_a.axios.defaults.headers.common.Authorization = `Bearer ${config.token}`;
|
|
68
|
+
}
|
|
69
|
+
if (config.apiKey) {
|
|
70
|
+
_a.axios.defaults.headers.common[exports.API_KEY_HEADER] = `${config.apiKey}`;
|
|
71
|
+
}
|
|
72
|
+
if (config.adminToken) {
|
|
73
|
+
_a.axios.defaults.headers.common[exports.ADMIN_TOKEN_HEADER] = `${config.adminToken}`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
static getConfig() {
|
|
77
|
+
return _a.config;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.AbyssBankingCore = AbyssBankingCore;
|
|
81
|
+
_a = AbyssBankingCore;
|
|
82
|
+
AbyssBankingCore.config = {
|
|
83
|
+
token: '',
|
|
84
|
+
apiKey: '',
|
|
85
|
+
apiKeyApplication: '',
|
|
86
|
+
applicationId: '',
|
|
87
|
+
adminToken: '',
|
|
88
|
+
baseURL: DEFAULT_BASE_URL,
|
|
89
|
+
};
|
|
90
|
+
AbyssBankingCore.axios = axios_1.default.create({ baseURL: _a.config.baseURL });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum AggregatorType {
|
|
2
|
-
GOCARDLESS = "GOCARDLESS",
|
|
3
|
-
DEMO_DATA_BANKING = "DEMO_DATA_BANKING"
|
|
4
|
-
}
|
|
1
|
+
export declare enum AggregatorType {
|
|
2
|
+
GOCARDLESS = "GOCARDLESS",
|
|
3
|
+
DEMO_DATA_BANKING = "DEMO_DATA_BANKING"
|
|
4
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AggregatorType = void 0;
|
|
4
|
-
var AggregatorType;
|
|
5
|
-
(function (AggregatorType) {
|
|
6
|
-
AggregatorType["GOCARDLESS"] = "GOCARDLESS";
|
|
7
|
-
AggregatorType["DEMO_DATA_BANKING"] = "DEMO_DATA_BANKING";
|
|
8
|
-
})(AggregatorType
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AggregatorType = void 0;
|
|
4
|
+
var AggregatorType;
|
|
5
|
+
(function (AggregatorType) {
|
|
6
|
+
AggregatorType["GOCARDLESS"] = "GOCARDLESS";
|
|
7
|
+
AggregatorType["DEMO_DATA_BANKING"] = "DEMO_DATA_BANKING";
|
|
8
|
+
})(AggregatorType || (exports.AggregatorType = AggregatorType = {}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare enum ErrorType {
|
|
2
|
-
apiError = "api_error",
|
|
3
|
-
authError = "authentication_error",
|
|
4
|
-
resourceError = "resource_error"
|
|
5
|
-
}
|
|
6
|
-
export declare enum Code {
|
|
7
|
-
tokenFailure = "token_authentication_failure",
|
|
8
|
-
authenticationFailure = "authentication_credentials_failure",
|
|
9
|
-
accessNotAllowed = "access_not_allowed",
|
|
10
|
-
notFound = "not_found",
|
|
11
|
-
validationError = "resource_validation_error",
|
|
12
|
-
constraintError = "resource_constraint_error",
|
|
13
|
-
internalServerError = "internal_server_error",
|
|
14
|
-
serviceUnavailable = "service_unavailable",
|
|
15
|
-
invalidData = "invalid_data"
|
|
16
|
-
}
|
|
1
|
+
export declare enum ErrorType {
|
|
2
|
+
apiError = "api_error",
|
|
3
|
+
authError = "authentication_error",
|
|
4
|
+
resourceError = "resource_error"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Code {
|
|
7
|
+
tokenFailure = "token_authentication_failure",
|
|
8
|
+
authenticationFailure = "authentication_credentials_failure",
|
|
9
|
+
accessNotAllowed = "access_not_allowed",
|
|
10
|
+
notFound = "not_found",
|
|
11
|
+
validationError = "resource_validation_error",
|
|
12
|
+
constraintError = "resource_constraint_error",
|
|
13
|
+
internalServerError = "internal_server_error",
|
|
14
|
+
serviceUnavailable = "service_unavailable",
|
|
15
|
+
invalidData = "invalid_data"
|
|
16
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Code = exports.ErrorType = void 0;
|
|
4
|
-
var ErrorType;
|
|
5
|
-
(function (ErrorType) {
|
|
6
|
-
ErrorType["apiError"] = "api_error";
|
|
7
|
-
ErrorType["authError"] = "authentication_error";
|
|
8
|
-
ErrorType["resourceError"] = "resource_error";
|
|
9
|
-
})(ErrorType
|
|
10
|
-
var Code;
|
|
11
|
-
(function (Code) {
|
|
12
|
-
Code["tokenFailure"] = "token_authentication_failure";
|
|
13
|
-
Code["authenticationFailure"] = "authentication_credentials_failure";
|
|
14
|
-
Code["accessNotAllowed"] = "access_not_allowed";
|
|
15
|
-
Code["notFound"] = "not_found";
|
|
16
|
-
Code["validationError"] = "resource_validation_error";
|
|
17
|
-
Code["constraintError"] = "resource_constraint_error";
|
|
18
|
-
Code["internalServerError"] = "internal_server_error";
|
|
19
|
-
Code["serviceUnavailable"] = "service_unavailable";
|
|
20
|
-
Code["invalidData"] = "invalid_data";
|
|
21
|
-
})(Code
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Code = exports.ErrorType = void 0;
|
|
4
|
+
var ErrorType;
|
|
5
|
+
(function (ErrorType) {
|
|
6
|
+
ErrorType["apiError"] = "api_error";
|
|
7
|
+
ErrorType["authError"] = "authentication_error";
|
|
8
|
+
ErrorType["resourceError"] = "resource_error";
|
|
9
|
+
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
|
10
|
+
var Code;
|
|
11
|
+
(function (Code) {
|
|
12
|
+
Code["tokenFailure"] = "token_authentication_failure";
|
|
13
|
+
Code["authenticationFailure"] = "authentication_credentials_failure";
|
|
14
|
+
Code["accessNotAllowed"] = "access_not_allowed";
|
|
15
|
+
Code["notFound"] = "not_found";
|
|
16
|
+
Code["validationError"] = "resource_validation_error";
|
|
17
|
+
Code["constraintError"] = "resource_constraint_error";
|
|
18
|
+
Code["internalServerError"] = "internal_server_error";
|
|
19
|
+
Code["serviceUnavailable"] = "service_unavailable";
|
|
20
|
+
Code["invalidData"] = "invalid_data";
|
|
21
|
+
})(Code || (exports.Code = Code = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum BankConnectionStatus {
|
|
2
|
-
PENDING = "PENDING",
|
|
3
|
-
FAILED = "FAILED",
|
|
4
|
-
SUCCESS = "SUCCESS",
|
|
5
|
-
EXPIRED = "EXPIRED"
|
|
6
|
-
}
|
|
1
|
+
export declare enum BankConnectionStatus {
|
|
2
|
+
PENDING = "PENDING",
|
|
3
|
+
FAILED = "FAILED",
|
|
4
|
+
SUCCESS = "SUCCESS",
|
|
5
|
+
EXPIRED = "EXPIRED"
|
|
6
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BankConnectionStatus = void 0;
|
|
4
|
-
var BankConnectionStatus;
|
|
5
|
-
(function (BankConnectionStatus) {
|
|
6
|
-
BankConnectionStatus["PENDING"] = "PENDING";
|
|
7
|
-
BankConnectionStatus["FAILED"] = "FAILED";
|
|
8
|
-
BankConnectionStatus["SUCCESS"] = "SUCCESS";
|
|
9
|
-
BankConnectionStatus["EXPIRED"] = "EXPIRED";
|
|
10
|
-
})(BankConnectionStatus
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankConnectionStatus = void 0;
|
|
4
|
+
var BankConnectionStatus;
|
|
5
|
+
(function (BankConnectionStatus) {
|
|
6
|
+
BankConnectionStatus["PENDING"] = "PENDING";
|
|
7
|
+
BankConnectionStatus["FAILED"] = "FAILED";
|
|
8
|
+
BankConnectionStatus["SUCCESS"] = "SUCCESS";
|
|
9
|
+
BankConnectionStatus["EXPIRED"] = "EXPIRED";
|
|
10
|
+
})(BankConnectionStatus || (exports.BankConnectionStatus = BankConnectionStatus = {}));
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export declare enum CashAccountType {
|
|
2
|
-
'CACC' = "CACC",
|
|
3
|
-
'CARD' = "CARD",
|
|
4
|
-
'CASH' = "CASH",
|
|
5
|
-
'CHAR' = "CHAR",
|
|
6
|
-
'CISH' = "CISH",
|
|
7
|
-
'COMM' = "COMM",
|
|
8
|
-
'CPAC' = "CPAC",
|
|
9
|
-
'LLSV' = "LLSV",
|
|
10
|
-
'LOAN' = "LOAN",
|
|
11
|
-
'MGLD' = "MGLD",
|
|
12
|
-
'MOMA' = "MOMA",
|
|
13
|
-
'NREX' = "NREX",
|
|
14
|
-
'ODFT' = "ODFT",
|
|
15
|
-
'ONDP' = "ONDP",
|
|
16
|
-
'OTHR' = "OTHR",
|
|
17
|
-
'SACC' = "SACC",
|
|
18
|
-
'SLRY' = "SLRY",
|
|
19
|
-
'SVGS' = "SVGS",
|
|
20
|
-
'TAXE' = "TAXE",
|
|
21
|
-
'TRAN' = "TRAN",
|
|
22
|
-
'TRAS' = "TRAS",
|
|
23
|
-
'VACC' = "VACC",
|
|
24
|
-
'NFCA' = "NFCA",
|
|
25
|
-
'UNKNOWN' = "UNKNOWN"
|
|
26
|
-
}
|
|
1
|
+
export declare enum CashAccountType {
|
|
2
|
+
'CACC' = "CACC",
|
|
3
|
+
'CARD' = "CARD",
|
|
4
|
+
'CASH' = "CASH",
|
|
5
|
+
'CHAR' = "CHAR",
|
|
6
|
+
'CISH' = "CISH",
|
|
7
|
+
'COMM' = "COMM",
|
|
8
|
+
'CPAC' = "CPAC",
|
|
9
|
+
'LLSV' = "LLSV",
|
|
10
|
+
'LOAN' = "LOAN",
|
|
11
|
+
'MGLD' = "MGLD",
|
|
12
|
+
'MOMA' = "MOMA",
|
|
13
|
+
'NREX' = "NREX",
|
|
14
|
+
'ODFT' = "ODFT",
|
|
15
|
+
'ONDP' = "ONDP",
|
|
16
|
+
'OTHR' = "OTHR",
|
|
17
|
+
'SACC' = "SACC",
|
|
18
|
+
'SLRY' = "SLRY",
|
|
19
|
+
'SVGS' = "SVGS",
|
|
20
|
+
'TAXE' = "TAXE",
|
|
21
|
+
'TRAN' = "TRAN",
|
|
22
|
+
'TRAS' = "TRAS",
|
|
23
|
+
'VACC' = "VACC",
|
|
24
|
+
'NFCA' = "NFCA",
|
|
25
|
+
'UNKNOWN' = "UNKNOWN"
|
|
26
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CashAccountType = void 0;
|
|
4
|
-
var CashAccountType;
|
|
5
|
-
(function (CashAccountType) {
|
|
6
|
-
CashAccountType["CACC"] = "CACC";
|
|
7
|
-
CashAccountType["CARD"] = "CARD";
|
|
8
|
-
CashAccountType["CASH"] = "CASH";
|
|
9
|
-
CashAccountType["CHAR"] = "CHAR";
|
|
10
|
-
CashAccountType["CISH"] = "CISH";
|
|
11
|
-
CashAccountType["COMM"] = "COMM";
|
|
12
|
-
CashAccountType["CPAC"] = "CPAC";
|
|
13
|
-
CashAccountType["LLSV"] = "LLSV";
|
|
14
|
-
CashAccountType["LOAN"] = "LOAN";
|
|
15
|
-
CashAccountType["MGLD"] = "MGLD";
|
|
16
|
-
CashAccountType["MOMA"] = "MOMA";
|
|
17
|
-
CashAccountType["NREX"] = "NREX";
|
|
18
|
-
CashAccountType["ODFT"] = "ODFT";
|
|
19
|
-
CashAccountType["ONDP"] = "ONDP";
|
|
20
|
-
CashAccountType["OTHR"] = "OTHR";
|
|
21
|
-
CashAccountType["SACC"] = "SACC";
|
|
22
|
-
CashAccountType["SLRY"] = "SLRY";
|
|
23
|
-
CashAccountType["SVGS"] = "SVGS";
|
|
24
|
-
CashAccountType["TAXE"] = "TAXE";
|
|
25
|
-
CashAccountType["TRAN"] = "TRAN";
|
|
26
|
-
CashAccountType["TRAS"] = "TRAS";
|
|
27
|
-
CashAccountType["VACC"] = "VACC";
|
|
28
|
-
CashAccountType["NFCA"] = "NFCA";
|
|
29
|
-
CashAccountType["UNKNOWN"] = "UNKNOWN";
|
|
30
|
-
})(CashAccountType
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CashAccountType = void 0;
|
|
4
|
+
var CashAccountType;
|
|
5
|
+
(function (CashAccountType) {
|
|
6
|
+
CashAccountType["CACC"] = "CACC";
|
|
7
|
+
CashAccountType["CARD"] = "CARD";
|
|
8
|
+
CashAccountType["CASH"] = "CASH";
|
|
9
|
+
CashAccountType["CHAR"] = "CHAR";
|
|
10
|
+
CashAccountType["CISH"] = "CISH";
|
|
11
|
+
CashAccountType["COMM"] = "COMM";
|
|
12
|
+
CashAccountType["CPAC"] = "CPAC";
|
|
13
|
+
CashAccountType["LLSV"] = "LLSV";
|
|
14
|
+
CashAccountType["LOAN"] = "LOAN";
|
|
15
|
+
CashAccountType["MGLD"] = "MGLD";
|
|
16
|
+
CashAccountType["MOMA"] = "MOMA";
|
|
17
|
+
CashAccountType["NREX"] = "NREX";
|
|
18
|
+
CashAccountType["ODFT"] = "ODFT";
|
|
19
|
+
CashAccountType["ONDP"] = "ONDP";
|
|
20
|
+
CashAccountType["OTHR"] = "OTHR";
|
|
21
|
+
CashAccountType["SACC"] = "SACC";
|
|
22
|
+
CashAccountType["SLRY"] = "SLRY";
|
|
23
|
+
CashAccountType["SVGS"] = "SVGS";
|
|
24
|
+
CashAccountType["TAXE"] = "TAXE";
|
|
25
|
+
CashAccountType["TRAN"] = "TRAN";
|
|
26
|
+
CashAccountType["TRAS"] = "TRAS";
|
|
27
|
+
CashAccountType["VACC"] = "VACC";
|
|
28
|
+
CashAccountType["NFCA"] = "NFCA";
|
|
29
|
+
CashAccountType["UNKNOWN"] = "UNKNOWN";
|
|
30
|
+
})(CashAccountType || (exports.CashAccountType = CashAccountType = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './api-error.enum';
|
|
2
|
-
export * from './aggregator-type.enum';
|
|
3
|
-
export * from './bank-connection-status.enum';
|
|
4
|
-
export * from './cash-account-type.enum';
|
|
5
|
-
export * from './period-configuration.enum';
|
|
6
|
-
export * from './panel-component-type.enum';
|
|
1
|
+
export * from './api-error.enum';
|
|
2
|
+
export * from './aggregator-type.enum';
|
|
3
|
+
export * from './bank-connection-status.enum';
|
|
4
|
+
export * from './cash-account-type.enum';
|
|
5
|
+
export * from './period-configuration.enum';
|
|
6
|
+
export * from './panel-component-type.enum';
|
package/dist/types/enum/index.js
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
__exportStar(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api-error.enum"), exports);
|
|
18
|
+
__exportStar(require("./aggregator-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./bank-connection-status.enum"), exports);
|
|
20
|
+
__exportStar(require("./cash-account-type.enum"), exports);
|
|
21
|
+
__exportStar(require("./period-configuration.enum"), exports);
|
|
22
|
+
__exportStar(require("./panel-component-type.enum"), exports);
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
export declare enum PanelComponentType {
|
|
2
|
-
ACCOUNT_BALANCE = "ACCOUNT_BALANCE",
|
|
3
|
-
ACCOUNT_CASH_POSITION = "ACCOUNT_CASH_POSITION",
|
|
4
|
-
SUM_PER_CATEGORY = "SUM_PER_CATEGORY",
|
|
5
|
-
SUM_PER_CATEGORY_PER_MONTH = "SUM_PER_CATEGORY_PER_MONTH",
|
|
6
|
-
TRANSACTION_PER_ACCOUNT = "TRANSACTION_PER_ACCOUNT",
|
|
7
|
-
TRANSACTION_PER_CATEGORY = "TRANSACTION_PER_CATEGORY",
|
|
8
|
-
TRANSACTION_PER_DAY = "TRANSACTION_PER_DAY",
|
|
9
|
-
TRANSACTION_TABLE = "TRANSACTION_TABLE",
|
|
10
|
-
PERIOD_REPORT = "PERIOD_REPORT",
|
|
11
|
-
MONTHLY_REPORT = "MONTHLY_REPORT"
|
|
12
|
-
|
|
1
|
+
export declare enum PanelComponentType {
|
|
2
|
+
ACCOUNT_BALANCE = "ACCOUNT_BALANCE",
|
|
3
|
+
ACCOUNT_CASH_POSITION = "ACCOUNT_CASH_POSITION",
|
|
4
|
+
SUM_PER_CATEGORY = "SUM_PER_CATEGORY",
|
|
5
|
+
SUM_PER_CATEGORY_PER_MONTH = "SUM_PER_CATEGORY_PER_MONTH",
|
|
6
|
+
TRANSACTION_PER_ACCOUNT = "TRANSACTION_PER_ACCOUNT",
|
|
7
|
+
TRANSACTION_PER_CATEGORY = "TRANSACTION_PER_CATEGORY",
|
|
8
|
+
TRANSACTION_PER_DAY = "TRANSACTION_PER_DAY",
|
|
9
|
+
TRANSACTION_TABLE = "TRANSACTION_TABLE",
|
|
10
|
+
PERIOD_REPORT = "PERIOD_REPORT",
|
|
11
|
+
MONTHLY_REPORT = "MONTHLY_REPORT",
|
|
12
|
+
CASH_POSITION_COMPARISON = "CASH_POSITION_COMPARISON",
|
|
13
|
+
MONTHLY_EVOLUTION = "MONTHLY_EVOLUTION",
|
|
14
|
+
TOP_OUTCOMES = "TOP_OUTCOMES",
|
|
15
|
+
TOP_INCOMES = "TOP_INCOMES"
|
|
16
|
+
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PanelComponentType = void 0;
|
|
4
|
-
var PanelComponentType;
|
|
5
|
-
(function (PanelComponentType) {
|
|
6
|
-
PanelComponentType["ACCOUNT_BALANCE"] = "ACCOUNT_BALANCE";
|
|
7
|
-
PanelComponentType["ACCOUNT_CASH_POSITION"] = "ACCOUNT_CASH_POSITION";
|
|
8
|
-
PanelComponentType["SUM_PER_CATEGORY"] = "SUM_PER_CATEGORY";
|
|
9
|
-
PanelComponentType["SUM_PER_CATEGORY_PER_MONTH"] = "SUM_PER_CATEGORY_PER_MONTH";
|
|
10
|
-
PanelComponentType["TRANSACTION_PER_ACCOUNT"] = "TRANSACTION_PER_ACCOUNT";
|
|
11
|
-
PanelComponentType["TRANSACTION_PER_CATEGORY"] = "TRANSACTION_PER_CATEGORY";
|
|
12
|
-
PanelComponentType["TRANSACTION_PER_DAY"] = "TRANSACTION_PER_DAY";
|
|
13
|
-
PanelComponentType["TRANSACTION_TABLE"] = "TRANSACTION_TABLE";
|
|
14
|
-
PanelComponentType["PERIOD_REPORT"] = "PERIOD_REPORT";
|
|
15
|
-
PanelComponentType["MONTHLY_REPORT"] = "MONTHLY_REPORT";
|
|
16
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PanelComponentType = void 0;
|
|
4
|
+
var PanelComponentType;
|
|
5
|
+
(function (PanelComponentType) {
|
|
6
|
+
PanelComponentType["ACCOUNT_BALANCE"] = "ACCOUNT_BALANCE";
|
|
7
|
+
PanelComponentType["ACCOUNT_CASH_POSITION"] = "ACCOUNT_CASH_POSITION";
|
|
8
|
+
PanelComponentType["SUM_PER_CATEGORY"] = "SUM_PER_CATEGORY";
|
|
9
|
+
PanelComponentType["SUM_PER_CATEGORY_PER_MONTH"] = "SUM_PER_CATEGORY_PER_MONTH";
|
|
10
|
+
PanelComponentType["TRANSACTION_PER_ACCOUNT"] = "TRANSACTION_PER_ACCOUNT";
|
|
11
|
+
PanelComponentType["TRANSACTION_PER_CATEGORY"] = "TRANSACTION_PER_CATEGORY";
|
|
12
|
+
PanelComponentType["TRANSACTION_PER_DAY"] = "TRANSACTION_PER_DAY";
|
|
13
|
+
PanelComponentType["TRANSACTION_TABLE"] = "TRANSACTION_TABLE";
|
|
14
|
+
PanelComponentType["PERIOD_REPORT"] = "PERIOD_REPORT";
|
|
15
|
+
PanelComponentType["MONTHLY_REPORT"] = "MONTHLY_REPORT";
|
|
16
|
+
PanelComponentType["CASH_POSITION_COMPARISON"] = "CASH_POSITION_COMPARISON";
|
|
17
|
+
PanelComponentType["MONTHLY_EVOLUTION"] = "MONTHLY_EVOLUTION";
|
|
18
|
+
PanelComponentType["TOP_OUTCOMES"] = "TOP_OUTCOMES";
|
|
19
|
+
PanelComponentType["TOP_INCOMES"] = "TOP_INCOMES";
|
|
20
|
+
})(PanelComponentType || (exports.PanelComponentType = PanelComponentType = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare enum PeriodConfiguration {
|
|
2
|
-
LAST_7_DAYS = "LAST_7_DAYS",
|
|
3
|
-
LAST_30_DAYS = "LAST_30_DAYS",
|
|
4
|
-
LAST_60_DAYS = "LAST_60_DAYS",
|
|
5
|
-
SINCE_START_OF_MONTH = "SINCE_START_OF_MONTH",
|
|
6
|
-
SINCE_START_OF_YEAR = "SINCE_START_OF_YEAR"
|
|
7
|
-
}
|
|
1
|
+
export declare enum PeriodConfiguration {
|
|
2
|
+
LAST_7_DAYS = "LAST_7_DAYS",
|
|
3
|
+
LAST_30_DAYS = "LAST_30_DAYS",
|
|
4
|
+
LAST_60_DAYS = "LAST_60_DAYS",
|
|
5
|
+
SINCE_START_OF_MONTH = "SINCE_START_OF_MONTH",
|
|
6
|
+
SINCE_START_OF_YEAR = "SINCE_START_OF_YEAR"
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PeriodConfiguration = void 0;
|
|
4
|
-
var PeriodConfiguration;
|
|
5
|
-
(function (PeriodConfiguration) {
|
|
6
|
-
PeriodConfiguration["LAST_7_DAYS"] = "LAST_7_DAYS";
|
|
7
|
-
PeriodConfiguration["LAST_30_DAYS"] = "LAST_30_DAYS";
|
|
8
|
-
PeriodConfiguration["LAST_60_DAYS"] = "LAST_60_DAYS";
|
|
9
|
-
PeriodConfiguration["SINCE_START_OF_MONTH"] = "SINCE_START_OF_MONTH";
|
|
10
|
-
PeriodConfiguration["SINCE_START_OF_YEAR"] = "SINCE_START_OF_YEAR";
|
|
11
|
-
})(PeriodConfiguration
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PeriodConfiguration = void 0;
|
|
4
|
+
var PeriodConfiguration;
|
|
5
|
+
(function (PeriodConfiguration) {
|
|
6
|
+
PeriodConfiguration["LAST_7_DAYS"] = "LAST_7_DAYS";
|
|
7
|
+
PeriodConfiguration["LAST_30_DAYS"] = "LAST_30_DAYS";
|
|
8
|
+
PeriodConfiguration["LAST_60_DAYS"] = "LAST_60_DAYS";
|
|
9
|
+
PeriodConfiguration["SINCE_START_OF_MONTH"] = "SINCE_START_OF_MONTH";
|
|
10
|
+
PeriodConfiguration["SINCE_START_OF_YEAR"] = "SINCE_START_OF_YEAR";
|
|
11
|
+
})(PeriodConfiguration || (exports.PeriodConfiguration = PeriodConfiguration = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './enum';
|
|
2
|
-
export * from './interface';
|
|
1
|
+
export * from './enum';
|
|
2
|
+
export * from './interface';
|