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.
@@ -682,5 +682,8 @@ declare class Campaigns {
682
682
  * @returns promise
683
683
  */
684
684
  static updateAutoInviteCriteria<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
685
+ static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
686
+ static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>>;
687
+ static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
685
688
  }
686
689
  export default Campaigns;
@@ -512,5 +512,19 @@ declare class Scheduler {
512
512
  * @returns promise
513
513
  */
514
514
  static syncAllSchedulerComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
515
+ /**
516
+ * Get ad conversion actions for a specific platform linked to the scheduler.
517
+ *
518
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
519
+ *
520
+ * @param scheduler_id The ID of the promotion schedule.
521
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
522
+ *
523
+ * @returns promise
524
+ */
525
+ static getConversionActions<T>(scheduler_id: string, params: {
526
+ platform: string;
527
+ account_id?: string;
528
+ }): AxiosPromise<Response<T>>;
515
529
  }
516
530
  export default Scheduler;
package/dist/esm/index.js CHANGED
@@ -11997,6 +11997,9 @@ var CampaignsRoute = /** @class */ (function () {
11997
11997
  sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
11998
11998
  sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
11999
11999
  updateAutoInviteCriteria: { url: '/campaigns/{campaign_id}/sourcing/auto-invite-criteria', method: HTTP_METHODS.PUT },
12000
+ updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
12001
+ updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
12002
+ reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
12000
12003
  };
12001
12004
  return CampaignsRoute;
12002
12005
  }());
@@ -12821,6 +12824,15 @@ var Campaigns = /** @class */ (function () {
12821
12824
  Campaigns.updateAutoInviteCriteria = function (campaign_id, data) {
12822
12825
  return Requests.processRoute(CampaignsRoute.routes.updateAutoInviteCriteria, data, { campaign_id: campaign_id });
12823
12826
  };
12827
+ Campaigns.updateCustomRanking = function (campaign_id, data) {
12828
+ return Requests.processRoute(CampaignsRoute.routes.updateCustomRanking, data, { campaign_id: campaign_id });
12829
+ };
12830
+ Campaigns.updateCreatorBucket = function (campaign_id, creator_id, data) {
12831
+ return Requests.processRoute(CampaignsRoute.routes.updateCreatorBucket, data, { campaign_id: campaign_id, creator_id: creator_id });
12832
+ };
12833
+ Campaigns.reRankSourcedCreators = function (campaign_id, data) {
12834
+ return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id: campaign_id });
12835
+ };
12824
12836
  return Campaigns;
12825
12837
  }());
12826
12838
 
@@ -14031,6 +14043,7 @@ var SchedulerRoute = /** @class */ (function () {
14031
14043
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
14032
14044
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
14033
14045
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
14046
+ getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
14034
14047
  };
14035
14048
  return SchedulerRoute;
14036
14049
  }());
@@ -14684,6 +14697,19 @@ var Scheduler = /** @class */ (function () {
14684
14697
  Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
14685
14698
  return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
14686
14699
  };
14700
+ /**
14701
+ * Get ad conversion actions for a specific platform linked to the scheduler.
14702
+ *
14703
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
14704
+ *
14705
+ * @param scheduler_id The ID of the promotion schedule.
14706
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
14707
+ *
14708
+ * @returns promise
14709
+ */
14710
+ Scheduler.getConversionActions = function (scheduler_id, params) {
14711
+ return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
14712
+ };
14687
14713
  return Scheduler;
14688
14714
  }());
14689
14715