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/cjs/index.js CHANGED
@@ -27018,11 +27018,25 @@ 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.
27024
27033
  previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
27025
27034
  importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
27035
+ listTitleClaims: { url: '/gameshows/{show_id}/title-claims', method: HTTP_METHODS.GET },
27036
+ inviteTitleClaim: { url: '/gameshows/{show_id}/titles/{title_id}/claim-invitation', method: HTTP_METHODS.POST },
27037
+ viewTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}', method: HTTP_METHODS.GET },
27038
+ claimTitle: { url: '/gameshows/{show_id}/title-claims/{token}/claim', method: HTTP_METHODS.POST },
27039
+ completeTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}/complete', method: HTTP_METHODS.POST },
27026
27040
  viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
27027
27041
  updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
27028
27042
  deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
@@ -27186,6 +27200,38 @@ var GameShows = /** @class */ (function () {
27186
27200
  GameShows.registerTitle = function (show_id, data, params) {
27187
27201
  return Requests.processRoute(GameShowsRoute.routes.registerTitle, data, { show_id: show_id }, params);
27188
27202
  };
27203
+ /** List the active ordered custom-question schema used by public registration. */
27204
+ GameShows.listRegistrationQuestions = function (show_id, params) {
27205
+ return Requests.processRoute(GameShowsRoute.routes.listRegistrationQuestions, {}, { show_id: show_id }, params);
27206
+ };
27207
+ /** List active, inactive, and archived custom questions for organizers. */
27208
+ GameShows.manageRegistrationQuestions = function (show_id, params) {
27209
+ return Requests.processRoute(GameShowsRoute.routes.manageRegistrationQuestions, {}, { show_id: show_id }, params);
27210
+ };
27211
+ /** Create one schema-driven custom developer-registration question. */
27212
+ GameShows.createRegistrationQuestion = function (show_id, data, params) {
27213
+ return Requests.processRoute(GameShowsRoute.routes.createRegistrationQuestion, data, { show_id: show_id }, params);
27214
+ };
27215
+ /** Update wording, validation, visibility, ordering, or stable choices. */
27216
+ GameShows.updateRegistrationQuestion = function (show_id, question_id, data, params) {
27217
+ return Requests.processRoute(GameShowsRoute.routes.updateRegistrationQuestion, data, { show_id: show_id, question_id: question_id }, params);
27218
+ };
27219
+ /** Archive a question while preserving historical answers and reporting. */
27220
+ GameShows.deleteRegistrationQuestion = function (show_id, question_id, params) {
27221
+ return Requests.processRoute(GameShowsRoute.routes.deleteRegistrationQuestion, {}, { show_id: show_id, question_id: question_id }, params);
27222
+ };
27223
+ /** Apply the organizer's exact ordered list of question UUIDs. */
27224
+ GameShows.reorderRegistrationQuestions = function (show_id, data, params) {
27225
+ return Requests.processRoute(GameShowsRoute.routes.reorderRegistrationQuestions, data, { show_id: show_id }, params);
27226
+ };
27227
+ /** Review custom answers grouped by submitted game. */
27228
+ GameShows.listRegistrationResponses = function (show_id, params) {
27229
+ return Requests.processRoute(GameShowsRoute.routes.listRegistrationResponses, {}, { show_id: show_id }, params);
27230
+ };
27231
+ /** Retrieve type-aware aggregate reports without exposing free-text values. */
27232
+ GameShows.registrationQuestionReports = function (show_id, params) {
27233
+ return Requests.processRoute(GameShowsRoute.routes.registrationQuestionReports, {}, { show_id: show_id }, params);
27234
+ };
27189
27235
  /**
27190
27236
  * Add a title to a game show by admin.
27191
27237
  */
@@ -27317,6 +27363,26 @@ var GameShows = /** @class */ (function () {
27317
27363
  GameShows.listForTitle = function (title_id, params) {
27318
27364
  return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
27319
27365
  };
27366
+ /** List organizer-visible developer claim and completion workflows. */
27367
+ GameShows.listTitleClaims = function (show_id, params) {
27368
+ return Requests.processRoute(GameShowsRoute.routes.listTitleClaims, {}, { show_id: show_id }, params);
27369
+ };
27370
+ /** Invite or remind a developer to claim and complete a festival game. */
27371
+ GameShows.inviteTitleClaim = function (show_id, title_id, data, params) {
27372
+ return Requests.processRoute(GameShowsRoute.routes.inviteTitleClaim, data, { show_id: show_id, title_id: title_id }, params);
27373
+ };
27374
+ /** Open a private festival game claim before authentication. */
27375
+ GameShows.viewTitleClaim = function (show_id, token, params) {
27376
+ return Requests.processRoute(GameShowsRoute.routes.viewTitleClaim, {}, { show_id: show_id, token: token }, params);
27377
+ };
27378
+ /** Bind the invited game to the current user and one administered business. */
27379
+ GameShows.claimTitle = function (show_id, token, data, params) {
27380
+ return Requests.processRoute(GameShowsRoute.routes.claimTitle, data, { show_id: show_id, token: token }, params);
27381
+ };
27382
+ /** Finish required game information and record the optional build choice. */
27383
+ GameShows.completeTitleClaim = function (show_id, token, data, params) {
27384
+ return Requests.processRoute(GameShowsRoute.routes.completeTitleClaim, data, { show_id: show_id, token: token }, params);
27385
+ };
27320
27386
  /** List private sponsor workflow, contact, billing, media, and placements. */
27321
27387
  GameShows.listSponsors = function (show_id, params) {
27322
27388
  return Requests.processRoute(GameShowsRoute.routes.listSponsors, {}, { show_id: show_id }, params);