@xoxno/sdk-js 0.1.281 → 0.1.283

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.
Files changed (111) hide show
  1. package/dist/interactor.cjs.js +1 -1
  2. package/dist/interactor.esm.js +1 -1
  3. package/package.json +2 -20
  4. package/dist/848.cjs.js +0 -2
  5. package/dist/848.cjs.js.LICENSE.txt +0 -29
  6. package/dist/848.esm.js +0 -2
  7. package/dist/848.esm.js.LICENSE.txt +0 -29
  8. package/dist/dist/email.esm.d.ts +0 -27
  9. package/dist/dist/email.esm.d.ts.map +0 -1
  10. package/dist/email/approval-accepted-email.d.ts +0 -21
  11. package/dist/email/approval-accepted-email.d.ts.map +0 -1
  12. package/dist/email/approval-pending-email.d.ts +0 -21
  13. package/dist/email/approval-pending-email.d.ts.map +0 -1
  14. package/dist/email/approval-rejected-email.d.ts +0 -21
  15. package/dist/email/approval-rejected-email.d.ts.map +0 -1
  16. package/dist/email/checkedin-email.d.ts +0 -23
  17. package/dist/email/checkedin-email.d.ts.map +0 -1
  18. package/dist/email/email.d.ts +0 -36
  19. package/dist/email/email.d.ts.map +0 -1
  20. package/dist/email/event-email.d.ts +0 -24
  21. package/dist/email/event-email.d.ts.map +0 -1
  22. package/dist/email/invite-email.d.ts +0 -25
  23. package/dist/email/invite-email.d.ts.map +0 -1
  24. package/dist/email/types.d.ts +0 -63
  25. package/dist/email/types.d.ts.map +0 -1
  26. package/dist/email/utils.d.ts +0 -95
  27. package/dist/email/utils.d.ts.map +0 -1
  28. package/dist/email.cjs.js +0 -1854
  29. package/dist/email.cjs.js.LICENSE.txt +0 -82
  30. package/dist/email.d.ts +0 -10
  31. package/dist/email.d.ts.map +0 -1
  32. package/dist/email.esm.js +0 -1854
  33. package/dist/email.esm.js.LICENSE.txt +0 -82
  34. package/dist/scripts/renderEmail.d.ts +0 -2
  35. package/dist/scripts/renderEmail.d.ts.map +0 -1
  36. package/dist/src/collection/index.d.ts +0 -301
  37. package/dist/src/collection/index.d.ts.map +0 -1
  38. package/dist/src/common/index.d.ts +0 -72
  39. package/dist/src/common/index.d.ts.map +0 -1
  40. package/dist/src/email/approval-accepted-email.d.ts +0 -21
  41. package/dist/src/email/approval-accepted-email.d.ts.map +0 -1
  42. package/dist/src/email/approval-pending-email.d.ts +0 -21
  43. package/dist/src/email/approval-pending-email.d.ts.map +0 -1
  44. package/dist/src/email/approval-rejected-email.d.ts +0 -21
  45. package/dist/src/email/approval-rejected-email.d.ts.map +0 -1
  46. package/dist/src/email/checkedin-email.d.ts +0 -23
  47. package/dist/src/email/checkedin-email.d.ts.map +0 -1
  48. package/dist/src/email/email.d.ts +0 -36
  49. package/dist/src/email/email.d.ts.map +0 -1
  50. package/dist/src/email/event-email.d.ts +0 -24
  51. package/dist/src/email/event-email.d.ts.map +0 -1
  52. package/dist/src/email/invite-email.d.ts +0 -25
  53. package/dist/src/email/invite-email.d.ts.map +0 -1
  54. package/dist/src/email/types.d.ts +0 -63
  55. package/dist/src/email/types.d.ts.map +0 -1
  56. package/dist/src/email/utils.d.ts +0 -95
  57. package/dist/src/email/utils.d.ts.map +0 -1
  58. package/dist/src/email.d.ts +0 -10
  59. package/dist/src/email.d.ts.map +0 -1
  60. package/dist/src/index.d.ts +0 -10
  61. package/dist/src/index.d.ts.map +0 -1
  62. package/dist/src/interactions/index.d.ts +0 -256
  63. package/dist/src/interactions/index.d.ts.map +0 -1
  64. package/dist/src/interactor.d.ts +0 -6
  65. package/dist/src/interactor.d.ts.map +0 -1
  66. package/dist/src/launchpad/index.d.ts +0 -79
  67. package/dist/src/launchpad/index.d.ts.map +0 -1
  68. package/dist/src/nft/index.d.ts +0 -69
  69. package/dist/src/nft/index.d.ts.map +0 -1
  70. package/dist/src/scripts/renderEmail.d.ts +0 -2
  71. package/dist/src/scripts/renderEmail.d.ts.map +0 -1
  72. package/dist/src/staking/index.d.ts +0 -12
  73. package/dist/src/staking/index.d.ts.map +0 -1
  74. package/dist/src/types/collection.d.ts +0 -856
  75. package/dist/src/types/collection.d.ts.map +0 -1
  76. package/dist/src/types/common.d.ts +0 -72
  77. package/dist/src/types/common.d.ts.map +0 -1
  78. package/dist/src/types/event.d.ts +0 -125
  79. package/dist/src/types/event.d.ts.map +0 -1
  80. package/dist/src/types/index.d.ts +0 -9
  81. package/dist/src/types/index.d.ts.map +0 -1
  82. package/dist/src/types/interactions.d.ts +0 -98
  83. package/dist/src/types/interactions.d.ts.map +0 -1
  84. package/dist/src/types/nft.d.ts +0 -122
  85. package/dist/src/types/nft.d.ts.map +0 -1
  86. package/dist/src/types/staking.d.ts +0 -68
  87. package/dist/src/types/staking.d.ts.map +0 -1
  88. package/dist/src/types/trading.d.ts +0 -115
  89. package/dist/src/types/trading.d.ts.map +0 -1
  90. package/dist/src/types/user.d.ts +0 -303
  91. package/dist/src/types/user.d.ts.map +0 -1
  92. package/dist/src/users/index.d.ts +0 -208
  93. package/dist/src/users/index.d.ts.map +0 -1
  94. package/dist/src/utils/SmartContractAbis.d.ts +0 -16
  95. package/dist/src/utils/SmartContractAbis.d.ts.map +0 -1
  96. package/dist/src/utils/SmartContractService.d.ts +0 -4
  97. package/dist/src/utils/SmartContractService.d.ts.map +0 -1
  98. package/dist/src/utils/api.d.ts +0 -31
  99. package/dist/src/utils/api.d.ts.map +0 -1
  100. package/dist/src/utils/const.d.ts +0 -14
  101. package/dist/src/utils/const.d.ts.map +0 -1
  102. package/dist/src/utils/getActivity.d.ts +0 -11
  103. package/dist/src/utils/getActivity.d.ts.map +0 -1
  104. package/dist/src/utils/helpers.d.ts +0 -4
  105. package/dist/src/utils/helpers.d.ts.map +0 -1
  106. package/dist/src/utils/regex.d.ts +0 -3
  107. package/dist/src/utils/regex.d.ts.map +0 -1
  108. package/dist/src/utils/scCalls.d.ts +0 -10
  109. package/dist/src/utils/scCalls.d.ts.map +0 -1
  110. package/dist/src/utils.d.ts +0 -28
  111. package/dist/src/utils.d.ts.map +0 -1
