glitch-javascript-sdk 3.5.0 → 3.5.2
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 +35 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +24 -0
- package/dist/esm/index.js +35 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +35 -0
- package/src/routes/GameShowsRoute.ts +6 -0
package/dist/cjs/index.js
CHANGED
|
@@ -27032,6 +27032,11 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
27032
27032
|
// External registration file preview/import endpoints.
|
|
27033
27033
|
previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
|
|
27034
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 },
|
|
27035
27040
|
viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
|
|
27036
27041
|
updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
|
|
27037
27042
|
deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
|
|
@@ -27048,6 +27053,7 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
27048
27053
|
trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
|
|
27049
27054
|
analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
|
|
27050
27055
|
joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
|
|
27056
|
+
confirmWishlist: { url: '/gameshows/wishlist/confirm/{token}', method: HTTP_METHODS.GET },
|
|
27051
27057
|
listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
|
|
27052
27058
|
listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
|
|
27053
27059
|
// Organizer sponsor lifecycle and placement administration.
|
|
@@ -27346,6 +27352,15 @@ var GameShows = /** @class */ (function () {
|
|
|
27346
27352
|
GameShows.joinWishlist = function (show_id, data, params) {
|
|
27347
27353
|
return Requests.processRoute(GameShowsRoute.routes.joinWishlist, data, { show_id: show_id }, params);
|
|
27348
27354
|
};
|
|
27355
|
+
/**
|
|
27356
|
+
* Confirm the double-opt-in token from a festival reminder email.
|
|
27357
|
+
* The response contains confirmation state and festival identity only.
|
|
27358
|
+
*
|
|
27359
|
+
* @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist
|
|
27360
|
+
*/
|
|
27361
|
+
GameShows.confirmWishlist = function (token, params) {
|
|
27362
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmWishlist, {}, { token: token }, params);
|
|
27363
|
+
};
|
|
27349
27364
|
/**
|
|
27350
27365
|
* List notification signups for a game show. Requires organizer permissions.
|
|
27351
27366
|
*/
|
|
@@ -27358,6 +27373,26 @@ var GameShows = /** @class */ (function () {
|
|
|
27358
27373
|
GameShows.listForTitle = function (title_id, params) {
|
|
27359
27374
|
return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
|
|
27360
27375
|
};
|
|
27376
|
+
/** List organizer-visible developer claim and completion workflows. */
|
|
27377
|
+
GameShows.listTitleClaims = function (show_id, params) {
|
|
27378
|
+
return Requests.processRoute(GameShowsRoute.routes.listTitleClaims, {}, { show_id: show_id }, params);
|
|
27379
|
+
};
|
|
27380
|
+
/** Invite or remind a developer to claim and complete a festival game. */
|
|
27381
|
+
GameShows.inviteTitleClaim = function (show_id, title_id, data, params) {
|
|
27382
|
+
return Requests.processRoute(GameShowsRoute.routes.inviteTitleClaim, data, { show_id: show_id, title_id: title_id }, params);
|
|
27383
|
+
};
|
|
27384
|
+
/** Open a private festival game claim before authentication. */
|
|
27385
|
+
GameShows.viewTitleClaim = function (show_id, token, params) {
|
|
27386
|
+
return Requests.processRoute(GameShowsRoute.routes.viewTitleClaim, {}, { show_id: show_id, token: token }, params);
|
|
27387
|
+
};
|
|
27388
|
+
/** Bind the invited game to the current user and one administered business. */
|
|
27389
|
+
GameShows.claimTitle = function (show_id, token, data, params) {
|
|
27390
|
+
return Requests.processRoute(GameShowsRoute.routes.claimTitle, data, { show_id: show_id, token: token }, params);
|
|
27391
|
+
};
|
|
27392
|
+
/** Finish required game information and record the optional build choice. */
|
|
27393
|
+
GameShows.completeTitleClaim = function (show_id, token, data, params) {
|
|
27394
|
+
return Requests.processRoute(GameShowsRoute.routes.completeTitleClaim, data, { show_id: show_id, token: token }, params);
|
|
27395
|
+
};
|
|
27361
27396
|
/** List private sponsor workflow, contact, billing, media, and placements. */
|
|
27362
27397
|
GameShows.listSponsors = function (show_id, params) {
|
|
27363
27398
|
return Requests.processRoute(GameShowsRoute.routes.listSponsors, {}, { show_id: show_id }, params);
|