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
|
@@ -97,6 +97,22 @@ declare class GameShows {
|
|
|
97
97
|
* Register a title to a game show.
|
|
98
98
|
*/
|
|
99
99
|
static registerTitle<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
100
|
+
/** List the active ordered custom-question schema used by public registration. */
|
|
101
|
+
static listRegistrationQuestions<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
102
|
+
/** List active, inactive, and archived custom questions for organizers. */
|
|
103
|
+
static manageRegistrationQuestions<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
104
|
+
/** Create one schema-driven custom developer-registration question. */
|
|
105
|
+
static createRegistrationQuestion<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
106
|
+
/** Update wording, validation, visibility, ordering, or stable choices. */
|
|
107
|
+
static updateRegistrationQuestion<T>(show_id: string, question_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
108
|
+
/** Archive a question while preserving historical answers and reporting. */
|
|
109
|
+
static deleteRegistrationQuestion<T>(show_id: string, question_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
110
|
+
/** Apply the organizer's exact ordered list of question UUIDs. */
|
|
111
|
+
static reorderRegistrationQuestions<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
112
|
+
/** Review custom answers grouped by submitted game. */
|
|
113
|
+
static listRegistrationResponses<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
114
|
+
/** Retrieve type-aware aggregate reports without exposing free-text values. */
|
|
115
|
+
static registrationQuestionReports<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
100
116
|
/**
|
|
101
117
|
* Add a title to a game show by admin.
|
|
102
118
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -15020,6 +15020,15 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
15020
15020
|
uploadLogo: { url: '/gameshows/{show_id}/uploadLogo', method: HTTP_METHODS.POST },
|
|
15021
15021
|
uploadBannerImage: { url: '/gameshows/{show_id}/uploadBannerImage', method: HTTP_METHODS.POST },
|
|
15022
15022
|
registerTitle: { url: '/gameshows/{show_id}/registerTitle', method: HTTP_METHODS.POST },
|
|
15023
|
+
// Schema-driven developer registration questions and organizer reports.
|
|
15024
|
+
listRegistrationQuestions: { url: '/gameshows/{show_id}/registration-questions', method: HTTP_METHODS.GET },
|
|
15025
|
+
manageRegistrationQuestions: { url: '/gameshows/{show_id}/registration-form/questions', method: HTTP_METHODS.GET },
|
|
15026
|
+
createRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions', method: HTTP_METHODS.POST },
|
|
15027
|
+
updateRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions/{question_id}', method: HTTP_METHODS.PUT },
|
|
15028
|
+
deleteRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions/{question_id}', method: HTTP_METHODS.DELETE },
|
|
15029
|
+
reorderRegistrationQuestions: { url: '/gameshows/{show_id}/registration-form/questions/reorder', method: HTTP_METHODS.POST },
|
|
15030
|
+
listRegistrationResponses: { url: '/gameshows/{show_id}/registration-form/responses', method: HTTP_METHODS.GET },
|
|
15031
|
+
registrationQuestionReports: { url: '/gameshows/{show_id}/registration-form/reports', method: HTTP_METHODS.GET },
|
|
15023
15032
|
listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
|
|
15024
15033
|
addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
|
|
15025
15034
|
// External registration file preview/import endpoints.
|
|
@@ -15188,6 +15197,38 @@ var GameShows = /** @class */ (function () {
|
|
|
15188
15197
|
GameShows.registerTitle = function (show_id, data, params) {
|
|
15189
15198
|
return Requests.processRoute(GameShowsRoute.routes.registerTitle, data, { show_id: show_id }, params);
|
|
15190
15199
|
};
|
|
15200
|
+
/** List the active ordered custom-question schema used by public registration. */
|
|
15201
|
+
GameShows.listRegistrationQuestions = function (show_id, params) {
|
|
15202
|
+
return Requests.processRoute(GameShowsRoute.routes.listRegistrationQuestions, {}, { show_id: show_id }, params);
|
|
15203
|
+
};
|
|
15204
|
+
/** List active, inactive, and archived custom questions for organizers. */
|
|
15205
|
+
GameShows.manageRegistrationQuestions = function (show_id, params) {
|
|
15206
|
+
return Requests.processRoute(GameShowsRoute.routes.manageRegistrationQuestions, {}, { show_id: show_id }, params);
|
|
15207
|
+
};
|
|
15208
|
+
/** Create one schema-driven custom developer-registration question. */
|
|
15209
|
+
GameShows.createRegistrationQuestion = function (show_id, data, params) {
|
|
15210
|
+
return Requests.processRoute(GameShowsRoute.routes.createRegistrationQuestion, data, { show_id: show_id }, params);
|
|
15211
|
+
};
|
|
15212
|
+
/** Update wording, validation, visibility, ordering, or stable choices. */
|
|
15213
|
+
GameShows.updateRegistrationQuestion = function (show_id, question_id, data, params) {
|
|
15214
|
+
return Requests.processRoute(GameShowsRoute.routes.updateRegistrationQuestion, data, { show_id: show_id, question_id: question_id }, params);
|
|
15215
|
+
};
|
|
15216
|
+
/** Archive a question while preserving historical answers and reporting. */
|
|
15217
|
+
GameShows.deleteRegistrationQuestion = function (show_id, question_id, params) {
|
|
15218
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteRegistrationQuestion, {}, { show_id: show_id, question_id: question_id }, params);
|
|
15219
|
+
};
|
|
15220
|
+
/** Apply the organizer's exact ordered list of question UUIDs. */
|
|
15221
|
+
GameShows.reorderRegistrationQuestions = function (show_id, data, params) {
|
|
15222
|
+
return Requests.processRoute(GameShowsRoute.routes.reorderRegistrationQuestions, data, { show_id: show_id }, params);
|
|
15223
|
+
};
|
|
15224
|
+
/** Review custom answers grouped by submitted game. */
|
|
15225
|
+
GameShows.listRegistrationResponses = function (show_id, params) {
|
|
15226
|
+
return Requests.processRoute(GameShowsRoute.routes.listRegistrationResponses, {}, { show_id: show_id }, params);
|
|
15227
|
+
};
|
|
15228
|
+
/** Retrieve type-aware aggregate reports without exposing free-text values. */
|
|
15229
|
+
GameShows.registrationQuestionReports = function (show_id, params) {
|
|
15230
|
+
return Requests.processRoute(GameShowsRoute.routes.registrationQuestionReports, {}, { show_id: show_id }, params);
|
|
15231
|
+
};
|
|
15191
15232
|
/**
|
|
15192
15233
|
* Add a title to a game show by admin.
|
|
15193
15234
|
*/
|