@eluvio/elv-client-js 4.0.33 → 4.0.34

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.
@@ -2138,17 +2138,44 @@ exports.RedeemableOfferStatus = /*#__PURE__*/function () {
2138
2138
  return _ref76.apply(this, arguments);
2139
2139
  };
2140
2140
  }();
2141
+ exports.RedeemableCustomFulfillmentInfo = /*#__PURE__*/function () {
2142
+ var _ref78 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(_ref77) {
2143
+ var redeemableTransactionId;
2144
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
2145
+ while (1) switch (_context39.prev = _context39.next) {
2146
+ case 0:
2147
+ redeemableTransactionId = _ref77.redeemableTransactionId;
2148
+ _context39.next = 3;
2149
+ return Utils.ResponseToJson(this.stateStoreClient.Request({
2150
+ method: "GET",
2151
+ path: UrlJoin("code-fulfillment", this.network === "main" ? "main" : "demov3", "fulfill", redeemableTransactionId),
2152
+ headers: {
2153
+ Authorization: "Bearer ".concat(this.AuthToken())
2154
+ }
2155
+ }));
2156
+ case 3:
2157
+ return _context39.abrupt("return", _context39.sent);
2158
+ case 4:
2159
+ case "end":
2160
+ return _context39.stop();
2161
+ }
2162
+ }, _callee39, this);
2163
+ }));
2164
+ return function (_x25) {
2165
+ return _ref78.apply(this, arguments);
2166
+ };
2167
+ }();
2141
2168
 
2142
2169
  /* EVENTS */
2143
2170
 
