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/cjs/index.js CHANGED
@@ -25181,6 +25181,9 @@ var CampaignsRoute = /** @class */ (function () {
25181
25181
  sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
25182
25182
  sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
25183
25183
  updateAutoInviteCriteria: { url: '/campaigns/{campaign_id}/sourcing/auto-invite-criteria', method: HTTP_METHODS.PUT },
25184
+ updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
25185
+ updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
25186
+ reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
25184
25187
  };
25185
25188
  return CampaignsRoute;
25186
25189
  }());
@@ -26005,6 +26008,15 @@ var Campaigns = /** @class */ (function () {
26005
26008
  Campaigns.updateAutoInviteCriteria = function (campaign_id, data) {
26006
26009
  return Requests.processRoute(CampaignsRoute.routes.updateAutoInviteCriteria, data, { campaign_id: campaign_id });
26007
26010
  };
26011
+ Campaigns.updateCustomRanking = function (campaign_id, data) {
26012
+ return Requests.processRoute(CampaignsRoute.routes.updateCustomRanking, data, { campaign_id: campaign_id });
26013
+ };
26014
+ Campaigns.updateCreatorBucket = function (campaign_id, creator_id, data) {
26015
+ return Requests.processRoute(CampaignsRoute.routes.updateCreatorBucket, data, { campaign_id: campaign_id, creator_id: creator_id });
26016
+ };
26017
+ Campaigns.reRankSourcedCreators = function (campaign_id, data) {
26018
+ return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id: campaign_id });
26019
+ };
26008
26020
  return Campaigns;
26009
26021
  }());
26010
26022
 
@@ -27215,6 +27227,7 @@ var SchedulerRoute = /** @class */ (function () {
27215
27227
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
27216
27228
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
27217
27229
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
27230
+ getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
27218
27231
  };
27219
27232
  return SchedulerRoute;
27220
27233
  }());
@@ -27868,6 +27881,19 @@ var Scheduler = /** @class */ (function () {
27868
27881
  Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
27869
27882
  return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
27870
27883
  };
27884
+ /**
27885
+ * Get ad conversion actions for a specific platform linked to the scheduler.
27886
+ *
27887
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
27888
+ *
27889
+ * @param scheduler_id The ID of the promotion schedule.
27890
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
27891
+ *
27892
+ * @returns promise
27893
+ */
27894
+ Scheduler.getConversionActions = function (scheduler_id, params) {
27895
+ return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
27896
+ };
27871
27897
  return Scheduler;
27872
27898
  }());
27873
27899