glitch-javascript-sdk 3.10.6 → 3.10.8
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 +63 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +48 -0
- package/dist/esm/api/Titles.d.ts +2 -0
- package/dist/esm/index.js +63 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +35 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +81 -0
- package/src/api/Titles.ts +5 -0
- package/src/routes/GameShowsRoute.ts +11 -0
- package/src/routes/TitlesRoute.ts +4 -0
package/dist/cjs/index.js
CHANGED
|
@@ -30212,6 +30212,10 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
30212
30212
|
url: '/users/me/wishlists',
|
|
30213
30213
|
method: HTTP_METHODS.GET
|
|
30214
30214
|
},
|
|
30215
|
+
lookupMyWishlists: {
|
|
30216
|
+
url: '/users/me/wishlists/lookup',
|
|
30217
|
+
method: HTTP_METHODS.POST
|
|
30218
|
+
},
|
|
30215
30219
|
wishlistMe: {
|
|
30216
30220
|
url: '/titles/{title_id}/wishlist/me',
|
|
30217
30221
|
method: HTTP_METHODS.GET
|
|
@@ -31022,6 +31026,10 @@ var Titles = /** @class */ (function () {
|
|
|
31022
31026
|
Titles.myWishlists = function (params) {
|
|
31023
31027
|
return Requests.processRoute(TitlesRoute.routes.myWishlists, undefined, undefined, params);
|
|
31024
31028
|
};
|
|
31029
|
+
/** Look up the current user's wishlist rows for up to 100 title UUIDs. */
|
|
31030
|
+
Titles.lookupMyWishlists = function (title_ids) {
|
|
31031
|
+
return Requests.processRoute(TitlesRoute.routes.lookupMyWishlists, { title_ids: title_ids });
|
|
31032
|
+
};
|
|
31025
31033
|
/**
|
|
31026
31034
|
* Get Wishlist Intelligence statistics for a title.
|
|
31027
31035
|
* Includes funnel data and predictive revenue forecasting.
|
|
@@ -33118,6 +33126,7 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
33118
33126
|
registrationQuestionReports: { url: '/gameshows/{show_id}/registration-form/reports', method: HTTP_METHODS.GET },
|
|
33119
33127
|
listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
|
|
33120
33128
|
addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
|
|
33129
|
+
searchTitleCandidates: { url: '/gameshows/{show_id}/title-candidates', method: HTTP_METHODS.GET },
|
|
33121
33130
|
// External registration file preview/import endpoints.
|
|
33122
33131
|
previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
|
|
33123
33132
|
importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
|
|
@@ -33140,6 +33149,16 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
33140
33149
|
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
33141
33150
|
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
33142
33151
|
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
33152
|
+
listFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
33153
|
+
manageFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
33154
|
+
createFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
33155
|
+
updateFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
|
|
33156
|
+
deleteFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
|
|
33157
|
+
purchaseFestivalTickets: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.POST },
|
|
33158
|
+
confirmFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
|
|
33159
|
+
getFestivalTicketReceipt: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
|
|
33160
|
+
listFestivalTicketPurchases: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.GET },
|
|
33161
|
+
refundFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
|
|
33143
33162
|
listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
33144
33163
|
manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
33145
33164
|
createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
@@ -33357,6 +33376,10 @@ var GameShows = /** @class */ (function () {
|
|
|
33357
33376
|
GameShows.addTitle = function (show_id, data, params) {
|
|
33358
33377
|
return Requests.processRoute(GameShowsRoute.routes.addTitle, data, { show_id: show_id }, params);
|
|
33359
33378
|
};
|
|
33379
|
+
/** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */
|
|
33380
|
+
GameShows.searchTitleCandidates = function (show_id, params) {
|
|
33381
|
+
return Requests.processRoute(GameShowsRoute.routes.searchTitleCandidates, {}, { show_id: show_id }, params);
|
|
33382
|
+
};
|
|
33360
33383
|
/** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
|
|
33361
33384
|
GameShows.previewExternalTitles = function (show_id, file, data, params) {
|
|
33362
33385
|
// Multipart helpers require the concrete URL before uploading.
|
|
@@ -33454,6 +33477,46 @@ var GameShows = /** @class */ (function () {
|
|
|
33454
33477
|
GameShows.deleteScheduleItem = function (show_id, schedule_id, params) {
|
|
33455
33478
|
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
33456
33479
|
};
|
|
33480
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
33481
|
+
GameShows.listFestivalTicketTypes = function (show_id, params) {
|
|
33482
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketTypes, {}, { show_id: show_id }, params);
|
|
33483
|
+
};
|
|
33484
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
33485
|
+
GameShows.manageFestivalTicketTypes = function (show_id, params) {
|
|
33486
|
+
return Requests.processRoute(GameShowsRoute.routes.manageFestivalTicketTypes, {}, { show_id: show_id }, params);
|
|
33487
|
+
};
|
|
33488
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
33489
|
+
GameShows.createFestivalTicketType = function (show_id, data, params) {
|
|
33490
|
+
return Requests.processRoute(GameShowsRoute.routes.createFestivalTicketType, data, { show_id: show_id }, params);
|
|
33491
|
+
};
|
|
33492
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
33493
|
+
GameShows.updateFestivalTicketType = function (show_id, ticket_type_id, data, params) {
|
|
33494
|
+
return Requests.processRoute(GameShowsRoute.routes.updateFestivalTicketType, data, { show_id: show_id, ticket_type_id: ticket_type_id }, params);
|
|
33495
|
+
};
|
|
33496
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
33497
|
+
GameShows.deleteFestivalTicketType = function (show_id, ticket_type_id, params) {
|
|
33498
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteFestivalTicketType, {}, { show_id: show_id, ticket_type_id: ticket_type_id }, params);
|
|
33499
|
+
};
|
|
33500
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
33501
|
+
GameShows.purchaseFestivalTickets = function (show_id, data, params) {
|
|
33502
|
+
return Requests.processRoute(GameShowsRoute.routes.purchaseFestivalTickets, data, { show_id: show_id }, params);
|
|
33503
|
+
};
|
|
33504
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
33505
|
+
GameShows.confirmFestivalTicketPurchase = function (show_id, purchase_id, access_token, params) {
|
|
33506
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmFestivalTicketPurchase, { access_token: access_token }, { show_id: show_id, purchase_id: purchase_id }, params);
|
|
33507
|
+
};
|
|
33508
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
33509
|
+
GameShows.getFestivalTicketReceipt = function (show_id, purchase_id, access_token, params) {
|
|
33510
|
+
return Requests.processRoute(GameShowsRoute.routes.getFestivalTicketReceipt, {}, { show_id: show_id, purchase_id: purchase_id }, __assign(__assign({}, params), { access_token: access_token }));
|
|
33511
|
+
};
|
|
33512
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
33513
|
+
GameShows.listFestivalTicketPurchases = function (show_id, params) {
|
|
33514
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketPurchases, {}, { show_id: show_id }, params);
|
|
33515
|
+
};
|
|
33516
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
33517
|
+
GameShows.refundFestivalTicketPurchase = function (show_id, purchase_id, data, params) {
|
|
33518
|
+
return Requests.processRoute(GameShowsRoute.routes.refundFestivalTicketPurchase, data, { show_id: show_id, purchase_id: purchase_id }, params);
|
|
33519
|
+
};
|
|
33457
33520
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
33458
33521
|
GameShows.listScheduleTicketTypes = function (show_id, schedule_id, params) {
|
|
33459
33522
|
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|