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.
@@ -127,5 +127,13 @@ declare class SocialPosts {
127
127
  * @returns promise
128
128
  */
129
129
  static updatePostImpressions<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
130
+ /**
131
+ * Get reports on all the the short links
132
+ *
133
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
134
+ *
135
+ * @returns promise
136
+ */
137
+ static shortLinkReports<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
130
138
  }
131
139
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -9437,6 +9437,7 @@ var SocialPostsRoute = /** @class */ (function () {
9437
9437
  reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
9438
9438
  reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
9439
9439
  updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
9440
+ shortLinkReports: { url: '/socialposts/shortlinks/reports', method: HTTP_METHODS.GET },
9440
9441
  };
9441
9442
  return SocialPostsRoute;
9442
9443
  }());
@@ -9596,6 +9597,16 @@ var SocialPosts = /** @class */ (function () {
9596
9597
  SocialPosts.updatePostImpressions = function (post_id, data, params) {
9597
9598
  return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
9598
9599
  };
9600
+ /**
9601
+ * Get reports on all the the short links
9602
+ *
9603
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
9604
+ *
9605
+ * @returns promise
9606
+ */
9607
+ SocialPosts.shortLinkReports = function (params) {
9608
+ return Requests.processRoute(SocialPostsRoute.routes.shortLinkReports, undefined, undefined, params);
9609
+ };
9599
9610
  return SocialPosts;
9600
9611
  }());
9601
9612
 
@@ -12145,7 +12156,7 @@ var Hashtags = /** @class */ (function () {
12145
12156
  * @returns AxiosPromise of an array of aggregated hashtags
12146
12157
  */
12147
12158
  Hashtags.top = function (data, params) {
12148
- return Requests.processRoute(HashtagRoute.routes.list, data, {}, params);
12159
+ return Requests.processRoute(HashtagRoute.routes.top, data, {}, params);
12149
12160
  };
12150
12161
  return Hashtags;
12151
12162
  }());