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 +66 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +33 -0
- package/dist/esm/index.js +66 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +33 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +65 -0
- package/src/routes/GameShowsRoute.ts +14 -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
|
*/
|
|
@@ -181,6 +197,23 @@ declare class GameShows {
|
|
|
181
197
|
* List public game shows that include a title. Useful for game-page festival banners.
|
|
182
198
|
*/
|
|
183
199
|
static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
200
|
+
/** List organizer-visible developer claim and completion workflows. */
|
|
201
|
+
static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
202
|
+
/** Invite or remind a developer to claim and complete a festival game. */
|
|
203
|
+
static inviteTitleClaim<T>(show_id: string, title_id: string, data: {
|
|
204
|
+
email: string;
|
|
205
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
206
|
+
/** Open a private festival game claim before authentication. */
|
|
207
|
+
static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
208
|
+
/** Bind the invited game to the current user and one administered business. */
|
|
209
|
+
static claimTitle<T>(show_id: string, token: string, data: {
|
|
210
|
+
community_id: string;
|
|
211
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
212
|
+
/** Finish required game information and record the optional build choice. */
|
|
213
|
+
static completeTitleClaim<T>(show_id: string, token: string, data: {
|
|
214
|
+
build_choice: 'upload' | 'skip';
|
|
215
|
+
build_completed?: boolean;
|
|
216
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
184
217
|
/** List private sponsor workflow, contact, billing, media, and placements. */
|
|
185
218
|
static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
186
219
|
/** Create a manual sponsor or send a self-service invitation. */
|
package/dist/esm/index.js
CHANGED
|
@@ -15020,11 +15020,25 @@ 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.
|
|
15026
15035
|
previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
|
|
15027
15036
|
importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
|
|
15037
|
+
listTitleClaims: { url: '/gameshows/{show_id}/title-claims', method: HTTP_METHODS.GET },
|
|
15038
|
+
inviteTitleClaim: { url: '/gameshows/{show_id}/titles/{title_id}/claim-invitation', method: HTTP_METHODS.POST },
|
|
15039
|
+
viewTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}', method: HTTP_METHODS.GET },
|
|
15040
|
+
claimTitle: { url: '/gameshows/{show_id}/title-claims/{token}/claim', method: HTTP_METHODS.POST },
|
|
15041
|
+
completeTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}/complete', method: HTTP_METHODS.POST },
|
|
15028
15042
|
viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
|
|
15029
15043
|
updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
|
|
15030
15044
|
deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
|
|
@@ -15188,6 +15202,38 @@ var GameShows = /** @class */ (function () {
|
|
|
15188
15202
|
GameShows.registerTitle = function (show_id, data, params) {
|
|
15189
15203
|
return Requests.processRoute(GameShowsRoute.routes.registerTitle, data, { show_id: show_id }, params);
|
|
15190
15204
|
};
|
|
15205
|
+
/** List the active ordered custom-question schema used by public registration. */
|
|
15206
|
+
GameShows.listRegistrationQuestions = function (show_id, params) {
|
|
15207
|
+
return Requests.processRoute(GameShowsRoute.routes.listRegistrationQuestions, {}, { show_id: show_id }, params);
|
|
15208
|
+
};
|
|
15209
|
+
/** List active, inactive, and archived custom questions for organizers. */
|
|
15210
|
+
GameShows.manageRegistrationQuestions = function (show_id, params) {
|
|
15211
|
+
return Requests.processRoute(GameShowsRoute.routes.manageRegistrationQuestions, {}, { show_id: show_id }, params);
|
|
15212
|
+
};
|
|
15213
|
+
/** Create one schema-driven custom developer-registration question. */
|
|
15214
|
+
GameShows.createRegistrationQuestion = function (show_id, data, params) {
|
|
15215
|
+
return Requests.processRoute(GameShowsRoute.routes.createRegistrationQuestion, data, { show_id: show_id }, params);
|
|
15216
|
+
};
|
|
15217
|
+
/** Update wording, validation, visibility, ordering, or stable choices. */
|
|
15218
|
+
GameShows.updateRegistrationQuestion = function (show_id, question_id, data, params) {
|
|
15219
|
+
return Requests.processRoute(GameShowsRoute.routes.updateRegistrationQuestion, data, { show_id: show_id, question_id: question_id }, params);
|
|
15220
|
+
};
|
|
15221
|
+
/** Archive a question while preserving historical answers and reporting. */
|
|
15222
|
+
GameShows.deleteRegistrationQuestion = function (show_id, question_id, params) {
|
|
15223
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteRegistrationQuestion, {}, { show_id: show_id, question_id: question_id }, params);
|
|
15224
|
+
};
|
|
15225
|
+
/** Apply the organizer's exact ordered list of question UUIDs. */
|
|
15226
|
+
GameShows.reorderRegistrationQuestions = function (show_id, data, params) {
|
|
15227
|
+
return Requests.processRoute(GameShowsRoute.routes.reorderRegistrationQuestions, data, { show_id: show_id }, params);
|
|
15228
|
+
};
|
|
15229
|
+
/** Review custom answers grouped by submitted game. */
|
|
15230
|
+
GameShows.listRegistrationResponses = function (show_id, params) {
|
|
15231
|
+
return Requests.processRoute(GameShowsRoute.routes.listRegistrationResponses, {}, { show_id: show_id }, params);
|
|
15232
|
+
};
|
|
15233
|
+
/** Retrieve type-aware aggregate reports without exposing free-text values. */
|
|
15234
|
+
GameShows.registrationQuestionReports = function (show_id, params) {
|
|
15235
|
+
return Requests.processRoute(GameShowsRoute.routes.registrationQuestionReports, {}, { show_id: show_id }, params);
|
|
15236
|
+
};
|
|
15191
15237
|
/**
|
|
15192
15238
|
* Add a title to a game show by admin.
|
|
15193
15239
|
*/
|
|
@@ -15319,6 +15365,26 @@ var GameShows = /** @class */ (function () {
|
|
|
15319
15365
|
GameShows.listForTitle = function (title_id, params) {
|
|
15320
15366
|
return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
|
|
15321
15367
|
};
|
|
15368
|
+
/** List organizer-visible developer claim and completion workflows. */
|
|
15369
|
+
GameShows.listTitleClaims = function (show_id, params) {
|
|
15370
|
+
return Requests.processRoute(GameShowsRoute.routes.listTitleClaims, {}, { show_id: show_id }, params);
|
|
15371
|
+
};
|
|
15372
|
+
/** Invite or remind a developer to claim and complete a festival game. */
|
|
15373
|
+
GameShows.inviteTitleClaim = function (show_id, title_id, data, params) {
|
|
15374
|
+
return Requests.processRoute(GameShowsRoute.routes.inviteTitleClaim, data, { show_id: show_id, title_id: title_id }, params);
|
|
15375
|
+
};
|
|
15376
|
+
/** Open a private festival game claim before authentication. */
|
|
15377
|
+
GameShows.viewTitleClaim = function (show_id, token, params) {
|
|
15378
|
+
return Requests.processRoute(GameShowsRoute.routes.viewTitleClaim, {}, { show_id: show_id, token: token }, params);
|
|
15379
|
+
};
|
|
15380
|
+
/** Bind the invited game to the current user and one administered business. */
|
|
15381
|
+
GameShows.claimTitle = function (show_id, token, data, params) {
|
|
15382
|
+
return Requests.processRoute(GameShowsRoute.routes.claimTitle, data, { show_id: show_id, token: token }, params);
|
|
15383
|
+
};
|
|
15384
|
+
/** Finish required game information and record the optional build choice. */
|
|
15385
|
+
GameShows.completeTitleClaim = function (show_id, token, data, params) {
|
|
15386
|
+
return Requests.processRoute(GameShowsRoute.routes.completeTitleClaim, data, { show_id: show_id, token: token }, params);
|
|
15387
|
+
};
|
|
15322
15388
|
/** List private sponsor workflow, contact, billing, media, and placements. */
|
|
15323
15389
|
GameShows.listSponsors = function (show_id, params) {
|
|
15324
15390
|
return Requests.processRoute(GameShowsRoute.routes.listSponsors, {}, { show_id: show_id }, params);
|