glitch-javascript-sdk 3.3.0 → 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
@@ -25231,6 +25231,7 @@ var CampaignsRoute = /** @class */ (function () {
25231
25231
  createCampaignLink: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
25232
25232
  getCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },
25233
25233
  updateCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.PUT },
25234
+ deleteCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.DELETE },
25234
25235
  createInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers', method: HTTP_METHODS.POST },
25235
25236
  listInfluencerCampaigns: { url: '/campaigns/influencers', method: HTTP_METHODS.GET },
25236
25237
  getInfluencerCalendar: { url: '/campaigns/influencers/calendar', method: HTTP_METHODS.GET },
@@ -25500,6 +25501,19 @@ var Campaigns = /** @class */ (function () {
25500
25501
  Campaigns.updateCampaignLink = function (campaign_id, link_id, data, params) {
25501
25502
  return Requests.processRoute(CampaignsRoute.routes.updateCampaignLink, data, { campaign_id: campaign_id, link_id: link_id }, params);
25502
25503
  };
25504
+ /**
25505
+ * Delete a campaign link.
25506
+ *
25507
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/deleteCampaignLink
25508
+ *
25509
+ * @param campaign_id The id of the campaign to update.
25510
+ * @param link_id The id of the campaign link to delete.
25511
+ *
25512
+ * @returns promise
25513
+ */
25514
+ Campaigns.deleteCampaignLink = function (campaign_id, link_id, params) {
25515
+ return Requests.processRoute(CampaignsRoute.routes.deleteCampaignLink, {}, { campaign_id: campaign_id, link_id: link_id }, params);
25516
+ };
25503
25517
  /**
25504
25518
  * Retrieve the information for a single campaign.
25505
25519
  *
@@ -27460,6 +27474,7 @@ var PlayTestsRoute = /** @class */ (function () {
27460
27474
  cancelRequest: { url: '/playtests/{title_id}/cancel/{playtest_id}', method: HTTP_METHODS.POST },
27461
27475
  show: { url: '/playtests/{title_id}/view/{playtest_id}', method: HTTP_METHODS.GET },
27462
27476
  mine: { url: '/playtests/mine', method: HTTP_METHODS.GET },
27477
+ getResults: { url: '/playtests/{title_id}/{playtest_id}/results', method: HTTP_METHODS.GET },
27463
27478
  };
27464
27479
  return PlayTestsRoute;
27465
27480
  }());
@@ -27589,6 +27604,16 @@ var PlayTests = /** @class */ (function () {
27589
27604
  PlayTests.mine = function (params) {
27590
27605
  return Requests.processRoute(PlayTestsRoute.routes.mine, {}, {}, params);
27591
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
+ };
27592
27617
  return PlayTests;
27593
27618
  }());
27594
27619