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
|
@@ -685,5 +685,17 @@ declare class Campaigns {
|
|
|
685
685
|
static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
686
686
|
static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>>;
|
|
687
687
|
static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
688
|
+
/**
|
|
689
|
+
* Queue multiple sourced creators for profile enrichment.
|
|
690
|
+
* This dispatches a background job for each creator to find their social media profiles and contact information.
|
|
691
|
+
*
|
|
692
|
+
* @param campaign_id The UUID of the campaign.
|
|
693
|
+
* @param data An object containing the array of SourcedCreator IDs to enrich.
|
|
694
|
+
* @param data.creator_ids An array of SourcedCreator UUIDs.
|
|
695
|
+
* @returns A promise that resolves with a confirmation message and the count of queued jobs.
|
|
696
|
+
*/
|
|
697
|
+
static bulkEnrichSourcedCreators<T>(campaign_id: string, data: {
|
|
698
|
+
creator_ids: string[];
|
|
699
|
+
}): AxiosPromise<Response<T>>;
|
|
688
700
|
}
|
|
689
701
|
export default Campaigns;
|
package/dist/esm/index.js
CHANGED
|
@@ -12000,6 +12000,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
12000
12000
|
updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
|
|
12001
12001
|
updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
|
|
12002
12002
|
reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
|
|
12003
|
+
bulkEnrichSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/bulk-enrich', method: HTTP_METHODS.POST },
|
|
12003
12004
|
};
|
|
12004
12005
|
return CampaignsRoute;
|
|
12005
12006
|
}());
|
|
@@ -12833,6 +12834,18 @@ var Campaigns = /** @class */ (function () {
|
|
|
12833
12834
|
Campaigns.reRankSourcedCreators = function (campaign_id, data) {
|
|
12834
12835
|
return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id: campaign_id });
|
|
12835
12836
|
};
|
|
12837
|
+
/**
|
|
12838
|
+
* Queue multiple sourced creators for profile enrichment.
|
|
12839
|
+
* This dispatches a background job for each creator to find their social media profiles and contact information.
|
|
12840
|
+
*
|
|
12841
|
+
* @param campaign_id The UUID of the campaign.
|
|
12842
|
+
* @param data An object containing the array of SourcedCreator IDs to enrich.
|
|
12843
|
+
* @param data.creator_ids An array of SourcedCreator UUIDs.
|
|
12844
|
+
* @returns A promise that resolves with a confirmation message and the count of queued jobs.
|
|
12845
|
+
*/
|
|
12846
|
+
Campaigns.bulkEnrichSourcedCreators = function (campaign_id, data) {
|
|
12847
|
+
return Requests.processRoute(CampaignsRoute.routes.bulkEnrichSourcedCreators, data, { campaign_id: campaign_id });
|
|
12848
|
+
};
|
|
12836
12849
|
return Campaigns;
|
|
12837
12850
|
}());
|
|
12838
12851
|
|