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.
@@ -496,5 +496,21 @@ declare class Scheduler {
496
496
  * @returns promise
497
497
  */
498
498
  static generateRedditContent<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
499
+ /**
500
+ * Get all posts and comments for a scheduler.
501
+ *
502
+ * @param scheduler_id The ID of the promotion schedule.
503
+ * @param params Optional query parameters for filtering and sorting.
504
+ * @returns promise
505
+ */
506
+ static getSchedulerPostsWithComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
507
+ /**
508
+ * Sync all comments for all posts in a scheduler.
509
+ *
510
+ * @param scheduler_id The ID of the promotion schedule.
511
+ * @param params Optional query parameters (e.g., limit_per_post).
512
+ * @returns promise
513
+ */
514
+ static syncAllSchedulerComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
499
515
  }
500
516
  export default Scheduler;
package/dist/esm/index.js CHANGED
@@ -13815,6 +13815,8 @@ var SchedulerRoute = /** @class */ (function () {
13815
13815
  getDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.GET },
13816
13816
  updateDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.PUT },
13817
13817
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
13818
+ getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
13819
+ syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
13818
13820
  };
13819
13821
  return SchedulerRoute;
13820
13822
  }());
@@ -14448,6 +14450,26 @@ var Scheduler = /** @class */ (function () {
14448
14450
  Scheduler.generateRedditContent = function (scheduler_id, data, params) {
14449
14451
  return Requests.processRoute(SchedulerRoute.routes.generateRedditContent, data, { scheduler_id: scheduler_id }, params);
14450
14452
  };
14453
+ /**
14454
+ * Get all posts and comments for a scheduler.
14455
+ *
14456
+ * @param scheduler_id The ID of the promotion schedule.
14457
+ * @param params Optional query parameters for filtering and sorting.
14458
+ * @returns promise
14459
+ */
14460
+ Scheduler.getSchedulerPostsWithComments = function (scheduler_id, params) {
14461
+ return Requests.processRoute(SchedulerRoute.routes.getSchedulerPostsWithComments, {}, { scheduler_id: scheduler_id }, params);
14462
+ };
14463
+ /**
14464
+ * Sync all comments for all posts in a scheduler.
14465
+ *
14466
+ * @param scheduler_id The ID of the promotion schedule.
14467
+ * @param params Optional query parameters (e.g., limit_per_post).
14468
+ * @returns promise
14469
+ */
14470
+ Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
14471
+ return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
14472
+ };
14451
14473
  return Scheduler;
14452
14474
  }());
14453
14475