2144
2171
  exports.LoadDrop = /*#__PURE__*/function () {
2145
- var _ref78 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(_ref77) {
2172
+ var _ref80 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(_ref79) {
2146
2173
  var _this = this;
2147
2174
  var tenantSlug, eventSlug, dropId, event, eventId;
2148
- return _regeneratorRuntime.wrap(function _callee39$(_context39) {
2149
- while (1) switch (_context39.prev = _context39.next) {
2175
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
2176
+ while (1) switch (_context40.prev = _context40.next) {
2150
2177
  case 0:
2151
- tenantSlug = _ref77.tenantSlug, eventSlug = _ref77.eventSlug, dropId = _ref77.dropId;
2178
+ tenantSlug = _ref79.tenantSlug, eventSlug = _ref79.eventSlug, dropId = _ref79.dropId;
2152
2179
  if (!this.drops) {
2153
2180
  this.drops = {};
2154
2181
  }
@@ -2159,10 +2186,10 @@ exports.LoadDrop = /*#__PURE__*/function () {
2159
2186
  this.drops[tenantSlug][eventSlug] = {};
2160
2187
  }
2161
2188
  if (this.drops[tenantSlug][eventSlug][dropId]) {
2162
- _context39.next = 13;
2189
+ _context40.next = 13;
2163
2190
  break;
2164
2191
  }
2165
- _context39.next = 7;
2192
+ _context40.next = 7;
2166
2193
  return this.client.ContentObjectMetadata({
2167
2194
  libraryId: this.mainSiteLibraryId,
2168
2195
  objectId: this.mainSiteId,
@@ -2175,14 +2202,14 @@ exports.LoadDrop = /*#__PURE__*/function () {
2175
2202
  noAuth: true
2176
2203
  });
2177
2204
  case 7:
2178
- _context39.t0 = _context39.sent;
2179
- if (_context39.t0) {
2180
- _context39.next = 10;
2205
+ _context40.t0 = _context40.sent;
2206
+ if (_context40.t0) {
2207
+ _context40.next = 10;
2181
2208
  break;
2182
2209
  }
2183
- _context39.t0 = [];
2210
+ _context40.t0 = [];
2184
2211
  case 10:
2185
- event = _context39.t0;
2212
+ event = _context40.t0;
2186
2213
  eventId = Utils.DecodeVersionHash(event["."].source).objectId;
2187
2214
  event.drops.forEach(function (drop) {
2188
2215
  drop = _objectSpread(_objectSpread({}, drop), {}, {
@@ -2192,31 +2219,31 @@ exports.LoadDrop = /*#__PURE__*/function () {
2192
2219
  _this.drops[drop.uuid] = drop;
2193
2220
  });
2194
2221
  case 13:
2195
- return _context39.abrupt("return", this.drops[dropId]);
2222
+ return _context40.abrupt("return", this.drops[dropId]);
2196
2223
  case 14:
2197
2224
  case "end":
2198
- return _context39.stop();
2225
+ return _context40.stop();
2199
2226
  }
2200
- }, _callee39, this);
2227
+ }, _callee40, this);
2201
2228
  }));
2202
- return function (_x25) {
2203
- return _ref78.apply(this, arguments);
2229
+ return function (_x26) {
2230
+ return _ref80.apply(this, arguments);
2204
2231
  };
2205
2232
  }();
2206
2233
  exports.SubmitDropVote = /*#__PURE__*/function () {
2207
- var _ref80 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(_ref79) {
2234
+ var _ref82 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(_ref81) {
2208
2235
  var marketplaceParams, eventId, dropId, sku, marketplaceInfo;
2209
- return _regeneratorRuntime.wrap(function _callee40$(_context40) {
2210
- while (1) switch (_context40.prev = _context40.next) {
2236
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
2237
+ while (1) switch (_context41.prev = _context41.next) {
2211
2238
  case 0:
2212
- marketplaceParams = _ref79.marketplaceParams, eventId = _ref79.eventId, dropId = _ref79.dropId, sku = _ref79.sku;
2213
- _context40.next = 3;
2239
+ marketplaceParams = _ref81.marketplaceParams, eventId = _ref81.eventId, dropId = _ref81.dropId, sku = _ref81.sku;
2240
+ _context41.next = 3;
2214
2241
  return this.MarketplaceInfo({
2215
2242
  marketplaceParams: marketplaceParams
2216
2243
  });
2217
2244
  case 3:
2218
- marketplaceInfo = _context40.sent;
2219
- _context40.next = 6;
2245
+ marketplaceInfo = _context41.sent;
2246
+ _context41.next = 6;
2220
2247
  return this.client.authClient.MakeAuthServiceRequest({
2221
2248
  path: UrlJoin("as", "wlt", "act", marketplaceInfo.tenant_id),
2222
2249
  method: "POST",
@@ -2232,23 +2259,23 @@ exports.SubmitDropVote = /*#__PURE__*/function () {
2232
2259
  });
2233
2260
  case 6:
2234
2261
  case "end":
2235
- return _context40.stop();
2262
+ return _context41.stop();
2236
2263
  }
2237
- }, _callee40, this);
2264
+ }, _callee41, this);
2238
2265
  }));
2239
- return function (_x26) {
2240
- return _ref80.apply(this, arguments);
2266
+ return function (_x27) {
2267
+ return _ref82.apply(this, arguments);
2241
2268
  };
2242
2269
  }();
2243
2270
  exports.DropStatus = /*#__PURE__*/function () {
2244
- var _ref82 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(_ref81) {
2271
+ var _ref84 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(_ref83) {
2245
2272
  var marketplace, eventId, dropId, response;
2246
- return _regeneratorRuntime.wrap(function _callee41$(_context41) {
2247
- while (1) switch (_context41.prev = _context41.next) {
2273
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
2274
+ while (1) switch (_context42.prev = _context42.next) {
2248
2275
  case 0:
2249
- marketplace = _ref81.marketplace, eventId = _ref81.eventId, dropId = _ref81.dropId;
2250
- _context41.prev = 1;
2251
- _context41.next = 4;
2276
+ marketplace = _ref83.marketplace, eventId = _ref83.eventId, dropId = _ref83.dropId;
2277
+ _context42.prev = 1;
2278
+ _context42.next = 4;
2252
2279
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2253
2280
  path: UrlJoin("as", "wlt", "act", marketplace.tenant_id, eventId, dropId),
2254
2281
  method: "GET",
@@ -2257,25 +2284,25 @@ exports.DropStatus = /*#__PURE__*/function () {
2257
2284
  }
2258
2285
  }));
2259
2286
  case 4:
2260
- response = _context41.sent;
2261
- return _context41.abrupt("return", response.sort(function (a, b) {
2287
+ response = _context42.sent;
2288
+ return _context42.abrupt("return", response.sort(function (a, b) {
2262
2289
  return a.ts > b.ts ? 1 : -1;
2263
2290
  })[0] || {
2264
2291
  status: "none"
2265
2292
  });
2266
2293
  case 8:
2267
- _context41.prev = 8;
2268
- _context41.t0 = _context41["catch"](1);
2269
- this.Log(_context41.t0, true);
2270
- return _context41.abrupt("return", "");
2294
+ _context42.prev = 8;
2295
+ _context42.t0 = _context42["catch"](1);
2296
+ this.Log(_context42.t0, true);
2297
+ return _context42.abrupt("return", "");
2271
2298
  case 12:
2272
2299
  case "end":
2273
- return _context41.stop();
2300
+ return _context42.stop();
2274
2301
  }
2275
- }, _callee41, this, [[1, 8]]);
2302
+ }, _callee42, this, [[1, 8]]);
2276
2303
  }));
2277
- return function (_x27) {
2278
- return _ref82.apply(this, arguments);
2304
+ return function (_x28) {
2305
+ return _ref84.apply(this, arguments);
2279
2306
  };
2280
2307
  }();
2281
2308
 
@@ -2297,12 +2324,12 @@ exports.DropStatus = /*#__PURE__*/function () {
2297
2324
  * @returns {Promise<Array<Object>>} - Offers matching the specified filters
2298
2325
  */
2299
2326
  exports.MarketplaceOffers = /*#__PURE__*/function () {
2300
- var _ref84 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(_ref83) {
2301
- var contractAddress, tokenId, buyerAddress, sellerAddress, statuses, _ref83$start, start, _ref83$limit, limit, path, queryParams, offers;
2302
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
2303
- while (1) switch (_context42.prev = _context42.next) {
2327
+ var _ref86 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(_ref85) {
2328
+ var contractAddress, tokenId, buyerAddress, sellerAddress, statuses, _ref85$start, start, _ref85$limit, limit, path, queryParams, offers;
2329
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
2330
+ while (1) switch (_context43.prev = _context43.next) {
2304
2331
  case 0:
2305
- contractAddress = _ref83.contractAddress, tokenId = _ref83.tokenId, buyerAddress = _ref83.buyerAddress, sellerAddress = _ref83.sellerAddress, statuses = _ref83.statuses, _ref83$start = _ref83.start, start = _ref83$start === void 0 ? 0 : _ref83$start, _ref83$limit = _ref83.limit, limit = _ref83$limit === void 0 ? 10 : _ref83$limit;
2332
+ contractAddress = _ref85.contractAddress, tokenId = _ref85.tokenId, buyerAddress = _ref85.buyerAddress, sellerAddress = _ref85.sellerAddress, statuses = _ref85.statuses, _ref85$start = _ref85.start, start = _ref85$start === void 0 ? 0 : _ref85$start, _ref85$limit = _ref85.limit, limit = _ref85$limit === void 0 ? 10 : _ref85$limit;
2306
2333
  path = UrlJoin("as", "mkt", "offers", "ls");
2307
2334
  if (buyerAddress) {
2308
2335
  path = UrlJoin(path, "b", Utils.FormatAddress(buyerAddress));
@@ -2322,15 +2349,15 @@ exports.MarketplaceOffers = /*#__PURE__*/function () {
2322
2349
  if (statuses && statuses.length > 0) {
2323
2350
  queryParams.include = statuses.join(",");
2324
2351
  }
2325
- _context42.next = 8;
2352
+ _context43.next = 8;
2326
2353
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2327
2354
  path: path,
2328
2355
  method: "GET",
2329
2356
  queryParams: queryParams
2330
2357
  }));
2331
2358
  case 8:
2332
- offers = _context42.sent;
2333
- return _context42.abrupt("return", offers.map(function (offer) {
2359
+ offers = _context43.sent;
2360
+ return _context43.abrupt("return", offers.map(function (offer) {
2334
2361
  return _objectSpread(_objectSpread({}, offer), {}, {
2335
2362
  created: offer.created * 1000,
2336
2363
  updated: offer.updated * 1000,
@@ -2339,12 +2366,12 @@ exports.MarketplaceOffers = /*#__PURE__*/function () {
2339
2366
  }));
2340
2367
  case 10:
2341
2368
  case "end":
2342
- return _context42.stop();
2369
+ return _context43.stop();
2343
2370
  }
2344
- }, _callee42, this);
2371
+ }, _callee43, this);
2345
2372
  }));
2346
- return function (_x28) {
2347
- return _ref84.apply(this, arguments);
2373
+ return function (_x29) {
2374
+ return _ref86.apply(this, arguments);
2348
2375
  };
2349
2376
  }();
2350
2377
 
@@ -2364,17 +2391,17 @@ exports.MarketplaceOffers = /*#__PURE__*/function () {
2364
2391
  * @returns {Promise<Object>} - Info about the created/updated offer
2365
2392
  */
2366
2393
  exports.CreateMarketplaceOffer = /*#__PURE__*/function () {
2367
- var _ref86 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(_ref85) {
2394
+ var _ref88 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(_ref87) {
2368
2395
  var contractAddress, tokenId, offerId, price, expiresAt, response;
2369
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
2370
- while (1) switch (_context43.prev = _context43.next) {
2396
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
2397
+ while (1) switch (_context44.prev = _context44.next) {
2371
2398
  case 0:
2372
- contractAddress = _ref85.contractAddress, tokenId = _ref85.tokenId, offerId = _ref85.offerId, price = _ref85.price, expiresAt = _ref85.expiresAt;
2399
+ contractAddress = _ref87.contractAddress, tokenId = _ref87.tokenId, offerId = _ref87.offerId, price = _ref87.price, expiresAt = _ref87.expiresAt;
2373
2400
  if (!offerId) {
2374
- _context43.next = 7;
2401
+ _context44.next = 7;
2375
2402
  break;
2376
2403
  }
2377
- _context43.next = 4;
2404
+ _context44.next = 4;
2378
2405
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2379
2406
  path: UrlJoin("as", "wlt", "mkt", "offers", offerId),
2380
2407
  method: "PUT",
@@ -2387,11 +2414,11 @@ exports.CreateMarketplaceOffer = /*#__PURE__*/function () {
2387
2414
  }
2388
2415
  }));
2389
2416
  case 4:
2390
- response = _context43.sent;
2391
- _context43.next = 10;
2417
+ response = _context44.sent;
2418
+ _context44.next = 10;
2392
2419
  break;
2393
2420
  case 7:
2394
- _context43.next = 9;
2421
+ _context44.next = 9;
2395
2422
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2396
2423
  path: UrlJoin("as", "wlt", "mkt", "offers", contractAddress, tokenId),
2397
2424
  method: "POST",
@@ -2406,17 +2433,17 @@ exports.CreateMarketplaceOffer = /*#__PURE__*/function () {
2406
2433
  }
2407
2434
  }));
2408
2435
  case 9:
2409
- response = _context43.sent;
2436
+ response = _context44.sent;
2410
2437
  case 10:
2411
- return _context43.abrupt("return", response.offer_id);
2438
+ return _context44.abrupt("return", response.offer_id);
2412
2439
  case 11:
2413
2440
  case "end":
2414
- return _context43.stop();
2441
+ return _context44.stop();
2415
2442
  }
2416
- }, _callee43, this);
2443
+ }, _callee44, this);
2417
2444
  }));
