glitch-javascript-sdk 2.1.3 → 2.1.4

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
@@ -26999,6 +26999,8 @@ var SchedulerRoute = /** @class */ (function () {
26999
26999
  getDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.GET },
27000
27000
  updateDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.PUT },
27001
27001
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
27002
+ getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
27003
+ syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
27002
27004
  };
27003
27005
  return SchedulerRoute;
27004
27006
  }());
@@ -27632,6 +27634,26 @@ var Scheduler = /** @class */ (function () {
27632
27634
  Scheduler.generateRedditContent = function (scheduler_id, data, params) {
27633
27635
  return Requests.processRoute(SchedulerRoute.routes.generateRedditContent, data, { scheduler_id: scheduler_id }, params);
27634
27636
  };
27637
+ /**
27638
+ * Get all posts and comments for a scheduler.
27639
+ *
27640
+ * @param scheduler_id The ID of the promotion schedule.
27641
+ * @param params Optional query parameters for filtering and sorting.
27642
+ * @returns promise
27643
+ */
27644
+ Scheduler.getSchedulerPostsWithComments = function (scheduler_id, params) {
27645
+ return Requests.processRoute(SchedulerRoute.routes.getSchedulerPostsWithComments, {}, { scheduler_id: scheduler_id }, params);
27646
+ };
27647
+ /**
27648
+ * Sync all comments for all posts in a scheduler.
27649
+ *
27650
+ * @param scheduler_id The ID of the promotion schedule.
27651
+ * @param params Optional query parameters (e.g., limit_per_post).
27652
+ * @returns promise
27653
+ */
27654
+ Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
27655
+ return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
27656
+ };
27635
27657
  return Scheduler;
27636
27658
  }());
27637
27659