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.
@@ -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;
@@ -24,6 +30,26 @@ export interface GameShowScheduleTicketRefundInput {
24
30
  amount_cents: number;
25
31
  reason?: string;
26
32
  }
33
+ export interface GameShowTitleCandidate {
34
+ id: string;
35
+ name: string;
36
+ developer?: string | null;
37
+ publisher?: string | null;
38
+ short_description?: string | null;
39
+ image_main?: string | null;
40
+ image_banner?: string | null;
41
+ is_live: boolean;
42
+ already_in_showcase: boolean;
43
+ community?: {
44
+ id: string;
45
+ name: string;
46
+ } | null;
47
+ }
48
+ export interface GameShowTitleCandidateSearchParams {
49
+ q: string;
50
+ page?: number;
51
+ per_page?: number;
52
+ }
27
53
  declare class GameShows {
28
54
  /**
29
55
  * List all the GameShows.
@@ -141,6 +167,8 @@ declare class GameShows {
141
167
  * Add a title to a game show by admin.
142
168
  */
143
169
  static addTitle<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
170
+ /** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */
171
+ static searchTitleCandidates<T>(show_id: string, params: GameShowTitleCandidateSearchParams): AxiosPromise<Response<T>>;
144
172
  /** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
145
173
  static previewExternalTitles<T>(show_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
146
174
  /** Import valid external registrations after organizer preview. */
@@ -201,6 +229,26 @@ declare class GameShows {
201
229
  * Delete a schedule item from a game show. Requires organizer permissions.
202
230
  */
203
231
  static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
232
+ /** List public festival, track, bundle, and single-session ticket products. */
233
+ static listFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
234
+ /** List all festival ticket products, including archived products, for organizers. */
235
+ static manageFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
236
+ /** Create a whole-festival pass, track pass, event bundle, or session ticket. */
237
+ static createFestivalTicketType<T>(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
238
+ /** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
239
+ static updateFestivalTicketType<T>(show_id: string, ticket_type_id: string, data: Partial<GameShowFestivalTicketTypeInput>, params?: Record<string, any>): AxiosPromise<Response<T>>;
240
+ /** Archive a festival ticket product while retaining purchase history. */
241
+ static deleteFestivalTicketType<T>(show_id: string, ticket_type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
242
+ /** Reserve inventory and create or confirm a festival-level ticket payment. */
243
+ static purchaseFestivalTickets<T>(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
244
+ /** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
245
+ static confirmFestivalTicketPurchase<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
246
+ /** Retrieve a token-protected receipt for any festival ticket scope. */
247
+ static getFestivalTicketReceipt<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
248
+ /** List purchasers across festival, track, bundle, and session ticket products. */
249
+ static listFestivalTicketPurchases<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
250
+ /** Issue a partial or full refund for a festival ticket purchase. */
251
+ static refundFestivalTicketPurchase<T>(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
204
252
  /** List public early-bird, regular, and other ticket tiers for one session. */
205
253
  static listScheduleTicketTypes<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
206
254
  /** List every ticket tier, including archived tiers, for festival organizers. */
@@ -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.
@@ -15224,6 +15232,7 @@ GameShowsRoute.routes = {
15224
15232
  registrationQuestionReports: { url: '/gameshows/{show_id}/registration-form/reports', method: HTTP_METHODS.GET },
15225
15233
  listTitles: { url: '/gameshows/{show_id}/titles', method: HTTP_METHODS.GET },
15226
15234
  addTitle: { url: '/gameshows/{show_id}/addTitle', method: HTTP_METHODS.POST },
15235
+ searchTitleCandidates: { url: '/gameshows/{show_id}/title-candidates', method: HTTP_METHODS.GET },
15227
15236
  // External registration file preview/import endpoints.
15228
15237
  previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
15229
15238
  importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
@@ -15246,6 +15255,16 @@ GameShowsRoute.routes = {
15246
15255
  createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
15247
15256
  updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
15248
15257
  deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
15258
+ listFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.GET },
15259
+ manageFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types/manage', method: HTTP_METHODS.GET },
15260
+ createFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.POST },
15261
+ updateFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
15262
+ deleteFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
15263
+ purchaseFestivalTickets: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.POST },
15264
+ confirmFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
15265
+ getFestivalTicketReceipt: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
15266
+ listFestivalTicketPurchases: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.GET },
15267
+ refundFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
15249
15268
  listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
15250
15269
  manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
15251
15270
  createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
@@ -15459,6 +15478,10 @@ class GameShows {
15459
15478
  static addTitle(show_id, data, params) {
15460
15479
  return Requests.processRoute(GameShowsRoute.routes.addTitle, data, { show_id: show_id }, params);
15461
15480
  }
15481
+ /** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */
15482
+ static searchTitleCandidates(show_id, params) {
15483
+ return Requests.processRoute(GameShowsRoute.routes.searchTitleCandidates, {}, { show_id: show_id }, params);
15484
+ }
15462
15485
  /** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */
15463
15486
  static previewExternalTitles(show_id, file, data, params) {
15464
15487
  // Multipart helpers require the concrete URL before uploading.
@@ -15556,6 +15579,46 @@ class GameShows {
15556
15579
  static deleteScheduleItem(show_id, schedule_id, params) {
15557
15580
  return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
15558
15581
  }
15582
+ /** List public festival, track, bundle, and single-session ticket products. */
15583
+ static listFestivalTicketTypes(show_id, params) {
15584
+ return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketTypes, {}, { show_id }, params);
15585
+ }
15586
+ /** List all festival ticket products, including archived products, for organizers. */
15587
+ static manageFestivalTicketTypes(show_id, params) {
15588
+ return Requests.processRoute(GameShowsRoute.routes.manageFestivalTicketTypes, {}, { show_id }, params);
15589
+ }
15590
+ /** Create a whole-festival pass, track pass, event bundle, or session ticket. */
15591
+ static createFestivalTicketType(show_id, data, params) {
15592
+ return Requests.processRoute(GameShowsRoute.routes.createFestivalTicketType, data, { show_id }, params);
15593
+ }
15594
+ /** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
15595
+ static updateFestivalTicketType(show_id, ticket_type_id, data, params) {
15596
+ return Requests.processRoute(GameShowsRoute.routes.updateFestivalTicketType, data, { show_id, ticket_type_id }, params);
15597
+ }
15598
+ /** Archive a festival ticket product while retaining purchase history. */
15599
+ static deleteFestivalTicketType(show_id, ticket_type_id, params) {
15600
+ return Requests.processRoute(GameShowsRoute.routes.deleteFestivalTicketType, {}, { show_id, ticket_type_id }, params);
15601
+ }
15602
+ /** Reserve inventory and create or confirm a festival-level ticket payment. */
15603
+ static purchaseFestivalTickets(show_id, data, params) {
15604
+ return Requests.processRoute(GameShowsRoute.routes.purchaseFestivalTickets, data, { show_id }, params);
15605
+ }
15606
+ /** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
15607
+ static confirmFestivalTicketPurchase(show_id, purchase_id, access_token, params) {
15608
+ return Requests.processRoute(GameShowsRoute.routes.confirmFestivalTicketPurchase, { access_token }, { show_id, purchase_id }, params);
15609
+ }
15610
+ /** Retrieve a token-protected receipt for any festival ticket scope. */
15611
+ static getFestivalTicketReceipt(show_id, purchase_id, access_token, params) {
15612
+ return Requests.processRoute(GameShowsRoute.routes.getFestivalTicketReceipt, {}, { show_id, purchase_id }, Object.assign(Object.assign({}, params), { access_token }));
15613
+ }
15614
+ /** List purchasers across festival, track, bundle, and session ticket products. */
15615
+ static listFestivalTicketPurchases(show_id, params) {
15616
+ return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketPurchases, {}, { show_id }, params);
15617
+ }
15618
+ /** Issue a partial or full refund for a festival ticket purchase. */
15619
+ static refundFestivalTicketPurchase(show_id, purchase_id, data, params) {
15620
+ return Requests.processRoute(GameShowsRoute.routes.refundFestivalTicketPurchase, data, { show_id, purchase_id }, params);
15621
+ }
15559
15622
  /** List public early-bird, regular, and other ticket tiers for one session. */
15560
15623
  static listScheduleTicketTypes(show_id, schedule_id, params) {
15561
15624
  return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id, schedule_id }, params);