glitch-javascript-sdk 1.0.5 → 1.0.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 +12 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +9 -1
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
- package/src/api/Campaigns.ts +12 -1
- package/src/routes/CampaignsRoute.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -2457,6 +2457,14 @@ declare class Campaigns {
|
|
|
2457
2457
|
* @returns promise
|
|
2458
2458
|
*/
|
|
2459
2459
|
static getLedger<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
2460
|
+
/**
|
|
2461
|
+
* Retrieve recommended influencers for a campaign.
|
|
2462
|
+
*
|
|
2463
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/recommendInfluencers
|
|
2464
|
+
*
|
|
2465
|
+
* @returns promise
|
|
2466
|
+
*/
|
|
2467
|
+
static getRecommendedInfluencers<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
2460
2468
|
/**
|
|
2461
2469
|
* List all the campaign links.
|
|
2462
2470
|
*
|
|
@@ -2739,7 +2747,7 @@ declare class Campaigns {
|
|
|
2739
2747
|
*
|
|
2740
2748
|
* @returns promise
|
|
2741
2749
|
*/
|
|
2742
|
-
static updateInfluencerInvite<T>(campaign_id: string,
|
|
2750
|
+
static updateInfluencerInvite<T>(campaign_id: string, influencer_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
2743
2751
|
/**
|
|
2744
2752
|
* The route for an influencer to accept an invite.
|
|
2745
2753
|
*
|
package/package.json
CHANGED
package/src/api/Campaigns.ts
CHANGED
|
@@ -83,6 +83,17 @@ class Campaigns {
|
|
|
83
83
|
return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Retrieve recommended influencers for a campaign.
|
|
88
|
+
*
|
|
89
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/recommendInfluencers
|
|
90
|
+
*
|
|
91
|
+
* @returns promise
|
|
92
|
+
*/
|
|
93
|
+
public static getRecommendedInfluencers<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
94
|
+
return Requests.processRoute(CampaignsRoute.routes.getRecommendedInfluencers, undefined, { campaign_id: campaign_id }, params);
|
|
95
|
+
}
|
|
96
|
+
|
|
86
97
|
|
|
87
98
|
/**
|
|
88
99
|
* List all the campaign links.
|
|
@@ -482,7 +493,7 @@ class Campaigns {
|
|
|
482
493
|
*
|
|
483
494
|
* @returns promise
|
|
484
495
|
*/
|
|
485
|
-
public static updateInfluencerInvite<T>(campaign_id: string,
|
|
496
|
+
public static updateInfluencerInvite<T>(campaign_id: string,influencer_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
486
497
|
|
|
487
498
|
|
|
488
499
|
return Requests.processRoute(CampaignsRoute.routes.updateInfluencerInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
|
|
@@ -45,7 +45,8 @@ class CampaignsRoute {
|
|
|
45
45
|
widthdrawInfluencerInvite : { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/withdraw', method: HTTP_METHODS.POST },
|
|
46
46
|
acceptInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/accept', method: HTTP_METHODS.POST },
|
|
47
47
|
declineInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
|
|
48
|
-
reviewInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
|
|
48
|
+
reviewInfluencerRequest : { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
|
|
49
|
+
getRecommendedInfluencers : { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
}
|