@xoxno/types 1.0.292 → 1.0.294

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,7 +1,7 @@
1
- import { EventReferralConfigCreateDto } from './event-referral-config-create.dto';
2
- declare type EventReferralConfigEditDto_base = Partial<EventReferralConfigCreateDto>;
1
+ import { EventReferralConfigDoc } from './event-referral-config.doc';
2
+ declare type EventReferralConfigEditDto_base = Partial<Pick<EventReferralConfigDoc, "name" | "isActive" | "appliedVoucher" | "rewardDetails">>;
3
3
  export declare type EventReferralConfigEditDto = EventReferralConfigEditDto_base ;
4
- declare const EventReferralConfigEditDtoNest_base: import("@nestjs/common").Type<Partial<EventReferralConfigCreateDto>>;
4
+ declare const EventReferralConfigEditDtoNest_base: import("@nestjs/common").Type<Partial<Pick<EventReferralConfigDoc, "name" | "isActive" | "appliedVoucher" | "rewardDetails">>>;
5
5
  export declare class EventReferralConfigEditDtoNest extends EventReferralConfigEditDtoNest_base {
6
6
  }
7
7
  export {};
@@ -2,8 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EventReferralConfigEditDto = void 0;
4
4
  const swagger_1 = require("@nestjs/swagger");
5
- const event_referral_config_create_dto_1 = require("./event-referral-config-create.dto");
6
- class EventReferralConfigEditDto extends (0, swagger_1.PartialType)(event_referral_config_create_dto_1.EventReferralConfigCreateDto) {
5
+ const event_referral_config_doc_1 = require("./event-referral-config.doc");
6
+ class EventReferralConfigEditDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(event_referral_config_doc_1.EventReferralConfigDoc, [
7
+ 'name',
8
+ 'isActive',
9
+ 'appliedVoucher',
10
+ 'rewardDetails',
11
+ ])) {
7
12
  }
8
13
  exports.EventReferralConfigEditDto = EventReferralConfigEditDto;
9
14
 
@@ -113,6 +113,7 @@ __decorate([
113
113
  type: String,
114
114
  }),
115
115
  (0, class_validator_1.IsString)(),
116
+ (0, class_validator_1.IsNotEmpty)(),
116
117
  __metadata("design:type", String)
117
118
  ], EventReferralConfigDoc.prototype, "name", void 0);
