@xoxno/types 1.0.37 → 1.0.38

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.
@@ -14,6 +14,7 @@ exports.createCosmosPaginatedResponse = createCosmosPaginatedResponse;
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  class CosmosPaginatedResponse {
16
16
  constructor(resources, count, hasMoreResults) {
17
+ this.hasMoreResults = false;
17
18
  this.resources = [];
18
19
  this.resources = resources;
19
20
  this.count = count;
@@ -97,6 +97,9 @@ __decorate([
97
97
  __metadata("design:type", Number)
98
98
  ], ChatConversationDto.prototype, "unreadCount", void 0);
99
99
  class FetchChatConversationsSummaryDto {
100
+ constructor() {
101
+ this.hasMoreResults = false;
102
+ }
100
103
  }
101
104
  exports.FetchChatConversationsSummaryDto = FetchChatConversationsSummaryDto;
102
105
  __decorate([
@@ -144,6 +144,9 @@ __decorate([
144
144
  __metadata("design:type", String)
145
145
  ], ChatMessageDto.prototype, "chatName", void 0);
146
146
  class FetchChatMessagesDto {
147
+ constructor() {
148
+ this.hasMoreResults = false;
149
+ }
147
150
  }
148
151
  exports.FetchChatMessagesDto = FetchChatMessagesDto;
149
152
  __decorate([
@@ -25,10 +25,9 @@ export declare class NftOfferDoc {
25
25
  _ts: number;
26
26
  constructor(props?: Partial<NftOfferDoc>);
27
27
  }
28
- export declare class NftOfferProps extends NftOfferDoc {
29
- constructor(props?: Partial<NftOfferDoc>);
30
- usdValue?: number;
31
- floorPriceMargin?: number;
32
- floorPrice?: number;
33
- nftInfo?: Partial<NftProps>;
28
+ export declare class NftOfferDocHydrated extends NftOfferDoc {
29
+ usdValue: number;
30
+ floorPriceMargin: number;
31
+ floorPrice: number;
32
+ nftInfo: Partial<NftProps>;
34
33
  }
@@ -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.NftOfferProps = exports.NftOfferDoc = void 0;
12
+ exports.NftOfferDocHydrated = exports.NftOfferDoc = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const enums_1 = require("../../../common/enums");
15
15
  const nft_details_doc_1 = require("./nft-details.doc");
@@ -180,41 +180,34 @@ __decorate([
180
180
  }),
181
181
  __metadata("design:type", Number)
182
182
  ], NftOfferDoc.prototype, "_ts", void 0);
183
- class NftOfferProps extends NftOfferDoc {
184
- constructor(props) {
185
- super(props);
186
- }
183
+ class NftOfferDocHydrated extends NftOfferDoc {
187
184
  }
188
- exports.NftOfferProps = NftOfferProps;
185
+ exports.NftOfferDocHydrated = NftOfferDocHydrated;
189
186
  __decorate([
190
187
  (0, swagger_1.ApiProperty)({
191
188
  example: 150.75,
192
189
  description: 'USD value of the offer',
193
- required: false,
194
190
  }),
195
191
  __metadata("design:type", Number)
196
- ], NftOfferProps.prototype, "usdValue", void 0);
192
+ ], NftOfferDocHydrated.prototype, "usdValue", void 0);
197
193
  __decorate([
198
194
  (0, swagger_1.ApiProperty)({
199
195
  example: 0.15,
200
196
  description: 'Margin compared to floor price as percentage',
201
- required: false,
202
197
  }),
203
198
  __metadata("design:type", Number)
204
- ], NftOfferProps.prototype, "floorPriceMargin", void 0);
199
+ ], NftOfferDocHydrated.prototype, "floorPriceMargin", void 0);
205
200
  __decorate([
206
201
  (0, swagger_1.ApiProperty)({
207
202
  example: 1.25,
208
203
  description: 'Current floor price of the collection',
209
- required: false,
210
204
  }),
211
205
  __metadata("design:type", Number)
212
- ], NftOfferProps.prototype, "floorPrice", void 0);
206
+ ], NftOfferDocHydrated.prototype, "floorPrice", void 0);
213
207
  __decorate([
214
208
  (0, swagger_1.ApiProperty)({
215
209
  type: () => nft_details_doc_1.NftProps,
216
210
  description: 'NFT information related to the offer',
217
- required: false,
218
211
  }),
219
212
  __metadata("design:type", Object)
220
- ], NftOfferProps.prototype, "nftInfo", void 0);
213
+ ], NftOfferDocHydrated.prototype, "nftInfo", void 0);
@@ -199,6 +199,9 @@ __decorate([
199
199
  __metadata("design:type", Array)
200
200
  ], GlobalSearchResourcesDto.prototype, "nft", void 0);
201
201
  class GlobalSearchResponseDto {
202
+ constructor() {
203
+ this.hasMoreResults = false;
204
+ }
202
205
  }
203
206
  exports.GlobalSearchResponseDto = GlobalSearchResponseDto;
204
207
  __decorate([
@@ -83,6 +83,9 @@ __decorate([
83
83
  __metadata("design:type", CreatorInfoDto)
84
84
  ], DropResourceDto.prototype, "creatorInfo", void 0);
85
85
  class DropsQueryDto {
86
+ constructor() {
87
+ this.hasMoreResults = false;
88
+ }
86
89
  }
87
90
  exports.DropsQueryDto = DropsQueryDto;
88
91
  __decorate([
@@ -95,6 +95,9 @@ __decorate([
95
95
  __metadata("design:type", String)
96
96
  ], ActivityBodyDto.prototype, "chain", void 0);
97
97
  class ActivityHistoryDto {
98
+ constructor() {
99
+ this.hasMoreResults = false;
100
+ }
98
101
  }
99
102
  exports.ActivityHistoryDto = ActivityHistoryDto;
100
103
  __decorate([
@@ -46,6 +46,9 @@ __decorate([
46
46
  __metadata("design:type", Number)
47
47
  ], GlobalOfferDto.prototype, "usdValue", void 0);
48
48
  class GlobalOffersDto {
49
+ constructor() {
50
+ this.hasMoreResults = false;
51
+ }
49
52
  }
50
53
  exports.GlobalOffersDto = GlobalOffersDto;
51
54
  __decorate([
@@ -14,6 +14,9 @@ exports.ExploreCollectionsStatisticsDto = void 0;
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const collection_stats_1 = require("./collection-stats");
16
16
  class ExploreCollectionsStatisticsDto {
17
+ constructor() {
18
+ this.hasMoreResults = false;
19
+ }
17
20
  }
18
21
  exports.ExploreCollectionsStatisticsDto = ExploreCollectionsStatisticsDto;
19
22
  __decorate([
@@ -84,6 +84,9 @@ __decorate([
84
84
  __metadata("design:type", nft_details_doc_1.NftProps)
85
85
  ], OfferDto.prototype, "nftInfo", void 0);
86
86
  class GetSingleNftOfferResponseDto {
87
+ constructor() {
88
+ this.hasMoreResults = false;
89
+ }
87
90
  }
88
91
  exports.GetSingleNftOfferResponseDto = GetSingleNftOfferResponseDto;
89
92
  __decorate([
@@ -88,6 +88,9 @@ __decorate([
88
88
  __metadata("design:type", Object)
89
89
  ], OfferDto.prototype, "nftInfo", void 0);
90
90
  class GetUserOffersResponseDto {
91
+ constructor() {
92
+ this.hasMoreResults = false;
93
+ }
91
94
  }
92
95
  exports.GetUserOffersResponseDto = GetUserOffersResponseDto;
93
96
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",