glitch-javascript-sdk 2.3.4 → 2.3.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
@@ -24134,6 +24134,7 @@ var SocialPostsRoute = /** @class */ (function () {
24134
24134
  getPostAttribution: { url: '/socialposts/{post_id}/attribution', method: HTTP_METHODS.GET },
24135
24135
  getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
24136
24136
  getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
24137
+ syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
24137
24138
  };
24138
24139
  return SocialPostsRoute;
24139
24140
  }());
@@ -24427,6 +24428,18 @@ var SocialPosts = /** @class */ (function () {
24427
24428
  SocialPosts.getLinkSummary = function (post_id) {
24428
24429
  return Requests.processRoute(SocialPostsRoute.routes.getLinkSummary, undefined, { post_id: post_id });
24429
24430
  };
24431
+ /**
24432
+ * Trigger a historical sync for a specific platform for the current user.
24433
+ *
24434
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/syncHistory
24435
+ *
24436
+ * @param platform The platform to sync (e.g., 'twitter', 'youtube', 'bluesky').
24437
+ *
24438
+ * @returns promise
24439
+ */
24440
+ SocialPosts.syncHistory = function (platform, params) {
24441
+ return Requests.processRoute(SocialPostsRoute.routes.syncHistory, {}, { platform: platform }, params);
24442
+ };
24430
24443
  return SocialPosts;
24431
24444
  }());
24432
24445
 
@@ -27272,6 +27285,7 @@ var SchedulerRoute = /** @class */ (function () {
27272
27285
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
27273
27286
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
27274
27287
  getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
27288
+ syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
27275
27289
  };
27276
27290
  return SchedulerRoute;
27277
27291
  }());
@@ -27938,6 +27952,19 @@ var Scheduler = /** @class */ (function () {
27938
27952
  Scheduler.getConversionActions = function (scheduler_id, params) {
27939
27953
  return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
27940
27954
  };
27955
+ /**
27956
+ * Trigger a historical sync for a specific platform on a scheduler.
27957
+ *
27958
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/syncHistory
27959
+ *
27960
+ * @param scheduler_id The ID of the promotion schedule.
27961
+ * @param platform The platform to sync (e.g., 'twitter', 'youtube', 'bluesky').
27962
+ *
27963
+ * @returns promise
27964
+ */
27965
+ Scheduler.syncHistory = function (scheduler_id, platform, params) {
27966
+ return Requests.processRoute(SchedulerRoute.routes.syncHistory, {}, { scheduler_id: scheduler_id, platform: platform }, params);
27967
+ };
27941
27968
  return Scheduler;
27942
27969
  }());
27943
27970