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.
@@ -251,5 +251,13 @@ declare class SocialPosts {
251
251
  * @returns promise
252
252
  */
253
253
  static performAction<T>(post_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise<Response<T>>;
254
+ /**
255
+ * Perform a social action (Like, Repost, Vote) on a comment.
256
+ *
257
+ * @param comment_id The ID of the comment.
258
+ * @param action The action to perform.
259
+ * @returns promise
260
+ */
261
+ static performCommentAction<T>(comment_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise<Response<T>>;
254
262
  }
255
263
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -10952,6 +10952,7 @@ var SocialPostsRoute = /** @class */ (function () {
10952
10952
  getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
10953
10953
  syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
10954
10954
  performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
10955
+ performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
10955
10956
  };
10956
10957
  return SocialPostsRoute;
10957
10958
  }());
@@ -11267,6 +11268,16 @@ var SocialPosts = /** @class */ (function () {
11267
11268
  SocialPosts.performAction = function (post_id, action) {
11268
11269
  return Requests.processRoute(SocialPostsRoute.routes.performAction, { action: action }, { post_id: post_id });
11269
11270
  };
11271
+ /**
11272
+ * Perform a social action (Like, Repost, Vote) on a comment.
11273
+ *
11274
+ * @param comment_id The ID of the comment.
11275
+ * @param action The action to perform.
11276
+ * @returns promise
11277
+ */
11278
+ SocialPosts.performCommentAction = function (comment_id, action) {
11279
+ return Requests.processRoute(SocialPostsRoute.routes.performCommentAction, { action: action }, { comment_id: comment_id });
11280
+ };
11270
11281
  return SocialPosts;
11271
11282
  }());
11272
11283