glitch-javascript-sdk 0.1.8 → 0.2.0

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/src/api/Events.ts CHANGED
@@ -194,7 +194,7 @@ class Events {
194
194
  public static uploadBannerImageFile<T>(event_id: string, file: File, data?: object): AxiosPromise<Response<T>> {
195
195
 
196
196
  let url = EventsRoutes.routes.uploadBannerImage.url.replace('{event_id}', event_id);
197
-
197
+
198
198
  return Requests.uploadFile(url, 'image', file, data);
199
199
  }
200
200
 
@@ -253,7 +253,7 @@ class Events {
253
253
  *
254
254
  * @returns promise
255
255
  */
256
- public static sendOnScreenContent<T>(event_id: string, data : object): AxiosPromise<Response<T>> {
256
+ public static sendOnScreenContent<T>(event_id: string, data: object): AxiosPromise<Response<T>> {
257
257
 
258
258
  return Requests.processRoute(EventsRoutes.routes.enableLivestreamMode, data, { event_id: event_id });
259
259
  }
@@ -272,7 +272,7 @@ class Events {
272
272
  public static addOverlayAsFile<T>(event_id: string, file: File, data?: object): AxiosPromise<Response<T>> {
273
273
 
274
274
  let url = EventsRoutes.routes.addOverlay.url.replace('{event_id}', event_id);
275
-
275
+
276
276
  return Requests.uploadFile(url, 'image', file, data);
277
277
  }
278
278
 
@@ -290,7 +290,7 @@ class Events {
290
290
  public static addOverlayAsBlob<T>(event_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>> {
291
291
 
292
292
  let url = EventsRoutes.routes.addOverlay.url.replace('{event_id}', event_id);
293
-
293
+
294
294
  return Requests.uploadBlob(url, 'image', blob, data);
295
295
  }
296
296
 
@@ -304,9 +304,9 @@ class Events {
304
304
  *
305
305
  * @returns promise
306
306
  */
307
- public static removeOverlay<T>(event_id: string, overlay_id : string): AxiosPromise<Response<T>> {
307
+ public static removeOverlay<T>(event_id: string, overlay_id: string): AxiosPromise<Response<T>> {
308
308
 
309
- return Requests.processRoute(EventsRoutes.routes.removeOverlay, {}, { event_id: event_id, subid : overlay_id });
309
+ return Requests.processRoute(EventsRoutes.routes.removeOverlay, {}, { event_id: event_id, subid: overlay_id });
310
310
  }
311
311
 
312
312
  /**
@@ -319,9 +319,9 @@ class Events {
319
319
  *
320
320
  * @returns promise
321
321
  */
322
- public static enableOverlay<T>(event_id: string, overlay_id : string): AxiosPromise<Response<T>> {
322
+ public static enableOverlay<T>(event_id: string, overlay_id: string): AxiosPromise<Response<T>> {
323
323
 
324
- return Requests.processRoute(EventsRoutes.routes.enableOverlay, {}, { event_id: event_id, subid : overlay_id });
324
+ return Requests.processRoute(EventsRoutes.routes.enableOverlay, {}, { event_id: event_id, subid: overlay_id });
325
325
  }
326
326
 
327
327
  /**
@@ -363,14 +363,14 @@ class Events {
363
363
  return Requests.processRoute(EventsRoutes.routes.disableDonations, {}, { event_id: event_id });
364
364
  }
365
365
 
366
- public static sendInvite<T>(event_id: string, data : object): AxiosPromise<Response<T>> {
366
+ public static sendInvite<T>(event_id: string, data: object): AxiosPromise<Response<T>> {
367
367
 
368
368
  return Requests.processRoute(EventsRoutes.routes.sendInvite, data, { event_id: event_id });
369
369
  }
370
370
 
371
- public static acceptInvite<T>(event_id: string, token : string): AxiosPromise<Response<T>> {
371
+ public static acceptInvite<T>(event_id: string, token: string): AxiosPromise<Response<T>> {
372
372
 
373
- return Requests.processRoute(EventsRoutes.routes.acceptInvite, {token : token}, { event_id: event_id });
373
+ return Requests.processRoute(EventsRoutes.routes.acceptInvite, { token: token }, { event_id: event_id });
374
374
  }
375
375
 
376
376