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/index.d.ts CHANGED
@@ -4101,6 +4101,18 @@ declare class Scheduler {
4101
4101
  * @returns promise
4102
4102
  */
4103
4103
  static deleteUpdate<T>(scheduler_id: string, update_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
4104
+ /**
4105
+ * Schedule title update.
4106
+ *
4107
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitleUpdate
4108
+ *
4109
+ * @param scheduler_id The ID of the promotion schedule.
4110
+ * @param update_id The ID of the title update.
4111
+ * @param data The data to update.
4112
+ *
4113
+ * @returns promise
4114
+ */
4115
+ static scheduleUpdate<T>(scheduler_id: string, update_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
4104
4116
  /**
4105
4117
  * Clear Twitter OAuth credentials from a promotion schedule.
4106
4118
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -165,6 +165,21 @@ class Scheduler {
165
165
  return Requests.processRoute(SchedulerRoute.routes.deleteUpdate, {}, { scheduler_id, update_id }, params);
166
166
  }
167
167
 
168
+ /**
169
+ * Schedule title update.
170
+ *
171
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitleUpdate
172
+ *
173
+ * @param scheduler_id The ID of the promotion schedule.
174
+ * @param update_id The ID of the title update.
175
+ * @param data The data to update.
176
+ *
177
+ * @returns promise
178
+ */
179
+ public static scheduleUpdate<T>(scheduler_id: string, update_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
180
+ return Requests.processRoute(SchedulerRoute.routes.scheduleUpdate, data, { scheduler_id, update_id }, params);
181
+ }
182
+
168
183
  /**
169
184
  * Clear Twitter OAuth credentials from a promotion schedule.
170
185
  *
@@ -17,6 +17,7 @@ class SchedulerRoute {
17
17
  getUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.GET },
18
18
  updateUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.PUT },
19
19
  deleteUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.DELETE },
20
+ scheduleUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}/schedule', method: HTTP_METHODS.POST },
20
21
 
21
22
  testTone: { url: '/schedulers/{scheduler_id}/tone', method: HTTP_METHODS.POST },
22
23
  getSchedulerReports: { url: '/schedulers/{scheduler_id}/reports', method: HTTP_METHODS.GET },