@xoxno/types 1.0.111 → 1.0.113
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/enums/index.d.ts +60 -0
- package/dist/enums/index.js +76 -0
- 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 +18 -4
|
@@ -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);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export * from "./auth-strategy.enum";
|
|
2
|
+
export * from "./azure-ws-event-name.enum";
|
|
3
|
+
export * from "./azure-ws-hub-name.enum";
|
|
4
|
+
export * from "./binance.enum";
|
|
5
|
+
export * from "./bober-battle-activity.enum";
|
|
6
|
+
export * from "./chat-data-type.enum";
|
|
7
|
+
export * from "./chat-message-content-type.enum";
|
|
8
|
+
export * from "./collection.enum";
|
|
9
|
+
export * from "./common.enum";
|
|
10
|
+
export * from "./cosmos-db-container.enum";
|
|
11
|
+
export * from "./event-category.enum";
|
|
12
|
+
export * from "./event-guest-status.enum";
|
|
13
|
+
export * from "./event-invitation-status.enum";
|
|
14
|
+
export * from "./event-question-answer-type.enum";
|
|
15
|
+
export * from "./event-referral-config.doc";
|
|
16
|
+
export * from "./event-scan-status.enum";
|
|
17
|
+
export * from "./event-source.enum";
|
|
18
|
+
export * from "./event-user-role.doc";
|
|
19
|
+
export * from "./event-user-roles.enum";
|
|
20
|
+
export * from "./external-payment-status.enum";
|
|
21
|
+
export * from "./fiat-tokens.enum";
|
|
22
|
+
export * from "./kusto-db.enum";
|
|
23
|
+
export * from "./lending-data-type.enum";
|
|
24
|
+
export * from "./lending-position-type.enum";
|
|
25
|
+
export * from "./lending.enum";
|
|
26
|
+
export * from "./linked-account-type.enum";
|
|
27
|
+
export * from "./marketplace-activity.enum";
|
|
28
|
+
export * from "./mobile-device.enum";
|
|
29
|
+
export * from "./nft-activity-type.enum";
|
|
30
|
+
export * from "./nft-extra-attributes.enum";
|
|
31
|
+
export * from "./notification-asset-type.enum";
|
|
32
|
+
export * from "./notification-data-type.enum";
|
|
33
|
+
export * from "./notification-template.enum";
|
|
34
|
+
export * from "./offers.enum";
|
|
35
|
+
export * from "./order-by-column.enum";
|
|
36
|
+
export * from "./payment-provider.enum";
|
|
37
|
+
export * from "./purchase-type.enum";
|
|
38
|
+
export * from "./push-notification.enum";
|
|
39
|
+
export * from "./role.enum";
|
|
40
|
+
export * from "./search-index-name.enum";
|
|
41
|
+
export * from "./staking-data-type.enum";
|
|
42
|
+
export * from "./staking-issuing-type-string.enum";
|
|
43
|
+
export * from "./staking-pool-type-string.enum";
|
|
44
|
+
export * from "./staking-status-string.enum";
|
|
45
|
+
export * from "./tag-priority.enum";
|
|
46
|
+
export * from "./ticketing-data-type.enum";
|
|
47
|
+
export * from "./ticketing-visibility.enum";
|
|
48
|
+
export * from "./token-category.enum";
|
|
49
|
+
export * from "./token-data.enum";
|
|
50
|
+
export * from "./transaction-status.enum";
|
|
51
|
+
export * from "./twispay.enum";
|
|
52
|
+
export * from "./user-data-type.enum";
|
|
53
|
+
export * from "./user-favorite-type.enum";
|
|
54
|
+
export * from "./user-settings.enum";
|
|
55
|
+
export * from "./voucher-type.enum";
|
|
56
|
+
export * from "./wallet-client-type.enum";
|
|
57
|
+
export * from "./xoxno-auction-type.enum";
|
|
58
|
+
export * from "./xoxno-egld-liquid-sc.enum";
|
|
59
|
+
export * from "./xoxno-egld-ls-activity.enum";
|
|
60
|
+
export * from "./xoxno-ls-activity.enum";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./auth-strategy.enum"), exports);
|
|
18
|
+
__exportStar(require("./azure-ws-event-name.enum"), exports);
|
|
19
|
+
__exportStar(require("./azure-ws-hub-name.enum"), exports);
|
|
20
|
+
__exportStar(require("./binance.enum"), exports);
|
|
21
|
+
__exportStar(require("./bober-battle-activity.enum"), exports);
|
|
22
|
+
__exportStar(require("./chat-data-type.enum"), exports);
|
|
23
|
+
__exportStar(require("./chat-message-content-type.enum"), exports);
|
|
24
|
+
__exportStar(require("./collection.enum"), exports);
|
|
25
|
+
__exportStar(require("./common.enum"), exports);
|
|
26
|
+
__exportStar(require("./cosmos-db-container.enum"), exports);
|
|
27
|
+
__exportStar(require("./event-category.enum"), exports);
|
|
28
|
+
__exportStar(require("./event-guest-status.enum"), exports);
|
|
29
|
+
__exportStar(require("./event-invitation-status.enum"), exports);
|
|
30
|
+
__exportStar(require("./event-question-answer-type.enum"), exports);
|
|
31
|
+
__exportStar(require("./event-referral-config.doc"), exports);
|
|
32
|
+
__exportStar(require("./event-scan-status.enum"), exports);
|
|
33
|
+
__exportStar(require("./event-source.enum"), exports);
|
|
34
|
+
__exportStar(require("./event-user-role.doc"), exports);
|
|
35
|
+
__exportStar(require("./event-user-roles.enum"), exports);
|
|
36
|
+
__exportStar(require("./external-payment-status.enum"), exports);
|
|
37
|
+
__exportStar(require("./fiat-tokens.enum"), exports);
|
|
38
|
+
__exportStar(require("./kusto-db.enum"), exports);
|
|
39
|
+
__exportStar(require("./lending-data-type.enum"), exports);
|
|
40
|
+
__exportStar(require("./lending-position-type.enum"), exports);
|
|
41
|
+
__exportStar(require("./lending.enum"), exports);
|
|
42
|
+
__exportStar(require("./linked-account-type.enum"), exports);
|
|
43
|
+
__exportStar(require("./marketplace-activity.enum"), exports);
|
|
44
|
+
__exportStar(require("./mobile-device.enum"), exports);
|
|
45
|
+
__exportStar(require("./nft-activity-type.enum"), exports);
|
|
46
|
+
__exportStar(require("./nft-extra-attributes.enum"), exports);
|
|
47
|
+
__exportStar(require("./notification-asset-type.enum"), exports);
|
|
48
|
+
__exportStar(require("./notification-data-type.enum"), exports);
|
|
49
|
+
__exportStar(require("./notification-template.enum"), exports);
|
|
50
|
+
__exportStar(require("./offers.enum"), exports);
|
|
51
|
+
__exportStar(require("./order-by-column.enum"), exports);
|
|
52
|
+
__exportStar(require("./payment-provider.enum"), exports);
|
|
53
|
+
__exportStar(require("./purchase-type.enum"), exports);
|
|
54
|
+
__exportStar(require("./push-notification.enum"), exports);
|
|
55
|
+
__exportStar(require("./role.enum"), exports);
|
|
56
|
+
__exportStar(require("./search-index-name.enum"), exports);
|
|
57
|
+
__exportStar(require("./staking-data-type.enum"), exports);
|
|
58
|
+
__exportStar(require("./staking-issuing-type-string.enum"), exports);
|
|
59
|
+
__exportStar(require("./staking-pool-type-string.enum"), exports);
|
|
60
|
+
__exportStar(require("./staking-status-string.enum"), exports);
|
|
61
|
+
__exportStar(require("./tag-priority.enum"), exports);
|
|
62
|
+
__exportStar(require("./ticketing-data-type.enum"), exports);
|
|
63
|
+
__exportStar(require("./ticketing-visibility.enum"), exports);
|
|
64
|
+
__exportStar(require("./token-category.enum"), exports);
|
|
65
|
+
__exportStar(require("./token-data.enum"), exports);
|
|
66
|
+
__exportStar(require("./transaction-status.enum"), exports);
|
|
67
|
+
__exportStar(require("./twispay.enum"), exports);
|
|
68
|
+
__exportStar(require("./user-data-type.enum"), exports);
|
|
69
|
+
__exportStar(require("./user-favorite-type.enum"), exports);
|
|
70
|
+
__exportStar(require("./user-settings.enum"), exports);
|
|
71
|
+
__exportStar(require("./voucher-type.enum"), exports);
|
|
72
|
+
__exportStar(require("./wallet-client-type.enum"), exports);
|
|
73
|
+
__exportStar(require("./xoxno-auction-type.enum"), exports);
|
|
74
|
+
__exportStar(require("./xoxno-egld-liquid-sc.enum"), exports);
|
|
75
|
+
__exportStar(require("./xoxno-egld-ls-activity.enum"), exports);
|
|
76
|
+
__exportStar(require("./xoxno-ls-activity.enum"), exports);
|
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 }),
|
package/package.json
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.113",
|
|
4
4
|
"description": "Shared types and utilities for XOXNO API.",
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"import": "./dist/index.js",
|
|
8
|
+
"require": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"./enums": {
|
|
12
|
+
"import": "./dist/enums/index.js",
|
|
13
|
+
"require": "./dist/enums/index.js",
|
|
14
|
+
"types": "./dist/enums/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"module": "./dist/index.js",
|
|
7
20
|
"files": [
|
|
8
|
-
"dist"
|
|
21
|
+
"dist/**/*"
|
|
9
22
|
],
|
|
23
|
+
"sideEffects": false,
|
|
10
24
|
"scripts": {
|
|
11
25
|
"build": "node generate-barrel.mjs && eslint 'src/index.ts' --fix && tsc && node strip-types.js",
|
|
12
26
|
"build:watch": "tsc --watch",
|