New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

glitch-javascript-sdk

Package Overview
Dependencies
Maintainers
0
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glitch-javascript-sdk - npm Package Compare versions

Comparing version 1.4.9 to 1.5.0

9

dist/esm/api/SocialPosts.d.ts

@@ -41,2 +41,11 @@ import Response from "../util/Response";

/**
* Deletes a post.
*
* @see https://api.glitch.fun/api/documentation#/Post%20Route/destoryPostStorage
*
* @param post_id The id of the post to delete.
* @returns promise
*/
static delete<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
/**
* Dispute a post as being fraudulent.,s

@@ -43,0 +52,0 @@ *

2

package.json
{
"name": "glitch-javascript-sdk",
"version": "1.4.9",
"version": "1.5.0",
"description": "Javascript SDK for Glitch",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -26,3 +26,3 @@ import SocialPostsRoute from "../routes/SocialPostsRoute";

*/
public static create<T>(data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
public static create<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
return Requests.processRoute(SocialPostsRoute.routes.createPost, data, {}, params);

@@ -54,3 +54,3 @@ }

*/
public static update<T>(post_id: string, data? : object, params?: Record<string, any>): AxiosPromise<Response<T>> {
public static update<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {

@@ -60,27 +60,41 @@ return Requests.processRoute(SocialPostsRoute.routes.updatePost, data, { post_id: post_id }, params);

/**
* Dispute a post as being fraudulent.,s
/**
* Deletes a post.
*
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
* @see https://api.glitch.fun/api/documentation#/Post%20Route/destoryPostStorage
*
* @param post_id The id fo the post to retrieve.
*
* @param post_id The id of the post to delete.
* @returns promise
*/
public static dispute<T>(post_id: string, data? : object, params?: Record<string, any>): AxiosPromise<Response<T>> {
public static delete<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
return Requests.processRoute(SocialPostsRoute.routes.deletePost, {}, { post_id: post_id }, params);
}
/**
* Dispute a post as being fraudulent.,s
*
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost
*
* @param post_id The id fo the post to retrieve.
*
* @returns promise
*/
public static dispute<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
}
/**
* Get the change of the post metrics over a period of time.
*
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
*
* @param post_id The id fo the post to retrieve.
*
* @returns promise
*/
public static history<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
/**
* Get the change of the post metrics over a period of time.
*
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
*
* @param post_id The id fo the post to retrieve.
*
* @returns promise
*/
public static history<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {

@@ -118,24 +132,24 @@ return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);

/**
* Reschedule a post that has failed.
*
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/addMediaToSocialMediaPost
*
* @param post_id The ID of the social media post.
* @param data The data to be sent in the request body.
*
* @returns promise
*/
public static reschedule<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
/**
* Reschedule a post that has failed.
*
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/addMediaToSocialMediaPost
*
* @param post_id The ID of the social media post.
* @param data The data to be sent in the request body.
*
* @returns promise
*/
public static reschedule<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
return Requests.processRoute(SocialPostsRoute.routes.reschedule, data, { post_id: post_id }, params);
}
/**
* Get the reports for a social media post
*
* @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
*
* @returns promise
*/
public static reports<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
/**
* Get the reports for a social media post
*
* @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
*
* @returns promise
*/
public static reports<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
return Requests.processRoute(SocialPostsRoute.routes.reports, undefined, undefined, params);

@@ -142,0 +156,0 @@ }

@@ -11,2 +11,3 @@ import Route from "./interface";

updatePost : { url: '/socialposts/{post_id}', method: HTTP_METHODS.PUT },
deletePost : { url: '/socialposts/{post_id}', method: HTTP_METHODS.DELETE },
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },

@@ -13,0 +14,0 @@ history : { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc