glitch-javascript-sdk 2.0.6 → 2.0.7

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
@@ -24901,6 +24901,7 @@ var CampaignsRoute = /** @class */ (function () {
24901
24901
  getSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.GET },
24902
24902
  updateSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.PUT },
24903
24903
  assignKeyToInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/assign-key', method: HTTP_METHODS.POST },
24904
+ enrichSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}/enrich', method: HTTP_METHODS.POST },
24904
24905
  };
24905
24906
  return CampaignsRoute;
24906
24907
  }());
@@ -25647,6 +25648,19 @@ var Campaigns = /** @class */ (function () {
25647
25648
  Campaigns.assignKeyToInfluencer = function (campaign_id, user_id, data, params) {
25648
25649
  return Requests.processRoute(CampaignsRoute.routes.assignKeyToInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
25649
25650
  };
25651
+ /**
25652
+ * Manually trigger a real-time profile enrichment for a sourced creator.
25653
+ * This synchronously scrapes and parses social media profiles to enrich the creator's data and returns the updated record.
25654
+ *
25655
+ * @see https://api.glitch.fun/api/documentation#/Campaigns%20Sourcing/enrichSourcedCreator
25656
+ *
25657
+ * @param campaign_id The UUID of the campaign.
25658
+ * @param sourced_creator_id The UUID of the sourced creator to enrich.
25659
+ * @returns promise containing the fully enriched SourcedCreator object.
25660
+ */
25661
+ Campaigns.enrichSourcedCreator = function (campaign_id, sourced_creator_id) {
25662
+ return Requests.processRoute(CampaignsRoute.routes.enrichSourcedCreator, {}, { campaign_id: campaign_id, sourced_creator_id: sourced_creator_id });
25663
+ };
25650
25664
  return Campaigns;
25651
25665
  }());
25652
25666