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.
@@ -141,6 +141,17 @@ declare class Campaigns {
141
141
  * @returns promise
142
142
  */
143
143
  static updateCampaignLink<T>(campaign_id: string, link_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
144
+ /**
145
+ * Delete a campaign link.
146
+ *
147
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/deleteCampaignLink
148
+ *
149
+ * @param campaign_id The id of the campaign to update.
150
+ * @param link_id The id of the campaign link to delete.
151
+ *
152
+ * @returns promise
153
+ */
154
+ static deleteCampaignLink<T>(campaign_id: string, link_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
144
155
  /**
145
156
  * Retrieve the information for a single campaign.
146
157
  *
@@ -99,5 +99,13 @@ declare class PlayTests {
99
99
  * @returns Promise
100
100
  */
101
101
  static mine<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
102
+ /**
103
+ * Get aggregated results for a play test (publisher view).
104
+ *
105
+ * @param title_id The ID of the title.
106
+ * @param playtest_id The ID of the play test.
107
+ * @returns Promise
108
+ */
109
+ static getResults<T>(title_id: string, playtest_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
102
110
  }
103
111
  export default PlayTests;
package/dist/esm/index.js CHANGED
@@ -13233,6 +13233,7 @@ var CampaignsRoute = /** @class */ (function () {
13233
13233
  createCampaignLink: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
13234
13234
  getCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },
13235
13235
  updateCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.PUT },
13236
+ deleteCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.DELETE },
13236
13237
  createInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers', method: HTTP_METHODS.POST },
13237
13238
  listInfluencerCampaigns: { url: '/campaigns/influencers', method: HTTP_METHODS.GET },
13238
13239
  getInfluencerCalendar: { url: '/campaigns/influencers/calendar', method: HTTP_METHODS.GET },
@@ -13502,6 +13503,19 @@ var Campaigns = /** @class */ (function () {
13502
13503
  Campaigns.updateCampaignLink = function (campaign_id, link_id, data, params) {
13503
13504
  return Requests.processRoute(CampaignsRoute.routes.updateCampaignLink, data, { campaign_id: campaign_id, link_id: link_id }, params);
13504
13505
  };
13506
+ /**
13507
+ * Delete a campaign link.
13508
+ *
13509
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/deleteCampaignLink
13510
+ *
13511
+ * @param campaign_id The id of the campaign to update.
13512
+ * @param link_id The id of the campaign link to delete.
13513
+ *
13514
+ * @returns promise
13515
+ */
13516
+ Campaigns.deleteCampaignLink = function (campaign_id, link_id, params) {
13517
+ return Requests.processRoute(CampaignsRoute.routes.deleteCampaignLink, {}, { campaign_id: campaign_id, link_id: link_id }, params);
13518
+ };
13505
13519
  /**
13506
13520
  * Retrieve the information for a single campaign.
13507
13521
  *
@@ -15462,6 +15476,7 @@ var PlayTestsRoute = /** @class */ (function () {
15462
15476
  cancelRequest: { url: '/playtests/{title_id}/cancel/{playtest_id}', method: HTTP_METHODS.POST },
15463
15477
  show: { url: '/playtests/{title_id}/view/{playtest_id}', method: HTTP_METHODS.GET },
15464
15478
  mine: { url: '/playtests/mine', method: HTTP_METHODS.GET },
15479
+ getResults: { url: '/playtests/{title_id}/{playtest_id}/results', method: HTTP_METHODS.GET },
15465
15480
  };
15466
15481
  return PlayTestsRoute;
15467
15482
  }());
@@ -15591,6 +15606,16 @@ var PlayTests = /** @class */ (function () {
15591
15606
  PlayTests.mine = function (params) {
15592
15607
  return Requests.processRoute(PlayTestsRoute.routes.mine, {}, {}, params);
15593
15608
  };
15609
+ /**
15610
+ * Get aggregated results for a play test (publisher view).
15611
+ *
15612
+ * @param title_id The ID of the title.
15613
+ * @param playtest_id The ID of the play test.
15614
+ * @returns Promise
15615
+ */
15616
+ PlayTests.getResults = function (title_id, playtest_id, params) {
15617
+ return Requests.processRoute(PlayTestsRoute.routes.getResults, {}, { title_id: title_id, playtest_id: playtest_id }, params);
15618
+ };
15594
15619
  return PlayTests;
15595
15620
  }());
15596
15621