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
|
@@ -117,5 +117,13 @@ declare class GameShows {
|
|
|
117
117
|
* Delete a specific title from a game show.
|
|
118
118
|
*/
|
|
119
119
|
static deleteTitle<T>(show_id: string, title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
120
|
+
/**
|
|
121
|
+
* Join or update a public notification signup for a game show.
|
|
122
|
+
*/
|
|
123
|
+
static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
124
|
+
/**
|
|
125
|
+
* List notification signups for a game show. Requires organizer permissions.
|
|
126
|
+
*/
|
|
127
|
+
static listWishlist<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
120
128
|
}
|
|
121
129
|
export default GameShows;
|
package/dist/esm/index.js
CHANGED
|
@@ -14909,6 +14909,8 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
14909
14909
|
viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
|
|
14910
14910
|
updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
|
|
14911
14911
|
deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
|
|
14912
|
+
joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
|
|
14913
|
+
listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
|
|
14912
14914
|
};
|
|
14913
14915
|
return GameShowsRoute;
|
|
14914
14916
|
}());
|
|
@@ -15052,7 +15054,7 @@ var GameShows = /** @class */ (function () {
|
|
|
15052
15054
|
* Get details of a specific title in a game show.
|
|
15053
15055
|
*/
|
|
15054
15056
|
GameShows.getTitle = function (show_id, title_id, params) {
|
|
15055
|
-
return Requests.processRoute(GameShowsRoute.routes.
|
|
15057
|
+
return Requests.processRoute(GameShowsRoute.routes.viewTitle, {}, { show_id: show_id, title_id: title_id }, params);
|
|
15056
15058
|
};
|
|
15057
15059
|
/**
|
|
15058
15060
|
* Update a specific title in a game show.
|
|
@@ -15066,6 +15068,18 @@ var GameShows = /** @class */ (function () {
|
|
|
15066
15068
|
GameShows.deleteTitle = function (show_id, title_id, params) {
|
|
15067
15069
|
return Requests.processRoute(GameShowsRoute.routes.deleteTitle, {}, { show_id: show_id, title_id: title_id }, params);
|
|
15068
15070
|
};
|
|
15071
|
+
/**
|
|
15072
|
+
* Join or update a public notification signup for a game show.
|
|
15073
|
+
*/
|
|
15074
|
+
GameShows.joinWishlist = function (show_id, data, params) {
|
|
15075
|
+
return Requests.processRoute(GameShowsRoute.routes.joinWishlist, data, { show_id: show_id }, params);
|
|
15076
|
+
};
|
|
15077
|
+
/**
|
|
15078
|
+
* List notification signups for a game show. Requires organizer permissions.
|
|
15079
|
+
*/
|
|
15080
|
+
GameShows.listWishlist = function (show_id, params) {
|
|
15081
|
+
return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
|
|
15082
|
+
};
|
|
15069
15083
|
return GameShows;
|
|
15070
15084
|
}());
|
|
15071
15085
|
|