glitch-javascript-sdk 2.3.7 → 2.3.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/cjs/index.js CHANGED
@@ -24136,6 +24136,7 @@ var SocialPostsRoute = /** @class */ (function () {
24136
24136
  getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
24137
24137
  syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
24138
24138
  performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
24139
+ performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
24139
24140
  };
24140
24141
  return SocialPostsRoute;
24141
24142
  }());
@@ -24451,6 +24452,16 @@ var SocialPosts = /** @class */ (function () {
24451
24452
  SocialPosts.performAction = function (post_id, action) {
24452
24453
  return Requests.processRoute(SocialPostsRoute.routes.performAction, { action: action }, { post_id: post_id });
24453
24454
  };
24455
+ /**
24456
+ * Perform a social action (Like, Repost, Vote) on a comment.
24457
+ *
24458
+ * @param comment_id The ID of the comment.
24459
+ * @param action The action to perform.
24460
+ * @returns promise
24461
+ */
24462
+ SocialPosts.performCommentAction = function (comment_id, action) {
24463
+ return Requests.processRoute(SocialPostsRoute.routes.performCommentAction, { action: action }, { comment_id: comment_id });
24464
+ };
24454
24465
  return SocialPosts;
24455
24466
  }());
24456
24467