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/index.d.ts
CHANGED
|
@@ -4705,6 +4705,18 @@ declare class Campaigns {
|
|
|
4705
4705
|
static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4706
4706
|
static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4707
4707
|
static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4708
|
+
/**
|
|
4709
|
+
* Queue multiple sourced creators for profile enrichment.
|
|
4710
|
+
* This dispatches a background job for each creator to find their social media profiles and contact information.
|
|
4711
|
+
*
|
|
4712
|
+
* @param campaign_id The UUID of the campaign.
|
|
4713
|
+
* @param data An object containing the array of SourcedCreator IDs to enrich.
|
|
4714
|
+
* @param data.creator_ids An array of SourcedCreator UUIDs.
|
|
4715
|
+
* @returns A promise that resolves with a confirmation message and the count of queued jobs.
|
|
4716
|
+
*/
|
|
4717
|
+
static bulkEnrichSourcedCreators<T>(campaign_id: string, data: {
|
|
4718
|
+
creator_ids: string[];
|
|
4719
|
+
}): AxiosPromise<Response<T>>;
|
|
4708
4720
|
}
|
|
4709
4721
|
|
|
4710
4722
|
declare class Subscriptions {
|
package/package.json
CHANGED
package/src/api/Campaigns.ts
CHANGED
|
@@ -960,6 +960,19 @@ class Campaigns {
|
|
|
960
960
|
return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id });
|
|
961
961
|
}
|
|
962
962
|
|
|
963
|
+
/**
|
|
964
|
+
* Queue multiple sourced creators for profile enrichment.
|
|
965
|
+
* This dispatches a background job for each creator to find their social media profiles and contact information.
|
|
966
|
+
*
|
|
967
|
+
* @param campaign_id The UUID of the campaign.
|
|
968
|
+
* @param data An object containing the array of SourcedCreator IDs to enrich.
|
|
969
|
+
* @param data.creator_ids An array of SourcedCreator UUIDs.
|
|
970
|
+
* @returns A promise that resolves with a confirmation message and the count of queued jobs.
|
|
971
|
+
*/
|
|
972
|
+
public static bulkEnrichSourcedCreators<T>(campaign_id: string, data: { creator_ids: string[] }): AxiosPromise<Response<T>> {
|
|
973
|
+
return Requests.processRoute(CampaignsRoute.routes.bulkEnrichSourcedCreators, data, { campaign_id });
|
|
974
|
+
}
|
|
975
|
+
|
|
963
976
|
|
|
964
977
|
}
|
|
965
978
|
|
|
@@ -80,6 +80,8 @@ class CampaignsRoute {
|
|
|
80
80
|
updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
|
|
81
81
|
updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
|
|
82
82
|
reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
|
|
83
|
+
bulkEnrichSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/bulk-enrich', method: HTTP_METHODS.POST },
|
|
84
|
+
|
|
83
85
|
|
|
84
86
|
};
|
|
85
87
|
|