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.
@@ -610,5 +610,16 @@ declare class Campaigns {
610
610
  static assignKeyToInfluencer<T>(campaign_id: string, user_id: string, data: {
611
611
  platform: string;
612
612
  }, params?: Record<string, any>): AxiosPromise<Response<T>>;
613
+ /**
614
+ * Manually trigger a real-time profile enrichment for a sourced creator.
615
+ * This synchronously scrapes and parses social media profiles to enrich the creator's data and returns the updated record.
616
+ *
617
+ * @see https://api.glitch.fun/api/documentation#/Campaigns%20Sourcing/enrichSourcedCreator
618
+ *
619
+ * @param campaign_id The UUID of the campaign.
620
+ * @param sourced_creator_id The UUID of the sourced creator to enrich.
621
+ * @returns promise containing the fully enriched SourcedCreator object.
622
+ */
623
+ static enrichSourcedCreator<T>(campaign_id: string, sourced_creator_id: string): AxiosPromise<Response<T>>;
613
624
  }
614
625
  export default Campaigns;
package/dist/esm/index.js CHANGED
@@ -11717,6 +11717,7 @@ var CampaignsRoute = /** @class */ (function () {
11717
11717
  getSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.GET },
11718
11718
  updateSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.PUT },
11719
11719
  assignKeyToInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/assign-key', method: HTTP_METHODS.POST },
11720
+ enrichSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}/enrich', method: HTTP_METHODS.POST },
11720
11721
  };
11721
11722
  return CampaignsRoute;
11722
11723
  }());
@@ -12463,6 +12464,19 @@ var Campaigns = /** @class */ (function () {
12463
12464
  Campaigns.assignKeyToInfluencer = function (campaign_id, user_id, data, params) {
12464
12465
  return Requests.processRoute(CampaignsRoute.routes.assignKeyToInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
12465
12466
  };
12467
+ /**
12468
+ * Manually trigger a real-time profile enrichment for a sourced creator.
12469
+ * This synchronously scrapes and parses social media profiles to enrich the creator's data and returns the updated record.
12470
+ *
12471
+ * @see https://api.glitch.fun/api/documentation#/Campaigns%20Sourcing/enrichSourcedCreator
12472
+ *
12473
+ * @param campaign_id The UUID of the campaign.
12474
+ * @param sourced_creator_id The UUID of the sourced creator to enrich.
12475
+ * @returns promise containing the fully enriched SourcedCreator object.
12476
+ */
12477
+ Campaigns.enrichSourcedCreator = function (campaign_id, sourced_creator_id) {
12478
+ return Requests.processRoute(CampaignsRoute.routes.enrichSourcedCreator, {}, { campaign_id: campaign_id, sourced_creator_id: sourced_creator_id });
12479
+ };
12466
12480
  return Campaigns;
12467
12481
  }());
12468
12482