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
|
@@ -12,6 +12,12 @@ export interface GameShowScheduleTicketTypeInput {
|
|
|
12
12
|
sort_order?: number;
|
|
13
13
|
is_active?: boolean;
|
|
14
14
|
}
|
|
15
|
+
export interface GameShowFestivalTicketTypeInput extends GameShowScheduleTicketTypeInput {
|
|
16
|
+
scope: 'session' | 'festival' | 'track' | 'bundle';
|
|
17
|
+
schedule_item_id?: string | null;
|
|
18
|
+
track_block_id?: string | null;
|
|
19
|
+
schedule_item_ids?: string[] | null;
|
|
20
|
+
}
|
|
15
21
|
export interface GameShowScheduleTicketPurchaseInput {
|
|
16
22
|
ticket_type_id: string;
|
|
17
23
|
email: string;
|
|
@@ -201,6 +207,26 @@ declare class GameShows {
|
|
|
201
207
|
* Delete a schedule item from a game show. Requires organizer permissions.
|
|
202
208
|
*/
|
|
203
209
|
static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
210
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
211
|
+
static listFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
212
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
213
|
+
static manageFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
214
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
215
|
+
static createFestivalTicketType<T>(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
216
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
217
|
+
static updateFestivalTicketType<T>(show_id: string, ticket_type_id: string, data: Partial<GameShowFestivalTicketTypeInput>, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
218
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
219
|
+
static deleteFestivalTicketType<T>(show_id: string, ticket_type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
220
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
221
|
+
static purchaseFestivalTickets<T>(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
222
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
223
|
+
static confirmFestivalTicketPurchase<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
224
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
225
|
+
static getFestivalTicketReceipt<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
226
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
227
|
+
static listFestivalTicketPurchases<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
228
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
229
|
+
static refundFestivalTicketPurchase<T>(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
204
230
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
205
231
|
static listScheduleTicketTypes<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
206
232
|
/** List every ticket tier, including archived tiers, for festival organizers. */
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -628,6 +628,8 @@ declare class Titles {
|
|
|
628
628
|
* @param params Optional pagination parameters (?page=1&per_page=25)
|
|
629
629
|
*/
|
|
630
630
|
static myWishlists<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
631
|
+
/** Look up the current user's wishlist rows for up to 100 title UUIDs. */
|
|
632
|
+
static lookupMyWishlists<T>(title_ids: string[]): AxiosPromise<Response<T>>;
|
|
631
633
|
/**
|
|
632
634
|
* Get Wishlist Intelligence statistics for a title.
|
|
633
635
|
* Includes funnel data and predictive revenue forecasting.
|
package/dist/esm/index.js
CHANGED
|
@@ -12366,6 +12366,10 @@ TitlesRoute.routes = {
|
|
|
12366
12366
|
url: '/users/me/wishlists',
|
|
12367
12367
|
method: HTTP_METHODS.GET
|
|
12368
12368
|
},
|
|
12369
|
+
lookupMyWishlists: {
|
|
12370
|
+
url: '/users/me/wishlists/lookup',
|
|
12371
|
+
method: HTTP_METHODS.POST
|
|
12372
|
+
},
|
|
12369
12373
|
wishlistMe: {
|
|
12370
12374
|
url: '/titles/{title_id}/wishlist/me',
|
|
12371
12375
|
method: HTTP_METHODS.GET
|
|
@@ -13172,6 +13176,10 @@ class Titles {
|
|
|
13172
13176
|
static myWishlists(params) {
|
|
13173
13177
|
return Requests.processRoute(TitlesRoute.routes.myWishlists, undefined, undefined, params);
|
|
13174
13178
|
}
|
|
13179
|
+
/** Look up the current user's wishlist rows for up to 100 title UUIDs. */
|
|
13180
|
+
static lookupMyWishlists(title_ids) {
|
|
13181
|
+
return Requests.processRoute(TitlesRoute.routes.lookupMyWishlists, { title_ids });
|
|
13182
|
+
}
|
|
13175
13183
|
/**
|
|
13176
13184
|
* Get Wishlist Intelligence statistics for a title.
|
|
13177
13185
|
* Includes funnel data and predictive revenue forecasting.
|
|
@@ -15246,6 +15254,16 @@ GameShowsRoute.routes = {
|
|
|
15246
15254
|
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
15247
15255
|
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
15248
15256
|
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
15257
|
+
listFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
15258
|
+
manageFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
15259
|
+
createFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
15260
|
+
updateFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
|
|
15261
|
+
deleteFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
|
|
15262
|
+
purchaseFestivalTickets: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.POST },
|
|
15263
|
+
confirmFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
|
|
15264
|
+
getFestivalTicketReceipt: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
|
|
15265
|
+
listFestivalTicketPurchases: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.GET },
|
|
15266
|
+
refundFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
|
|
15249
15267
|
listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
15250
15268
|
manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
15251
15269
|
createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
@@ -15556,6 +15574,46 @@ class GameShows {
|
|
|
15556
15574
|
static deleteScheduleItem(show_id, schedule_id, params) {
|
|
15557
15575
|
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
15558
15576
|
}
|
|
15577
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
15578
|
+
static listFestivalTicketTypes(show_id, params) {
|
|
15579
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketTypes, {}, { show_id }, params);
|
|
15580
|
+
}
|
|
15581
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
15582
|
+
static manageFestivalTicketTypes(show_id, params) {
|
|
15583
|
+
return Requests.processRoute(GameShowsRoute.routes.manageFestivalTicketTypes, {}, { show_id }, params);
|
|
15584
|
+
}
|
|
15585
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
15586
|
+
static createFestivalTicketType(show_id, data, params) {
|
|
15587
|
+
return Requests.processRoute(GameShowsRoute.routes.createFestivalTicketType, data, { show_id }, params);
|
|
15588
|
+
}
|
|
15589
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
15590
|
+
static updateFestivalTicketType(show_id, ticket_type_id, data, params) {
|
|
15591
|
+
return Requests.processRoute(GameShowsRoute.routes.updateFestivalTicketType, data, { show_id, ticket_type_id }, params);
|
|
15592
|
+
}
|
|
15593
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
15594
|
+
static deleteFestivalTicketType(show_id, ticket_type_id, params) {
|
|
15595
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteFestivalTicketType, {}, { show_id, ticket_type_id }, params);
|
|
15596
|
+
}
|
|
15597
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
15598
|
+
static purchaseFestivalTickets(show_id, data, params) {
|
|
15599
|
+
return Requests.processRoute(GameShowsRoute.routes.purchaseFestivalTickets, data, { show_id }, params);
|
|
15600
|
+
}
|
|
15601
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
15602
|
+
static confirmFestivalTicketPurchase(show_id, purchase_id, access_token, params) {
|
|
15603
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmFestivalTicketPurchase, { access_token }, { show_id, purchase_id }, params);
|
|
15604
|
+
}
|
|
15605
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
15606
|
+
static getFestivalTicketReceipt(show_id, purchase_id, access_token, params) {
|
|
15607
|
+
return Requests.processRoute(GameShowsRoute.routes.getFestivalTicketReceipt, {}, { show_id, purchase_id }, Object.assign(Object.assign({}, params), { access_token }));
|
|
15608
|
+
}
|
|
15609
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
15610
|
+
static listFestivalTicketPurchases(show_id, params) {
|
|
15611
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketPurchases, {}, { show_id }, params);
|
|
15612
|
+
}
|
|
15613
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
15614
|
+
static refundFestivalTicketPurchase(show_id, purchase_id, data, params) {
|
|
15615
|
+
return Requests.processRoute(GameShowsRoute.routes.refundFestivalTicketPurchase, data, { show_id, purchase_id }, params);
|
|
15616
|
+
}
|
|
15559
15617
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
15560
15618
|
static listScheduleTicketTypes(show_id, schedule_id, params) {
|
|
15561
15619
|
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id, schedule_id }, params);
|