@wenex/sdk 1.0.18 → 1.0.21
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/common/enums/financial/accounts/index.d.ts +2 -0
- package/common/enums/financial/accounts/index.js +19 -0
- package/common/enums/financial/accounts/index.js.map +1 -0
- package/common/enums/financial/accounts/ownership.enum.d.ts +5 -0
- package/common/enums/financial/accounts/ownership.enum.js +10 -0
- package/common/enums/financial/accounts/ownership.enum.js.map +1 -0
- package/common/enums/financial/accounts/type.enum.d.ts +9 -0
- package/common/enums/financial/accounts/type.enum.js +14 -0
- package/common/enums/financial/accounts/type.enum.js.map +1 -0
- package/common/enums/financial/common/index.d.ts +1 -0
- package/common/enums/financial/common/index.js +18 -0
- package/common/enums/financial/common/index.js.map +1 -0
- package/common/enums/financial/common/pay-type.enum.d.ts +6 -0
- package/common/enums/financial/common/pay-type.enum.js +11 -0
- package/common/enums/financial/common/pay-type.enum.js.map +1 -0
- package/common/enums/financial/currencies/category.enum.d.ts +4 -0
- package/common/enums/financial/currencies/category.enum.js +9 -0
- package/common/enums/financial/currencies/category.enum.js.map +1 -0
- package/common/enums/financial/currencies/index.d.ts +4 -0
- package/common/enums/financial/currencies/index.js +21 -0
- package/common/enums/financial/currencies/index.js.map +1 -0
- package/common/enums/financial/currencies/lib.enum.d.ts +10 -0
- package/common/enums/financial/currencies/lib.enum.js +15 -0
- package/common/enums/financial/currencies/lib.enum.js.map +1 -0
- package/common/enums/financial/currencies/provider.enum.d.ts +3 -0
- package/common/enums/financial/currencies/provider.enum.js +8 -0
- package/common/enums/financial/currencies/provider.enum.js.map +1 -0
- package/common/enums/financial/currencies/type.enum.d.ts +4 -0
- package/common/enums/financial/currencies/type.enum.js +9 -0
- package/common/enums/financial/currencies/type.enum.js.map +1 -0
- package/common/enums/financial/index.d.ts +5 -0
- package/common/enums/financial/index.js +22 -0
- package/common/enums/financial/index.js.map +1 -0
- package/common/enums/financial/invoices/index.d.ts +1 -0
- package/common/enums/financial/invoices/index.js +18 -0
- package/common/enums/financial/invoices/index.js.map +1 -0
- package/common/enums/financial/invoices/type.enum.d.ts +6 -0
- package/common/enums/financial/invoices/type.enum.js +11 -0
- package/common/enums/financial/invoices/type.enum.js.map +1 -0
- package/common/enums/financial/transactions/index.d.ts +3 -0
- package/common/enums/financial/transactions/index.js +20 -0
- package/common/enums/financial/transactions/index.js.map +1 -0
- package/common/enums/financial/transactions/reason.enum.d.ts +7 -0
- package/common/enums/financial/transactions/reason.enum.js +12 -0
- package/common/enums/financial/transactions/reason.enum.js.map +1 -0
- package/common/enums/financial/transactions/state.enum.d.ts +7 -0
- package/common/enums/financial/transactions/state.enum.js +12 -0
- package/common/enums/financial/transactions/state.enum.js.map +1 -0
- package/common/enums/financial/transactions/type.enum.d.ts +5 -0
- package/common/enums/financial/transactions/type.enum.js +10 -0
- package/common/enums/financial/transactions/type.enum.js.map +1 -0
- package/common/interfaces/financial/accounts/account.interface.d.ts +10 -0
- package/common/interfaces/financial/accounts/account.interface.js +3 -0
- package/common/interfaces/financial/accounts/account.interface.js.map +1 -0
- package/common/interfaces/financial/accounts/index.d.ts +1 -0
- package/common/interfaces/financial/accounts/index.js +18 -0
- package/common/interfaces/financial/accounts/index.js.map +1 -0
- package/common/interfaces/financial/common/index.d.ts +1 -0
- package/common/interfaces/financial/common/index.js +18 -0
- package/common/interfaces/financial/common/index.js.map +1 -0
- package/common/interfaces/financial/common/pay.interface.d.ts +9 -0
- package/common/interfaces/financial/common/pay.interface.js +3 -0
- package/common/interfaces/financial/common/pay.interface.js.map +1 -0
- package/common/interfaces/financial/currencies/currency.interface.d.ts +25 -0
- package/common/interfaces/financial/currencies/currency.interface.js +3 -0
- package/common/interfaces/financial/currencies/currency.interface.js.map +1 -0
- package/common/interfaces/financial/currencies/index.d.ts +2 -0
- package/common/interfaces/financial/currencies/index.js +19 -0
- package/common/interfaces/financial/currencies/index.js.map +1 -0
- package/common/interfaces/financial/currencies/unit.interface.d.ts +7 -0
- package/common/interfaces/financial/currencies/unit.interface.js +3 -0
- package/common/interfaces/financial/currencies/unit.interface.js.map +1 -0
- package/common/interfaces/financial/index.d.ts +6 -0
- package/common/interfaces/financial/index.js +23 -0
- package/common/interfaces/financial/index.js.map +1 -0
- package/common/interfaces/financial/invoices/index.d.ts +2 -0
- package/common/interfaces/financial/invoices/index.js +19 -0
- package/common/interfaces/financial/invoices/index.js.map +1 -0
- package/common/interfaces/financial/invoices/invoice.interface.d.ts +25 -0
- package/common/interfaces/financial/invoices/invoice.interface.js +3 -0
- package/common/interfaces/financial/invoices/invoice.interface.js.map +1 -0
- package/common/interfaces/financial/invoices/item.interface.d.ts +8 -0
- package/common/interfaces/financial/invoices/item.interface.js +3 -0
- package/common/interfaces/financial/invoices/item.interface.js.map +1 -0
- package/common/interfaces/financial/transactions/index.d.ts +1 -0
- package/common/interfaces/financial/transactions/index.js +18 -0
- package/common/interfaces/financial/transactions/index.js.map +1 -0
- package/common/interfaces/financial/transactions/transaction.interface.d.ts +23 -0
- package/common/interfaces/financial/transactions/transaction.interface.js +3 -0
- package/common/interfaces/financial/transactions/transaction.interface.js.map +1 -0
- package/common/interfaces/financial/wallets/index.d.ts +1 -0
- package/common/interfaces/financial/wallets/index.js +18 -0
- package/common/interfaces/financial/wallets/index.js.map +1 -0
- package/common/interfaces/financial/wallets/wallet.interface.d.ts +15 -0
- package/common/interfaces/financial/wallets/wallet.interface.js +3 -0
- package/common/interfaces/financial/wallets/wallet.interface.js.map +1 -0
- package/common/interfaces/special/stats/stat.interface.d.ts +1 -0
- package/common/utils/financial/constants/index.d.ts +1 -0
- package/common/utils/financial/constants/index.js +18 -0
- package/common/utils/financial/constants/index.js.map +1 -0
- package/common/utils/financial/constants/transactions.constant.d.ts +2 -0
- package/common/utils/financial/constants/transactions.constant.js +6 -0
- package/common/utils/financial/constants/transactions.constant.js.map +1 -0
- package/common/utils/financial/financial.spec.d.ts +1 -0
- package/common/utils/financial/financial.spec.js +15 -0
- package/common/utils/financial/financial.spec.js.map +1 -0
- package/common/utils/financial/financial.util.d.ts +2 -0
- package/common/utils/financial/financial.util.js +25 -0
- package/common/utils/financial/financial.util.js.map +1 -0
- package/common/utils/financial/index.d.ts +4 -0
- package/common/utils/financial/index.js +21 -0
- package/common/utils/financial/index.js.map +1 -0
- package/common/utils/financial/invoice.spec.d.ts +1 -0
- package/common/utils/financial/invoice.spec.js +13 -0
- package/common/utils/financial/invoice.spec.js.map +1 -0
- package/common/utils/financial/invoice.util.d.ts +2 -0
- package/common/utils/financial/invoice.util.js +16 -0
- package/common/utils/financial/invoice.util.js.map +1 -0
- package/common/utils/financial/transfer.util.d.ts +3 -0
- package/common/utils/financial/transfer.util.js +8 -0
- package/common/utils/financial/transfer.util.js.map +1 -0
- package/common/utils/financial/transfer.util.spec.d.ts +1 -0
- package/common/utils/financial/transfer.util.spec.js +21 -0
- package/common/utils/financial/transfer.util.spec.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +6 -3
- package/services/financial/accounts.service.d.ts +8 -0
- package/services/financial/accounts.service.js +15 -0
- package/services/financial/accounts.service.js.map +1 -0
- package/services/financial/currencies.service.d.ts +8 -0
- package/services/financial/currencies.service.js +15 -0
- package/services/financial/currencies.service.js.map +1 -0
- package/services/financial/index.d.ts +26 -0
- package/services/financial/index.js +52 -0
- package/services/financial/index.js.map +1 -0
- package/services/financial/invoices.service.d.ts +8 -0
- package/services/financial/invoices.service.js +15 -0
- package/services/financial/invoices.service.js.map +1 -0
- package/services/financial/transactions.service.d.ts +8 -0
- package/services/financial/transactions.service.js +15 -0
- package/services/financial/transactions.service.js.map +1 -0
- package/services/financial/wallets.service.d.ts +8 -0
- package/services/financial/wallets.service.js +15 -0
- package/services/financial/wallets.service.js.map +1 -0
- package/services/index.d.ts +1 -0
- package/services/index.js +1 -0
- package/services/index.js.map +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
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("./type.enum"), exports);
|
|
18
|
+
__exportStar(require("./ownership.enum"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountOwnership = void 0;
|
|
4
|
+
var AccountOwnership;
|
|
5
|
+
(function (AccountOwnership) {
|
|
6
|
+
AccountOwnership["COMMON"] = "COMMON";
|
|
7
|
+
AccountOwnership["PERSONAL"] = "PERSONAL";
|
|
8
|
+
AccountOwnership["GOVERNMENT"] = "GOVERNMENT";
|
|
9
|
+
})(AccountOwnership || (exports.AccountOwnership = AccountOwnership = {}));
|
|
10
|
+
//# sourceMappingURL=ownership.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownership.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/accounts/ownership.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,6CAAyB,CAAA;AAC3B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountType = void 0;
|
|
4
|
+
var AccountType;
|
|
5
|
+
(function (AccountType) {
|
|
6
|
+
AccountType["CHECKING"] = "CHECKING";
|
|
7
|
+
AccountType["SAVINGS"] = "SAVINGS";
|
|
8
|
+
AccountType["FIXED_DEPOSIT"] = "FIXED_DEPOSIT";
|
|
9
|
+
AccountType["MONEY_MARKET"] = "MONEY_MARKET";
|
|
10
|
+
AccountType["JOINT"] = "JOINT";
|
|
11
|
+
AccountType["STUDENT"] = "STUDENT";
|
|
12
|
+
AccountType["BUSINESS"] = "BUSINESS";
|
|
13
|
+
})(AccountType || (exports.AccountType = AccountType = {}));
|
|
14
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/accounts/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,8CAA+B,CAAA;IAC/B,4CAA6B,CAAA;IAC7B,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;AACvB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pay-type.enum';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./pay-type.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayType = void 0;
|
|
4
|
+
var PayType;
|
|
5
|
+
(function (PayType) {
|
|
6
|
+
PayType["AMOUNT"] = "AMOUNT";
|
|
7
|
+
PayType["BLOCKED"] = "BLOCKED";
|
|
8
|
+
PayType["INTERNAL"] = "INTERNAL";
|
|
9
|
+
PayType["EXTERNAL"] = "EXTERNAL";
|
|
10
|
+
})(PayType || (exports.PayType = PayType = {}));
|
|
11
|
+
//# sourceMappingURL=pay-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pay-type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/common/pay-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;AACvB,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyCategory = void 0;
|
|
4
|
+
var CurrencyCategory;
|
|
5
|
+
(function (CurrencyCategory) {
|
|
6
|
+
CurrencyCategory["COIN"] = "COIN";
|
|
7
|
+
CurrencyCategory["TOKEN"] = "TOKEN";
|
|
8
|
+
})(CurrencyCategory || (exports.CurrencyCategory = CurrencyCategory = {}));
|
|
9
|
+
//# sourceMappingURL=category.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/currencies/category.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,mCAAe,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./category.enum"), exports);
|
|
18
|
+
__exportStar(require("./lib.enum"), exports);
|
|
19
|
+
__exportStar(require("./provider.enum"), exports);
|
|
20
|
+
__exportStar(require("./type.enum"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/currencies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,6CAA2B;AAC3B,kDAAgC;AAChC,8CAA4B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CurrencyLib {
|
|
2
|
+
WEB3 = "web3",
|
|
3
|
+
ETHERS = "ethers",
|
|
4
|
+
TRONWEB = "tronweb",
|
|
5
|
+
BITCOINJS_LIB = "bitcoinjs-lib",
|
|
6
|
+
SOLANA_WEB3_JS = "@solana/web3.js",
|
|
7
|
+
TONCONNECT_SDK = "@tonconnect/sdk",
|
|
8
|
+
AVALABS_AVALANCHEJS = "@avalabs/avalanchejs",
|
|
9
|
+
BNB_CHAIN_JAVASCRIPT_SDK = "@bnb-chain/javascript-sdk"
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyLib = void 0;
|
|
4
|
+
var CurrencyLib;
|
|
5
|
+
(function (CurrencyLib) {
|
|
6
|
+
CurrencyLib["WEB3"] = "web3";
|
|
7
|
+
CurrencyLib["ETHERS"] = "ethers";
|
|
8
|
+
CurrencyLib["TRONWEB"] = "tronweb";
|
|
9
|
+
CurrencyLib["BITCOINJS_LIB"] = "bitcoinjs-lib";
|
|
10
|
+
CurrencyLib["SOLANA_WEB3_JS"] = "@solana/web3.js";
|
|
11
|
+
CurrencyLib["TONCONNECT_SDK"] = "@tonconnect/sdk";
|
|
12
|
+
CurrencyLib["AVALABS_AVALANCHEJS"] = "@avalabs/avalanchejs";
|
|
13
|
+
CurrencyLib["BNB_CHAIN_JAVASCRIPT_SDK"] = "@bnb-chain/javascript-sdk";
|
|
14
|
+
})(CurrencyLib || (exports.CurrencyLib = CurrencyLib = {}));
|
|
15
|
+
//# sourceMappingURL=lib.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/currencies/lib.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WASX;AATD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,8CAA+B,CAAA;IAC/B,iDAAkC,CAAA;IAClC,iDAAkC,CAAA;IAClC,2DAA4C,CAAA;IAC5C,qEAAsD,CAAA;AACxD,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyProvider = void 0;
|
|
4
|
+
var CurrencyProvider;
|
|
5
|
+
(function (CurrencyProvider) {
|
|
6
|
+
CurrencyProvider["WENEX"] = "WENEX";
|
|
7
|
+
})(CurrencyProvider || (exports.CurrencyProvider = CurrencyProvider = {}));
|
|
8
|
+
//# sourceMappingURL=provider.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/currencies/provider.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;AACjB,CAAC,EAFW,gBAAgB,gCAAhB,gBAAgB,QAE3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyType = void 0;
|
|
4
|
+
var CurrencyType;
|
|
5
|
+
(function (CurrencyType) {
|
|
6
|
+
CurrencyType["REAL"] = "REAL";
|
|
7
|
+
CurrencyType["VIRTUAL"] = "VIRTUAL";
|
|
8
|
+
})(CurrencyType || (exports.CurrencyType = CurrencyType = {}));
|
|
9
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/currencies/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mCAAmB,CAAA;AACrB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -0,0 +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
|
+
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("./accounts"), exports);
|
|
18
|
+
__exportStar(require("./common"), exports);
|
|
19
|
+
__exportStar(require("./currencies"), exports);
|
|
20
|
+
__exportStar(require("./invoices"), exports);
|
|
21
|
+
__exportStar(require("./transactions"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/financial/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './type.enum';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./type.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceType = void 0;
|
|
4
|
+
var InvoiceType;
|
|
5
|
+
(function (InvoiceType) {
|
|
6
|
+
InvoiceType["TRANSACTION"] = "TRANSACTION";
|
|
7
|
+
InvoiceType["REPEATABLE"] = "REPEATABLE";
|
|
8
|
+
InvoiceType["REPLICATION"] = "REPLICATION";
|
|
9
|
+
InvoiceType["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
10
|
+
})(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
|
|
11
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/invoices/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;AAC/B,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./type.enum"), exports);
|
|
18
|
+
__exportStar(require("./state.enum"), exports);
|
|
19
|
+
__exportStar(require("./reason.enum"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionReason = void 0;
|
|
4
|
+
var TransactionReason;
|
|
5
|
+
(function (TransactionReason) {
|
|
6
|
+
TransactionReason["SYNC"] = "SYNC";
|
|
7
|
+
TransactionReason["DEPOSIT"] = "DEPOSIT";
|
|
8
|
+
TransactionReason["TRANSFER"] = "TRANSFER";
|
|
9
|
+
TransactionReason["WITHDRAW"] = "WITHDRAW";
|
|
10
|
+
TransactionReason["PAYMENT"] = "PAYMENT";
|
|
11
|
+
})(TransactionReason || (exports.TransactionReason = TransactionReason = {}));
|
|
12
|
+
//# sourceMappingURL=reason.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reason.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/reason.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;AACrB,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionState = void 0;
|
|
4
|
+
var TransactionState;
|
|
5
|
+
(function (TransactionState) {
|
|
6
|
+
TransactionState["FAILED"] = "FAILED";
|
|
7
|
+
TransactionState["PENDING"] = "PENDING";
|
|
8
|
+
TransactionState["VERIFIED"] = "VERIFIED";
|
|
9
|
+
TransactionState["CANCELLED"] = "CANCELLED";
|
|
10
|
+
TransactionState["ROLLBACKED"] = "ROLLBACKED";
|
|
11
|
+
})(TransactionState || (exports.TransactionState = TransactionState = {}));
|
|
12
|
+
//# sourceMappingURL=state.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/state.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,2CAAuB,CAAA;IACvB,6CAAyB,CAAA;AAC3B,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionType = void 0;
|
|
4
|
+
var TransactionType;
|
|
5
|
+
(function (TransactionType) {
|
|
6
|
+
TransactionType["DEPOSIT"] = "DEPOSIT";
|
|
7
|
+
TransactionType["TRANSFER"] = "TRANSFER";
|
|
8
|
+
TransactionType["WITHDRAW"] = "WITHDRAW";
|
|
9
|
+
})(TransactionType || (exports.TransactionType = TransactionType = {}));
|
|
10
|
+
//# sourceMappingURL=type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
3
|
+
import { AccountOwnership, AccountType } from '../../../enums/financial';
|
|
4
|
+
export interface Account<Properties extends object = object> extends Core<Properties> {
|
|
5
|
+
type: AccountType;
|
|
6
|
+
ownership: AccountOwnership;
|
|
7
|
+
members?: string[];
|
|
8
|
+
}
|
|
9
|
+
export type AccountDoc<Properties extends object = object> = Account<Properties> & Document;
|
|
10
|
+
export type AccountDto<Properties extends object = object> = Dto<Account<Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/financial/accounts/account.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./account.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/financial/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pay.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./pay.interface"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/financial/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PayType } from '../../../enums/financial';
|
|
2
|
+
import { Core, Dto } from '../../../core/interfaces';
|
|
3
|
+
export interface Pay<Properties extends object = object> extends Core<Properties> {
|
|
4
|
+
type: PayType;
|
|
5
|
+
wallet: string;
|
|
6
|
+
amount?: number;
|
|
7
|
+
fraction?: number;
|
|
8
|
+
}
|
|
9
|
+
export type PayDto<Properties extends object = object> = Dto<Pay<Properties>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pay.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/financial/common/pay.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Document } from 'mongoose';
|
|
2
|
+
import { Core, Dto, NesteDto } from '../../../core/interfaces';
|
|
3
|
+
import { CurrencyUnit, CurrencyUnitDto } from './unit.interface';
|
|
4
|
+
import { CurrencyCategory, CurrencyLib, CurrencyProvider, CurrencyType } from '../../../enums/financial';
|
|
5
|
+
export interface Currency<Properties extends object = object> extends Core<Properties> {
|
|
6
|
+
type: CurrencyType;
|
|
7
|
+
provider: CurrencyProvider;
|
|
8
|
+
code?: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
precision: number;
|
|
11
|
+
countries?: string[];
|
|
12
|
+
name?: string;
|
|
13
|
+
token?: string;
|
|
14
|
+
explore?: string;
|
|
15
|
+
network?: string;
|
|
16
|
+
contract?: string;
|
|
17
|
+
subunits?: CurrencyUnit[];
|
|
18
|
+
category?: CurrencyCategory;
|
|
19
|
+
lib?: CurrencyLib;
|
|
20
|
+
nodes?: string[];
|
|
21
|
+
}
|
|
22
|
+
export type CurrencyDoc<Properties extends object = object> = Currency<Properties> & Document;
|
|
23
|
+
export type CurrencyDto<Properties extends object = object> = NesteDto<Dto<Currency<Properties>, 'provider'>, {
|
|
24
|
+
subunits?: CurrencyUnitDto[];
|
|
25
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/financial/currencies/currency.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./currency.interface"), exports);
|
|
18
|
+
__exportStar(require("./unit.interface"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/financial/currencies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,mDAAiC"}
|