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/index.d.ts CHANGED
@@ -3628,6 +3628,14 @@ declare class SocialPosts {
3628
3628
  * @returns promise
3629
3629
  */
3630
3630
  static performAction<T>(post_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise<Response<T>>;
3631
+ /**
3632
+ * Perform a social action (Like, Repost, Vote) on a comment.
3633
+ *
3634
+ * @param comment_id The ID of the comment.
3635
+ * @param action The action to perform.
3636
+ * @returns promise
3637
+ */
3638
+ static performCommentAction<T>(comment_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise<Response<T>>;
3631
3639
  }
3632
3640
 
3633
3641
  declare class Titles {
@@ -6074,6 +6082,15 @@ declare class Scheduler {
6074
6082
  * @returns promise
6075
6083
  */
6076
6084
  static syncHistory<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6085
+ /**
6086
+ * Generate hashtags for content based on scheduler settings.
6087
+ *
6088
+ * @param scheduler_id The ID of the promotion schedule.
6089
+ * @param data { content: string, platform?: string }
6090
+ *
6091
+ * @returns promise
6092
+ */
6093
+ static generateHashtags<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6077
6094
  }
6078
6095
 
6079
6096
  declare class Funnel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.3.7",
3
+ "version": "2.3.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -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;
@@ -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