glitch-javascript-sdk 3.4.1 → 3.5.0
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 +41 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +16 -0
- package/dist/esm/index.js +41 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +40 -0
- package/src/routes/GameShowsRoute.ts +9 -0
package/dist/cjs/index.js
CHANGED
|
@@ -27018,6 +27018,15 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
27018
27018
|
uploadLogo: { url: '/gameshows/{show_id}/uploadLogo', method: HTTP_METHODS.POST },
|
|
27019
27019
|
uploadBannerImage: { url: '/gameshows/{show_id}/uploadBannerImage', method: HTTP_METHODS.POST },
|
|
27020
27020
|
registerTitle: { url: '/gameshows/{show_id}/registerTitle', method: HTTP_METHODS.POST },
|
|
27021
|
+
// Schema-driven developer registration questions and organizer reports.
|
|
27022
|
+
listRegistrationQuestions: { url: '/gameshows/{show_id}/registration-questions', method: HTTP_METHODS.GET },
|
|
27023
|
+
manageRegistrationQuestions: { url: '/gameshows/{show_id}/registration-form/questions', method: HTTP_METHODS.GET },
|
|
27024
|
+
createRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions', method: HTTP_METHODS.POST },
|
|
27025
|
+
updateRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions/{question_id}', method: HTTP_METHODS.PUT },
|
|
27026
|
+
deleteRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions/{question_id}', method: HTTP_METHODS.DELETE },
|
|
27027
|
+
reorderRegistrationQuestions: { url: '/gameshows/{show_id}/registration-form/questions/reorder', method: HTTP_METHODS.POST },
|
|
27028
|
+
listRegistrationResponses: { url: '/gameshows/{show_id}/registration-form/responses', method: HTTP_METHODS.GET },
|
|
27029
|
+
registrationQuestionReports: { url: '/gameshows/{show_id}/registration-form/reports', method: HTTP_METHODS.GET },
|
|
27021
27030
|
listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
|
|
27022
27031
|
addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
|
|
27023
27032
|
// External registration file preview/import endpoints.
|
|
@@ -27186,6 +27195,38 @@ var GameShows = /** @class */ (function () {
|
|
|
27186
27195
|
GameShows.registerTitle = function (show_id, data, params) {
|
|
27187
27196
|
return Requests.processRoute(GameShowsRoute.routes.registerTitle, data, { show_id: show_id }, params);
|
|
27188
27197
|
};
|
|
27198
|
+
/** List the active ordered custom-question schema used by public registration. */
|
|
27199
|
+
GameShows.listRegistrationQuestions = function (show_id, params) {
|
|
27200
|
+
return Requests.processRoute(GameShowsRoute.routes.listRegistrationQuestions, {}, { show_id: show_id }, params);
|
|
27201
|
+
};
|
|
27202
|
+
/** List active, inactive, and archived custom questions for organizers. */
|
|
27203
|
+
GameShows.manageRegistrationQuestions = function (show_id, params) {
|
|
27204
|
+
return Requests.processRoute(GameShowsRoute.routes.manageRegistrationQuestions, {}, { show_id: show_id }, params);
|
|
27205
|
+
};
|
|
27206
|
+
/** Create one schema-driven custom developer-registration question. */
|
|
27207
|
+
GameShows.createRegistrationQuestion = function (show_id, data, params) {
|
|
27208
|
+
return Requests.processRoute(GameShowsRoute.routes.createRegistrationQuestion, data, { show_id: show_id }, params);
|
|
27209
|
+
};
|
|
27210
|
+
/** Update wording, validation, visibility, ordering, or stable choices. */
|
|
27211
|
+
GameShows.updateRegistrationQuestion = function (show_id, question_id, data, params) {
|
|
27212
|
+
return Requests.processRoute(GameShowsRoute.routes.updateRegistrationQuestion, data, { show_id: show_id, question_id: question_id }, params);
|
|
27213
|
+
};
|
|
27214
|
+
/** Archive a question while preserving historical answers and reporting. */
|
|
27215
|
+
GameShows.deleteRegistrationQuestion = function (show_id, question_id, params) {
|
|
27216
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteRegistrationQuestion, {}, { show_id: show_id, question_id: question_id }, params);
|
|
27217
|
+
};
|
|
27218
|
+
/** Apply the organizer's exact ordered list of question UUIDs. */
|
|
27219
|
+
GameShows.reorderRegistrationQuestions = function (show_id, data, params) {
|
|
27220
|
+
return Requests.processRoute(GameShowsRoute.routes.reorderRegistrationQuestions, data, { show_id: show_id }, params);
|
|
27221
|
+
};
|
|
27222
|
+
/** Review custom answers grouped by submitted game. */
|
|
27223
|
+
GameShows.listRegistrationResponses = function (show_id, params) {
|
|
27224
|
+
return Requests.processRoute(GameShowsRoute.routes.listRegistrationResponses, {}, { show_id: show_id }, params);
|
|
27225
|
+
};
|
|
27226
|
+
/** Retrieve type-aware aggregate reports without exposing free-text values. */
|
|
27227
|
+
GameShows.registrationQuestionReports = function (show_id, params) {
|
|
27228
|
+
return Requests.processRoute(GameShowsRoute.routes.registrationQuestionReports, {}, { show_id: show_id }, params);
|
|
27229
|
+
};
|
|
27189
27230
|
/**
|
|
27190
27231
|
* Add a title to a game show by admin.
|
|
27191
27232
|
*/
|