@xoxno/types 1.0.21 → 1.0.23
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/common/statistics.d.ts +16 -0
- package/dist/common/statistics.js +27 -1
- package/dist/cosmos-db/cosmos-db-generic-filter.d.ts +2 -1
- package/dist/entities/search-data/search.dto.d.ts +14 -14
- package/dist/entities/search-data/search.dto.js +42 -37
- package/dist/entities/staking-data/staking-status-string.enum.d.ts +5 -0
- package/dist/entities/staking-data/staking-status-string.enum.js +9 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/requests/collection/drops-query.d.ts +1 -1
- package/dist/requests/collection/drops-query.js +2 -1
- package/dist/requests/collection/listings.d.ts +1 -1
- package/dist/requests/collection/listings.js +2 -1
- package/dist/requests/collection/query-global-offers.d.ts +3 -3
- package/dist/requests/collection/query-global-offers.js +8 -7
- package/dist/requests/nft-activity-data/nft-activity-data.d.ts +4 -0
- package/dist/requests/nft-data/offers.d.ts +4 -0
- package/dist/requests/nft-data/offers.js +8 -0
- package/dist/utils/order.d.ts +15 -0
- package/dist/utils/order.js +2 -0
- package/package.json +1 -1
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export declare class StatisticsTradeDataDto {
|
|
2
|
+
dayEgldVolume: number;
|
|
3
|
+
weekEgldVolume: number;
|
|
4
|
+
totalEgldVolume: number;
|
|
5
|
+
averageEgldPrice: number;
|
|
6
|
+
athEgldPrice: number;
|
|
7
|
+
athTxHash: string;
|
|
8
|
+
totalTrades: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class StatisticsMintDataDto {
|
|
11
|
+
totalMintEgldVolume: number;
|
|
12
|
+
weekMintEgldVolume: number;
|
|
13
|
+
dayMintEgldVolume: number;
|
|
14
|
+
}
|
|
1
15
|
export declare class StatisticsOtherDto {
|
|
2
16
|
followCount: number;
|
|
3
17
|
nftCount: number;
|
|
@@ -6,5 +20,7 @@ export declare class StatisticsOtherDto {
|
|
|
6
20
|
}
|
|
7
21
|
export declare class StatisticsDto {
|
|
8
22
|
other: StatisticsOtherDto;
|
|
23
|
+
tradeData: StatisticsTradeDataDto;
|
|
24
|
+
mintData?: StatisticsMintDataDto;
|
|
9
25
|
constructor(props?: Partial<StatisticsDto>);
|
|
10
26
|
}
|
|
@@ -9,8 +9,26 @@ 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.StatisticsDto = exports.StatisticsOtherDto = void 0;
|
|
12
|
+
exports.StatisticsDto = exports.StatisticsOtherDto = exports.StatisticsMintDataDto = exports.StatisticsTradeDataDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class StatisticsTradeDataDto {
|
|
15
|
+
}
|
|
16
|
+
exports.StatisticsTradeDataDto = StatisticsTradeDataDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({ example: 0 }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], StatisticsTradeDataDto.prototype, "dayEgldVolume", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ example: 116.67 }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], StatisticsTradeDataDto.prototype, "weekEgldVolume", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ example: 128123.25 }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], StatisticsTradeDataDto.prototype, "totalEgldVolume", void 0);
|
|
29
|
+
class StatisticsMintDataDto {
|
|
30
|
+
}
|
|
31
|
+
exports.StatisticsMintDataDto = StatisticsMintDataDto;
|
|
14
32
|
class StatisticsOtherDto {
|
|
15
33
|
constructor(props) {
|
|
16
34
|
Object.assign(this, props);
|
|
@@ -47,3 +65,11 @@ __decorate([
|
|
|
47
65
|
}),
|
|
48
66
|
__metadata("design:type", StatisticsOtherDto)
|
|
49
67
|
], StatisticsDto.prototype, "other", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({ type: StatisticsTradeDataDto }),
|
|
70
|
+
__metadata("design:type", StatisticsTradeDataDto)
|
|
71
|
+
], StatisticsDto.prototype, "tradeData", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)({ type: StatisticsMintDataDto, required: false }),
|
|
74
|
+
__metadata("design:type", StatisticsMintDataDto)
|
|
75
|
+
], StatisticsDto.prototype, "mintData", void 0);
|
|
@@ -8,10 +8,11 @@ export declare class RangeFilter<T> {
|
|
|
8
8
|
max?: number;
|
|
9
9
|
field?: LeafKeyPaths<T>;
|
|
10
10
|
}
|
|
11
|
+
export type IOrderBy<T, E = LeafKeyPaths<T>> = `${Extract<LeafKeyPaths<T>, E>} ${'asc' | 'desc'}`;
|
|
11
12
|
export declare class CosmosDbGenericFilter<T> {
|
|
12
13
|
filters: Record<string, object | boolean | string | string[] | number | number[] | RangeFilter<T>[] | NftMetadataAttributes[]>;
|
|
13
14
|
select?: (LeafKeyPaths<T> | keyof T)[];
|
|
14
|
-
orderBy?:
|
|
15
|
+
orderBy?: IOrderBy<T>[];
|
|
15
16
|
includeCount?: boolean;
|
|
16
17
|
strictSelect?: boolean;
|
|
17
18
|
top?: number;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
totalEgldVolume: number;
|
|
5
|
-
}
|
|
6
|
-
declare class OtherStatsDto {
|
|
7
|
-
nftCount: number;
|
|
8
|
-
followCount: number;
|
|
9
|
-
}
|
|
10
|
-
declare class StatisticsDto {
|
|
11
|
-
tradeData: TradeDataDto;
|
|
12
|
-
other: OtherStatsDto;
|
|
13
|
-
}
|
|
1
|
+
import { MetadataDto } from '../../requests/collection/listings';
|
|
2
|
+
import { NftMedia } from '../../cosmos-db/documents/token/nft-details.doc';
|
|
3
|
+
import { StatisticsDto } from '../../common/statistics';
|
|
14
4
|
declare class CollectionDto {
|
|
15
5
|
collection: string;
|
|
16
6
|
name: string;
|
|
@@ -40,11 +30,21 @@ declare class CreatorDto {
|
|
|
40
30
|
joinedDate: number;
|
|
41
31
|
profile: string;
|
|
42
32
|
}
|
|
33
|
+
declare class NftDto {
|
|
34
|
+
identifier: string;
|
|
35
|
+
name: string;
|
|
36
|
+
collection: string;
|
|
37
|
+
onSale: boolean;
|
|
38
|
+
url: string;
|
|
39
|
+
media: NftMedia;
|
|
40
|
+
wasProcessed: boolean;
|
|
41
|
+
metadata: MetadataDto;
|
|
42
|
+
}
|
|
43
43
|
declare class GlobalSearchResourcesDto {
|
|
44
44
|
collections: CollectionDto[];
|
|
45
45
|
users: UserDto[];
|
|
46
46
|
creators: CreatorDto[];
|
|
47
|
-
nft:
|
|
47
|
+
nft: NftDto[];
|
|
48
48
|
}
|
|
49
49
|
export declare class GlobalSearchResponseDto {
|
|
50
50
|
count: number;
|
|
@@ -13,40 +13,9 @@ exports.GlobalSearchResponseDto = void 0;
|
|
|
13
13
|
// DTO Type
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(0, swagger_1.ApiProperty)({ example: 0 }),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], TradeDataDto.prototype, "dayEgldVolume", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)({ example: 116.67 }),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], TradeDataDto.prototype, "weekEgldVolume", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)({ example: 128123.25 }),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], TradeDataDto.prototype, "totalEgldVolume", void 0);
|
|
30
|
-
class OtherStatsDto {
|
|
31
|
-
}
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)({ example: 10000 }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], OtherStatsDto.prototype, "nftCount", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, swagger_1.ApiProperty)({ example: 525 }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], OtherStatsDto.prototype, "followCount", void 0);
|
|
40
|
-
class StatisticsDto {
|
|
41
|
-
}
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, swagger_1.ApiProperty)({ type: TradeDataDto }),
|
|
44
|
-
__metadata("design:type", TradeDataDto)
|
|
45
|
-
], StatisticsDto.prototype, "tradeData", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, swagger_1.ApiProperty)({ type: OtherStatsDto }),
|
|
48
|
-
__metadata("design:type", OtherStatsDto)
|
|
49
|
-
], StatisticsDto.prototype, "other", void 0);
|
|
16
|
+
const listings_1 = require("../../requests/collection/listings");
|
|
17
|
+
const nft_details_doc_1 = require("../../cosmos-db/documents/token/nft-details.doc");
|
|
18
|
+
const statistics_1 = require("../../common/statistics");
|
|
50
19
|
class CollectionDto {
|
|
51
20
|
}
|
|
52
21
|
__decorate([
|
|
@@ -76,8 +45,8 @@ __decorate([
|
|
|
76
45
|
__metadata("design:type", String)
|
|
77
46
|
], CollectionDto.prototype, "type", void 0);
|
|
78
47
|
__decorate([
|
|
79
|
-
(0, swagger_1.ApiProperty)({ type: StatisticsDto }),
|
|
80
|
-
__metadata("design:type", StatisticsDto)
|
|
48
|
+
(0, swagger_1.ApiProperty)({ type: statistics_1.StatisticsDto }),
|
|
49
|
+
__metadata("design:type", statistics_1.StatisticsDto)
|
|
81
50
|
], CollectionDto.prototype, "statistics", void 0);
|
|
82
51
|
__decorate([
|
|
83
52
|
(0, swagger_1.ApiProperty)({ example: 3.1 }),
|
|
@@ -158,6 +127,42 @@ __decorate([
|
|
|
158
127
|
}),
|
|
159
128
|
__metadata("design:type", String)
|
|
160
129
|
], CreatorDto.prototype, "profile", void 0);
|
|
130
|
+
class NftDto {
|
|
131
|
+
}
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, swagger_1.ApiProperty)({ example: 'EAPES-8f3c1f-0209' }),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], NftDto.prototype, "identifier", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiProperty)({ example: 'EAPES' }),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], NftDto.prototype, "name", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({ example: 'EAPES-8f3c1f' }),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], NftDto.prototype, "collection", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
146
|
+
__metadata("design:type", Boolean)
|
|
147
|
+
], NftDto.prototype, "onSale", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, swagger_1.ApiProperty)({
|
|
150
|
+
example: 'https://media.elrond.com/nfts/asset/QmRP9FVznm1xxa3FEsDENXhafRDaRWY6LKQdg8GygHNHKw/520.png',
|
|
151
|
+
}),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], NftDto.prototype, "url", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, swagger_1.ApiProperty)({ type: nft_details_doc_1.NftMedia }),
|
|
156
|
+
__metadata("design:type", nft_details_doc_1.NftMedia)
|
|
157
|
+
], NftDto.prototype, "media", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
160
|
+
__metadata("design:type", Boolean)
|
|
161
|
+
], NftDto.prototype, "wasProcessed", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, swagger_1.ApiProperty)({ type: listings_1.MetadataDto }),
|
|
164
|
+
__metadata("design:type", listings_1.MetadataDto)
|
|
165
|
+
], NftDto.prototype, "metadata", void 0);
|
|
161
166
|
class GlobalSearchResourcesDto {
|
|
162
167
|
}
|
|
163
168
|
__decorate([
|
|
@@ -173,7 +178,7 @@ __decorate([
|
|
|
173
178
|
__metadata("design:type", Array)
|
|
174
179
|
], GlobalSearchResourcesDto.prototype, "creators", void 0);
|
|
175
180
|
__decorate([
|
|
176
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
181
|
+
(0, swagger_1.ApiProperty)({ type: NftDto, isArray: true }),
|
|
177
182
|
__metadata("design:type", Array)
|
|
178
183
|
], GlobalSearchResourcesDto.prototype, "nft", void 0);
|
|
179
184
|
class GlobalSearchResponseDto {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StakingStatus = void 0;
|
|
4
|
+
var StakingStatus;
|
|
5
|
+
(function (StakingStatus) {
|
|
6
|
+
StakingStatus["Staked"] = "staked";
|
|
7
|
+
StakingStatus["Unbounding"] = "unstaked";
|
|
8
|
+
StakingStatus["Available"] = "available";
|
|
9
|
+
})(StakingStatus || (exports.StakingStatus = StakingStatus = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -154,6 +154,7 @@ export * from './entities/staking-data/staking-data-type.enum';
|
|
|
154
154
|
export * from './entities/staking-data/staking-explore';
|
|
155
155
|
export * from './entities/staking-data/staking-issuing-type-string.enum';
|
|
156
156
|
export * from './entities/staking-data/staking-pool-type-string.enum';
|
|
157
|
+
export * from './entities/staking-data/staking-status-string.enum';
|
|
157
158
|
export * from './entities/staking-data/staking-summary.dto';
|
|
158
159
|
export * from './entities/staking-data/user-staking-summary.dto';
|
|
159
160
|
export * from './entities/token-data/fiat-tokens.enum';
|
|
@@ -224,6 +225,7 @@ export * from './requests/nft-data/nft-doc.filter';
|
|
|
224
225
|
export * from './requests/nft-data/nft-extra-attributes.type';
|
|
225
226
|
export * from './requests/nft-data/nft-offer-doc.filter';
|
|
226
227
|
export * from './requests/nft-data/nft-offers';
|
|
228
|
+
export * from './requests/nft-data/offers';
|
|
227
229
|
export * from './requests/nft-data/sign-data.dto';
|
|
228
230
|
export * from './requests/nft-data/sign-mintdto';
|
|
229
231
|
export * from './requests/nft-data/sign-withdraw.dto';
|
|
@@ -243,3 +245,4 @@ export * from './requests/user-data/tradesilvania.dto';
|
|
|
243
245
|
export * from './requests/user-data/user-network';
|
|
244
246
|
export * from './requests/user-data/verify-email.dto';
|
|
245
247
|
export * from './utils/generic';
|
|
248
|
+
export * from './utils/order';
|
package/dist/index.js
CHANGED
|
@@ -170,6 +170,7 @@ __exportStar(require("./entities/staking-data/staking-data-type.enum"), exports)
|
|
|
170
170
|
__exportStar(require("./entities/staking-data/staking-explore"), exports);
|
|
171
171
|
__exportStar(require("./entities/staking-data/staking-issuing-type-string.enum"), exports);
|
|
172
172
|
__exportStar(require("./entities/staking-data/staking-pool-type-string.enum"), exports);
|
|
173
|
+
__exportStar(require("./entities/staking-data/staking-status-string.enum"), exports);
|
|
173
174
|
__exportStar(require("./entities/staking-data/staking-summary.dto"), exports);
|
|
174
175
|
__exportStar(require("./entities/staking-data/user-staking-summary.dto"), exports);
|
|
175
176
|
__exportStar(require("./entities/token-data/fiat-tokens.enum"), exports);
|
|
@@ -240,6 +241,7 @@ __exportStar(require("./requests/nft-data/nft-doc.filter"), exports);
|
|
|
240
241
|
__exportStar(require("./requests/nft-data/nft-extra-attributes.type"), exports);
|
|
241
242
|
__exportStar(require("./requests/nft-data/nft-offer-doc.filter"), exports);
|
|
242
243
|
__exportStar(require("./requests/nft-data/nft-offers"), exports);
|
|
244
|
+
__exportStar(require("./requests/nft-data/offers"), exports);
|
|
243
245
|
__exportStar(require("./requests/nft-data/sign-data.dto"), exports);
|
|
244
246
|
__exportStar(require("./requests/nft-data/sign-mintdto"), exports);
|
|
245
247
|
__exportStar(require("./requests/nft-data/sign-withdraw.dto"), exports);
|
|
@@ -259,3 +261,4 @@ __exportStar(require("./requests/user-data/tradesilvania.dto"), exports);
|
|
|
259
261
|
__exportStar(require("./requests/user-data/user-network"), exports);
|
|
260
262
|
__exportStar(require("./requests/user-data/verify-email.dto"), exports);
|
|
261
263
|
__exportStar(require("./utils/generic"), exports);
|
|
264
|
+
__exportStar(require("./utils/order"), exports);
|
|
@@ -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.DropsQueryDto = void 0;
|
|
12
|
+
exports.DropsQueryDto = exports.DropResourceDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const tokenPayent_1 = require("../../common/tokenPayent");
|
|
15
15
|
const collection_info_dto_1 = require("./collection-info.dto");
|
|
@@ -33,6 +33,7 @@ __decorate([
|
|
|
33
33
|
], CreatorInfoDto.prototype, "profile", void 0);
|
|
34
34
|
class DropResourceDto {
|
|
35
35
|
}
|
|
36
|
+
exports.DropResourceDto = DropResourceDto;
|
|
36
37
|
__decorate([
|
|
37
38
|
(0, swagger_1.ApiProperty)({ type: tokenPayent_1.EgldOrEsdtTokenPayment, isArray: true }),
|
|
38
39
|
__metadata("design:type", Array)
|
|
@@ -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.ListingsResponseDto = void 0;
|
|
12
|
+
exports.ListingsResponseDto = exports.MetadataDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const nft_details_doc_1 = require("../../cosmos-db/documents/token/nft-details.doc");
|
|
15
15
|
class DensityDto {
|
|
@@ -38,6 +38,7 @@ __decorate([
|
|
|
38
38
|
], RarityDto.prototype, "rank", void 0);
|
|
39
39
|
class MetadataDto {
|
|
40
40
|
}
|
|
41
|
+
exports.MetadataDto = MetadataDto;
|
|
41
42
|
__decorate([
|
|
42
43
|
(0, swagger_1.ApiProperty)({ type: RarityDto }),
|
|
43
44
|
__metadata("design:type", RarityDto)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { OwnerDto } from '../../common/owner.dto';
|
|
2
2
|
import { NftOfferDoc } from '../../cosmos-db/documents/token/nft-offer.doc';
|
|
3
3
|
import { NftMetadataAttributes } from '../../cosmos-db/documents/token/nft-metadata-attributes';
|
|
4
|
-
declare const
|
|
5
|
-
declare class
|
|
4
|
+
declare const GlobalOfferDto_base: import("@nestjs/common").Type<Pick<NftOfferDoc, "timestamp" | "paymentToken" | "paymentTokenNonce" | "quantity" | "marketplace" | "collection" | "offerId" | "price" | "priceShort" | "isActive">>;
|
|
5
|
+
export declare class GlobalOfferDto extends GlobalOfferDto_base {
|
|
6
6
|
attributes: NftMetadataAttributes[];
|
|
7
7
|
owner: OwnerDto;
|
|
8
8
|
uniqueKey: string;
|
|
9
9
|
usdValue: number;
|
|
10
10
|
}
|
|
11
11
|
export declare class GlobalOffersDto {
|
|
12
|
-
resources:
|
|
12
|
+
resources: GlobalOfferDto[];
|
|
13
13
|
hasMoreResults: boolean;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
@@ -9,13 +9,13 @@ 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.GlobalOffersDto = void 0;
|
|
12
|
+
exports.GlobalOffersDto = exports.GlobalOfferDto = void 0;
|
|
13
13
|
// DTO Type
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const owner_dto_1 = require("../../common/owner.dto");
|
|
16
16
|
const nft_offer_doc_1 = require("../../cosmos-db/documents/token/nft-offer.doc");
|
|
17
17
|
const nft_metadata_attributes_1 = require("../../cosmos-db/documents/token/nft-metadata-attributes");
|
|
18
|
-
class
|
|
18
|
+
class GlobalOfferDto extends (0, swagger_1.PickType)(nft_offer_doc_1.NftOfferDoc, [
|
|
19
19
|
'offerId',
|
|
20
20
|
'collection',
|
|
21
21
|
'quantity',
|
|
@@ -28,27 +28,28 @@ class ResourceDto extends (0, swagger_1.PickType)(nft_offer_doc_1.NftOfferDoc, [
|
|
|
28
28
|
'isActive',
|
|
29
29
|
]) {
|
|
30
30
|
}
|
|
31
|
+
exports.GlobalOfferDto = GlobalOfferDto;
|
|
31
32
|
__decorate([
|
|
32
33
|
(0, swagger_1.ApiProperty)({ type: nft_metadata_attributes_1.NftMetadataAttributes, isArray: true }),
|
|
33
34
|
__metadata("design:type", Array)
|
|
34
|
-
],
|
|
35
|
+
], GlobalOfferDto.prototype, "attributes", void 0);
|
|
35
36
|
__decorate([
|
|
36
37
|
(0, swagger_1.ApiProperty)({ type: owner_dto_1.OwnerDto }),
|
|
37
38
|
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
38
|
-
],
|
|
39
|
+
], GlobalOfferDto.prototype, "owner", void 0);
|
|
39
40
|
__decorate([
|
|
40
41
|
(0, swagger_1.ApiProperty)({ example: 'VPRNFT-0a0ee5-156453-xoxno-globalOffer' }),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
43
|
+
], GlobalOfferDto.prototype, "uniqueKey", void 0);
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, swagger_1.ApiProperty)({ example: 29.143 }),
|
|
45
46
|
__metadata("design:type", Number)
|
|
46
|
-
],
|
|
47
|
+
], GlobalOfferDto.prototype, "usdValue", void 0);
|
|
47
48
|
class GlobalOffersDto {
|
|
48
49
|
}
|
|
49
50
|
exports.GlobalOffersDto = GlobalOffersDto;
|
|
50
51
|
__decorate([
|
|
51
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
52
|
+
(0, swagger_1.ApiProperty)({ type: GlobalOfferDto, isArray: true }),
|
|
52
53
|
__metadata("design:type", Array)
|
|
53
54
|
], GlobalOffersDto.prototype, "resources", void 0);
|
|
54
55
|
__decorate([
|
|
@@ -16,6 +16,10 @@ export interface NftActivityData {
|
|
|
16
16
|
price: number;
|
|
17
17
|
};
|
|
18
18
|
nftInfo?: Partial<NftDoc>;
|
|
19
|
+
originalTokenAmount?: string;
|
|
20
|
+
originalTokenAmountShort?: number;
|
|
21
|
+
originalTokenEgldValue?: number;
|
|
22
|
+
originalTokenUsdValue?: number;
|
|
19
23
|
}
|
|
20
24
|
export interface NftMvxBuiltIn {
|
|
21
25
|
collection: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferType = void 0;
|
|
4
|
+
var OfferType;
|
|
5
|
+
(function (OfferType) {
|
|
6
|
+
OfferType["Received"] = "received";
|
|
7
|
+
OfferType["Placed"] = "placed";
|
|
8
|
+
})(OfferType || (exports.OfferType = OfferType = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IOrderBy } from '../cosmos-db/cosmos-db-generic-filter';
|
|
2
|
+
import { NftActivityDoc } from '../cosmos-db/documents/activity/nft-activity.doc';
|
|
3
|
+
import { CollectionStatsDoc } from '../cosmos-db/documents/collection/stats';
|
|
4
|
+
import { NftDoc } from '../cosmos-db/documents/token/nft-details.doc';
|
|
5
|
+
import { CollectionProfileDto } from '../requests/collection/collections';
|
|
6
|
+
import { DropResourceDto } from '../requests/collection/drops-query';
|
|
7
|
+
import { GlobalOfferDto } from '../requests/collection/query-global-offers';
|
|
8
|
+
export type OrderByTradingActivity = IOrderBy<NftActivityDoc, 'activityData.egldValue' | 'timestamp' | 'activityData.originalTokenUsdValue'>;
|
|
9
|
+
type IFrames = 'day' | 'week' | 'month' | 'year';
|
|
10
|
+
export type CollectionStatsOrderBy = IOrderBy<CollectionStatsDoc, 'tradingStats.listedCount' | 'tradingStats.floorPrice' | 'tradingStats.totalVolume' | 'tradingStats.totalTrades' | 'tradingStats.allTimeHigh.price' | `tradingStats.${IFrames}.volume` | `tradingStats.${IFrames}.volumeMargin` | `tradingStats.${IFrames}.trades` | `tradingStats.${IFrames}.tradesMargin`>;
|
|
11
|
+
export type SearchOrderBy = IOrderBy<NftDoc, 'saleInfo.minBidShort' | 'saleInfo.maxBidShort' | 'saleInfo.currentBidShort' | 'saleInfo.timestamp' | 'saleInfo.deadline' | 'metadata.rarity.rank' | 'nonce'>;
|
|
12
|
+
export type DropsOrderBy = IOrderBy<DropResourceDto, 'startTime'>;
|
|
13
|
+
export type CollectionsOrderBy = IOrderBy<CollectionProfileDto, 'statistics.tradeData.weekEgldVolume' | 'statistics.tradeData.dayEgldVolume' | 'statistics.tradeData.totalEgldVolume' | 'statistics.tradeData.averageEgldPrice' | 'statistics.tradeData.athEgldPrice' | 'statistics.tradeData.totalTrades' | 'statistics.other.nftCount' | 'statistics.other.followCount'>;
|
|
14
|
+
export type GlobalOfferOrderBy = IOrderBy<GlobalOfferDto, 'priceShort' | 'offerId' | 'timestamp'>;
|
|
15
|
+
export {};
|