glitch-javascript-sdk 2.7.6 → 2.7.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 +30 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +10 -0
- package/dist/esm/api/Communities.d.ts +14 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +20 -11
- package/src/api/Communities.ts +20 -0
- package/src/routes/CampaignsRoute.ts +2 -0
- package/src/routes/CommunitiesRoute.ts +6 -3
|
@@ -759,5 +759,15 @@ declare class Campaigns {
|
|
|
759
759
|
static sendOnboarding<T>(campaign_id: string, user_id: string, data?: {
|
|
760
760
|
template_id?: string;
|
|
761
761
|
}): AxiosPromise<Response<T>>;
|
|
762
|
+
/**
|
|
763
|
+
* Bulk invite influencers from a previous campaign into the current one.
|
|
764
|
+
*
|
|
765
|
+
* @param campaign_id The UUID of the target campaign.
|
|
766
|
+
* @param data { source_campaign_id: string, only_successful: boolean }
|
|
767
|
+
*/
|
|
768
|
+
static crossPromote<T>(campaign_id: string, data: {
|
|
769
|
+
source_campaign_id: string;
|
|
770
|
+
only_successful?: boolean;
|
|
771
|
+
}): AxiosPromise<Response<T>>;
|
|
762
772
|
}
|
|
763
773
|
export default Campaigns;
|
|
@@ -664,5 +664,19 @@ declare class Communities {
|
|
|
664
664
|
* List all Stripe invoices for the community.
|
|
665
665
|
*/
|
|
666
666
|
static listInvoices<T>(community_id: string): AxiosPromise<Response<T>>;
|
|
667
|
+
/**
|
|
668
|
+
* List influencers saved to the community's private talent pool.
|
|
669
|
+
*
|
|
670
|
+
* @param community_id The UUID of the community.
|
|
671
|
+
* @param params Optional filters like 'list_name'.
|
|
672
|
+
*/
|
|
673
|
+
static listSavedInfluencers<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
674
|
+
/**
|
|
675
|
+
* Save an influencer to the community's talent pool (Shortlist).
|
|
676
|
+
*
|
|
677
|
+
* @param community_id The UUID of the community.
|
|
678
|
+
* @param data { influencer_id: string, list_name?: string, tags?: string[] }
|
|
679
|
+
*/
|
|
680
|
+
static saveInfluencerToPool<T>(community_id: string, data: object): AxiosPromise<Response<T>>;
|
|
667
681
|
}
|
|
668
682
|
export default Communities;
|
package/dist/esm/index.js
CHANGED
|
@@ -7885,6 +7885,8 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
7885
7885
|
url: '/communities/{community_id}/payment/statement',
|
|
7886
7886
|
method: HTTP_METHODS.GET
|
|
7887
7887
|
},
|
|
7888
|
+
listSavedInfluencers: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.GET },
|
|
7889
|
+
saveInfluencerToPool: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.POST }
|
|
7888
7890
|
};
|
|
7889
7891
|
return CommunitiesRoute;
|
|
7890
7892
|
}());
|
|
@@ -8711,6 +8713,24 @@ var Communities = /** @class */ (function () {
|
|
|
8711
8713
|
Communities.listInvoices = function (community_id) {
|
|
8712
8714
|
return Requests.processRoute(CommunitiesRoute.routes.listInvoices, undefined, { community_id: community_id });
|
|
8713
8715
|
};
|
|
8716
|
+
/**
|
|
8717
|
+
* List influencers saved to the community's private talent pool.
|
|
8718
|
+
*
|
|
8719
|
+
* @param community_id The UUID of the community.
|
|
8720
|
+
* @param params Optional filters like 'list_name'.
|
|
8721
|
+
*/
|
|
8722
|
+
Communities.listSavedInfluencers = function (community_id, params) {
|
|
8723
|
+
return Requests.processRoute(CommunitiesRoute.routes.listSavedInfluencers, undefined, { community_id: community_id }, params);
|
|
8724
|
+
};
|
|
8725
|
+
/**
|
|
8726
|
+
* Save an influencer to the community's talent pool (Shortlist).
|
|
8727
|
+
*
|
|
8728
|
+
* @param community_id The UUID of the community.
|
|
8729
|
+
* @param data { influencer_id: string, list_name?: string, tags?: string[] }
|
|
8730
|
+
*/
|
|
8731
|
+
Communities.saveInfluencerToPool = function (community_id, data) {
|
|
8732
|
+
return Requests.processRoute(CommunitiesRoute.routes.saveInfluencerToPool, data, { community_id: community_id });
|
|
8733
|
+
};
|
|
8714
8734
|
return Communities;
|
|
8715
8735
|
}());
|
|
8716
8736
|
|
|
@@ -12398,6 +12418,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
12398
12418
|
method: HTTP_METHODS.POST
|
|
12399
12419
|
},
|
|
12400
12420
|
sendOnboarding: { url: '/campaigns/{campaign_id}/influencers/{user_id}/onboarding', method: HTTP_METHODS.POST },
|
|
12421
|
+
crossPromote: { url: '/campaigns/{campaign_id}/cross-promote', method: HTTP_METHODS.POST },
|
|
12401
12422
|
};
|
|
12402
12423
|
return CampaignsRoute;
|
|
12403
12424
|
}());
|
|
@@ -13305,6 +13326,15 @@ var Campaigns = /** @class */ (function () {
|
|
|
13305
13326
|
Campaigns.sendOnboarding = function (campaign_id, user_id, data) {
|
|
13306
13327
|
return Requests.processRoute(CampaignsRoute.routes.sendOnboarding, data, { campaign_id: campaign_id, user_id: user_id });
|
|
13307
13328
|
};
|
|
13329
|
+
/**
|
|
13330
|
+
* Bulk invite influencers from a previous campaign into the current one.
|
|
13331
|
+
*
|
|
13332
|
+
* @param campaign_id The UUID of the target campaign.
|
|
13333
|
+
* @param data { source_campaign_id: string, only_successful: boolean }
|
|
13334
|
+
*/
|
|
13335
|
+
Campaigns.crossPromote = function (campaign_id, data) {
|
|
13336
|
+
return Requests.processRoute(CampaignsRoute.routes.crossPromote, data, { campaign_id: campaign_id });
|
|
13337
|
+
};
|
|
13308
13338
|
return Campaigns;
|
|
13309
13339
|
}());
|
|
13310
13340
|
|