2418
- return function (_x29) {
2419
- return _ref86.apply(this, arguments);
2445
+ return function (_x30) {
2446
+ return _ref88.apply(this, arguments);
2420
2447
  };
2421
2448
  }();
2422
2449
 
@@ -2430,13 +2457,13 @@ exports.CreateMarketplaceOffer = /*#__PURE__*/function () {
2430
2457
  * @param {string} offerId - The ID of the offer
2431
2458
  */
2432
2459
  exports.RemoveMarketplaceOffer = /*#__PURE__*/function () {
2433
- var _ref88 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(_ref87) {
2460
+ var _ref90 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(_ref89) {
2434
2461
  var offerId;
2435
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
2436
- while (1) switch (_context44.prev = _context44.next) {
2462
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
2463
+ while (1) switch (_context45.prev = _context45.next) {
2437
2464
  case 0:
2438
- offerId = _ref87.offerId;
2439
- _context44.next = 3;
2465
+ offerId = _ref89.offerId;
2466
+ _context45.next = 3;
2440
2467
  return this.client.authClient.MakeAuthServiceRequest({
2441
2468
  path: UrlJoin("as", "wlt", "mkt", "offers", offerId),
2442
2469
  method: "DELETE",
@@ -2445,15 +2472,15 @@ exports.RemoveMarketplaceOffer = /*#__PURE__*/function () {
2445
2472
  }
2446
2473
  });
2447
2474
  case 3:
2448
- return _context44.abrupt("return", _context44.sent);
2475
+ return _context45.abrupt("return", _context45.sent);
2449
2476
  case 4:
2450
2477
  case "end":
2451
- return _context44.stop();
2478
+ return _context45.stop();
2452
2479
  }
2453
- }, _callee44, this);
2480
+ }, _callee45, this);
2454
2481
  }));
