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/cjs/index.js
CHANGED
|
@@ -22472,8 +22472,11 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
22472
22472
|
getPosts: { url: '/socialposts', method: HTTP_METHODS.GET },
|
|
22473
22473
|
createPost: { url: '/socialposts', method: HTTP_METHODS.POST },
|
|
22474
22474
|
retrievePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.GET },
|
|
22475
|
+
updatePost: { url: '/socialposts/{post_id}', method: HTTP_METHODS.PUT },
|
|
22475
22476
|
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST },
|
|
22476
22477
|
history: { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET },
|
|
22478
|
+
addMedia: { url: '/socialposts/{post_id}/addMedia', method: HTTP_METHODS.POST },
|
|
22479
|
+
removeMedia: { url: '/socialposts/{post_id}/removeMedia/{media_id}', method: HTTP_METHODS.DELETE },
|
|
22477
22480
|
};
|
|
22478
22481
|
return SocialPostsRoute;
|
|
22479
22482
|
}());
|
|
@@ -22513,6 +22516,18 @@ var SocialPosts = /** @class */ (function () {
|
|
|
22513
22516
|
SocialPosts.view = function (post_id, params) {
|
|
22514
22517
|
return Requests.processRoute(SocialPostsRoute.routes.retrievePost, {}, { post_id: post_id }, params);
|
|
22515
22518
|
};
|
|
22519
|
+
/**
|
|
22520
|
+
* Update the informationa bout a post, as long as it hasn't been posted.
|
|
22521
|
+
*
|
|
22522
|
+
* @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage
|
|
22523
|
+
*
|
|
22524
|
+
* @param post_id The id fo the post to retrieve.
|
|
22525
|
+
*
|
|
22526
|
+
* @returns promise
|
|
22527
|
+
*/
|
|
22528
|
+
SocialPosts.update = function (post_id, data, params) {
|
|
22529
|
+
return Requests.processRoute(SocialPostsRoute.routes.updatePost, data, { post_id: post_id }, params);
|
|
22530
|
+
};
|
|
22516
22531
|
/**
|
|
22517
22532
|
* Dispute a post as being fraudulent.,s
|
|
22518
22533
|
*
|
|
@@ -22537,6 +22552,32 @@ var SocialPosts = /** @class */ (function () {
|
|
|
22537
22552
|
SocialPosts.history = function (post_id, params) {
|
|
22538
22553
|
return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params);
|
|
22539
22554
|
};
|
|
22555
|
+
/**
|
|
22556
|
+
* Add media to a social media post.
|
|
22557
|
+
*
|
|
22558
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/addMediaToSocialMediaPost
|
|
22559
|
+
*
|
|
22560
|
+
* @param post_id The ID of the social media post.
|
|
22561
|
+
* @param data The data to be sent in the request body.
|
|
22562
|
+
*
|
|
22563
|
+
* @returns promise
|
|
22564
|
+
*/
|
|
22565
|
+
SocialPosts.addMedia = function (post_id, data, params) {
|
|
22566
|
+
return Requests.processRoute(SocialPostsRoute.routes.addMedia, data, { post_id: post_id }, params);
|
|
22567
|
+
};
|
|
22568
|
+
/**
|
|
22569
|
+
* Remove media from a social media post.
|
|
22570
|
+
*
|
|
22571
|
+
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/removeMediaFromSocialMediaPost
|
|
22572
|
+
*
|
|
22573
|
+
* @param post_id The ID of the social media post.
|
|
22574
|
+
* @param media_id The ID of the media to remove.
|
|
22575
|
+
*
|
|
22576
|
+
* @returns promise
|
|
22577
|
+
*/
|
|
22578
|
+
SocialPosts.removeMedia = function (post_id, media_id, params) {
|
|
22579
|
+
return Requests.processRoute(SocialPostsRoute.routes.removeMedia, {}, { post_id: post_id, media_id: media_id }, params);
|
|
22580
|
+
};
|
|
22540
22581
|
return SocialPosts;
|
|
22541
22582
|
}());
|
|
22542
22583
|
|
|
@@ -24290,6 +24331,364 @@ var PlayTests = /** @class */ (function () {
|
|
|
24290
24331
|
return PlayTests;
|
|
24291
24332
|
}());
|
|
24292
24333
|
|
|
24334
|
+
var MediaRoute = /** @class */ (function () {
|
|
24335
|
+
function MediaRoute() {
|
|
24336
|
+
}
|
|
24337
|
+
MediaRoute.routes = {
|
|
24338
|
+
upload: { url: '/media', method: HTTP_METHODS.POST },
|
|
24339
|
+
getMedia: { url: '/media/{meda_id}', method: HTTP_METHODS.GET },
|
|
24340
|
+
};
|
|
24341
|
+
return MediaRoute;
|
|
24342
|
+
}());
|
|
24343
|
+
|
|
24344
|
+
var Media = /** @class */ (function () {
|
|
24345
|
+
function Media() {
|
|
24346
|
+
}
|
|
24347
|
+
/**
|
|
24348
|
+
* Upload media content using a File object.
|
|
24349
|
+
*
|
|
24350
|
+
* @see https://api.glitch.fun/api/documentation#/Media%20Route/uploadMedia
|
|
24351
|
+
*
|
|
24352
|
+
* @param file The file object to upload.
|
|
24353
|
+
* @param data Any additional data to pass along to the upload.
|
|
24354
|
+
*
|
|
24355
|
+
* @returns promise
|
|
24356
|
+
*/
|
|
24357
|
+
Media.uploadFile = function (file, data, params) {
|
|
24358
|
+
return Requests.uploadFile(MediaRoute.routes.upload.url, 'media', file, data, params);
|
|
24359
|
+
};
|
|
24360
|
+
/**
|
|
24361
|
+
* Upload media content using a Blob.
|
|
24362
|
+
*
|
|
24363
|
+
* @see https://api.glitch.fun/api/documentation#/Media%20Route/uploadMedia
|
|
24364
|
+
*
|
|
24365
|
+
* @param blob The Blob object to upload.
|
|
24366
|
+
* @param data Any additional data to pass along to the upload.
|
|
24367
|
+
*
|
|
24368
|
+
* @returns promise
|
|
24369
|
+
*/
|
|
24370
|
+
Media.uploadBlob = function (blob, data, params) {
|
|
24371
|
+
return Requests.uploadBlob(MediaRoute.routes.upload.url, 'media', blob, data, params);
|
|
24372
|
+
};
|
|
24373
|
+
/**
|
|
24374
|
+
* Get media details.
|
|
24375
|
+
*
|
|
24376
|
+
* @see https://api.glitch.fun/api/documentation#/Media%20Route/getMedia
|
|
24377
|
+
*
|
|
24378
|
+
* @param id The ID of the media item.
|
|
24379
|
+
*
|
|
24380
|
+
* @returns promise
|
|
24381
|
+
*/
|
|
24382
|
+
Media.get = function (media_id, params) {
|
|
24383
|
+
return Requests.processRoute(MediaRoute.routes.getMedia, {}, { media_id: media_id }, params);
|
|
24384
|
+
};
|
|
24385
|
+
return Media;
|
|
24386
|
+
}());
|
|
24387
|
+
|
|
24388
|
+
var SchedulerRoute = /** @class */ (function () {
|
|
24389
|
+
function SchedulerRoute() {
|
|
24390
|
+
}
|
|
24391
|
+
SchedulerRoute.routes = {
|
|
24392
|
+
// Title Promotion Schedule Routes
|
|
24393
|
+
listSchedules: { url: '/schedulers', method: HTTP_METHODS.GET },
|
|
24394
|
+
createSchedule: { url: '/schedulers', method: HTTP_METHODS.POST },
|
|
24395
|
+
getSchedule: { url: '/schedulers/{scheduler_id}', method: HTTP_METHODS.GET },
|
|
24396
|
+
updateSchedule: { url: '/schedulers/{scheduler_id}', method: HTTP_METHODS.PUT },
|
|
24397
|
+
deleteSchedule: { url: '/schedulers/{scheduler_id}', method: HTTP_METHODS.DELETE },
|
|
24398
|
+
getSchedulePosts: { url: '/schedulers/{scheduler_id}/posts', method: HTTP_METHODS.GET },
|
|
24399
|
+
// Title Update Routes
|
|
24400
|
+
listUpdates: { url: '/schedulers/{scheduler_id}/updates', method: HTTP_METHODS.GET },
|
|
24401
|
+
createUpdate: { url: '/schedulers/{scheduler_id}/updates', method: HTTP_METHODS.POST },
|
|
24402
|
+
getUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.GET },
|
|
24403
|
+
updateUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.PUT },
|
|
24404
|
+
deleteUpdate: { url: '/schedulers/{scheduler_id}/updates/{update_id}', method: HTTP_METHODS.DELETE },
|
|
24405
|
+
// Clear OAuth Routes
|
|
24406
|
+
clearTwitterAuth: { url: '/schedulers/{scheduler_id}/clearTwitterAuth', method: HTTP_METHODS.DELETE },
|
|
24407
|
+
clearFacebookAuth: { url: '/schedulers/{scheduler_id}/clearFacebookAuth', method: HTTP_METHODS.DELETE },
|
|
24408
|
+
clearInstagramAuth: { url: '/schedulers/{scheduler_id}/clearInstagramAuth', method: HTTP_METHODS.DELETE },
|
|
24409
|
+
clearSnapchatAuth: { url: '/schedulers/{scheduler_id}/clearSnapchatAuth', method: HTTP_METHODS.DELETE },
|
|
24410
|
+
clearTikTokAuth: { url: '/schedulers/{scheduler_id}/clearTikTokAuth', method: HTTP_METHODS.DELETE },
|
|
24411
|
+
clearTwitchAuth: { url: '/schedulers/{scheduler_id}/clearTwitchAuth', method: HTTP_METHODS.DELETE },
|
|
24412
|
+
clearKickAuth: { url: '/schedulers/{scheduler_id}/clearKickAuth', method: HTTP_METHODS.DELETE },
|
|
24413
|
+
clearRedditAuth: { url: '/schedulers/{scheduler_id}/clearRedditAuth', method: HTTP_METHODS.DELETE },
|
|
24414
|
+
clearYouTubeAuth: { url: '/schedulers/{scheduler_id}/clearYouTubeAuth', method: HTTP_METHODS.DELETE },
|
|
24415
|
+
clearPatreonAuth: { url: '/schedulers/{scheduler_id}/clearPatreonAuth', method: HTTP_METHODS.DELETE },
|
|
24416
|
+
clearPinterestAuth: { url: '/schedulers/{scheduler_id}/clearPinterestAuth', method: HTTP_METHODS.DELETE },
|
|
24417
|
+
clearSteamAuth: { url: '/schedulers/{scheduler_id}/clearSteamAuth', method: HTTP_METHODS.DELETE },
|
|
24418
|
+
clearDiscordAuth: { url: '/schedulers/{scheduler_id}/clearDiscordAuth', method: HTTP_METHODS.DELETE },
|
|
24419
|
+
clearBlueskyAuth: { url: '/schedulers/{scheduler_id}/clearBlueskyAuth', method: HTTP_METHODS.DELETE },
|
|
24420
|
+
};
|
|
24421
|
+
return SchedulerRoute;
|
|
24422
|
+
}());
|
|
24423
|
+
|
|
24424
|
+
var Scheduler = /** @class */ (function () {
|
|
24425
|
+
function Scheduler() {
|
|
24426
|
+
}
|
|
24427
|
+
/**
|
|
24428
|
+
* List promotion schedules.
|
|
24429
|
+
*
|
|
24430
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitlePromotionSchedules
|
|
24431
|
+
*
|
|
24432
|
+
* @returns promise
|
|
24433
|
+
*/
|
|
24434
|
+
Scheduler.listSchedules = function (params) {
|
|
24435
|
+
return Requests.processRoute(SchedulerRoute.routes.listSchedules, {}, {}, params);
|
|
24436
|
+
};
|
|
24437
|
+
/**
|
|
24438
|
+
* Create a new promotion schedule.
|
|
24439
|
+
*
|
|
24440
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/createTitlePromotionSchedule
|
|
24441
|
+
*
|
|
24442
|
+
* @param data The data for the new schedule.
|
|
24443
|
+
*
|
|
24444
|
+
* @returns promise
|
|
24445
|
+
*/
|
|
24446
|
+
Scheduler.createSchedule = function (data, params) {
|
|
24447
|
+
return Requests.processRoute(SchedulerRoute.routes.createSchedule, data, {}, params);
|
|
24448
|
+
};
|
|
24449
|
+
/**
|
|
24450
|
+
* Get a specific promotion schedule.
|
|
24451
|
+
*
|
|
24452
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitlePromotionSchedule
|
|
24453
|
+
*
|
|
24454
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24455
|
+
*
|
|
24456
|
+
* @returns promise
|
|
24457
|
+
*/
|
|
24458
|
+
Scheduler.getSchedule = function (scheduler_id, params) {
|
|
24459
|
+
return Requests.processRoute(SchedulerRoute.routes.getSchedule, {}, { scheduler_id: scheduler_id }, params);
|
|
24460
|
+
};
|
|
24461
|
+
/**
|
|
24462
|
+
* Update a promotion schedule.
|
|
24463
|
+
*
|
|
24464
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitlePromotionSchedule
|
|
24465
|
+
*
|
|
24466
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24467
|
+
* @param data The data to update.
|
|
24468
|
+
*
|
|
24469
|
+
* @returns promise
|
|
24470
|
+
*/
|
|
24471
|
+
Scheduler.updateSchedule = function (scheduler_id, data, params) {
|
|
24472
|
+
return Requests.processRoute(SchedulerRoute.routes.updateSchedule, data, { scheduler_id: scheduler_id }, params);
|
|
24473
|
+
};
|
|
24474
|
+
/**
|
|
24475
|
+
* Delete a promotion schedule.
|
|
24476
|
+
*
|
|
24477
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/deleteTitlePromotionSchedule
|
|
24478
|
+
*
|
|
24479
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24480
|
+
*
|
|
24481
|
+
* @returns promise
|
|
24482
|
+
*/
|
|
24483
|
+
Scheduler.deleteSchedule = function (scheduler_id, params) {
|
|
24484
|
+
return Requests.processRoute(SchedulerRoute.routes.deleteSchedule, {}, { scheduler_id: scheduler_id }, params);
|
|
24485
|
+
};
|
|
24486
|
+
/**
|
|
24487
|
+
* Get social media posts related to a promotion schedule.
|
|
24488
|
+
*
|
|
24489
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getPromotionScheduleSocialPosts
|
|
24490
|
+
*
|
|
24491
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24492
|
+
*
|
|
24493
|
+
* @returns promise
|
|
24494
|
+
*/
|
|
24495
|
+
Scheduler.getSchedulePosts = function (scheduler_id, params) {
|
|
24496
|
+
return Requests.processRoute(SchedulerRoute.routes.getSchedulePosts, {}, { scheduler_id: scheduler_id }, params);
|
|
24497
|
+
};
|
|
24498
|
+
/**
|
|
24499
|
+
* List title updates for a promotion schedule.
|
|
24500
|
+
*
|
|
24501
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitleUpdates
|
|
24502
|
+
*
|
|
24503
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24504
|
+
*
|
|
24505
|
+
* @returns promise
|
|
24506
|
+
*/
|
|
24507
|
+
Scheduler.listUpdates = function (scheduler_id, params) {
|
|
24508
|
+
return Requests.processRoute(SchedulerRoute.routes.listUpdates, {}, { scheduler_id: scheduler_id }, params);
|
|
24509
|
+
};
|
|
24510
|
+
/**
|
|
24511
|
+
* Create a new title update for a promotion schedule.
|
|
24512
|
+
*
|
|
24513
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/createTitleUpdate
|
|
24514
|
+
*
|
|
24515
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24516
|
+
* @param data The data for the new update.
|
|
24517
|
+
*
|
|
24518
|
+
* @returns promise
|
|
24519
|
+
*/
|
|
24520
|
+
Scheduler.createUpdate = function (scheduler_id, data, params) {
|
|
24521
|
+
return Requests.processRoute(SchedulerRoute.routes.createUpdate, data, { scheduler_id: scheduler_id }, params);
|
|
24522
|
+
};
|
|
24523
|
+
/**
|
|
24524
|
+
* Get a specific title update.
|
|
24525
|
+
*
|
|
24526
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getTitleUpdate
|
|
24527
|
+
*
|
|
24528
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24529
|
+
* @param update_id The ID of the title update.
|
|
24530
|
+
*
|
|
24531
|
+
* @returns promise
|
|
24532
|
+
*/
|
|
24533
|
+
Scheduler.getUpdate = function (scheduler_id, update_id, params) {
|
|
24534
|
+
return Requests.processRoute(SchedulerRoute.routes.getUpdate, {}, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
24535
|
+
};
|
|
24536
|
+
/**
|
|
24537
|
+
* Update a title update.
|
|
24538
|
+
*
|
|
24539
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/updateTitleUpdate
|
|
24540
|
+
*
|
|
24541
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24542
|
+
* @param update_id The ID of the title update.
|
|
24543
|
+
* @param data The data to update.
|
|
24544
|
+
*
|
|
24545
|
+
* @returns promise
|
|
24546
|
+
*/
|
|
24547
|
+
Scheduler.updateUpdate = function (scheduler_id, update_id, data, params) {
|
|
24548
|
+
return Requests.processRoute(SchedulerRoute.routes.updateUpdate, data, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
24549
|
+
};
|
|
24550
|
+
/**
|
|
24551
|
+
* Delete a title update.
|
|
24552
|
+
*
|
|
24553
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/deleteTitleUpdate
|
|
24554
|
+
*
|
|
24555
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24556
|
+
* @param update_id The ID of the title update.
|
|
24557
|
+
*
|
|
24558
|
+
* @returns promise
|
|
24559
|
+
*/
|
|
24560
|
+
Scheduler.deleteUpdate = function (scheduler_id, update_id, params) {
|
|
24561
|
+
return Requests.processRoute(SchedulerRoute.routes.deleteUpdate, {}, { scheduler_id: scheduler_id, update_id: update_id }, params);
|
|
24562
|
+
};
|
|
24563
|
+
/**
|
|
24564
|
+
* Clear Twitter OAuth credentials from a promotion schedule.
|
|
24565
|
+
*
|
|
24566
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24567
|
+
* @returns promise
|
|
24568
|
+
*/
|
|
24569
|
+
Scheduler.clearTwitterAuth = function (scheduler_id, params) {
|
|
24570
|
+
return Requests.processRoute(SchedulerRoute.routes.clearTwitterAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24571
|
+
};
|
|
24572
|
+
/**
|
|
24573
|
+
* Clear Facebook OAuth credentials from a promotion schedule.
|
|
24574
|
+
*
|
|
24575
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24576
|
+
* @returns promise
|
|
24577
|
+
*/
|
|
24578
|
+
Scheduler.clearFacebookAuth = function (scheduler_id, params) {
|
|
24579
|
+
return Requests.processRoute(SchedulerRoute.routes.clearFacebookAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24580
|
+
};
|
|
24581
|
+
/**
|
|
24582
|
+
* Clear Instagram OAuth credentials from a promotion schedule.
|
|
24583
|
+
*
|
|
24584
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24585
|
+
* @returns promise
|
|
24586
|
+
*/
|
|
24587
|
+
Scheduler.clearInstagramAuth = function (scheduler_id, params) {
|
|
24588
|
+
return Requests.processRoute(SchedulerRoute.routes.clearInstagramAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24589
|
+
};
|
|
24590
|
+
/**
|
|
24591
|
+
* Clear Snapchat OAuth credentials from a promotion schedule.
|
|
24592
|
+
*
|
|
24593
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24594
|
+
* @returns promise
|
|
24595
|
+
*/
|
|
24596
|
+
Scheduler.clearSnapchatAuth = function (scheduler_id, params) {
|
|
24597
|
+
return Requests.processRoute(SchedulerRoute.routes.clearSnapchatAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24598
|
+
};
|
|
24599
|
+
/**
|
|
24600
|
+
* Clear TikTok OAuth credentials from a promotion schedule.
|
|
24601
|
+
*
|
|
24602
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24603
|
+
* @returns promise
|
|
24604
|
+
*/
|
|
24605
|
+
Scheduler.clearTikTokAuth = function (scheduler_id, params) {
|
|
24606
|
+
return Requests.processRoute(SchedulerRoute.routes.clearTikTokAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24607
|
+
};
|
|
24608
|
+
/**
|
|
24609
|
+
* Clear Twitch OAuth credentials from a promotion schedule.
|
|
24610
|
+
*
|
|
24611
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24612
|
+
* @returns promise
|
|
24613
|
+
*/
|
|
24614
|
+
Scheduler.clearTwitchAuth = function (scheduler_id, params) {
|
|
24615
|
+
return Requests.processRoute(SchedulerRoute.routes.clearTwitchAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24616
|
+
};
|
|
24617
|
+
/**
|
|
24618
|
+
* Clear Kick OAuth credentials from a promotion schedule.
|
|
24619
|
+
*
|
|
24620
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24621
|
+
* @returns promise
|
|
24622
|
+
*/
|
|
24623
|
+
Scheduler.clearKickAuth = function (scheduler_id, params) {
|
|
24624
|
+
return Requests.processRoute(SchedulerRoute.routes.clearKickAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24625
|
+
};
|
|
24626
|
+
/**
|
|
24627
|
+
* Clear Reddit OAuth credentials from a promotion schedule.
|
|
24628
|
+
*
|
|
24629
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24630
|
+
* @returns promise
|
|
24631
|
+
*/
|
|
24632
|
+
Scheduler.clearRedditAuth = function (scheduler_id, params) {
|
|
24633
|
+
return Requests.processRoute(SchedulerRoute.routes.clearRedditAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24634
|
+
};
|
|
24635
|
+
/**
|
|
24636
|
+
* Clear YouTube OAuth credentials from a promotion schedule.
|
|
24637
|
+
*
|
|
24638
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24639
|
+
* @returns promise
|
|
24640
|
+
*/
|
|
24641
|
+
Scheduler.clearYouTubeAuth = function (scheduler_id, params) {
|
|
24642
|
+
return Requests.processRoute(SchedulerRoute.routes.clearYouTubeAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24643
|
+
};
|
|
24644
|
+
/**
|
|
24645
|
+
* Clear Patreon OAuth credentials from a promotion schedule.
|
|
24646
|
+
*
|
|
24647
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24648
|
+
* @returns promise
|
|
24649
|
+
*/
|
|
24650
|
+
Scheduler.clearPatreonAuth = function (scheduler_id, params) {
|
|
24651
|
+
return Requests.processRoute(SchedulerRoute.routes.clearPatreonAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24652
|
+
};
|
|
24653
|
+
/**
|
|
24654
|
+
* Clear Pinterest OAuth credentials from a promotion schedule.
|
|
24655
|
+
*
|
|
24656
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24657
|
+
* @returns promise
|
|
24658
|
+
*/
|
|
24659
|
+
Scheduler.clearPinterestAuth = function (scheduler_id, params) {
|
|
24660
|
+
return Requests.processRoute(SchedulerRoute.routes.clearPinterestAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24661
|
+
};
|
|
24662
|
+
/**
|
|
24663
|
+
* Clear Steam OAuth credentials from a promotion schedule.
|
|
24664
|
+
*
|
|
24665
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24666
|
+
* @returns promise
|
|
24667
|
+
*/
|
|
24668
|
+
Scheduler.clearSteamAuth = function (scheduler_id, params) {
|
|
24669
|
+
return Requests.processRoute(SchedulerRoute.routes.clearSteamAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24670
|
+
};
|
|
24671
|
+
/**
|
|
24672
|
+
* Clear Discord OAuth credentials from a promotion schedule.
|
|
24673
|
+
*
|
|
24674
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24675
|
+
* @returns promise
|
|
24676
|
+
*/
|
|
24677
|
+
Scheduler.clearDiscordAuth = function (scheduler_id, params) {
|
|
24678
|
+
return Requests.processRoute(SchedulerRoute.routes.clearDiscordAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24679
|
+
};
|
|
24680
|
+
/**
|
|
24681
|
+
* Clear Bluesky OAuth credentials from a promotion schedule.
|
|
24682
|
+
*
|
|
24683
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
24684
|
+
* @returns promise
|
|
24685
|
+
*/
|
|
24686
|
+
Scheduler.clearBlueskyAuth = function (scheduler_id, params) {
|
|
24687
|
+
return Requests.processRoute(SchedulerRoute.routes.clearBlueskyAuth, {}, { scheduler_id: scheduler_id }, params);
|
|
24688
|
+
};
|
|
24689
|
+
return Scheduler;
|
|
24690
|
+
}());
|
|
24691
|
+
|
|
24293
24692
|
var Parser = /** @class */ (function () {
|
|
24294
24693
|
function Parser() {
|
|
24295
24694
|
}
|
|
@@ -24713,7 +25112,9 @@ var Glitch = /** @class */ (function () {
|
|
|
24713
25112
|
TipPackagePurchases: TipPackagePurchases,
|
|
24714
25113
|
Publications: Publications,
|
|
24715
25114
|
Newsletters: Newsletters,
|
|
24716
|
-
PlayTests: PlayTests
|
|
25115
|
+
PlayTests: PlayTests,
|
|
25116
|
+
Media: Media,
|
|
25117
|
+
Scheduler: Scheduler,
|
|
24717
25118
|
};
|
|
24718
25119
|
Glitch.util = {
|
|
24719
25120
|
Requests: Requests,
|