glitch-javascript-sdk 3.5.1 → 3.5.3

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/index.d.ts CHANGED
@@ -6265,6 +6265,8 @@ declare class GameShows {
6265
6265
  * List livestream and programming schedule items for a game show.
6266
6266
  */
6267
6267
  static listSchedule<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6268
+ /** Fetch one public or organizer-visible festival schedule item. */
6269
+ static getScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6268
6270
  /**
6269
6271
  * Create a schedule item for a game show. Requires organizer permissions.
6270
6272
  */
@@ -6293,6 +6295,13 @@ declare class GameShows {
6293
6295
  * Join or update a public notification signup for a game show.
6294
6296
  */
6295
6297
  static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6298
+ /**
6299
+ * Confirm the double-opt-in token from a festival reminder email.
6300
+ * The response contains confirmation state and festival identity only.
6301
+ *
6302
+ * @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist
6303
+ */
6304
+ static confirmWishlist<T>(token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6296
6305
  /**
6297
6306
  * List notification signups for a game show. Requires organizer permissions.
6298
6307
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -277,6 +277,11 @@ class GameShows {
277
277
  return Requests.processRoute(GameShowsRoute.routes.listSchedule, {}, { show_id: show_id }, params);
278
278
  }
279
279
 
280
+ /** Fetch one public or organizer-visible festival schedule item. */
281
+ public static getScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
282
+ return Requests.processRoute(GameShowsRoute.routes.getScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
283
+ }
284
+
280
285
  /**
281
286
  * Create a schedule item for a game show. Requires organizer permissions.
282
287
  */
@@ -326,6 +331,16 @@ class GameShows {
326
331
  return Requests.processRoute(GameShowsRoute.routes.joinWishlist, data, { show_id: show_id }, params);
327
332
  }
328
333
 
334
+ /**
335
+ * Confirm the double-opt-in token from a festival reminder email.
336
+ * The response contains confirmation state and festival identity only.
337
+ *
338
+ * @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist
339
+ */
340
+ public static confirmWishlist<T>(token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
341
+ return Requests.processRoute(GameShowsRoute.routes.confirmWishlist, {}, { token }, params);
342
+ }
343
+
329
344
  /**
330
345
  * List notification signups for a game show. Requires organizer permissions.
331
346
  */
@@ -43,6 +43,7 @@ class GameShowsRoute {
43
43
  deleteBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.DELETE },
44
44
  reorderBlocks: { url: '/gameshows/{show_id}/blocks/reorder', method: HTTP_METHODS.POST },
45
45
  listSchedule: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.GET },
46
+ getScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.GET },
46
47
  createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
47
48
  updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
48
49
  deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
@@ -50,6 +51,7 @@ class GameShowsRoute {
50
51
  trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
51
52
  analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
52
53
  joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
54
+ confirmWishlist: { url: '/gameshows/wishlist/confirm/{token}', method: HTTP_METHODS.GET },
53
55
  listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
54
56
  listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
55
57
  // Organizer sponsor lifecycle and placement administration.