buzzcasting-storage 3.2.6 → 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 +16 -3
- package/dist/buzzcasting-storage.esm.js +2347 -1980
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -298,6 +306,11 @@ export declare interface IModal {
|
|
|
298
306
|
|
|
299
307
|
export declare function intToString(num: any, digits: number): string;
|
|
300
308
|
|
|
309
|
+
export declare interface IPreference {
|
|
310
|
+
id: string;
|
|
311
|
+
value?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
301
314
|
/**
|
|
302
315
|
* Query
|
|
303
316
|
*/
|
|
@@ -309,7 +322,7 @@ export declare interface IQuery {
|
|
|
309
322
|
labels?: string[];
|
|
310
323
|
compare?: string;
|
|
311
324
|
period?: number;
|
|
312
|
-
type?: 'cloud' | 'messages' | 'series' | 'proxy' | 'slide';
|
|
325
|
+
type?: 'cloud' | 'messages' | 'series' | 'preference' | 'proxy' | 'slide';
|
|
313
326
|
order?: 'utc' | 'reach' | 'engagement' | 'impressions';
|
|
314
327
|
media?: number;
|
|
315
328
|
dynamics?: number;
|