glitch-javascript-sdk 1.5.2 → 1.5.4

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/cjs/index.js CHANGED
@@ -22542,10 +22542,12 @@ var SocialPostsRoute = /** @class */ (function () {
22542
22542
  deletePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.DELETE },
22543
22543
  dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
22544
22544
  history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
22545
+ progression: { url: '/socialposts/{post_id}/progression', method: HTTP_METHODS.GET },
22545
22546
  addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
22546
22547
  removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
22547
22548
  reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
22548
22549
  reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
22550
+ updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
22549
22551
  };
22550
22552
  return SocialPostsRoute;
22551
22553
  }());
@@ -22632,6 +22634,18 @@ var SocialPosts = /** @class */ (function () {
22632
22634
  SocialPosts.history = function (post_id, params) {
22633
22635
  return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);
22634
22636
  };
22637
+ /**
22638
+ * Get the change progression of a social media post over period of time.
22639
+ *
22640
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
22641
+ *
22642
+ * @param post_id The id fo the post to retrieve.
22643
+ *
22644
+ * @returns promise
22645
+ */
22646
+ SocialPosts.progression = function (post_id, params) {
22647
+ return Requests.processRoute(SocialPostsRoute.routes.progression, {}, { post_id: post_id }, params);
22648
+ };
22635
22649
  /**
22636
22650
  * Add media to a social media post.
22637
22651
  *
@@ -22681,6 +22695,18 @@ var SocialPosts = /** @class */ (function () {
22681
22695
  SocialPosts.reports = function (params) {
22682
22696
  return Requests.processRoute(SocialPostsRoute.routes.reports, undefined, undefined, params);
22683
22697
  };
22698
+ /**
22699
+ * Update the information about a post impressions, for posts who API do not give view counts.
22700
+ *
22701
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage
22702
+ *
22703
+ * @param post_id The id fo the post to retrieve.
22704
+ *
22705
+ * @returns promise
22706
+ */
22707
+ SocialPosts.updatePostImpressions = function (post_id, data, params) {
22708
+ return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
22709
+ };
22684
22710
  return SocialPosts;
22685
22711
  }());
22686
22712