buzzcasting-storage 3.2.5 → 3.3.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/dist/buzzcasting-storage.d.ts +18 -3
- package/dist/buzzcasting-storage.esm.js +2081 -1714
- package/package.json +9 -9
|
@@ -7,7 +7,8 @@ export declare enum API {
|
|
|
7
7
|
TOPICS = "topics",
|
|
8
8
|
WIDGET = "widget",
|
|
9
9
|
WIDGETS = "widgets",
|
|
10
|
-
SLIDE = "slide"
|
|
10
|
+
SLIDE = "slide",
|
|
11
|
+
PREFERENCE = "preference"
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export declare type ApiData = ISeries & IMessages & ICloud;
|
|
@@ -31,8 +32,12 @@ export declare class BuzzcastingStorageManager {
|
|
|
31
32
|
hideMessage: (query: IQuery) => Promise<IResponse>;
|
|
32
33
|
hideLabels: (query: IQuery) => Promise<IResponse>;
|
|
33
34
|
getSubscribers: () => Promise<IQuery[] | undefined>;
|
|
34
|
-
|
|
35
|
+
getSlide: (query: IQuery) => Promise<IResponse | undefined>;
|
|
36
|
+
setSlide: (query: IQuery) => Promise<IResponse | undefined>;
|
|
37
|
+
loadSlide: (query: IQuery) => Promise<Number>;
|
|
35
38
|
storeSlide: (query: IQuery) => Promise<IResponse | number>;
|
|
39
|
+
getPreference: (preference: IPreference) => Promise<IResponse | undefined>;
|
|
40
|
+
setPreference: (preference: IPreference) => Promise<IResponse | undefined>;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
export declare class BuzzcastingStorageReader {
|
|
@@ -127,6 +132,8 @@ export declare enum EVENTS {
|
|
|
127
132
|
STAR_MESSAGE = "starMessage",
|
|
128
133
|
GOTO_SLIDE = "gotoSlide",
|
|
129
134
|
NEXT_SLIDE = "nextSlide",
|
|
135
|
+
PREFERENCE_LOAD = "loadPreference",
|
|
136
|
+
PREFERENCE_SAVE = "savePreference",
|
|
130
137
|
SHOW_BUILDER_MODAL = "showBuilderModal",
|
|
131
138
|
SLIDE_DID_LOAD = "slideDidLoad",
|
|
132
139
|
SLIDE_GOTO = "slideGoto",
|
|
@@ -138,6 +145,7 @@ export declare enum EVENTS {
|
|
|
138
145
|
STORAGE_INIT = "storageInit",
|
|
139
146
|
SUBSCRIBE = "subscribe",
|
|
140
147
|
SUSPEND_ACCOUNT = "suspendAccount",
|
|
148
|
+
SWITCH_PRESENTATION = "switch_presentation",
|
|
141
149
|
REMOVE_CLOUD = "removeCloud",
|
|
142
150
|
UPDATE = "update",
|
|
143
151
|
VERSION = "version",
|
|
@@ -174,6 +182,7 @@ export declare interface ICloud {
|
|
|
174
182
|
total: number;
|
|
175
183
|
current_total: number;
|
|
176
184
|
previous_total: number;
|
|
185
|
+
query?: IQuery;
|
|
177
186
|
}
|
|
178
187
|
|
|
179
188
|
declare interface ICloudIndicators {
|
|
@@ -297,6 +306,11 @@ export declare interface IModal {
|
|
|
297
306
|
|
|
298
307
|
export declare function intToString(num: any, digits: number): string;
|
|
299
308
|
|
|
309
|
+
export declare interface IPreference {
|
|
310
|
+
id: string;
|
|
311
|
+
value?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
300
314
|
/**
|
|
301
315
|
* Query
|
|
302
316
|
*/
|
|
@@ -308,7 +322,7 @@ export declare interface IQuery {
|
|
|
308
322
|
labels?: string[];
|
|
309
323
|
compare?: string;
|
|
310
324
|
period?: number;
|
|
311
|
-
type?: 'cloud' | 'messages' | 'series' | 'proxy' | 'slide';
|
|
325
|
+
type?: 'cloud' | 'messages' | 'series' | 'preference' | 'proxy' | 'slide';
|
|
312
326
|
order?: 'utc' | 'reach' | 'engagement' | 'impressions';
|
|
313
327
|
media?: number;
|
|
314
328
|
dynamics?: number;
|
|
@@ -364,6 +378,7 @@ export declare interface ISeries {
|
|
|
364
378
|
metrics?: IMetrics;
|
|
365
379
|
indicators?: IIndicators;
|
|
366
380
|
timestamp?: number;
|
|
381
|
+
query?: IQuery;
|
|
367
382
|
}
|
|
368
383
|
|
|
369
384
|
export declare interface ISeriesData {
|