glitch-javascript-sdk 1.1.6 → 1.1.7

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
@@ -22063,6 +22063,7 @@ var SocialPostsRoute = /** @class */ (function () {
22063
22063
  createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
22064
22064
  retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
22065
22065
  dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
22066
+ history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
22066
22067
  };
22067
22068
  return SocialPostsRoute;
22068
22069
  }());
@@ -22114,6 +22115,18 @@ var SocialPosts = /** @class */ (function () {
22114
22115
  SocialPosts.dispute = function (post_id, data, params) {
22115
22116
  return Requests.processRoute(SocialPostsRoute.routes.dispute, data, { post_id: post_id }, params);
22116
22117
  };
22118
+ /**
22119
+ * Get the change of the post metrics over a period of time.
22120
+ *
22121
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
22122
+ *
22123
+ * @param post_id The id fo the post to retrieve.
22124
+ *
22125
+ * @returns promise
22126
+ */
22127
+ SocialPosts.history = function (post_id, params) {
22128
+ return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);
22129
+ };
22117
22130
  return SocialPosts;
22118
22131
  }());
22119
22132