@xoxno/types 1.0.7 → 1.0.8
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/enums.d.ts +0 -21
- package/dist/common/enums.js +1 -23
- package/dist/cosmos-db/cosmos-db-generic-filter.d.ts +8 -3
- package/dist/cosmos-db/documents/activity/nft-activity.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/activity/nft-activity.doc.js +2 -2
- package/dist/cosmos-db/documents/notification/notification.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.d.ts +1 -1
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +1 -1
- package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +3 -3
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.d.ts +1 -6
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +4 -26
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.js +5 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.d.ts +1 -1
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.d.ts +14 -0
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.js +19 -0
- package/dist/entities/bober-battle/battle-sc-event-name.enum.d.ts +9 -0
- package/dist/entities/bober-battle/battle-sc-event-name.enum.js +14 -0
- package/dist/entities/bober-battle/game-type.d.ts +68 -0
- package/dist/entities/delegation-data/delegation-data-output.d.ts +10 -0
- package/dist/entities/delegation-data/delegation-data-output.js +2 -0
- package/dist/entities/delegation-data/provider-data.d.ts +37 -0
- package/dist/entities/delegation-data/provider-data.js +2 -0
- package/dist/entities/search-data/collection-data-search.type.d.ts +27 -0
- package/dist/entities/search-data/collection-data-search.type.js +2 -0
- package/dist/entities/search-data/event-guest-data-search.type.d.ts +12 -0
- package/dist/entities/search-data/event-guest-data-search.type.js +2 -0
- package/dist/entities/search-data/event-guest-invitation-search.type.d.ts +12 -0
- package/dist/entities/search-data/event-guest-invitation-search.type.js +2 -0
- package/dist/entities/search-data/filter-query.dto.d.ts +3 -0
- package/dist/entities/search-data/filter-query.dto.js +25 -0
- package/dist/entities/search-data/nft-data-search.type.d.ts +9 -0
- package/dist/entities/search-data/nft-data-search.type.js +2 -0
- package/dist/entities/search-data/search-index-name.enum.d.ts +8 -0
- package/dist/entities/search-data/search-index-name.enum.js +12 -0
- package/dist/entities/search-data/search.dto.d.ts +54 -0
- package/dist/entities/search-data/search.dto.js +193 -0
- package/dist/entities/search-data/user-data-search.type.d.ts +21 -0
- package/dist/entities/search-data/user-data-search.type.js +2 -0
- package/dist/entities/staking-data/owned-collections.dto.d.ts +4 -0
- package/dist/entities/staking-data/owned-collections.dto.js +35 -0
- package/dist/entities/staking-data/owned-services.dto.d.ts +11 -0
- package/dist/entities/staking-data/owned-services.dto.js +40 -0
- package/dist/entities/staking-data/staking-creator.doc.js +54 -0
- package/dist/entities/staking-data/staking-explore.d.ts +9 -0
- package/dist/entities/staking-data/staking-explore.js +41 -0
- package/dist/entities/staking-data/staking-summary.dto.d.ts +5 -0
- package/dist/entities/staking-data/staking-summary.dto.js +133 -0
- package/dist/entities/staking-data/user-staking-summary.dto.d.ts +16 -0
- package/dist/entities/staking-data/user-staking-summary.dto.js +83 -0
- package/dist/entities/token-data/token.dto.d.ts +15 -0
- package/dist/entities/token-data/token.dto.js +96 -0
- package/dist/entities/token-data/xoxno-liquid-stats.dto.d.ts +14 -0
- package/dist/entities/token-data/xoxno-liquid-stats.dto.js +95 -0
- package/dist/index.d.ts +88 -114
- package/dist/index.js +88 -126
- package/dist/requests/collection/collection-mint-profile.filter.d.ts +2 -1
- package/dist/requests/collection/collection-offers.filter.d.ts +3 -2
- package/dist/requests/collection/collection-stats.filter.d.ts +3 -2
- package/dist/requests/collection/query-activity.d.ts +1 -1
- package/dist/requests/lending/lending-market-profile.filter.d.ts +3 -2
- package/dist/requests/nft-activity-data/nft-activity.filter.d.ts +3 -2
- package/dist/requests/nft-data/nft-doc.filter.d.ts +3 -2
- package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +3 -2
- package/package.json +2 -2
- package/dist/common/kusto/trading-stats.d.ts +0 -28
- package/dist/common/kusto/trading-stats.js +0 -35
- package/dist/cosmos-db/documents/activity/event-source.enum.d.ts +0 -15
- package/dist/cosmos-db/documents/activity/event-source.enum.js +0 -19
- package/dist/cosmos-db/documents/activity/nft-activity-data.d.ts +0 -23
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.d.ts +0 -28
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.js +0 -36
- package/dist/cosmos-db/documents/staking/staking-creator.js +0 -13
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.d.ts +0 -3
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.js +0 -7
- package/dist/entities/token-data/known-mvx-tokens.enum.d.ts +0 -34
- package/dist/entities/token-data/known-mvx-tokens.enum.js +0 -32
- /package/dist/{cosmos-db/documents/activity/nft-activity-data.js → entities/bober-battle/game-type.js} +0 -0
- /package/dist/{cosmos-db/documents/staking/staking-creator.d.ts → entities/staking-data/staking-creator.doc.d.ts} +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-data-type.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-data-type.enum.js +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-issuing-type-string.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-issuing-type-string.enum.js +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-pool-type-string.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-pool-type-string.enum.js +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FilterQueryDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class FilterQueryDto {
|
|
16
|
+
}
|
|
17
|
+
exports.FilterQueryDto = FilterQueryDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'The search query',
|
|
21
|
+
example: '@mihai',
|
|
22
|
+
}),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], FilterQueryDto.prototype, "name", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NftMetadataAttributes } from '../../cosmos-db/documents/token/nft-metadata-attributes';
|
|
2
|
+
export interface NftDataSearchResult {
|
|
3
|
+
identifier: string;
|
|
4
|
+
collection: string;
|
|
5
|
+
name: string;
|
|
6
|
+
attributes: NftMetadataAttributes[];
|
|
7
|
+
onSale: boolean;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum SearchIndexName {
|
|
2
|
+
USER_DATA = "user-data",
|
|
3
|
+
COLLECTION_DATA = "collection-data",
|
|
4
|
+
NFT_DATA = "nft-data",
|
|
5
|
+
EVENT_GUEST_DATA = "event-guest-data",
|
|
6
|
+
EVENT_INVITATION_DATA = "event-invitation-data",
|
|
7
|
+
EVENT_PROFILE_DATA = "event-profile-data"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchIndexName = void 0;
|
|
4
|
+
var SearchIndexName;
|
|
5
|
+
(function (SearchIndexName) {
|
|
6
|
+
SearchIndexName["USER_DATA"] = "user-data";
|
|
7
|
+
SearchIndexName["COLLECTION_DATA"] = "collection-data";
|
|
8
|
+
SearchIndexName["NFT_DATA"] = "nft-data";
|
|
9
|
+
SearchIndexName["EVENT_GUEST_DATA"] = "event-guest-data";
|
|
10
|
+
SearchIndexName["EVENT_INVITATION_DATA"] = "event-invitation-data";
|
|
11
|
+
SearchIndexName["EVENT_PROFILE_DATA"] = "event-profile-data";
|
|
12
|
+
})(SearchIndexName || (exports.SearchIndexName = SearchIndexName = {}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare class TradeDataDto {
|
|
2
|
+
dayEgldVolume: number;
|
|
3
|
+
weekEgldVolume: number;
|
|
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
|
+
}
|
|
14
|
+
declare class CollectionDto {
|
|
15
|
+
collection: string;
|
|
16
|
+
name: string;
|
|
17
|
+
isVisible: boolean;
|
|
18
|
+
isVerified: boolean;
|
|
19
|
+
profile: string;
|
|
20
|
+
type: string;
|
|
21
|
+
statistics: StatisticsDto;
|
|
22
|
+
floorPrice: number;
|
|
23
|
+
}
|
|
24
|
+
declare class UserDto {
|
|
25
|
+
address: string;
|
|
26
|
+
herotag: string;
|
|
27
|
+
isVerified: boolean;
|
|
28
|
+
profile: string;
|
|
29
|
+
isCreator?: boolean;
|
|
30
|
+
addressTrimmed: string;
|
|
31
|
+
}
|
|
32
|
+
declare class CreatorDto {
|
|
33
|
+
address: string;
|
|
34
|
+
herotag: string;
|
|
35
|
+
addressTrimmed: string;
|
|
36
|
+
isCreator: boolean;
|
|
37
|
+
contractAddress: string;
|
|
38
|
+
name: string;
|
|
39
|
+
creatorTag: string;
|
|
40
|
+
joinedDate: number;
|
|
41
|
+
profile: string;
|
|
42
|
+
}
|
|
43
|
+
declare class GlobalSearchResourcesDto {
|
|
44
|
+
collections: CollectionDto[];
|
|
45
|
+
users: UserDto[];
|
|
46
|
+
creators: CreatorDto[];
|
|
47
|
+
nft: object[];
|
|
48
|
+
}
|
|
49
|
+
export declare class GlobalSearchResponseDto {
|
|
50
|
+
count: number;
|
|
51
|
+
hasMoreResults: boolean;
|
|
52
|
+
resources: GlobalSearchResourcesDto;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,193 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GlobalSearchResponseDto = void 0;
|
|
13
|
+
// DTO Type
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class TradeDataDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
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);
|
|
50
|
+
class CollectionDto {
|
|
51
|
+
}
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({ example: 'EAPES-8f3c1f' }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CollectionDto.prototype, "collection", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ example: 'EAPES' }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], CollectionDto.prototype, "name", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], CollectionDto.prototype, "isVisible", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], CollectionDto.prototype, "isVerified", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({
|
|
70
|
+
example: 'https://media.xoxno.com/collectionprofile/EAPES-8f3c1f/profilePicture.webp?ts=1691359925',
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CollectionDto.prototype, "profile", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiProperty)({ example: 'NonFungibleESDT' }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CollectionDto.prototype, "type", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({ type: StatisticsDto }),
|
|
80
|
+
__metadata("design:type", StatisticsDto)
|
|
81
|
+
], CollectionDto.prototype, "statistics", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiProperty)({ example: 3.1 }),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], CollectionDto.prototype, "floorPrice", void 0);
|
|
86
|
+
class UserDto {
|
|
87
|
+
}
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, swagger_1.ApiProperty)({
|
|
90
|
+
example: 'erd10hsfh2xhn4qzatc0vguxgfdu8aegurnep7zzyg0ht9ddw50g5xfq8ccu4q',
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], UserDto.prototype, "address", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)({ example: 'erd1...cu4q' }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], UserDto.prototype, "herotag", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, swagger_1.ApiProperty)({ example: false }),
|
|
100
|
+
__metadata("design:type", Boolean)
|
|
101
|
+
], UserDto.prototype, "isVerified", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, swagger_1.ApiProperty)({
|
|
104
|
+
example: 'https://media.xoxno.com/utils/defaultProfilePic.webp',
|
|
105
|
+
}),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], UserDto.prototype, "profile", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)({ example: true, required: false }),
|
|
110
|
+
(0, class_validator_1.IsOptional)(),
|
|
111
|
+
__metadata("design:type", Boolean)
|
|
112
|
+
], UserDto.prototype, "isCreator", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, swagger_1.ApiProperty)({ example: 'erd1...cu4q' }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], UserDto.prototype, "addressTrimmed", void 0);
|
|
117
|
+
class CreatorDto {
|
|
118
|
+
}
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)({
|
|
121
|
+
example: 'erd10hsfh2xhn4qzatc0vguxgfdu8aegurnep7zzyg0ht9ddw50g5xfq8ccu4q',
|
|
122
|
+
}),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], CreatorDto.prototype, "address", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, swagger_1.ApiProperty)({ example: 'erd1...cu4q' }),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], CreatorDto.prototype, "herotag", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, swagger_1.ApiProperty)({ example: 'erd1...cu4q' }),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], CreatorDto.prototype, "addressTrimmed", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
135
|
+
__metadata("design:type", Boolean)
|
|
136
|
+
], CreatorDto.prototype, "isCreator", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, swagger_1.ApiProperty)({
|
|
139
|
+
example: 'erd1qqqqqqqqqqqqqpgqfnmr778ef8z9mk79rcwzwdhywraahs7hys5sute79u',
|
|
140
|
+
}),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], CreatorDto.prototype, "contractAddress", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, swagger_1.ApiProperty)({ example: 'Ep1xStudio' }),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], CreatorDto.prototype, "name", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, swagger_1.ApiProperty)({ example: 'Ep1xStudio' }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], CreatorDto.prototype, "creatorTag", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, swagger_1.ApiProperty)({ example: 1643145426 }),
|
|
153
|
+
__metadata("design:type", Number)
|
|
154
|
+
], CreatorDto.prototype, "joinedDate", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, swagger_1.ApiProperty)({
|
|
157
|
+
example: 'https://media.xoxno.com/utils/defaultProfilePic.webp',
|
|
158
|
+
}),
|
|
159
|
+
__metadata("design:type", String)
|
|
160
|
+
], CreatorDto.prototype, "profile", void 0);
|
|
161
|
+
class GlobalSearchResourcesDto {
|
|
162
|
+
}
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, swagger_1.ApiProperty)({ type: CollectionDto, isArray: true }),
|
|
165
|
+
__metadata("design:type", Array)
|
|
166
|
+
], GlobalSearchResourcesDto.prototype, "collections", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, swagger_1.ApiProperty)({ type: UserDto, isArray: true }),
|
|
169
|
+
__metadata("design:type", Array)
|
|
170
|
+
], GlobalSearchResourcesDto.prototype, "users", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, swagger_1.ApiProperty)({ type: CreatorDto, isArray: true }),
|
|
173
|
+
__metadata("design:type", Array)
|
|
174
|
+
], GlobalSearchResourcesDto.prototype, "creators", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, swagger_1.ApiProperty)({ type: Object, isArray: true }),
|
|
177
|
+
__metadata("design:type", Array)
|
|
178
|
+
], GlobalSearchResourcesDto.prototype, "nft", void 0);
|
|
179
|
+
class GlobalSearchResponseDto {
|
|
180
|
+
}
|
|
181
|
+
exports.GlobalSearchResponseDto = GlobalSearchResponseDto;
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, swagger_1.ApiProperty)({ example: 30 }),
|
|
184
|
+
__metadata("design:type", Number)
|
|
185
|
+
], GlobalSearchResponseDto.prototype, "count", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
188
|
+
__metadata("design:type", Boolean)
|
|
189
|
+
], GlobalSearchResponseDto.prototype, "hasMoreResults", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, swagger_1.ApiProperty)({ type: GlobalSearchResourcesDto }),
|
|
192
|
+
__metadata("design:type", GlobalSearchResourcesDto)
|
|
193
|
+
], GlobalSearchResponseDto.prototype, "resources", void 0);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface UserDataSearchResult {
|
|
2
|
+
address: string;
|
|
3
|
+
herotag: null | string;
|
|
4
|
+
description: string;
|
|
5
|
+
isBanned: boolean;
|
|
6
|
+
isVerified: boolean;
|
|
7
|
+
profile: string;
|
|
8
|
+
banner: string;
|
|
9
|
+
joinedDate: number;
|
|
10
|
+
followCount: null | number;
|
|
11
|
+
isCreator: boolean;
|
|
12
|
+
creatorInfo: null | {
|
|
13
|
+
contractAddress: string;
|
|
14
|
+
name: string;
|
|
15
|
+
creatorTag: string;
|
|
16
|
+
description: string;
|
|
17
|
+
joinedDate: number;
|
|
18
|
+
profile: string;
|
|
19
|
+
banner: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OwnedCollectionsDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class OwnedCollectionsDto {
|
|
15
|
+
}
|
|
16
|
+
exports.OwnedCollectionsDto = OwnedCollectionsDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
description: 'List of registered collections',
|
|
20
|
+
example: [
|
|
21
|
+
'EGIRL-443b95',
|
|
22
|
+
'MONKEY-ac9bdf',
|
|
23
|
+
'BLZ-1d0442',
|
|
24
|
+
'MAFIALEGEN-826144',
|
|
25
|
+
],
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], OwnedCollectionsDto.prototype, "registered", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'List of collections available for registration',
|
|
32
|
+
example: ['XOXNO-a52799'],
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], OwnedCollectionsDto.prototype, "availableForRegister", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CollectionMintProfileDoc } from '../../cosmos-db/documents/collection/mintProfile';
|
|
2
|
+
import { StakingSummary } from '../../cosmos-db/documents/staking/staking-pool-doc';
|
|
3
|
+
import { EventProfileDoc } from '../../cosmos-db/documents/ticketing/event-profile.doc';
|
|
4
|
+
import { CreatorProfileDoc } from '../../cosmos-db/documents/user/user-creator-profile.doc';
|
|
5
|
+
export declare class OwnedServicesDto {
|
|
6
|
+
mintProfiles: CollectionMintProfileDoc[];
|
|
7
|
+
stakingPools: StakingSummary[];
|
|
8
|
+
events: EventProfileDoc[];
|
|
9
|
+
creatorProfile: CreatorProfileDoc;
|
|
10
|
+
address: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OwnedServicesDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const mintProfile_1 = require("../../cosmos-db/documents/collection/mintProfile");
|
|
15
|
+
const staking_pool_doc_1 = require("../../cosmos-db/documents/staking/staking-pool-doc");
|
|
16
|
+
const event_profile_doc_1 = require("../../cosmos-db/documents/ticketing/event-profile.doc");
|
|
17
|
+
const user_creator_profile_doc_1 = require("../../cosmos-db/documents/user/user-creator-profile.doc");
|
|
18
|
+
class OwnedServicesDto {
|
|
19
|
+
}
|
|
20
|
+
exports.OwnedServicesDto = OwnedServicesDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ type: mintProfile_1.CollectionMintProfileDoc, isArray: true }),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], OwnedServicesDto.prototype, "mintProfiles", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ type: staking_pool_doc_1.StakingSummary, isArray: true }),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], OwnedServicesDto.prototype, "stakingPools", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ type: event_profile_doc_1.EventProfileDoc, isArray: true }),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], OwnedServicesDto.prototype, "events", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ type: user_creator_profile_doc_1.CreatorProfileDoc }),
|
|
35
|
+
__metadata("design:type", user_creator_profile_doc_1.CreatorProfileDoc)
|
|
36
|
+
], OwnedServicesDto.prototype, "creatorProfile", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ example: 'erd1312', type: String }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], OwnedServicesDto.prototype, "address", void 0);
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StakingCreatorDoc = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const staking_data_type_enum_1 = require("./staking-data-type.enum");
|
|
15
|
+
class StakingCreatorDoc {
|
|
16
|
+
constructor(props) {
|
|
17
|
+
this.dataType = staking_data_type_enum_1.StakingDataType.Creator;
|
|
18
|
+
Object.assign(this, props);
|
|
19
|
+
this.id = `${this.address}-${this.dataType}`;
|
|
20
|
+
this.pk = `${this.address}`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.StakingCreatorDoc = StakingCreatorDoc;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
enum: staking_data_type_enum_1.StakingDataType,
|
|
27
|
+
enumName: 'StakingDataType',
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], StakingCreatorDoc.prototype, "dataType", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], StakingCreatorDoc.prototype, "address", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: Number, isArray: true }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], StakingCreatorDoc.prototype, "ownedPools", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({ type: String, isArray: true }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], StakingCreatorDoc.prototype, "ownedCollections", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], StakingCreatorDoc.prototype, "cutFee", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], StakingCreatorDoc.prototype, "id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], StakingCreatorDoc.prototype, "pk", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CollectionInfoDto } from '../../requests/collection/collection-info.dto';
|
|
2
|
+
export declare class StakingExploreDto {
|
|
3
|
+
collection: string;
|
|
4
|
+
activePools: number;
|
|
5
|
+
totalPoolStakedCount: number;
|
|
6
|
+
totalDelegatorCount: number;
|
|
7
|
+
rewardTickers: string[];
|
|
8
|
+
collectionInfo: CollectionInfoDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StakingExploreDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const collection_info_dto_1 = require("../../requests/collection/collection-info.dto");
|
|
15
|
+
class StakingExploreDto {
|
|
16
|
+
}
|
|
17
|
+
exports.StakingExploreDto = StakingExploreDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], StakingExploreDto.prototype, "collection", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], StakingExploreDto.prototype, "activePools", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], StakingExploreDto.prototype, "totalPoolStakedCount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], StakingExploreDto.prototype, "totalDelegatorCount", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ type: String, isArray: true }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], StakingExploreDto.prototype, "rewardTickers", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({ type: () => collection_info_dto_1.CollectionInfoDto }),
|
|
40
|
+
__metadata("design:type", collection_info_dto_1.CollectionInfoDto)
|
|
41
|
+
], StakingExploreDto.prototype, "collectionInfo", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StakingSummary } from '../../cosmos-db/documents/staking/staking-pool-doc';
|
|
2
|
+
declare const StakingPostDTO_base: import("@nestjs/common").Type<Pick<StakingSummary, "description" | "name">>;
|
|
3
|
+
export declare class StakingPostDTO extends StakingPostDTO_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|