glitch-javascript-sdk 2.3.5 → 2.3.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 +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.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/SocialPosts.ts +11 -0
- package/src/routes/SocialPostsRoute.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24135,6 +24135,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
24135
24135
|
getSocialPostAttributionReport: { url: '/reports/fingerprinting/social-post-attribution', method: HTTP_METHODS.GET },
|
|
24136
24136
|
getLinkSummary: { url: '/socialposts/{post_id}/link-summary', method: HTTP_METHODS.GET },
|
|
24137
24137
|
syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
24138
|
+
performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
|
|
24138
24139
|
};
|
|
24139
24140
|
return SocialPostsRoute;
|
|
24140
24141
|
}());
|
|
@@ -24440,6 +24441,16 @@ var SocialPosts = /** @class */ (function () {
|
|
|
24440
24441
|
SocialPosts.syncHistory = function (platform, params) {
|
|
24441
24442
|
return Requests.processRoute(SocialPostsRoute.routes.syncHistory, {}, { platform: platform }, params);
|
|
24442
24443
|
};
|
|
24444
|
+
/**
|
|
24445
|
+
* Perform a social action (Like, Repost, Vote) on a post.
|
|
24446
|
+
*
|
|
24447
|
+
* @param post_id The ID of the social media post.
|
|
24448
|
+
* @param action The action to perform.
|
|
24449
|
+
* @returns promise
|
|
24450
|
+
*/
|
|
24451
|
+
SocialPosts.performAction = function (post_id, action) {
|
|
24452
|
+
return Requests.processRoute(SocialPostsRoute.routes.performAction, { action: action }, { post_id: post_id });
|
|
24453
|
+
};
|
|
24443
24454
|
return SocialPosts;
|
|
24444
24455
|
}());
|
|
24445
24456
|
|