glitch-javascript-sdk 3.3.1 → 3.3.2

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/cjs/index.js CHANGED
@@ -27474,6 +27474,7 @@ var PlayTestsRoute = /** @class */ (function () {
27474
27474
  cancelRequest: { url: '/playtests/{title_id}/cancel/{playtest_id}', method: HTTP_METHODS.POST },
27475
27475
  show: { url: '/playtests/{title_id}/view/{playtest_id}', method: HTTP_METHODS.GET },
27476
27476
  mine: { url: '/playtests/mine', method: HTTP_METHODS.GET },
27477
+ getResults: { url: '/playtests/{title_id}/{playtest_id}/results', method: HTTP_METHODS.GET },
27477
27478
  };
27478
27479
  return PlayTestsRoute;
27479
27480
  }());
@@ -27603,6 +27604,16 @@ var PlayTests = /** @class */ (function () {
27603
27604
  PlayTests.mine = function (params) {
27604
27605
  return Requests.processRoute(PlayTestsRoute.routes.mine, {}, {}, params);
27605
27606
  };
27607
+ /**
27608
+ * Get aggregated results for a play test (publisher view).
27609
+ *
27610
+ * @param title_id The ID of the title.
27611
+ * @param playtest_id The ID of the play test.
27612
+ * @returns Promise
27613
+ */
27614
+ PlayTests.getResults = function (title_id, playtest_id, params) {
27615
+ return Requests.processRoute(PlayTestsRoute.routes.getResults, {}, { title_id: title_id, playtest_id: playtest_id }, params);
27616
+ };
27606
27617
  return PlayTests;
27607
27618
  }());
27608
27619