glitch-javascript-sdk 2.4.8 → 2.4.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
@@ -6270,6 +6270,21 @@ declare class Scheduler {
6270
6270
  * @param scheduler_id The ID of the promotion schedule.
6271
6271
  */
6272
6272
  static getTikTokMusic<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6273
+ /**
6274
+ * Get TikTok Music List with advanced filtering (Keyword, Recommendations, Liked).
6275
+ * @param params { music_scene: 'CREATIVE_ASSET'|'CAROUSEL_ADS', search_type: string, filtering: object }
6276
+ */
6277
+ static getTikTokMusicList<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6278
+ /**
6279
+ * Get the top 200 trending hashtags on TikTok.
6280
+ * @param params { country_code: string, category_name: string, date_range: string }
6281
+ */
6282
+ static getTikTokTrendingHashtags<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6283
+ /**
6284
+ * Get trending search keywords on TikTok.
6285
+ * @param params { is_personalized: boolean }
6286
+ */
6287
+ static getTikTokTrendingKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6273
6288
  }
6274
6289
 
6275
6290
  declare class Funnel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.4.8",
3
+ "version": "2.4.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -858,6 +858,30 @@ class Scheduler {
858
858
  return Requests.processRoute(SchedulerRoute.routes.getTikTokMusic, {}, { scheduler_id }, params);
859
859
  }
860
860
 
861
+ /**
862
+ * Get TikTok Music List with advanced filtering (Keyword, Recommendations, Liked).
863
+ * @param params { music_scene: 'CREATIVE_ASSET'|'CAROUSEL_ADS', search_type: string, filtering: object }
864
+ */
865
+ public static getTikTokMusicList<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
866
+ return Requests.processRoute(SchedulerRoute.routes.getTikTokMusicList, {}, { scheduler_id }, params);
867
+ }
868
+
869
+ /**
870
+ * Get the top 200 trending hashtags on TikTok.
871
+ * @param params { country_code: string, category_name: string, date_range: string }
872
+ */
873
+ public static getTikTokTrendingHashtags<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
874
+ return Requests.processRoute(SchedulerRoute.routes.getTikTokTrendingHashtags, {}, { scheduler_id }, params);
875
+ }
876
+
877
+ /**
878
+ * Get trending search keywords on TikTok.
879
+ * @param params { is_personalized: boolean }
880
+ */
881
+ public static getTikTokTrendingKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
882
+ return Requests.processRoute(SchedulerRoute.routes.getTikTokTrendingKeywords, {}, { scheduler_id }, params);
883
+ }
884
+
861
885
  }
862
886
 
863
887
  export default Scheduler;
@@ -133,6 +133,10 @@ class SchedulerRoute {
133
133
 
134
134
  getTikTokHashtags: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags', method: HTTP_METHODS.GET },
135
135
  getTikTokMusic: { url: '/schedulers/{scheduler_id}/tiktok/discovery/music', method: HTTP_METHODS.GET },
136
+ getTikTokMusicList: { url: '/schedulers/{scheduler_id}/tiktok/music', method: HTTP_METHODS.GET },
137
+ getTikTokTrendingHashtags: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/trending', method: HTTP_METHODS.GET },
138
+ getTikTokHashtagDetail: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/detail', method: HTTP_METHODS.GET },
139
+ getTikTokTrendingKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords', method: HTTP_METHODS.GET },
136
140
 
137
141
  };
138
142
  }