glitch-javascript-sdk 1.3.4 → 1.3.5
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 +402 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Media.d.ts +37 -0
- package/dist/esm/api/Scheduler.d.ts +217 -0
- package/dist/esm/api/SocialPosts.d.ts +32 -0
- package/dist/esm/api/index.d.ts +4 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +402 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/MediaRoute.d.ts +7 -0
- package/dist/esm/routes/SchedulerRoute.d.ts +7 -0
- package/dist/index.d.ts +284 -0
- package/package.json +1 -1
- package/src/api/Media.ts +49 -0
- package/src/api/Scheduler.ts +296 -0
- package/src/api/SocialPosts.ts +43 -0
- package/src/api/index.ts +5 -1
- package/src/index.ts +5 -1
- package/src/routes/MediaRoute.ts +11 -0
- package/src/routes/SchedulerRoute.ts +39 -0
- package/src/routes/SocialPostsRoute.ts +3 -0
package/dist/esm/index.js
CHANGED
|
@@ -9288,8 +9288,11 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
9288
9288
|
getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
|
|
9289
9289
|
createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
|
|
9290
9290
|
retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
|
|
9291
|
+
updatePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.PUT },
|
|
9291
9292
|
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
|
|
9292
9293
|
history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
|
|
9294
|
+
addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
|
|
9295
|
+
removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
|
|
9293
9296
|
};
|
|
9294
9297
|
return SocialPostsRoute;
|
|
9295
9298
|
}());
|
|
@@ -9329,6 +9332,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
9329
9332
|
SocialPosts.view = function (post_id, params) {
|
|
9330
9333
|
return Requests.processRoute(SocialPostsRoute.routes.retrievePost, {}, { post_id: post_id }, params);
|
|
9331
9334
|
};
|
|
9335
|
+
/**
|
|
9336
|
+
* Update the informationa bout a post, as long as it hasn't been posted.
|
|
9337
|
+
*
|
|
9338
|
+
* @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage
|
|
9339
|
+
*
|
|
9340
|
+
* @param post_id The id fo the post to retrieve.
|
|
9341
|
+
*
|
|
9342
|
+
* @returns promise
|
|
9343
|
+
*/
|
|
9344
|
+
SocialPosts.update = function (post_id, data, params) {
|
|
9345
|
+
return Requests.processRoute(SocialPostsRoute.routes.updatePost, data, { post_id: post_id }, params);
|
|
9346
|
+
};
|
|
9332
9347
|
/**
|
|
9333
9348
|
* Dispute a post as being fraudulent.,s
|
|
9334
9349
|
*
|
|
@@ -9353,6 +9368,32 @@ var SocialPosts = /** @class */ (function () {
|
|
|
9353
9368
|
SocialPosts.history = function (post_id, params) {
|
|
9354
9369
|
return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);
|
|
9355
9370
|
};
|
|
9371
|
+
/**
|
|
9372
|
+
* Add media to a social media post.
|
|
9373
|
+
*
|
|
9374
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/addMediaToSocialMediaPost
|
|
9375
|
+
*
|
|
9376
|
+
* @param post_id The ID of the social media post.
|
|
9377
|
+
* @param data The data to be sent in the request body.
|
|
9378
|
+
*
|
|
9379
|
+
* @returns promise
|
|
9380
|
+
*/
|
|
9381
|
+
SocialPosts.addMedia = function (post_id, data, params) {
|
|
9382
|
+
return Requests.processRoute(SocialPostsRoute.routes.addMedia, data, { post_id: post_id }, params);
|
|
9383
|
+
};
|
|
9384
|
+
/**
|
|
9385
|
+
* Remove media from a social media post.
|
|
9386
|
+
*
|
|
9387
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/removeMediaFromSocialMediaPost
|
|
9388
|
+
*
|
|
9389
|
+
* @param post_id The ID of the social media post.
|
|
9390
|
+
* @param media_id The ID of the media to remove.
|
|
9391
|
+
*
|
|
9392
|
+
* @returns promise
|
|
9393
|
+
*/
|
|
9394
|
+
SocialPosts.removeMedia = function (post_id, media_id, params) {
|
|
9395
|
+
return Requests.processRoute(SocialPostsRoute.routes.removeMedia, {}, { post_id: post_id, media_id: media_id }, params);
|
|
9396
|
+
};
|
|
9356
9397
|
return SocialPosts;
|
|
9357
9398
|
}());
|
|
9358
9399
|
|
|
@@ -11106,6 +11147,364 @@ var PlayTests = /** @class */ (function () {
|
|
|
11106
11147
|
return PlayTests;
|
|
11107
11148
|
}());
|
|
11108
11149
|
|
|
11150
|
+
var MediaRoute = /** @class */ (function () {
|
|
11151
|
+
function MediaRoute() {
|
|
11152
|
+
}
|
|
11153
|
+
MediaRoute.routes = {
|
|
11154
|
+
upload: { url: '/media', method: HTTP_METHODS.POST },
|
|
11155
|
+
getMedia: { url: '/media/{meda_id}', method: HTTP_METHODS.GET },
|
|
11156
|
+
};
|
|
11157
|
+
return MediaRoute;
|
|
11158
|
+
}());
|
|
11159
|
+
|
|
11160
|
+
var Media = /** @class */ (function () {
|
|
11161
|
+
function Media() {
|
|
11162
|
+
}
|
|
11163
|
+
/**
|
|
11164
|
+
* Upload media content using a File object.
|
|
11165
|
+
*
|
|
11166
|
+
* @see https://api.glitch.fun/api/documentation#/Media%20Route/uploadMedia
|
|
11167
|
+
*
|
|
11168
|
+
* @param file The file object to upload.
|
|
11169
|
+
* @param data Any additional data to pass along to the upload.
|
|
11170
|
+
*
|
|
11171
|
+
* @returns promise
|
|
11172
|
+
*/
|
|
11173
|
+
Media.uploadFile = function (file, data, params) {
|
|
11174
|
+
return Requests.uploadFile(MediaRoute.routes.upload.url, 'media', file, data, params);
|
|
11175
|
+
};
|
|
11176
|
+
/**
|
|
11177
|
+
* Upload media content using a Blob.
|
|
11178
|
+
*
|
|
11179
|
+
* @see https://api.glitch.fun/api/documentation#/Media%20Route/uploadMedia
|
|
11180
|
+
*
|
|
11181
|
+
* @param blob The Blob object to upload.
|
|
11182
|
+
* @param data Any additional data to pass along to the upload.
|
|
11183
|
+
*
|
|
11184
|
+
* @returns promise
|
|
11185
|
+
*/
|
|
11186
|
+
Media.uploadBlob = function (blob, data, params) {
|
|
11187
|
+
return Requests.uploadBlob(MediaRoute.routes.upload.url, 'media', blob, data, params);
|
|
11188
|
+
};
|
|
11189
|
+
/**
|
|
11190
|
+
* Get media details.
|
|
11191
|
+
*
|
|
11192
|
+
* @see https://api.glitch.fun/api/documentation#/Media%20Route/getMedia
|
|
11193
|
+
*
|
|
11194
|
+
* @param id The ID of the media item.
|
|
11195
|
+
*
|
|
11196
|
+
* @returns promise
|
|
11197
|
+
*/
|
|
11198
|
+
Media.get = function (media_id, params) {
|
|
11199
|
+
return Requests.processRoute(MediaRoute.routes.getMedia, {}, { media_id: media_id }, params);
|
|
11200
|
+
};
|
|
11201
|
+
return Media;
|
|
11202
|
+
}());
|
|
11203
|
+
|
|
11204
|
+
var SchedulerRoute = /** @class */ (function () {
|
|
11205
|
+
function SchedulerRoute() {
|
|
11206
|
+
}
|
|
11207
|
+
SchedulerRoute.routes = {
|
|
11208
|
+
// Title Promotion Schedule Routes
|
|
11209
|
+
listSchedules: { url: '/schedulers', method: HTTP_METHODS.GET },
|
|
11210
|
+
createSchedule: { url: '/schedulers', method: HTTP_METHODS.POST },
|
|
11211
|
+
getSchedule: { url: '/schedulers/{scheduler_id}', method: HTTP_METHODS.GET },
|
|
11212
|
+
updateSchedule: { url: '/schedulers/{scheduler_id}', method: HTTP_METHODS.PUT },
|
|
11213
|
+
deleteSchedule: { url: '/schedulers/{scheduler_id}', method: HTTP_METHODS.DELETE },
|
|
11214
|
+
getSchedulePosts: { url: '/schedulers/{scheduler_id}/posts', method: HTTP_METHODS.GET },
|
|
11215
|
+
// Title Update Routes
|
|
11216
|
+
listUpdates: { url: '/schedulers/{scheduler_id}/updates', method: HTTP_METHODS.GET },
|
|
11217
|
+
createUpdate: { url: '/schedulers/{scheduler_id}/updates', method: HTTP_METHODS.POST },
|
|
11218
|
+
getUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.GET },
|
|
11219
|
+
updateUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.PUT },
|
|
11220
|
+
deleteUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.DELETE },
|
|
11221
|
+
// Clear OAuth Routes
|
|
11222
|
+
clearTwitterAuth: { url: '/schedulers/{scheduler_id}/clearTwitterAuth', method: HTTP_METHODS.DELETE },
|
|
11223
|
+
clearFacebookAuth: { url: '/schedulers/{scheduler_id}/clearFacebookAuth', method: HTTP_METHODS.DELETE },
|
|
11224
|
+
clearInstagramAuth: { url: '/schedulers/{scheduler_id}/clearInstagramAuth', method: HTTP_METHODS.DELETE },
|
|
11225
|
+
clearSnapchatAuth: { url: '/schedulers/{scheduler_id}/clearSnapchatAuth', method: HTTP_METHODS.DELETE },
|
|
11226
|
+
clearTikTokAuth: { url: '/schedulers/{scheduler_id}/clearTikTokAuth', method: HTTP_METHODS.DELETE },
|
|
11227
|
+
clearTwitchAuth: { url: '/schedulers/{scheduler_id}/clearTwitchAuth', method: HTTP_METHODS.DELETE },
|
|
11228
|
+
clearKickAuth: { url: '/schedulers/{scheduler_id}/clearKickAuth', method: HTTP_METHODS.DELETE },
|
|
11229
|
+
clearRedditAuth: { url: '/schedulers/{scheduler_id}/clearRedditAuth', method: HTTP_METHODS.DELETE },
|
|
11230
|
+
clearYouTubeAuth: { url: '/schedulers/{scheduler_id}/clearYouTubeAuth', method: HTTP_METHODS.DELETE },
|
|
11231
|
+
clearPatreonAuth: { url: '/schedulers/{scheduler_id}/clearPatreonAuth', method: HTTP_METHODS.DELETE },
|
|
11232
|
+
clearPinterestAuth: { url: '/schedulers/{scheduler_id}/clearPinterestAuth', method: HTTP_METHODS.DELETE },
|
|
11233
|
+
clearSteamAuth: { url: '/schedulers/{scheduler_id}/clearSteamAuth', method: HTTP_METHODS.DELETE },
|
|
11234
|
+
clearDiscordAuth: { url: '/schedulers/{scheduler_id}/clearDiscordAuth', method: HTTP_METHODS.DELETE },
|
|
11235
|
+
clearBlueskyAuth: { url: '/schedulers/{scheduler_id}/clearBlueskyAuth', method: HTTP_METHODS.DELETE },
|
|
11236
|
+
};
|
|
11237
|
+
return SchedulerRoute;
|
|
11238
|
+
}());
|
|
11239
|
+
|
|
11240
|
+
var Scheduler = /** @class */ (function () {
|
|
11241
|
+
function Scheduler() {
|
|
11242
|
+
}
|
|
11243
|
+
/**
|
|
11244
|
+
* List promotion schedules.
|
|
11245
|
+
*
|
|
11246
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitlePromotionSchedules
|
|
11247
|
+
*
|
|
11248
|
+
* @returns promise
|
|
11249
|
+
*/
|
|
11250
|
+
Scheduler.listSchedules = function (params) {
|
|
11251
|
+
return Requests.processRoute(SchedulerRoute.routes.listSchedules, {}, {}, params);
|
|
11252
|
+
};
|
|
11253
|
+
/**
|
|
11254
|
+
* Create a new promotion schedule.
|
|
11255
|
+
*
|
|
11256
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/createTitlePromotionSchedule
|
|
11257
|
+
*
|
|
11258
|
+
* @param data The data for the new schedule.
|
|
11259
|
+
*
|
|
11260
|
+
* @returns promise
|
|
11261
|
+
*/
|
|
11262
|
+
Scheduler.createSchedule = function (data, params) {
|
|
11263
|
+
return Requests.processRoute(SchedulerRoute.routes.createSchedule, data, {}, params);
|
|
11264
|
+
};
|
|
11265
|
+
/**
|
|
11266
|
+
* Get a specific promotion schedule.
|
|
11267
|
+
*
|
|
11268
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitlePromotionSchedule
|
|
11269
|
+
*
|
|
11270
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11271
|
+
*
|
|
11272
|
+
* @returns promise
|
|
11273
|
+
*/
|
|
11274
|
+
Scheduler.getSchedule = function (scheduler_id, params) {
|
|
11275
|
+
return Requests.processRoute(SchedulerRoute.routes.getSchedule, {}, { scheduler_id: scheduler_id }, params);
|
|
11276
|
+
};
|
|
11277
|
+
/**
|
|
11278
|
+
* Update a promotion schedule.
|
|
11279
|
+
*
|
|
11280
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitlePromotionSchedule
|
|
11281
|
+
*
|
|
11282
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11283
|
+
* @param data The data to update.
|
|
11284
|
+
*
|
|
11285
|
+
* @returns promise
|
|
11286
|
+
*/
|
|
11287
|
+
Scheduler.updateSchedule = function (scheduler_id, data, params) {
|
|
11288
|
+
return Requests.processRoute(SchedulerRoute.routes.updateSchedule, data, { scheduler_id: scheduler_id }, params);
|
|
11289
|
+
};
|
|
11290
|
+
/**
|
|
11291
|
+
* Delete a promotion schedule.
|
|
11292
|
+
*
|
|
11293
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/deleteTitlePromotionSchedule
|
|
11294
|
+
*
|
|
11295
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11296
|
+
*
|
|
11297
|
+
* @returns promise
|
|
11298
|
+
*/
|
|
11299
|
+
Scheduler.deleteSchedule = function (scheduler_id, params) {
|
|
11300
|
+
return Requests.processRoute(SchedulerRoute.routes.deleteSchedule, {}, { scheduler_id: scheduler_id }, params);
|
|
11301
|
+
};
|
|
11302
|
+
/**
|
|
11303
|
+
* Get social media posts related to a promotion schedule.
|
|
11304
|
+
*
|
|
11305
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getPromotionScheduleSocialPosts
|
|
11306
|
+
*
|
|
11307
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11308
|
+
*
|
|
11309
|
+
* @returns promise
|
|
11310
|
+
*/
|
|
11311
|
+
Scheduler.getSchedulePosts = function (scheduler_id, params) {
|
|
11312
|
+
return Requests.processRoute(SchedulerRoute.routes.getSchedulePosts, {}, { scheduler_id: scheduler_id }, params);
|
|
11313
|
+
};
|
|
11314
|
+
/**
|
|
11315
|
+
* List title updates for a promotion schedule.
|
|
11316
|
+
*
|
|
11317
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitleUpdates
|
|
11318
|
+
*
|
|
11319
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11320
|
+
*
|
|
11321
|
+
* @returns promise
|
|
11322
|
+
*/
|
|
11323
|
+
Scheduler.listUpdates = function (scheduler_id, params) {
|
|
11324
|
+
return Requests.processRoute(SchedulerRoute.routes.listUpdates, {}, { scheduler_id: scheduler_id }, params);
|
|
11325
|
+
};
|
|
11326
|
+
/**
|
|
11327
|
+
* Create a new title update for a promotion schedule.
|
|
11328
|
+
*
|
|
11329
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/createTitleUpdate
|
|
11330
|
+
*
|
|
11331
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11332
|
+
* @param data The data for the new update.
|
|
11333
|
+
*
|
|
11334
|
+
* @returns promise
|
|
11335
|
+
*/
|
|
11336
|
+
Scheduler.createUpdate = function (scheduler_id, data, params) {
|
|
11337
|
+
return Requests.processRoute(SchedulerRoute.routes.createUpdate, data, { scheduler_id: scheduler_id }, params);
|
|
11338
|
+
};
|
|
11339
|
+
/**
|
|
11340
|
+
* Get a specific title update.
|
|
11341
|
+
*
|
|
11342
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitleUpdate
|
|
11343
|
+
*
|
|
11344
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11345
|
+
* @param update_id The ID of the title update.
|
|
11346
|
+
*
|
|
11347
|
+
* @returns promise
|
|
11348
|
+
*/
|
|
11349
|
+
Scheduler.getUpdate = function (scheduler_id, update_id, params) {
|
|
11350
|
+
return Requests.processRoute(SchedulerRoute.routes.getUpdate, {}, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
11351
|
+
};
|
|
11352
|
+
/**
|
|
11353
|
+
* Update a title update.
|
|
11354
|
+
*
|
|
11355
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitleUpdate
|
|
11356
|
+
*
|
|
11357
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11358
|
+
* @param update_id The ID of the title update.
|
|
11359
|
+
* @param data The data to update.
|
|
11360
|
+
*
|
|
11361
|
+
* @returns promise
|
|
11362
|
+
*/
|
|
11363
|
+
Scheduler.updateUpdate = function (scheduler_id, update_id, data, params) {
|
|
11364
|
+
return Requests.processRoute(SchedulerRoute.routes.updateUpdate, data, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
11365
|
+
};
|
|
11366
|
+
/**
|
|
11367
|
+
* Delete a title update.
|
|
11368
|
+
*
|
|
11369
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/deleteTitleUpdate
|
|
11370
|
+
*
|
|
11371
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11372
|
+
* @param update_id The ID of the title update.
|
|
11373
|
+
*
|
|
11374
|
+
* @returns promise
|
|
11375
|
+
*/
|
|
11376
|
+
Scheduler.deleteUpdate = function (scheduler_id, update_id, params) {
|
|
11377
|
+
return Requests.processRoute(SchedulerRoute.routes.deleteUpdate, {}, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
11378
|
+
};
|
|
11379
|
+
/**
|
|
11380
|
+
* Clear Twitter OAuth credentials from a promotion schedule.
|
|
11381
|
+
*
|
|
11382
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11383
|
+
* @returns promise
|
|
11384
|
+
*/
|
|
11385
|
+
Scheduler.clearTwitterAuth = function (scheduler_id, params) {
|
|
11386
|
+
return Requests.processRoute(SchedulerRoute.routes.clearTwitterAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11387
|
+
};
|
|
11388
|
+
/**
|
|
11389
|
+
* Clear Facebook OAuth credentials from a promotion schedule.
|
|
11390
|
+
*
|
|
11391
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11392
|
+
* @returns promise
|
|
11393
|
+
*/
|
|
11394
|
+
Scheduler.clearFacebookAuth = function (scheduler_id, params) {
|
|
11395
|
+
return Requests.processRoute(SchedulerRoute.routes.clearFacebookAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11396
|
+
};
|
|
11397
|
+
/**
|
|
11398
|
+
* Clear Instagram OAuth credentials from a promotion schedule.
|
|
11399
|
+
*
|
|
11400
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11401
|
+
* @returns promise
|
|
11402
|
+
*/
|
|
11403
|
+
Scheduler.clearInstagramAuth = function (scheduler_id, params) {
|
|
11404
|
+
return Requests.processRoute(SchedulerRoute.routes.clearInstagramAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11405
|
+
};
|
|
11406
|
+
/**
|
|
11407
|
+
* Clear Snapchat OAuth credentials from a promotion schedule.
|
|
11408
|
+
*
|
|
11409
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11410
|
+
* @returns promise
|
|
11411
|
+
*/
|
|
11412
|
+
Scheduler.clearSnapchatAuth = function (scheduler_id, params) {
|
|
11413
|
+
return Requests.processRoute(SchedulerRoute.routes.clearSnapchatAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11414
|
+
};
|
|
11415
|
+
/**
|
|
11416
|
+
* Clear TikTok OAuth credentials from a promotion schedule.
|
|
11417
|
+
*
|
|
11418
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11419
|
+
* @returns promise
|
|
11420
|
+
*/
|
|
11421
|
+
Scheduler.clearTikTokAuth = function (scheduler_id, params) {
|
|
11422
|
+
return Requests.processRoute(SchedulerRoute.routes.clearTikTokAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11423
|
+
};
|
|
11424
|
+
/**
|
|
11425
|
+
* Clear Twitch OAuth credentials from a promotion schedule.
|
|
11426
|
+
*
|
|
11427
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11428
|
+
* @returns promise
|
|
11429
|
+
*/
|
|
11430
|
+
Scheduler.clearTwitchAuth = function (scheduler_id, params) {
|
|
11431
|
+
return Requests.processRoute(SchedulerRoute.routes.clearTwitchAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11432
|
+
};
|
|
11433
|
+
/**
|
|
11434
|
+
* Clear Kick OAuth credentials from a promotion schedule.
|
|
11435
|
+
*
|
|
11436
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11437
|
+
* @returns promise
|
|
11438
|
+
*/
|
|
11439
|
+
Scheduler.clearKickAuth = function (scheduler_id, params) {
|
|
11440
|
+
return Requests.processRoute(SchedulerRoute.routes.clearKickAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11441
|
+
};
|
|
11442
|
+
/**
|
|
11443
|
+
* Clear Reddit OAuth credentials from a promotion schedule.
|
|
11444
|
+
*
|
|
11445
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11446
|
+
* @returns promise
|
|
11447
|
+
*/
|
|
11448
|
+
Scheduler.clearRedditAuth = function (scheduler_id, params) {
|
|
11449
|
+
return Requests.processRoute(SchedulerRoute.routes.clearRedditAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11450
|
+
};
|
|
11451
|
+
/**
|
|
11452
|
+
* Clear YouTube OAuth credentials from a promotion schedule.
|
|
11453
|
+
*
|
|
11454
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11455
|
+
* @returns promise
|
|
11456
|
+
*/
|
|
11457
|
+
Scheduler.clearYouTubeAuth = function (scheduler_id, params) {
|
|
11458
|
+
return Requests.processRoute(SchedulerRoute.routes.clearYouTubeAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11459
|
+
};
|
|
11460
|
+
/**
|
|
11461
|
+
* Clear Patreon OAuth credentials from a promotion schedule.
|
|
11462
|
+
*
|
|
11463
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11464
|
+
* @returns promise
|
|
11465
|
+
*/
|
|
11466
|
+
Scheduler.clearPatreonAuth = function (scheduler_id, params) {
|
|
11467
|
+
return Requests.processRoute(SchedulerRoute.routes.clearPatreonAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11468
|
+
};
|
|
11469
|
+
/**
|
|
11470
|
+
* Clear Pinterest OAuth credentials from a promotion schedule.
|
|
11471
|
+
*
|
|
11472
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11473
|
+
* @returns promise
|
|
11474
|
+
*/
|
|
11475
|
+
Scheduler.clearPinterestAuth = function (scheduler_id, params) {
|
|
11476
|
+
return Requests.processRoute(SchedulerRoute.routes.clearPinterestAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11477
|
+
};
|
|
11478
|
+
/**
|
|
11479
|
+
* Clear Steam OAuth credentials from a promotion schedule.
|
|
11480
|
+
*
|
|
11481
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11482
|
+
* @returns promise
|
|
11483
|
+
*/
|
|
11484
|
+
Scheduler.clearSteamAuth = function (scheduler_id, params) {
|
|
11485
|
+
return Requests.processRoute(SchedulerRoute.routes.clearSteamAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11486
|
+
};
|
|
11487
|
+
/**
|
|
11488
|
+
* Clear Discord OAuth credentials from a promotion schedule.
|
|
11489
|
+
*
|
|
11490
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11491
|
+
* @returns promise
|
|
11492
|
+
*/
|
|
11493
|
+
Scheduler.clearDiscordAuth = function (scheduler_id, params) {
|
|
11494
|
+
return Requests.processRoute(SchedulerRoute.routes.clearDiscordAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11495
|
+
};
|
|
11496
|
+
/**
|
|
11497
|
+
* Clear Bluesky OAuth credentials from a promotion schedule.
|
|
11498
|
+
*
|
|
11499
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
11500
|
+
* @returns promise
|
|
11501
|
+
*/
|
|
11502
|
+
Scheduler.clearBlueskyAuth = function (scheduler_id, params) {
|
|
11503
|
+
return Requests.processRoute(SchedulerRoute.routes.clearBlueskyAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
11504
|
+
};
|
|
11505
|
+
return Scheduler;
|
|
11506
|
+
}());
|
|
11507
|
+
|
|
11109
11508
|
var Parser = /** @class */ (function () {
|
|
11110
11509
|
function Parser() {
|
|
11111
11510
|
}
|
|
@@ -11529,7 +11928,9 @@ var Glitch = /** @class */ (function () {
|
|
|
11529
11928
|
TipPackagePurchases: TipPackagePurchases,
|
|
11530
11929
|
Publications: Publications,
|
|
11531
11930
|
Newsletters: Newsletters,
|
|
11532
|
-
PlayTests: PlayTests
|
|
11931
|
+
PlayTests: PlayTests,
|
|
11932
|
+
Media: Media,
|
|
11933
|
+
Scheduler: Scheduler,
|
|
11533
11934
|
};
|
|
11534
11935
|
Glitch.util = {
|
|
11535
11936
|
Requests: Requests,
|