@xoxno/types 1.0.118 → 1.0.120

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.
@@ -1,17 +1,19 @@
1
- export declare class TokenDataDoc {
2
- id: string;
1
+ declare class TokenDataDocBase {
3
2
  identifier: string;
4
- collection: string;
5
- dataType: string;
6
3
  decimals: number;
4
+ ticker: string;
7
5
  name: string;
8
- type: string;
9
- category: string[];
10
6
  svgUrl: string;
11
7
  pngUrl: string;
12
- ticker: string;
8
+ constructor(props?: Partial<TokenDataDocBase>);
9
+ }
10
+ export declare class TokenDataDoc extends TokenDataDocBase {
11
+ id: string;
12
+ collection: string;
13
+ dataType: string;
14
+ type: string;
15
+ category: string[];
13
16
  _ts: number;
14
- constructor(props?: Partial<TokenDataDoc>);
15
17
  }
16
18
  export declare class TokenDataDocHydrated extends TokenDataDoc {
17
19
  usdPrice: number;
@@ -23,7 +25,9 @@ export declare class SuiCoinObjectDto {
23
25
  digest: string;
24
26
  version: string;
25
27
  }
26
- export declare class TokenDataDocWithBalance extends TokenDataDocHydrated {
28
+ export declare class TokenDataDocWithBalance extends TokenDataDocBase {
29
+ usdPrice: number;
30
+ isAshSupported: boolean;
27
31
  nonce: number;
28
32
  balance: string;
29
33
  shortBalance: number;
@@ -32,3 +36,4 @@ export declare class TokenDataDocWithBalance extends TokenDataDocHydrated {
32
36
  weight: number;
33
37
  objects?: SuiCoinObjectDto[];
34
38
  }
39
+ export {};
@@ -11,12 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TokenDataDocWithBalance = exports.SuiCoinObjectDto = exports.TokenDataDocHydrated = exports.TokenDataDoc = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
- class TokenDataDoc {
14
+ class TokenDataDocBase {
15
15
  constructor(props) {
16
- this.category = ['userInventory'];
17
16
  Object.assign(this, props);
18
17
  }
19
18
  }
19
+ class TokenDataDoc extends TokenDataDocBase {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.category = ['userInventory'];
23
+ }
24
+ }
20
25
  exports.TokenDataDoc = TokenDataDoc;
21
26
  class TokenDataDocHydrated extends TokenDataDoc {
22
27
  }
@@ -32,9 +37,17 @@ __decorate([
32
37
  class SuiCoinObjectDto {
33
38
  }
34
39
  exports.SuiCoinObjectDto = SuiCoinObjectDto;
35
- class TokenDataDocWithBalance extends TokenDataDocHydrated {
40
+ class TokenDataDocWithBalance extends TokenDataDocBase {
36
41
  }
37
42
  exports.TokenDataDocWithBalance = TokenDataDocWithBalance;
43
+ __decorate([
44
+ (0, swagger_1.ApiProperty)({ example: 12.160648172030305 }),
45
+ __metadata("design:type", Number)
46
+ ], TokenDataDocWithBalance.prototype, "usdPrice", void 0);
47
+ __decorate([
48
+ (0, swagger_1.ApiProperty)({ example: false }),
49
+ __metadata("design:type", Boolean)
50
+ ], TokenDataDocWithBalance.prototype, "isAshSupported", void 0);
38
51
  __decorate([
39
52
  (0, swagger_1.ApiProperty)({ example: 0 }),
40
53
  __metadata("design:type", Number)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.118",
3
+ "version": "1.0.120",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {