glitch-javascript-sdk 1.0.8 → 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 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