glitch-javascript-sdk 3.2.22 → 3.2.24

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,62 @@ 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>>;
6241
+ /**
6242
+ * Join or update a public notification signup for a game show.
6243
+ */
6244
+ static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6245
+ /**
6246
+ * List notification signups for a game show. Requires organizer permissions.
6247
+ */
6248
+ static listWishlist<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6193
6249
  }
6194
6250
 
6195
6251
  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.24",
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,104 @@ 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
+
269
+ /**
270
+ * Join or update a public notification signup for a game show.
271
+ */
272
+ public static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
273
+ return Requests.processRoute(GameShowsRoute.routes.joinWishlist, data, { show_id: show_id }, params);
274
+ }
275
+
276
+ /**
277
+ * List notification signups for a game show. Requires organizer permissions.
278
+ */
279
+ public static listWishlist<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
280
+ return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
281
+ }
282
+
185
283
  }
186
284
 
187
- export default GameShows;
285
+ export default GameShows;
@@ -17,8 +17,22 @@ 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 },
32
+ joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
33
+ listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
20
34
  };
21
35
 
22
36
  }
23
37
 
24
- export default GameShowsRoute;
38
+ export default GameShowsRoute;