glitch-javascript-sdk 3.4.1 → 3.5.1

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
  */
@@ -6285,6 +6301,23 @@ declare class GameShows {
6285
6301
  * List public game shows that include a title. Useful for game-page festival banners.
6286
6302
  */
6287
6303
  static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6304
+ /** List organizer-visible developer claim and completion workflows. */
6305
+ static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6306
+ /** Invite or remind a developer to claim and complete a festival game. */
6307
+ static inviteTitleClaim<T>(show_id: string, title_id: string, data: {
6308
+ email: string;
6309
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6310
+ /** Open a private festival game claim before authentication. */
6311
+ static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6312
+ /** Bind the invited game to the current user and one administered business. */
6313
+ static claimTitle<T>(show_id: string, token: string, data: {
6314
+ community_id: string;
6315
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6316
+ /** Finish required game information and record the optional build choice. */
6317
+ static completeTitleClaim<T>(show_id: string, token: string, data: {
6318
+ build_choice: 'upload' | 'skip';
6319
+ build_completed?: boolean;
6320
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6288
6321
  /** List private sponsor workflow, contact, billing, media, and placements. */
6289
6322
  static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6290
6323
  /** Create a manual sponsor or send a self-service invitation. */
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.1",
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
  */
@@ -300,6 +340,31 @@ class GameShows {
300
340
  return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
301
341
  }
302
342
 
343
+ /** List organizer-visible developer claim and completion workflows. */
344
+ public static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
345
+ return Requests.processRoute(GameShowsRoute.routes.listTitleClaims, {}, { show_id }, params);
346
+ }
347
+
348
+ /** Invite or remind a developer to claim and complete a festival game. */
349
+ public static inviteTitleClaim<T>(show_id: string, title_id: string, data: { email: string }, params?: Record<string, any>): AxiosPromise<Response<T>> {
350
+ return Requests.processRoute(GameShowsRoute.routes.inviteTitleClaim, data, { show_id, title_id }, params);
351
+ }
352
+
353
+ /** Open a private festival game claim before authentication. */
354
+ public static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
355
+ return Requests.processRoute(GameShowsRoute.routes.viewTitleClaim, {}, { show_id, token }, params);
356
+ }
357
+
358
+ /** Bind the invited game to the current user and one administered business. */
359
+ public static claimTitle<T>(show_id: string, token: string, data: { community_id: string }, params?: Record<string, any>): AxiosPromise<Response<T>> {
360
+ return Requests.processRoute(GameShowsRoute.routes.claimTitle, data, { show_id, token }, params);
361
+ }
362
+
363
+ /** Finish required game information and record the optional build choice. */
364
+ public static completeTitleClaim<T>(show_id: string, token: string, data: { build_choice: 'upload' | 'skip'; build_completed?: boolean }, params?: Record<string, any>): AxiosPromise<Response<T>> {
365
+ return Requests.processRoute(GameShowsRoute.routes.completeTitleClaim, data, { show_id, token }, params);
366
+ }
367
+
303
368
  /** List private sponsor workflow, contact, billing, media, and placements. */
304
369
  public static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
305
370
  return Requests.processRoute(GameShowsRoute.routes.listSponsors, {}, { show_id }, params);
@@ -15,11 +15,25 @@ 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.
21
30
  previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
22
31
  importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
32
+ listTitleClaims: { url: '/gameshows/{show_id}/title-claims', method: HTTP_METHODS.GET },
33
+ inviteTitleClaim: { url: '/gameshows/{show_id}/titles/{title_id}/claim-invitation', method: HTTP_METHODS.POST },
34
+ viewTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}', method: HTTP_METHODS.GET },
35
+ claimTitle: { url: '/gameshows/{show_id}/title-claims/{token}/claim', method: HTTP_METHODS.POST },
36
+ completeTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}/complete', method: HTTP_METHODS.POST },
23
37
  viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
24
38
  updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
25
39
  deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },