glitch-javascript-sdk 2.1.4 → 2.1.5

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.
@@ -203,5 +203,13 @@ declare class SocialPosts {
203
203
  * @returns A promise
204
204
  */
205
205
  static updateCommentMetrics<T>(comment_id: string): AxiosPromise<Response<T>>;
206
+ /**
207
+ * Create a new top-level comment on a post.
208
+ *
209
+ * @param post_id The ID of the social media post to comment on.
210
+ * @param data The content of the comment.
211
+ * @returns A promise
212
+ */
213
+ static createComment<T>(post_id: string, data: object): AxiosPromise<Response<T>>;
206
214
  }
207
215
  export default SocialPosts;
package/dist/esm/index.js CHANGED
@@ -10946,6 +10946,7 @@ var SocialPostsRoute = /** @class */ (function () {
10946
10946
  markCommentForResponse: { url: '/socialposts/comments/{comment_id}/mark-for-response', method: HTTP_METHODS.PUT },
10947
10947
  getCommentThread: { url: '/socialposts/comments/{comment_id}/thread', method: HTTP_METHODS.GET },
10948
10948
  updateCommentMetrics: { url: '/socialposts/comments/{comment_id}/update-metrics', method: HTTP_METHODS.PUT },
10949
+ createComment: { url: '/socialposts/{post_id}/comments', method: HTTP_METHODS.POST },
10949
10950
  };
10950
10951
  return SocialPostsRoute;
10951
10952
  }());
@@ -11201,6 +11202,16 @@ var SocialPosts = /** @class */ (function () {
11201
11202
  SocialPosts.updateCommentMetrics = function (comment_id) {
11202
11203
  return Requests.processRoute(SocialPostsRoute.routes.updateCommentMetrics, undefined, { comment_id: comment_id });
11203
11204
  };
11205
+ /**
11206
+ * Create a new top-level comment on a post.
11207
+ *
11208
+ * @param post_id The ID of the social media post to comment on.
11209
+ * @param data The content of the comment.
11210
+ * @returns A promise
11211
+ */
11212
+ SocialPosts.createComment = function (post_id, data) {
11213
+ return Requests.processRoute(SocialPostsRoute.routes.createComment, data, { post_id: post_id });
11214
+ };
11204
11215
  return SocialPosts;
11205
11216
  }());
11206
11217