@xoxno/sdk-js 0.1.76-alpha → 0.1.78-alpha
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/711.heavy.bundle.js +2 -0
- package/dist/711.heavy.bundle.js.LICENSE.txt +10 -0
- package/{out/cjs → dist}/collection/index.d.ts +13 -5
- package/dist/collection/index.d.ts.map +1 -0
- package/{out/cjs → dist}/common/index.d.ts +10 -1
- package/dist/common/index.d.ts.map +1 -0
- package/dist/index.large.d.ts +5 -0
- package/dist/index.large.d.ts.map +1 -0
- package/{out/cjs/index.d.ts → dist/index.light.d.ts} +1 -2
- package/dist/index.light.d.ts.map +1 -0
- package/{out/cjs → dist}/interactions/index.d.ts +1 -0
- package/dist/interactions/index.d.ts.map +1 -0
- package/{out/cjs → dist}/launchpad/index.d.ts +1 -0
- package/dist/launchpad/index.d.ts.map +1 -0
- package/dist/main.heavy.bundle.js +1 -0
- package/dist/main.light.bundle.js +1 -0
- package/{out/cjs → dist}/nft/index.d.ts +1 -0
- package/dist/nft/index.d.ts.map +1 -0
- package/{out/cjs → dist}/staking/index.d.ts +1 -0
- package/dist/staking/index.d.ts.map +1 -0
- package/{out/cjs → dist}/types/collection.d.ts +34 -6
- package/dist/types/collection.d.ts.map +1 -0
- package/{out/cjs → dist}/types/common.d.ts +10 -0
- package/dist/types/common.d.ts.map +1 -0
- package/{out/cjs → dist}/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/{out/cjs → dist}/types/interactions.d.ts +1 -0
- package/dist/types/interactions.d.ts.map +1 -0
- package/{out/cjs → dist}/types/nft.d.ts +1 -0
- package/dist/types/nft.d.ts.map +1 -0
- package/{out/cjs → dist}/types/staking.d.ts +25 -1
- package/dist/types/staking.d.ts.map +1 -0
- package/{out/cjs → dist}/types/trading.d.ts +1 -0
- package/dist/types/trading.d.ts.map +1 -0
- package/{out/cjs → dist}/types/user.d.ts +60 -0
- package/dist/types/user.d.ts.map +1 -0
- package/{out/cjs → dist}/users/index.d.ts +36 -4
- package/dist/users/index.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/SmartContractAbis.d.ts +1 -0
- package/dist/utils/SmartContractAbis.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/SmartContractService.d.ts +1 -0
- package/dist/utils/SmartContractService.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/api.d.ts +1 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/const.d.ts +1 -0
- package/dist/utils/const.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/getActivity.d.ts +2 -1
- package/dist/utils/getActivity.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/helpers.d.ts +1 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/regex.d.ts +1 -0
- package/dist/utils/regex.d.ts.map +1 -0
- package/{out/cjs → dist}/utils/scCalls.d.ts +1 -0
- package/dist/utils/scCalls.d.ts.map +1 -0
- package/package.json +17 -11
- package/out/cjs/collection/index.js +0 -625
- package/out/cjs/collection/index.js.map +0 -1
- package/out/cjs/common/index.js +0 -141
- package/out/cjs/common/index.js.map +0 -1
- package/out/cjs/index.js +0 -26
- package/out/cjs/index.js.map +0 -1
- package/out/cjs/index.large.d.ts +0 -2
- package/out/cjs/index.large.js +0 -19
- package/out/cjs/index.large.js.map +0 -1
- package/out/cjs/interactions/index.js +0 -678
- package/out/cjs/interactions/index.js.map +0 -1
- package/out/cjs/launchpad/index.js +0 -158
- package/out/cjs/launchpad/index.js.map +0 -1
- package/out/cjs/nft/index.js +0 -121
- package/out/cjs/nft/index.js.map +0 -1
- package/out/cjs/staking/index.js +0 -29
- package/out/cjs/staking/index.js.map +0 -1
- package/out/cjs/types/collection.js +0 -195
- package/out/cjs/types/collection.js.map +0 -1
- package/out/cjs/types/common.js +0 -3
- package/out/cjs/types/common.js.map +0 -1
- package/out/cjs/types/index.js +0 -24
- package/out/cjs/types/index.js.map +0 -1
- package/out/cjs/types/interactions.js +0 -11
- package/out/cjs/types/interactions.js.map +0 -1
- package/out/cjs/types/nft.js +0 -3
- package/out/cjs/types/nft.js.map +0 -1
- package/out/cjs/types/staking.js +0 -15
- package/out/cjs/types/staking.js.map +0 -1
- package/out/cjs/types/trading.js +0 -52
- package/out/cjs/types/trading.js.map +0 -1
- package/out/cjs/types/user.js +0 -13
- package/out/cjs/types/user.js.map +0 -1
- package/out/cjs/users/index.js +0 -335
- package/out/cjs/users/index.js.map +0 -1
- package/out/cjs/utils/SmartContractAbis.js +0 -103
- package/out/cjs/utils/SmartContractAbis.js.map +0 -1
- package/out/cjs/utils/SmartContractService.js +0 -13
- package/out/cjs/utils/SmartContractService.js.map +0 -1
- package/out/cjs/utils/api.js +0 -79
- package/out/cjs/utils/api.js.map +0 -1
- package/out/cjs/utils/const.js +0 -17
- package/out/cjs/utils/const.js.map +0 -1
- package/out/cjs/utils/getActivity.js +0 -65
- package/out/cjs/utils/getActivity.js.map +0 -1
- package/out/cjs/utils/helpers.js +0 -27
- package/out/cjs/utils/helpers.js.map +0 -1
- package/out/cjs/utils/regex.js +0 -12
- package/out/cjs/utils/regex.js.map +0 -1
- package/out/cjs/utils/scCalls.js +0 -39
- package/out/cjs/utils/scCalls.js.map +0 -1
- package/out/src/collection/__tests__/collection.test.js +0 -2
- package/out/src/collection/__tests__/collection.test.js.map +0 -1
- package/out/src/collection/index.js +0 -2
- package/out/src/collection/index.js.map +0 -1
- package/out/src/common/index.js +0 -2
- package/out/src/common/index.js.map +0 -1
- package/out/src/index.js +0 -2
- package/out/src/index.js.map +0 -1
- package/out/src/index.large.js +0 -2
- package/out/src/index.large.js.map +0 -1
- package/out/src/interactions/__tests__/market.test.js +0 -2
- package/out/src/interactions/__tests__/market.test.js.map +0 -1
- package/out/src/interactions/index.js +0 -2
- package/out/src/interactions/index.js.map +0 -1
- package/out/src/launchpad/__tests__/market.test.js +0 -2
- package/out/src/launchpad/__tests__/market.test.js.map +0 -1
- package/out/src/launchpad/index.js +0 -2
- package/out/src/launchpad/index.js.map +0 -1
- package/out/src/nft/__tests__/nft.test.js +0 -2
- package/out/src/nft/__tests__/nft.test.js.map +0 -1
- package/out/src/nft/index.js +0 -2
- package/out/src/nft/index.js.map +0 -1
- package/out/src/staking/index.js +0 -2
- package/out/src/staking/index.js.map +0 -1
- package/out/src/types/collection.js +0 -2
- package/out/src/types/collection.js.map +0 -1
- package/out/src/types/common.js +0 -2
- package/out/src/types/common.js.map +0 -1
- package/out/src/types/index.js +0 -2
- package/out/src/types/index.js.map +0 -1
- package/out/src/types/interactions.js +0 -2
- package/out/src/types/interactions.js.map +0 -1
- package/out/src/types/nft.js +0 -2
- package/out/src/types/nft.js.map +0 -1
- package/out/src/types/staking.js +0 -2
- package/out/src/types/staking.js.map +0 -1
- package/out/src/types/trading.js +0 -2
- package/out/src/types/trading.js.map +0 -1
- package/out/src/types/user.js +0 -2
- package/out/src/types/user.js.map +0 -1
- package/out/src/users/__tests__/user.test.js +0 -2
- package/out/src/users/__tests__/user.test.js.map +0 -1
- package/out/src/users/index.js +0 -2
- package/out/src/users/index.js.map +0 -1
- package/out/src/utils/SmartContractAbis.js +0 -2
- package/out/src/utils/SmartContractAbis.js.map +0 -1
- package/out/src/utils/SmartContractService.js +0 -2
- package/out/src/utils/SmartContractService.js.map +0 -1
- package/out/src/utils/api.js +0 -2
- package/out/src/utils/api.js.map +0 -1
- package/out/src/utils/const.js +0 -2
- package/out/src/utils/const.js.map +0 -1
- package/out/src/utils/getActivity.js +0 -2
- package/out/src/utils/getActivity.js.map +0 -1
- package/out/src/utils/helpers.js +0 -2
- package/out/src/utils/helpers.js.map +0 -1
- package/out/src/utils/regex.js +0 -2
- package/out/src/utils/regex.js.map +0 -1
- package/out/src/utils/scCalls.js +0 -2
- package/out/src/utils/scCalls.js.map +0 -1
|
@@ -1,625 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CollectionModule = void 0;
|
|
13
|
-
const collection_1 = require("../types/collection");
|
|
14
|
-
const index_1 = require("../index");
|
|
15
|
-
const getActivity_1 = require("../utils/getActivity");
|
|
16
|
-
const regex_1 = require("../utils/regex");
|
|
17
|
-
/**
|
|
18
|
-
* CollectionModule provides a set of methods to interact with NFT collections.
|
|
19
|
-
* It includes methods for getting collection profile information, floor price,
|
|
20
|
-
* collection attributes, and searching NFTs within a collection.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* const collectionModule = new CollectionModule();
|
|
24
|
-
*/
|
|
25
|
-
class CollectionModule {
|
|
26
|
-
constructor() {
|
|
27
|
-
/**
|
|
28
|
-
* @public
|
|
29
|
-
* @async
|
|
30
|
-
* @function getCollectionProfile
|
|
31
|
-
* @param {string} collection - The ticker of the collection to fetch the profile for.
|
|
32
|
-
* @returns {Promise<ICollectionProfile>} A promise that resolves to the fetched collection profile.
|
|
33
|
-
*
|
|
34
|
-
* This function fetches the profile of a given collection. It takes the following parameter:
|
|
35
|
-
* - collection (string): The ticker of the collection to fetch the profile for.
|
|
36
|
-
*
|
|
37
|
-
* The function first validates the input ticker and checks if it is a valid collection ticker.
|
|
38
|
-
* If it is valid, the function fetches the collection profile using the API.
|
|
39
|
-
* Finally, it returns a promise that resolves to the fetched collection profile.
|
|
40
|
-
*/
|
|
41
|
-
this.getCollectionProfile = (collection) => __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
43
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
44
|
-
}
|
|
45
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${collection}/profile`, {
|
|
46
|
-
next: {
|
|
47
|
-
tags: ['getCollectionProfile'],
|
|
48
|
-
revalidate: 30,
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
return response;
|
|
52
|
-
});
|
|
53
|
-
/**
|
|
54
|
-
* @public
|
|
55
|
-
* @async
|
|
56
|
-
* @function getDailyTrending
|
|
57
|
-
* @returns {Promise<NftData[]>} A promise that resolves to the array of trending NFTs.
|
|
58
|
-
* This function fetches the top NFTs that are trending today based on their floor and volumes
|
|
59
|
-
*/
|
|
60
|
-
this.getDailyTrending = () => __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const response = yield this.api.fetchWithTimeout('/nfts/getDailyTrending', {
|
|
62
|
-
next: {
|
|
63
|
-
tags: ['getDailyTrending'],
|
|
64
|
-
revalidate: 180,
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
return response;
|
|
68
|
-
});
|
|
69
|
-
/**
|
|
70
|
-
* Fetches the floor price of a collection.
|
|
71
|
-
* @param collection - The ticker of the collection.
|
|
72
|
-
* @param token - The token for the floor price calculation (default: 'EGLD').
|
|
73
|
-
* @returns A Promise that resolves to the collection's floor price as a number.
|
|
74
|
-
* @throws An error if the provided collection ticker is invalid.
|
|
75
|
-
*/
|
|
76
|
-
this.getCollectionFloorPrice = (collection_2, ...args_1) => __awaiter(this, [collection_2, ...args_1], void 0, function* (collection, token = 'EGLD') {
|
|
77
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
78
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
79
|
-
}
|
|
80
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${collection}/floor-price`, {
|
|
81
|
-
next: {
|
|
82
|
-
tags: ['getCollectionFloorPrice'],
|
|
83
|
-
},
|
|
84
|
-
params: {
|
|
85
|
-
token,
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
return (response === null || response === void 0 ? void 0 : response.price) ? response.price : 0;
|
|
89
|
-
});
|
|
90
|
-
/**
|
|
91
|
-
* @public
|
|
92
|
-
* @async
|
|
93
|
-
* @function getCollectionAttributes
|
|
94
|
-
* @param {string} collection - The ticker of the collection to fetch the attributes for.
|
|
95
|
-
* @returns {Promise<ICollectionAttributes>} A promise that resolves to the fetched collection attributes.
|
|
96
|
-
*
|
|
97
|
-
* This function fetches the attributes of a given collection. It takes the following parameter:
|
|
98
|
-
* - collection (string): The ticker of the collection to fetch the attributes for.
|
|
99
|
-
*
|
|
100
|
-
* The function first validates the input ticker and checks if it is a valid collection ticker.
|
|
101
|
-
* If it is valid, the function fetches the collection attributes using the API.
|
|
102
|
-
* Finally, it returns a promise that resolves to the fetched collection attributes.
|
|
103
|
-
*/
|
|
104
|
-
this.getCollectionAttributes = (collection) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
106
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
107
|
-
}
|
|
108
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${collection}/attributes`, {
|
|
109
|
-
next: {
|
|
110
|
-
tags: ['getCollectionAttributes'],
|
|
111
|
-
revalidate: 180,
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
return response;
|
|
115
|
-
});
|
|
116
|
-
/**
|
|
117
|
-
* Searches for NFTs based on the provided arguments.
|
|
118
|
-
* @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
|
|
119
|
-
* @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
|
|
120
|
-
* @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 35.
|
|
121
|
-
*/
|
|
122
|
-
this.getNFTs = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
var _a, _b, _c, _d, _e;
|
|
124
|
-
(_a = args === null || args === void 0 ? void 0 : args.collections) === null || _a === void 0 ? void 0 : _a.forEach((element) => {
|
|
125
|
-
if (!(0, regex_1.isValidCollectionTicker)(element)) {
|
|
126
|
-
throw new Error('Invalid collection ticker: ' + element);
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
if (args.top && args.top > 35) {
|
|
130
|
-
throw new Error('Top cannot be greater than 35');
|
|
131
|
-
}
|
|
132
|
-
const ranges = [];
|
|
133
|
-
if (args.priceRange) {
|
|
134
|
-
ranges.push(Object.assign(Object.assign({}, args.priceRange), { field: args.auctionType == collection_1.AuctionTypes.Auctions
|
|
135
|
-
? 'saleInfo.currentBidShort'
|
|
136
|
-
: 'saleInfo.minBidShort' }));
|
|
137
|
-
}
|
|
138
|
-
if (args.rankRange) {
|
|
139
|
-
ranges.push(Object.assign(Object.assign({}, args.rankRange), { field: 'metadata.rarity.rank' }));
|
|
140
|
-
}
|
|
141
|
-
const payloadBody = {
|
|
142
|
-
filters: {
|
|
143
|
-
dataType: (_b = args.dataType) !== null && _b !== void 0 ? _b : ['nft'],
|
|
144
|
-
// @borispoehland Has to be false only if we want to show the expired auctions, undefined to show all, and true only actives
|
|
145
|
-
activeAuction: args.activeAuctions,
|
|
146
|
-
collection: (_c = args.collections) !== null && _c !== void 0 ? _c : [],
|
|
147
|
-
onSale: args.onlyOnSale,
|
|
148
|
-
saleInfo: {
|
|
149
|
-
seller: args.listedBy || [],
|
|
150
|
-
marketplace: args.listedOnlyOn || undefined,
|
|
151
|
-
paymentToken: args.listedInToken || [],
|
|
152
|
-
auctionType: args.auctionType == collection_1.AuctionTypes.Auctions
|
|
153
|
-
? ['NftBid', 'SftAll']
|
|
154
|
-
: args.auctionType == collection_1.AuctionTypes.FixedPrice
|
|
155
|
-
? ['Nft', 'SftOnePerPayment']
|
|
156
|
-
: args.auctionType == collection_1.AuctionTypes.AllListed
|
|
157
|
-
? ['NftBid', 'SftAll', 'Nft', 'SftOnePerPayment']
|
|
158
|
-
: undefined,
|
|
159
|
-
},
|
|
160
|
-
owner: args.ownedBy || [],
|
|
161
|
-
verifiedOnly: args.onlyVerified || false,
|
|
162
|
-
metadata: {
|
|
163
|
-
attributes: args.attributes || undefined,
|
|
164
|
-
},
|
|
165
|
-
range: ranges,
|
|
166
|
-
cp_staked: args.isStaked || undefined,
|
|
167
|
-
},
|
|
168
|
-
applyNftExtraDetails: args.applyNftExtraDetails,
|
|
169
|
-
orderBy: args.orderBy || [],
|
|
170
|
-
select: args.onlySelectFields || [],
|
|
171
|
-
includeCount: args.includeCount || false,
|
|
172
|
-
top: args.top || 35,
|
|
173
|
-
skip: args.skip || 0,
|
|
174
|
-
};
|
|
175
|
-
const response = yield this.api.fetchWithTimeout(`/nft/query`, {
|
|
176
|
-
params: {
|
|
177
|
-
filter: JSON.stringify(payloadBody),
|
|
178
|
-
},
|
|
179
|
-
next: {
|
|
180
|
-
tags: ['getCollectionNFTs'],
|
|
181
|
-
},
|
|
182
|
-
cache: 'no-store',
|
|
183
|
-
});
|
|
184
|
-
return Object.assign(Object.assign({}, response), { getNextPagePayload: Object.assign(Object.assign({}, args), { skip: ((_d = args.skip) !== null && _d !== void 0 ? _d : 0) + ((_e = args.top) !== null && _e !== void 0 ? _e : 35) }) });
|
|
185
|
-
});
|
|
186
|
-
/**
|
|
187
|
-
* @public
|
|
188
|
-
* @async
|
|
189
|
-
* @function suggestCollections
|
|
190
|
-
* @param {SuggestNFTsArgs} args - An object containing the necessary parameters to fetch suggested collections results.
|
|
191
|
-
* @returns {Promise<SuggestResults>} A promise that resolves to the fetched collections results.
|
|
192
|
-
*
|
|
193
|
-
* This function fetches suggested collections results based on the provided arguments. It takes an object with the following properties:
|
|
194
|
-
* - name (string): The name to search for (required).
|
|
195
|
-
* - top (number, optional): The maximum number of results to return (default is 35, cannot be greater than 35).
|
|
196
|
-
* - skip (number, optional): The number of results to skip (default is 0).
|
|
197
|
-
*
|
|
198
|
-
* Finally, it returns a promise that resolves to the fetched collections results.
|
|
199
|
-
*/
|
|
200
|
-
this.suggestCollections = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
201
|
-
if (args.top && args.top > 35) {
|
|
202
|
-
throw new Error('Top cannot be greater than 35');
|
|
203
|
-
}
|
|
204
|
-
if (!args.name) {
|
|
205
|
-
throw new Error('Name is required');
|
|
206
|
-
}
|
|
207
|
-
const payloadBody = {
|
|
208
|
-
name: args.name,
|
|
209
|
-
top: args.top || 35,
|
|
210
|
-
skip: args.skip || 0,
|
|
211
|
-
};
|
|
212
|
-
return yield this.api.fetchWithTimeout(`/collection/search`, {
|
|
213
|
-
params: {
|
|
214
|
-
filter: JSON.stringify(payloadBody),
|
|
215
|
-
},
|
|
216
|
-
next: {
|
|
217
|
-
tags: ['/collection/search'],
|
|
218
|
-
revalidate: 180,
|
|
219
|
-
},
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
/**
|
|
223
|
-
* @public
|
|
224
|
-
* @async
|
|
225
|
-
* @function collectionListings
|
|
226
|
-
* @param {string} ticker - The unique collection identifier called ticker
|
|
227
|
-
* @returns {Promise<ListingDistribution[]>} A promise that resolves to the distribution of listings
|
|
228
|
-
*/
|
|
229
|
-
this.collectionListingsAnalytics = (ticker) => __awaiter(this, void 0, void 0, function* () {
|
|
230
|
-
return yield this.api.fetchWithTimeout(`collection/${ticker}/listing`, {
|
|
231
|
-
next: {
|
|
232
|
-
tags: ['collection/${ticker}/listing'],
|
|
233
|
-
revalidate: 500,
|
|
234
|
-
},
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
/**
|
|
238
|
-
* Retrieves trading history based on the provided arguments.
|
|
239
|
-
*
|
|
240
|
-
* @param {TradincActivityArgs} args - The arguments for filtering the trading activity.
|
|
241
|
-
* @returns {Promise<TradingActivityResponse>} A promise resolving to a TradingActivityResponse object containing the activity.
|
|
242
|
-
* @throws {Error} Throws an error if the 'top' argument is greater than 35.
|
|
243
|
-
*/
|
|
244
|
-
this.getTradingActivity = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
245
|
-
return yield (0, getActivity_1.getActivity)(args, this.api);
|
|
246
|
-
});
|
|
247
|
-
/**
|
|
248
|
-
* Fetch collections profiles based on the provided arguments.
|
|
249
|
-
* @param {GetCollectionsArgs} args - The GetCollectionsArgs object containing the search parameters.
|
|
250
|
-
* @returns {Promise<CollectionsNFTsResponse>} A Promise that resolves to the CollectionsNFTsResponse object.
|
|
251
|
-
* @throws An error if the 'top' value is greater than 35.
|
|
252
|
-
*/
|
|
253
|
-
this.getCollections = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
254
|
-
if ((args === null || args === void 0 ? void 0 : args.top) && args.top > 25) {
|
|
255
|
-
throw new Error('Top cannot be greater than 25');
|
|
256
|
-
}
|
|
257
|
-
const payloadBody = {
|
|
258
|
-
skip: (args === null || args === void 0 ? void 0 : args.skip) || 0,
|
|
259
|
-
top: (args === null || args === void 0 ? void 0 : args.top) || 25,
|
|
260
|
-
select: (args === null || args === void 0 ? void 0 : args.onlySelectFields) || [],
|
|
261
|
-
filters: Object.assign({ dataType: 'collectionProfile', isMintable: (args === null || args === void 0 ? void 0 : args.onlyMintable) || undefined }, ((args === null || args === void 0 ? void 0 : args.collections) &&
|
|
262
|
-
args.collections.length > 0 && {
|
|
263
|
-
collection: args.collections,
|
|
264
|
-
})),
|
|
265
|
-
orderBy: [(args === null || args === void 0 ? void 0 : args.orderBy) || 'statistics.tradeData.weekEgldVolume desc'],
|
|
266
|
-
};
|
|
267
|
-
const response = yield this.api.fetchWithTimeout(`/collection/query`, {
|
|
268
|
-
params: {
|
|
269
|
-
filter: JSON.stringify(payloadBody),
|
|
270
|
-
},
|
|
271
|
-
next: {
|
|
272
|
-
tags: ['getCollections'],
|
|
273
|
-
revalidate: 180,
|
|
274
|
-
},
|
|
275
|
-
});
|
|
276
|
-
return {
|
|
277
|
-
results: response,
|
|
278
|
-
resultsCount: response.length,
|
|
279
|
-
empty: response.length === 0,
|
|
280
|
-
getNextPagePayload: Object.assign(Object.assign({}, args), { skip: ((args === null || args === void 0 ? void 0 : args.skip) || 0) + ((args === null || args === void 0 ? void 0 : args.top) || 25) }),
|
|
281
|
-
hasMoreResults: response.length >= ((args === null || args === void 0 ? void 0 : args.top) || 25),
|
|
282
|
-
};
|
|
283
|
-
});
|
|
284
|
-
/**
|
|
285
|
-
* Fetch global offers based on the provided arguments.
|
|
286
|
-
* @param {GetGlobalOffersArgs} args - The GetCollectionsArgs object containing the search parameters.
|
|
287
|
-
* @returns {Promise<GlobalOffersResult>} A Promise that resolves to the GlobalOffersResult object.
|
|
288
|
-
* @throws An error if the 'top' value is greater than 35.
|
|
289
|
-
*/
|
|
290
|
-
this.getGlobalOffers = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
var _f, _g;
|
|
292
|
-
if ((args === null || args === void 0 ? void 0 : args.top) && args.top > 25) {
|
|
293
|
-
throw new Error('Top cannot be greater than 25');
|
|
294
|
-
}
|
|
295
|
-
const payloadBody = {
|
|
296
|
-
skip: (args === null || args === void 0 ? void 0 : args.skip) || 0,
|
|
297
|
-
top: (args === null || args === void 0 ? void 0 : args.top) || 25,
|
|
298
|
-
select: (args === null || args === void 0 ? void 0 : args.onlySelectFields) || [],
|
|
299
|
-
filters: {
|
|
300
|
-
collection: (args === null || args === void 0 ? void 0 : args.collections) || [],
|
|
301
|
-
withAttributes: (_f = args === null || args === void 0 ? void 0 : args.withAttributes) !== null && _f !== void 0 ? _f : false,
|
|
302
|
-
isActive: (_g = args === null || args === void 0 ? void 0 : args.onlyActive) !== null && _g !== void 0 ? _g : true,
|
|
303
|
-
offerId: args === null || args === void 0 ? void 0 : args.offerIds,
|
|
304
|
-
owner: args === null || args === void 0 ? void 0 : args.ownedBy,
|
|
305
|
-
marketplace: args === null || args === void 0 ? void 0 : args.listedOnlyOn,
|
|
306
|
-
range: (args === null || args === void 0 ? void 0 : args.priceRange)
|
|
307
|
-
? Object.assign(Object.assign({}, args.priceRange), { type: 'priceShort' }) : undefined,
|
|
308
|
-
attributes: args === null || args === void 0 ? void 0 : args.attributes,
|
|
309
|
-
},
|
|
310
|
-
orderBy: [(args === null || args === void 0 ? void 0 : args.orderBy) || collection_1.GlobalOfferOrderBy.PriceHighToLow],
|
|
311
|
-
};
|
|
312
|
-
const response = yield this.api.fetchWithTimeout(`/collection/global-offer/query`, {
|
|
313
|
-
params: {
|
|
314
|
-
filter: JSON.stringify(payloadBody),
|
|
315
|
-
},
|
|
316
|
-
next: {
|
|
317
|
-
tags: ['getGlobalOffers'],
|
|
318
|
-
revalidate: 12,
|
|
319
|
-
},
|
|
320
|
-
});
|
|
321
|
-
return Object.assign(Object.assign({}, response), { getNextPagePayload: Object.assign(Object.assign({}, args), { skip: ((args === null || args === void 0 ? void 0 : args.top) || 25) + response.lastSkip }) });
|
|
322
|
-
});
|
|
323
|
-
/**
|
|
324
|
-
* @public
|
|
325
|
-
* @async
|
|
326
|
-
* @function getCollectionVolume
|
|
327
|
-
* @param {string} collection - The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
|
|
328
|
-
* @param {string} after - The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
|
|
329
|
-
* @param {string} before - The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
|
|
330
|
-
* @param {string} bin - The binning period for the volume data (e.g., '1d' for 1 day).
|
|
331
|
-
* @returns {Promise<CollectionVolume[]>} A promise that resolves to an array of collection volume data.
|
|
332
|
-
*
|
|
333
|
-
* This function fetches volume data for a given collection within a specified date range and binning period. It takes the following parameters:
|
|
334
|
-
* - collection (string): The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
|
|
335
|
-
* - after (string): The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
|
|
336
|
-
* - before (string): The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
|
|
337
|
-
* - bin (string): The binning period for the volume data (e.g., '1d' for 1 day).
|
|
338
|
-
*
|
|
339
|
-
* The function first validates the input collection ticker and checks if it is a valid collection ticker.
|
|
340
|
-
* If it is valid, the function fetches the collection volume data using the API with the specified query parameters.
|
|
341
|
-
* Finally, it returns a promise that resolves to an array of collection volume data.
|
|
342
|
-
*/
|
|
343
|
-
this.getCollectionVolume = (collection, after, before, bin) => __awaiter(this, void 0, void 0, function* () {
|
|
344
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
345
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
346
|
-
}
|
|
347
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${collection}/analytics/volume?startTime=${after}&endTime=${before}&bin=${bin}`, {
|
|
348
|
-
next: {
|
|
349
|
-
tags: ['getCollectionVolume'],
|
|
350
|
-
revalidate: 180,
|
|
351
|
-
},
|
|
352
|
-
});
|
|
353
|
-
return response;
|
|
354
|
-
});
|
|
355
|
-
/**
|
|
356
|
-
* @public
|
|
357
|
-
* @async
|
|
358
|
-
* @function getMarketplaceVolume
|
|
359
|
-
* @param {string} after - The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
|
|
360
|
-
* @param {string} before - The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
|
|
361
|
-
* @param {string} bin - The binning period for the volume data (e.g., '1d' for 1 day).
|
|
362
|
-
* @returns {Promise<CollectionVolume[]>} A promise that resolves to an array of collection volume data.
|
|
363
|
-
*
|
|
364
|
-
* This function fetches volume data for a given collection within a specified date range and binning period. It takes the following parameters:
|
|
365
|
-
* - collection (string): The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
|
|
366
|
-
* - after (string): The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
|
|
367
|
-
* - before (string): The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
|
|
368
|
-
* - bin (string): The binning period for the volume data (e.g., '1d' for 1 day).
|
|
369
|
-
*
|
|
370
|
-
* The function first validates the input collection ticker and checks if it is a valid collection ticker.
|
|
371
|
-
* If it is valid, the function fetches the collection volume data using the API with the specified query parameters.
|
|
372
|
-
* Finally, it returns a promise that resolves to an array of collection volume data.
|
|
373
|
-
*/
|
|
374
|
-
this.getMarketplaceVolume = (after, before, bin) => __awaiter(this, void 0, void 0, function* () {
|
|
375
|
-
const response = yield this.api.fetchWithTimeout(`/analytics/volume?startTime=${after}&endTime=${before}&bin=${bin}`, {
|
|
376
|
-
next: {
|
|
377
|
-
tags: ['getMarketplaceVolume'],
|
|
378
|
-
revalidate: 180,
|
|
379
|
-
},
|
|
380
|
-
});
|
|
381
|
-
return response;
|
|
382
|
-
});
|
|
383
|
-
/**
|
|
384
|
-
* @public
|
|
385
|
-
* @async
|
|
386
|
-
* @function getCollectionOwners
|
|
387
|
-
* @param {string} collection - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
|
|
388
|
-
* @returns {Promise<IOwners>} A promise that resolves a struct of collection information about holders
|
|
389
|
-
*
|
|
390
|
-
* This function fetches owner information for a given collection. It takes the following parameter:
|
|
391
|
-
* - collection (string): The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
|
|
392
|
-
*
|
|
393
|
-
* The function first validates the input collection ticker and checks if it is a valid collection ticker.
|
|
394
|
-
* If it is valid, the function fetches the collection owner information using the API.
|
|
395
|
-
* Finally, it returns a promise that resolves a struct of collection information about holders
|
|
396
|
-
*/
|
|
397
|
-
this.getCollectionOwners = (collection) => __awaiter(this, void 0, void 0, function* () {
|
|
398
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
399
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
400
|
-
}
|
|
401
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${collection}/holders`, {
|
|
402
|
-
next: {
|
|
403
|
-
tags: ['getCollectionOwners'],
|
|
404
|
-
revalidate: 500,
|
|
405
|
-
},
|
|
406
|
-
});
|
|
407
|
-
return response;
|
|
408
|
-
});
|
|
409
|
-
/**
|
|
410
|
-
* @public
|
|
411
|
-
* @async
|
|
412
|
-
* @function getExportOwners
|
|
413
|
-
* @param {string} collection - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
|
|
414
|
-
* @returns {Promise<ISingleHolder[]>} A promise that resolves an array of holders part of the collection.
|
|
415
|
-
*
|
|
416
|
-
* This function fetches owners information for a given collection. It takes the following parameter:
|
|
417
|
-
* - collection (string): The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
|
|
418
|
-
*
|
|
419
|
-
* The function first validates the input collection ticker and checks if it is a valid collection ticker.
|
|
420
|
-
* If it is valid, the function fetches the collection owner information using the API.
|
|
421
|
-
* Finally, it returns a promise that resolves to an array of collection owner information.
|
|
422
|
-
*/
|
|
423
|
-
this.getExportOwners = (collection) => __awaiter(this, void 0, void 0, function* () {
|
|
424
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
425
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
426
|
-
}
|
|
427
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${collection}/holders?exportHolders=true`, {
|
|
428
|
-
next: {
|
|
429
|
-
tags: ['getExportOwners'],
|
|
430
|
-
},
|
|
431
|
-
});
|
|
432
|
-
return response;
|
|
433
|
-
});
|
|
434
|
-
/**
|
|
435
|
-
* @public
|
|
436
|
-
* @async
|
|
437
|
-
* @function getCollectionsStatistics
|
|
438
|
-
* @param {GetCollectionStatsArgs} args - The filter payload for the collection statsitics
|
|
439
|
-
* @returns {Promise<CollectionStatsResults>} A promise that resolves to a struct with information
|
|
440
|
-
* Finally, it returns a promise that resolves a struct with information
|
|
441
|
-
*/
|
|
442
|
-
this.getCollectionsStatistics = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
443
|
-
if ((args === null || args === void 0 ? void 0 : args.top) && args.top > 25) {
|
|
444
|
-
throw new Error('Top cannot be greater than 25');
|
|
445
|
-
}
|
|
446
|
-
const response = yield this.api.fetchWithTimeout(`/collection/stats/query`, {
|
|
447
|
-
params: {
|
|
448
|
-
filter: JSON.stringify(args),
|
|
449
|
-
},
|
|
450
|
-
next: {
|
|
451
|
-
tags: ['collectionStatistics'],
|
|
452
|
-
revalidate: 12,
|
|
453
|
-
},
|
|
454
|
-
});
|
|
455
|
-
return Object.assign(Object.assign({}, response), { getNextPagePayload: Object.assign(Object.assign({}, args), { skip: args.skip + args.top }) });
|
|
456
|
-
});
|
|
457
|
-
/**
|
|
458
|
-
* @public
|
|
459
|
-
* @async
|
|
460
|
-
* @function getCollectionStats
|
|
461
|
-
* @param {GetCollectionStatsArgs} args - The filter payload for the collection statsitics
|
|
462
|
-
* @returns {Promise<CollectionStatsDoc>} A promise that resolves to a struct with information
|
|
463
|
-
* Finally, it returns a promise that resolves a struct with information
|
|
464
|
-
*/
|
|
465
|
-
this.getCollectionStats = (ticker) => __awaiter(this, void 0, void 0, function* () {
|
|
466
|
-
if (!(0, regex_1.isValidCollectionTicker)(ticker)) {
|
|
467
|
-
throw new Error('Invalid collection ticker: ' + ticker);
|
|
468
|
-
}
|
|
469
|
-
return yield this.api.fetchWithTimeout(`/collection/${ticker}/stats`, {
|
|
470
|
-
next: {
|
|
471
|
-
tags: ['collectionStatistics'],
|
|
472
|
-
revalidate: 12,
|
|
473
|
-
},
|
|
474
|
-
});
|
|
475
|
-
});
|
|
476
|
-
this.getAwaitEmpty = (delay) => __awaiter(this, void 0, void 0, function* () {
|
|
477
|
-
return new Promise((resolve) => {
|
|
478
|
-
setTimeout(() => {
|
|
479
|
-
resolve(true);
|
|
480
|
-
}, delay);
|
|
481
|
-
});
|
|
482
|
-
});
|
|
483
|
-
/**
|
|
484
|
-
* @public
|
|
485
|
-
* @async
|
|
486
|
-
* @function getCollectionMintInfo
|
|
487
|
-
* @param {string} ticker - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
|
|
488
|
-
* @returns {Promise<GetCollectionMintInfo>} A promise that resolves to a struct with information
|
|
489
|
-
* Finally, it returns a promise that resolves a struct with information
|
|
490
|
-
*/
|
|
491
|
-
this.getCollectionMintInfo = (_h) => __awaiter(this, [_h], void 0, function* ({ ticker, extra, }) {
|
|
492
|
-
if (!(0, regex_1.isValidCollectionTicker)(ticker)) {
|
|
493
|
-
throw new Error('Invalid collection ticker: ' + ticker);
|
|
494
|
-
}
|
|
495
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${ticker}/drop-info`, Object.assign({ next: {
|
|
496
|
-
tags: [`/collection/${ticker}/drop-info`],
|
|
497
|
-
revalidate: 12,
|
|
498
|
-
} }, extra));
|
|
499
|
-
return response;
|
|
500
|
-
});
|
|
501
|
-
/**
|
|
502
|
-
* @public
|
|
503
|
-
* @async
|
|
504
|
-
* @function getCollectionRanks
|
|
505
|
-
* @param {string} ticker - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
|
|
506
|
-
* @returns {Promise<CollectionRanksExport[]>} A promise that resolves to a struct with information
|
|
507
|
-
* Finally, it returns a promise that resolves a struct with information
|
|
508
|
-
*/
|
|
509
|
-
this.getCollectionRanks = (_j) => __awaiter(this, [_j], void 0, function* ({ ticker, extra, }) {
|
|
510
|
-
if (!(0, regex_1.isValidCollectionTicker)(ticker)) {
|
|
511
|
-
throw new Error('Invalid collection ticker: ' + ticker);
|
|
512
|
-
}
|
|
513
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${ticker}/ranks`, Object.assign({ next: {
|
|
514
|
-
tags: [`/collection/${ticker}/ranks`],
|
|
515
|
-
revalidate: 60,
|
|
516
|
-
} }, extra));
|
|
517
|
-
return response;
|
|
518
|
-
});
|
|
519
|
-
/**
|
|
520
|
-
* @public
|
|
521
|
-
* @async
|
|
522
|
-
* @function getDropInfo
|
|
523
|
-
* @param {string} collectionTag - The unique ID of the collection part of the launchpad smart contract
|
|
524
|
-
* @param {string} creatorTag - The unique ID of the creator part of the launchpad smart contract
|
|
525
|
-
* @returns {Promise<GetCollectionMintInfo>} A promise that resolves to a struct with information
|
|
526
|
-
* Finally, it returns a promise that resolves a struct with information
|
|
527
|
-
*/
|
|
528
|
-
this.getDropInfo = (_k) => __awaiter(this, [_k], void 0, function* ({ collectionTag, creatorTag, extra, }) {
|
|
529
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${creatorTag}/${collectionTag}/drop-info`, Object.assign({ next: {
|
|
530
|
-
tags: [`/collection/${creatorTag}/${collectionTag}/drop-info`],
|
|
531
|
-
revalidate: 12,
|
|
532
|
-
} }, extra));
|
|
533
|
-
return response;
|
|
534
|
-
});
|
|
535
|
-
/**
|
|
536
|
-
* @public
|
|
537
|
-
* @async
|
|
538
|
-
* @function getCollectionGraphData
|
|
539
|
-
* @param category - The ticker of the collection.
|
|
540
|
-
* @returns {Promise<AnalyticsGraphs>} A promise the required analytics data
|
|
541
|
-
* This function gets the global graph data
|
|
542
|
-
*/
|
|
543
|
-
this.getCollectionGraphData = (collection, startTime, endTime, bin) => __awaiter(this, void 0, void 0, function* () {
|
|
544
|
-
if (!(0, regex_1.isValidCollectionTicker)(collection)) {
|
|
545
|
-
throw new Error('Invalid collection ticker: ' + collection);
|
|
546
|
-
}
|
|
547
|
-
const response = yield this.api.fetchWithTimeout(`/collection/${collection}/analytics/volume`, {
|
|
548
|
-
params: {
|
|
549
|
-
startTime: startTime,
|
|
550
|
-
endTime: endTime,
|
|
551
|
-
bin: bin,
|
|
552
|
-
},
|
|
553
|
-
next: {
|
|
554
|
-
tags: [`/collection/${collection}/analytics/volume`],
|
|
555
|
-
revalidate: 60,
|
|
556
|
-
},
|
|
557
|
-
});
|
|
558
|
-
return response;
|
|
559
|
-
});
|
|
560
|
-
/**
|
|
561
|
-
* @public
|
|
562
|
-
* @async
|
|
563
|
-
* @function getPinnedCollections
|
|
564
|
-
* @param category - The ticker of the collection.
|
|
565
|
-
* @returns {Promise<AnalyticsGraphs>} A promise the required analytics data
|
|
566
|
-
* This function gets the global graph data
|
|
567
|
-
*/
|
|
568
|
-
this.getPinnedCollections = () => __awaiter(this, void 0, void 0, function* () {
|
|
569
|
-
const response = yield this.api.fetchWithTimeout(`/collection/pinned`, {
|
|
570
|
-
next: {
|
|
571
|
-
tags: [`/collection/pinned`],
|
|
572
|
-
revalidate: 60,
|
|
573
|
-
},
|
|
574
|
-
});
|
|
575
|
-
return response;
|
|
576
|
-
});
|
|
577
|
-
/**
|
|
578
|
-
* Get drops based on the provided arguments.
|
|
579
|
-
* @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
|
|
580
|
-
* @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
|
|
581
|
-
* @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 35.
|
|
582
|
-
*/
|
|
583
|
-
this.getDrops = (args) => __awaiter(this, void 0, void 0, function* () {
|
|
584
|
-
var _l, _m, _o, _p;
|
|
585
|
-
(_l = args === null || args === void 0 ? void 0 : args.collections) === null || _l === void 0 ? void 0 : _l.forEach((element) => {
|
|
586
|
-
if (!(0, regex_1.isValidCollectionTicker)(element)) {
|
|
587
|
-
throw new Error('Invalid collection ticker: ' + element);
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
if (args.top && args.top > 35) {
|
|
591
|
-
throw new Error('Top cannot be greater than 35');
|
|
592
|
-
}
|
|
593
|
-
const ranges = [];
|
|
594
|
-
if (args.timeRange) {
|
|
595
|
-
ranges.push(Object.assign(Object.assign({}, args.timeRange), { field: 'startTime' }));
|
|
596
|
-
}
|
|
597
|
-
const payloadBody = {
|
|
598
|
-
filters: {
|
|
599
|
-
collection: (_m = args.collections) !== null && _m !== void 0 ? _m : [],
|
|
600
|
-
verifiedOnly: args.onlyVerified || false,
|
|
601
|
-
mintToken: args.listedInToken || undefined,
|
|
602
|
-
range: ranges,
|
|
603
|
-
},
|
|
604
|
-
orderBy: args.orderBy || [],
|
|
605
|
-
select: args.onlySelectFields || [],
|
|
606
|
-
includeCount: args.includeCount || false,
|
|
607
|
-
top: args.top || 35,
|
|
608
|
-
skip: args.skip || 0,
|
|
609
|
-
};
|
|
610
|
-
const response = yield this.api.fetchWithTimeout(`/collection/drops/query`, {
|
|
611
|
-
params: {
|
|
612
|
-
filter: JSON.stringify(payloadBody),
|
|
613
|
-
},
|
|
614
|
-
next: {
|
|
615
|
-
tags: ['/collection/drops/query'],
|
|
616
|
-
},
|
|
617
|
-
cache: 'no-store',
|
|
618
|
-
});
|
|
619
|
-
return Object.assign(Object.assign({}, response), { getNextPagePayload: Object.assign(Object.assign({}, args), { skip: ((_o = args.skip) !== null && _o !== void 0 ? _o : 0) + ((_p = args.top) !== null && _p !== void 0 ? _p : 35) }) });
|
|
620
|
-
});
|
|
621
|
-
this.api = index_1.XOXNOClient.init();
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
exports.CollectionModule = CollectionModule;
|
|
625
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/collection/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oDAyB6B;AAE7B,oCAAuC;AACvC,sDAAmD;AACnD,0CAAyD;AAEzD;;;;;;;GAOG;AACH,MAAa,gBAAgB;IAE3B;QAIA;;;;;;;;;;;;;WAaG;QACI,yBAAoB,GAAG,CAC5B,UAAkB,EACW,EAAE;YAC/B,IAAI,CAAC,IAAA,+BAAuB,EAAC,UAAU,CAAC,EAAE,CAAC;gBACzC,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,UAAU,CAAC,CAAC;YAC9D,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAC9C,eAAe,UAAU,UAAU,EACnC;gBACE,IAAI,EAAE;oBACJ,IAAI,EAAE,CAAC,sBAAsB,CAAC;oBAC9B,UAAU,EAAE,EAAE;iBACf;aACF,CACF,CAAC;YACF,OAAO,QAAQ,CAAC;QAClB,CAAC,CAAA,CAAC;QAEF;;;;;;WAMG;QACI,qBAAgB,GAAG,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