@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
|
|
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
|
|
2149
|
-
while (1) switch (
|
|
2175
|
+
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
2176
|
+
while (1) switch (_context40.prev = _context40.next) {
|
|
2150
2177
|
case 0:
|
|
2151
|
-
tenantSlug =
|
|
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
|
-
|
|
2189
|
+
_context40.next = 13;
|
|
2163
2190
|
break;
|
|
2164
2191
|
}
|
|
2165
|
-
|
|
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
|
-
|
|
2179
|
-
if (
|
|
2180
|
-
|
|
2205
|
+
_context40.t0 = _context40.sent;
|
|
2206
|
+
if (_context40.t0) {
|
|
2207
|
+
_context40.next = 10;
|
|
2181
2208
|
break;
|
|
2182
2209
|
}
|
|
2183
|
-
|
|
2210
|
+
_context40.t0 = [];
|
|
2184
2211
|
case 10:
|
|
2185
|
-
event =
|
|
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
|
|
2222
|
+
return _context40.abrupt("return", this.drops[dropId]);
|
|
2196
2223
|
case 14:
|
|
2197
2224
|
case "end":
|
|
2198
|
-
return
|
|
2225
|
+
return _context40.stop();
|
|
2199
2226
|
}
|
|
2200
|
-
},
|
|
2227
|
+
}, _callee40, this);
|
|
2201
2228
|
}));
|
|
2202
|
-
return function (
|
|
2203
|
-
return
|
|
2229
|
+
return function (_x26) {
|
|
2230
|
+
return _ref80.apply(this, arguments);
|
|
2204
2231
|
};
|
|
2205
2232
|
}();
|
|
2206
2233
|
exports.SubmitDropVote = /*#__PURE__*/function () {
|
|
2207
|
-
var
|
|
2234
|
+
var _ref82 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(_ref81) {
|
|
2208
2235
|
var marketplaceParams, eventId, dropId, sku, marketplaceInfo;
|
|
2209
|
-
return _regeneratorRuntime.wrap(function
|
|
2210
|
-
while (1) switch (
|
|
2236
|
+
return _regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
2237
|
+
while (1) switch (_context41.prev = _context41.next) {
|
|
2211
2238
|
case 0:
|
|
2212
|
-
marketplaceParams =
|
|
2213
|
-
|
|
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 =
|
|
2219
|
-
|
|
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
|
|
2262
|
+
return _context41.stop();
|
|
2236
2263
|
}
|
|
2237
|
-
},
|
|
2264
|
+
}, _callee41, this);
|
|
2238
2265
|
}));
|
|
2239
|
-
return function (
|
|
2240
|
-
return
|
|
2266
|
+
return function (_x27) {
|
|
2267
|
+
return _ref82.apply(this, arguments);
|
|
2241
2268
|
};
|
|
2242
2269
|
}();
|
|
2243
2270
|
exports.DropStatus = /*#__PURE__*/function () {
|
|
2244
|
-
var
|
|
2271
|
+
var _ref84 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(_ref83) {
|
|
2245
2272
|
var marketplace, eventId, dropId, response;
|
|
2246
|
-
return _regeneratorRuntime.wrap(function
|
|
2247
|
-
while (1) switch (
|
|
2273
|
+
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
2274
|
+
while (1) switch (_context42.prev = _context42.next) {
|
|
2248
2275
|
case 0:
|
|
2249
|
-
marketplace =
|
|
2250
|
-
|
|
2251
|
-
|
|
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 =
|
|
2261
|
-
return
|
|
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
|
-
|
|
2268
|
-
|
|
2269
|
-
this.Log(
|
|
2270
|
-
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
|
|
2300
|
+
return _context42.stop();
|
|
2274
2301
|
}
|
|
2275
|
-
},
|
|
2302
|
+
}, _callee42, this, [[1, 8]]);
|
|
2276
2303
|
}));
|
|
2277
|
-
return function (
|
|
2278
|
-
return
|
|
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
|
|
2301
|
-
var contractAddress, tokenId, buyerAddress, sellerAddress, statuses,
|
|
2302
|
-
return _regeneratorRuntime.wrap(function
|
|
2303
|
-
while (1) switch (
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
2333
|
-
return
|
|
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
|
|
2369
|
+
return _context43.stop();
|
|
2343
2370
|
}
|
|
2344
|
-
},
|
|
2371
|
+
}, _callee43, this);
|
|
2345
2372
|
}));
|
|
2346
|
-
return function (
|
|
2347
|
-
return
|
|
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
|
|
2394
|
+
var _ref88 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(_ref87) {
|
|
2368
2395
|
var contractAddress, tokenId, offerId, price, expiresAt, response;
|
|
2369
|
-
return _regeneratorRuntime.wrap(function
|
|
2370
|
-
while (1) switch (
|
|
2396
|
+
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
2397
|
+
while (1) switch (_context44.prev = _context44.next) {
|
|
2371
2398
|
case 0:
|
|
2372
|
-
contractAddress =
|
|
2399
|
+
contractAddress = _ref87.contractAddress, tokenId = _ref87.tokenId, offerId = _ref87.offerId, price = _ref87.price, expiresAt = _ref87.expiresAt;
|
|
2373
2400
|
if (!offerId) {
|
|
2374
|
-
|
|
2401
|
+
_context44.next = 7;
|
|
2375
2402
|
break;
|
|
2376
2403
|
}
|
|
2377
|
-
|
|
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 =
|
|
2391
|
-
|
|
2417
|
+
response = _context44.sent;
|
|
2418
|
+
_context44.next = 10;
|
|
2392
2419
|
break;
|
|
2393
2420
|
case 7:
|
|
2394
|
-
|
|
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 =
|
|
2436
|
+
response = _context44.sent;
|
|
2410
2437
|
case 10:
|
|
2411
|
-
return
|
|
2438
|
+
return _context44.abrupt("return", response.offer_id);
|
|
2412
2439
|
case 11:
|
|
2413
2440
|
case "end":
|
|
2414
|
-
return
|
|
2441
|
+
return _context44.stop();
|
|
2415
2442
|
}
|
|
2416
|
-
},
|
|
2443
|
+
}, _callee44, this);
|
|
2417
2444
|
}));
|
|
2418
|
-
return function (
|
|
2419
|
-
return
|
|
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
|
|
2460
|
+
var _ref90 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(_ref89) {
|
|
2434
2461
|
var offerId;
|
|
2435
|
-
return _regeneratorRuntime.wrap(function
|
|
2436
|
-
while (1) switch (
|
|
2462
|
+
return _regeneratorRuntime.wrap(function _callee45$(_context45) {
|
|
2463
|
+
while (1) switch (_context45.prev = _context45.next) {
|
|
2437
2464
|
case 0:
|
|
2438
|
-
offerId =
|
|
2439
|
-
|
|
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
|
|
2475
|
+
return _context45.abrupt("return", _context45.sent);
|
|
2449
2476
|
case 4:
|
|
2450
2477
|
case "end":
|
|
2451
|
-
return
|
|
2478
|
+
return _context45.stop();
|
|
2452
2479
|
}
|
|
2453
|
-
},
|
|
2480
|
+
}, _callee45, this);
|
|
2454
2481
|
}));
|
|
2455
|
-
return function (
|
|
2456
|
-
return
|
|
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
|
|
2497
|
+
var _ref92 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(_ref91) {
|
|
2471
2498
|
var offerId;
|
|
2472
|
-
return _regeneratorRuntime.wrap(function
|
|
2473
|
-
while (1) switch (
|
|
2499
|
+
return _regeneratorRuntime.wrap(function _callee46$(_context46) {
|
|
2500
|
+
while (1) switch (_context46.prev = _context46.next) {
|
|
2474
2501
|
case 0:
|
|
2475
|
-
offerId =
|
|
2476
|
-
|
|
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
|
|
2512
|
+
return _context46.abrupt("return", _context46.sent);
|
|
2486
2513
|
case 4:
|
|
2487
2514
|
case "end":
|
|
2488
|
-
return
|
|
2515
|
+
return _context46.stop();
|
|
2489
2516
|
}
|
|
2490
|
-
},
|
|
2517
|
+
}, _callee46, this);
|
|
2491
2518
|
}));
|
|
2492
|
-
return function (
|
|
2493
|
-
return
|
|
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
|
|
2534
|
+
var _ref94 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(_ref93) {
|
|
2508
2535
|
var offerId;
|
|
2509
|
-
return _regeneratorRuntime.wrap(function
|
|
2510
|
-
while (1) switch (
|
|
2536
|
+
return _regeneratorRuntime.wrap(function _callee47$(_context47) {
|
|
2537
|
+
while (1) switch (_context47.prev = _context47.next) {
|
|
2511
2538
|
case 0:
|
|
2512
|
-
offerId =
|
|
2513
|
-
|
|
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
|
|
2549
|
+
return _context47.abrupt("return", _context47.sent);
|
|
2523
2550
|
case 4:
|
|
2524
2551
|
case "end":
|
|
2525
|
-
return
|
|
2552
|
+
return _context47.stop();
|
|
2526
2553
|
}
|
|
2527
|
-
},
|
|
2554
|
+
}, _callee47, this);
|
|
2528
2555
|
}));
|
|
2529
|
-
return function (
|
|
2530
|
-
return
|
|
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
|
|
2574
|
+
var _ref96 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(_ref95) {
|
|
2548
2575
|
var tenantId, votingEventId;
|
|
2549
|
-
return _regeneratorRuntime.wrap(function
|
|
2550
|
-
while (1) switch (
|
|
2576
|
+
return _regeneratorRuntime.wrap(function _callee48$(_context48) {
|
|
2577
|
+
while (1) switch (_context48.prev = _context48.next) {
|
|
2551
2578
|
case 0:
|
|
2552
|
-
tenantId =
|
|
2553
|
-
|
|
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
|
|
2588
|
+
return _context48.abrupt("return", _context48.sent);
|
|
2562
2589
|
case 4:
|
|
2563
2590
|
case "end":
|
|
2564
|
-
return
|
|
2591
|
+
return _context48.stop();
|
|
2565
2592
|
}
|
|
2566
|
-
},
|
|
2593
|
+
}, _callee48, this);
|
|
2567
2594
|
}));
|
|
2568
|
-
return function (
|
|
2569
|
-
return
|
|
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
|
|
2614
|
+
var _ref98 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(_ref97) {
|
|
2588
2615
|
var tenantId, votingEventId, sku;
|
|
2589
|
-
return _regeneratorRuntime.wrap(function
|
|
2590
|
-
while (1) switch (
|
|
2616
|
+
return _regeneratorRuntime.wrap(function _callee49$(_context49) {
|
|
2617
|
+
while (1) switch (_context49.prev = _context49.next) {
|
|
2591
2618
|
case 0:
|
|
2592
|
-
tenantId =
|
|
2593
|
-
|
|
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
|
|
2629
|
+
return _context49.abrupt("return", _context49.sent);
|
|
2603
2630
|
case 4:
|
|
2604
2631
|
case "end":
|
|
2605
|
-
return
|
|
2632
|
+
return _context49.stop();
|
|
2606
2633
|
}
|
|
2607
|
-
},
|
|
2634
|
+
}, _callee49, this);
|
|
2608
2635
|
}));
|
|
2609
|
-
return function (
|
|
2610
|
-
return
|
|
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
|
|
2655
|
+
var _ref100 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(_ref99) {
|
|
2629
2656
|
var tenantId, votingEventId, sku;
|
|
2630
|
-
return _regeneratorRuntime.wrap(function
|
|
2631
|
-
while (1) switch (
|
|
2657
|
+
return _regeneratorRuntime.wrap(function _callee50$(_context50) {
|
|
2658
|
+
while (1) switch (_context50.prev = _context50.next) {
|
|
2632
2659
|
case 0:
|
|
2633
|
-
tenantId =
|
|
2634
|
-
|
|
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
|
|
2670
|
+
return _context50.abrupt("return", _context50.sent);
|
|
2644
2671
|
case 4:
|
|
2645
2672
|
case "end":
|
|
2646
|
-
return
|
|
2673
|
+
return _context50.stop();
|
|
2647
2674
|
}
|
|
2648
|
-
},
|
|
2675
|
+
}, _callee50, this);
|
|
2649
2676
|
}));
|
|
2650
|
-
return function (
|
|
2651
|
-
return
|
|
2677
|
+
return function (_x36) {
|
|
2678
|
+
return _ref100.apply(this, arguments);
|
|
2652
2679
|
};
|
|
2653
2680
|
}();
|
package/package.json
CHANGED