glitch-javascript-sdk 1.9.0 → 1.9.1

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
@@ -975,6 +975,21 @@ declare class Ads {
975
975
  static tiktokListActionCategories<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
976
976
  static tiktokListContentExclusions<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
977
977
  static tiktokListRegions<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
978
+ static tiktokGetTargetingInfo<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
979
+ static tiktokListLanguages<T>(advertiser_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
980
+ static tiktokRecommendInterestKeywords<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
981
+ /**
982
+ * GET /ads/tiktok/targeting/hashtag_info
983
+ */
984
+ static tiktokHashtagInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
985
+ /**
986
+ * GET /ads/tiktok/targeting/contextual_tag_info
987
+ */
988
+ static tiktokContextualTagInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
989
+ /**
990
+ * GET /ads/tiktok/targeting/content_exclusion_info
991
+ */
992
+ static tiktokContentExclusionInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
978
993
  static listTwitterTargetingCriteria<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
979
994
  static getTwitterTargetingCriterion<T>(criterion_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
980
995
  static createTwitterTargetingCriterion<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Ads.ts CHANGED
@@ -867,64 +867,108 @@ class Ads {
867
867
  public static tiktokTargetingSearch<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
868
868
  return Requests.processRoute(AdsRoute.routes.tiktokTargetingSearch, data, {}, params);
869
869
  }
870
-
870
+
871
871
  public static tiktokContextualTags<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
872
872
  return Requests.processRoute(AdsRoute.routes.tiktokContextualTags, undefined, undefined, params);
873
873
  }
874
-
874
+
875
875
  public static tiktokRecommendHashtags<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
876
876
  return Requests.processRoute(AdsRoute.routes.tiktokRecommendHashtags, undefined, undefined, params);
877
877
  }
878
-
878
+
879
879
  public static tiktokListCarriers<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
880
880
  return Requests.processRoute(AdsRoute.routes.tiktokCarriers, undefined, undefined, params);
881
881
  }
882
-
882
+
883
883
  public static tiktokListInterestCategories<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
884
884
  return Requests.processRoute(AdsRoute.routes.tiktokInterestCategories, undefined, undefined, params);
885
885
  }
886
-
886
+
887
887
  public static tiktokListActionCategories<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
888
888
  return Requests.processRoute(AdsRoute.routes.tiktokActionCategories, undefined, undefined, params);
889
889
  }
890
-
890
+
891
891
  public static tiktokListContentExclusions<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
892
892
  return Requests.processRoute(AdsRoute.routes.tiktokContentExclusions, undefined, undefined, params);
893
893
  }
894
-
894
+
895
895
  public static tiktokListRegions<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
896
896
  return Requests.processRoute(AdsRoute.routes.tiktokRegions, undefined, undefined, params);
897
897
  }
898
898
 
899
+ public static tiktokGetTargetingInfo<T>(
900
+ data: object,
901
+ params?: Record<string, any>
902
+ ): AxiosPromise<Response<T>> {
903
+ return Requests.processRoute(AdsRoute.routes.tiktokTargetingInfo, data, {}, params);
904
+ }
905
+
906
+ public static tiktokListLanguages<T>(
907
+ advertiser_id: string,
908
+ params?: Record<string, any>
909
+ ): AxiosPromise<Response<T>> {
910
+ const mergedParams = { ...params, advertiser_id };
911
+ return Requests.processRoute(AdsRoute.routes.tiktokLanguages, undefined, undefined, mergedParams);
912
+ }
913
+
914
+ public static tiktokRecommendInterestKeywords<T>(
915
+ params: Record<string, any>
916
+ ): AxiosPromise<Response<T>> {
917
+ return Requests.processRoute(AdsRoute.routes.tiktokInterestKeywordRecommend, undefined, undefined, params);
918
+ }
919
+
920
+ /**
921
+ * GET /ads/tiktok/targeting/hashtag_info
922
+ */
923
+ public static tiktokHashtagInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
924
+ return Requests.processRoute(AdsRoute.routes.tiktokHashtagInfo, undefined, undefined, params);
925
+ }
926
+
927
+ /**
928
+ * GET /ads/tiktok/targeting/contextual_tag_info
929
+ */
930
+ public static tiktokContextualTagInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
931
+ return Requests.processRoute(AdsRoute.routes.tiktokContextualTagInfo, undefined, undefined, params);
932
+ }
933
+
934
+ /**
935
+ * GET /ads/tiktok/targeting/content_exclusion_info
936
+ */
937
+ public static tiktokContentExclusionInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
938
+ return Requests.processRoute(AdsRoute.routes.tiktokContentExclusionInfo, undefined, undefined, params);
939
+ }
940
+
941
+
942
+
899
943
  public static listTwitterTargetingCriteria<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
