glitch-javascript-sdk 3.2.23 → 3.2.25
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 +91 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +52 -0
- package/dist/esm/index.js +91 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +52 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +91 -0
- package/src/routes/GameShowsRoute.ts +13 -0
package/dist/cjs/index.js
CHANGED
|
@@ -26907,8 +26907,21 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
26907
26907
|
viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
|
|
26908
26908
|
updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
|
|
26909
26909
|
deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
|
|
26910
|
+
listBlocks: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.GET },
|
|
26911
|
+
createBlock: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.POST },
|
|
26912
|
+
updateBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.PUT },
|
|
26913
|
+
deleteBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.DELETE },
|
|
26914
|
+
reorderBlocks: { url: '/gameshows/{show_id}/blocks/reorder', method: HTTP_METHODS.POST },
|
|
26915
|
+
listSchedule: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.GET },
|
|
26916
|
+
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
26917
|
+
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
26918
|
+
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
26919
|
+
discoveryQueue: { url: '/gameshows/{show_id}/discovery', method: HTTP_METHODS.GET },
|
|
26920
|
+
trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
|
|
26921
|
+
analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
|
|
26910
26922
|
joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
|
|
26911
26923
|
listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
|
|
26924
|
+
listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
|
|
26912
26925
|
};
|
|
26913
26926
|
return GameShowsRoute;
|
|
26914
26927
|
}());
|
|
@@ -27066,6 +27079,78 @@ var GameShows = /** @class */ (function () {
|
|
|
27066
27079
|
GameShows.deleteTitle = function (show_id, title_id, params) {
|
|
27067
27080
|
return Requests.processRoute(GameShowsRoute.routes.deleteTitle, {}, { show_id: show_id, title_id: title_id }, params);
|
|
27068
27081
|
};
|
|
27082
|
+
/**
|
|
27083
|
+
* List public page-builder blocks for a game show.
|
|
27084
|
+
*/
|
|
27085
|
+
GameShows.listBlocks = function (show_id, params) {
|
|
27086
|
+
return Requests.processRoute(GameShowsRoute.routes.listBlocks, {}, { show_id: show_id }, params);
|
|
27087
|
+
};
|
|
27088
|
+
/**
|
|
27089
|
+
* Create a page-builder block for a game show. Requires organizer permissions.
|
|
27090
|
+
*/
|
|
27091
|
+
GameShows.createBlock = function (show_id, data, params) {
|
|
27092
|
+
return Requests.processRoute(GameShowsRoute.routes.createBlock, data, { show_id: show_id }, params);
|
|
27093
|
+
};
|
|
27094
|
+
/**
|
|
27095
|
+
* Update a page-builder block for a game show. Requires organizer permissions.
|
|
27096
|
+
*/
|
|
27097
|
+
GameShows.updateBlock = function (show_id, block_id, data, params) {
|
|
27098
|
+
return Requests.processRoute(GameShowsRoute.routes.updateBlock, data, { show_id: show_id, block_id: block_id }, params);
|
|
27099
|
+
};
|
|
27100
|
+
/**
|
|
27101
|
+
* Delete a page-builder block from a game show. Requires organizer permissions.
|
|
27102
|
+
*/
|
|
27103
|
+
GameShows.deleteBlock = function (show_id, block_id, params) {
|
|
27104
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteBlock, {}, { show_id: show_id, block_id: block_id }, params);
|
|
27105
|
+
};
|
|
27106
|
+
/**
|
|
27107
|
+
* Reorder page-builder blocks for a game show. Requires organizer permissions.
|
|
27108
|
+
*/
|
|
27109
|
+
GameShows.reorderBlocks = function (show_id, data, params) {
|
|
27110
|
+
return Requests.processRoute(GameShowsRoute.routes.reorderBlocks, data, { show_id: show_id }, params);
|
|
27111
|
+
};
|
|
27112
|
+
/**
|
|
27113
|
+
* List livestream and programming schedule items for a game show.
|
|
27114
|
+
*/
|
|
27115
|
+
GameShows.listSchedule = function (show_id, params) {
|
|
27116
|
+
return Requests.processRoute(GameShowsRoute.routes.listSchedule, {}, { show_id: show_id }, params);
|
|
27117
|
+
};
|
|
27118
|
+
/**
|
|
27119
|
+
* Create a schedule item for a game show. Requires organizer permissions.
|
|
27120
|
+
*/
|
|
27121
|
+
GameShows.createScheduleItem = function (show_id, data, params) {
|
|
27122
|
+
return Requests.processRoute(GameShowsRoute.routes.createScheduleItem, data, { show_id: show_id }, params);
|
|
27123
|
+
};
|
|
27124
|
+
/**
|
|
27125
|
+
* Update a schedule item for a game show. Requires organizer permissions.
|
|
27126
|
+
*/
|
|
27127
|
+
GameShows.updateScheduleItem = function (show_id, schedule_id, data, params) {
|
|
27128
|
+
return Requests.processRoute(GameShowsRoute.routes.updateScheduleItem, data, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27129
|
+
};
|
|
27130
|
+
/**
|
|
27131
|
+
* Delete a schedule item from a game show. Requires organizer permissions.
|
|
27132
|
+
*/
|
|
27133
|
+
GameShows.deleteScheduleItem = function (show_id, schedule_id, params) {
|
|
27134
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27135
|
+
};
|
|
27136
|
+
/**
|
|
27137
|
+
* Get the game show discovery queue.
|
|
27138
|
+
*/
|
|
27139
|
+
GameShows.discoveryQueue = function (show_id, params) {
|
|
27140
|
+
return Requests.processRoute(GameShowsRoute.routes.discoveryQueue, {}, { show_id: show_id }, params);
|
|
27141
|
+
};
|
|
27142
|
+
/**
|
|
27143
|
+
* Track public game show analytics events.
|
|
27144
|
+
*/
|
|
27145
|
+
GameShows.trackAnalytics = function (show_id, data, params) {
|
|
27146
|
+
return Requests.processRoute(GameShowsRoute.routes.trackAnalytics, data, { show_id: show_id }, params);
|
|
27147
|
+
};
|
|
27148
|
+
/**
|
|
27149
|
+
* Get organizer analytics for a game show.
|
|
27150
|
+
*/
|
|
27151
|
+
GameShows.analyticsReport = function (show_id, params) {
|
|
27152
|
+
return Requests.processRoute(GameShowsRoute.routes.analyticsReport, {}, { show_id: show_id }, params);
|
|
27153
|
+
};
|
|
27069
27154
|
/**
|
|
27070
27155
|
* Join or update a public notification signup for a game show.
|
|
27071
27156
|
*/
|
|
@@ -27078,6 +27163,12 @@ var GameShows = /** @class */ (function () {
|
|
|
27078
27163
|
GameShows.listWishlist = function (show_id, params) {
|
|
27079
27164
|
return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
|
|
27080
27165
|
};
|
|
27166
|
+
/**
|
|
27167
|
+
* List public game shows that include a title. Useful for game-page festival banners.
|
|
27168
|
+
*/
|
|
27169
|
+
GameShows.listForTitle = function (title_id, params) {
|
|
27170
|
+
return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
|
|
27171
|
+
};
|
|
27081
27172
|
return GameShows;
|
|
27082
27173
|
}());
|
|
27083
27174
|
|