@eluvio/elv-client-js 3.2.15 → 3.2.16
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.
|
@@ -1194,10 +1194,11 @@ var ElvWalletClient = /*#__PURE__*/function () {
|
|
|
1194
1194
|
|
|
1195
1195
|
case 14:
|
|
1196
1196
|
item.nftTemplateMetadata = (item.nft_template || {}).nft || {};
|
|
1197
|
+
item.nftTemplateHash = ((item.nft_template || {})["."] || {}).source;
|
|
1197
1198
|
item.itemIndex = index;
|
|
1198
1199
|
return _context14.abrupt("return", item);
|
|
1199
1200
|
|
|
1200
|
-
case
|
|
1201
|
+
case 18:
|
|
1201
1202
|
case "end":
|
|
1202
1203
|
return _context14.stop();
|
|
1203
1204
|
}
|
|
@@ -1457,7 +1458,7 @@ var ElvWalletClient = /*#__PURE__*/function () {
|
|
|
1457
1458
|
}
|
|
1458
1459
|
|
|
1459
1460
|
_context16.t0 = mode;
|
|
1460
|
-
_context16.next = _context16.t0 === "owned" ? 26 : _context16.t0 === "listings" ? 29 : _context16.t0 === "transfers" ? 31 : _context16.t0 === "sales" ? 35 : _context16.t0 === "listing-stats" ?
|
|
1461
|
+
_context16.next = _context16.t0 === "owned" ? 26 : _context16.t0 === "listings" ? 29 : _context16.t0 === "transfers" ? 31 : _context16.t0 === "sales" ? 35 : _context16.t0 === "listing-stats" ? 39 : _context16.t0 === "sales-stats" ? 41 : 44;
|
|
1461
1462
|
break;
|
|
1462
1463
|
|
|
1463
1464
|
case 26:
|
|
@@ -1467,54 +1468,56 @@ var ElvWalletClient = /*#__PURE__*/function () {
|
|
|
1467
1468
|
path = UrlJoin("as", "wlt", "nfts", marketplaceInfo.tenantId);
|
|
1468
1469
|
}
|
|
1469
1470
|
|
|
1470
|
-
return _context16.abrupt("break",
|
|
1471
|
+
return _context16.abrupt("break", 44);
|
|
1471
1472
|
|
|
1472
1473
|
case 29:
|
|
1473
1474
|
path = UrlJoin("as", "mkt", "f");
|
|
1474
|
-
return _context16.abrupt("break",
|
|
1475
|
+
return _context16.abrupt("break", 44);
|
|
1475
1476
|
|
|
1476
1477
|
case 31:
|
|
1477
1478
|
path = UrlJoin("as", "mkt", "hst", "f");
|
|
1478
1479
|
filters.push("action:eq:TRANSFERRED");
|
|
1479
1480
|
filters.push("action:eq:SOLD");
|
|
1480
|
-
return _context16.abrupt("break",
|
|
1481
|
+
return _context16.abrupt("break", 44);
|
|
1481
1482
|
|
|
1482
1483
|
case 35:
|
|
1483
1484
|
path = UrlJoin("as", "mkt", "hst", "f");
|
|
1484
1485
|
filters.push("action:eq:SOLD");
|
|
1485
|
-
|
|
1486
|
+
filters.push("seller:co:0x");
|
|
1487
|
+
return _context16.abrupt("break", 44);
|
|
1486
1488
|
|
|
1487
|
-
case
|
|
1489
|
+
case 39:
|
|
1488
1490
|
path = UrlJoin("as", "mkt", "stats", "listed");
|
|
1489
|
-
return _context16.abrupt("break",
|
|
1491
|
+
return _context16.abrupt("break", 44);
|
|
1490
1492
|
|
|
1491
|
-
case
|
|
1493
|
+
case 41:
|
|
1492
1494
|
path = UrlJoin("as", "mkt", "stats", "sold");
|
|
1493
|
-
|
|
1495
|
+
filters.push("seller:co:0x");
|
|
1496
|
+
return _context16.abrupt("break", 44);
|
|
1494
1497
|
|
|
1495
|
-
case
|
|
1498
|
+
case 44:
|
|
1496
1499
|
if (filters.length > 0) {
|
|
1497
1500
|
params.filter = filters;
|
|
1498
1501
|
}
|
|
1499
1502
|
|
|
1500
1503
|
if (!mode.includes("stats")) {
|
|
1501
|
-
_context16.next =
|
|
1504
|
+
_context16.next = 49;
|
|
1502
1505
|
break;
|
|
1503
1506
|
}
|
|
1504
1507
|
|
|
1505
|
-
_context16.next =
|
|
1508
|
+
_context16.next = 48;
|
|
1506
1509
|
return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
|
|
1507
1510
|
path: path,
|
|
1508
1511
|
method: "GET",
|
|
1509
1512
|
queryParams: params
|
|
1510
1513
|
}));
|
|
1511
1514
|
|
|
1512
|
-
case
|
|
1515
|
+
case 48:
|
|
1513
1516
|
return _context16.abrupt("return", _context16.sent);
|
|
1514
1517
|
|
|
1515
|
-
case
|
|
1518
|
+
case 49:
|
|
1516
1519
|
_context16.t2 = Utils;
|
|
1517
|
-
_context16.next =
|
|
1520
|
+
_context16.next = 52;
|
|
1518
1521
|
return this.client.authClient.MakeAuthServiceRequest({
|
|
1519
1522
|
path: path,
|
|
1520
1523
|
method: "GET",
|
|
@@ -1524,22 +1527,22 @@ var ElvWalletClient = /*#__PURE__*/function () {
|
|
|
1524
1527
|
} : {}
|
|
1525
1528
|
});
|
|
1526
1529
|
|
|
1527
|
-
case
|
|
1530
|
+
case 52:
|
|
1528
1531
|
_context16.t3 = _context16.sent;
|
|
1529
|
-
_context16.next =
|
|
1532
|
+
_context16.next = 55;
|
|
1530
1533
|
return _context16.t2.ResponseToJson.call(_context16.t2, _context16.t3);
|
|
1531
1534
|
|
|
1532
|
-
case
|
|
1535
|
+
case 55:
|
|
1533
1536
|
_context16.t1 = _context16.sent;
|
|
1534
1537
|
|
|
1535
1538
|
if (_context16.t1) {
|
|
1536
|
-
_context16.next =
|
|
1539
|
+
_context16.next = 58;
|
|
1537
1540
|
break;
|
|
1538
1541
|
}
|
|
1539
1542
|
|
|
1540
1543
|
_context16.t1 = [];
|
|
1541
1544
|
|
|
1542
|
-
case
|
|
1545
|
+
case 58:
|
|
1543
1546
|
_ref16 = _context16.t1;
|
|
1544
1547
|
contents = _ref16.contents;
|
|
1545
1548
|
paging = _ref16.paging;
|
|
@@ -1555,12 +1558,12 @@ var ElvWalletClient = /*#__PURE__*/function () {
|
|
|
1555
1558
|
})
|
|
1556
1559
|
});
|
|
1557
1560
|
|
|
1558
|
-
case
|
|
1559
|
-
_context16.prev =
|
|
1561
|
+
case 64:
|
|
1562
|
+
_context16.prev = 64;
|
|
1560
1563
|
_context16.t4 = _context16["catch"](11);
|
|
1561
1564
|
|
|
1562
1565
|
if (!(_context16.t4.status && _context16.t4.status.toString() === "404")) {
|
|
1563
|
-
_context16.next =
|
|
1566
|
+
_context16.next = 68;
|
|
1564
1567
|
break;
|
|
1565
1568
|
}
|
|
1566
1569
|
|
|
@@ -1574,15 +1577,15 @@ var ElvWalletClient = /*#__PURE__*/function () {
|
|
|
1574
1577
|
results: []
|
|
1575
1578
|
});
|
|
1576
1579
|
|
|
1577
|
-
case
|
|
1580
|
+
case 68:
|
|
1578
1581
|
throw _context16.t4;
|
|
1579
1582
|
|
|
1580
|
-
case
|
|
1583
|
+
case 69:
|
|
1581
1584
|
case "end":
|
|
1582
1585
|
return _context16.stop();
|
|
1583
1586
|
}
|
|
1584
1587
|
}
|
|
1585
|
-
}, _callee16, this, [[11,
|
|
1588
|
+
}, _callee16, this, [[11, 64]]);
|
|
1586
1589
|
}));
|
|
1587
1590
|
|
|
1588
1591
|
function FilteredQuery() {
|
package/package.json
CHANGED