900
944
  return Requests.processRoute(AdsRoute.routes.twitterListTargetingCriteria, undefined, undefined, params);
901
945
  }
902
-
946
+
903
947
  public static getTwitterTargetingCriterion<T>(criterion_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
904
948
  return Requests.processRoute(AdsRoute.routes.twitterGetTargetingCriterion, undefined, { criterion_id }, params);
905
949
  }
906
-
950
+
907
951
  public static createTwitterTargetingCriterion<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
908
952
  return Requests.processRoute(AdsRoute.routes.twitterCreateTargetingCriterion, data, {}, params);
909
953
  }
910
-
954
+
911
955
  public static deleteTwitterTargetingCriterion<T>(criterion_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
912
956
  return Requests.processRoute(AdsRoute.routes.twitterDeleteTargetingCriterion, undefined, { criterion_id }, params);
913
957
  }
914
-
958
+
915
959
  public static twitterBatchTargetingCriteria<T>(data: object[], params?: Record<string, any>): AxiosPromise<Response<T>> {
916
960
  return Requests.processRoute(AdsRoute.routes.twitterBatchTargetingCriteria, data, {}, params);
917
961
  }
918
-
962
+
919
963
  public static lookupTwitterTargeting<T>(resource: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
920
964
  return Requests.processRoute(AdsRoute.routes.twitterTargetingDiscovery, undefined, { resource }, params);
921
965
  }
922
-
966
+
923
967
  public static twitterTargetingSuggestions<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
924
968
  return Requests.processRoute(AdsRoute.routes.twitterTargetingSuggestions, undefined, undefined, params);
925
969
  }
926
-
927
-
970
+
971
+
928
972
 
929
973
  }
930
974
 
@@ -313,6 +313,30 @@ class AdsRoute {
313
313
  url: "/ads/tiktok/targeting/regions",
314
314
  method: HTTP_METHODS.GET,
315
315
  },
316
+ tiktokTargetingInfo: {
317
+ url: "/ads/tiktok/targeting/info",
318
+ method: HTTP_METHODS.POST,
319
+ },
320
+ tiktokLanguages: {
321
+ url: "/ads/tiktok/targeting/languages",
322
+ method: HTTP_METHODS.GET,
323
+ },
324
+ tiktokHashtagInfo: {
325
+ url: "/ads/tiktok/targeting/hashtag_info",
326
+ method: HTTP_METHODS.GET,
327
+ },
328
+ tiktokContextualTagInfo: {
329
+ url: "/ads/tiktok/targeting/contextual_tag_info",
330
+ method: HTTP_METHODS.GET,
331
+ },
332
+ tiktokContentExclusionInfo: {
333
+ url: "/ads/tiktok/targeting/content_exclusion_info",
334
+ method: HTTP_METHODS.GET,
335
+ },
336
+ tiktokInterestKeywordRecommend: {
337
+ url: "/ads/tiktok/targeting/interest_keywords",
338
+ method: HTTP_METHODS.GET,
339
+ },
316
340
  twitterListTargetingCriteria: {
317
341
  url: "/ads/twitter/targeting/criteria",
318
342
  method: HTTP_METHODS.GET,