@xoxno/types 1.0.288 → 1.0.289

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.
@@ -20,21 +20,37 @@ export declare class PerpCoinExtended extends PerpCoin {
20
20
  export declare class PerpSpotCoinExtended extends PerpCoin {
21
21
  ctx: ActiveSpotAssetCtxFull;
22
22
  }
23
- type CommonSlimSlice = 'midPx' | 'markPx' | 'prevDayPx' | 'dayNtlVlm' | 'categories';
24
- declare type PerpCoinExtendedSlim_base = Pick<PerpCoin, "symbol">;
25
- export declare type PerpCoinExtendedSlim = PerpCoinExtendedSlim_base & {
26
- ctx: Pick<PerpCoinExtended['ctx'], CommonSlimSlice | 'funding' | 'openInterest' | 'maxLeverage'>;
23
+ type CommonSlimSlice = 'midPx' | 'markPx' | 'prevDayPx' | 'dayNtlVlm';
24
+ declare type PerpSpotCoinExtendedSlimWs_base = Pick<PerpCoin, "symbol">;
25
+ export declare type PerpSpotCoinExtendedSlimWs = PerpSpotCoinExtendedSlimWs_base & {
26
+ ctx: Pick<PerpSpotCoinExtended['ctx'], CommonSlimSlice | 'circulatingSupply'>;
27
27
  };
28
- declare const PerpCoinExtendedSlimNest_base: import("@nestjs/common").Type<Pick<PerpCoin, "symbol">>;
29
- export declare class PerpCoinExtendedSlimNest extends PerpCoinExtendedSlimNest_base {
30
- ctx: Pick<PerpCoinExtended['ctx'], CommonSlimSlice | 'funding' | 'openInterest' | 'maxLeverage'>;
28
+ declare const PerpSpotCoinExtendedSlimWsNest_base: import("@nestjs/common").Type<Pick<PerpCoin, "symbol">>;
29
+ export declare class PerpSpotCoinExtendedSlimWsNest extends PerpSpotCoinExtendedSlimWsNest_base {
30
+ ctx: Pick<PerpSpotCoinExtended['ctx'], CommonSlimSlice | 'circulatingSupply'>;
31
+ }
32
+ declare type PerpCoinExtendedSlimWs_base = Pick<PerpCoin, "symbol">;
33
+ export declare type PerpCoinExtendedSlimWs = PerpCoinExtendedSlimWs_base & {
34
+ ctx: Pick<PerpCoinExtended['ctx'], CommonSlimSlice | 'funding' | 'openInterest'>;
35
+ };
36
+ declare const PerpCoinExtendedSlimWsNest_base: import("@nestjs/common").Type<Pick<PerpCoin, "symbol">>;
37
+ export declare class PerpCoinExtendedSlimWsNest extends PerpCoinExtendedSlimWsNest_base {
38
+ ctx: Pick<PerpCoinExtended['ctx'], CommonSlimSlice | 'funding' | 'openInterest'>;
31
39
  }
32
- declare type PerpSpotCoinExtendedSlim_base = Pick<PerpCoin, "symbol">;
40
+ declare type PerpSpotCoinExtendedSlim_base = Omit<PerpSpotCoinExtendedSlimWs, "ctx">;
33
41
  export declare type PerpSpotCoinExtendedSlim = PerpSpotCoinExtendedSlim_base & {
34
- ctx: Pick<PerpSpotCoinExtended['ctx'], CommonSlimSlice | 'circulatingSupply'>;
42
+ ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpSpotCoinExtended['ctx'], 'categories'>;
35
43
  };
36
- declare const PerpSpotCoinExtendedSlimNest_base: import("@nestjs/common").Type<Pick<PerpCoin, "symbol">>;
44
+ declare const PerpSpotCoinExtendedSlimNest_base: import("@nestjs/common").Type<Omit<PerpSpotCoinExtendedSlimWs, "ctx">>;
37
45
  export declare class PerpSpotCoinExtendedSlimNest extends PerpSpotCoinExtendedSlimNest_base {
38
- ctx: Pick<PerpSpotCoinExtended['ctx'], CommonSlimSlice | 'circulatingSupply'>;
46
+ ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpSpotCoinExtended['ctx'], 'categories'>;
47
+ }
48
+ declare type PerpCoinExtendedSlim_base = Omit<PerpCoinExtendedSlimWs, "ctx">;
49
+ export declare type PerpCoinExtendedSlim = PerpCoinExtendedSlim_base & {
50
+ ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpCoinExtended['ctx'], 'maxLeverage' | 'categories'>;
51
+ };
52
+ declare const PerpCoinExtendedSlimNest_base: import("@nestjs/common").Type<Omit<PerpCoinExtendedSlimWs, "ctx">>;
53
+ export declare class PerpCoinExtendedSlimNest extends PerpCoinExtendedSlimNest_base {
54
+ ctx: PerpCoinExtendedSlimWs['ctx'] & Pick<PerpCoinExtended['ctx'], 'maxLeverage' | 'categories'>;
39
55
  }
40
56
  export {};
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PerpSpotCoinExtendedSlim = exports.PerpCoinExtendedSlim = exports.PerpSpotCoinExtended = exports.PerpCoinExtended = exports.PerpCoin = exports.PerpSingleCoin = exports.PerpConfig = void 0;
12
+ exports.PerpCoinExtendedSlim = exports.PerpSpotCoinExtendedSlim = exports.PerpCoinExtendedSlimWs = exports.PerpSpotCoinExtendedSlimWs = exports.PerpSpotCoinExtended = exports.PerpCoinExtended = exports.PerpCoin = exports.PerpSingleCoin = exports.PerpConfig = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  class PerpConfig {
15
15
  }
@@ -62,17 +62,29 @@ exports.PerpCoinExtended = PerpCoinExtended;
62
62
  class PerpSpotCoinExtended extends PerpCoin {
63
63
  }
64
64
  exports.PerpSpotCoinExtended = PerpSpotCoinExtended;
65
- class PerpCoinExtendedSlim extends (0, swagger_1.PickType)(PerpCoin, [
65
+ class PerpSpotCoinExtendedSlimWs extends (0, swagger_1.PickType)(PerpCoin, [
66
66
  'symbol',
67
67
  ]) {
68
68
  }
69
- exports.PerpCoinExtendedSlim = PerpCoinExtendedSlim;
70
- class PerpSpotCoinExtendedSlim extends (0, swagger_1.PickType)(PerpCoin, [
69
+ exports.PerpSpotCoinExtendedSlimWs = PerpSpotCoinExtendedSlimWs;
70
+ class PerpCoinExtendedSlimWs extends (0, swagger_1.PickType)(PerpCoin, [
71
71
  'symbol',
72
72
  ]) {
73
73
  }
74
+ exports.PerpCoinExtendedSlimWs = PerpCoinExtendedSlimWs;
75
+ class PerpSpotCoinExtendedSlim extends (0, swagger_1.OmitType)(PerpSpotCoinExtendedSlimWs, ['ctx']) {
76
+ }
74
77
  exports.PerpSpotCoinExtendedSlim = PerpSpotCoinExtendedSlim;
78
+ class PerpCoinExtendedSlim extends (0, swagger_1.OmitType)(PerpCoinExtendedSlimWs, [
79
+ 'ctx',
80
+ ]) {
81
+ }
82
+ exports.PerpCoinExtendedSlim = PerpCoinExtendedSlim;
75
83
 
76
- exports.PerpCoinExtendedSlimNest = PerpCoinExtendedSlim;
84
+ exports.PerpSpotCoinExtendedSlimWsNest = PerpSpotCoinExtendedSlimWs;
85
+
86
+ exports.PerpCoinExtendedSlimWsNest = PerpCoinExtendedSlimWs;
77
87
 
78
88
  exports.PerpSpotCoinExtendedSlimNest = PerpSpotCoinExtendedSlim;
89
+
90
+ exports.PerpCoinExtendedSlimNest = PerpCoinExtendedSlim;
@@ -1,7 +1,7 @@
1
1
  import { PerpCoinTypes, PerpTradesSide } from '../../enums/perp.enum';
2
- import { ActiveAssetPerpEvent, ActiveAssetsPerpEvent, ActiveSpotAssetPerpEvent, ActiveSpotAssetsPerpEvent, L2BookPerpEvent, TradesPerpEvent } from './request';
3
- import { PerpCoinExtendedSlim, PerpSpotCoinExtendedSlim } from './coins';
2
+ import { PerpCoinExtendedSlimWs, PerpSpotCoinExtendedSlimWs } from './coins';
4
3
  import { MarginTable } from './margin-table';
4
+ import { ActiveAssetPerpEvent, ActiveAssetsPerpEvent, ActiveSpotAssetPerpEvent, ActiveSpotAssetsPerpEvent, L2BookPerpEvent, TradesPerpEvent } from './request';
5
5
  export declare class L2BookPerpResponseSingle {
6
6
  px: string;
7
7
  sz: string;
@@ -64,10 +64,10 @@ export declare class ActiveAssetPerpResponse extends ActiveAssetPerpEvent {
64
64
  ctx: ActivePerpAssetCtx;
65
65
  }
66
66
  export declare class ActiveSpotAssetsPerpResponse extends ActiveSpotAssetsPerpEvent {
67
- tokens: PerpSpotCoinExtendedSlim[];
67
+ tokens: PerpSpotCoinExtendedSlimWs[];
68
68
  }
69
69
  export declare class ActiveAssetsPerpResponse extends ActiveAssetsPerpEvent {
70
- tokens: PerpCoinExtendedSlim[];
70
+ tokens: PerpCoinExtendedSlimWs[];
71
71
  }
72
72
  export declare class PerpResponse {
73
73
  event: L2BookPerpResponse | TradesPerpResponse | ActiveSpotAssetPerpResponse | ActiveAssetPerpResponse | ActiveSpotAssetsPerpResponse | ActiveAssetsPerpResponse;
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PerpResponse = exports.ActiveAssetsPerpResponse = exports.ActiveSpotAssetsPerpResponse = exports.ActiveAssetPerpResponse = exports.ActiveSpotAssetPerpResponse = exports.ActivePerpAssetCtxHydrated = exports.ActivePerpAssetCtxFull = exports.ActiveSpotAssetCtxFull = exports.ActivePerpAssetCtx = exports.ActiveSpotAssetCtx = exports.AssetCtxCommon = exports.TradesPerpResponse = exports.TradesPerpResponseSingle = exports.L2BookPerpResponse = exports.L2BookPerpResponseSingle = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const perp_enum_1 = require("../../enums/perp.enum");
15
- const request_1 = require("./request");
16
15
  const margin_table_1 = require("./margin-table");
16
+ const request_1 = require("./request");
17
17
  class L2BookPerpResponseSingle {
18
18
  }
19
19
  exports.L2BookPerpResponseSingle = L2BookPerpResponseSingle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.288",
3
+ "version": "1.0.289",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {