@xoxno/types 1.0.193 → 1.0.195
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/kusto/lending-overall-stats.d.ts +1 -1
- package/dist/common/kusto/lending-overall-stats.js +3 -0
- package/dist/common/kusto/user-trading-summary.js +47 -10
- package/dist/common/kusto/volume-graph.js +47 -8
- package/dist/common/kusto/wallet-stats.js +153 -29
- package/dist/common/statistics.js +54 -11
- package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +85 -0
- package/dist/cosmos-db/documents/chat/user-block.doc.js +76 -0
- package/dist/cosmos-db/documents/chat/user-conversation.doc.js +115 -0
- package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +5 -5
- package/dist/cosmos-db/documents/collection/collectionConfig.js +87 -1
- package/dist/cosmos-db/documents/collection/globalOffer.js +37 -0
- package/dist/cosmos-db/documents/collection/mintProfile.js +45 -2
- package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +4 -5
- package/dist/cosmos-db/documents/external-payment/binance-hook.js +216 -0
- package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +218 -0
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +71 -71
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +783 -0
- package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-cart.js +75 -0
- package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +1 -2
- package/dist/cosmos-db/documents/external-payment/twispay-customer.js +102 -0
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +98 -0
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +116 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +21 -0
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +15 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +21 -0
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +49 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +21 -0
- package/dist/cosmos-db/documents/notification/notification.doc.js +108 -0
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +89 -0
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +274 -0
- package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +24 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-location.js +24 -0
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-question.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +16 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +7 -0
- package/dist/cosmos-db/documents/token/nft-details.doc.js +18 -5
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +59 -0
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +40 -0
- package/dist/cosmos-db/documents/token/nft-metadata.js +9 -0
- package/dist/cosmos-db/documents/token/nft-sale-info.js +89 -17
- package/dist/cosmos-db/documents/token/sft-owner-doc.js +86 -0
- package/dist/cosmos-db/documents/user/user-favorite.doc.js +67 -0
- package/dist/entities/airdrop/airdrop.dto.js +77 -0
- package/dist/entities/auth/login-request.dto.js +7 -0
- package/dist/entities/delegation-data/delegation-data-output.js +106 -0
- package/dist/entities/mvx-built-in/account-on-network.js +124 -0
- package/dist/entities/mvx-built-in/esdt-token.js +187 -0
- package/dist/entities/mvx-built-in/mvx-guardian.d.ts +5 -6
- package/dist/entities/mvx-built-in/mvx-guardian.js +67 -8
- package/dist/entities/notification-data/device-tag-storage.doc.js +79 -11
- package/dist/entities/notification-data/push-notification.doc.js +147 -25
- package/dist/entities/notification-data/tag-priority.d.ts +1 -1
- package/dist/entities/notification-data/tag-priority.js +57 -1
- package/dist/entities/search-data/filter-query.dto.js +32 -0
- package/dist/entities/staking-data/staking-creator.doc.js +38 -6
- package/dist/entities/staking-data/staking-explore.js +26 -5
- package/dist/entities/staking-data/user-staking-summary.dto.js +18 -0
- package/dist/entities/token-data/metrics.js +192 -38
- package/dist/entities/token-data/token-data.doc.js +84 -18
- package/dist/entities/transactions/smart-contract-result.js +138 -0
- package/dist/entities/transactions/transaction-detailed.js +44 -0
- package/dist/entities/transactions/transaction-log-event.js +52 -0
- package/dist/entities/transactions/transaction-log.js +51 -0
- package/dist/entities/transactions/transaction-operation.js +115 -0
- package/dist/entities/transactions/transaction-receipt.js +34 -0
- package/dist/entities/transactions/transaction.js +194 -0
- package/dist/entities/web2user-data/success.dto.js +18 -0
- package/dist/requests/bober-battle/analytics.js +187 -0
- package/dist/requests/collection/collection-attributes-map.js +123 -0
- package/dist/requests/collection/shareholder.dto.js +30 -0
- package/dist/requests/lending/lending-indexes.dto.js +74 -0
- package/dist/requests/lending/lending-token-price.dto.js +18 -0
- package/dist/requests/nft-activity-data/nft-activity-data.js +168 -0
- package/dist/requests/nft-data/nft-doc.filter.js +2 -0
- package/dist/requests/nft-data/nft-offer-doc.filter.js +11 -0
- package/dist/requests/nft-data/sign-data.dto.js +10 -2
- package/dist/requests/user-data/token-inventory.js +10 -0
- package/package.json +1 -1
|
@@ -36,6 +36,9 @@ __decorate([
|
|
|
36
36
|
description: 'Total supplied amount',
|
|
37
37
|
example: 10000000,
|
|
38
38
|
}),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LendingOverallStats.prototype, "supplied", void 0);
|
|
41
|
+
__decorate([
|
|
39
42
|
(0, swagger_1.ApiProperty)({
|
|
40
43
|
description: 'Total number of participants',
|
|
41
44
|
example: 100,
|
|
@@ -14,47 +14,84 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
14
14
|
class UserTradingSummaryMin {
|
|
15
15
|
}
|
|
16
16
|
__decorate([
|
|
17
|
-
(0, swagger_1.ApiProperty)(
|
|
17
|
+
(0, swagger_1.ApiProperty)({
|
|
18
|
+
description: 'Price of the NFT transaction',
|
|
19
|
+
example: 5.5,
|
|
20
|
+
type: Number,
|
|
21
|
+
}),
|
|
18
22
|
__metadata("design:type", Number)
|
|
19
23
|
], UserTradingSummaryMin.prototype, "price", void 0);
|
|
20
24
|
__decorate([
|
|
21
|
-
(0, swagger_1.ApiProperty)(
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
description: 'Transaction hash',
|
|
27
|
+
example: '0xabcdef123456789',
|
|
28
|
+
type: String,
|
|
29
|
+
}),
|
|
22
30
|
__metadata("design:type", String)
|
|
23
31
|
], UserTradingSummaryMin.prototype, "txHash", void 0);
|
|
24
32
|
__decorate([
|
|
25
|
-
(0, swagger_1.ApiProperty)(
|
|
33
|
+
(0, swagger_1.ApiProperty)({
|
|
34
|
+
description: 'Unix timestamp of the transaction',
|
|
35
|
+
example: 1672531200,
|
|
36
|
+
type: Number,
|
|
37
|
+
}),
|
|
26
38
|
__metadata("design:type", Number)
|
|
27
39
|
], UserTradingSummaryMin.prototype, "timestamp", void 0);
|
|
28
40
|
__decorate([
|
|
29
|
-
(0, swagger_1.ApiProperty)(
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'NFT identifier',
|
|
43
|
+
example: 'COOL-1a2b3c-01',
|
|
44
|
+
type: String,
|
|
45
|
+
}),
|
|
30
46
|
__metadata("design:type", String)
|
|
31
47
|
], UserTradingSummaryMin.prototype, "identifier", void 0);
|
|
32
48
|
class UserTradingSummaryPrice {
|
|
33
49
|
}
|
|
34
50
|
__decorate([
|
|
35
|
-
(0, swagger_1.ApiProperty)(
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'Average price value',
|
|
53
|
+
example: 25.75,
|
|
54
|
+
type: Number,
|
|
55
|
+
}),
|
|
36
56
|
__metadata("design:type", Number)
|
|
37
57
|
], UserTradingSummaryPrice.prototype, "price", void 0);
|
|
38
58
|
class UserTradingSummary {
|
|
39
59
|
}
|
|
40
60
|
exports.UserTradingSummary = UserTradingSummary;
|
|
41
61
|
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)(
|
|
62
|
+
(0, swagger_1.ApiProperty)({
|
|
63
|
+
description: 'Total number of trades',
|
|
64
|
+
example: 150,
|
|
65
|
+
type: Number,
|
|
66
|
+
}),
|
|
43
67
|
__metadata("design:type", Number)
|
|
44
68
|
], UserTradingSummary.prototype, "count", void 0);
|
|
45
69
|
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)(
|
|
70
|
+
(0, swagger_1.ApiProperty)({
|
|
71
|
+
description: 'Total trading volume',
|
|
72
|
+
example: 3862.5,
|
|
73
|
+
type: Number,
|
|
74
|
+
}),
|
|
47
75
|
__metadata("design:type", Number)
|
|
48
76
|
], UserTradingSummary.prototype, "volume", void 0);
|
|
49
77
|
__decorate([
|
|
50
|
-
(0, swagger_1.ApiProperty)(
|
|
78
|
+
(0, swagger_1.ApiProperty)({
|
|
79
|
+
description: 'Details of the minimum priced trade',
|
|
80
|
+
type: UserTradingSummaryMin,
|
|
81
|
+
}),
|
|
51
82
|
__metadata("design:type", UserTradingSummaryMin)
|
|
52
83
|
], UserTradingSummary.prototype, "min", void 0);
|
|
53
84
|
__decorate([
|
|
54
|
-
(0, swagger_1.ApiProperty)(
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Details of the maximum priced trade',
|
|
87
|
+
type: UserTradingSummaryMin,
|
|
88
|
+
}),
|
|
55
89
|
__metadata("design:type", UserTradingSummaryMin)
|
|
56
90
|
], UserTradingSummary.prototype, "max", void 0);
|
|
57
91
|
__decorate([
|
|
58
|
-
(0, swagger_1.ApiProperty)(
|
|
92
|
+
(0, swagger_1.ApiProperty)({
|
|
93
|
+
description: 'Average price information',
|
|
94
|
+
type: UserTradingSummaryPrice,
|
|
95
|
+
}),
|
|
59
96
|
__metadata("design:type", UserTradingSummaryPrice)
|
|
60
97
|
], UserTradingSummary.prototype, "avg", void 0);
|
|
@@ -16,35 +16,74 @@ class VolumeGraph {
|
|
|
16
16
|
}
|
|
17
17
|
exports.VolumeGraph = VolumeGraph;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, swagger_1.ApiProperty)(
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Marketplace identifier',
|
|
21
|
+
example: 'xoxno',
|
|
22
|
+
type: String,
|
|
23
|
+
}),
|
|
20
24
|
__metadata("design:type", String)
|
|
21
25
|
], VolumeGraph.prototype, "marketplace", void 0);
|
|
22
26
|
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)(
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'Array of timestamps for the data points',
|
|
29
|
+
example: ['2024-01-01T00:00:00Z', '2024-01-02T00:00:00Z'],
|
|
30
|
+
type: [String],
|
|
31
|
+
isArray: true,
|
|
32
|
+
}),
|
|
24
33
|
__metadata("design:type", Array)
|
|
25
34
|
], VolumeGraph.prototype, "timestamp", void 0);
|
|
26
35
|
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)(
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: 'Array of total EGLD volume values corresponding to timestamps',
|
|
38
|
+
example: [100.5, 125.75, 150.0],
|
|
39
|
+
type: [Number],
|
|
40
|
+
isArray: true,
|
|
41
|
+
}),
|
|
28
42
|
__metadata("design:type", Array)
|
|
29
43
|
], VolumeGraph.prototype, "totalEgldVolume", void 0);
|
|
30
44
|
__decorate([
|
|
31
|
-
(0, swagger_1.ApiProperty)(
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'Array of total USD volume values corresponding to timestamps',
|
|
47
|
+
example: [5025.0, 6287.5, 7500.0],
|
|
48
|
+
type: [Number],
|
|
49
|
+
isArray: true,
|
|
50
|
+
}),
|
|
32
51
|
__metadata("design:type", Array)
|
|
33
52
|
], VolumeGraph.prototype, "totalUsdVolume", void 0);
|
|
34
53
|
__decorate([
|
|
35
|
-
(0, swagger_1.ApiProperty)(
|
|
54
|
+
(0, swagger_1.ApiProperty)({
|
|
55
|
+
description: 'Array of total trades count corresponding to timestamps',
|
|
56
|
+
example: [50, 65, 80],
|
|
57
|
+
type: [Number],
|
|
58
|
+
isArray: true,
|
|
59
|
+
}),
|
|
36
60
|
__metadata("design:type", Array)
|
|
37
61
|
], VolumeGraph.prototype, "totalTrades", void 0);
|
|
38
62
|
__decorate([
|
|
39
|
-
(0, swagger_1.ApiProperty)(
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
description: 'Array of floor prices corresponding to timestamps',
|
|
65
|
+
example: [1.5, 1.75, 2.0],
|
|
66
|
+
type: [Number],
|
|
67
|
+
isArray: true,
|
|
68
|
+
}),
|
|
40
69
|
__metadata("design:type", Array)
|
|
41
70
|
], VolumeGraph.prototype, "floorPrice", void 0);
|
|
42
71
|
__decorate([
|
|
43
|
-
(0, swagger_1.ApiProperty)(
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
description: 'Array of all-time high prices corresponding to timestamps',
|
|
74
|
+
example: [50.0, 55.0, 60.0],
|
|
75
|
+
type: [Number],
|
|
76
|
+
isArray: true,
|
|
77
|
+
}),
|
|
44
78
|
__metadata("design:type", Array)
|
|
45
79
|
], VolumeGraph.prototype, "athPrice", void 0);
|
|
46
80
|
__decorate([
|
|
47
|
-
(0, swagger_1.ApiProperty)(
|
|
81
|
+
(0, swagger_1.ApiProperty)({
|
|
82
|
+
description: 'Array of average prices corresponding to timestamps',
|
|
83
|
+
example: [10.5, 12.0, 15.5],
|
|
84
|
+
type: [Number],
|
|
85
|
+
isArray: true,
|
|
86
|
+
}),
|
|
48
87
|
__metadata("design:type", Array)
|
|
49
88
|
], VolumeGraph.prototype, "avgPrice", void 0);
|
|
50
89
|
class AnalyticsMarketplaceUniqueUsers {
|
|
@@ -16,23 +16,43 @@ class PriceData {
|
|
|
16
16
|
}
|
|
17
17
|
exports.PriceData = PriceData;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, swagger_1.ApiProperty)(
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Price of the NFT in native token',
|
|
21
|
+
example: 10.5,
|
|
22
|
+
type: Number,
|
|
23
|
+
}),
|
|
20
24
|
__metadata("design:type", Number)
|
|
21
25
|
], PriceData.prototype, "price", void 0);
|
|
22
26
|
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)(
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'USD value of the NFT at the time of transaction',
|
|
29
|
+
example: 525.0,
|
|
30
|
+
type: Number,
|
|
31
|
+
}),
|
|
24
32
|
__metadata("design:type", Number)
|
|
25
33
|
], PriceData.prototype, "usdValue", void 0);
|
|
26
34
|
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)(
|
|
35
|
+
(0, swagger_1.ApiProperty)({
|
|
36
|
+
description: 'Unix timestamp of the transaction',
|
|
37
|
+
example: 1672531200,
|
|
38
|
+
type: Number,
|
|
39
|
+
}),
|
|
28
40
|
__metadata("design:type", Number)
|
|
29
41
|
], PriceData.prototype, "timestamp", void 0);
|
|
30
42
|
__decorate([
|
|
31
|
-
(0, swagger_1.ApiProperty)(
|
|
43
|
+
(0, swagger_1.ApiProperty)({
|
|
44
|
+
description: 'NFT identifier',
|
|
45
|
+
example: 'COOL-1a2b3c-01',
|
|
46
|
+
type: String,
|
|
47
|
+
}),
|
|
32
48
|
__metadata("design:type", String)
|
|
33
49
|
], PriceData.prototype, "identifier", void 0);
|
|
34
50
|
__decorate([
|
|
35
|
-
(0, swagger_1.ApiProperty)(
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'Transaction hash',
|
|
53
|
+
example: '0xabcdef123456789',
|
|
54
|
+
type: String,
|
|
55
|
+
}),
|
|
36
56
|
__metadata("design:type", String)
|
|
37
57
|
], PriceData.prototype, "txHash", void 0);
|
|
38
58
|
class WalletTradingStats {
|
|
@@ -99,98 +119,202 @@ class WalletTradingStats {
|
|
|
99
119
|
}
|
|
100
120
|
exports.WalletTradingStats = WalletTradingStats;
|
|
101
121
|
__decorate([
|
|
102
|
-
(0, swagger_1.ApiProperty)(
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
description: 'Wallet address',
|
|
124
|
+
example: 'erd1qqqqqqqqqqqqqpgqa0fsfshnff4n76jhcye6k7uvd7qacsq42jpsp6shh2',
|
|
125
|
+
type: String,
|
|
126
|
+
}),
|
|
103
127
|
__metadata("design:type", String)
|
|
104
128
|
], WalletTradingStats.prototype, "wallet", void 0);
|
|
105
129
|
__decorate([
|
|
106
|
-
(0, swagger_1.ApiProperty)(
|
|
130
|
+
(0, swagger_1.ApiProperty)({
|
|
131
|
+
description: 'Total trading volume in native token',
|
|
132
|
+
example: 1500.5,
|
|
133
|
+
type: Number,
|
|
134
|
+
}),
|
|
107
135
|
__metadata("design:type", Number)
|
|
108
136
|
], WalletTradingStats.prototype, "totalVolume", void 0);
|
|
109
137
|
__decorate([
|
|
110
|
-
(0, swagger_1.ApiProperty)(
|
|
138
|
+
(0, swagger_1.ApiProperty)({
|
|
139
|
+
description: 'Total number of trades executed',
|
|
140
|
+
example: 250,
|
|
141
|
+
type: Number,
|
|
142
|
+
}),
|
|
111
143
|
__metadata("design:type", Number)
|
|
112
144
|
], WalletTradingStats.prototype, "totalTrades", void 0);
|
|
113
145
|
__decorate([
|
|
114
|
-
(0, swagger_1.ApiProperty)(
|
|
146
|
+
(0, swagger_1.ApiProperty)({
|
|
147
|
+
description: 'Total number of unique collections traded',
|
|
148
|
+
example: 45,
|
|
149
|
+
type: Number,
|
|
150
|
+
}),
|
|
115
151
|
__metadata("design:type", Number)
|
|
116
152
|
], WalletTradingStats.prototype, "totalCollections", void 0);
|
|
117
153
|
__decorate([
|
|
118
|
-
(0, swagger_1.ApiProperty)(
|
|
154
|
+
(0, swagger_1.ApiProperty)({
|
|
155
|
+
description: 'Total number of unique NFTs traded',
|
|
156
|
+
example: 125,
|
|
157
|
+
type: Number,
|
|
158
|
+
}),
|
|
119
159
|
__metadata("design:type", Number)
|
|
120
160
|
], WalletTradingStats.prototype, "totalNfts", void 0);
|
|
121
161
|
__decorate([
|
|
122
|
-
(0, swagger_1.ApiProperty)(
|
|
162
|
+
(0, swagger_1.ApiProperty)({
|
|
163
|
+
description: 'Total number of unique trading partners',
|
|
164
|
+
example: 80,
|
|
165
|
+
type: Number,
|
|
166
|
+
}),
|
|
123
167
|
__metadata("design:type", Number)
|
|
124
168
|
], WalletTradingStats.prototype, "totalPartners", void 0);
|
|
125
169
|
__decorate([
|
|
126
|
-
(0, swagger_1.ApiProperty)(
|
|
170
|
+
(0, swagger_1.ApiProperty)({
|
|
171
|
+
description: 'Total volume spent as buyer in native token',
|
|
172
|
+
example: 800.25,
|
|
173
|
+
type: Number,
|
|
174
|
+
}),
|
|
127
175
|
__metadata("design:type", Number)
|
|
128
176
|
], WalletTradingStats.prototype, "buyerVolume", void 0);
|
|
129
177
|
__decorate([
|
|
130
|
-
(0, swagger_1.ApiProperty)(
|
|
178
|
+
(0, swagger_1.ApiProperty)({
|
|
179
|
+
description: 'Total number of buy trades',
|
|
180
|
+
example: 120,
|
|
181
|
+
type: Number,
|
|
182
|
+
}),
|
|
131
183
|
__metadata("design:type", Number)
|
|
132
184
|
], WalletTradingStats.prototype, "buyerTrades", void 0);
|
|
133
185
|
__decorate([
|
|
134
|
-
(0, swagger_1.ApiProperty)(
|
|
186
|
+
(0, swagger_1.ApiProperty)({
|
|
187
|
+
description: 'Total number of NFTs bought',
|
|
188
|
+
example: 65,
|
|
189
|
+
type: Number,
|
|
190
|
+
}),
|
|
135
191
|
__metadata("design:type", Number)
|
|
136
192
|
], WalletTradingStats.prototype, "buyerNfts", void 0);
|
|
137
193
|
__decorate([
|
|
138
|
-
(0, swagger_1.ApiProperty)(
|
|
194
|
+
(0, swagger_1.ApiProperty)({
|
|
195
|
+
description: 'Total number of collections bought from',
|
|
196
|
+
example: 25,
|
|
197
|
+
type: Number,
|
|
198
|
+
}),
|
|
139
199
|
__metadata("design:type", Number)
|
|
140
200
|
], WalletTradingStats.prototype, "buyerCollections", void 0);
|
|
141
201
|
__decorate([
|
|
142
|
-
(0, swagger_1.ApiProperty)(
|
|
202
|
+
(0, swagger_1.ApiProperty)({
|
|
203
|
+
description: 'Total number of unique sellers',
|
|
204
|
+
example: 40,
|
|
205
|
+
type: Number,
|
|
206
|
+
}),
|
|
143
207
|
__metadata("design:type", Number)
|
|
144
208
|
], WalletTradingStats.prototype, "buyerPartners", void 0);
|
|
145
209
|
__decorate([
|
|
146
|
-
(0, swagger_1.ApiProperty)(
|
|
210
|
+
(0, swagger_1.ApiProperty)({
|
|
211
|
+
description: 'Maximum price paid for an NFT',
|
|
212
|
+
example: 150.0,
|
|
213
|
+
type: Number,
|
|
214
|
+
}),
|
|
147
215
|
__metadata("design:type", Number)
|
|
148
216
|
], WalletTradingStats.prototype, "buyerMaxPrice", void 0);
|
|
149
217
|
__decorate([
|
|
150
|
-
(0, swagger_1.ApiProperty)(
|
|
218
|
+
(0, swagger_1.ApiProperty)({
|
|
219
|
+
description: 'Minimum price paid for an NFT',
|
|
220
|
+
example: 0.5,
|
|
221
|
+
type: Number,
|
|
222
|
+
}),
|
|
151
223
|
__metadata("design:type", Number)
|
|
152
224
|
], WalletTradingStats.prototype, "buyerMinPrice", void 0);
|
|
153
225
|
__decorate([
|
|
154
|
-
(0, swagger_1.ApiProperty)(
|
|
226
|
+
(0, swagger_1.ApiProperty)({
|
|
227
|
+
description: 'Details of the highest priced purchase',
|
|
228
|
+
type: PriceData,
|
|
229
|
+
nullable: true,
|
|
230
|
+
}),
|
|
155
231
|
__metadata("design:type", Object)
|
|
156
232
|
], WalletTradingStats.prototype, "buyerMaxPriceData", void 0);
|
|
157
233
|
__decorate([
|
|
158
|
-
(0, swagger_1.ApiProperty)(
|
|
234
|
+
(0, swagger_1.ApiProperty)({
|
|
235
|
+
description: 'Details of the lowest priced purchase',
|
|
236
|
+
type: PriceData,
|
|
237
|
+
nullable: true,
|
|
238
|
+
}),
|
|
159
239
|
__metadata("design:type", Object)
|
|
160
240
|
], WalletTradingStats.prototype, "buyerMinPriceData", void 0);
|
|
161
241
|
__decorate([
|
|
162
|
-
(0, swagger_1.ApiProperty)(
|
|
242
|
+
(0, swagger_1.ApiProperty)({
|
|
243
|
+
description: 'Total volume earned as seller in native token',
|
|
244
|
+
example: 700.25,
|
|
245
|
+
type: Number,
|
|
246
|
+
}),
|
|
247
|
+
__metadata("design:type", Number)
|
|
248
|
+
], WalletTradingStats.prototype, "sellerVolume", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
(0, swagger_1.ApiProperty)({
|
|
251
|
+
description: 'Total number of sell trades',
|
|
252
|
+
example: 130,
|
|
253
|
+
type: Number,
|
|
254
|
+
}),
|
|
163
255
|
__metadata("design:type", Number)
|
|
164
256
|
], WalletTradingStats.prototype, "sellerTrades", void 0);
|
|
165
257
|
__decorate([
|
|
166
|
-
(0, swagger_1.ApiProperty)(
|
|
258
|
+
(0, swagger_1.ApiProperty)({
|
|
259
|
+
description: 'Total number of NFTs sold',
|
|
260
|
+
example: 60,
|
|
261
|
+
type: Number,
|
|
262
|
+
}),
|
|
167
263
|
__metadata("design:type", Number)
|
|
168
264
|
], WalletTradingStats.prototype, "sellerNfts", void 0);
|
|
169
265
|
__decorate([
|
|
170
|
-
(0, swagger_1.ApiProperty)(
|
|
266
|
+
(0, swagger_1.ApiProperty)({
|
|
267
|
+
description: 'Total number of collections sold from',
|
|
268
|
+
example: 20,
|
|
269
|
+
type: Number,
|
|
270
|
+
}),
|
|
171
271
|
__metadata("design:type", Number)
|
|
172
272
|
], WalletTradingStats.prototype, "sellerCollections", void 0);
|
|
173
273
|
__decorate([
|
|
174
|
-
(0, swagger_1.ApiProperty)(
|
|
274
|
+
(0, swagger_1.ApiProperty)({
|
|
275
|
+
description: 'Total number of unique buyers',
|
|
276
|
+
example: 40,
|
|
277
|
+
type: Number,
|
|
278
|
+
}),
|
|
175
279
|
__metadata("design:type", Number)
|
|
176
280
|
], WalletTradingStats.prototype, "sellerPartners", void 0);
|
|
177
281
|
__decorate([
|
|
178
|
-
(0, swagger_1.ApiProperty)(
|
|
282
|
+
(0, swagger_1.ApiProperty)({
|
|
283
|
+
description: 'Maximum price received for an NFT sale',
|
|
284
|
+
example: 200.0,
|
|
285
|
+
type: Number,
|
|
286
|
+
}),
|
|
179
287
|
__metadata("design:type", Number)
|
|
180
288
|
], WalletTradingStats.prototype, "sellerMaxPrice", void 0);
|
|
181
289
|
__decorate([
|
|
182
|
-
(0, swagger_1.ApiProperty)(
|
|
290
|
+
(0, swagger_1.ApiProperty)({
|
|
291
|
+
description: 'Minimum price received for an NFT sale',
|
|
292
|
+
example: 1.0,
|
|
293
|
+
type: Number,
|
|
294
|
+
}),
|
|
183
295
|
__metadata("design:type", Number)
|
|
184
296
|
], WalletTradingStats.prototype, "sellerMinPrice", void 0);
|
|
185
297
|
__decorate([
|
|
186
|
-
(0, swagger_1.ApiProperty)(
|
|
298
|
+
(0, swagger_1.ApiProperty)({
|
|
299
|
+
description: 'Details of the highest priced sale',
|
|
300
|
+
type: PriceData,
|
|
301
|
+
nullable: true,
|
|
302
|
+
}),
|
|
187
303
|
__metadata("design:type", Object)
|
|
188
304
|
], WalletTradingStats.prototype, "sellerMaxPriceData", void 0);
|
|
189
305
|
__decorate([
|
|
190
|
-
(0, swagger_1.ApiProperty)(
|
|
306
|
+
(0, swagger_1.ApiProperty)({
|
|
307
|
+
description: 'Details of the lowest priced sale',
|
|
308
|
+
type: PriceData,
|
|
309
|
+
nullable: true,
|
|
310
|
+
}),
|
|
191
311
|
__metadata("design:type", Object)
|
|
192
312
|
], WalletTradingStats.prototype, "sellerMinPriceData", void 0);
|
|
193
313
|
__decorate([
|
|
194
|
-
(0, swagger_1.ApiProperty)(
|
|
314
|
+
(0, swagger_1.ApiProperty)({
|
|
315
|
+
description: 'Blockchain network for these statistics',
|
|
316
|
+
enum: common_enum_1.ActivityChain,
|
|
317
|
+
example: common_enum_1.ActivityChain.MVX,
|
|
318
|
+
}),
|
|
195
319
|
__metadata("design:type", String)
|
|
196
320
|
], WalletTradingStats.prototype, "chain", void 0);
|
|
@@ -15,46 +15,86 @@ class StatisticsTradeDataDto {
|
|
|
15
15
|
}
|
|
16
16
|
exports.StatisticsTradeDataDto = StatisticsTradeDataDto;
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, swagger_1.ApiProperty)({
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
description: 'Daily trading volume in EGLD for this collection',
|
|
20
|
+
example: 0,
|
|
21
|
+
type: Number,
|
|
22
|
+
}),
|
|
19
23
|
__metadata("design:type", Number)
|
|
20
24
|
], StatisticsTradeDataDto.prototype, "dayEgldVolume", void 0);
|
|
21
25
|
__decorate([
|
|
22
|
-
(0, swagger_1.ApiProperty)({
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Weekly trading volume in EGLD for this collection',
|
|
28
|
+
example: 116.67,
|
|
29
|
+
type: Number,
|
|
30
|
+
}),
|
|
23
31
|
__metadata("design:type", Number)
|
|
24
32
|
], StatisticsTradeDataDto.prototype, "weekEgldVolume", void 0);
|
|
25
33
|
__decorate([
|
|
26
|
-
(0, swagger_1.ApiProperty)({
|
|
34
|
+
(0, swagger_1.ApiProperty)({
|
|
35
|
+
description: 'Total all-time trading volume in EGLD for this collection',
|
|
36
|
+
example: 128123.25,
|
|
37
|
+
type: Number,
|
|
38
|
+
}),
|
|
27
39
|
__metadata("design:type", Number)
|
|
28
40
|
], StatisticsTradeDataDto.prototype, "totalEgldVolume", void 0);
|
|
29
41
|
__decorate([
|
|
30
|
-
(0, swagger_1.ApiProperty)(
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
description: 'Average price in EGLD for trades in this collection',
|
|
44
|
+
example: 25.5,
|
|
45
|
+
type: Number,
|
|
46
|
+
}),
|
|
31
47
|
__metadata("design:type", Number)
|
|
32
48
|
], StatisticsTradeDataDto.prototype, "averageEgldPrice", void 0);
|
|
33
49
|
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)(
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
description: 'All-time high price in EGLD for this collection',
|
|
52
|
+
example: 150.0,
|
|
53
|
+
type: Number,
|
|
54
|
+
}),
|
|
35
55
|
__metadata("design:type", Number)
|
|
36
56
|
], StatisticsTradeDataDto.prototype, "athEgldPrice", void 0);
|
|
37
57
|
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)(
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
description: 'Transaction hash of the all-time high price sale',
|
|
60
|
+
example: '0x1234567890abcdef',
|
|
61
|
+
type: String,
|
|
62
|
+
}),
|
|
39
63
|
__metadata("design:type", String)
|
|
40
64
|
], StatisticsTradeDataDto.prototype, "athTxHash", void 0);
|
|
41
65
|
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)(
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
67
|
+
description: 'Total number of trades for this collection',
|
|
68
|
+
example: 1500,
|
|
69
|
+
type: Number,
|
|
70
|
+
}),
|
|
43
71
|
__metadata("design:type", Number)
|
|
44
72
|
], StatisticsTradeDataDto.prototype, "totalTrades", void 0);
|
|
45
73
|
class StatisticsMintDataDto {
|
|
46
74
|
}
|
|
47
75
|
exports.StatisticsMintDataDto = StatisticsMintDataDto;
|
|
48
76
|
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)(
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
description: 'Total mint volume in EGLD for this collection',
|
|
79
|
+
example: 5000.0,
|
|
80
|
+
type: Number,
|
|
81
|
+
}),
|
|
50
82
|
__metadata("design:type", Number)
|
|
51
83
|
], StatisticsMintDataDto.prototype, "totalMintEgldVolume", void 0);
|
|
52
84
|
__decorate([
|
|
53
|
-
(0, swagger_1.ApiProperty)(
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Weekly mint volume in EGLD for this collection',
|
|
87
|
+
example: 250.0,
|
|
88
|
+
type: Number,
|
|
89
|
+
}),
|
|
54
90
|
__metadata("design:type", Number)
|
|
55
91
|
], StatisticsMintDataDto.prototype, "weekMintEgldVolume", void 0);
|
|
56
92
|
__decorate([
|
|
57
|
-
(0, swagger_1.ApiProperty)(
|
|
93
|
+
(0, swagger_1.ApiProperty)({
|
|
94
|
+
description: 'Daily mint volume in EGLD for this collection',
|
|
95
|
+
example: 50.0,
|
|
96
|
+
type: Number,
|
|
97
|
+
}),
|
|
58
98
|
__metadata("design:type", Number)
|
|
59
99
|
], StatisticsMintDataDto.prototype, "dayMintEgldVolume", void 0);
|
|
60
100
|
class StatisticsOtherDto {
|
|
@@ -94,7 +134,10 @@ __decorate([
|
|
|
94
134
|
__metadata("design:type", StatisticsOtherDto)
|
|
95
135
|
], StatisticsDto.prototype, "other", void 0);
|
|
96
136
|
__decorate([
|
|
97
|
-
(0, swagger_1.ApiProperty)({
|
|
137
|
+
(0, swagger_1.ApiProperty)({
|
|
138
|
+
type: StatisticsTradeDataDto,
|
|
139
|
+
description: 'Trading statistics for the collection including volume and price data',
|
|
140
|
+
}),
|
|
98
141
|
__metadata("design:type", StatisticsTradeDataDto)
|
|
99
142
|
], StatisticsDto.prototype, "tradeData", void 0);
|
|
100
143
|
__decorate([
|
|
@@ -1,6 +1,16 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.GroupChatProfileDoc = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
14
|
const chat_data_type_enum_1 = require("../../../enums/chat-data-type.enum");
|
|
5
15
|
class GroupChatProfileDoc {
|
|
6
16
|
constructor(props) {
|
|
@@ -12,3 +22,78 @@ class GroupChatProfileDoc {
|
|
|
12
22
|
}
|
|
13
23
|
}
|
|
14
24
|
exports.GroupChatProfileDoc = GroupChatProfileDoc;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Data type identifier for group chat profile',
|
|
28
|
+
enum: chat_data_type_enum_1.ChatDataType,
|
|
29
|
+
example: chat_data_type_enum_1.ChatDataType.GROUP_CHAT_PROFILE,
|
|
30
|
+
default: chat_data_type_enum_1.ChatDataType.GROUP_CHAT_PROFILE,
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], GroupChatProfileDoc.prototype, "dataType", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({
|
|
36
|
+
description: 'Name of the group chat',
|
|
37
|
+
example: 'NFT Collectors Group',
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GroupChatProfileDoc.prototype, "name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
description: 'Unique identifier for the chat',
|
|
44
|
+
example: 'chat-123456',
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], GroupChatProfileDoc.prototype, "chatId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: 'Description of the group chat',
|
|
51
|
+
example: 'A group for NFT collectors to discuss latest trends',
|
|
52
|
+
required: false,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], GroupChatProfileDoc.prototype, "description", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({
|
|
58
|
+
description: 'Profile picture URL for the group chat',
|
|
59
|
+
example: 'https://example.com/profile.jpg',
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], GroupChatProfileDoc.prototype, "profile", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({
|
|
65
|
+
description: 'Address of the group chat owner',
|
|
66
|
+
example: 'erd1...',
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], GroupChatProfileDoc.prototype, "owner", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: 'Collection of addresses or identifiers associated with the group',
|
|
73
|
+
type: [String],
|
|
74
|
+
example: ['address1', 'address2'],
|
|
75
|
+
default: [],
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", Array)
|
|
78
|
+
], GroupChatProfileDoc.prototype, "collection", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, swagger_1.ApiProperty)({
|
|
81
|
+
description: 'Partition key for Cosmos DB',
|
|
82
|
+
example: 'chat-123456',
|
|
83
|
+
}),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], GroupChatProfileDoc.prototype, "pk", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
description: 'Document ID in Cosmos DB',
|
|
89
|
+
example: 'chat-123456-GROUP_CHAT_PROFILE',
|
|
90
|
+
}),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], GroupChatProfileDoc.prototype, "id", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, swagger_1.ApiProperty)({
|
|
95
|
+
description: 'Cosmos DB timestamp',
|
|
96
|
+
example: 1640995200,
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], GroupChatProfileDoc.prototype, "_ts", void 0);
|