glitch-javascript-sdk 0.5.3 → 0.5.4

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 CHANGED
@@ -17352,6 +17352,8 @@ var EventsRoutes = /** @class */ (function () {
17352
17352
  addTwitchMulticast: { url: '/events/{event_id}/addTwitchMulticast', method: HTTP_METHODS.POST },
17353
17353
  addFacebookMulticast: { url: '/events/{event_id}/addFacebookMulticast', method: HTTP_METHODS.POST },
17354
17354
  addYoutubeMulticast: { url: '/events/{event_id}/addYoutubeMulticast', method: HTTP_METHODS.POST },
17355
+ enableWidget: { url: '/events/{event_id}/enableWidget/{widget_id}', method: HTTP_METHODS.POST },
17356
+ disableWidget: { url: '/events/{event_id}/disableWidget/{widget_id}', method: HTTP_METHODS.DELETE },
17355
17357
  };
17356
17358
  return EventsRoutes;
17357
17359
  }());
@@ -17732,6 +17734,33 @@ var Events = /** @class */ (function () {
17732
17734
  Events.updateRecording = function (event_id, recording_id, data, params) {
17733
17735
  return Requests.processRoute(RecordingsRoute.routes.update, data, { event_id: event_id, recording_id: recording_id }, params);
17734
17736
  };
17737
+ /**
17738
+ * Enable a widget for the current event.
17739
+ *
17740
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
17741
+ *
17742
+ * @param event_id The id of the event to update.
17743
+ * @param widget_id The id of the widget to enable.
17744
+ * @param data The data, which should contain the roles.
17745
+ *
17746
+ * @returns promise
17747
+ */
17748
+ Events.enableWidget = function (event_id, widget_id, data, params) {
17749
+ return Requests.processRoute(EventsRoutes.routes.enableWidget, data, { event_id: event_id, widget_id: widget_id }, params);
17750
+ };
17751
+ /**
17752
+ * Disable a widget for the current event.
17753
+ *
17754
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
17755
+ *
17756
+ * @param event_id The id of the event to update.
17757
+ * @param widget_id The id of the widget to disable.
17758
+ *
17759
+ * @returns promise
17760
+ */
17761
+ Events.disableWidget = function (event_id, widget_id, data, params) {
17762
+ return Requests.processRoute(EventsRoutes.routes.disableWidget, data, { event_id: event_id, widget_id: widget_id }, params);
17763
+ };
17735
17764
  return Events;
17736
17765
  }());
17737
17766