glitch-javascript-sdk 2.2.5 → 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 +13 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +12 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +13 -0
- package/src/routes/CampaignsRoute.ts +2 -0
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
|
|