glitch-javascript-sdk 1.6.6 → 1.6.8

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
@@ -2766,6 +2766,14 @@ declare class SocialPosts {
2766
2766
  * @returns promise
2767
2767
  */
2768
2768
  static updatePostImpressions<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2769
+ /**
2770
+ * Get reports on all the the short links
2771
+ *
2772
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
2773
+ *
2774
+ * @returns promise
2775
+ */
2776
+ static shortLinkReports<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
2769
2777
  }
2770
2778
 
2771
2779
  declare class Titles {
@@ -2967,6 +2975,28 @@ declare class Titles {
2967
2975
  * - page?: number, per_page?: number
2968
2976
  */
2969
2977
  static search<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
2978
+ /**
2979
+ * List game installs for a specific title.
2980
+ */
2981
+ static listInstalls<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2982
+ /**
2983
+ * View a single game install record.
2984
+ */
2985
+ static viewInstall<T>(title_id: string, install_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2986
+ /**
2987
+ * Create a new game install record.
2988
+ */
2989
+ static createInstall<T>(title_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2990
+ /**
2991
+ * List retention events for a specific title.
2992
+ */
2993
+ static listRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2994
+ /**
2995
+ * Get a summary report of retention events for a specific title.
2996
+ */
2997
+ static retentionSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2998
+ static activeRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2999
+ static retentionAnalysis<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
2970
3000
  }
2971
3001
 
2972
3002
  declare class Campaigns {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -23,7 +23,7 @@ class Hashtags {
23
23
  * @returns AxiosPromise of an array of aggregated hashtags
24
24
  */
25
25
  public static top<T>(data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
26
- return Requests.processRoute(HashtagRoute.routes.list, data, {}, params);
26
+ return Requests.processRoute(HashtagRoute.routes.top, data, {}, params);
27
27
  }
28
28
 
29
29
  }
@@ -179,6 +179,17 @@ class SocialPosts {
179
179
  return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
180
180
  }
181
181
 
182
+ /**
183
+ * Get reports on all the the short links
184
+ *
185
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
186
+ *
187
+ * @returns promise
188
+ */
189
+ public static shortLinkReports<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
190
+ return Requests.processRoute(SocialPostsRoute.routes.shortLinkReports, undefined, undefined, params);
191
+ }
192
+
182
193
  }
183
194
 
184
195
  export default SocialPosts;
package/src/api/Titles.ts CHANGED
@@ -318,6 +318,49 @@ class Titles {
318
318
  return Requests.processRoute(TitlesRoute.routes.search, {}, undefined, params);
319
319
  }
320
320
 
321
+ /**
322
+ * List game installs for a specific title.
323
+ */
324
+ public static listInstalls<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
325
+ return Requests.processRoute(TitlesRoute.routes.listInstalls, {}, { title_id: title_id }, params);
326
+ }
327
+
328
+ /**
329
+ * View a single game install record.
330
+ */
331
+ public static viewInstall<T>(title_id: string, install_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
332
+ return Requests.processRoute(TitlesRoute.routes.viewInstall, {}, { title_id: title_id, install_id: install_id }, params);
333
+ }
334
+
335
+ /**
336
+ * Create a new game install record.
337
+ */
338
+ public static createInstall<T>(title_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
339
+ return Requests.processRoute(TitlesRoute.routes.createInstall, data, { title_id: title_id }, params);
340
+ }
341
+
342
+ /**
343
+ * List retention events for a specific title.
344
+ */
345
+ public static listRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
346
+ return Requests.processRoute(TitlesRoute.routes.listRetentions, {}, { title_id: title_id }, params);
347
+ }
348
+
349
+ /**
350
+ * Get a summary report of retention events for a specific title.
351
+ */
352
+ public static retentionSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
353
+ return Requests.processRoute(TitlesRoute.routes.retentionSummary, {}, { title_id: title_id }, params);
354
+ }
355
+
356
+ public static activeRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
357
+ return Requests.processRoute(TitlesRoute.routes.activeRetentions, {}, { title_id }, params);
358
+ }
359
+
360
+ public static retentionAnalysis<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
361
+ return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id }, params);
362
+ }
363
+
321
364
  }
322
365
 
323
366
  export default Titles;
@@ -17,6 +17,7 @@ class SocialPostsRoute {
17
17
  reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
18
18
  reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
19
19
  updatePostImpressions : { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
20
+ shortLinkReports: { url: '/socialposts/shortlinks/reports', method: HTTP_METHODS.GET },
20
21
 
21
22
  };
22
23
 
@@ -24,6 +24,13 @@ class TitlesRoute {
24
24
  listTokens: { url: '/titles/{title_id}/tokens', method: HTTP_METHODS.GET },
25
25
  revokeToken: { url: '/titles/{title_id}/tokens/{token_id}', method: HTTP_METHODS.DELETE },
26
26
  search: { url: '/titles/search', method: HTTP_METHODS.GET },
27
+ listInstalls: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.GET },
28
+ viewInstall: { url: '/titles/{title_id}/installs/{install_id}', method: HTTP_METHODS.GET },
29
+ createInstall: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.POST },
30
+ listRetentions: { url: '/titles/{title_id}/retentions', method: HTTP_METHODS.GET },
31
+ retentionSummary: { url: '/titles/{title_id}/retentions/summary', method: HTTP_METHODS.GET },
32
+ activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
33
+ retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
27
34
  };
28
35
 
29
36
  }