@eluvio/elv-client-js 3.2.10 → 3.2.13

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.
@@ -652,6 +652,7 @@ var ElvClient = /*#__PURE__*/function () {
652
652
  * @param {string=} authToken - Eluvio authorization token previously issued from OAuth ID token
653
653
  * @param {string=} tenantId - If specified, user will be associated with the tenant
654
654
  * @param {Object=} extraData - Additional data to pass to the login API
655
+ * @param {Array<string>=} signerURIs - (Only if using custom OAuth) - URIs corresponding to the key server(s) to use
655
656
  * @param {boolean=} unsignedPublicAuth=false - If specified, the client will use an unsigned static token for calls that don't require authorization (reduces remote signature calls)
656
657
  */
657
658
 
@@ -659,14 +660,14 @@ var ElvClient = /*#__PURE__*/function () {
659
660
  key: "SetRemoteSigner",
660
661
  value: function () {
661
662
  var _SetRemoteSigner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(_ref8) {
662
- var idToken, authToken, tenantId, extraData, unsignedPublicAuth, signer;
663
+ var idToken, authToken, tenantId, extraData, signerURIs, unsignedPublicAuth, signer;
663
664
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
664
665
  while (1) {
665
666
  switch (_context6.prev = _context6.next) {
666
667
  case 0:
667
- idToken = _ref8.idToken, authToken = _ref8.authToken, tenantId = _ref8.tenantId, extraData = _ref8.extraData, unsignedPublicAuth = _ref8.unsignedPublicAuth;
668
+ idToken = _ref8.idToken, authToken = _ref8.authToken, tenantId = _ref8.tenantId, extraData = _ref8.extraData, signerURIs = _ref8.signerURIs, unsignedPublicAuth = _ref8.unsignedPublicAuth;
668
669
  _context6.t0 = RemoteSigner;
669
- _context6.t1 = this.authServiceURIs;
670
+ _context6.t1 = signerURIs || this.authServiceURIs;
670
671
  _context6.t2 = idToken;
671
672
  _context6.t3 = authToken;
672
673
  _context6.t4 = tenantId;
@@ -678,7 +679,7 @@ var ElvClient = /*#__PURE__*/function () {
678
679
  _context6.t6 = extraData;
679
680
  _context6.t7 = unsignedPublicAuth;
680
681
  _context6.t8 = {
681
- rpcUris: _context6.t1,
682
+ signerURIs: _context6.t1,
682
683
  idToken: _context6.t2,
683
684
  authToken: _context6.t3,
684
685
  tenantId: _context6.t4,
@@ -34,7 +34,7 @@ var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
34
34
  function RemoteSigner(_ref) {
35
35
  var _this;
36
36
 
37
- var rpcUris = _ref.rpcUris,
37
+ var signerURIs = _ref.signerURIs,
38
38
  idToken = _ref.idToken,
39
39
  authToken = _ref.authToken,
40
40
  tenantId = _ref.tenantId,
@@ -50,7 +50,7 @@ var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
50
50
  _this.remoteSigner = true;
51
51
  _this.unsignedPublicAuth = unsignedPublicAuth;
52
52
  _this.HttpClient = new HttpClient({
53
- uris: rpcUris
53
+ uris: signerURIs
54
54
  });
55
55
  _this.idToken = idToken;
56
56
  _this.tenantId = tenantId;
package/dist/src/index.js CHANGED
@@ -2,10 +2,10 @@ var _require = require("./ElvClient.js"),
2
2
  ElvClient = _require.ElvClient;
3
3
 
4
4
  var _require2 = require("./walletClient/index.js"),
5
- ElvMarketplaceClient = _require2.ElvMarketplaceClient;
5
+ ElvWalletClient = _require2.ElvWalletClient;
6
6
 
7
7
  var Utils = require("./Utils.js");
8
8
 
9
9
  exports.ElvClient = ElvClient;
10
- exports.ElvMarketplaceClient = ElvMarketplaceClient;
10
+ exports.ElvWalletClient = ElvWalletClient;
11
11
  exports.Utils = Utils;
@@ -295,7 +295,7 @@ exports.UserItemInfo = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator
295
295
  * @param {string=} contractAddress - Filter results by the address of the NFT contract
296
296
  * @param {string=} tokenId - Filter by token ID (if filtering by contract address)
297
297
  * @param {Object=} marketplaceParams - Filter results by marketplace
298
- * @param {integer=} collectionIndex - If filtering by marketplace, filter by collection. The index refers to the index in the array `marketplace.collections`
298
+ * @param {Array<integer>=} collectionIndexes - If filtering by marketplace, filter by collection(s). The index refers to the index in the array `marketplace.collections`
299
299
  *
300
300
  * @returns {Promise<Object>} - Results of the query and pagination info
301
301
  */
@@ -514,11 +514,10 @@ exports.TenantConfiguration = /*#__PURE__*/function () {
514
514
  case 7:
515
515
  _context7.prev = 7;
516
516
  _context7.t0 = _context7["catch"](1);
517
- this.Log("Failed to load tenant configuration", true);
518
- this.Log(_context7.t0, true);
517
+ this.Log("Failed to load tenant configuration", true, _context7.t0);
519
518
  return _context7.abrupt("return", {});
520
519
 
521
- case 12:
520
+ case 11:
522
521
  case "end":
523
522
  return _context7.stop();
524
523
  }
@@ -1072,7 +1071,7 @@ exports.Listing = /*#__PURE__*/function () {
1072
1071
  * <br /><br />
1073
1072
  * NOTE: This string must be an <b>exact match</b> on the item name.
1074
1073
  * You can retrieve all available item names from the <a href="#.ListingNames">ListingNames method</a>.
1075
- * @param {string=} editionFilter - Filter results by item edition.
1074
+ * @param {Array<string>=} editionFilters - Filter results by item edition.
1076
1075
  * <br /><br />
1077
1076
  * NOTE: This string must be an <b>exact match</b> on the edition name.
1078
1077
  * You can retrieve all available item edition names from the <a href="#.ListingEditionNames">ListingEditionNames method</a>.
@@ -1080,12 +1079,13 @@ exports.Listing = /*#__PURE__*/function () {
1080
1079
  * <br /><br />
1081
1080
  * NOTE: These filters must be an <b>exact match</b> on the attribute name and value.
1082
1081
  * You can retrieve all available item attributes from the <a href="#.ListingAttributes">ListingAttributes method</a>.
1082
+ * @param {Object=} priceRange - Filter min and/or max price (e.g. `{min: 1}` `{max: 2}` `{min: 1.50, max: 10.50})
1083
1083
  * @param {string=} sellerAddress - Filter by a specific seller
1084
1084
  * @param {string=} contractAddress - Filter results by the address of the NFT contract
1085
1085
  * @param {string=} tokenId - Filter by token ID (if filtering by contract address)
1086
1086
  * @param {string=} currency - Filter results by purchase currency. Available options: `usdc`
1087
1087
  * @param {Object=} marketplaceParams - Filter results by marketplace
1088
- * @param {integer=} collectionIndex - If filtering by marketplace, filter by collection. The index refers to the index in the array `marketplace.collections`
1088
+ * @param {Array<integer>=} collectionIndexes - If filtering by marketplace, filter by collection(s). The index refers to the index in the array `marketplace.collections`
1089
1089
  * @param {integer=} lastNDays - Filter by results listed in the past N days
1090
1090
  *
1091
1091
  * @returns {Promise<Object>} - Results of the query and pagination info
@@ -1122,7 +1122,7 @@ exports.Listings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRunt
1122
1122
  * <br /><br />
1123
1123
  * NOTE: This string must be an <b>exact match</b> on the item name.
1124
1124
  * You can retrieve all available item names from the <a href="#.ListingNames">ListingNames method</a>.
1125
- * @param {string=} editionFilter - Filter results by item edition.
1125
+ * @param {Array<string>} editionFilters - Filter results by item edition.
1126
1126
  * <br /><br />
1127
1127
  * NOTE: This string must be an <b>exact match</b> on the edition name.
1128
1128
  * You can retrieve all available item edition names from the <a href="#.ListingEditionNames">ListingEditionNames method</a>.
@@ -1130,12 +1130,13 @@ exports.Listings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRunt
1130
1130
  * <br /><br />
1131
1131
  * NOTE: These filters must be an <b>exact match</b> on the attribute name and value.
1132
1132
  * You can retrieve all available item attributes from the <a href="#.ListingAttributes">ListingAttributes method</a>.
1133
+ * @param {Object=} priceRange - Filter min and/or max price (e.g. `{min: 1}` `{max: 2}` `{min: 1.50, max: 10.50})
1133
1134
  * @param {string=} sellerAddress - Filter by a specific seller
1134
1135
  * @param {string=} contractAddress - Filter results by the address of the NFT contract
1135
1136
  * @param {string=} tokenId - Filter by token ID (if filtering by contract address)
1136
1137
  * @param {string=} currency - Filter results by purchase currency. Available options: `usdc`
1137
1138
  * @param {Object=} marketplaceParams - Filter results by marketplace
1138
- * @param {integer=} collectionIndex - If filtering by marketplace, filter by collection. The index refers to the index in the array `marketplace.collections`
1139
+ * @param {Array<integer>=} collectionIndexes - If filtering by marketplace, filter by collection(s). The index refers to the index in the array `marketplace.collections`
1139
1140
  * @param {integer=} lastNDays - Filter by results listed in the past N days
1140
1141
  *
1141
1142
  * @returns {Promise<Object>} - Statistics about listings. All prices in USD.
@@ -1171,7 +1172,7 @@ exports.ListingStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator
1171
1172
  * <br /><br />
1172
1173
  * NOTE: This string must be an <b>exact match</b> on the item name.
1173
1174
  * You can retrieve all available item names from the <a href="#.ListingNames">ListingNames method</a>.
1174
- * @param {string=} editionFilter - Filter results by item edition.
1175
+ * @param {Array<string>} editionFilters - Filter results by item edition.
1175
1176
  * <br /><br />
1176
1177
  * NOTE: This string must be an <b>exact match</b> on the edition name.
1177
1178
  * You can retrieve all available item edition names from the <a href="#.ListingEditionNames">ListingEditionNames method</a>.
@@ -1184,7 +1185,7 @@ exports.ListingStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator
1184
1185
  * @param {string=} tokenId - Filter by token ID (if filtering by contract address)
1185
1186
  * @param {string=} currency - Filter results by purchase currency. Available options: `usdc`
1186
1187
  * @param {Object=} marketplaceParams - Filter results by marketplace
1187
- * @param {integer=} collectionIndex - If filtering by marketplace, filter by collection. The index refers to the index in the array `marketplace.collections`
1188
+ * @param {Array<integer>=} collectionIndexes - If filtering by marketplace, filter by collection(s). The index refers to the index in the array `marketplace.collections`
1188
1189
  * @param {integer=} lastNDays - Filter by results listed in the past N days
1189
1190
  *
1190
1191
  * @returns {Promise<Object>} - Results of the query and pagination info
@@ -1220,7 +1221,7 @@ exports.Sales = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
1220
1221
  * <br /><br />
1221
1222
  * NOTE: This string must be an <b>exact match</b> on the item name.
1222
1223
  * You can retrieve all available item names from the <a href="#.ListingNames">ListingNames method</a>.
1223
- * @param {string=} editionFilter - Filter results by item edition.
1224
+ * @param {Array<string>} editionFilters - Filter results by item edition.
1224
1225
  * <br /><br />
1225
1226
  * NOTE: This string must be an <b>exact match</b> on the edition name.
1226
1227
  * You can retrieve all available item edition names from the <a href="#.ListingEditionNames">ListingEditionNames method</a>.
@@ -1233,7 +1234,7 @@ exports.Sales = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
1233
1234
  * @param {string=} tokenId - Filter by token ID (if filtering by contract address)
1234
1235
  * @param {string=} currency - Filter results by purchase currency. Available options: `usdc`
1235
1236
  * @param {Object=} marketplaceParams - Filter results by marketplace
1236
- * @param {integer=} collectionIndex - If filtering by marketplace, filter by collection. The index refers to the index in the array `marketplace.collections`
1237
+ * @param {Array<integer>=} collectionIndexes - If filtering by marketplace, filter by collection(s). The index refers to the index in the array `marketplace.collections`
1237
1238
  * @param {integer=} lastNDays - Filter by results listed in the past N days
1238
1239
  *
1239
1240
  * @returns {Promise<Object>} - Results of the query and pagination info
@@ -1269,7 +1270,7 @@ exports.Transfers = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRun
1269
1270
  * <br /><br />
1270
1271
  * NOTE: This string must be an <b>exact match</b> on the item name.
1271
1272
  * You can retrieve all available item names from the <a href="#.ListingNames">ListingNames method</a>.
1272
- * @param {string=} editionFilter - Filter results by item edition.
1273
+ * @param {Array<string>} editionFilters - Filter results by item edition.
1273
1274
  * <br /><br />
1274
1275
  * NOTE: This string must be an <b>exact match</b> on the edition name.
1275
1276
  * You can retrieve all available item edition names from the <a href="#.ListingEditionNames">ListingEditionNames method</a>.
@@ -1282,7 +1283,7 @@ exports.Transfers = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRun
1282
1283
  * @param {string=} tokenId - Filter by token ID (if filtering by contract address)
1283
1284
  * @param {string=} currency - Filter results by purchase currency. Available options: `usdc`
1284
1285
  * @param {Object=} marketplaceParams - Filter results by marketplace
1285
- * @param {integer=} collectionIndex - If filtering by marketplace, filter by collection. The index refers to the index in the array `marketplace.collections`
1286
+ * @param {Array<integer>=} collectionIndexes - If filtering by marketplace, filter by collection(s). The index refers to the index in the array `marketplace.collections`
1286
1287
  * @param {integer=} lastNDays - Filter by results listed in the past N days
1287
1288
  *
1288
1289
  * @returns {Promise<Object>} - Statistics about sales. All prices in USD.
@@ -12,7 +12,7 @@ var WalletConfiguration = {
12
12
  staging: {
13
13
  siteId: "iq__inauxD1KLyKWPHargCWjdCh2ayr",
14
14
  purchaseMode: "production",
15
- appUrl: "https://core.test.contentfabric.io/wallet"
15
+ appUrl: "https://wallet.preview.contentfabric.io"
16
16
  },
17
17
  production: {
18
18
  siteId: "iq__suqRJUt2vmXsyiWS5ZaSGwtFU9R",