2455
- return function (_x30) {
2456
- return _ref88.apply(this, arguments);
2482
+ return function (_x31) {
2483
+ return _ref90.apply(this, arguments);
2457
2484
  };
2458
2485
  }();
2459
2486
 
@@ -2467,13 +2494,13 @@ exports.RemoveMarketplaceOffer = /*#__PURE__*/function () {
2467
2494
  * @param {string} offerId - The ID of the offer
2468
2495
  */
2469
2496
  exports.AcceptMarketplaceOffer = /*#__PURE__*/function () {
2470
- var _ref90 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(_ref89) {
2497
+ var _ref92 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(_ref91) {
2471
2498
  var offerId;
2472
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
2473
- while (1) switch (_context45.prev = _context45.next) {
2499
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
2500
+ while (1) switch (_context46.prev = _context46.next) {
2474
2501
  case 0:
2475
- offerId = _ref89.offerId;
2476
- _context45.next = 3;
2502
+ offerId = _ref91.offerId;
2503
+ _context46.next = 3;
2477
2504
  return this.client.authClient.MakeAuthServiceRequest({
2478
2505
  path: UrlJoin("as", "wlt", "mkt", "offers", "accept", offerId),
2479
2506
  method: "PUT",
@@ -2482,15 +2509,15 @@ exports.AcceptMarketplaceOffer = /*#__PURE__*/function () {
2482
2509
  }
2483
2510
  });
2484
2511
  case 3:
2485
- return _context45.abrupt("return", _context45.sent);
2512
+ return _context46.abrupt("return", _context46.sent);
2486
2513
  case 4:
2487
2514
  case "end":
2488
- return _context45.stop();
2515
+ return _context46.stop();
2489
2516
  }
2490
- }, _callee45, this);
2517
+ }, _callee46, this);
2491
2518
  }));
