glitch-javascript-sdk 2.2.4 → 2.2.6

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
@@ -25184,6 +25184,7 @@ var CampaignsRoute = /** @class */ (function () {
25184
25184
  updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
25185
25185
  updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
25186
25186
  reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
25187
+ bulkEnrichSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/bulk-enrich', method: HTTP_METHODS.POST },
25187
25188
  };
25188
25189
  return CampaignsRoute;
25189
25190
  }());
@@ -26017,6 +26018,18 @@ var Campaigns = /** @class */ (function () {
26017
26018
  Campaigns.reRankSourcedCreators = function (campaign_id, data) {
26018
26019
  return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id: campaign_id });
26019
26020
  };
26021
+ /**
26022
+ * Queue multiple sourced creators for profile enrichment.
26023
+ * This dispatches a background job for each creator to find their social media profiles and contact information.
26024
+ *
26025
+ * @param campaign_id The UUID of the campaign.
26026
+ * @param data An object containing the array of SourcedCreator IDs to enrich.
26027
+ * @param data.creator_ids An array of SourcedCreator UUIDs.
26028
+ * @returns A promise that resolves with a confirmation message and the count of queued jobs.
26029
+ */
26030
+ Campaigns.bulkEnrichSourcedCreators = function (campaign_id, data) {
26031
+ return Requests.processRoute(CampaignsRoute.routes.bulkEnrichSourcedCreators, data, { campaign_id: campaign_id });
26032
+ };
26020
26033
  return Campaigns;
26021
26034
  }());
26022
26035
 
@@ -27227,6 +27240,7 @@ var SchedulerRoute = /** @class */ (function () {
27227
27240
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
27228
27241
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
27229
27242
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
27243
+ getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
27230
27244
  };
27231
27245
  return SchedulerRoute;
27232
27246
  }());
@@ -27880,6 +27894,19 @@ var Scheduler = /** @class */ (function () {
27880
27894
  Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
27881
27895
  return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
27882
27896
  };
27897
+ /**
27898
+ * Get ad conversion actions for a specific platform linked to the scheduler.
27899
+ *
27900
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
27901
+ *
27902
+ * @param scheduler_id The ID of the promotion schedule.
27903
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
27904
+ *
27905
+ * @returns promise
27906
+ */
27907
+ Scheduler.getConversionActions = function (scheduler_id, params) {
27908
+ return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
27909
+ };
27883
27910
  return Scheduler;
27884
27911
  }());
27885
27912