@xoxno/types 1.0.9 → 1.0.12

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,3 +1,7 @@
1
+ import { ActivityChain } from '../../common/enums';
1
2
  export declare class FilterQueryDto {
2
3
  name: string;
4
+ top?: number;
5
+ skip?: number;
6
+ chain?: ActivityChain;
3
7
  }
@@ -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);
@@ -1,6 +1,11 @@
1
1
  import { CollectionProfileDoc } from '../../cosmos-db/documents/collection/profile';
2
2
  export declare class CollectionProfileDto extends CollectionProfileDoc {
3
3
  }
4
+ export declare class CollectionCosmosResponse {
5
+ resources: CollectionProfileDto[];
6
+ hasMoreResults: boolean;
7
+ count?: number;
8
+ }
4
9
  declare const CollectionProfileUpdateDto_base: import("@nestjs/common").Type<Pick<CollectionProfileDto, "description" | "profile" | "socials">>;
5
10
  export declare class CollectionProfileUpdateDto extends CollectionProfileUpdateDto_base {
6
11
  }
@@ -1,12 +1,40 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CollectionProfileUpdateDto = exports.CollectionProfileDto = void 0;
12
+ exports.CollectionProfileUpdateDto = exports.CollectionCosmosResponse = exports.CollectionProfileDto = void 0;
4
13
  const swagger_1 = require("@nestjs/swagger");
5
14
  const profile_1 = require("../../cosmos-db/documents/collection/profile");
6
15
  // Re-export CollectionProfileDoc as CollectionProfileDto for backward compatibility
7
16
  class CollectionProfileDto extends profile_1.CollectionProfileDoc {
8
17
  }
9
18
  exports.CollectionProfileDto = CollectionProfileDto;
19
+ class CollectionCosmosResponse {
20
+ constructor() {
21
+ this.resources = [];
22
+ this.hasMoreResults = false;
23
+ }
24
+ }
25
+ exports.CollectionCosmosResponse = CollectionCosmosResponse;
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ type: CollectionProfileDto, isArray: true }),
28
+ __metadata("design:type", Array)
29
+ ], CollectionCosmosResponse.prototype, "resources", void 0);
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ example: true, type: Boolean }),
32
+ __metadata("design:type", Boolean)
33
+ ], CollectionCosmosResponse.prototype, "hasMoreResults", void 0);
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({ example: 12, type: Number, required: false }),
36
+ __metadata("design:type", Number)
37
+ ], CollectionCosmosResponse.prototype, "count", void 0);
10
38
  class CollectionProfileUpdateDto extends (0, swagger_1.PickType)(CollectionProfileDto, [
11
39
  'socials',
12
40
  'description',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.9",
3
+ "version": "1.0.12",
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": "node generate-barrel.mjs && eslint 'src/index.ts' --fix && npm run build",
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,9 +0,0 @@
1
- export declare enum BoberBattleScEventName {
2
- NEW_GAME = "game_created",
3
- END_GAME = "game_ended",
4
- CANCEL_GAME = "game_cancel"
5
- }
6
- export declare enum BoberWheelScEventName {
7
- JOIN_WHEEL = "player_joined",
8
- PICK_WINNER = "pick_winner"
9
- }
@@ -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 = {}));