glitch-javascript-sdk 1.4.9 → 1.5.0

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 CHANGED
@@ -22539,6 +22539,7 @@ var SocialPostsRoute = /** @class */ (function () {
22539
22539
  createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
22540
22540
  retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
22541
22541
  updatePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.PUT },
22542
+ deletePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.DELETE },
22542
22543
  dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
22543
22544
  history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
22544
22545
  addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
@@ -22596,6 +22597,17 @@ var SocialPosts = /** @class */ (function () {
22596
22597
  SocialPosts.update = function (post_id, data, params) {
22597
22598
  return Requests.processRoute(SocialPostsRoute.routes.updatePost, data, { post_id: post_id }, params);
22598
22599
  };
22600
+ /**
22601
+ * Deletes a post.
22602
+ *
22603
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/destoryPostStorage
22604
+ *
22605
+ * @param post_id The id of the post to delete.
22606
+ * @returns promise
22607
+ */
22608
+ SocialPosts.delete = function (post_id, params) {
22609
+ return Requests.processRoute(SocialPostsRoute.routes.deletePost, {}, { post_id: post_id }, params);
22610
+ };
22599
22611
  /**
22600
22612
  * Dispute a post as being fraudulent.,s
22601
22613
  *