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 +15 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +12 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Scheduler.ts +15 -0
- package/src/routes/SchedulerRoute.ts +1 -0
|
@@ -126,6 +126,18 @@ declare class Scheduler {
|
|
|
126
126
|
* @returns promise
|
|
127
127
|
*/
|
|
128
128
|
static deleteUpdate<T>(scheduler_id: string, update_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
129
|
+
/**
|
|
130
|
+
* Schedule title update.
|
|
131
|
+
*
|
|
132
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitleUpdate
|
|
133
|
+
*
|
|
134
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
135
|
+
* @param update_id The ID of the title update.
|
|
136
|
+
* @param data The data to update.
|
|
137
|
+
*
|
|
138
|
+
* @returns promise
|
|
139
|
+
*/
|
|
140
|
+
static scheduleUpdate<T>(scheduler_id: string, update_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
129
141
|
/**
|
|
130
142
|
* Clear Twitter OAuth credentials from a promotion schedule.
|
|
131
143
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -11346,6 +11346,7 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
11346
11346
|
getUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.GET },
|
|
11347
11347
|
updateUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.PUT },
|
|
11348
11348
|
deleteUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.DELETE },
|
|
11349
|
+
scheduleUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}/schedule', method: HTTP_METHODS.POST },
|
|
11349
11350
|
testTone: { url: '/schedulers/{scheduler_id}/tone', method: HTTP_METHODS.POST },
|
|
11350
11351
|
getSchedulerReports: { url: '/schedulers/{scheduler_id}/reports', method: HTTP_METHODS.GET },
|
|
11351
11352
|
getSchedulerProgression: { url: '/schedulers/{scheduler_id}/progression', method: HTTP_METHODS.GET },
|
|
@@ -11526,6 +11527,20 @@ var Scheduler = /** @class */ (function () {
|
|
|
11526
11527
|
Scheduler.deleteUpdate = function (scheduler_id, update_id, params) {
|
|
11527
11528
|
return Requests.processRoute(SchedulerRoute.routes.deleteUpdate, {}, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
11528
11529
|
};
|
|
11530
|
+
/**
|
|
11531
|
+
* Schedule title update.
|
|
11532
|
+
*
|
|
11533
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitleUpdate
|
|
11534
|
+
*
|
|
11535
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11536
|
+
* @param update_id The ID of the title update.
|
|
11537
|
+
* @param data The data to update.
|
|
11538
|
+
*
|
|
11539
|
+
* @returns promise
|
|
11540
|
+
*/
|
|
11541
|
+
Scheduler.scheduleUpdate = function (scheduler_id, update_id, data, params) {
|
|
11542
|
+
return Requests.processRoute(SchedulerRoute.routes.scheduleUpdate, data, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
11543
|
+
};
|
|
11529
11544
|
/**
|
|
11530
11545
|
* Clear Twitter OAuth credentials from a promotion schedule.
|
|
11531
11546
|
*
|