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/index.d.ts
CHANGED
|
@@ -4731,6 +4731,8 @@ declare class Titles {
|
|
|
4731
4731
|
* @param params Optional pagination parameters (?page=1&per_page=25)
|
|
4732
4732
|
*/
|
|
4733
4733
|
static myWishlists<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4734
|
+
/** Look up the current user's wishlist rows for up to 100 title UUIDs. */
|
|
4735
|
+
static lookupMyWishlists<T>(title_ids: string[]): AxiosPromise<Response<T>>;
|
|
4734
4736
|
/**
|
|
4735
4737
|
* Get Wishlist Intelligence statistics for a title.
|
|
4736
4738
|
* Includes funnel data and predictive revenue forecasting.
|
|
@@ -6252,6 +6254,12 @@ interface GameShowScheduleTicketTypeInput {
|
|
|
6252
6254
|
sort_order?: number;
|
|
6253
6255
|
is_active?: boolean;
|
|
6254
6256
|
}
|
|
6257
|
+
interface GameShowFestivalTicketTypeInput extends GameShowScheduleTicketTypeInput {
|
|
6258
|
+
scope: 'session' | 'festival' | 'track' | 'bundle';
|
|
6259
|
+
schedule_item_id?: string | null;
|
|
6260
|
+
track_block_id?: string | null;
|
|
6261
|
+
schedule_item_ids?: string[] | null;
|
|
6262
|
+
}
|
|
6255
6263
|
interface GameShowScheduleTicketPurchaseInput {
|
|
6256
6264
|
ticket_type_id: string;
|
|
6257
6265
|
email: string;
|
|
@@ -6441,6 +6449,26 @@ declare class GameShows {
|
|
|
6441
6449
|
* Delete a schedule item from a game show. Requires organizer permissions.
|
|
6442
6450
|
*/
|
|
6443
6451
|
static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6452
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
6453
|
+
static listFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6454
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
6455
|
+
static manageFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6456
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
6457
|
+
static createFestivalTicketType<T>(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6458
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
6459
|
+
static updateFestivalTicketType<T>(show_id: string, ticket_type_id: string, data: Partial<GameShowFestivalTicketTypeInput>, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6460
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
6461
|
+
static deleteFestivalTicketType<T>(show_id: string, ticket_type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6462
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
6463
|
+
static purchaseFestivalTickets<T>(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6464
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
6465
|
+
static confirmFestivalTicketPurchase<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6466
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
6467
|
+
static getFestivalTicketReceipt<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6468
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
6469
|
+
static listFestivalTicketPurchases<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6470
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
6471
|
+
static refundFestivalTicketPurchase<T>(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6444
6472
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
6445
6473
|
static listScheduleTicketTypes<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6446
6474
|
/** List every ticket tier, including archived tiers, for festival organizers. */
|
package/package.json
CHANGED
package/src/api/GameShows.ts
CHANGED
|
@@ -16,6 +16,13 @@ export interface GameShowScheduleTicketTypeInput {
|
|
|
16
16
|
is_active?: boolean;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
export interface GameShowFestivalTicketTypeInput extends GameShowScheduleTicketTypeInput {
|
|
20
|
+
scope: 'session' | 'festival' | 'track' | 'bundle';
|
|
21
|
+
schedule_item_id?: string | null;
|
|
22
|
+
track_block_id?: string | null;
|
|
23
|
+
schedule_item_ids?: string[] | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
export interface GameShowScheduleTicketPurchaseInput {
|
|
20
27
|
ticket_type_id: string;
|
|
21
28
|
email: string;
|
|
@@ -335,6 +342,56 @@ class GameShows {
|
|
|
335
342
|
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
336
343
|
}
|
|
337
344
|
|
|
345
|
+
/** List public festival, track, bundle, and single-session ticket products. */
|
|
346
|
+
public static listFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
347
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketTypes, {}, { show_id }, params);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/** List all festival ticket products, including archived products, for organizers. */
|
|
351
|
+
public static manageFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
352
|
+
return Requests.processRoute(GameShowsRoute.routes.manageFestivalTicketTypes, {}, { show_id }, params);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/** Create a whole-festival pass, track pass, event bundle, or session ticket. */
|
|
356
|
+
public static createFestivalTicketType<T>(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
357
|
+
return Requests.processRoute(GameShowsRoute.routes.createFestivalTicketType, data, { show_id }, params);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
|
|
361
|
+
public static updateFestivalTicketType<T>(show_id: string, ticket_type_id: string, data: Partial<GameShowFestivalTicketTypeInput>, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
362
|
+
return Requests.processRoute(GameShowsRoute.routes.updateFestivalTicketType, data, { show_id, ticket_type_id }, params);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/** Archive a festival ticket product while retaining purchase history. */
|
|
366
|
+
public static deleteFestivalTicketType<T>(show_id: string, ticket_type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
367
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteFestivalTicketType, {}, { show_id, ticket_type_id }, params);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/** Reserve inventory and create or confirm a festival-level ticket payment. */
|
|
371
|
+
public static purchaseFestivalTickets<T>(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
372
|
+
return Requests.processRoute(GameShowsRoute.routes.purchaseFestivalTickets, data, { show_id }, params);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
|
|
376
|
+
public static confirmFestivalTicketPurchase<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
377
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmFestivalTicketPurchase, { access_token }, { show_id, purchase_id }, params);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/** Retrieve a token-protected receipt for any festival ticket scope. */
|
|
381
|
+
public static getFestivalTicketReceipt<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
382
|
+
return Requests.processRoute(GameShowsRoute.routes.getFestivalTicketReceipt, {}, { show_id, purchase_id }, { ...params, access_token });
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/** List purchasers across festival, track, bundle, and session ticket products. */
|
|
386
|
+
public static listFestivalTicketPurchases<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
387
|
+
return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketPurchases, {}, { show_id }, params);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/** Issue a partial or full refund for a festival ticket purchase. */
|
|
391
|
+
public static refundFestivalTicketPurchase<T>(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
392
|
+
return Requests.processRoute(GameShowsRoute.routes.refundFestivalTicketPurchase, data, { show_id, purchase_id }, params);
|
|
393
|
+
}
|
|
394
|
+
|
|
338
395
|
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
339
396
|
public static listScheduleTicketTypes<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
340
397
|
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id, schedule_id }, params);
|
package/src/api/Titles.ts
CHANGED
|
@@ -1148,6 +1148,11 @@ class Titles {
|
|
|
1148
1148
|
return Requests.processRoute(TitlesRoute.routes.myWishlists, undefined, undefined, params);
|
|
1149
1149
|
}
|
|
1150
1150
|
|
|
1151
|
+
/** Look up the current user's wishlist rows for up to 100 title UUIDs. */
|
|
1152
|
+
public static lookupMyWishlists<T>(title_ids: string[]): AxiosPromise<Response<T>> {
|
|
1153
|
+
return Requests.processRoute(TitlesRoute.routes.lookupMyWishlists, { title_ids });
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1151
1156
|
/**
|
|
1152
1157
|
* Get Wishlist Intelligence statistics for a title.
|
|
1153
1158
|
* Includes funnel data and predictive revenue forecasting.
|
|
@@ -48,6 +48,16 @@ class GameShowsRoute {
|
|
|
48
48
|
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
49
49
|
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
50
50
|
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
51
|
+
listFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
52
|
+
manageFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
53
|
+
createFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
54
|
+
updateFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
|
|
55
|
+
deleteFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
|
|
56
|
+
purchaseFestivalTickets: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.POST },
|
|
57
|
+
confirmFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
|
|
58
|
+
getFestivalTicketReceipt: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
|
|
59
|
+
listFestivalTicketPurchases: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.GET },
|
|
60
|
+
refundFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
|
|
51
61
|
listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
52
62
|
manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
53
63
|
createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
@@ -225,6 +225,10 @@ class TitlesRoute {
|
|
|
225
225
|
url: '/users/me/wishlists',
|
|
226
226
|
method: HTTP_METHODS.GET
|
|
227
227
|
},
|
|
228
|
+
lookupMyWishlists: {
|
|
229
|
+
url: '/users/me/wishlists/lookup',
|
|
230
|
+
method: HTTP_METHODS.POST
|
|
231
|
+
},
|
|
228
232
|
|
|
229
233
|
wishlistMe: {
|
|
230
234
|
url: '/titles/{title_id}/wishlist/me',
|