glitch-javascript-sdk 1.5.3 → 1.5.4
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 +13 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +10 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +14 -0
- package/src/routes/SocialPostsRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -22542,6 +22542,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
22542
22542
|
deletePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.DELETE },
|
|
22543
22543
|
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
|
|
22544
22544
|
history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
|
|
22545
|
+
progression: { url: '/socialposts/{post_id}/progression', method: HTTP_METHODS.GET },
|
|
22545
22546
|
addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
|
|
22546
22547
|
removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
|
|
22547
22548
|
reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
|
|
@@ -22633,6 +22634,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
22633
22634
|
SocialPosts.history = function (post_id, params) {
|
|
22634
22635
|
return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);
|
|
22635
22636
|
};
|
|
22637
|
+
/**
|
|
22638
|
+
* Get the change progression of a social media post over period of time.
|
|
22639
|
+
*
|
|
22640
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
|
|
22641
|
+
*
|
|
22642
|
+
* @param post_id The id fo the post to retrieve.
|
|
22643
|
+
*
|
|
22644
|
+
* @returns promise
|
|
22645
|
+
*/
|
|
22646
|
+
SocialPosts.progression = function (post_id, params) {
|
|
22647
|
+
return Requests.processRoute(SocialPostsRoute.routes.progression, {}, { post_id: post_id }, params);
|
|
22648
|
+
};
|
|
22636
22649
|
/**
|
|
22637
22650
|
* Add media to a social media post.
|
|
22638
22651
|
*
|