glitch-javascript-sdk 0.3.4 → 0.3.5

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.
@@ -254,5 +254,17 @@ declare class Events {
254
254
  static disableDonations<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
255
255
  static sendInvite<T>(event_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
256
256
  static acceptInvite<T>(event_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
257
+ /**
258
+ * Update a recording related to an event.
259
+ *
260
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
261
+ *
262
+ * @param event_id The id of the event to update.
263
+ * @param recording_id The id of the recording to update.
264
+ * @param data The data to update.
265
+ *
266
+ * @returns promise
267
+ */
268
+ static updateRecording<T>(event_id: string, recording_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
257
269
  }
258
270
  export default Events;
package/dist/esm/index.js CHANGED
@@ -31340,6 +31340,15 @@ var EventsRoutes = /** @class */ (function () {
31340
31340
  return EventsRoutes;
31341
31341
  }());
31342
31342
 
31343
+ var RecordingsRoute = /** @class */ (function () {
31344
+ function RecordingsRoute() {
31345
+ }
31346
+ RecordingsRoute.routes = {
31347
+ update: { url: '/events/{event_id}/recording/{recording_id}', method: HTTP_METHODS.PUT },
31348
+ };
31349
+ return RecordingsRoute;
31350
+ }());
31351
+
31343
31352
  var Events = /** @class */ (function () {
31344
31353
  function Events() {
31345
31354
  }
@@ -31654,6 +31663,20 @@ var Events = /** @class */ (function () {
31654
31663
  Events.acceptInvite = function (event_id, token, params) {
31655
31664
  return Requests.processRoute(EventsRoutes.routes.acceptInvite, { token: token }, { event_id: event_id }, params);
31656
31665
  };
31666
+ /**
31667
+ * Update a recording related to an event.
31668
+ *
31669
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
31670
+ *
31671
+ * @param event_id The id of the event to update.
31672
+ * @param recording_id The id of the recording to update.
31673
+ * @param data The data to update.
31674
+ *
31675
+ * @returns promise
31676
+ */
31677
+ Events.updateRecording = function (event_id, recording_id, data, params) {
31678
+ return Requests.processRoute(RecordingsRoute.routes.update, data, { event_id: event_id, recording_id: recording_id }, params);
31679
+ };
31657
31680
  return Events;
31658
31681
  }());
31659
31682