@wenex/sdk 0.5.5 → 0.5.7
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 +1 -0
- package/common/enums/financial/accounts/index.js +1 -0
- package/common/enums/financial/accounts/index.js.map +1 -1
- package/common/enums/financial/accounts/provider.enum.d.ts +3 -0
- package/common/enums/financial/accounts/provider.enum.js +8 -0
- package/common/enums/financial/accounts/provider.enum.js.map +1 -0
- package/common/enums/financial/coins/category.enum.d.ts +4 -0
- package/common/enums/financial/coins/category.enum.js +9 -0
- package/common/enums/financial/coins/category.enum.js.map +1 -0
- package/common/enums/financial/coins/index.d.ts +1 -0
- package/common/enums/financial/coins/index.js +1 -0
- package/common/enums/financial/coins/index.js.map +1 -1
- package/common/interfaces/financial/account.interface.d.ts +2 -1
- package/common/interfaces/financial/coin/coin.interface.d.ts +3 -2
- package/common/interfaces/financial/wallet.interface.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./type.enum"), exports);
|
|
18
18
|
__exportStar(require("./broker.enum"), exports);
|
|
19
|
+
__exportStar(require("./provider.enum"), exports);
|
|
19
20
|
__exportStar(require("./ownership.enum"), exports);
|
|
20
21
|
//# 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,gDAA8B;AAC9B,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/accounts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B;AAC9B,kDAAgC;AAChC,mDAAiC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountProvider = void 0;
|
|
4
|
+
var AccountProvider;
|
|
5
|
+
(function (AccountProvider) {
|
|
6
|
+
AccountProvider["Wenex"] = "wenex";
|
|
7
|
+
})(AccountProvider || (exports.AccountProvider = AccountProvider = {}));
|
|
8
|
+
//# sourceMappingURL=provider.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/accounts/provider.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,kCAAe,CAAA;AACjB,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoinCategory = void 0;
|
|
4
|
+
var CoinCategory;
|
|
5
|
+
(function (CoinCategory) {
|
|
6
|
+
CoinCategory["Coin"] = "coin";
|
|
7
|
+
CoinCategory["Token"] = "token";
|
|
8
|
+
})(CoinCategory || (exports.CoinCategory = CoinCategory = {}));
|
|
9
|
+
//# sourceMappingURL=category.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/category.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./type.enum"), exports);
|
|
18
18
|
__exportStar(require("./provider.enum"), exports);
|
|
19
|
+
__exportStar(require("./category.enum"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC"}
|
|
@@ -23,11 +23,12 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import type { Document } from 'mongoose';
|
|
26
|
+
import { AccountBroker, AccountOwnership, AccountProvider, AccountType } from '../../enums';
|
|
26
27
|
import { Core, Dto, MakeOptional } from '../common';
|
|
27
|
-
import { AccountBroker, AccountOwnership, AccountType } from '../../enums';
|
|
28
28
|
export interface Account extends Core {
|
|
29
29
|
type: AccountType;
|
|
30
30
|
broker: AccountBroker;
|
|
31
|
+
provider: AccountProvider;
|
|
31
32
|
ownership: AccountOwnership;
|
|
32
33
|
}
|
|
33
34
|
export type AccountDoc = Account & Document;
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import type { Document } from 'mongoose';
|
|
26
26
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
27
|
-
import { CoinProvider, CoinType } from '../../../enums';
|
|
28
27
|
import { CoinUnit, CoinUnitDto } from './unit.interface';
|
|
28
|
+
import { CoinCategory, CoinProvider, CoinType } from '../../../enums';
|
|
29
29
|
export interface Coin extends Core {
|
|
30
30
|
type: CoinType;
|
|
31
31
|
iso?: string;
|
|
32
32
|
sign?: string;
|
|
33
33
|
name?: string;
|
|
34
|
-
|
|
34
|
+
token?: string;
|
|
35
35
|
symbol?: string;
|
|
36
36
|
network?: string;
|
|
37
37
|
contract?: string;
|
|
@@ -39,6 +39,7 @@ export interface Coin extends Core {
|
|
|
39
39
|
subunit?: CoinUnit;
|
|
40
40
|
countries?: string[];
|
|
41
41
|
provider: CoinProvider;
|
|
42
|
+
category?: CoinCategory;
|
|
42
43
|
}
|
|
43
44
|
export type CoinDoc = Coin & Document;
|
|
44
45
|
export type CoinDto = Dto<MakeOptional<Omit<Coin, 'subunit'>, 'provider'>> & {
|
|
@@ -33,6 +33,8 @@ export interface Wallet extends Core {
|
|
|
33
33
|
internal?: number;
|
|
34
34
|
external?: number;
|
|
35
35
|
provider: WalletProvider;
|
|
36
|
+
address?: string;
|
|
37
|
+
private?: string;
|
|
36
38
|
}
|
|
37
39
|
export type WalletDoc = Wallet & Document;
|
|
38
40
|
export type WalletDto = Dto<MakeOptional<Wallet, 'provider'>>;
|