buzzcasting-storage 3.7.1 → 3.7.3

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.
@@ -34,6 +34,7 @@ export declare class BuzzcastingStorageManager {
34
34
  constructor(options: IStorageOptions);
35
35
  addSubscriber(query: IQuery): void;
36
36
  update: (query: IQuery) => Promise<void>;
37
+ private broadcastUpdate;
37
38
  hide: (query: IQuery) => void;
38
39
  private actions;
39
40
  cleanMessages: () => Promise<void>;
@@ -212,7 +213,6 @@ export declare interface ICloud {
212
213
  total: number;
213
214
  current_total: number;
214
215
  previous_total: number;
215
- query?: IQuery;
216
216
  }
217
217
 
218
218
  declare interface ICloudIndicators {
@@ -238,7 +238,6 @@ export declare interface IDashboard {
238
238
 
239
239
  export declare interface IDashboards {
240
240
  dashboards: IDashboard[];
241
- query?: IQuery;
242
241
  }
243
242
 
244
243
  export declare interface IDynamics {
@@ -332,7 +331,6 @@ export declare interface IMessages {
332
331
  dashboard?: string;
333
332
  widget?: string;
334
333
  topics?: string;
335
- query: IQuery;
336
334
  }
337
335
 
338
336
  export declare interface IMetrics {
@@ -359,7 +357,6 @@ export declare interface IPreference {
359
357
  }
360
358
 
361
359
  export declare interface IPreferences {
362
- query?: IQuery;
363
360
  preferences: IPreference[];
364
361
  }
365
362
 
@@ -375,7 +372,6 @@ export declare interface IPresentation {
375
372
  }
376
373
 
377
374
  export declare interface IPresentations {
378
- query?: IQuery;
379
375
  presentations: IPresentation[];
380
376
  }
381
377
 
@@ -448,7 +444,6 @@ export declare interface ISeries {
448
444
  metrics?: IMetrics;
449
445
  indicators?: IIndicators;
450
446
  timestamp?: number;
451
- query?: IQuery;
452
447
  }
453
448
 
454
449
  export declare interface ISeriesData {
@@ -463,7 +458,6 @@ export declare interface ISeriesData {
463
458
  }
464
459
 
465
460
  export declare interface ISlides {
466
- query?: IQuery;
467
461
  presentation: string;
468
462
  slides: any;
469
463
  }
@@ -477,7 +471,7 @@ export declare interface IStorageOptions {
477
471
  domain?: string;
478
472
  cdn?: string;
479
473
  channel?: string;
480
- presentation?: string;
474
+ presentation: string;
481
475
  slide?: string;
482
476
  slides?: string[];
483
477
  display?: string;
@@ -522,7 +516,6 @@ export declare interface IWidget {
522
516
  }
523
517
 
524
518
  export declare interface IWidgets {
525
- query?: IQuery;
526
519
  widgets: IWidget[];
527
520
  }
528
521
 
@@ -577,20 +570,21 @@ export declare class Widget {
577
570
  private broadcastChannel;
578
571
  private element;
579
572
  private query;
580
- private listeners;
573
+ private callbacks;
581
574
  /**
582
575
  * Main container for managing widgets and data updates
583
576
  *
584
577
  * @param element widget web component
585
578
  * @param callbacks functions in the widget that will receive the update
586
- * @param selector container for the element - by default buzzcasting-slide (optional)
579
+ * @param selector container for the element - by default buzzcasting-presentation (optional)
587
580
  */
588
581
  constructor(element: HTMLElement, callbacks: Array<(arg: IResponse) => void>, selector?: string);
589
- addListener(cb: (arg: IResponse) => void): void;
582
+ addCallbackListener(cb: (arg: IResponse) => void): void;
590
583
  /**
591
584
  * Data received from BroadcastChannel
585
+ * data that is broadcast needs to be a IMessage[] |ICloud or ISeries structure
592
586
  */
593
- startListener(): void;
587
+ broadcastListener(): void;
594
588
  /**
595
589
  * This is used to register the component on the container's broadcast channel
596
590
  * This takes place when the container indicates it has finished loading (ready)