glitch-javascript-sdk 1.0.7 → 1.0.9
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 +26 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +10 -0
- package/dist/esm/api/SocialPosts.d.ts +10 -0
- package/dist/esm/index.js +26 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +14 -0
- package/src/api/SocialPosts.ts +14 -0
- package/src/routes/CampaignsRoute.ts +2 -1
- package/src/routes/SocialPostsRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -22016,6 +22016,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
22016
22016
|
getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
|
|
22017
22017
|
createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
|
|
22018
22018
|
retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
|
|
22019
|
+
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
|
|
22019
22020
|
};
|
|
22020
22021
|
return SocialPostsRoute;
|
|
22021
22022
|
}());
|
|
@@ -22055,6 +22056,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
22055
22056
|
SocialPosts.view = function (post_id, params) {
|
|
22056
22057
|
return Requests.processRoute(SocialPostsRoute.routes.retrievePost, {}, { post_id: post_id }, params);
|
|
22057
22058
|
};
|
|
22059
|
+
/**
|
|
22060
|
+
* Dispute a post as being fraudulent.,s
|
|
22061
|
+
*
|
|
22062
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
|
|
22063
|
+
*
|
|
22064
|
+
* @param post_id The id fo the post to retrieve.
|
|
22065
|
+
*
|
|
22066
|
+
* @returns promise
|
|
22067
|
+
*/
|
|
22068
|
+
SocialPosts.dispute = function (post_id, data, params) {
|
|
22069
|
+
return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
|
|
22070
|
+
};
|
|
22058
22071
|
return SocialPosts;
|
|
22059
22072
|
}());
|
|
22060
22073
|
|
|
@@ -22293,6 +22306,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
22293
22306
|
declineInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
|
|
22294
22307
|
reviewInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
|
|
22295
22308
|
getRecommendedInfluencers: { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
|
|
22309
|
+
generateContentForInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
|
|
22296
22310
|
};
|
|
22297
22311
|
return CampaignsRoute;
|
|
22298
22312
|
}());
|
|
@@ -22803,6 +22817,18 @@ var Campaigns = /** @class */ (function () {
|
|
|
22803
22817
|
Campaigns.reviewInfluencerRequest = function (campaign_id, user_id, data, params) {
|
|
22804
22818
|
return Requests.processRoute(CampaignsRoute.routes.reviewInfluencerRequest, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
22805
22819
|
};
|
|
22820
|
+
/**
|
|
22821
|
+
* Generate post content for the influencer to help them with their content creation.
|
|
22822
|
+
*
|
|
22823
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
|
|
22824
|
+
*
|
|
22825
|
+
* @param campaign_id The id fo the campaign to retrieve.
|
|
22826
|
+
*
|
|
22827
|
+
* @returns promise
|
|
22828
|
+
*/
|
|
22829
|
+
Campaigns.generateContentForInfluencer = function (campaign_id, user_id, data, params) {
|
|
22830
|
+
return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
22831
|
+
};
|
|
22806
22832
|
return Campaigns;
|
|
22807
22833
|
}());
|
|
22808
22834
|
|