glitch-javascript-sdk 3.2.24 → 3.2.25

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
@@ -6246,6 +6246,10 @@ declare class GameShows {
6246
6246
  * List notification signups for a game show. Requires organizer permissions.
6247
6247
  */
6248
6248
  static listWishlist<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6249
+ /**
6250
+ * List public game shows that include a title. Useful for game-page festival banners.
6251
+ */
6252
+ static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6249
6253
  }
6250
6254
 
6251
6255
  declare class Newsletters {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.2.24",
3
+ "version": "3.2.25",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -280,6 +280,13 @@ class GameShows {
280
280
  return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
281
281
  }
282
282
 
283
+ /**
284
+ * List public game shows that include a title. Useful for game-page festival banners.
285
+ */
286
+ public static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
287
+ return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
288
+ }
289
+
283
290
  }
284
291
 
285
292
  export default GameShows;
@@ -31,6 +31,7 @@ class GameShowsRoute {
31
31
  analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
32
32
  joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
33
33
  listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
34
+ listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
34
35
  };
35
36
 
36
37
  }