glitch-javascript-sdk 2.2.3 → 2.2.5

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
@@ -4702,6 +4702,9 @@ declare class Campaigns {
4702
4702
  * @returns promise
4703
4703
  */
4704
4704
  static updateAutoInviteCriteria<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
4705
+ static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
4706
+ static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>>;
4707
+ static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
4705
4708
  }
4706
4709
 
4707
4710
  declare class Subscriptions {
@@ -5994,6 +5997,20 @@ declare class Scheduler {
5994
5997
  * @returns promise
5995
5998
  */
5996
5999
  static syncAllSchedulerComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6000
+ /**
6001
+ * Get ad conversion actions for a specific platform linked to the scheduler.
6002
+ *
6003
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
6004
+ *
6005
+ * @param scheduler_id The ID of the promotion schedule.
6006
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
6007
+ *
6008
+ * @returns promise
6009
+ */
6010
+ static getConversionActions<T>(scheduler_id: string, params: {
6011
+ platform: string;
6012
+ account_id?: string;
6013
+ }): AxiosPromise<Response<T>>;
5997
6014
  }
5998
6015
 
5999
6016
  declare class Funnel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -916,12 +916,12 @@ class Campaigns {
916
916
  return Requests.processRoute(CampaignsRoute.routes.exportSourcedCreators, undefined, { campaign_id }, params);
917
917
  }
918
918
 
919
- /**
920
- * Search IGDB for any game by a query string.
921
- * @param campaign_id The UUID of the campaign (for permission checking).
922
- * @param params Query parameters including 'search_query' and optional 'limit'.
923
- * @returns promise
924
- */
919
+ /**
920
+ * Search IGDB for any game by a query string.
921
+ * @param campaign_id The UUID of the campaign (for permission checking).
922
+ * @param params Query parameters including 'search_query' and optional 'limit'.
923
+ * @returns promise
924
+ */
925
925
  public static sourcingSearchAnyIgdbGame<T>(campaign_id: string, params: { search_query: string, limit?: number }): AxiosPromise<Response<T>> {
926
926
  return Requests.processRoute(CampaignsRoute.routes.sourcingSearchAnyIgdbGame, undefined, { campaign_id }, params);
927
927
  }
@@ -948,6 +948,18 @@ class Campaigns {
948
948
  return Requests.processRoute(CampaignsRoute.routes.updateAutoInviteCriteria, data, { campaign_id });
949
949
  }
950
950
 
951
+ public static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>> {
952
+ return Requests.processRoute(CampaignsRoute.routes.updateCustomRanking, data, { campaign_id });
953
+ }
954
+
955
+ public static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>> {
956
+ return Requests.processRoute(CampaignsRoute.routes.updateCreatorBucket, data, { campaign_id, creator_id });
957
+ }
958
+
959
+ public static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>> {
960
+ return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id });
961
+ }
962
+
951
963
 
952
964
  }
953
965
 
@@ -799,6 +799,20 @@ 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
+ */
812
+ public static getConversionActions<T>(scheduler_id: string, params: { platform: string; account_id?: string }): AxiosPromise<Response<T>> {
813
+ return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id }, params);
814
+ }
815
+
802
816
  }
803
817
 
804
818
  export default Scheduler;
@@ -77,7 +77,9 @@ class CampaignsRoute {
77
77
  sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
78
78
  sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
79
79
  updateAutoInviteCriteria: { url: '/campaigns/{campaign_id}/sourcing/auto-invite-criteria', method: HTTP_METHODS.PUT },
80
-
80
+ updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
81
+ updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
82
+ reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
81
83
 
82
84
  };
83
85
 
@@ -122,6 +122,8 @@ class SchedulerRoute {
122
122
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
123
123
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
124
124
 
125
+ getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
126
+
125
127
  };
126
128
  }
127
129