@@ -1,82 +0,0 @@
1
- /*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
5
- * @license MIT
6
- */
7
-
8
- /*!
9
- * The buffer module from node.js, for the browser.
10
- *
11
- * @author Feross Aboukhadijeh <https://feross.org>
12
- * @license MIT
13
- */
14
-
15
- /*!
16
- * fill-range <https://github.com/jonschlinkert/fill-range>
17
- *
18
- * Copyright (c) 2014-present, Jon Schlinkert.
19
- * Licensed under the MIT License.
20
- */
21
-
22
- /*!
23
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
24
- *
25
- * Copyright (c) 2014-2016, Jon Schlinkert.
26
- * Licensed under the MIT License.
27
- */
28
-
29
- /*!
30
- * is-number <https://github.com/jonschlinkert/is-number>
31
- *
32
- * Copyright (c) 2014-present, Jon Schlinkert.
33
- * Released under the MIT License.
34
- */
35
-
36
- /*!
37
- * normalize-path <https://github.com/jonschlinkert/normalize-path>
38
- *
39
- * Copyright (c) 2014-2018, Jon Schlinkert.
40
- * Released under the MIT License.
41
- */
42
-
43
- /*!
44
- * to-regex-range <https://github.com/micromatch/to-regex-range>
45
- *
46
- * Copyright (c) 2015-present, Jon Schlinkert.
47
- * Released under the MIT License.
48
- */
49
-
50
- /*! https://mths.be/cssesc v3.0.0 by @mathias */
51
-
52
- /*! https://mths.be/he v1.2.0 by @mathias | MIT license */
53
-
54
- /*! https://mths.be/punycode v1.4.1 by @mathias */
55
-
56
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
57
-
58
- /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
59
-
60
- /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
61
-
62
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
63
-
64
- /**
65
- * @license React
66
- * react-jsx-runtime.production.js
67
- *
68
- * Copyright (c) Meta Platforms, Inc. and affiliates.
69
- *
70
- * This source code is licensed under the MIT license found in the
71
- * LICENSE file in the root directory of this source tree.
72
- */
73
-
74
- /**
75
- * @license React
76
- * react.production.js
77
- *
78
- * Copyright (c) Meta Platforms, Inc. and affiliates.
79
- *
80
- * This source code is licensed under the MIT license found in the
81
- * LICENSE file in the root directory of this source tree.
82
- */
@@ -1,2 +0,0 @@
1
- declare function main(): Promise<void>;
2
- //# sourceMappingURL=renderEmail.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderEmail.d.ts","sourceRoot":"","sources":["../../src/scripts/renderEmail.js"],"names":[],"mappings":"AAAA,uCA8BC"}
@@ -1,301 +0,0 @@
1
- import type { AnalyticsGraphs, NftData, StakingSummaryPools } from '../types';
2
- import type { CollectionListings, CollectionRanksExport, CollectionsNFTsResponse, CollectionStatsDoc, CollectionStatsResults, CollectionVolume, GetCollectionMintInfo, GetCollectionsArgs, GetCollectionStatsArgs, GETDropsArgs, GetDropsResponse, GetGlobalOffersArgs, GetNFTsArgs, GetOffersArgs, GetOffersResponse, GlobalOffersResult, ICollectionAttributes, ICollectionProfile, IOwners, ISingleHolder, SearchNFTsResponse, SuggestNFTsArgs, SuggestResults } from '../types/collection';
3
- import type { TradincActivityArgs, TradingActivityResponse } from '../types/trading';
4
- /**
5
- * CollectionModule provides a set of methods to interact with NFT collections.
6
- * It includes methods for getting collection profile information, floor price,
7
- * collection attributes, and searching NFTs within a collection.
8
- *
9
- * @example
10
- * const collectionModule = new CollectionModule();
11
- */
12
- export declare class CollectionModule {
13
- private api;
14
- constructor();
15
- /**
16
- * @public
17
- * @async
18
- * @function getCollectionProfile
19
- * @param {string} collection - The ticker of the collection to fetch the profile for.
20
- * @returns {Promise<ICollectionProfile>} A promise that resolves to the fetched collection profile.
21
- *
22
- * This function fetches the profile of a given collection. It takes the following parameter:
23
- * - collection (string): The ticker of the collection to fetch the profile for.
24
- *
25
- * The function first validates the input ticker and checks if it is a valid collection ticker.
26
- * If it is valid, the function fetches the collection profile using the API.
27
- * Finally, it returns a promise that resolves to the fetched collection profile.
28
- */
29
- getCollectionProfile: (collection: string) => Promise<ICollectionProfile>;
30
- /**
31
- * @public
32
- * @async
33
- * @function getDailyTrending
34
- * @returns {Promise<NftData[]>} A promise that resolves to the array of trending NFTs.
35
- * This function fetches the top NFTs that are trending today based on their floor and volumes
36
- */
37
- getDailyTrending: () => Promise<NftData[]>;
38
- /**
39
- * Fetches the floor price of a collection.
40
- * @param collection - The ticker of the collection.
41
- * @param token - The token for the floor price calculation (default: 'EGLD').
42
- * @returns A Promise that resolves to the collection's floor price as a number.
43
- * @throws An error if the provided collection ticker is invalid.
44
- */
45
- getCollectionFloorPrice: (collection: string, token?: string) => Promise<{
46
- price: number;
47
- usdPrice: number;
48
- }>;
49
- /**
50
- * @public
51
- * @async
52
- * @function getCollectionAttributes
53
- * @param {string} collection - The ticker of the collection to fetch the attributes for.
54
- * @returns {Promise<ICollectionAttributes>} A promise that resolves to the fetched collection attributes.
55
- *
56
- * This function fetches the attributes of a given collection. It takes the following parameter:
57
- * - collection (string): The ticker of the collection to fetch the attributes for.
58
- *
59
- * The function first validates the input ticker and checks if it is a valid collection ticker.
60
- * If it is valid, the function fetches the collection attributes using the API.
61
- * Finally, it returns a promise that resolves to the fetched collection attributes.
62
- */
63
- getCollectionAttributes: (collection: string) => Promise<ICollectionAttributes>;
64
- /**
65
- * Searches for NFTs based on the provided arguments.
66
- * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
67
- * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
68
- * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
69
- */
70
- getNFTs: (args: GetNFTsArgs) => Promise<SearchNFTsResponse>;
71
- /**
72
- * Searches for NFTs based on the provided arguments.
73
- * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
74
- * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
75
- * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
76
- */
77
- getSearchNFTs: (args: GetNFTsArgs) => Promise<SearchNFTsResponse>;
78
- /**
79
- * @public
80
- * @async
81
- * @function suggestCollections
82
- * @param {SuggestNFTsArgs} args - An object containing the necessary parameters to fetch suggested collections results.
83
- * @returns {Promise<SuggestResults>} A promise that resolves to the fetched collections results.
84
- *
85
- * This function fetches suggested collections results based on the provided arguments. It takes an object with the following properties:
86
- * - name (string): The name to search for (required).
87
- * - top (number, optional): The maximum number of results to return (default is 35, cannot be greater than 100).
88
- * - skip (number, optional): The number of results to skip (default is 0).
89
- *
90
- * Finally, it returns a promise that resolves to the fetched collections results.
91
- */
92
- suggestCollections: (args: SuggestNFTsArgs) => Promise<SuggestResults>;
93
- /**
94
- * @public
95
- * @async
96
- * @function collectionListingsAnalytics
97
- * @param {string} ticker - The unique collection identifier called ticker
98
- * @returns {Promise<CollectionListings>} A promise that resolves to the distribution of listings
99
- */
100
- collectionListingsAnalytics: (ticker: string) => Promise<CollectionListings>;
101
- /**
102
- * Retrieves trading history based on the provided arguments.
103
- *
104
- * @param {TradincActivityArgs} args - The arguments for filtering the trading activity.
105
- * @returns {Promise<TradingActivityResponse>} A promise resolving to a TradingActivityResponse object containing the activity.
106
- * @throws {Error} Throws an error if the 'top' argument is greater than 100.
107
- */
108
- getTradingActivity: (args: TradincActivityArgs) => Promise<TradingActivityResponse>;
109
- getOffers: (args: GetOffersArgs) => Promise<GetOffersResponse>;
110
- /**
111
- * Fetch collections profiles based on the provided arguments.
112
- * @param {GetCollectionsArgs} args - The GetCollectionsArgs object containing the search parameters.
113
- * @returns {Promise<CollectionsNFTsResponse>} A Promise that resolves to the CollectionsNFTsResponse object.
114
- * @throws An error if the 'top' value is greater than 100.
115
- */
116
- getCollections: (args?: GetCollectionsArgs) => Promise<CollectionsNFTsResponse>;
117
- /**
118
- * Fetch global offers based on the provided arguments.
119
- * @param {GetGlobalOffersArgs} args - The GetCollectionsArgs object containing the search parameters.
120
- * @returns {Promise<GlobalOffersResult>} A Promise that resolves to the GlobalOffersResult object.
121
- * @throws An error if the 'top' value is greater than 100.
122
- */
123
- getGlobalOffers: (args?: GetGlobalOffersArgs) => Promise<GlobalOffersResult>;
124
- /**
125
- * @public
126
- * @async
127
- * @function getCollectionVolume
128
- * @param {string} collection - The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
129
- * @param {string} after - The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
130
- * @param {string} before - The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
131
- * @param {string} bin - The binning period for the volume data (e.g., '1d' for 1 day).
132
- * @returns {Promise<CollectionVolume[]>} A promise that resolves to an array of collection volume data.
133
- *
134
- * This function fetches volume data for a given collection within a specified date range and binning period. It takes the following parameters:
135
- * - collection (string): The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
136
- * - after (string): The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
137
- * - before (string): The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
138
- * - bin (string): The binning period for the volume data (e.g., '1d' for 1 day).
139
- *
140
- * The function first validates the input collection ticker and checks if it is a valid collection ticker.
141
- * If it is valid, the function fetches the collection volume data using the API with the specified query parameters.
142
- * Finally, it returns a promise that resolves to an array of collection volume data.
143
- */
144
- getCollectionVolume: (collection: string, after: string, before: string, bin: string) => Promise<CollectionVolume[]>;
145
- /**
146
- * @public
147
- * @async
148
- * @function getMarketplaceVolume
149
- * @param {string} after - The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
150
- * @param {string} before - The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
151
- * @param {string} bin - The binning period for the volume data (e.g., '1d' for 1 day).
152
- * @returns {Promise<CollectionVolume[]>} A promise that resolves to an array of collection volume data.
153
- *
154
- * This function fetches volume data for a given collection within a specified date range and binning period. It takes the following parameters:
155
- * - collection (string): The ticker of the collection to fetch the volume for (e.g., 'EAPES-8f3c1f').
156
- * - after (string): The start date (inclusive) of the date range for the volume data (e.g., '2023-04-17').
157
- * - before (string): The end date (inclusive) of the date range for the volume data (e.g., '2023-04-25').
158
- * - bin (string): The binning period for the volume data (e.g., '1d' for 1 day).
159
- *
160
- * The function first validates the input collection ticker and checks if it is a valid collection ticker.
161
- * If it is valid, the function fetches the collection volume data using the API with the specified query parameters.
162
- * Finally, it returns a promise that resolves to an array of collection volume data.
163
- */
164
- getMarketplaceVolume: (after: string, before: string, bin: string) => Promise<CollectionVolume[]>;
165
- /**
166
- * @public
167
- * @async
168
- * @function getCollectionOwners
169
- * @param {string} collection - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
170
- * @returns {Promise<IOwners>} A promise that resolves a struct of collection information about holders
171
- *
172
- * This function fetches owner information for a given collection. It takes the following parameter:
173
- * - collection (string): The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
174
- *
175
- * The function first validates the input collection ticker and checks if it is a valid collection ticker.
176
- * If it is valid, the function fetches the collection owner information using the API.
177
- * Finally, it returns a promise that resolves a struct of collection information about holders
178
- */
179
- getCollectionOwners: (collection: string) => Promise<IOwners>;
180
- /**
181
- * @public
182
- * @async
183
- * @function getExportOwners
184
- * @param {string} collection - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
185
- * @returns {Promise<ISingleHolder[]>} A promise that resolves an array of holders part of the collection.
186
- *
187
- * This function fetches owners information for a given collection. It takes the following parameter:
188
- * - collection (string): The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
189
- *
190
- * The function first validates the input collection ticker and checks if it is a valid collection ticker.
191
- * If it is valid, the function fetches the collection owner information using the API.
192
- * Finally, it returns a promise that resolves to an array of collection owner information.
193
- */
194
- getExportOwners: (collection: string) => Promise<ISingleHolder[]>;
195
- /**
196
- * @public
197
- * @async
198
- * @function getCollectionsStatistics
199
- * @param {GetCollectionStatsArgs} args - The filter payload for the collection statsitics
200
- * @returns {Promise<CollectionStatsResults>} A promise that resolves to a struct with information
201
- * Finally, it returns a promise that resolves a struct with information
202
- */
203
- getCollectionsStatistics: (args: GetCollectionStatsArgs) => Promise<CollectionStatsResults>;
204
- /**
205
- * @public
206
- * @async
207
- * @function getCollectionStats
208
- * @param {GetCollectionStatsArgs} args - The filter payload for the collection statsitics
209
- * @returns {Promise<CollectionStatsDoc>} A promise that resolves to a struct with information
210
- * Finally, it returns a promise that resolves a struct with information
211
- */
212
- getCollectionStats: (ticker: string) => Promise<CollectionStatsDoc>;
213
- getAwaitEmpty: (delay: number) => Promise<boolean>;
214
- /**
215
- * @public
216
- * @async
217
- * @function getCollectionMintInfo
218
- * @param {string} ticker - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
219
- * @returns {Promise<GetCollectionMintInfo>} A promise that resolves to a struct with information
220
- * Finally, it returns a promise that resolves a struct with information
221
- */
222
- getCollectionMintInfo: ({ ticker, extra, }: {
223
- ticker: string;
224
- extra?: RequestInit;
225
- }) => Promise<GetCollectionMintInfo>;
226
- /**
227
- * @public
228
- * @async
229
- * @function getCollectionRanks
230
- * @param {string} ticker - The ticker of the collection to fetch the owner information for (e.g., 'EAPES-8f3c1f').
231
- * @returns {Promise<CollectionRanksExport[]>} A promise that resolves to a struct with information
232
- * Finally, it returns a promise that resolves a struct with information
233
- */
234
- getCollectionRanks: ({ ticker, extra, }: {
235
- ticker: string;
236
- extra?: RequestInit;
237
- }) => Promise<CollectionRanksExport[]>;
238
- /**
239
- * @public
240
- * @async
241
- * @function getDropInfo
242
- * @param {string} collectionTag - The unique ID of the collection part of the launchpad smart contract
243
- * @param {string} creatorTag - The unique ID of the creator part of the launchpad smart contract
244
- * @returns {Promise<GetCollectionMintInfo>} A promise that resolves to a struct with information
245
- * Finally, it returns a promise that resolves a struct with information
246
- */
247
- getDropInfo: ({ collectionTag, creatorTag, extra, }: {
248
- collectionTag: string;
249
- creatorTag: string;
250
- extra?: RequestInit;
251
- }) => Promise<GetCollectionMintInfo>;
252
- /**
253
- * @public
254
- * @async
255
- * @function getCollectionGraphData
256
- * @param category - The ticker of the collection.
257
- * @returns {Promise<AnalyticsGraphs>} A promise the required analytics data
258
- * This function gets the global graph data
259
- */
260
- getCollectionGraphData: (collection: string, startTime: string, endTime: string, bin: string) => Promise<AnalyticsGraphs>;
261
- /**
262
- * @public
263
- * @async
264
- * @function getPinnedCollections
265
- * @returns {Promise<ICollectionProfile[]>} A promise that resolves to the fetched pinned collections.
266
- */
267
- getPinnedCollections: () => Promise<ICollectionProfile[]>;
268
- /**
269
- * Get drops based on the provided arguments.
270
- * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
271
- * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
272
- * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
273
- */
274
- getSearchDrops: (args: GETDropsArgs) => Promise<GetDropsResponse>;
275
- /**
276
- * Get drops based on the provided arguments.
277
- * @param {SearchNFTsArgs} args - The SearchNFTsArgs object containing the search parameters.
278
- * @returns {Promise<SearchNFTsResponse>} A Promise that resolves to the SearchNFTsResponse object.
279
- * @throws An error if the provided collection ticker is invalid or if the 'top' value is greater than 100.
280
- */
281
- getDrops: (args: GETDropsArgs) => Promise<GetDropsResponse>;
282
- /** Gets collection staking info
283
- * @param {String} collection - User's address
284
- * @returns {StakingSummaryPools[]} Collection's staking info
285
- * @throws {Error} Throws an error if the collection is invalid
286
- * */
287
- getCollectionStakingSummary: ({ collection, extra, }: {
288
- collection: string;
289
- extra?: RequestInit;
290
- }) => Promise<StakingSummaryPools[]>;
291
- /**
292
- * @public
293
- * @async
294
- * @function getCollectionsFloor
295
- * @param collections - The tickers of the collection.
296
- * @returns {Promise<Record<string, number>>} Floor price of the collections
297
- * This function gets the floor price of the collections
298
- */
299
- getCollectionsFloor: (collections: string[]) => Promise<Record<string, number>>;
300
- }
301
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collection/index.ts"],"names":[],"mappings":"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"}
@@ -1,72 +0,0 @@
1
- import type { FungibleAssetsMap, SuggestNFTsArgs, SuggestResults } from '../types/collection';
2
- import { AssetCategory } from '../types/collection';
3
- import type { AnalyticsGraphs, AshSwapPaymentData, StakingExplore, StatisticsSummary, TokenUSDPrices } from '../types/common';
4
- export declare class CommonModule {
5
- private api;
6
- constructor();
7
- /** Gets all tokens usd price
8
- * @returns {TokenUSDPrices} User's creator info
9
- * */
10
- getTokensUsdPrice: () => Promise<TokenUSDPrices>;
11
- /** Gets all tokens usd price
12
- * @returns {TokenUSDPrices} User's creator info
13
- * */
14
- getAshSwapAmount: ({ originalToken, originalTokenValue, paymentToken, }: {
15
- originalToken: string;
16
- originalTokenValue: string;
17
- paymentToken: string;
18
- }) => Promise<AshSwapPaymentData>;
19
- /**
20
- * @public
21
- * @async
22
- * @function getFungibleTokens
23
- * @param category - The ticker of the collection.
24
- * @returns {Promise<FungibleAssetsMap>} A promise that resolves a map of ESDT tokens and their info
25
- * This function fetches all branded fungible assets and their info
26
- */
27
- getFungibleTokens: (categories?: AssetCategory[], identifiers?: string[]) => Promise<FungibleAssetsMap>;
28
- /**
29
- * @public
30
- * @async
31
- * @function getGlobalGraphData
32
- * @param category - The ticker of the collection.
33
- * @returns {Promise<AnalyticsGraphs>} A promise the required analytics data
34
- * This function gets the global graph data
35
- */
36
- getGlobalGraphData: (startTime: string, endTime: string, bin: string) => Promise<AnalyticsGraphs>;
37
- /**
38
- * @public
39
- * @async
40
- * @function getAnalyticsOverview
41
- * @returns {Promise<StatisticsSummary>} A promise the required analytics data
42
- * This function gets the global graph data
43
- */
44
- getAnalyticsOverview: () => Promise<StatisticsSummary>;
45
- /**
46
- * @public
47
- * @async
48
- * @function suggestResults
49
- * @param {SuggestNFTsArgs} args - An object containing the necessary parameters to fetch suggested NFT results.
50
- * @returns {Promise<SuggestResults>} A promise that resolves to the fetched NFT results.
51
- *
52
- * This function fetches suggested NFT results based on the provided arguments. It takes an object with the following properties:
53
- * - name (string): The name to search for (required).
54
- * - orderBy (SuggestOrderBy[], optional): An array of ordering preferences for the results.
55
- * - top (number, optional): The maximum number of results to return (default is 35, cannot be greater than 100).
56
- * - skip (number, optional): The number of results to skip (default is 0).
57
- *
58
- * The function first validates the input arguments and constructs a payload body with the provided parameters.
59
- * Then, it converts the payload body into a base64 string and fetches the suggested results using the API.
60
- * Finally, it returns a promise that resolves to the fetched NFT results.
61
- */
62
- suggestResults: (args: SuggestNFTsArgs) => Promise<SuggestResults>;
63
- /**
64
- * @public
65
- * @async
66
- * @function getExploreStaking
67
- * @returns {Promise<StakingExplore[]>} A promise that resolves to the fetched staking explore data.
68
- * This function fetches the staking explore data.
69
- */
70
- getExploreStaking: () => Promise<StakingExplore[]>;
71
- }
72
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACf,MAAM,iBAAiB,CAAA;AAGxB,qBAAa,YAAY;IACvB,OAAO,CAAC,GAAG,CAAa;;IAIxB;;UAEM;IACC,iBAAiB,QAAa,OAAO,CAAC,cAAc,CAAC,CAI3D;IAED;;UAEM;IACC,gBAAgB,yDAIpB;QACD,aAAa,EAAE,MAAM,CAAA;QACrB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,YAAY,EAAE,MAAM,CAAA;KACrB,KAAG,OAAO,CAAC,kBAAkB,CAAC,CAY9B;IAED;;;;;;;OAOG;IACI,iBAAiB,gBACV,aAAa,EAAE,gBACb,MAAM,EAAE,KACrB,OAAO,CAAC,iBAAiB,CAAC,CAsB5B;IAED;;;;;;;OAOG;IACI,kBAAkB,cACZ,MAAM,WACR,MAAM,OACV,MAAM,KACV,OAAO,CAAC,eAAe,CAAC,CAgB1B;IAED;;;;;;OAMG;IACI,oBAAoB,QAAa,OAAO,CAAC,iBAAiB,CAAC,CAWjE;IAED;;;;;;;;;;;;;;;;OAgBG;IACI,cAAc,SACb,eAAe,KACpB,OAAO,CAAC,cAAc,CAAC,CAoBzB;IAED;;;;;;OAMG;IACI,iBAAiB,QAAa,OAAO,CAAC,cAAc,EAAE,CAAC,CAW7D;CACF"}
@@ -1,21 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { IEmailConfig } from '../utils';
3
- import { IEvent } from './types';
4
- import type { WithUnsubscribeToken } from './utils';
5
- type IProps = {
6
- host?: IEmailConfig;
7
- name: string;
8
- event: IEvent;
9
- style?: {
10
- background: string;
11
- backgroundColor: string;
12
- };
13
- };
14
- declare const ApprovalAcceptedEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
15
- export declare const renderApprovalAcceptedEmail: (props: ComponentProps<typeof ApprovalAcceptedEmail>) => Promise<{
16
- html: string;
17
- plainText: string;
18
- subject: string;
19
- }>;
20
- export {};
21
- //# sourceMappingURL=approval-accepted-email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"approval-accepted-email.d.ts","sourceRoot":"","sources":["../../../src/email/approval-accepted-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAIL,YAAY,EACb,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAoCjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,qBAAqB,oDAMxB,MAAM,GAAG,oBAAoB,sBAiI/B,CAAA;AAED,eAAO,MAAM,2BAA2B,UAC/B,cAAc,CAAC,OAAO,qBAAqB,CAAC;;;;EAKpD,CAAA"}
@@ -1,21 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { IEmailConfig } from '../utils';
3
- import { IEvent } from './types';
4
- import type { WithUnsubscribeToken } from './utils';
5
- type IProps = {
6
- host?: IEmailConfig;
7
- name: string;
8
- event: Pick<IEvent, 'name' | 'backgroundImage'>;
9
- style?: {
10
- background: string;
11
- backgroundColor: string;
12
- };
13
- };
14
- declare const ApprovalPendingEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
15
- export declare const renderApprovalPendingEmail: (props: ComponentProps<typeof ApprovalPendingEmail>) => Promise<{
16
- html: string;
17
- plainText: string;
18
- subject: string;
19
- }>;
20
- export {};
21
- //# sourceMappingURL=approval-pending-email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"approval-pending-email.d.ts","sourceRoot":"","sources":["../../../src/email/approval-pending-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA+BjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAAC,CAAA;IAC/C,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,oBAAoB,oDAMvB,MAAM,GAAG,oBAAoB,sBAkG/B,CAAA;AAED,eAAO,MAAM,0BAA0B,UAC9B,cAAc,CAAC,OAAO,oBAAoB,CAAC;;;;EAKnD,CAAA"}
@@ -1,21 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { IEmailConfig } from '../utils';
3
- import { IEvent } from './types';
4
- import type { WithUnsubscribeToken } from './utils';
5
- type IProps = {
6
- host?: IEmailConfig;
7
- name: string;
8
- event: Pick<IEvent, 'name' | 'backgroundImage' | 'eventId'>;
9
- style?: {
10
- background: string;
11
- backgroundColor: string;
12
- };
13
- };
14
- declare const ApprovalRejectedEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
15
- export declare const renderApprovalRejectedEmail: (props: ComponentProps<typeof ApprovalRejectedEmail>) => Promise<{
16
- html: string;
17
- plainText: string;
18
- subject: string;
19
- }>;
20
- export {};
21
- //# sourceMappingURL=approval-rejected-email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"approval-rejected-email.d.ts","sourceRoot":"","sources":["../../../src/email/approval-rejected-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA+BjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAC3D,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,qBAAqB,oDAMxB,MAAM,GAAG,oBAAoB,sBA4F/B,CAAA;AAED,eAAO,MAAM,2BAA2B,UAC/B,cAAc,CAAC,OAAO,qBAAqB,CAAC;;;;EAKpD,CAAA"}
@@ -1,23 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { IEmailConfig } from '../utils';
3
- import { IEvent } from './types';
4
- import type { WithUnsubscribeToken } from './utils';
5
- type IProps = {
6
- host?: IEmailConfig;
7
- name: string;
8
- event: IEvent & {
9
- ticketImage: string;
10
- };
11
- style?: {
12
- background: string;
13
- backgroundColor: string;
14
- };
15
- };
16
- declare const CheckedInEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
17
- export declare const renderCheckedInEmail: (props: ComponentProps<typeof CheckedInEmail>) => Promise<{
18
- html: string;
19
- plainText: string;
20
- subject: string;
21
- }>;
22
- export {};
23
- //# sourceMappingURL=checkedin-email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkedin-email.d.ts","sourceRoot":"","sources":["../../../src/email/checkedin-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAA4B,YAAY,EAAE,MAAM,UAAU,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAiCjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;IACvC,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,cAAc,oDAMjB,MAAM,GAAG,oBAAoB,sBAyG/B,CAAA;AAED,eAAO,MAAM,oBAAoB,UACxB,cAAc,CAAC,OAAO,cAAc,CAAC;;;;EAK7C,CAAA"}
@@ -1,36 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { IEmailConfig } from '../utils';
3
- import type { IBaseNotification, IEmailActivityType } from './types';
4
- import type { WithUnsubscribeToken } from './utils';
5
- type IProps = {
6
- host?: IEmailConfig;
7
- } & ({
8
- activityType: Exclude<IEmailActivityType, 'verifyEmail'>;
9
- payload: {
10
- name: string;
11
- address: string;
12
- nft: Pick<IBaseNotification, 'asset' | 'owner' | 'activity'>;
13
- code?: never;
14
- };
15
- } | {
16
- activityType: Extract<IEmailActivityType, 'verifyEmail'>;
17
- payload: {
18
- name: string;
19
- address?: never;
20
- nft?: never;
21
- code: string;
22
- };
23
- });
24
- declare const XOXNOEmail: ({ host, unsubscribeToken, style, ...props }: IProps & WithUnsubscribeToken & {
25
- style?: {
26
- background: string;
27
- backgroundColor: string;
28
- };
29
- }) => React.JSX.Element;
30
- export declare const renderEmail: (props: ComponentProps<typeof XOXNOEmail>) => Promise<{
31
- html: string;
32
- plainText: string;
33
- subject: string;
34
- }>;
35
- export {};
36
- //# sourceMappingURL=email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../src/email/email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAMjE,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAGnB,MAAM,SAAS,CAAA;AAahB,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAmJjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB,GAAG,CACA;IACE,YAAY,EAAE,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAA;IACxD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,CAAA;QAC5D,IAAI,CAAC,EAAE,KAAK,CAAA;KACb,CAAA;CACF,GACD;IACE,YAAY,EAAE,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAA;IACxD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,KAAK,CAAA;QACf,GAAG,CAAC,EAAE,KAAK,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CACJ,CAAA;AAID,QAAA,MAAM,UAAU,gDAKb,MAAM,GACP,oBAAoB,GAAG;IACrB,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,sBAmJF,CAAA;AAED,eAAO,MAAM,WAAW,UAAiB,cAAc,CAAC,OAAO,UAAU,CAAC;;;;EAIzE,CAAA"}
@@ -1,24 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { IEmailConfig } from '../utils';
3
- import type { IEvent } from './types';
4
- import type { WithUnsubscribeToken } from './utils';
5
- type IProps = {
6
- host?: IEmailConfig;
7
- name: string;
8
- event: IEvent & {
9
- ticketImage: string;
10
- ticketId: string;
11
- };
12
- style?: {
13
- background: string;
14
- backgroundColor: string;
15
- };
16
- };
17
- declare const EventEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
18
- export declare const renderEventEmail: (props: ComponentProps<typeof EventEmail>) => Promise<{
19
- html: string;
20
- plainText: string;
21
- subject: string;
22
- }>;
23
- export {};
24
- //# sourceMappingURL=event-email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-email.d.ts","sourceRoot":"","sources":["../../../src/email/event-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAIL,YAAY,EACb,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAsCjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACzD,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,UAAU,oDAMb,MAAM,GAAG,oBAAoB,sBAuM/B,CAAA;AAED,eAAO,MAAM,gBAAgB,UACpB,cAAc,CAAC,OAAO,UAAU,CAAC;;;;EAKzC,CAAA"}