glitch-javascript-sdk 1.5.0 → 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
@@ -24530,6 +24530,7 @@ var SchedulerRoute = /** @class */ (function () {
24530
24530
  getUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.GET },
24531
24531
  updateUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.PUT },
24532
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 },
24533
24534
  testTone: { url: '/schedulers/{scheduler_id}/tone', method: HTTP_METHODS.POST },
24534
24535
  getSchedulerReports: { url: '/schedulers/{scheduler_id}/reports', method: HTTP_METHODS.GET },
24535
24536
  getSchedulerProgression: { url: '/schedulers/{scheduler_id}/progression', method: HTTP_METHODS.GET },
@@ -24710,6 +24711,20 @@ var Scheduler = /** @class */ (function () {
24710
24711
  Scheduler.deleteUpdate = function (scheduler_id, update_id, params) {
24711
24712
  return Requests.processRoute(SchedulerRoute.routes.deleteUpdate, {}, { scheduler_id: scheduler_id, update_id: update_id }, params);
24712
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
+ };
24713
24728
  /**
24714
24729
  * Clear Twitter OAuth credentials from a promotion schedule.
24715
24730
  *