@wenex/sdk 0.5.6 → 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/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/coin/coin.interface.d.ts +3 -2
- package/package.json +1 -1
|
@@ -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"}
|
|
@@ -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'>> & {
|