@xoxno/types 1.0.111 → 1.0.112
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/cosmos-db/documents/token/nft-details.doc.d.ts +3 -2
- package/dist/cosmos-db/documents/token/nft-details.doc.js +24 -9
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.d.ts +7 -0
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +4 -1
- package/dist/cosmos-db/documents/token/nft-metadata.d.ts +8 -3
- package/dist/cosmos-db/documents/token/nft-metadata.js +22 -8
- package/dist/index.d.ts +0 -60
- package/dist/requests/nft-data/nft-doc.filter.d.ts +2 -4
- package/dist/requests/nft-data/nft-doc.filter.js +8 -11
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { OwnerDto } from '../../../common/owner.dto';
|
|
|
2
2
|
import { ActivityChain, EsdtTokenSubType, EsdtTokenType } from '../../../enums/common.enum';
|
|
3
3
|
import { TokenDataType } from '../../../enums/token-data.enum';
|
|
4
4
|
import { ShortNftCollectionInfoDoc } from '../short/short-nft-collection-info.doc';
|
|
5
|
-
import { NftMetadata } from './nft-metadata';
|
|
5
|
+
import { NftMetadata, NftMetadataHydrated } from './nft-metadata';
|
|
6
6
|
import { NftSaleInfo, NftSaleInfoHydrated } from './nft-sale-info';
|
|
7
7
|
export declare class NFTEventData {
|
|
8
8
|
eventId: string;
|
|
@@ -41,7 +41,6 @@ declare class NftDocBase {
|
|
|
41
41
|
wasProcessed: boolean;
|
|
42
42
|
media?: NftMedia;
|
|
43
43
|
statistics?: NftStats;
|
|
44
|
-
metadata?: NftMetadata;
|
|
45
44
|
isTicket?: boolean;
|
|
46
45
|
eventData?: NFTEventData;
|
|
47
46
|
chain: ActivityChain;
|
|
@@ -57,6 +56,7 @@ export declare class NftDoc extends NftDocBase {
|
|
|
57
56
|
currentOwner?: string;
|
|
58
57
|
owner?: string;
|
|
59
58
|
saleInfo?: NftSaleInfo;
|
|
59
|
+
metadata?: NftMetadata;
|
|
60
60
|
}
|
|
61
61
|
export declare class ExtraProperties {
|
|
62
62
|
currentEpoch?: number;
|
|
@@ -67,6 +67,7 @@ export declare class NftDocHydrated extends NftDocBase {
|
|
|
67
67
|
currentOwner?: OwnerDto;
|
|
68
68
|
owner?: OwnerDto;
|
|
69
69
|
saleInfo?: NftSaleInfoHydrated;
|
|
70
|
+
metadata?: NftMetadataHydrated;
|
|
70
71
|
collectionInfo: ShortNftCollectionInfoDoc;
|
|
71
72
|
balance?: number;
|
|
72
73
|
balanceLong?: string;
|
|
@@ -84,7 +84,6 @@ class NftDocBase {
|
|
|
84
84
|
constructor(props) {
|
|
85
85
|
this.dataType = token_data_enum_1.TokenDataType.Nft;
|
|
86
86
|
this.wasProcessed = false;
|
|
87
|
-
this.metadata = { attributes: [] };
|
|
88
87
|
this.isTicket = false;
|
|
89
88
|
this.chain = common_enum_1.ActivityChain.MVX;
|
|
90
89
|
this.onSale = false;
|
|
@@ -233,14 +232,6 @@ __decorate([
|
|
|
233
232
|
}),
|
|
234
233
|
__metadata("design:type", NftStats)
|
|
235
234
|
], NftDocBase.prototype, "statistics", void 0);
|
|
236
|
-
__decorate([
|
|
237
|
-
(0, swagger_1.ApiProperty)({
|
|
238
|
-
type: nft_metadata_1.NftMetadata,
|
|
239
|
-
required: false,
|
|
240
|
-
description: 'The metadata of the NFT',
|
|
241
|
-
}),
|
|
242
|
-
__metadata("design:type", nft_metadata_1.NftMetadata)
|
|
243
|
-
], NftDocBase.prototype, "metadata", void 0);
|
|
244
235
|
__decorate([
|
|
245
236
|
(0, swagger_1.ApiProperty)({
|
|
246
237
|
type: Boolean,
|
|
@@ -309,6 +300,10 @@ __decorate([
|
|
|
309
300
|
__metadata("design:type", Number)
|
|
310
301
|
], NftDocBase.prototype, "_ts", void 0);
|
|
311
302
|
class NftDoc extends NftDocBase {
|
|
303
|
+
constructor() {
|
|
304
|
+
super(...arguments);
|
|
305
|
+
this.metadata = { attributes: [] };
|
|
306
|
+
}
|
|
312
307
|
}
|
|
313
308
|
exports.NftDoc = NftDoc;
|
|
314
309
|
__decorate([
|
|
@@ -343,6 +338,14 @@ __decorate([
|
|
|
343
338
|
}),
|
|
344
339
|
__metadata("design:type", nft_sale_info_1.NftSaleInfo)
|
|
345
340
|
], NftDoc.prototype, "saleInfo", void 0);
|
|
341
|
+
__decorate([
|
|
342
|
+
(0, swagger_1.ApiProperty)({
|
|
343
|
+
type: nft_metadata_1.NftMetadata,
|
|
344
|
+
required: false,
|
|
345
|
+
description: 'The metadata of the NFT',
|
|
346
|
+
}),
|
|
347
|
+
__metadata("design:type", nft_metadata_1.NftMetadata)
|
|
348
|
+
], NftDoc.prototype, "metadata", void 0);
|
|
346
349
|
class ExtraProperties {
|
|
347
350
|
}
|
|
348
351
|
exports.ExtraProperties = ExtraProperties;
|
|
@@ -361,6 +364,10 @@ __decorate([
|
|
|
361
364
|
__metadata("design:type", Number)
|
|
362
365
|
], ExtraProperties.prototype, "level", void 0);
|
|
363
366
|
class NftDocHydrated extends NftDocBase {
|
|
367
|
+
constructor() {
|
|
368
|
+
super(...arguments);
|
|
369
|
+
this.metadata = { attributes: [] };
|
|
370
|
+
}
|
|
364
371
|
}
|
|
365
372
|
exports.NftDocHydrated = NftDocHydrated;
|
|
366
373
|
__decorate([
|
|
@@ -395,6 +402,14 @@ __decorate([
|
|
|
395
402
|
}),
|
|
396
403
|
__metadata("design:type", nft_sale_info_1.NftSaleInfoHydrated)
|
|
397
404
|
], NftDocHydrated.prototype, "saleInfo", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
(0, swagger_1.ApiProperty)({
|
|
407
|
+
type: nft_metadata_1.NftMetadataHydrated,
|
|
408
|
+
required: false,
|
|
409
|
+
description: 'The metadata of the NFT',
|
|
410
|
+
}),
|
|
411
|
+
__metadata("design:type", nft_metadata_1.NftMetadataHydrated)
|
|
412
|
+
], NftDocHydrated.prototype, "metadata", void 0);
|
|
398
413
|
__decorate([
|
|
399
414
|
(0, swagger_1.ApiProperty)({
|
|
400
415
|
type: short_nft_collection_info_doc_1.ShortNftCollectionInfoDoc,
|
|
@@ -3,3 +3,10 @@ export declare class NftMetadataAttributes {
|
|
|
3
3
|
value: string;
|
|
4
4
|
constructor(props?: Partial<NftMetadataAttributes>);
|
|
5
5
|
}
|
|
6
|
+
export declare class NftMetadataAttributesHydrated extends NftMetadataAttributes {
|
|
7
|
+
occurance: number;
|
|
8
|
+
frequency: number;
|
|
9
|
+
floorPrice: number;
|
|
10
|
+
onSaleCount: number;
|
|
11
|
+
usdValue: number;
|
|
12
|
+
}
|
|
@@ -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.NftMetadataAttributes = void 0;
|
|
12
|
+
exports.NftMetadataAttributesHydrated = exports.NftMetadataAttributes = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
class NftMetadataAttributes {
|
|
15
15
|
constructor(props) {
|
|
@@ -26,3 +26,6 @@ __decorate([
|
|
|
26
26
|
(0, swagger_1.ApiProperty)({ required: true, type: String, example: 'Black' }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], NftMetadataAttributes.prototype, "value", void 0);
|
|
29
|
+
class NftMetadataAttributesHydrated extends NftMetadataAttributes {
|
|
30
|
+
}
|
|
31
|
+
exports.NftMetadataAttributesHydrated = NftMetadataAttributesHydrated;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { NftMetadataAttributes } from './nft-metadata-attributes';
|
|
1
|
+
import { NftMetadataAttributes, NftMetadataAttributesHydrated } from './nft-metadata-attributes';
|
|
2
2
|
declare class Rarity {
|
|
3
3
|
rank: number;
|
|
4
4
|
rarityScore?: number;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
declare class NftMetadataBase {
|
|
7
7
|
description?: string;
|
|
8
|
-
attributes?: NftMetadataAttributes[];
|
|
9
8
|
rarity?: Rarity;
|
|
10
9
|
extraAttributes?: Record<string, unknown>[];
|
|
11
10
|
constructor(props?: Partial<NftMetadata>);
|
|
12
11
|
}
|
|
12
|
+
export declare class NftMetadata extends NftMetadataBase {
|
|
13
|
+
attributes?: NftMetadataAttributes[];
|
|
14
|
+
}
|
|
15
|
+
export declare class NftMetadataHydrated extends NftMetadataBase {
|
|
16
|
+
attributes?: NftMetadataAttributesHydrated[];
|
|
17
|
+
}
|
|
13
18
|
export {};
|
|
@@ -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.NftMetadata = void 0;
|
|
12
|
+
exports.NftMetadataHydrated = exports.NftMetadata = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const nft_metadata_attributes_1 = require("./nft-metadata-attributes");
|
|
15
15
|
class Rarity {
|
|
@@ -29,12 +29,11 @@ __decorate([
|
|
|
29
29
|
}),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], Rarity.prototype, "rarityScore", void 0);
|
|
32
|
-
class
|
|
32
|
+
class NftMetadataBase {
|
|
33
33
|
constructor(props) {
|
|
34
34
|
Object.assign(this, props);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.NftMetadata = NftMetadata;
|
|
38
37
|
__decorate([
|
|
39
38
|
(0, swagger_1.ApiProperty)({
|
|
40
39
|
required: false,
|
|
@@ -42,7 +41,18 @@ __decorate([
|
|
|
42
41
|
description: 'Description of an asset',
|
|
43
42
|
}),
|
|
44
43
|
__metadata("design:type", String)
|
|
45
|
-
],
|
|
44
|
+
], NftMetadataBase.prototype, "description", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({
|
|
47
|
+
required: false,
|
|
48
|
+
type: Rarity,
|
|
49
|
+
description: 'The rarity info about an asset',
|
|
50
|
+
}),
|
|
51
|
+
__metadata("design:type", Rarity)
|
|
52
|
+
], NftMetadataBase.prototype, "rarity", void 0);
|
|
53
|
+
class NftMetadata extends NftMetadataBase {
|
|
54
|
+
}
|
|
55
|
+
exports.NftMetadata = NftMetadata;
|
|
46
56
|
__decorate([
|
|
47
57
|
(0, swagger_1.ApiProperty)({
|
|
48
58
|
required: false,
|
|
@@ -52,11 +62,15 @@ __decorate([
|
|
|
52
62
|
}),
|
|
53
63
|
__metadata("design:type", Array)
|
|
54
64
|
], NftMetadata.prototype, "attributes", void 0);
|
|
65
|
+
class NftMetadataHydrated extends NftMetadataBase {
|
|
66
|
+
}
|
|
67
|
+
exports.NftMetadataHydrated = NftMetadataHydrated;
|
|
55
68
|
__decorate([
|
|
56
69
|
(0, swagger_1.ApiProperty)({
|
|
57
70
|
required: false,
|
|
58
|
-
|
|
59
|
-
|
|
71
|
+
isArray: true,
|
|
72
|
+
type: nft_metadata_attributes_1.NftMetadataAttributesHydrated,
|
|
73
|
+
description: 'The list of attributes for this asset',
|
|
60
74
|
}),
|
|
61
|
-
__metadata("design:type",
|
|
62
|
-
],
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], NftMetadataHydrated.prototype, "attributes", void 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -153,66 +153,6 @@ export * from './entities/web2user-data/web2user-wallet.dto';
|
|
|
153
153
|
export * from './entities/web2user-data/web2user-wallet';
|
|
154
154
|
export * from './entities/web2user-data/web2user.doc';
|
|
155
155
|
export * from './entities/xoxno-liquid-egld-sc/provider.dto';
|
|
156
|
-
export * from './enums/auth-strategy.enum';
|
|
157
|
-
export * from './enums/azure-ws-event-name.enum';
|
|
158
|
-
export * from './enums/azure-ws-hub-name.enum';
|
|
159
|
-
export * from './enums/binance.enum';
|
|
160
|
-
export * from './enums/bober-battle-activity.enum';
|
|
161
|
-
export * from './enums/chat-data-type.enum';
|
|
162
|
-
export * from './enums/chat-message-content-type.enum';
|
|
163
|
-
export * from './enums/collection.enum';
|
|
164
|
-
export * from './enums/common.enum';
|
|
165
|
-
export * from './enums/cosmos-db-container.enum';
|
|
166
|
-
export * from './enums/event-category.enum';
|
|
167
|
-
export * from './enums/event-guest-status.enum';
|
|
168
|
-
export * from './enums/event-invitation-status.enum';
|
|
169
|
-
export * from './enums/event-question-answer-type.enum';
|
|
170
|
-
export * from './enums/event-referral-config.doc';
|
|
171
|
-
export * from './enums/event-scan-status.enum';
|
|
172
|
-
export * from './enums/event-source.enum';
|
|
173
|
-
export * from './enums/event-user-role.doc';
|
|
174
|
-
export * from './enums/event-user-roles.enum';
|
|
175
|
-
export * from './enums/external-payment-status.enum';
|
|
176
|
-
export * from './enums/fiat-tokens.enum';
|
|
177
|
-
export * from './enums/kusto-db.enum';
|
|
178
|
-
export * from './enums/lending-data-type.enum';
|
|
179
|
-
export * from './enums/lending-position-type.enum';
|
|
180
|
-
export * from './enums/lending.enum';
|
|
181
|
-
export * from './enums/linked-account-type.enum';
|
|
182
|
-
export * from './enums/marketplace-activity.enum';
|
|
183
|
-
export * from './enums/mobile-device.enum';
|
|
184
|
-
export * from './enums/nft-activity-type.enum';
|
|
185
|
-
export * from './enums/nft-extra-attributes.enum';
|
|
186
|
-
export * from './enums/notification-asset-type.enum';
|
|
187
|
-
export * from './enums/notification-data-type.enum';
|
|
188
|
-
export * from './enums/notification-template.enum';
|
|
189
|
-
export * from './enums/offers.enum';
|
|
190
|
-
export * from './enums/order-by-column.enum';
|
|
191
|
-
export * from './enums/payment-provider.enum';
|
|
192
|
-
export * from './enums/purchase-type.enum';
|
|
193
|
-
export * from './enums/push-notification.enum';
|
|
194
|
-
export * from './enums/role.enum';
|
|
195
|
-
export * from './enums/search-index-name.enum';
|
|
196
|
-
export * from './enums/staking-data-type.enum';
|
|
197
|
-
export * from './enums/staking-issuing-type-string.enum';
|
|
198
|
-
export * from './enums/staking-pool-type-string.enum';
|
|
199
|
-
export * from './enums/staking-status-string.enum';
|
|
200
|
-
export * from './enums/tag-priority.enum';
|
|
201
|
-
export * from './enums/ticketing-data-type.enum';
|
|
202
|
-
export * from './enums/ticketing-visibility.enum';
|
|
203
|
-
export * from './enums/token-category.enum';
|
|
204
|
-
export * from './enums/token-data.enum';
|
|
205
|
-
export * from './enums/transaction-status.enum';
|
|
206
|
-
export * from './enums/twispay.enum';
|
|
207
|
-
export * from './enums/user-data-type.enum';
|
|
208
|
-
export * from './enums/user-favorite-type.enum';
|
|
209
|
-
export * from './enums/user-settings.enum';
|
|
210
|
-
export * from './enums/voucher-type.enum';
|
|
211
|
-
export * from './enums/wallet-client-type.enum';
|
|
212
|
-
export * from './enums/xoxno-auction-type.enum';
|
|
213
|
-
export * from './enums/xoxno-egld-liquid-sc.enum';
|
|
214
|
-
export * from './enums/xoxno-egld-ls-activity.enum';
|
|
215
|
-
export * from './enums/xoxno-ls-activity.enum';
|
|
216
156
|
export * from './requests/aggregator/ar-da-swap-result.dto';
|
|
217
157
|
export * from './requests/aggregator/swap';
|
|
218
158
|
export * from './requests/bober-battle/analytics';
|
|
@@ -3,15 +3,13 @@ import { NftMetadataAttributes } from '../../cosmos-db/documents/token/nft-metad
|
|
|
3
3
|
import { CosmosDbGenericFilter, RangeFilter } from '../../cosmos-db/cosmos-db-generic-filter';
|
|
4
4
|
import { XoxnoAuctionTypeString } from '../../enums/xoxno-auction-type.enum';
|
|
5
5
|
import { NftDocHydrated } from '../../cosmos-db/documents/token/nft-details.doc';
|
|
6
|
+
import { NftMetadata } from '../../cosmos-db/documents/token/nft-metadata';
|
|
6
7
|
export declare class SaleInfoFilterDto {
|
|
7
8
|
seller?: string[];
|
|
8
9
|
paymentToken?: string[];
|
|
9
10
|
marketplace?: string[];
|
|
10
11
|
auctionType?: XoxnoAuctionTypeString[];
|
|
11
12
|
}
|
|
12
|
-
export declare class MetadataAttributesDto {
|
|
13
|
-
attributes?: NftMetadataAttributes[];
|
|
14
|
-
}
|
|
15
13
|
export declare class NftDocFilterCriteriaDto {
|
|
16
14
|
dataType?: string[];
|
|
17
15
|
identifier?: string[];
|
|
@@ -23,7 +21,7 @@ export declare class NftDocFilterCriteriaDto {
|
|
|
23
21
|
currentOwner?: string[];
|
|
24
22
|
saleInfo?: SaleInfoFilterDto;
|
|
25
23
|
range?: RangeFilter<NftDocHydrated>[];
|
|
26
|
-
metadata?:
|
|
24
|
+
metadata?: NftMetadata;
|
|
27
25
|
wasProcessed?: boolean;
|
|
28
26
|
cp_staked?: boolean;
|
|
29
27
|
activeAuction?: boolean;
|
|
@@ -9,12 +9,12 @@ 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.NftDocFilter = exports.NftDocFilterCriteriaDto = exports.
|
|
12
|
+
exports.NftDocFilter = exports.NftDocFilterCriteriaDto = exports.SaleInfoFilterDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const common_enum_1 = require("../../enums/common.enum");
|
|
15
|
-
const nft_metadata_attributes_1 = require("../../cosmos-db/documents/token/nft-metadata-attributes");
|
|
16
15
|
const token_data_enum_1 = require("../../enums/token-data.enum");
|
|
17
16
|
const cosmos_db_generic_filter_1 = require("../../cosmos-db/cosmos-db-generic-filter");
|
|
17
|
+
const nft_metadata_1 = require("../../cosmos-db/documents/token/nft-metadata");
|
|
18
18
|
class SaleInfoFilterDto {
|
|
19
19
|
}
|
|
20
20
|
exports.SaleInfoFilterDto = SaleInfoFilterDto;
|
|
@@ -39,13 +39,10 @@ __decorate([
|
|
|
39
39
|
(0, swagger_1.ApiProperty)({ required: false, type: String, isArray: true }),
|
|
40
40
|
__metadata("design:type", Array)
|
|
41
41
|
], SaleInfoFilterDto.prototype, "auctionType", void 0);
|
|
42
|
-
class MetadataAttributesDto {
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
(0, swagger_1.ApiProperty)({ required: false, type: nft_metadata_attributes_1.NftMetadataAttributes, isArray: true }),
|
|
47
|
-
__metadata("design:type", Array)
|
|
48
|
-
], MetadataAttributesDto.prototype, "attributes", void 0);
|
|
42
|
+
/* export class MetadataAttributesDto {
|
|
43
|
+
@ApiProperty({ required: false, type: NftMetadataAttributes, isArray: true })
|
|
44
|
+
attributes?: NftMetadataAttributes[];
|
|
45
|
+
} */
|
|
49
46
|
class NftDocFilterCriteriaDto {
|
|
50
47
|
}
|
|
51
48
|
exports.NftDocFilterCriteriaDto = NftDocFilterCriteriaDto;
|
|
@@ -90,8 +87,8 @@ __decorate([
|
|
|
90
87
|
__metadata("design:type", Array)
|
|
91
88
|
], NftDocFilterCriteriaDto.prototype, "range", void 0);
|
|
92
89
|
__decorate([
|
|
93
|
-
(0, swagger_1.ApiProperty)({ required: false, type:
|
|
94
|
-
__metadata("design:type",
|
|
90
|
+
(0, swagger_1.ApiProperty)({ required: false, type: nft_metadata_1.NftMetadata }),
|
|
91
|
+
__metadata("design:type", nft_metadata_1.NftMetadata)
|
|
95
92
|
], NftDocFilterCriteriaDto.prototype, "metadata", void 0);
|
|
96
93
|
__decorate([
|
|
97
94
|
(0, swagger_1.ApiProperty)({ required: false, type: Boolean, example: true }),
|