@xoxno/types 1.0.24 → 1.0.25
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 +1 -1
- package/dist/common/enums.js +1 -1
- package/dist/common/kusto/wallet-stats.js +1 -1
- package/dist/cosmos-db/documents/activity/nft-activity.doc.js +3 -3
- package/dist/cosmos-db/documents/collection/globalOffer.js +2 -2
- package/dist/cosmos-db/documents/collection/profile.js +2 -2
- package/dist/cosmos-db/documents/collection/stats.js +2 -2
- package/dist/cosmos-db/documents/token/nft-details.doc.js +1 -1
- package/dist/cosmos-db/documents/token/nft-offer.doc.js +2 -2
- package/dist/cosmos-db/documents/user/user-profile.doc.js +2 -2
- package/dist/requests/collection/collection-mint-profile.filter.js +1 -1
- package/dist/requests/collection/collection-profile.filter.js +1 -1
- package/dist/requests/collection/collection-stats.filter.js +1 -1
- package/dist/requests/nft-activity-data/nft-activity.filter.js +1 -1
- package/dist/requests/nft-data/nft-doc.filter.js +1 -1
- package/package.json +1 -1
package/dist/common/enums.d.ts
CHANGED
package/dist/common/enums.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AuctionTypes = exports.MarketplacesOnSaleNames = exports.StorageContainerName = exports.EsdtTokenType = exports.EsdtTokenSubType = exports.ActivityChain = void 0;
|
|
4
4
|
var ActivityChain;
|
|
5
5
|
(function (ActivityChain) {
|
|
6
|
-
ActivityChain["
|
|
6
|
+
ActivityChain["MVX"] = "MVX";
|
|
7
7
|
ActivityChain["SUI"] = "SUI";
|
|
8
8
|
})(ActivityChain || (exports.ActivityChain = ActivityChain = {}));
|
|
9
9
|
var EsdtTokenSubType;
|
|
@@ -61,7 +61,7 @@ class WalletTradingStats {
|
|
|
61
61
|
usdValue: data.SellerMinPriceData?.UsdValue ?? null,
|
|
62
62
|
}
|
|
63
63
|
: null;
|
|
64
|
-
this.chain = data.chain ?? enums_1.ActivityChain.
|
|
64
|
+
this.chain = data.chain ?? enums_1.ActivityChain.MVX;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
exports.WalletTradingStats = WalletTradingStats;
|
|
@@ -17,11 +17,11 @@ const event_source_enum_1 = require("../../../requests/nft-activity-data/event-s
|
|
|
17
17
|
const nft_activity_type_enum_1 = require("../../../requests/nft-activity-data/nft-activity-type.enum");
|
|
18
18
|
class NftActivityDoc {
|
|
19
19
|
constructor(data) {
|
|
20
|
-
this.chain = enums_1.ActivityChain.
|
|
20
|
+
this.chain = enums_1.ActivityChain.MVX;
|
|
21
21
|
Object.assign(this, data);
|
|
22
22
|
this.id = (0, uuid_1.v4)();
|
|
23
23
|
this.pk = this.activityData.collection;
|
|
24
|
-
this.chain = this.chain || enums_1.ActivityChain.
|
|
24
|
+
this.chain = this.chain || enums_1.ActivityChain.MVX;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.NftActivityDoc = NftActivityDoc;
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
], NftActivityDoc.prototype, "eventOrder", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, swagger_1.ApiProperty)({
|
|
59
|
-
example: enums_1.ActivityChain.
|
|
59
|
+
example: enums_1.ActivityChain.MVX,
|
|
60
60
|
enum: enums_1.ActivityChain,
|
|
61
61
|
description: 'Blockchain network where the activity occurred',
|
|
62
62
|
}),
|
|
@@ -20,7 +20,7 @@ class GlobalOfferDoc {
|
|
|
20
20
|
this.dataType = dataTypes_1.CollectionDataType.GlobalOffer;
|
|
21
21
|
this.attributes = [];
|
|
22
22
|
this.isActive = true;
|
|
23
|
-
this.chain = enums_1.ActivityChain.
|
|
23
|
+
this.chain = enums_1.ActivityChain.MVX;
|
|
24
24
|
Object.assign(this, props);
|
|
25
25
|
this.id = `${this.collection}-${this.offerId}-${this.marketplace}-${this.dataType}`;
|
|
26
26
|
}
|
|
@@ -146,7 +146,7 @@ __decorate([
|
|
|
146
146
|
(0, swagger_1.ApiProperty)({
|
|
147
147
|
description: 'Blockchain chain',
|
|
148
148
|
enum: enums_1.ActivityChain,
|
|
149
|
-
example: enums_1.ActivityChain.
|
|
149
|
+
example: enums_1.ActivityChain.MVX,
|
|
150
150
|
}),
|
|
151
151
|
__metadata("design:type", String)
|
|
152
152
|
], GlobalOfferDoc.prototype, "chain", void 0);
|
|
@@ -66,7 +66,7 @@ class CollectionProfileDoc {
|
|
|
66
66
|
holdersCount: 0,
|
|
67
67
|
}),
|
|
68
68
|
});
|
|
69
|
-
this.chain = enums_1.ActivityChain.
|
|
69
|
+
this.chain = enums_1.ActivityChain.MVX;
|
|
70
70
|
this.transferPolicies = [];
|
|
71
71
|
this.owner = '';
|
|
72
72
|
this.creator = '';
|
|
@@ -193,7 +193,7 @@ __decorate([
|
|
|
193
193
|
(0, swagger_1.ApiProperty)({
|
|
194
194
|
description: 'Blockchain chain',
|
|
195
195
|
enum: enums_1.ActivityChain,
|
|
196
|
-
example: enums_1.ActivityChain.
|
|
196
|
+
example: enums_1.ActivityChain.MVX,
|
|
197
197
|
}),
|
|
198
198
|
__metadata("design:type", String)
|
|
199
199
|
], CollectionProfileDoc.prototype, "chain", void 0);
|
|
@@ -208,7 +208,7 @@ class CollectionStatsDoc {
|
|
|
208
208
|
this.floorPrice = 0;
|
|
209
209
|
this.listedCount = 0;
|
|
210
210
|
this.tradingStats = new TradingStatistics();
|
|
211
|
-
this.chain = enums_1.ActivityChain.
|
|
211
|
+
this.chain = enums_1.ActivityChain.MVX;
|
|
212
212
|
if (!props?.collection) {
|
|
213
213
|
throw new Error('collection is required');
|
|
214
214
|
}
|
|
@@ -258,7 +258,7 @@ __decorate([
|
|
|
258
258
|
(0, swagger_1.ApiProperty)({
|
|
259
259
|
description: 'Blockchain chain',
|
|
260
260
|
enum: enums_1.ActivityChain,
|
|
261
|
-
example: enums_1.ActivityChain.
|
|
261
|
+
example: enums_1.ActivityChain.MVX,
|
|
262
262
|
}),
|
|
263
263
|
__metadata("design:type", String)
|
|
264
264
|
], CollectionStatsDoc.prototype, "chain", void 0);
|
|
@@ -86,7 +86,7 @@ class NftDoc {
|
|
|
86
86
|
this.onSale = false;
|
|
87
87
|
this.metadata = { attributes: [] };
|
|
88
88
|
this.isTicket = false;
|
|
89
|
-
this.chain = enums_1.ActivityChain.
|
|
89
|
+
this.chain = enums_1.ActivityChain.MVX;
|
|
90
90
|
Object.assign(this, props);
|
|
91
91
|
this.id = this.identifier;
|
|
92
92
|
if (this.type === enums_1.EsdtTokenType.NonFungibleESDT) {
|
|
@@ -18,7 +18,7 @@ class NftOfferDoc {
|
|
|
18
18
|
constructor(props) {
|
|
19
19
|
this.dataType = token_data_enum_1.TokenDataType.Offer;
|
|
20
20
|
this.isActive = true;
|
|
21
|
-
this.chain = enums_1.ActivityChain.
|
|
21
|
+
this.chain = enums_1.ActivityChain.MVX;
|
|
22
22
|
Object.assign(this, props);
|
|
23
23
|
this.id = `${this.identifier}-${this.offerId}-${this.marketplace}-${this.dataType}`;
|
|
24
24
|
if (!this.timestamp) {
|
|
@@ -160,7 +160,7 @@ __decorate([
|
|
|
160
160
|
], NftOfferDoc.prototype, "isActive", void 0);
|
|
161
161
|
__decorate([
|
|
162
162
|
(0, swagger_1.ApiProperty)({
|
|
163
|
-
example: enums_1.ActivityChain.
|
|
163
|
+
example: enums_1.ActivityChain.MVX,
|
|
164
164
|
enum: enums_1.ActivityChain,
|
|
165
165
|
description: 'Blockchain network of the offer',
|
|
166
166
|
}),
|
|
@@ -30,7 +30,7 @@ class UserProfileDoc {
|
|
|
30
30
|
this.isPoolOwner = false;
|
|
31
31
|
this.shard = 0;
|
|
32
32
|
this.userDeposit = [];
|
|
33
|
-
this.chain = enums_1.ActivityChain.
|
|
33
|
+
this.chain = enums_1.ActivityChain.MVX;
|
|
34
34
|
this._ts = 0;
|
|
35
35
|
this.id = '';
|
|
36
36
|
Object.assign(this, props);
|
|
@@ -117,7 +117,7 @@ __decorate([
|
|
|
117
117
|
__metadata("design:type", Array)
|
|
118
118
|
], UserProfileDoc.prototype, "userDeposit", void 0);
|
|
119
119
|
__decorate([
|
|
120
|
-
(0, swagger_1.ApiProperty)({ example: enums_1.ActivityChain.
|
|
120
|
+
(0, swagger_1.ApiProperty)({ example: enums_1.ActivityChain.MVX, enum: enums_1.ActivityChain }),
|
|
121
121
|
__metadata("design:type", String)
|
|
122
122
|
], UserProfileDoc.prototype, "chain", void 0);
|
|
123
123
|
__decorate([
|
|
@@ -15,7 +15,7 @@ class CollectionMintProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGen
|
|
|
15
15
|
],
|
|
16
16
|
chain: props.filters?.chain &&
|
|
17
17
|
props.filters.chain.length === 1 &&
|
|
18
|
-
props.filters.chain[0] === enums_1.ActivityChain.
|
|
18
|
+
props.filters.chain[0] === enums_1.ActivityChain.MVX
|
|
19
19
|
? undefined
|
|
20
20
|
: props.filters?.chain,
|
|
21
21
|
};
|
|
@@ -16,7 +16,7 @@ class CollectionProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGeneric
|
|
|
16
16
|
...props?.filters,
|
|
17
17
|
chain: props.filters?.chain &&
|
|
18
18
|
props.filters.chain.length === 1 &&
|
|
19
|
-
props.filters.chain[0] === enums_1.ActivityChain.
|
|
19
|
+
props.filters.chain[0] === enums_1.ActivityChain.MVX
|
|
20
20
|
? undefined
|
|
21
21
|
: props.filters?.chain,
|
|
22
22
|
};
|
|
@@ -50,7 +50,7 @@ class CollectionStatsFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFi
|
|
|
50
50
|
...props?.filters,
|
|
51
51
|
chain: props?.filters?.chain &&
|
|
52
52
|
props?.filters.chain.length === 1 &&
|
|
53
|
-
props?.filters.chain[0] === enums_1.ActivityChain.
|
|
53
|
+
props?.filters.chain[0] === enums_1.ActivityChain.MVX
|
|
54
54
|
? undefined
|
|
55
55
|
: props?.filters?.chain,
|
|
56
56
|
};
|
|
@@ -98,7 +98,7 @@ class NftActivityFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
|
|
|
98
98
|
...props?.filters,
|
|
99
99
|
chain: props?.filters?.chain &&
|
|
100
100
|
props.filters.chain.length === 1 &&
|
|
101
|
-
props.filters.chain[0] === enums_1.ActivityChain.
|
|
101
|
+
props.filters.chain[0] === enums_1.ActivityChain.MVX
|
|
102
102
|
? undefined
|
|
103
103
|
: props?.filters?.chain,
|
|
104
104
|
};
|
|
@@ -127,7 +127,7 @@ class NftDocFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter {
|
|
|
127
127
|
...props?.filters,
|
|
128
128
|
chain: props.filters?.chain &&
|
|
129
129
|
props.filters.chain.length === 1 &&
|
|
130
|
-
props.filters.chain[0] === enums_1.ActivityChain.
|
|
130
|
+
props.filters.chain[0] === enums_1.ActivityChain.MVX
|
|
131
131
|
? undefined
|
|
132
132
|
: props.filters?.chain,
|
|
133
133
|
};
|