glitch-javascript-sdk 1.5.3 → 1.5.4

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.
@@ -66,6 +66,16 @@ declare class SocialPosts {
66
66
  * @returns promise
67
67
  */
68
68
  static history<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
69
+ /**
70
+ * Get the change progression of a social media post over period of time.
71
+ *
72
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
73
+ *
74
+ * @param post_id The id fo the post to retrieve.
75
+ *
76
+ * @returns promise
77
+ */
78
+ static progression<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
69
79
  /**
70
80
  * Add media to a social media post.
71
81
  *
package/dist/esm/index.js CHANGED
@@ -9358,6 +9358,7 @@ var SocialPostsRoute = /** @class */ (function () {
9358
9358
  deletePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.DELETE },
9359
9359
  dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
9360
9360
  history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
9361
+ progression: { url: '/socialposts/{post_id}/progression', method: HTTP_METHODS.GET },
9361
9362
  addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
9362
9363
  removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
9363
9364
  reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
@@ -9449,6 +9450,18 @@ var SocialPosts = /** @class */ (function () {
9449
9450
  SocialPosts.history = function (post_id, params) {
9450
9451
  return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);
9451
9452
  };
9453
+ /**
9454
+ * Get the change progression of a social media post over period of time.
9455
+ *
9456
+ * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory
9457
+ *
9458
+ * @param post_id The id fo the post to retrieve.
9459
+ *
9460
+ * @returns promise
9461
+ */
9462
+ SocialPosts.progression = function (post_id, params) {
9463
+ return Requests.processRoute(SocialPostsRoute.routes.progression, {}, { post_id: post_id }, params);
9464
+ };
9452
9465
  /**
9453
9466
  * Add media to a social media post.
9454
9467
  *