@eluvio/elv-client-js 3.2.12 → 3.2.15

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/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;
@@ -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
  }
@@ -1638,6 +1637,60 @@ exports.ListingAttributes = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regene
1638
1637
  }
1639
1638
  }, _callee26, this);
1640
1639
  }));
1640
+ /* PURCHASE / CLAIM */
1641
+
1642
+ /**
1643
+ * Claim the specified item from the specified marketplace
1644
+ *
1645
+ * Use the <a href="#.ClaimStatus">ClaimStatus</a> method to check minting status after claiming
1646
+ *
1647
+ * @methodGroup Purchase
1648
+ * @namedParams
1649
+ * @param {Object} marketplaceParams - Parameters of the marketplace
1650
+ * @param {string} sku - The SKU of the item to claime
1651
+ */
1652
+
1653
+ exports.ClaimItem = /*#__PURE__*/function () {
1654
+ var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(_ref50) {
1655
+ var marketplaceParams, sku, marketplaceInfo;
1656
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
1657
+ while (1) {
1658
+ switch (_context27.prev = _context27.next) {
1659
+ case 0:
1660
+ marketplaceParams = _ref50.marketplaceParams, sku = _ref50.sku;
1661
+ _context27.next = 3;
1662
+ return this.MarketplaceInfo({
1663
+ marketplaceParams: marketplaceParams
1664
+ });
1665
+
1666
+ case 3:
1667
+ marketplaceInfo = _context27.sent;
1668
+ _context27.next = 6;
1669
+ return this.client.authClient.MakeAuthServiceRequest({
1670
+ method: "POST",
1671
+ path: UrlJoin("as", "wlt", "act", marketplaceInfo.tenant_id),
1672
+ body: {
1673
+ op: "nft-claim",
1674
+ sid: marketplaceInfo.marketplaceId,
1675
+ sku: sku
1676
+ },
1677
+ headers: {
1678
+ Authorization: "Bearer ".concat(this.AuthToken())
1679
+ }
1680
+ });
1681
+
1682
+ case 6:
1683
+ case "end":
1684
+ return _context27.stop();
1685
+ }
1686
+ }
1687
+ }, _callee27, this);
1688
+ }));
1689
+
1690
+ return function (_x14) {
1691
+ return _ref51.apply(this, arguments);
1692
+ };
1693
+ }();
1641
1694
  /* MINTING STATUS */
1642
1695
 
1643
1696
  /**
@@ -1651,62 +1704,63 @@ exports.ListingAttributes = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regene
1651
1704
  * @returns {Promise<Object>} - The status of the purchase
1652
1705
  */
1653
1706
 
