glitch-javascript-sdk 3.2.23 → 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
@@ -6190,6 +6190,54 @@ 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
+ * List public page-builder blocks for a game show.
6195
+ */
6196
+ static listBlocks<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6197
+ /**
6198
+ * Create a page-builder block for a game show. Requires organizer permissions.
6199
+ */
6200
+ static createBlock<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6201
+ /**
6202
+ * Update a page-builder block for a game show. Requires organizer permissions.
6203
+ */
6204
+ static updateBlock<T>(show_id: string, block_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6205
+ /**
6206
+ * Delete a page-builder block from a game show. Requires organizer permissions.
6207
+ */
6208
+ static deleteBlock<T>(show_id: string, block_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6209
+ /**
6210
+ * Reorder page-builder blocks for a game show. Requires organizer permissions.
6211
+ */
6212
+ static reorderBlocks<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6213
+ /**
6214
+ * List livestream and programming schedule items for a game show.
6215
+ */
6216
+ static listSchedule<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6217
+ /**
6218
+ * Create a schedule item for a game show. Requires organizer permissions.
6219
+ */
6220
+ static createScheduleItem<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6221
+ /**
6222
+ * Update a schedule item for a game show. Requires organizer permissions.
6223
+ */
6224
+ static updateScheduleItem<T>(show_id: string, schedule_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6225
+ /**
6226
+ * Delete a schedule item from a game show. Requires organizer permissions.
6227
+ */
6228
+ static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6229
+ /**
6230
+ * Get the game show discovery queue.
6231
+ */
6232
+ static discoveryQueue<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6233
+ /**
6234
+ * Track public game show analytics events.
6235
+ */
6236
+ static trackAnalytics<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6237
+ /**
6238
+ * Get organizer analytics for a game show.
6239
+ */
6240
+ static analyticsReport<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6193
6241
  /**
6194
6242
  * Join or update a public notification signup for a game show.
6195
6243
  */
@@ -6198,6 +6246,10 @@ declare class GameShows {
6198
6246
  * List notification signups for a game show. Requires organizer permissions.
6199
6247
  */
6200
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>>;
6201
6253
  }
6202
6254
 
6203
6255
  declare class Newsletters {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.2.23",
3
+ "version": "3.2.25",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -182,6 +182,90 @@ 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
+ * List public page-builder blocks for a game show.
187
+ */
188
+ public static listBlocks<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
189
+ return Requests.processRoute(GameShowsRoute.routes.listBlocks, {}, { show_id: show_id }, params);
190
+ }
191
+
192
+ /**
193
+ * Create a page-builder block for a game show. Requires organizer permissions.
194
+ */
195
+ public static createBlock<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
196
+ return Requests.processRoute(GameShowsRoute.routes.createBlock, data, { show_id: show_id }, params);
197
+ }
198
+
199
+ /**
200
+ * Update a page-builder block for a game show. Requires organizer permissions.
201
+ */
202
+ public static updateBlock<T>(show_id: string, block_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
203
+ return Requests.processRoute(GameShowsRoute.routes.updateBlock, data, { show_id: show_id, block_id: block_id }, params);
204
+ }
205
+
206
+ /**
207
+ * Delete a page-builder block from a game show. Requires organizer permissions.
208
+ */
209
+ public static deleteBlock<T>(show_id: string, block_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
210
+ return Requests.processRoute(GameShowsRoute.routes.deleteBlock, {}, { show_id: show_id, block_id: block_id }, params);
211
+ }
212
+
213
+ /**
214
+ * Reorder page-builder blocks for a game show. Requires organizer permissions.
215
+ */
216
+ public static reorderBlocks<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
217
+ return Requests.processRoute(GameShowsRoute.routes.reorderBlocks, data, { show_id: show_id }, params);
218
+ }
219
+
220
+ /**
221
+ * List livestream and programming schedule items for a game show.
222
+ */
223
+ public static listSchedule<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
224
+ return Requests.processRoute(GameShowsRoute.routes.listSchedule, {}, { show_id: show_id }, params);
225
+ }
226
+
227
+ /**
228
+ * Create a schedule item for a game show. Requires organizer permissions.
229
+ */
230
+ public static createScheduleItem<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
231
+ return Requests.processRoute(GameShowsRoute.routes.createScheduleItem, data, { show_id: show_id }, params);
232
+ }
233
+
234
+ /**
235
+ * Update a schedule item for a game show. Requires organizer permissions.
236
+ */
237
+ public static updateScheduleItem<T>(show_id: string, schedule_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
238
+ return Requests.processRoute(GameShowsRoute.routes.updateScheduleItem, data, { show_id: show_id, schedule_id: schedule_id }, params);
239
+ }
240
+
241
+ /**
242
+ * Delete a schedule item from a game show. Requires organizer permissions.
243
+ */
244
+ public static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
245
+ return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
246
+ }
247
+
248
+ /**
249
+ * Get the game show discovery queue.
250
+ */
251
+ public static discoveryQueue<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
252
+ return Requests.processRoute(GameShowsRoute.routes.discoveryQueue, {}, { show_id: show_id }, params);
253
+ }
254
+
255
+ /**
256
+ * Track public game show analytics events.
257
+ */
258
+ public static trackAnalytics<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
259
+ return Requests.processRoute(GameShowsRoute.routes.trackAnalytics, data, { show_id: show_id }, params);
260
+ }
261
+
262
+ /**
263
+ * Get organizer analytics for a game show.
264
+ */
265
+ public static analyticsReport<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
266
+ return Requests.processRoute(GameShowsRoute.routes.analyticsReport, {}, { show_id: show_id }, params);
267
+ }
268
+
185
269
  /**
186
270
  * Join or update a public notification signup for a game show.
187
271
  */
@@ -196,6 +280,13 @@ class GameShows {
196
280
  return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
197
281
  }
198
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
+
199
290
  }
200
291
 
201
292
  export default GameShows;
@@ -17,8 +17,21 @@ 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
+ listBlocks: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.GET },
21
+ createBlock: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.POST },
22
+ updateBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.PUT },
23
+ deleteBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.DELETE },
24
+ reorderBlocks: { url: '/gameshows/{show_id}/blocks/reorder', method: HTTP_METHODS.POST },
25
+ listSchedule: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.GET },
26
+ createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
27
+ updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
28
+ deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
29
+ discoveryQueue: { url: '/gameshows/{show_id}/discovery', method: HTTP_METHODS.GET },
30
+ trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
31
+ analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
20
32
  joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
21
33
  listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
34
+ listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
22
35
  };
23
36
 
24
37
  }