glitch-javascript-sdk 3.2.22 → 3.2.23

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
@@ -6190,6 +6190,14 @@ declare class GameShows {
6190
6190
  * Delete a specific title from a game show.
6191
6191
  */
6192
6192
  static deleteTitle<T>(show_id: string, title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6193
+ /**
6194
+ * Join or update a public notification signup for a game show.
6195
+ */
6196
+ static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6197
+ /**
6198
+ * List notification signups for a game show. Requires organizer permissions.
6199
+ */
6200
+ static listWishlist<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6193
6201
  }
6194
6202
 
6195
6203
  declare class Newsletters {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.2.22",
3
+ "version": "3.2.23",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -165,7 +165,7 @@ class GameShows {
165
165
  * Get details of a specific title in a game show.
166
166
  */
167
167
  public static getTitle<T>(show_id: string, title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
168
- return Requests.processRoute(GameShowsRoute.routes.getTitle, {}, { show_id: show_id, title_id: title_id }, params);
168
+ return Requests.processRoute(GameShowsRoute.routes.viewTitle, {}, { show_id: show_id, title_id: title_id }, params);
169
169
  }
170
170
 
171
171
  /**
@@ -182,6 +182,20 @@ class GameShows {
182
182
  return Requests.processRoute(GameShowsRoute.routes.deleteTitle, {}, { show_id: show_id, title_id: title_id }, params);
183
183
  }
184
184
 
185
+ /**
186
+ * Join or update a public notification signup for a game show.
187
+ */
188
+ public static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
189
+ return Requests.processRoute(GameShowsRoute.routes.joinWishlist, data, { show_id: show_id }, params);
190
+ }
191
+
192
+ /**
193
+ * List notification signups for a game show. Requires organizer permissions.
194
+ */
195
+ public static listWishlist<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
196
+ return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
197
+ }
198
+
185
199
  }
186
200
 
187
- export default GameShows;
201
+ export default GameShows;
@@ -17,8 +17,10 @@ class GameShowsRoute {
17
17
  viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
18
18
  updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
19
19
  deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
20
+ joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
21
+ listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
20
22
  };
21
23
 
22
24
  }
23
25
 
24
- export default GameShowsRoute;
26
+ export default GameShowsRoute;