buzzcasting-storage 2.2.0 → 2.3.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.
- package/dist/buzzcasting-storage.d.ts +217 -4
- package/dist/buzzcasting-storage.esm.js +2409 -2110
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare const API_CSS = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;";
|
|
2
2
|
|
|
3
|
+
export declare const APP_CSS = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;";
|
|
4
|
+
|
|
3
5
|
export declare const BROADCAST_CSS = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;";
|
|
4
6
|
|
|
5
|
-
declare class BuzzcastingStorageManager {
|
|
7
|
+
export declare class BuzzcastingStorageManager {
|
|
6
8
|
private sm;
|
|
7
9
|
private api;
|
|
8
10
|
private bc;
|
|
@@ -14,13 +16,105 @@ declare class BuzzcastingStorageManager {
|
|
|
14
16
|
cleanMessages: () => Promise<void | undefined>;
|
|
15
17
|
getSubscribers: () => Promise<IQuery[] | undefined>;
|
|
16
18
|
}
|
|
17
|
-
|
|
19
|
+
|
|
20
|
+
export declare class BuzzcastingStorageReader {
|
|
21
|
+
private sm;
|
|
22
|
+
constructor(options: IStorageOptions);
|
|
23
|
+
/**
|
|
24
|
+
* Retieve Cloud Data
|
|
25
|
+
* @param query Widgets parameters, type "cloud"
|
|
26
|
+
* @returns IResponse
|
|
27
|
+
*/
|
|
28
|
+
getCloud: (query: IQuery) => Promise<IResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Retieve Message Data
|
|
31
|
+
* @param query Widgets parameters, type "messages"
|
|
32
|
+
* @returns IResponse
|
|
33
|
+
*/
|
|
34
|
+
getMessages: (query: IQuery) => Promise<IResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve Series Data
|
|
37
|
+
* @param query Widgets parameters, type "series"
|
|
38
|
+
* @returns IResponse
|
|
39
|
+
*/
|
|
40
|
+
getSeries: (query: IQuery) => Promise<IResponse>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare interface Category {
|
|
44
|
+
type: string;
|
|
45
|
+
data: string[];
|
|
46
|
+
}
|
|
18
47
|
|
|
19
48
|
export declare const CLOUD = "cloud";
|
|
20
49
|
|
|
50
|
+
export declare const CLOUD_CSS = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;";
|
|
51
|
+
|
|
52
|
+
declare interface Current {
|
|
53
|
+
total: number;
|
|
54
|
+
positive: number;
|
|
55
|
+
negative: number;
|
|
56
|
+
neutral: number;
|
|
57
|
+
engagement: number;
|
|
58
|
+
reach: number;
|
|
59
|
+
velocity: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare interface Dynamics {
|
|
63
|
+
engagement?: number;
|
|
64
|
+
semrush_visits?: number;
|
|
65
|
+
potential_reach?: number;
|
|
66
|
+
facebook_insights_reach?: number;
|
|
67
|
+
facebook_insights_impressions?: number;
|
|
68
|
+
facebook_insights_link_clicks?: number;
|
|
69
|
+
twitter_shares?: number;
|
|
70
|
+
facebook_shares?: number;
|
|
71
|
+
twitter_insights_retweets?: number;
|
|
72
|
+
total_comments: number;
|
|
73
|
+
trending_score?: number;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare interface Geo {
|
|
77
|
+
latitude: number;
|
|
78
|
+
longitude: number;
|
|
79
|
+
zip: string;
|
|
80
|
+
street: string;
|
|
81
|
+
city: string;
|
|
82
|
+
country: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
21
85
|
export declare const GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;";
|
|
22
86
|
|
|
23
|
-
export declare
|
|
87
|
+
export declare const HIDE_CSS = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;";
|
|
88
|
+
|
|
89
|
+
declare interface ICloud {
|
|
90
|
+
labels: Label[];
|
|
91
|
+
current: any[];
|
|
92
|
+
previous: any[];
|
|
93
|
+
type: string;
|
|
94
|
+
total: number;
|
|
95
|
+
current_total: number;
|
|
96
|
+
previous_total: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare interface IMessages {
|
|
100
|
+
success?: boolean;
|
|
101
|
+
message?: string;
|
|
102
|
+
data?: Message[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare interface IMessagesData {
|
|
106
|
+
messages: IMessages;
|
|
107
|
+
presentation?: string;
|
|
108
|
+
slide?: string;
|
|
109
|
+
topics?: string;
|
|
110
|
+
query: IQuery;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare interface Indicators {
|
|
114
|
+
value: number;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare interface IQuery {
|
|
24
118
|
[x: string]: any;
|
|
25
119
|
topics?: string;
|
|
26
120
|
dashboard?: string;
|
|
@@ -41,7 +135,24 @@ export declare interface IQuery {
|
|
|
41
135
|
hash?: string;
|
|
42
136
|
}
|
|
43
137
|
|
|
44
|
-
|
|
138
|
+
declare interface IResponse {
|
|
139
|
+
data: IMessagesData | ISeries | ICloud | null;
|
|
140
|
+
message: string;
|
|
141
|
+
success: boolean;
|
|
142
|
+
query?: IQuery;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare interface ISeries {
|
|
146
|
+
topic: string;
|
|
147
|
+
title: string;
|
|
148
|
+
series: Series[];
|
|
149
|
+
category: Category;
|
|
150
|
+
metrics: Metrics;
|
|
151
|
+
indicators: Indicators;
|
|
152
|
+
timestamp: number;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare interface IStorageOptions {
|
|
45
156
|
app: string;
|
|
46
157
|
version: string;
|
|
47
158
|
storage: string;
|
|
@@ -57,14 +168,104 @@ export declare interface IStorageOptions {
|
|
|
57
168
|
retention?: number;
|
|
58
169
|
}
|
|
59
170
|
|
|
171
|
+
declare interface Label {
|
|
172
|
+
label: string;
|
|
173
|
+
count: number;
|
|
174
|
+
info: string;
|
|
175
|
+
current: Current;
|
|
176
|
+
previous: Previous;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare interface Medium {
|
|
180
|
+
type: string;
|
|
181
|
+
url: string;
|
|
182
|
+
width: number;
|
|
183
|
+
height: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare interface Message {
|
|
187
|
+
id: string;
|
|
188
|
+
published: string;
|
|
189
|
+
harvested: string;
|
|
190
|
+
utc: number;
|
|
191
|
+
channel: string;
|
|
192
|
+
type: string;
|
|
193
|
+
sender: Sender;
|
|
194
|
+
reply: string;
|
|
195
|
+
replyto: string;
|
|
196
|
+
page: string;
|
|
197
|
+
conversation: string;
|
|
198
|
+
title: string;
|
|
199
|
+
content: string;
|
|
200
|
+
sentiment: number;
|
|
201
|
+
link: string;
|
|
202
|
+
language: string;
|
|
203
|
+
region: string;
|
|
204
|
+
topics: Topic[];
|
|
205
|
+
dynamics?: Dynamics;
|
|
206
|
+
geo?: Geo;
|
|
207
|
+
media?: Medium[];
|
|
208
|
+
}
|
|
209
|
+
|
|
60
210
|
export declare const MESSAGES = "messages";
|
|
61
211
|
|
|
212
|
+
export declare const MESSAGES_CSS = "color:grey;background-color:tan;padding:0 4px 0 4px;border-radius:5px;";
|
|
213
|
+
|
|
214
|
+
declare interface Metrics {
|
|
215
|
+
doc: number;
|
|
216
|
+
previous: number;
|
|
217
|
+
change: number;
|
|
218
|
+
}
|
|
219
|
+
|
|
62
220
|
export declare const NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;";
|
|
63
221
|
|
|
64
222
|
export declare const NONE = "color:transparent;background-color:transparent;";
|
|
65
223
|
|
|
224
|
+
export declare const PRESENTATION_CSS = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;";
|
|
225
|
+
|
|
226
|
+
declare interface Previous {
|
|
227
|
+
total: number;
|
|
228
|
+
positive: number;
|
|
229
|
+
negative: number;
|
|
230
|
+
neutral: number;
|
|
231
|
+
engagement: number;
|
|
232
|
+
reach: number;
|
|
233
|
+
velocity: number;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
declare interface Sender {
|
|
237
|
+
id: string;
|
|
238
|
+
title: string;
|
|
239
|
+
name: string;
|
|
240
|
+
avatar: string;
|
|
241
|
+
bio: string;
|
|
242
|
+
location: string;
|
|
243
|
+
verified: number;
|
|
244
|
+
following: number;
|
|
245
|
+
followers: number;
|
|
246
|
+
listed: number;
|
|
247
|
+
favourites: number;
|
|
248
|
+
messages: number;
|
|
249
|
+
influence: number;
|
|
250
|
+
}
|
|
251
|
+
|
|
66
252
|
export declare const SERIES = "series";
|
|
67
253
|
|
|
254
|
+
declare interface Series {
|
|
255
|
+
name: string;
|
|
256
|
+
label: string;
|
|
257
|
+
current: number[];
|
|
258
|
+
current_total: number;
|
|
259
|
+
previous_total: number;
|
|
260
|
+
previous: number[];
|
|
261
|
+
current_category: number;
|
|
262
|
+
previous_category: number;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export declare const SERIES_CSS = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;";
|
|
266
|
+
|
|
267
|
+
export declare const SLIDE_CSS = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;";
|
|
268
|
+
|
|
68
269
|
export declare const STORAGE_CSS = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;";
|
|
69
270
|
|
|
70
271
|
export declare const STORAGE_DEXIE = "dexie";
|
|
@@ -79,10 +280,22 @@ export declare const STORAGE_WINDOW = "window";
|
|
|
79
280
|
|
|
80
281
|
export declare const SUBSCRIBE = "subscribe";
|
|
81
282
|
|
|
283
|
+
export declare const SUBSCRIBE_CSS = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;";
|
|
284
|
+
|
|
285
|
+
declare interface Topic {
|
|
286
|
+
topic: string;
|
|
287
|
+
engagement: number;
|
|
288
|
+
impressions: number;
|
|
289
|
+
reach: number;
|
|
290
|
+
sentiment: number;
|
|
291
|
+
}
|
|
292
|
+
|
|
82
293
|
export declare const TOPICS = "topics";
|
|
83
294
|
|
|
84
295
|
export declare const WIDGET = "widget";
|
|
85
296
|
|
|
86
297
|
export declare const WIDGETS = "widgets";
|
|
87
298
|
|
|
299
|
+
export declare const WS_CSS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;";
|
|
300
|
+
|
|
88
301
|
export { }
|