glitch-javascript-sdk 2.3.8 → 2.4.0

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.
@@ -11,5 +11,12 @@ declare class Newsletters {
11
11
  * @returns Promise
12
12
  */
13
13
  static downloadMarketingChecklist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
14
+ /**
15
+ * Join the marketing course waitlist.
16
+ *
17
+ * @param data { name, email, game, topics[] }
18
+ * @returns Promise
19
+ */
20
+ static joinCourseWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
14
21
  }
15
22
  export default Newsletters;
@@ -537,5 +537,14 @@ declare class Scheduler {
537
537
  * @returns promise
538
538
  */
539
539
  static syncHistory<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
540
+ /**
541
+ * Generate hashtags for content based on scheduler settings.
542
+ *
543
+ * @param scheduler_id The ID of the promotion schedule.
544
+ * @param data { content: string, platform?: string }
545
+ *
546
+ * @returns promise
547
+ */
548
+ static generateHashtags<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
540
549
  }
541
550
  export default Scheduler;
package/dist/esm/index.js CHANGED
@@ -13606,6 +13606,7 @@ var NewslettersRoutes = /** @class */ (function () {
13606
13606
  }
13607
13607
  NewslettersRoutes.routes = {
13608
13608
  downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
13609
+ joinCourseWaitlist: { url: '/newsletters/joinCourseWaitlist', method: HTTP_METHODS.POST },
13609
13610
  };
13610
13611
  return NewslettersRoutes;
13611
13612
  }());
@@ -13625,6 +13626,15 @@ var Newsletters = /** @class */ (function () {
13625
13626
  Newsletters.downloadMarketingChecklist = function (data, params) {
13626
13627
  return Requests.processRoute(NewslettersRoutes.routes.downloadMarketingChecklist, data, undefined, params);
13627
13628
  };
13629
+ /**
13630
+ * Join the marketing course waitlist.
13631
+ *
13632
+ * @param data { name, email, game, topics[] }
13633
+ * @returns Promise
13634
+ */
13635
+ Newsletters.joinCourseWaitlist = function (data, params) {
13636
+ return Requests.processRoute(NewslettersRoutes.routes.joinCourseWaitlist, data, undefined, params);
13637
+ };
13628
13638
  return Newsletters;
13629
13639
  }());
13630
13640
 
@@ -14124,6 +14134,10 @@ var SchedulerRoute = /** @class */ (function () {
14124
14134
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
14125
14135
  getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
14126
14136
  syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
14137
+ generateHashtags: {
14138
+ url: '/schedulers/{scheduler_id}/generateHashtags',
14139
+ method: HTTP_METHODS.POST
14140
+ },
14127
14141
  };
14128
14142
  return SchedulerRoute;
14129
14143
  }());
@@ -14803,6 +14817,17 @@ var Scheduler = /** @class */ (function () {
14803
14817
  Scheduler.syncHistory = function (scheduler_id, platform, params) {
14804
14818
  return Requests.processRoute(SchedulerRoute.routes.syncHistory, {}, { scheduler_id: scheduler_id, platform: platform }, params);
14805
14819
  };
14820
+ /**
14821
+ * Generate hashtags for content based on scheduler settings.
14822
+ *
14823
+ * @param scheduler_id The ID of the promotion schedule.
14824
+ * @param data { content: string, platform?: string }
14825
+ *
14826
+ * @returns promise
14827
+ */
14828
+ Scheduler.generateHashtags = function (scheduler_id, data, params) {
14829
+ return Requests.processRoute(SchedulerRoute.routes.generateHashtags, data, { scheduler_id: scheduler_id }, params);
14830
+ };
14806
14831
  return Scheduler;
14807
14832
  }());
14808
14833