2492
- return function (_x31) {
2493
- return _ref90.apply(this, arguments);
2519
+ return function (_x32) {
2520
+ return _ref92.apply(this, arguments);
2494
2521
  };
2495
2522
  }();
2496
2523
 
@@ -2504,13 +2531,13 @@ exports.AcceptMarketplaceOffer = /*#__PURE__*/function () {
2504
2531
  * @param {string} offerId - The ID of the offer
2505
2532
  */
2506
2533
  exports.RejectMarketplaceOffer = /*#__PURE__*/function () {
2507
- var _ref92 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(_ref91) {
2534
+ var _ref94 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(_ref93) {
2508
2535
  var offerId;
2509
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
2510
- while (1) switch (_context46.prev = _context46.next) {
2536
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
2537
+ while (1) switch (_context47.prev = _context47.next) {
2511
2538
  case 0:
2512
- offerId = _ref91.offerId;
2513
- _context46.next = 3;
2539
+ offerId = _ref93.offerId;
2540
+ _context47.next = 3;
2514
2541
  return this.client.authClient.MakeAuthServiceRequest({
2515
2542
  path: UrlJoin("as", "wlt", "mkt", "offers", "decline", offerId),
2516
2543
  method: "PUT",
@@ -2519,15 +2546,15 @@ exports.RejectMarketplaceOffer = /*#__PURE__*/function () {
2519
2546
  }
2520
2547
  });
2521
2548
  case 3:
2522
- return _context46.abrupt("return", _context46.sent);
2549
+ return _context47.abrupt("return", _context47.sent);
2523
2550
  case 4:
2524
2551
  case "end":
2525
- return _context46.stop();
2552
+ return _context47.stop();
2526
2553
  }
2527
- }, _callee46, this);
2554
+ }, _callee47, this);
2528
2555
  }));