1707
+
1654
1708
  exports.ListingPurchaseStatus = /*#__PURE__*/function () {
1655
- var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(_ref50) {
1709
+ var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(_ref52) {
1656
1710
  var listingId, confirmationId, listingStatus, statuses;
1657
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
1711
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
1658
1712
  while (1) {
1659
- switch (_context27.prev = _context27.next) {
1713
+ switch (_context28.prev = _context28.next) {
1660
1714
  case 0:
1661
- listingId = _ref50.listingId, confirmationId = _ref50.confirmationId;
1662
- _context27.prev = 1;
1663
- _context27.next = 4;
1715
+ listingId = _ref52.listingId, confirmationId = _ref52.confirmationId;
1716
+ _context28.prev = 1;
1717
+ _context28.next = 4;
1664
1718
  return this.ListingStatus({
1665
1719
  listingId: listingId
1666
1720
  });
1667
1721
 
1668
1722
  case 4:
1669
- listingStatus = _context27.sent;
1723
+ listingStatus = _context28.sent;
1670
1724
 
1671
1725
  if (listingStatus) {
1672
- _context27.next = 7;
1726
+ _context28.next = 7;
1673
1727
  break;
1674
1728
  }
1675
1729
 
1676
1730
  throw Error("Unable to find info for listing " + listingId);
1677
1731
 
1678
1732
  case 7:
1679
- _context27.next = 9;
1733
+ _context28.next = 9;
1680
1734
  return this.MintingStatus({
1681
1735
  tenantId: listingStatus.tenant
1682
1736
  });
1683
1737
 
1684
1738
  case 9:
1685
- statuses = _context27.sent;
1686
- return _context27.abrupt("return", statuses.find(function (status) {
1739
+ statuses = _context28.sent;
1740
+ return _context28.abrupt("return", statuses.find(function (status) {
1687
1741
  return status.op === "nft-transfer" && status.extra && status.extra[0] === confirmationId;
1688
1742
  }) || {
1689
1743
  status: "none"
1690
1744
  });
1691
1745
 
1692
1746
  case 13:
1693
- _context27.prev = 13;
1694
- _context27.t0 = _context27["catch"](1);
1695
- this.Log(_context27.t0, true);
1696
- return _context27.abrupt("return", {
1747
+ _context28.prev = 13;
1748
+ _context28.t0 = _context28["catch"](1);
1749
+ this.Log(_context28.t0, true);
1750
+ return _context28.abrupt("return", {
1697
1751
  status: "unknown"
1698
1752
  });
1699
1753
 
1700
1754
  case 17:
1701
1755
  case "end":
1702
- return _context27.stop();
1756
+ return _context28.stop();
1703
1757
  }
1704
1758
  }
1705
- }, _callee27, this, [[1, 13]]);
1759
+ }, _callee28, this, [[1, 13]]);
1706
1760
  }));
1707
1761
 
1708
- return function (_x14) {
1709
- return _ref51.apply(this, arguments);
1762
+ return function (_x15) {
1763
+ return _ref53.apply(this, arguments);
1710
1764
  };
1711
1765
  }();
1712
1766
  /**
@@ -1722,52 +1776,52 @@ exports.ListingPurchaseStatus = /*#__PURE__*/function () {
1722
1776
 
1723
1777
 
1724
1778
  exports.PurchaseStatus = /*#__PURE__*/function () {
1725
- var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(_ref52) {
1779
+ var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(_ref54) {
1726
1780
  var marketplaceParams, confirmationId, marketplaceInfo, statuses;
1727
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
1781
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
1728
1782
  while (1) {
1729
- switch (_context28.prev = _context28.next) {
1783
+ switch (_context29.prev = _context29.next) {
1730
1784
  case 0:
1731
- marketplaceParams = _ref52.marketplaceParams, confirmationId = _ref52.confirmationId;
1732
- _context28.prev = 1;
1733
- _context28.next = 4;
1785
+ marketplaceParams = _ref54.marketplaceParams, confirmationId = _ref54.confirmationId;
1786
+ _context29.prev = 1;
1787
+ _context29.next = 4;
1734
1788
  return this.MarketplaceInfo({
1735
1789
  marketplaceParams: marketplaceParams
1736
1790
  });
1737
1791
 
1738
1792
  case 4:
1739
- marketplaceInfo = _context28.sent;
1740
- _context28.next = 7;
1793
+ marketplaceInfo = _context29.sent;
1794
+ _context29.next = 7;
1741
1795
  return this.MintingStatus({
1742
1796
  tenantId: marketplaceInfo.tenant_id
1743
1797
  });
1744
1798
 
1745
1799
  case 7:
1746
- statuses = _context28.sent;
1747
- return _context28.abrupt("return", statuses.find(function (status) {
1800
+ statuses = _context29.sent;
1801
+ return _context29.abrupt("return", statuses.find(function (status) {
1748
1802
  return status.op === "nft-buy" && status.confirmationId === confirmationId;
1749
1803
  }) || {
1750
1804
  status: "none"
1751
1805
  });
1752
1806
 
1753
1807
  case 11:
1754
- _context28.prev = 11;
1755
- _context28.t0 = _context28["catch"](1);
1756
- this.Log(_context28.t0, true);
1757
- return _context28.abrupt("return", {
1808
+ _context29.prev = 11;
1809
+ _context29.t0 = _context29["catch"](1);
1810
+ this.Log(_context29.t0, true);
1811
+ return _context29.abrupt("return", {
1758
1812
  status: "unknown"
1759
1813
  });
1760
1814
 
1761
1815
  case 15:
1762
1816
  case "end":
1763
- return _context28.stop();
1817
+ return _context29.stop();
1764
1818
  }
1765
1819
  }
1766
- }, _callee28, this, [[1, 11]]);
1820
+ }, _callee29, this, [[1, 11]]);
1767
1821
  }));
1768
1822
 
1769
- return function (_x15) {
1770
- return _ref53.apply(this, arguments);
1823
+ return function (_x16) {
1824
+ return _ref55.apply(this, arguments);
1771
1825
  };
1772
1826
  }();
1773
1827
  /**
@@ -1783,52 +1837,52 @@ exports.PurchaseStatus = /*#__PURE__*/function () {
1783
1837
 
1784
1838
 
1785
1839
  exports.ClaimStatus = /*#__PURE__*/function () {
1786
- var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(_ref54) {
1840
+ var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(_ref56) {
1787
1841
  var marketplaceParams, sku, marketplaceInfo, statuses;
1788
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
1842
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
1789
1843
  while (1) {
1790
- switch (_context29.prev = _context29.next) {
1844
+ switch (_context30.prev = _context30.next) {
1791
1845
  case 0:
1792
- marketplaceParams = _ref54.marketplaceParams, sku = _ref54.sku;
1793
- _context29.prev = 1;
1794
- _context29.next = 4;
1846
+ marketplaceParams = _ref56.marketplaceParams, sku = _ref56.sku;
1847
+ _context30.prev = 1;
1848
+ _context30.next = 4;
1795
1849
  return this.MarketplaceInfo({
1796
1850
  marketplaceParams: marketplaceParams
1797
1851
  });
1798
1852
 
1799
1853
  case 4:
1800
- marketplaceInfo = _context29.sent;
1801
- _context29.next = 7;
1854
+ marketplaceInfo = _context30.sent;
1855
+ _context30.next = 7;
1802
1856
  return this.MintingStatus({
1803
1857
  tenantId: marketplaceInfo.tenantId
1804
1858
  });
1805
1859
 
1806
1860
  case 7:
1807
- statuses = _context29.sent;
1808
- return _context29.abrupt("return", statuses.find(function (status) {
1861
+ statuses = _context30.sent;
1862
+ return _context30.abrupt("return", statuses.find(function (status) {
1809
1863
  return status.op === "nft-claim" && status.marketplaceId === marketplaceInfo.marketplaceId && status.confirmationId === sku;
1810
1864
  }) || {
1811
1865
  status: "none"
1812
1866
  });
1813
1867
 
1814
1868
  case 11:
1815
- _context29.prev = 11;
1816
- _context29.t0 = _context29["catch"](1);
1817
- this.Log(_context29.t0, true);
1818
- return _context29.abrupt("return", {
1869
+ _context30.prev = 11;
1870
+ _context30.t0 = _context30["catch"](1);
1871
+ this.Log(_context30.t0, true);
1872
+ return _context30.abrupt("return", {
1819
1873
  status: "unknown"
1820
1874
  });
1821
1875
 
1822
1876
  case 15:
1823
1877
  case "end":
1824
- return _context29.stop();
1878
+ return _context30.stop();
1825
1879
  }
1826
1880
  }
1827
- }, _callee29, this, [[1, 11]]);
1881
+ }, _callee30, this, [[1, 11]]);
1828
1882
  }));
1829
1883
 
1830
- return function (_x16) {
1831
- return _ref55.apply(this, arguments);
1884
+ return function (_x17) {
1885
+ return _ref57.apply(this, arguments);
1832
1886
  };
1833
1887
  }();
1834
1888
  /**
@@ -1844,52 +1898,52 @@ exports.ClaimStatus = /*#__PURE__*/function () {
1844
1898
 
1845
1899
 
1846
1900
  exports.PackOpenStatus = /*#__PURE__*/function () {
1847
- var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(_ref56) {
1901
+ var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(_ref58) {
1848
1902
  var contractAddress, tokenId, tenantConfig, statuses;
1849
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
1903
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
1850
1904
  while (1) {
1851
- switch (_context30.prev = _context30.next) {
1905
+ switch (_context31.prev = _context31.next) {
1852
1906
  case 0:
1853
- contractAddress = _ref56.contractAddress, tokenId = _ref56.tokenId;
1854
- _context30.prev = 1;
1855
- _context30.next = 4;
1907
+ contractAddress = _ref58.contractAddress, tokenId = _ref58.tokenId;
1908
+ _context31.prev = 1;
1909
+ _context31.next = 4;
1856
1910
  return this.TenantConfiguration({
1857
1911
  contractAddress: contractAddress
1858
1912
  });
1859
1913
 
1860
1914
  case 4:
1861
- tenantConfig = _context30.sent;
1862
- _context30.next = 7;
1915
+ tenantConfig = _context31.sent;
1916
+ _context31.next = 7;
1863
1917
  return this.MintingStatus({
1864
1918
  tenantId: tenantConfig.tenant
1865
1919
  });
1866
1920
 
1867
1921
  case 7:
1868
- statuses = _context30.sent;
1869
- return _context30.abrupt("return", statuses.find(function (status) {
1922
+ statuses = _context31.sent;
1923
+ return _context31.abrupt("return", statuses.find(function (status) {
1870
1924
  return status.op === "nft-open" && Utils.EqualAddress(contractAddress, status.address) && status.tokenId === tokenId;
1871
1925
  }) || {
1872
1926
  status: "none"
1873
1927
  });
1874
1928
 
1875
1929
  case 11:
1876
- _context30.prev = 11;
1877
- _context30.t0 = _context30["catch"](1);
1878
- this.Log(_context30.t0, true);
1879
- return _context30.abrupt("return", {
1930
+ _context31.prev = 11;
1931
+ _context31.t0 = _context31["catch"](1);
1932
+ this.Log(_context31.t0, true);
1933
+ return _context31.abrupt("return", {
1880
1934
  status: "unknown"
1881
1935
  });
1882
1936
 
1883
1937
  case 15:
1884
1938
  case "end":
1885
- return _context30.stop();
1939
+ return _context31.stop();
1886
1940
  }
1887
1941
  }
1888
- }, _callee30, this, [[1, 11]]);
1942
+ }, _callee31, this, [[1, 11]]);
1889
1943
  }));
1890
1944
 
1891
- return function (_x17) {
1892
- return _ref57.apply(this, arguments);
1945
+ return function (_x18) {
1946
+ return _ref59.apply(this, arguments);
1893
1947
  };
1894
1948
  }();
1895
1949
  /**
@@ -1905,60 +1959,60 @@ exports.PackOpenStatus = /*#__PURE__*/function () {
1905
1959
 
1906
1960
 
1907
1961
  exports.CollectionRedemptionStatus = /*#__PURE__*/function () {
1908
- var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(_ref58) {
1962
+ var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(_ref60) {
1909
1963
  var marketplaceParams, confirmationId, statuses;
1910
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
1964
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
1911
1965
  while (1) {
1912
- switch (_context31.prev = _context31.next) {
1966
+ switch (_context32.prev = _context32.next) {
1913
1967
  case 0:
1914
- marketplaceParams = _ref58.marketplaceParams, confirmationId = _ref58.confirmationId;
1915
- _context31.prev = 1;
1916
- _context31.next = 4;
1968
+ marketplaceParams = _ref60.marketplaceParams, confirmationId = _ref60.confirmationId;
1969
+ _context32.prev = 1;
1970
+ _context32.next = 4;
1917
1971
  return this.MintingStatus({
1918
1972
  marketplaceParams: marketplaceParams
1919
1973
  });
1920
1974
 
1921
1975
  case 4:
1922
- statuses = _context31.sent;
1923
- return _context31.abrupt("return", statuses.find(function (status) {
1976
+ statuses = _context32.sent;
1977
+ return _context32.abrupt("return", statuses.find(function (status) {
1924
1978
  return status.op === "nft-redeem" && status.confirmationId === confirmationId;
1925
1979
  }) || {
1926
1980
  status: "none"
1927
1981
  });
1928
1982
 
1929
1983
  case 8:
1930
- _context31.prev = 8;
1931
- _context31.t0 = _context31["catch"](1);
1932
- this.Log(_context31.t0, true);
1933
- return _context31.abrupt("return", {
1984
+ _context32.prev = 8;
1985
+ _context32.t0 = _context32["catch"](1);
1986
+ this.Log(_context32.t0, true);
1987
+ return _context32.abrupt("return", {
1934
1988
  status: "unknown"
1935
1989
  });
1936
1990
 
1937
1991
  case 12:
1938
1992
  case "end":
1939
- return _context31.stop();
1993
+ return _context32.stop();
1940
1994
  }
1941
1995
  }
1942
- }, _callee31, this, [[1, 8]]);
1996
+ }, _callee32, this, [[1, 8]]);
1943
1997
  }));
1944
1998
 
1945
- return function (_x18) {
1946
- return _ref59.apply(this, arguments);
1999
+ return function (_x19) {
2000
+ return _ref61.apply(this, arguments);
1947
2001
  };
1948
2002
  }();
1949
2003
  /* EVENTS */
1950
2004
 
1951
2005
 
1952
2006
  exports.LoadDrop = /*#__PURE__*/function () {
1953
- var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(_ref60) {
2007
+ var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(_ref62) {
1954
2008
  var _this2 = this;
1955
2009
 
1956
2010
  var tenantSlug, eventSlug, dropId, mainSiteHash, event, eventId;
1957
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
2011
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
1958
2012
  while (1) {
1959
- switch (_context32.prev = _context32.next) {
2013
+ switch (_context33.prev = _context33.next) {
1960
2014
  case 0:
1961
- tenantSlug = _ref60.tenantSlug, eventSlug = _ref60.eventSlug, dropId = _ref60.dropId;
2015
+ tenantSlug = _ref62.tenantSlug, eventSlug = _ref62.eventSlug, dropId = _ref62.dropId;
1962
2016
 
1963
2017
  if (!this.drops) {
1964
2018
  this.drops = {};
@@ -1973,18 +2027,18 @@ exports.LoadDrop = /*#__PURE__*/function () {
1973
2027
  }
1974
2028
 
1975
2029
  if (this.drops[tenantSlug][eventSlug][dropId]) {
1976
- _context32.next = 16;
2030
+ _context33.next = 16;
1977
2031
  break;
1978
2032
  }
1979
2033
 
1980
- _context32.next = 7;
2034
+ _context33.next = 7;
1981
2035
  return this.client.LatestVersionHash({
1982
2036
  objectId: this.mainSiteId
1983
2037
  });
1984
2038
 
1985
2039
  case 7:
1986
- mainSiteHash = _context32.sent;
1987
- _context32.next = 10;
2040
+ mainSiteHash = _context33.sent;
2041
+ _context33.next = 10;
1988
2042
  return this.client.ContentObjectMetadata({
1989
2043
  versionHash: mainSiteHash,
1990
2044
  metadataSubtree: UrlJoin("public", "asset_metadata", "tenants", tenantSlug, "sites", eventSlug, "info"),
@@ -1997,17 +2051,17 @@ exports.LoadDrop = /*#__PURE__*/function () {
1997
2051
  });
1998
2052
 
1999
2053
  case 10:
2000
- _context32.t0 = _context32.sent;
2054
+ _context33.t0 = _context33.sent;
2001
2055
 
2002
- if (_context32.t0) {
2003
- _context32.next = 13;
2056
+ if (_context33.t0) {
2057
+ _context33.next = 13;
2004
2058
  break;
2005
2059
  }
2006
2060
 
2007
- _context32.t0 = [];
2061
+ _context33.t0 = [];
2008
2062
 
2009
2063
  case 13:
2010
- event = _context32.t0;
2064
+ event = _context33.t0;
2011
2065
  eventId = Utils.DecodeVersionHash(event["."].source).objectId;
2012
2066
  event.drops.forEach(function (drop) {
2013
2067
  drop = _objectSpread(_objectSpread({}, drop), {}, {
@@ -2018,37 +2072,37 @@ exports.LoadDrop = /*#__PURE__*/function () {
2018
2072
  });
2019
2073
 
2020
2074
  case 16:
2021
- return _context32.abrupt("return", this.drops[dropId]);
2075
+ return _context33.abrupt("return", this.drops[dropId]);
2022
2076
 
2023
2077
  case 17:
2024
2078
  case "end":
2025
- return _context32.stop();
2079
+ return _context33.stop();
2026
2080
  }
2027
2081
  }
2028
- }, _callee32, this);
2082
+ }, _callee33, this);
2029
2083
  }));
2030
2084
 
2031
- return function (_x19) {
2032
- return _ref61.apply(this, arguments);
2085
+ return function (_x20) {
2086
+ return _ref63.apply(this, arguments);
2033
2087
  };
2034
2088
  }();
2035
2089
 
2036
2090
  exports.SubmitDropVote = /*#__PURE__*/function () {
2037
- var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(_ref62) {
2091
+ var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(_ref64) {
2038
2092
  var marketplaceParams, eventId, dropId, sku, marketplaceInfo;
2039
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
2093
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
2040
2094
  while (1) {
2041
- switch (_context33.prev = _context33.next) {
2095
+ switch (_context34.prev = _context34.next) {
2042
2096
  case 0:
2043
- marketplaceParams = _ref62.marketplaceParams, eventId = _ref62.eventId, dropId = _ref62.dropId, sku = _ref62.sku;
2044
- _context33.next = 3;
2097
+ marketplaceParams = _ref64.marketplaceParams, eventId = _ref64.eventId, dropId = _ref64.dropId, sku = _ref64.sku;
2098
+ _context34.next = 3;
2045
2099
  return this.MarketplaceInfo({
2046
2100
  marketplaceParams: marketplaceParams
2047
2101
  });
2048
2102
 
2049
2103
  case 3:
2050
- marketplaceInfo = _context33.sent;
2051
- _context33.next = 6;
2104
+ marketplaceInfo = _context34.sent;
2105
+ _context34.next = 6;
2052
2106
  return this.client.authClient.MakeAuthServiceRequest({
2053
2107
  path: UrlJoin("as", "wlt", "act", marketplaceInfo.tenant_id),
2054
2108
  method: "POST",
@@ -2065,27 +2119,27 @@ exports.SubmitDropVote = /*#__PURE__*/function () {
2065
2119
 
2066
2120
  case 6:
2067
2121
  case "end":
2068
- return _context33.stop();
2122
+ return _context34.stop();
2069
2123
  }
2070
2124
  }
2071
- }, _callee33, this);
2125
+ }, _callee34, this);
2072
2126
  }));
2073
2127
 
2074
- return function (_x20) {
2075
- return _ref63.apply(this, arguments);
2128
+ return function (_x21) {
2129
+ return _ref65.apply(this, arguments);
2076
2130
  };
2077
2131
  }();
2078
2132
 
2079
2133
  exports.DropStatus = /*#__PURE__*/function () {
2080
- var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(_ref64) {
2134
+ var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(_ref66) {
2081
2135
  var marketplace, eventId, dropId, response;
2082
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
2136
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
2083
2137
  while (1) {
2084
- switch (_context34.prev = _context34.next) {
2138
+ switch (_context35.prev = _context35.next) {
2085
2139
  case 0:
2086
- marketplace = _ref64.marketplace, eventId = _ref64.eventId, dropId = _ref64.dropId;
2087
- _context34.prev = 1;
2088
- _context34.next = 4;
2140
+ marketplace = _ref66.marketplace, eventId = _ref66.eventId, dropId = _ref66.dropId;
2141
+ _context35.prev = 1;
2142
+ _context35.next = 4;
2089
2143
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2090
2144
  path: UrlJoin("as", "wlt", "act", marketplace.tenant_id, eventId, dropId),
2091
2145
  method: "GET",
@@ -2095,28 +2149,28 @@ exports.DropStatus = /*#__PURE__*/function () {
2095
2149
  }));
2096
2150
 
2097
2151
  case 4:
2098
- response = _context34.sent;
2099
- return _context34.abrupt("return", response.sort(function (a, b) {
2152
+ response = _context35.sent;
2153
+ return _context35.abrupt("return", response.sort(function (a, b) {
2100
2154
  return a.ts > b.ts ? 1 : -1;
2101
2155
  })[0] || {
2102
2156
  status: "none"
2103
2157
  });
2104
2158
 
2105
2159
  case 8:
2106
- _context34.prev = 8;
2107
- _context34.t0 = _context34["catch"](1);
2108
- this.Log(_context34.t0, true);
2109
- return _context34.abrupt("return", "");
2160
+ _context35.prev = 8;
2161
+ _context35.t0 = _context35["catch"](1);
2162
+ this.Log(_context35.t0, true);
2163
+ return _context35.abrupt("return", "");
2110
2164
 
2111
2165
  case 12:
2112
2166
  case "end":
2113
- return _context34.stop();
2167
+ return _context35.stop();
2114
2168
  }
2115
2169
  }
2116
- }, _callee34, this, [[1, 8]]);
2170
+ }, _callee35, this, [[1, 8]]);
2117
2171
  }));
2118
2172
 
2119
- return function (_x21) {
2120
- return _ref65.apply(this, arguments);
2173
+ return function (_x22) {
2174
+ return _ref67.apply(this, arguments);
2121
2175
  };
2122
2176
  }();