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.
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +11 -0
- package/src/routes/SocialPostsRoute.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24130,6 +24130,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
24130
24130
|
markCommentForResponse: { url: '/socialposts/comments/{comment_id}/mark-for-response', method: HTTP_METHODS.PUT },
|
|
24131
24131
|
getCommentThread: { url: '/socialposts/comments/{comment_id}/thread', method: HTTP_METHODS.GET },
|
|
24132
24132
|
updateCommentMetrics: { url: '/socialposts/comments/{comment_id}/update-metrics', method: HTTP_METHODS.PUT },
|
|
24133
|
+
createComment: { url: '/socialposts/{post_id}/comments', method: HTTP_METHODS.POST },
|
|
24133
24134
|
};
|
|
24134
24135
|
return SocialPostsRoute;
|
|
24135
24136
|
}());
|
|
@@ -24385,6 +24386,16 @@ var SocialPosts = /** @class */ (function () {
|
|
|
24385
24386
|
SocialPosts.updateCommentMetrics = function (comment_id) {
|
|
24386
24387
|
return Requests.processRoute(SocialPostsRoute.routes.updateCommentMetrics, undefined, { comment_id: comment_id });
|
|
24387
24388
|
};
|
|
24389
|
+
/**
|
|
24390
|
+
* Create a new top-level comment on a post.
|
|
24391
|
+
*
|
|
24392
|
+
* @param post_id The ID of the social media post to comment on.
|
|
24393
|
+
* @param data The content of the comment.
|
|
24394
|
+
* @returns A promise
|
|
24395
|
+
*/
|
|
24396
|
+
SocialPosts.createComment = function (post_id, data) {
|
|
24397
|
+
return Requests.processRoute(SocialPostsRoute.routes.createComment, data, { post_id: post_id });
|
|
24398
|
+
};
|
|
24388
24399
|
return SocialPosts;
|
|
24389
24400
|
}());
|
|
24390
24401
|
|