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.
package/dist/index.d.ts CHANGED
@@ -5226,6 +5226,13 @@ declare class Newsletters {
5226
5226
  * @returns Promise
5227
5227
  */
5228
5228
  static downloadMarketingChecklist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
5229
+ /**
5230
+ * Join the marketing course waitlist.
5231
+ *
5232
+ * @param data { name, email, game, topics[] }
5233
+ * @returns Promise
5234
+ */
5235
+ static joinCourseWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
5229
5236
  }
5230
5237
 
5231
5238
  declare class PlayTests {
@@ -6082,6 +6089,15 @@ declare class Scheduler {
6082
6089
  * @returns promise
6083
6090
  */
6084
6091
  static syncHistory<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6092
+ /**
6093
+ * Generate hashtags for content based on scheduler settings.
6094
+ *
6095
+ * @param scheduler_id The ID of the promotion schedule.
6096
+ * @param data { content: string, platform?: string }
6097
+ *
6098
+ * @returns promise
6099
+ */
6100
+ static generateHashtags<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6085
6101
  }
6086
6102
 
6087
6103
  declare class Funnel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.3.8",
3
+ "version": "2.4.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -21,6 +21,15 @@ class Newsletters {
21
21
  }
22
22
 
23
23
 
24
+ /**
25
+ * Join the marketing course waitlist.
26
+ *
27
+ * @param data { name, email, game, topics[] }
28
+ * @returns Promise
29
+ */
30
+ public static joinCourseWaitlist<T>(data : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
31
+ return Requests.processRoute(NewslettersRoutes.routes.joinCourseWaitlist, data, undefined, params);
32
+ }
24
33
 
25
34
 
26
35
  }
@@ -777,13 +777,13 @@ class Scheduler {
777
777
  return Requests.processRoute(SchedulerRoute.routes.generateRedditContent, data, { scheduler_id }, params);
778
778
  }
779
779
 
780
- /**
781
- * Get all posts and comments for a scheduler.
782
- *
783
- * @param scheduler_id The ID of the promotion schedule.
784
- * @param params Optional query parameters for filtering and sorting.
785
- * @returns promise
786
- */
780
+ /**
781
+ * Get all posts and comments for a scheduler.
782
+ *
783
+ * @param scheduler_id The ID of the promotion schedule.
784
+ * @param params Optional query parameters for filtering and sorting.
785
+ * @returns promise
786
+ */
787
787
  public static getSchedulerPostsWithComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
788
788
  return Requests.processRoute(SchedulerRoute.routes.getSchedulerPostsWithComments, {}, { scheduler_id }, params);
789
789
  }
@@ -799,16 +799,16 @@ class Scheduler {
799
799
  return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id }, params);
800
800
  }
801
801
 
802
- /**
803
- * Get ad conversion actions for a specific platform linked to the scheduler.
804
- *
805
- * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
806
- *
807
- * @param scheduler_id The ID of the promotion schedule.
808
- * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
809
- *
810
- * @returns promise
811
- */
802
+ /**
803
+ * Get ad conversion actions for a specific platform linked to the scheduler.
804
+ *
805
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
806
+ *
807
+ * @param scheduler_id The ID of the promotion schedule.
808
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
809
+ *
810
+ * @returns promise
811
+ */
812
812
  public static getConversionActions<T>(scheduler_id: string, params: { platform: string; account_id?: string }): AxiosPromise<Response<T>> {
813
813
  return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id }, params);
814
814
  }
@@ -827,6 +827,18 @@ class Scheduler {
827
827
  return Requests.processRoute(SchedulerRoute.routes.syncHistory, {}, { scheduler_id, platform }, params);
828
828
  }
829
829
 
830
+ /**
831
+ * Generate hashtags for content based on scheduler settings.
832
+ *
833
+ * @param scheduler_id The ID of the promotion schedule.
834
+ * @param data { content: string, platform?: string }
835
+ *
836
+ * @returns promise
837
+ */
838
+ public static generateHashtags<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
839
+ return Requests.processRoute(SchedulerRoute.routes.generateHashtags, data, { scheduler_id }, params);
840
+ }
841
+
830
842
  }
831
843
 
832
844
  export default Scheduler;
@@ -5,6 +5,7 @@ class NewslettersRoutes {
5
5
 
6
6
  public static routes: { [key: string]: Route } = {
7
7
  downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
8
+ joinCourseWaitlist: { url: '/newsletters/joinCourseWaitlist', method: HTTP_METHODS.POST },
8
9
  };
9
10
 
10
11
  }
@@ -40,8 +40,8 @@ class SchedulerRoute {
40
40
  clearSteamAuth: { url: '/schedulers/{scheduler_id}/clearSteamAuth', method: HTTP_METHODS.DELETE },
41
41
  clearDiscordAuth: { url: '/schedulers/{scheduler_id}/clearDiscordAuth', method: HTTP_METHODS.DELETE },
42
42
  clearBlueskyAuth: { url: '/schedulers/{scheduler_id}/clearBlueskyAuth', method: HTTP_METHODS.DELETE },
43
- clearTiktokAdsAuth: { url: '/schedulers/{scheduler_id}/clearTiktokAdsAuth', method: HTTP_METHODS.DELETE },
44
- clearGoogleAdsAuth: { url: '/schedulers/{scheduler_id}/clearGoogleAdsAuth', method: HTTP_METHODS.DELETE },
43
+ clearTiktokAdsAuth: { url: '/schedulers/{scheduler_id}/clearTiktokAdsAuth', method: HTTP_METHODS.DELETE },
44
+ clearGoogleAdsAuth: { url: '/schedulers/{scheduler_id}/clearGoogleAdsAuth', method: HTTP_METHODS.DELETE },
45
45
 
46
46
  //Social Utility Routes
47
47
  getFacebookGroups: { url: '/schedulers/{scheduler_id}/facebook/groups', method: HTTP_METHODS.GET },
@@ -126,6 +126,11 @@ class SchedulerRoute {
126
126
 
127
127
  syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
128
128
 
129
+ generateHashtags: {
130
+ url: '/schedulers/{scheduler_id}/generateHashtags',
131
+ method: HTTP_METHODS.POST
132
+ },
133
+
129
134
  };
130
135
  }
131
136