glitch-javascript-sdk 1.4.9 → 1.5.1

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
@@ -22539,6 +22539,7 @@ var SocialPostsRoute = /** @class */ (function () {
22539
22539
  createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
22540
22540
  retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
22541
22541
  updatePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.PUT },
22542
+ deletePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.DELETE },
22542
22543
  dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
22543
22544
  history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
22544
22545
  addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
@@ -22596,6 +22597,17 @@ var SocialPosts = /** @class */ (function () {
22596
22597
  SocialPosts.update = function (post_id, data, params) {
22597
22598
  return Requests.processRoute(SocialPostsRoute.routes.updatePost, data, { post_id: post_id }, params);
22598
22599
  };
22600
+ /**
22601
+ * Deletes a post.
22602
+ *
22603
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/destoryPostStorage
22604
+ *
22605
+ * @param post_id The id of the post to delete.
22606
+ * @returns promise
22607
+ */
22608
+ SocialPosts.delete = function (post_id, params) {
22609
+ return Requests.processRoute(SocialPostsRoute.routes.deletePost, {}, { post_id: post_id }, params);
22610
+ };
22599
22611
  /**
22600
22612
  * Dispute a post as being fraudulent.,s
22601
22613
  *
@@ -24518,6 +24530,7 @@ var SchedulerRoute = /** @class */ (function () {
24518
24530
  getUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.GET },
24519
24531
  updateUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.PUT },
24520
24532
  deleteUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.DELETE },
24533
+ scheduleUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}/schedule', method: HTTP_METHODS.POST },
24521
24534
  testTone: { url: '/schedulers/{scheduler_id}/tone', method: HTTP_METHODS.POST },
24522
24535
  getSchedulerReports: { url: '/schedulers/{scheduler_id}/reports', method: HTTP_METHODS.GET },
24523
24536
  getSchedulerProgression: { url: '/schedulers/{scheduler_id}/progression', method: HTTP_METHODS.GET },
@@ -24698,6 +24711,20 @@ var Scheduler = /** @class */ (function () {
24698
24711
  Scheduler.deleteUpdate = function (scheduler_id, update_id, params) {
24699
24712
  return Requests.processRoute(SchedulerRoute.routes.deleteUpdate, {}, { scheduler_id: scheduler_id, update_id: update_id }, params);
24700
24713
  };
24714
+ /**
24715
+ * Schedule title update.
24716
+ *
24717
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitleUpdate
24718
+ *
24719
+ * @param scheduler_id The ID of the promotion schedule.
24720
+ * @param update_id The ID of the title update.
24721
+ * @param data The data to update.
24722
+ *
24723
+ * @returns promise
24724
+ */
24725
+ Scheduler.scheduleUpdate = function (scheduler_id, update_id, data, params) {
24726
+ return Requests.processRoute(SchedulerRoute.routes.scheduleUpdate, data, { scheduler_id: scheduler_id, update_id: update_id }, params);
24727
+ };
24701
24728
  /**
24702
24729
  * Clear Twitter OAuth credentials from a promotion schedule.
24703
24730
  *