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/index.d.ts CHANGED
@@ -6201,6 +6201,22 @@ declare class GameShows {
6201
6201
  * Register a title to a game show.
6202
6202
  */
6203
6203
  static registerTitle<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6204
+ /** List the active ordered custom-question schema used by public registration. */
6205
+ static listRegistrationQuestions<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6206
+ /** List active, inactive, and archived custom questions for organizers. */
6207
+ static manageRegistrationQuestions<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6208
+ /** Create one schema-driven custom developer-registration question. */
6209
+ static createRegistrationQuestion<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6210
+ /** Update wording, validation, visibility, ordering, or stable choices. */
6211
+ static updateRegistrationQuestion<T>(show_id: string, question_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6212
+ /** Archive a question while preserving historical answers and reporting. */
6213
+ static deleteRegistrationQuestion<T>(show_id: string, question_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6214
+ /** Apply the organizer's exact ordered list of question UUIDs. */
6215
+ static reorderRegistrationQuestions<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6216
+ /** Review custom answers grouped by submitted game. */
6217
+ static listRegistrationResponses<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6218
+ /** Retrieve type-aware aggregate reports without exposing free-text values. */
6219
+ static registrationQuestionReports<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6204
6220
  /**
6205
6221
  * Add a title to a game show by admin.
6206
6222
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.4.1",
3
+ "version": "3.5.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -147,6 +147,46 @@ class GameShows {
147
147
  return Requests.processRoute(GameShowsRoute.routes.registerTitle, data, { show_id: show_id }, params);
148
148
  }
149
149
 
150
+ /** List the active ordered custom-question schema used by public registration. */
151
+ public static listRegistrationQuestions<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
152
+ return Requests.processRoute(GameShowsRoute.routes.listRegistrationQuestions, {}, { show_id: show_id }, params);
153
+ }
154
+
155
+ /** List active, inactive, and archived custom questions for organizers. */
156
+ public static manageRegistrationQuestions<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
157
+ return Requests.processRoute(GameShowsRoute.routes.manageRegistrationQuestions, {}, { show_id: show_id }, params);
158
+ }
159
+
160
+ /** Create one schema-driven custom developer-registration question. */
161
+ public static createRegistrationQuestion<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
162
+ return Requests.processRoute(GameShowsRoute.routes.createRegistrationQuestion, data, { show_id: show_id }, params);
163
+ }
164
+
165
+ /** Update wording, validation, visibility, ordering, or stable choices. */
166
+ public static updateRegistrationQuestion<T>(show_id: string, question_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
167
+ return Requests.processRoute(GameShowsRoute.routes.updateRegistrationQuestion, data, { show_id: show_id, question_id: question_id }, params);
168
+ }
169
+
170
+ /** Archive a question while preserving historical answers and reporting. */
171
+ public static deleteRegistrationQuestion<T>(show_id: string, question_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
172
+ return Requests.processRoute(GameShowsRoute.routes.deleteRegistrationQuestion, {}, { show_id: show_id, question_id: question_id }, params);
173
+ }
174
+
175
+ /** Apply the organizer's exact ordered list of question UUIDs. */
176
+ public static reorderRegistrationQuestions<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
177
+ return Requests.processRoute(GameShowsRoute.routes.reorderRegistrationQuestions, data, { show_id: show_id }, params);
178
+ }
179
+
180
+ /** Review custom answers grouped by submitted game. */
181
+ public static listRegistrationResponses<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
182
+ return Requests.processRoute(GameShowsRoute.routes.listRegistrationResponses, {}, { show_id: show_id }, params);
183
+ }
184
+
185
+ /** Retrieve type-aware aggregate reports without exposing free-text values. */
186
+ public static registrationQuestionReports<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
187
+ return Requests.processRoute(GameShowsRoute.routes.registrationQuestionReports, {}, { show_id: show_id }, params);
188
+ }
189
+
150
190
  /**
151
191
  * Add a title to a game show by admin.
152
192
  */
@@ -15,6 +15,15 @@ class GameShowsRoute {
15
15
  uploadLogo : {url : '/gameshows/{show_id}/uploadLogo', method: HTTP_METHODS.POST},
16
16
  uploadBannerImage : {url : '/gameshows/{show_id}/uploadBannerImage', method: HTTP_METHODS.POST},
17
17
  registerTitle: { url: '/gameshows/{show_id}/registerTitle', method: HTTP_METHODS.POST },
18
+ // Schema-driven developer registration questions and organizer reports.
19
+ listRegistrationQuestions: { url: '/gameshows/{show_id}/registration-questions', method: HTTP_METHODS.GET },
20
+ manageRegistrationQuestions: { url: '/gameshows/{show_id}/registration-form/questions', method: HTTP_METHODS.GET },
21
+ createRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions', method: HTTP_METHODS.POST },
22
+ updateRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions/{question_id}', method: HTTP_METHODS.PUT },
23
+ deleteRegistrationQuestion: { url: '/gameshows/{show_id}/registration-form/questions/{question_id}', method: HTTP_METHODS.DELETE },
24
+ reorderRegistrationQuestions: { url: '/gameshows/{show_id}/registration-form/questions/reorder', method: HTTP_METHODS.POST },
25
+ listRegistrationResponses: { url: '/gameshows/{show_id}/registration-form/responses', method: HTTP_METHODS.GET },
26
+ registrationQuestionReports: { url: '/gameshows/{show_id}/registration-form/reports', method: HTTP_METHODS.GET },
18
27
  listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
19
28
  addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
20
29
  // External registration file preview/import endpoints.