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/index.d.ts CHANGED
@@ -4944,6 +4944,17 @@ declare class Campaigns {
4944
4944
  * @returns promise
4945
4945
  */
4946
4946
  static updateCampaignLink<T>(campaign_id: string, link_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
4947
+ /**
4948
+ * Delete a campaign link.
4949
+ *
4950
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/deleteCampaignLink
4951
+ *
4952
+ * @param campaign_id The id of the campaign to update.
4953
+ * @param link_id The id of the campaign link to delete.
4954
+ *
4955
+ * @returns promise
4956
+ */
4957
+ static deleteCampaignLink<T>(campaign_id: string, link_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
4947
4958
  /**
4948
4959
  * Retrieve the information for a single campaign.
4949
4960
  *
@@ -6472,6 +6483,14 @@ declare class PlayTests {
6472
6483
  * @returns Promise
6473
6484
  */
6474
6485
  static mine<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
6486
+ /**
6487
+ * Get aggregated results for a play test (publisher view).
6488
+ *
6489
+ * @param title_id The ID of the title.
6490
+ * @param playtest_id The ID of the play test.
6491
+ * @returns Promise
6492
+ */
6493
+ static getResults<T>(title_id: string, playtest_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6475
6494
  }
6476
6495
 
6477
6496
  interface SteamCapsuleCropRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -201,6 +201,21 @@ class Campaigns {
201
201
  return Requests.processRoute(CampaignsRoute.routes.updateCampaignLink, data, { campaign_id: campaign_id, link_id: link_id }, params);
202
202
  }
203
203
 
204
+ /**
205
+ * Delete a campaign link.
206
+ *
207
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/deleteCampaignLink
208
+ *
209
+ * @param campaign_id The id of the campaign to update.
210
+ * @param link_id The id of the campaign link to delete.
211
+ *
212
+ * @returns promise
213
+ */
214
+ public static deleteCampaignLink<T>(campaign_id: string, link_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
215
+
216
+ return Requests.processRoute(CampaignsRoute.routes.deleteCampaignLink, {}, { campaign_id: campaign_id, link_id: link_id }, params);
217
+ }
218
+
204
219
  /**
205
220
  * Retrieve the information for a single campaign.
206
221
  *
@@ -137,6 +137,17 @@ class PlayTests {
137
137
  public static mine<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
138
138
  return Requests.processRoute(PlayTestsRoute.routes.mine, {}, {}, params);
139
139
  }
140
+
141
+ /**
142
+ * Get aggregated results for a play test (publisher view).
143
+ *
144
+ * @param title_id The ID of the title.
145
+ * @param playtest_id The ID of the play test.
146
+ * @returns Promise
147
+ */
148
+ public static getResults<T>(title_id: string, playtest_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
149
+ return Requests.processRoute(PlayTestsRoute.routes.getResults, {}, { title_id, playtest_id }, params);
150
+ }
140
151
  }
141
152
 
142
153
  export default PlayTests;
@@ -19,6 +19,7 @@ class CampaignsRoute {
19
19
  createCampaignLink: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
20
20
  getCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },
21
21
  updateCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.PUT },
22
+ deleteCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.DELETE },
22
23
  createInfluencerCampaign: { url: '/campaigns/{campaign_id}/influencers', method: HTTP_METHODS.POST },
23
24
  listInfluencerCampaigns: { url: '/campaigns/influencers', method: HTTP_METHODS.GET },
24
25
  getInfluencerCalendar: { url: '/campaigns/influencers/calendar', method: HTTP_METHODS.GET },
@@ -15,6 +15,7 @@ class PlayTestsRoute {
15
15
  cancelRequest: { url: '/playtests/{title_id}/cancel/{playtest_id}', method: HTTP_METHODS.POST },
16
16
  show: { url: '/playtests/{title_id}/view/{playtest_id}', method: HTTP_METHODS.GET },
17
17
  mine: { url: '/playtests/mine', method: HTTP_METHODS.GET },
18
+ getResults: { url: '/playtests/{title_id}/{playtest_id}/results', method: HTTP_METHODS.GET },
18
19
 
19
20
  };
20
21
  }