buzzcasting-storage 2.6.1 → 2.7.1

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,47 @@ 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_READY = "appReady",
70
+ CHANNEL = "channel",
71
+ ERROR = "error",
72
+ GOTO_SLIDE = "gotoSlide",
73
+ HIDE_MESSAGE = "hideMessage",
74
+ NEXT_SLIDE = "nextSlide",
75
+ PAUSE_PRESENTATION = "pausePresentation",
76
+ PRESENTATION_READY = "presentationReady",
77
+ PREV_SLIDE = "prevSlide",
78
+ RELOAD_PRESENTATION = "reloadPresentation",
79
+ SHOW_MODAL = "showModal",
80
+ SLIDE_DID_LOAD = "slideDidLoad",
81
+ SLIDE_READY = "slideReady",
82
+ SLIDE_TRANSITIONER = "slideTransitioner",
83
+ STORAGE_INIT = "stroageInit",
84
+ SUBSCRIBE = "subscribe",
85
+ UPDATE = "update",
86
+ VERSION = "version",
87
+ WIDGET_UPDATE = "widgetUpdate"
88
+ }
52
89
 
53
90
  export declare interface ICategory {
54
91
  type: string;
@@ -269,41 +306,21 @@ export declare interface ITopic {
269
306
  sentiment: number;
270
307
  }
271
308
 
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";
309
+ export declare enum MODERATION {
310
+ APPROVED = "approved",
311
+ BEFORE = "before",
312
+ DELAYED = "delayed",
313
+ NONE = "none",
314
+ REALTIME = "realtime"
315
+ }
305
316
 
306
- export declare const WIDGET = "widget";
317
+ export declare enum STORAGE {
318
+ KEYVAL = "keyval",
319
+ LOCAL = "local",
320
+ SESSION = "session",
321
+ DEXIE = "dexie",
322
+ WINDOW = "window"
323
+ }
307
324
 
308
325
  export declare class Widget {
309
326
  private storageReader;
@@ -329,12 +346,6 @@ export declare class Widget {
329
346
  destroy(): void;
330
347
  }
331
348
 
332
- export declare const WIDGET_CSS = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;";
333
-
334
349
  export declare function widgetParams(query: IQuery): IQuery;
335
350
 
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
351
  export { }