2529
- return function (_x32) {
2530
- return _ref92.apply(this, arguments);
2556
+ return function (_x33) {
2557
+ return _ref94.apply(this, arguments);
2531
2558
  };
2532
2559
  }();
2533
2560
 
@@ -2544,13 +2571,13 @@ exports.RejectMarketplaceOffer = /*#__PURE__*/function () {
2544
2571
  * @returns {Promise<Object>} - Info about the voting event, including the current user's votes and the current total voting tally
2545
2572
  */
2546
2573
  exports.VoteStatus = /*#__PURE__*/function () {
2547
- var _ref94 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(_ref93) {
2574
+ var _ref96 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(_ref95) {
2548
2575
  var tenantId, votingEventId;
2549
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
2550
- while (1) switch (_context47.prev = _context47.next) {
2576
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
2577
+ while (1) switch (_context48.prev = _context48.next) {
2551
2578
  case 0:
2552
- tenantId = _ref93.tenantId, votingEventId = _ref93.votingEventId;
2553
- _context47.next = 3;
2579
+ tenantId = _ref95.tenantId, votingEventId = _ref95.votingEventId;
2580
+ _context48.next = 3;
2554
2581
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2555
2582
  path: UrlJoin("as", "votes", tenantId, votingEventId),
2556
2583
  headers: {
@@ -2558,15 +2585,15 @@ exports.VoteStatus = /*#__PURE__*/function () {
2558
2585
  }
2559
2586
  }));
2560
2587
  case 3:
2561
- return _context47.abrupt("return", _context47.sent);
2588
+ return _context48.abrupt("return", _context48.sent);
2562
2589
  case 4:
2563
2590
  case "end":
2564
- return _context47.stop();
2591
+ return _context48.stop();
2565
2592
  }
2566
- }, _callee47, this);
2593
+ }, _callee48, this);
2567
2594
  }));
2568
- return function (_x33) {
2569
- return _ref94.apply(this, arguments);
2595
+ return function (_x34) {
2596
+ return _ref96.apply(this, arguments);
2570
2597
  };
2571
2598
  }();
2572
2599
 
