glitch-javascript-sdk 3.10.6 → 3.10.7
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 +58 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +26 -0
- package/dist/esm/api/Titles.d.ts +2 -0
- package/dist/esm/index.js +58 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +28 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +57 -0
- package/src/api/Titles.ts +5 -0
- package/src/routes/GameShowsRoute.ts +10 -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.
|
|
@@ -33140,6 +33148,16 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
33140
33148
|
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
33141
33149
|
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
33142
33150
|
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
33151
|
+
listFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
33152
|
+
manageFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
33153
|
+
createFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
33154
|
+
updateFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
|
|
33155
|
+
deleteFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
|
|
33156
|
+
purchaseFestivalTickets: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.POST },
|
|
33157
|
+
confirmFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
|
|
33158
|
+
getFestivalTicketReceipt: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
|
|
33159
|
+
listFestivalTicketPurchases: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.GET },
|
|
33160
|
+
refundFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
|
|
33143
33161
|
listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
33144
33162
|
manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
33145
33163
|
createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
@@ -33454,6 +33472,46 @@ var GameShows = /** @class */ (function () {
|
|
|
33454
33472
|
GameShows.deleteScheduleItem = function (show_id, schedule_id, params) {
|
|
33455
33473
|
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
33456
33474
|
};
|
|
33475
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
33476
|
+
GameShows.listFestivalTicketTypes = function (show_id, params) {
|
|
33477
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketTypes, {}, { show_id: show_id }, params);
|
|
33478
|
+
};
|
|
33479
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
33480
|
+
GameShows.manageFestivalTicketTypes = function (show_id, params) {
|
|
33481
|
+
return Requests.processRoute(GameShowsRoute.routes.manageFestivalTicketTypes, {}, { show_id: show_id }, params);
|
|
33482
|
+
};
|
|
33483
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
33484
|
+
GameShows.createFestivalTicketType = function (show_id, data, params) {
|
|
33485
|
+
return Requests.processRoute(GameShowsRoute.routes.createFestivalTicketType, data, { show_id: show_id }, params);
|
|
33486
|
+
};
|
|
33487
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
33488
|
+
GameShows.updateFestivalTicketType = function (show_id, ticket_type_id, data, params) {
|
|
33489
|
+
return Requests.processRoute(GameShowsRoute.routes.updateFestivalTicketType, data, { show_id: show_id, ticket_type_id: ticket_type_id }, params);
|
|
33490
|
+
};
|
|
33491
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
33492
|
+
GameShows.deleteFestivalTicketType = function (show_id, ticket_type_id, params) {
|
|
33493
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteFestivalTicketType, {}, { show_id: show_id, ticket_type_id: ticket_type_id }, params);
|
|
33494
|
+
};
|
|
33495
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
33496
|
+
GameShows.purchaseFestivalTickets = function (show_id, data, params) {
|
|
33497
|
+
return Requests.processRoute(GameShowsRoute.routes.purchaseFestivalTickets, data, { show_id: show_id }, params);
|
|
33498
|
+
};
|
|
33499
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
33500
|
+
GameShows.confirmFestivalTicketPurchase = function (show_id, purchase_id, access_token, params) {
|
|
33501
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmFestivalTicketPurchase, { access_token: access_token }, { show_id: show_id, purchase_id: purchase_id }, params);
|
|
33502
|
+
};
|
|
33503
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
33504
|
+
GameShows.getFestivalTicketReceipt = function (show_id, purchase_id, access_token, params) {
|
|
33505
|
+
return Requests.processRoute(GameShowsRoute.routes.getFestivalTicketReceipt, {}, { show_id: show_id, purchase_id: purchase_id }, __assign(__assign({}, params), { access_token: access_token }));
|
|
33506
|
+
};
|
|
33507
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
33508
|
+
GameShows.listFestivalTicketPurchases = function (show_id, params) {
|
|
33509
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketPurchases, {}, { show_id: show_id }, params);
|
|
33510
|
+
};
|
|
33511
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
33512
|
+
GameShows.refundFestivalTicketPurchase = function (show_id, purchase_id, data, params) {
|
|
33513
|
+
return Requests.processRoute(GameShowsRoute.routes.refundFestivalTicketPurchase, data, { show_id: show_id, purchase_id: purchase_id }, params);
|
|
33514
|
+
};
|
|
33457
33515
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
33458
33516
|
GameShows.listScheduleTicketTypes = function (show_id, schedule_id, params) {
|
|
33459
33517
|
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|