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 +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
|
@@ -27,5 +27,15 @@ declare class SocialPosts {
|
|
|
27
27
|
* @returns promise
|
|
28
28
|
*/
|
|
29
29
|
static view<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
30
|
+
/**
|
|
31
|
+
* Dispute a post as being fraudulent.,s
|
|
32
|
+
*
|
|
33
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
|
|
34
|
+
*
|
|
35
|
+
* @param post_id The id fo the post to retrieve.
|
|
36
|
+
*
|
|
37
|
+
* @returns promise
|
|
38
|
+
*/
|
|
39
|
+
static dispute<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
30
40
|
}
|
|
31
41
|
export default SocialPosts;
|
package/dist/esm/index.js
CHANGED
|
@@ -8832,6 +8832,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
8832
8832
|
getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
|
|
8833
8833
|
createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
|
|
8834
8834
|
retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
|
|
8835
|
+
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
|
|
8835
8836
|
};
|
|
8836
8837
|
return SocialPostsRoute;
|
|
8837
8838
|
}());
|
|
@@ -8871,6 +8872,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
8871
8872
|
SocialPosts.view = function (post_id, params) {
|
|
8872
8873
|
return Requests.processRoute(SocialPostsRoute.routes.retrievePost, {}, { post_id: post_id }, params);
|
|
8873
8874
|
};
|
|
8875
|
+
/**
|
|
8876
|
+
* Dispute a post as being fraudulent.,s
|
|
8877
|
+
*
|
|
8878
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
|
|
8879
|
+
*
|
|
8880
|
+
* @param post_id The id fo the post to retrieve.
|
|
8881
|
+
*
|
|
8882
|
+
* @returns promise
|
|
8883
|
+
*/
|
|
8884
|
+
SocialPosts.dispute = function (post_id, data, params) {
|
|
8885
|
+
return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
|
|
8886
|
+
};
|
|
8874
8887
|
return SocialPosts;
|
|
8875
8888
|
}());
|
|
8876
8889
|
|