glitch-javascript-sdk 1.1.2 → 1.1.3
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 +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +11 -0
- package/src/routes/CampaignsRoute.ts +2 -1
|
@@ -452,5 +452,13 @@ declare class Campaigns {
|
|
|
452
452
|
* @returns promise
|
|
453
453
|
*/
|
|
454
454
|
static generateContentForInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
455
|
+
/**
|
|
456
|
+
* Get a list of all active campaigns.
|
|
457
|
+
*
|
|
458
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getActiveCampaignLinks
|
|
459
|
+
*
|
|
460
|
+
* @returns promise
|
|
461
|
+
*/
|
|
462
|
+
static getActiveCampaignLinks<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
455
463
|
}
|
|
456
464
|
export default Campaigns;
|
package/dist/esm/index.js
CHANGED
|
@@ -9148,6 +9148,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
9148
9148
|
reviewInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
|
|
9149
9149
|
getRecommendedInfluencers: { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
|
|
9150
9150
|
generateContentForInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
|
|
9151
|
+
getActiveCampaignLinks: { url: '/campaigns/active', method: HTTP_METHODS.GET },
|
|
9151
9152
|
};
|
|
9152
9153
|
return CampaignsRoute;
|
|
9153
9154
|
}());
|
|
@@ -9702,6 +9703,16 @@ var Campaigns = /** @class */ (function () {
|
|
|
9702
9703
|
Campaigns.generateContentForInfluencer = function (campaign_id, user_id, data, params) {
|
|
9703
9704
|
return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
9704
9705
|
};
|
|
9706
|
+
/**
|
|
9707
|
+
* Get a list of all active campaigns.
|
|
9708
|
+
*
|
|
9709
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getActiveCampaignLinks
|
|
9710
|
+
*
|
|
9711
|
+
* @returns promise
|
|
9712
|
+
*/
|
|
9713
|
+
Campaigns.getActiveCampaignLinks = function (params) {
|
|
9714
|
+
return Requests.processRoute(CampaignsRoute.routes.getActiveCampaignLinks, undefined, undefined, params);
|
|
9715
|
+
};
|
|
9705
9716
|
return Campaigns;
|
|
9706
9717
|
}());
|
|
9707
9718
|
|