glitch-javascript-sdk 1.6.6 → 1.6.7

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 {
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.7",
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;
@@ -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