118
119
  __decorate([
@@ -1,4 +1,6 @@
1
- import { ActivePerpAssetCtxHydrated, ActiveSpotAssetCtxFull } from './response';
1
+ import { PerpCoinTypes } from '../../enums/perp.enum';
2
+ import { MarginTable } from './margin-table';
3
+ import { ActiveSpotAssetCtx, ActivePerpAssetCtx } from './response';
2
4
  export declare class PerpConfig {
3
5
  sigFigs: number;
4
6
  mantissa: number;
@@ -14,11 +16,28 @@ export declare class PerpCoin {
14
16
  againstCoin: PerpSingleCoin;
15
17
  config: PerpConfig[];
16
18
  }
19
+ export declare class ActiveSpotAssetCtxDoc extends ActiveSpotAssetCtx {
20
+ categories: PerpCoinTypes[];
21
+ }
22
+ export declare class ActivePerpAssetCtxDoc extends ActivePerpAssetCtx {
23
+ marginTableId: number;
24
+ categories: PerpCoinTypes[];
25
+ }
26
+ declare type ActivePerpAssetCtxDocHydrated_base = Omit<ActivePerpAssetCtxDoc, "marginTableId">;
27
+ export declare type ActivePerpAssetCtxDocHydrated = ActivePerpAssetCtxDocHydrated_base & {
28
+ marginTable: MarginTable;
29
+ maxLeverage: number;
30
+ };
31
+ declare const ActivePerpAssetCtxDocHydratedNest_base: import("@nestjs/common").Type<Omit<ActivePerpAssetCtxDoc, "marginTableId">>;
32
+ export declare class ActivePerpAssetCtxDocHydratedNest extends ActivePerpAssetCtxDocHydratedNest_base {
33
+ marginTable: MarginTable;
34
+ maxLeverage: number;
35
+ }
17
36
  export declare class PerpCoinExtended extends PerpCoin {
18
- ctx: ActivePerpAssetCtxHydrated;
37
+ ctx: ActivePerpAssetCtxDocHydrated;
19
38
  }
20
39
  export declare class PerpSpotCoinExtended extends PerpCoin {
21
- ctx: ActiveSpotAssetCtxFull;
40
+ ctx: ActiveSpotAssetCtxDoc;
22
41
  }
23
42
  type CommonSlimSlice = 'midPx' | 'markPx' | 'prevDayPx' | 'dayNtlVlm';
24
43
  declare type PerpSpotCoinExtendedSlimWs_base = Pick<PerpCoin, "symbol">;
@@ -9,8 +9,10 @@ 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.PerpCoinExtendedSlim = exports.PerpSpotCoinExtendedSlim = exports.PerpCoinExtendedSlimWs = exports.PerpSpotCoinExtendedSlimWs = 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.ActivePerpAssetCtxDocHydrated = exports.ActivePerpAssetCtxDoc = exports.ActiveSpotAssetCtxDoc = exports.PerpCoin = exports.PerpSingleCoin = exports.PerpConfig = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
+ const margin_table_1 = require("./margin-table");
15
+ const response_1 = require("./response");
14
16
  class PerpConfig {
15
17
  }
16
18
  exports.PerpConfig = PerpConfig;
@@ -56,6 +58,35 @@ __decorate([
56
58
  (0, swagger_1.ApiProperty)(),
57
59
  __metadata("design:type", Array)
58
60
  ], PerpCoin.prototype, "config", void 0);
61
+ class ActiveSpotAssetCtxDoc extends response_1.ActiveSpotAssetCtx {
62
+ }
63
+ exports.ActiveSpotAssetCtxDoc = ActiveSpotAssetCtxDoc;
64
+ __decorate([
65
+ (0, swagger_1.ApiProperty)(),
66
+ __metadata("design:type", Array)
67
+ ], ActiveSpotAssetCtxDoc.prototype, "categories", void 0);
68
+ class ActivePerpAssetCtxDoc extends response_1.ActivePerpAssetCtx {
69
+ }
70
+ exports.ActivePerpAssetCtxDoc = ActivePerpAssetCtxDoc;
71
+ __decorate([
72
+ (0, swagger_1.ApiProperty)(),
73
+ __metadata("design:type", Number)
74
+ ], ActivePerpAssetCtxDoc.prototype, "marginTableId", void 0);
75
+ __decorate([
76
+ (0, swagger_1.ApiProperty)(),
77
+ __metadata("design:type", Array)
78
+ ], ActivePerpAssetCtxDoc.prototype, "categories", void 0);
79
+ class ActivePerpAssetCtxDocHydrated extends (0, swagger_1.OmitType)(ActivePerpAssetCtxDoc, ['marginTableId']) {
80
+ }
81
+ exports.ActivePerpAssetCtxDocHydrated = ActivePerpAssetCtxDocHydrated;
82
+ __decorate([
83
+ (0, swagger_1.ApiProperty)(),
84
+ __metadata("design:type", margin_table_1.MarginTable)
85
+ ], ActivePerpAssetCtxDocHydrated.prototype, "marginTable", void 0);
86
+ __decorate([
87
+ (0, swagger_1.ApiProperty)(),
88
+ __metadata("design:type", Number)
89
+ ], ActivePerpAssetCtxDocHydrated.prototype, "maxLeverage", void 0);
59
90
  class PerpCoinExtended extends PerpCoin {
60
91
  }
61
92
  exports.PerpCoinExtended = PerpCoinExtended;
@@ -81,6 +112,8 @@ class PerpCoinExtendedSlim extends (0, swagger_1.OmitType)(PerpCoinExtendedSlimW
81
112
  }
82
113
  exports.PerpCoinExtendedSlim = PerpCoinExtendedSlim;
83
114
 
115
+ exports.ActivePerpAssetCtxDocHydratedNest = ActivePerpAssetCtxDocHydrated;
116
+
84
117
  exports.PerpSpotCoinExtendedSlimWsNest = PerpSpotCoinExtendedSlimWs;
85
118
 
86
119
  exports.PerpCoinExtendedSlimWsNest = PerpCoinExtendedSlimWs;
@@ -1,6 +1,5 @@
1
- import { PerpCoinTypes, PerpTradesSide } from '../../enums/perp.enum';
1
+ import { PerpTradesSide } from '../../enums/perp.enum';
2
2
  import { PerpCoinExtendedSlimWs, PerpSpotCoinExtendedSlimWs } from './coins';
3
- import { MarginTable } from './margin-table';
4
3
  import { ActiveAssetPerpEvent, ActiveAssetsPerpEvent, ActiveSpotAssetPerpEvent, ActiveSpotAssetsPerpEvent, L2BookPerpEvent, TradesPerpEvent } from './request';
5
4
  export declare class L2BookPerpResponseSingle {
6
5
  px: string;
@@ -41,23 +40,6 @@ export declare class ActivePerpAssetCtx extends AssetCtxCommon {
41
40
  oraclePx: string;
42
41
  impactTxs: string[];
43
42
  }
44
- export declare class ActiveSpotAssetCtxFull extends ActiveSpotAssetCtx {
45
- categories: PerpCoinTypes[];
46
- }
47
- export declare class ActivePerpAssetCtxFull extends ActivePerpAssetCtx {
48
- marginTableId: number;
49
- categories: PerpCoinTypes[];
50
- }
51
- declare type ActivePerpAssetCtxHydrated_base = Omit<ActivePerpAssetCtxFull, "marginTableId">;
52
- export declare type ActivePerpAssetCtxHydrated = ActivePerpAssetCtxHydrated_base & {
53
- marginTable: MarginTable;
54
- maxLeverage: number;
55
- };
56
- declare const ActivePerpAssetCtxHydratedNest_base: import("@nestjs/common").Type<Omit<ActivePerpAssetCtxFull, "marginTableId">>;
57
- export declare class ActivePerpAssetCtxHydratedNest extends ActivePerpAssetCtxHydratedNest_base {
58
- marginTable: MarginTable;
59
- maxLeverage: number;
60
- }
61
43
  export declare class ActiveSpotAssetPerpResponse extends ActiveSpotAssetPerpEvent {
62
44
  ctx: ActiveSpotAssetCtx;
63
45
  }
@@ -73,4 +55,3 @@ export declare class ActiveAssetsPerpResponse extends ActiveAssetsPerpEvent {
73
55
  export declare class PerpResponse {
74
56
  event: L2BookPerpResponse | TradesPerpResponse | ActiveSpotAssetPerpResponse | ActiveAssetPerpResponse | ActiveSpotAssetsPerpResponse | ActiveAssetsPerpResponse;
75
57
  }
76
- export {};
@@ -9,10 +9,9 @@ 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.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;
12
+ exports.PerpResponse = exports.ActiveAssetsPerpResponse = exports.ActiveSpotAssetsPerpResponse = exports.ActiveAssetPerpResponse = exports.ActiveSpotAssetPerpResponse = 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 margin_table_1 = require("./margin-table");
16
15
  const request_1 = require("./request");
17
16
  class L2BookPerpResponseSingle {
18
17
  }
@@ -135,35 +134,6 @@ __decorate([
135
134
  (0, swagger_1.ApiProperty)(),
136
135
  __metadata("design:type", Array)
137
136
  ], ActivePerpAssetCtx.prototype, "impactTxs", void 0);
138
- class ActiveSpotAssetCtxFull extends ActiveSpotAssetCtx {
139
- }
140
- exports.ActiveSpotAssetCtxFull = ActiveSpotAssetCtxFull;
141
- __decorate([
142
- (0, swagger_1.ApiProperty)(),
143
- __metadata("design:type", Array)
144
- ], ActiveSpotAssetCtxFull.prototype, "categories", void 0);
145
- class ActivePerpAssetCtxFull extends ActivePerpAssetCtx {
146
- }
147
- exports.ActivePerpAssetCtxFull = ActivePerpAssetCtxFull;
148
- __decorate([
149
- (0, swagger_1.ApiProperty)(),
150
- __metadata("design:type", Number)
151
- ], ActivePerpAssetCtxFull.prototype, "marginTableId", void 0);
152
- __decorate([
153
- (0, swagger_1.ApiProperty)(),
154
- __metadata("design:type", Array)
155
- ], ActivePerpAssetCtxFull.prototype, "categories", void 0);
156
- class ActivePerpAssetCtxHydrated extends (0, swagger_1.OmitType)(ActivePerpAssetCtxFull, ['marginTableId']) {
157
- }
158
- exports.ActivePerpAssetCtxHydrated = ActivePerpAssetCtxHydrated;
159
- __decorate([
160
- (0, swagger_1.ApiProperty)(),
161
- __metadata("design:type", margin_table_1.MarginTable)
162
- ], ActivePerpAssetCtxHydrated.prototype, "marginTable", void 0);
163
- __decorate([
164
- (0, swagger_1.ApiProperty)(),
165
- __metadata("design:type", Number)
166
- ], ActivePerpAssetCtxHydrated.prototype, "maxLeverage", void 0);
167
137
  class ActiveSpotAssetPerpResponse extends request_1.ActiveSpotAssetPerpEvent {
168
138
  }
169
139
  exports.ActiveSpotAssetPerpResponse = ActiveSpotAssetPerpResponse;
@@ -211,5 +181,3 @@ __decorate([
211
181
  exports.PerpResponse = PerpResponse = __decorate([
212
182
  (0, swagger_1.ApiExtraModels)(L2BookPerpResponse, TradesPerpResponse, ActiveSpotAssetPerpResponse, ActiveAssetPerpResponse, ActiveSpotAssetsPerpResponse, ActiveAssetsPerpResponse)
213
183
  ], PerpResponse);
214
-
215
- exports.ActivePerpAssetCtxHydratedNest = ActivePerpAssetCtxHydrated;
@@ -24,3 +24,18 @@ export declare enum PerpCoinTypes {
24
24
  L2 = "l2",
25
25
  MEME = "meme"
26
26
  }
27
+ export declare enum PerpChartIntervals {
28
+ ONE_MINUTE = "1",
29
+ THREE_MINUTES = "3",
30
+ FIVE_MINUTES = "5",
31
+ FIFTEEN_MINUTES = "15",
32
+ THIRTY_MINUTES = "30",
33
+ ONE_HOUR = "60",
34
+ TWO_HOURS = "120",
35
+ FOUR_HOURS = "240",
36
+ EIGHT_HOURS = "480",
37
+ TWELVE_HOURS = "720",
38
+ ONE_DAY = "1D",
39
+ THREE_DAYS = "3D",
40
+ ONE_MONTH = "1M"
41
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
3
+ exports.PerpChartIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
4
4
  var PerpEnum;
5
5
  (function (PerpEnum) {
6
6
  PerpEnum["L2BOOK"] = "l2Book";
@@ -30,3 +30,19 @@ var PerpCoinTypes;
30
30
  PerpCoinTypes["L2"] = "l2";
31
31
  PerpCoinTypes["MEME"] = "meme";
32
32
  })(PerpCoinTypes || (exports.PerpCoinTypes = PerpCoinTypes = {}));
33
+ var PerpChartIntervals;
34
+ (function (PerpChartIntervals) {
35
+ PerpChartIntervals["ONE_MINUTE"] = "1";
36
+ PerpChartIntervals["THREE_MINUTES"] = "3";
37
+ PerpChartIntervals["FIVE_MINUTES"] = "5";
38
+ PerpChartIntervals["FIFTEEN_MINUTES"] = "15";
39
+ PerpChartIntervals["THIRTY_MINUTES"] = "30";
40
+ PerpChartIntervals["ONE_HOUR"] = "60";
41
+ PerpChartIntervals["TWO_HOURS"] = "120";
42
+ PerpChartIntervals["FOUR_HOURS"] = "240";
43
+ PerpChartIntervals["EIGHT_HOURS"] = "480";
44
+ PerpChartIntervals["TWELVE_HOURS"] = "720";
45
+ PerpChartIntervals["ONE_DAY"] = "1D";
46
+ PerpChartIntervals["THREE_DAYS"] = "3D";
47
+ PerpChartIntervals["ONE_MONTH"] = "1M";
48
+ })(PerpChartIntervals || (exports.PerpChartIntervals = PerpChartIntervals = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.292",
3
+ "version": "1.0.294",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {