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/cjs/index.js +15 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +8 -0
- package/dist/esm/index.js +15 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/GameShows.ts +16 -2
- package/src/routes/GameShowsRoute.ts +3 -1
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
package/src/api/GameShows.ts
CHANGED
|
@@ -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.
|
|
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;
|