glitch-javascript-sdk 3.5.2 → 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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.5.2",
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
  */
@@ -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 },