@@ -2584,13 +2611,13 @@ exports.VoteStatus = /*#__PURE__*/function () {
2584
2611
  * @returns {Promise<Object>} - Info about the voting event, including the current user's votes and the current total voting tally
2585
2612
  */
2586
2613
  exports.CastVote = /*#__PURE__*/function () {
2587
- var _ref96 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(_ref95) {
2614
+ var _ref98 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(_ref97) {
2588
2615
  var tenantId, votingEventId, sku;
2589
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
2590
- while (1) switch (_context48.prev = _context48.next) {
2616
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
2617
+ while (1) switch (_context49.prev = _context49.next) {
2591
2618
  case 0:
2592
- tenantId = _ref95.tenantId, votingEventId = _ref95.votingEventId, sku = _ref95.sku;
2593
- _context48.next = 3;
2619
+ tenantId = _ref97.tenantId, votingEventId = _ref97.votingEventId, sku = _ref97.sku;
2620
+ _context49.next = 3;
2594
2621
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2595
2622
  path: UrlJoin("as", "votes", tenantId, votingEventId, sku),
2596
2623
  method: "POST",
@@ -2599,15 +2626,15 @@ exports.CastVote = /*#__PURE__*/function () {
2599
2626
  }
2600
2627
  }));
2601
2628
  case 3:
2602
- return _context48.abrupt("return", _context48.sent);
2629
+ return _context49.abrupt("return", _context49.sent);
2603
2630
  case 4:
2604
2631
  case "end":
2605
- return _context48.stop();
2632
+ return _context49.stop();
2606
2633
  }
2607
- }, _callee48, this);
2634
+ }, _callee49, this);
2608
2635
  }));
2609
- return function (_x34) {
2610
- return _ref96.apply(this, arguments);
2636
+ return function (_x35) {
2637
+ return _ref98.apply(this, arguments);
2611
2638
  };
2612
2639
  }();
2613
2640
 
@@ -2625,13 +2652,13 @@ exports.CastVote = /*#__PURE__*/function () {
2625
2652
  * @returns {Promise<Object>} - Info about the voting event, including the current user's votes and the current total voting tally
2626
2653
  */
2627
2654
  exports.RevokeVote = /*#__PURE__*/function () {
2628
- var _ref98 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(_ref97) {
2655
+ var _ref100 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(_ref99) {
2629
2656
  var tenantId, votingEventId, sku;
2630
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
2631
- while (1) switch (_context49.prev = _context49.next) {
2657
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
2658
+ while (1) switch (_context50.prev = _context50.next) {
2632
2659
  case 0:
2633
- tenantId = _ref97.tenantId, votingEventId = _ref97.votingEventId, sku = _ref97.sku;
2634
- _context49.next = 3;
2660
+ tenantId = _ref99.tenantId, votingEventId = _ref99.votingEventId, sku = _ref99.sku;
2661
+ _context50.next = 3;
2635
2662
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2636
2663
  path: UrlJoin("as", "votes", tenantId, votingEventId, sku),
2637
2664
  method: "DELETE",
@@ -2640,14 +2667,14 @@ exports.RevokeVote = /*#__PURE__*/function () {
2640
2667
  }
2641
2668
  }));
2642
2669
  case 3:
2643
- return _context49.abrupt("return", _context49.sent);
2670
+ return _context50.abrupt("return", _context50.sent);
2644
2671
  case 4:
2645
2672
  case "end":
2646
- return _context49.stop();
2673
+ return _context50.stop();
2647
2674
  }
2648
- }, _callee49, this);
2675
+ }, _callee50, this);
2649
2676
  }));
2650
- return function (_x35) {
2651
- return _ref98.apply(this, arguments);
2677
+ return function (_x36) {
2678
+ return _ref100.apply(this, arguments);
2652
2679
  };
2653
2680
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "4.0.33",
3
+ "version": "4.0.34",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -29,6 +29,7 @@ let WalletConfiguration = {
29
29
  },
30
30
  __MARKETPLACE_ORDER: [
31
31
  "PREVIEW",
32
+ "b63413a5-ce07-4848-b763-b4d97f4870ec",
32
33
  "masked-singer-brazil-marketplace",
33
34
  "eluvio-live-marketplace-globo-taf",
34
35
  "de228e92-ed45-4fe0-8e52-658cf366e962",