glitch-javascript-sdk 2.3.7 → 2.3.9

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
@@ -24136,6 +24136,7 @@ var SocialPostsRoute = /** @class */ (function () {
24136
24136
  getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
24137
24137
  syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
24138
24138
  performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
24139
+ performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
24139
24140
  };
24140
24141
  return SocialPostsRoute;
24141
24142
  }());
@@ -24451,6 +24452,16 @@ var SocialPosts = /** @class */ (function () {
24451
24452
  SocialPosts.performAction = function (post_id, action) {
24452
24453
  return Requests.processRoute(SocialPostsRoute.routes.performAction, { action: action }, { post_id: post_id });
24453
24454
  };
24455
+ /**
24456
+ * Perform a social action (Like, Repost, Vote) on a comment.
24457
+ *
24458
+ * @param comment_id The ID of the comment.
24459
+ * @param action The action to perform.
24460
+ * @returns promise
24461
+ */
24462
+ SocialPosts.performCommentAction = function (comment_id, action) {
24463
+ return Requests.processRoute(SocialPostsRoute.routes.performCommentAction, { action: action }, { comment_id: comment_id });
24464
+ };
24454
24465
  return SocialPosts;
24455
24466
  }());
24456
24467
 
@@ -27297,6 +27308,10 @@ var SchedulerRoute = /** @class */ (function () {
27297
27308
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
27298
27309
  getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
27299
27310
  syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
27311
+ generateHashtags: {
27312
+ url: '/schedulers/{scheduler_id}/generateHashtags',
27313
+ method: HTTP_METHODS.POST
27314
+ },
27300
27315
  };
27301
27316
  return SchedulerRoute;
27302
27317
  }());
@@ -27976,6 +27991,17 @@ var Scheduler = /** @class */ (function () {
27976
27991
  Scheduler.syncHistory = function (scheduler_id, platform, params) {
27977
27992
  return Requests.processRoute(SchedulerRoute.routes.syncHistory, {}, { scheduler_id: scheduler_id, platform: platform }, params);
27978
27993
  };
27994
+ /**
27995
+ * Generate hashtags for content based on scheduler settings.
27996
+ *
27997
+ * @param scheduler_id The ID of the promotion schedule.
27998
+ * @param data { content: string, platform?: string }
27999
+ *
28000
+ * @returns promise
28001
+ */
28002
+ Scheduler.generateHashtags = function (scheduler_id, data, params) {
28003
+ return Requests.processRoute(SchedulerRoute.routes.generateHashtags, data, { scheduler_id: scheduler_id }, params);
28004
+ };
27979
28005
  return Scheduler;
27980
28006
  }());
27981
28007