glitch-javascript-sdk 2.1.3 → 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 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
 
@@ -26999,6 +27010,8 @@ var SchedulerRoute = /** @class */ (function () {
26999
27010
  getDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.GET },
27000
27011
  updateDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.PUT },
27001
27012
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
27013
+ getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
27014
+ syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
27002
27015
  };
27003
27016
  return SchedulerRoute;
27004
27017
  }());
@@ -27632,6 +27645,26 @@ var Scheduler = /** @class */ (function () {
27632
27645
  Scheduler.generateRedditContent = function (scheduler_id, data, params) {
27633
27646
  return Requests.processRoute(SchedulerRoute.routes.generateRedditContent, data, { scheduler_id: scheduler_id }, params);
27634
27647
  };
27648
+ /**
27649
+ * Get all posts and comments for a scheduler.
27650
+ *
27651
+ * @param scheduler_id The ID of the promotion schedule.
27652
+ * @param params Optional query parameters for filtering and sorting.
27653
+ * @returns promise
27654
+ */
27655
+ Scheduler.getSchedulerPostsWithComments = function (scheduler_id, params) {
27656
+ return Requests.processRoute(SchedulerRoute.routes.getSchedulerPostsWithComments, {}, { scheduler_id: scheduler_id }, params);
27657
+ };
27658
+ /**
27659
+ * Sync all comments for all posts in a scheduler.
27660
+ *
27661
+ * @param scheduler_id The ID of the promotion schedule.
27662
+ * @param params Optional query parameters (e.g., limit_per_post).
27663
+ * @returns promise
27664
+ */
27665
+ Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
27666
+ return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
27667
+ };
27635
27668
  return Scheduler;
27636
27669
  }());
27637
27670