@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.
@@ -0,0 +1,4 @@
1
+ export declare enum CoinCategory {
2
+ Coin = "coin",
3
+ Token = "token"
4
+ }
@@ -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"}
@@ -1,2 +1,3 @@
1
1
  export * from './type.enum';
2
2
  export * from './provider.enum';
3
+ export * from './category.enum';
@@ -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
- alias?: string;
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'>> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",