@wenex/sdk 0.8.3 → 0.8.5
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 +0 -2
- package/common/enums/financial/accounts/index.js +0 -2
- package/common/enums/financial/accounts/index.js.map +1 -1
- package/common/enums/financial/index.d.ts +0 -1
- package/common/enums/financial/index.js +0 -1
- package/common/enums/financial/index.js.map +1 -1
- package/common/enums/financial/transactions/reason.enum.d.ts +4 -8
- package/common/enums/financial/transactions/reason.enum.js +4 -8
- package/common/enums/financial/transactions/reason.enum.js.map +1 -1
- package/common/enums/financial/transactions/state.enum.d.ts +2 -2
- package/common/enums/financial/transactions/state.enum.js +1 -1
- package/common/enums/financial/transactions/state.enum.js.map +1 -1
- package/common/enums/financial/transactions/type.enum.d.ts +0 -1
- package/common/enums/financial/transactions/type.enum.js +0 -1
- package/common/enums/financial/transactions/type.enum.js.map +1 -1
- package/common/interfaces/financial/account.interface.d.ts +3 -5
- package/common/interfaces/financial/wallet.interface.d.ts +1 -3
- package/package.json +1 -1
|
@@ -15,7 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./type.enum"), exports);
|
|
18
|
-
__exportStar(require("./broker.enum"), exports);
|
|
19
|
-
__exportStar(require("./provider.enum"), exports);
|
|
20
18
|
__exportStar(require("./ownership.enum"), exports);
|
|
21
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC"}
|
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./common"), exports);
|
|
18
18
|
__exportStar(require("./coins"), exports);
|
|
19
19
|
__exportStar(require("./orders"), exports);
|
|
20
|
-
__exportStar(require("./wallets"), exports);
|
|
21
20
|
__exportStar(require("./accounts"), exports);
|
|
22
21
|
__exportStar(require("./invoices"), exports);
|
|
23
22
|
__exportStar(require("./positions"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/financial/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/financial/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,8CAA4B;AAC5B,iDAA+B"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export declare enum TransactionReason {
|
|
2
|
+
Sync = "sync",
|
|
3
|
+
Payment = "payment",
|
|
2
4
|
Transfer = "transfer",
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Earning = "earning",
|
|
6
|
-
Expense = "expense",
|
|
7
|
-
InvoicePayNormal = "invoice:pay-normal",
|
|
8
|
-
InvoicePayRepeatable = "invoice:pay-repeatable",
|
|
9
|
-
InvoicePayReplication = "invoice:pay-replication",
|
|
10
|
-
InvoicePaySubscription = "invoice:pay-subscription"
|
|
5
|
+
Deposit = "deposit",
|
|
6
|
+
Withdraw = "withdraw"
|
|
11
7
|
}
|
|
@@ -3,14 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TransactionReason = void 0;
|
|
4
4
|
var TransactionReason;
|
|
5
5
|
(function (TransactionReason) {
|
|
6
|
+
TransactionReason["Sync"] = "sync";
|
|
7
|
+
TransactionReason["Payment"] = "payment";
|
|
6
8
|
TransactionReason["Transfer"] = "transfer";
|
|
7
|
-
TransactionReason["
|
|
8
|
-
TransactionReason["
|
|
9
|
-
TransactionReason["Earning"] = "earning";
|
|
10
|
-
TransactionReason["Expense"] = "expense";
|
|
11
|
-
TransactionReason["InvoicePayNormal"] = "invoice:pay-normal";
|
|
12
|
-
TransactionReason["InvoicePayRepeatable"] = "invoice:pay-repeatable";
|
|
13
|
-
TransactionReason["InvoicePayReplication"] = "invoice:pay-replication";
|
|
14
|
-
TransactionReason["InvoicePaySubscription"] = "invoice:pay-subscription";
|
|
9
|
+
TransactionReason["Deposit"] = "deposit";
|
|
10
|
+
TransactionReason["Withdraw"] = "withdraw";
|
|
15
11
|
})(TransactionReason || (exports.TransactionReason = TransactionReason = {}));
|
|
16
12
|
//# sourceMappingURL=reason.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reason.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/reason.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"reason.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/reason.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IAEb,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IAErB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B"}
|
|
@@ -6,7 +6,7 @@ var TransactionState;
|
|
|
6
6
|
TransactionState["Failed"] = "failed";
|
|
7
7
|
TransactionState["Pending"] = "pending";
|
|
8
8
|
TransactionState["Verified"] = "verified";
|
|
9
|
-
TransactionState["Rollback"] = "rollback";
|
|
10
9
|
TransactionState["Cancelled"] = "cancelled";
|
|
10
|
+
TransactionState["Rollbacked"] = "rollbacked";
|
|
11
11
|
})(TransactionState || (exports.TransactionState = TransactionState = {}));
|
|
12
12
|
//# sourceMappingURL=state.enum.js.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TransactionType = void 0;
|
|
4
4
|
var TransactionType;
|
|
5
5
|
(function (TransactionType) {
|
|
6
|
-
TransactionType["Service"] = "service";
|
|
7
6
|
TransactionType["Deposit"] = "deposit";
|
|
8
7
|
TransactionType["Withdraw"] = "withdraw";
|
|
9
8
|
TransactionType["Transfer"] = "transfer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/transactions/type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
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"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { Document } from 'mongoose';
|
|
2
|
-
import {
|
|
2
|
+
import { AccountOwnership, AccountType } from '../../enums';
|
|
3
3
|
import { Core, Dto, MakeOptional, Properties } from '../common';
|
|
4
4
|
export interface Account<Props extends Properties = Properties> extends Core<Props> {
|
|
5
5
|
type: AccountType;
|
|
6
|
-
broker: AccountBroker;
|
|
7
|
-
provider: AccountProvider;
|
|
8
6
|
ownership: AccountOwnership;
|
|
9
|
-
members
|
|
7
|
+
members?: string[];
|
|
10
8
|
}
|
|
11
9
|
export type AccountDoc = Account & Document;
|
|
12
|
-
export type AccountDto = Dto<MakeOptional<Account, '
|
|
10
|
+
export type AccountDto = Dto<MakeOptional<Account, 'type' | 'ownership'>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Document } from 'mongoose';
|
|
2
|
-
import { WalletProvider } from '../../enums';
|
|
3
2
|
import { Core, Dto, MakeOptional, Properties } from '../common';
|
|
4
3
|
export interface Wallet<Props extends Properties = Properties> extends Core<Props> {
|
|
5
4
|
coin: string;
|
|
@@ -8,9 +7,8 @@ export interface Wallet<Props extends Properties = Properties> extends Core<Prop
|
|
|
8
7
|
blocked?: number;
|
|
9
8
|
internal?: number;
|
|
10
9
|
external?: number;
|
|
11
|
-
provider: WalletProvider;
|
|
12
10
|
address?: string;
|
|
13
11
|
private?: string;
|
|
14
12
|
}
|
|
15
13
|
export type WalletDoc = Wallet & Document;
|
|
16
|
-
export type WalletDto = Dto<MakeOptional<Wallet, '
|
|
14
|
+
export type WalletDto = Dto<MakeOptional<Wallet, 'amount'>>;
|