buzzcasting-storage 2.6.0 → 2.7.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.
@@ -1,11 +1,14 @@
1
- export declare const API_CSS = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;";
1
+ export declare enum API {
2
+ MESSAGES = "messages",
3
+ CLOUD = "cloud",
4
+ SERIES = "series",
5
+ TOPICS = "topics",
6
+ WIDGET = "widget",
7
+ WIDGETS = "widgets"
8
+ }
2
9
 
3
10
  export declare type ApiData = ISeries & IMessages & ICloud;
4
11
 
5
- export declare const APP_CSS = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;";
6
-
7
- export declare const BROADCAST_CSS = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;";
8
-
9
12
  export declare class BuzzcastingStorageManager {
10
13
  private sm;
11
14
  private api;
@@ -42,13 +45,45 @@ export declare class BuzzcastingStorageReader {
42
45
  getSeries: (query: IQuery) => Promise<IResponse>;
43
46
  }
44
47
 
45
- export declare const CLOUD = "cloud";
46
-
47
- export declare const CLOUD_CSS = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;";
48
-
49
- export declare const GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;";
50
-
51
- export declare const HIDE_CSS = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;";
48
+ declare enum CSS_2 {
49
+ API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;",
50
+ APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;",
51
+ BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;",
52
+ CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;",
53
+ GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;",
54
+ HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;",
55
+ MESSAGES = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;",
56
+ NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;",
57
+ NONE = "color:transparent;background-color:transparent;",
58
+ PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;",
59
+ SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;",
60
+ SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;",
61
+ STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;",
62
+ SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;",
63
+ WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;",
64
+ WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;"
65
+ }
66
+ export { CSS_2 as CSS }
67
+
68
+ export declare enum EVENTS {
69
+ APP_READT = "appReady",
70
+ CHANNEL = "channel",
71
+ ERROR = "error",
72
+ GOTO_SLIDE = "gotoSlide",
73
+ HIDE_MESSAGE = "hideMessage",
74
+ NEXT_SLIDE = "nextSlide",
75
+ PRESENTATION_READY = "presentationReady",
76
+ PREV_SLIDE = "prevSlide",
77
+ SHOW_MODAL = "showModal",
78
+ SLIDE_DID_LOAD = "slideDidLoad",
79
+ SLIDE_READY = "slideReady",
80
+ SLIDE_TRANSITIONER = "slideTransitioner",
81
+ STORAGE_INIT = "stroageInit",
82
+ SUBSCRIBE = "subscribe",
83
+ UPDATE = "update",
84
+ VERSION = "version",
85
+ WIDGET_UPDATE = "widgetUpdate"
86
+ }
52
87
 
53
88
  export declare interface ICategory {
54
89
  type: string;
@@ -222,20 +257,20 @@ export declare interface ISeries {
222
257
  title: string;
223
258
  series: ISeriesData[];
224
259
  category: ICategory;
225
- metrics: IMetrics;
226
- indicators: IIndicators;
227
- timestamp: number;
260
+ metrics?: IMetrics;
261
+ indicators?: IIndicators;
262
+ timestamp?: number;
228
263
  }
229
264
 
230
265
  export declare interface ISeriesData {
231
- name: string;
232
- label: string;
233
- current: number[];
234
- current_total: number;
235
- previous_total: number;
236
- previous: number[];
237
- current_category: number;
238
- previous_category: number;
266
+ name?: string;
267
+ label?: string;
268
+ current?: number[];
269
+ current_total?: number;
270
+ previous_total?: number;
271
+ previous?: number[];
272
+ current_category?: number;
273
+ previous_category?: number;
239
274
  }
240
275
 
241
276
  /**
@@ -269,41 +304,21 @@ export declare interface ITopic {
269
304
  sentiment: number;
270
305
  }
271
306
 
272
- export declare const MESSAGES = "messages";
273
-
274
- export declare const MESSAGES_CSS = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;";
275
-
276
- export declare const NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;";
277
-
278
- export declare const NONE = "color:transparent;background-color:transparent;";
279
-
280
- export declare const PRESENTATION_CSS = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;";
281
-
282
- export declare const SERIES = "series";
283
-
284
- export declare const SERIES_CSS = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;";
285
-
286
- export declare const SLIDE_CSS = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;";
287
-
288
- export declare const STORAGE_CSS = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;";
289
-
290
- export declare const STORAGE_DEXIE = "dexie";
291
-
292
- export declare const STORAGE_KEYVAL = "keyval";
293
-
294
- export declare const STORAGE_LOCAL = "local";
295
-
296
- export declare const STORAGE_SESSION = "session";
297
-
298
- export declare const STORAGE_WINDOW = "window";
299
-
300
- export declare const SUBSCRIBE = "subscribe";
301
-
302
- export declare const SUBSCRIBE_CSS = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;";
303
-
304
- export declare const TOPICS = "topics";
307
+ export declare enum MODERATION {
308
+ APPROVED = "approved",
309
+ BEFORE = "before",
310
+ DELAYED = "delayed",
311
+ NONE = "none",
312
+ REALTIME = "realtime"
313
+ }
305
314
 
306
- export declare const WIDGET = "widget";
315
+ export declare enum STORAGE {
316
+ KEYVAL = "keyval",
317
+ LOCAL = "local",
318
+ SESSION = "session",
319
+ DEXIE = "dexie",
320
+ WINDOW = "window"
321
+ }
307
322
 
308
323
  export declare class Widget {
309
324
  private storageReader;
@@ -329,12 +344,6 @@ export declare class Widget {
329
344
  destroy(): void;
330
345
  }
331
346
 
332
- export declare const WIDGET_CSS = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;";
333
-
334
347
  export declare function widgetParams(query: IQuery): IQuery;
335
348
 
336
- export declare const WIDGETS = "widgets";
337
-
338
- export declare const WS_CSS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;";
339
-
340
349
  export { }