@xoxno/types 1.0.9 → 1.0.11
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/dist/entities/search-data/filter-query.dto.d.ts +2 -0
- package/dist/entities/search-data/filter-query.dto.js +12 -0
- package/dist/entities/token-data/query-prices.enum.d.ts +0 -27
- package/dist/entities/token-data/query-prices.enum.js +0 -32
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/package.json +3 -3
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.d.ts +0 -14
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.js +0 -19
- package/dist/entities/bober-battle/battle-sc-event-name.enum.d.ts +0 -9
- package/dist/entities/bober-battle/battle-sc-event-name.enum.js +0 -14
|
@@ -13,6 +13,10 @@ exports.FilterQueryDto = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
class FilterQueryDto {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.top = 25;
|
|
18
|
+
this.skip = 0;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
exports.FilterQueryDto = FilterQueryDto;
|
|
18
22
|
__decorate([
|
|
@@ -23,3 +27,11 @@ __decorate([
|
|
|
23
27
|
(0, class_validator_1.IsString)(),
|
|
24
28
|
__metadata("design:type", String)
|
|
25
29
|
], FilterQueryDto.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ required: false, type: 'integer' }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], FilterQueryDto.prototype, "top", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ required: false, type: 'integer' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], FilterQueryDto.prototype, "skip", void 0);
|
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
export declare enum QueryPricesSCEndpoints {
|
|
2
|
-
GET_PRICES = "getPrices",
|
|
3
|
-
GET_ASH_PRICES = "getAshPrices",
|
|
4
|
-
GET_ONE_PRICES = "getOneDexPrices",
|
|
5
|
-
GET_XEXCHANGE_PRICES = "getExchangePrices",
|
|
6
|
-
GET_MARKETS = "getMarkets",
|
|
7
|
-
GET_MARKETS_INFO = "getMarketsInfo",
|
|
8
|
-
GET_MARKET_MEMBERS = "getMarketMembers",
|
|
9
|
-
GET_MARKET_MEMBERS_INFO = "getMarketMembersInfo",
|
|
10
|
-
GET_MEMBER_INFO = "getMemberInfo",
|
|
11
|
-
GET_MARKET_MEMBER_INFO = "getMarketMemberInfo",
|
|
12
|
-
GET_MARKET_INFO = "getMarketInfo"
|
|
13
|
-
}
|
|
14
|
-
export declare enum OneDexEndpoints {
|
|
15
|
-
GET_MAIN_PAIR_TOKENS = "getMainPairTokens",
|
|
16
|
-
GET_LAST_PAIR_ID = "getLastPairId",
|
|
17
|
-
VIEW_PAIRS_PAGINATED = "viewPairsPaginated"
|
|
18
|
-
}
|
|
19
|
-
export declare enum AshSwapEndpoints {
|
|
20
|
-
GET_ASH_SWAP_STABLE_POOLS = "getAshSwapStablePools",
|
|
21
|
-
GET_ASH_SWAP_V2_POOLS = "getAshSwapV2Pools"
|
|
22
|
-
}
|
|
23
|
-
export declare enum DexType {
|
|
24
|
-
XExchange = "XExchange",
|
|
25
|
-
OneDex = "OneDex",
|
|
26
|
-
AshSwap = "AshSwap"
|
|
27
|
-
}
|
|
28
1
|
export interface QueryPricesResponse {
|
|
29
2
|
first_token_id: string;
|
|
30
3
|
second_token_id: string;
|
|
@@ -1,34 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DexType = exports.AshSwapEndpoints = exports.OneDexEndpoints = exports.QueryPricesSCEndpoints = void 0;
|
|
4
|
-
var QueryPricesSCEndpoints;
|
|
5
|
-
(function (QueryPricesSCEndpoints) {
|
|
6
|
-
QueryPricesSCEndpoints["GET_PRICES"] = "getPrices";
|
|
7
|
-
QueryPricesSCEndpoints["GET_ASH_PRICES"] = "getAshPrices";
|
|
8
|
-
QueryPricesSCEndpoints["GET_ONE_PRICES"] = "getOneDexPrices";
|
|
9
|
-
QueryPricesSCEndpoints["GET_XEXCHANGE_PRICES"] = "getExchangePrices";
|
|
10
|
-
QueryPricesSCEndpoints["GET_MARKETS"] = "getMarkets";
|
|
11
|
-
QueryPricesSCEndpoints["GET_MARKETS_INFO"] = "getMarketsInfo";
|
|
12
|
-
QueryPricesSCEndpoints["GET_MARKET_MEMBERS"] = "getMarketMembers";
|
|
13
|
-
QueryPricesSCEndpoints["GET_MARKET_MEMBERS_INFO"] = "getMarketMembersInfo";
|
|
14
|
-
QueryPricesSCEndpoints["GET_MEMBER_INFO"] = "getMemberInfo";
|
|
15
|
-
QueryPricesSCEndpoints["GET_MARKET_MEMBER_INFO"] = "getMarketMemberInfo";
|
|
16
|
-
QueryPricesSCEndpoints["GET_MARKET_INFO"] = "getMarketInfo";
|
|
17
|
-
})(QueryPricesSCEndpoints || (exports.QueryPricesSCEndpoints = QueryPricesSCEndpoints = {}));
|
|
18
|
-
var OneDexEndpoints;
|
|
19
|
-
(function (OneDexEndpoints) {
|
|
20
|
-
OneDexEndpoints["GET_MAIN_PAIR_TOKENS"] = "getMainPairTokens";
|
|
21
|
-
OneDexEndpoints["GET_LAST_PAIR_ID"] = "getLastPairId";
|
|
22
|
-
OneDexEndpoints["VIEW_PAIRS_PAGINATED"] = "viewPairsPaginated";
|
|
23
|
-
})(OneDexEndpoints || (exports.OneDexEndpoints = OneDexEndpoints = {}));
|
|
24
|
-
var AshSwapEndpoints;
|
|
25
|
-
(function (AshSwapEndpoints) {
|
|
26
|
-
AshSwapEndpoints["GET_ASH_SWAP_STABLE_POOLS"] = "getAshSwapStablePools";
|
|
27
|
-
AshSwapEndpoints["GET_ASH_SWAP_V2_POOLS"] = "getAshSwapV2Pools";
|
|
28
|
-
})(AshSwapEndpoints || (exports.AshSwapEndpoints = AshSwapEndpoints = {}));
|
|
29
|
-
var DexType;
|
|
30
|
-
(function (DexType) {
|
|
31
|
-
DexType["XExchange"] = "XExchange";
|
|
32
|
-
DexType["OneDex"] = "OneDex";
|
|
33
|
-
DexType["AshSwap"] = "AshSwap";
|
|
34
|
-
})(DexType || (exports.DexType = DexType = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -135,8 +135,6 @@ export * from './cosmos-db/documents/user/user-settings.doc';
|
|
|
135
135
|
export * from './entities/auth/auth-strategy.enum';
|
|
136
136
|
export * from './entities/auth/login-request.dto';
|
|
137
137
|
export * from './entities/auth/role.enum';
|
|
138
|
-
export * from './entities/bober-battle/battle-sc-endpoints.enum';
|
|
139
|
-
export * from './entities/bober-battle/battle-sc-event-name.enum';
|
|
140
138
|
export * from './entities/bober-battle/game-type';
|
|
141
139
|
export * from './entities/delegation-data/delegation-data-output';
|
|
142
140
|
export * from './entities/delegation-data/provider-data';
|
package/dist/index.js
CHANGED
|
@@ -151,8 +151,6 @@ __exportStar(require("./cosmos-db/documents/user/user-settings.doc"), exports);
|
|
|
151
151
|
__exportStar(require("./entities/auth/auth-strategy.enum"), exports);
|
|
152
152
|
__exportStar(require("./entities/auth/login-request.dto"), exports);
|
|
153
153
|
__exportStar(require("./entities/auth/role.enum"), exports);
|
|
154
|
-
__exportStar(require("./entities/bober-battle/battle-sc-endpoints.enum"), exports);
|
|
155
|
-
__exportStar(require("./entities/bober-battle/battle-sc-event-name.enum"), exports);
|
|
156
154
|
__exportStar(require("./entities/bober-battle/game-type"), exports);
|
|
157
155
|
__exportStar(require("./entities/delegation-data/delegation-data-output"), exports);
|
|
158
156
|
__exportStar(require("./entities/delegation-data/provider-data"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Shared types and utilities for XOXNO API.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
11
|
+
"build": "node generate-barrel.mjs && eslint 'src/index.ts' --fix && tsc",
|
|
12
12
|
"build:watch": "tsc --watch",
|
|
13
|
-
"prepublishOnly": "
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
14
|
"lint": "eslint 'src/**/*.ts'",
|
|
15
15
|
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
|
16
16
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum BoberBattleScEndpoints {
|
|
2
|
-
JOIN_GAME = "joinGame",
|
|
3
|
-
CANCEL_GAME = "cancelGame",
|
|
4
|
-
CREATE_GAME = "createGame",
|
|
5
|
-
ACTIVE_GAMES = "activeGames",// view
|
|
6
|
-
ALLOWED_TOKENS = "allowedTokens",
|
|
7
|
-
USER_GAMES = "userGames"
|
|
8
|
-
}
|
|
9
|
-
export declare enum BoberWheelScEndpoints {
|
|
10
|
-
JOIN_WHEEL = "joinWheel",
|
|
11
|
-
SPIN = "spin",
|
|
12
|
-
GET_CURRENT_GAME = "getCurrentGame",
|
|
13
|
-
GET_CONFIG = "getConfigs"
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BoberWheelScEndpoints = exports.BoberBattleScEndpoints = void 0;
|
|
4
|
-
var BoberBattleScEndpoints;
|
|
5
|
-
(function (BoberBattleScEndpoints) {
|
|
6
|
-
BoberBattleScEndpoints["JOIN_GAME"] = "joinGame";
|
|
7
|
-
BoberBattleScEndpoints["CANCEL_GAME"] = "cancelGame";
|
|
8
|
-
BoberBattleScEndpoints["CREATE_GAME"] = "createGame";
|
|
9
|
-
BoberBattleScEndpoints["ACTIVE_GAMES"] = "activeGames";
|
|
10
|
-
BoberBattleScEndpoints["ALLOWED_TOKENS"] = "allowedTokens";
|
|
11
|
-
BoberBattleScEndpoints["USER_GAMES"] = "userGames";
|
|
12
|
-
})(BoberBattleScEndpoints || (exports.BoberBattleScEndpoints = BoberBattleScEndpoints = {}));
|
|
13
|
-
var BoberWheelScEndpoints;
|
|
14
|
-
(function (BoberWheelScEndpoints) {
|
|
15
|
-
BoberWheelScEndpoints["JOIN_WHEEL"] = "joinWheel";
|
|
16
|
-
BoberWheelScEndpoints["SPIN"] = "spin";
|
|
17
|
-
BoberWheelScEndpoints["GET_CURRENT_GAME"] = "getCurrentGame";
|
|
18
|
-
BoberWheelScEndpoints["GET_CONFIG"] = "getConfigs";
|
|
19
|
-
})(BoberWheelScEndpoints || (exports.BoberWheelScEndpoints = BoberWheelScEndpoints = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BoberWheelScEventName = exports.BoberBattleScEventName = void 0;
|
|
4
|
-
var BoberBattleScEventName;
|
|
5
|
-
(function (BoberBattleScEventName) {
|
|
6
|
-
BoberBattleScEventName["NEW_GAME"] = "game_created";
|
|
7
|
-
BoberBattleScEventName["END_GAME"] = "game_ended";
|
|
8
|
-
BoberBattleScEventName["CANCEL_GAME"] = "game_cancel";
|
|
9
|
-
})(BoberBattleScEventName || (exports.BoberBattleScEventName = BoberBattleScEventName = {}));
|
|
10
|
-
var BoberWheelScEventName;
|
|
11
|
-
(function (BoberWheelScEventName) {
|
|
12
|
-
BoberWheelScEventName["JOIN_WHEEL"] = "player_joined";
|
|
13
|
-
BoberWheelScEventName["PICK_WINNER"] = "pick_winner";
|
|
14
|
-
})(BoberWheelScEventName || (exports.BoberWheelScEventName = BoberWheelScEventName = {}));
|