glitch-javascript-sdk 1.5.4 → 1.5.6

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.
@@ -75,7 +75,7 @@ declare class SocialPosts {
75
75
  *
76
76
  * @returns promise
77
77
  */
78
- static progression<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
78
+ static progression<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
79
79
  /**
80
80
  * Add media to a social media post.
81
81
  *
@@ -141,5 +141,9 @@ declare class Titles {
141
141
  * Remove media from a title.
142
142
  */
143
143
  static removeMedia<T>(title_id: string, media_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
144
+ static updateMediaOrder<T>(title_id: string, media_order: {
145
+ media_id: string;
146
+ order: number;
147
+ }[]): AxiosPromise<Response<T>>;
144
148
  }
145
149
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -9358,7 +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
+ progression: { url: '/socialposts/progression', method: HTTP_METHODS.GET },
9362
9362
  addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
9363
9363
  removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
9364
9364
  reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
@@ -9459,8 +9459,8 @@ var SocialPosts = /** @class */ (function () {
9459
9459
  *
9460
9460
  * @returns promise
9461
9461
  */
9462
- SocialPosts.progression = function (post_id, params) {
9463
- return Requests.processRoute(SocialPostsRoute.routes.progression, {}, { post_id: post_id }, params);
9462
+ SocialPosts.progression = function (params) {
9463
+ return Requests.processRoute(SocialPostsRoute.routes.progression, {}, {}, params);
9464
9464
  };
9465
9465
  /**
9466
9466
  * Add media to a social media post.
@@ -9543,6 +9543,7 @@ var TitlesRoute = /** @class */ (function () {
9543
9543
  removeAdministrator: { url: '/titles/{title_id}/removeAdministrator/{user_id}', method: HTTP_METHODS.DELETE },
9544
9544
  addMedia: { url: '/titles/{title_id}/addMedia', method: HTTP_METHODS.POST },
9545
9545
  removeMedia: { url: '/titles/{title_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
9546
+ updateMediaOrder: { url: '/titles/{title_id}/updateMediaOrder', method: HTTP_METHODS.POST },
9546
9547
  };
9547
9548
  return TitlesRoute;
9548
9549
  }());
@@ -9724,6 +9725,9 @@ var Titles = /** @class */ (function () {
9724
9725
  Titles.removeMedia = function (title_id, media_id, params) {
9725
9726
  return Requests.processRoute(TitlesRoute.routes.removeMedia, {}, { title_id: title_id, media_id: media_id }, params);
9726
9727
  };
9728
+ Titles.updateMediaOrder = function (title_id, media_order) {
9729
+ return Requests.processRoute(TitlesRoute.routes.updateMediaOrder, { media_order: media_order }, { title_id: title_id });
9730
+ };
9727
9731
  return Titles;
9728
9732
  }());
9729
9733