buzzcasting-storage 2.5.2 → 2.5.4

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.
@@ -49,7 +49,24 @@ export declare const CLOUD = "cloud";
49
49
 
50
50
  export declare const CLOUD_CSS = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;";
51
51
 
52
- declare interface CloudIndicators {
52
+ export declare const GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;";
53
+
54
+ export declare const HIDE_CSS = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;";
55
+
56
+ /**
57
+ * Cloud
58
+ */
59
+ export declare interface ICloud {
60
+ labels: ILabel[];
61
+ current: any[];
62
+ previous: any[];
63
+ type: string;
64
+ total: number;
65
+ current_total: number;
66
+ previous_total: number;
67
+ }
68
+
69
+ declare interface ICloudIndicators {
53
70
  total: number;
54
71
  positive: number;
55
72
  negative: number;
@@ -59,7 +76,7 @@ declare interface CloudIndicators {
59
76
  velocity: number;
60
77
  }
61
78
 
62
- export declare interface Dynamics {
79
+ export declare interface IDynamics {
63
80
  engagement?: number;
64
81
  semrush_visits?: number;
65
82
  potential_reach?: number;
@@ -73,42 +90,59 @@ export declare interface Dynamics {
73
90
  trending_score?: number;
74
91
  }
75
92
 
76
- export declare interface Geo {
77
- latitude: number;
78
- longitude: number;
79
- zip: string;
93
+ export declare interface IGeo {
94
+ latitude?: number;
95
+ longitude?: number;
96
+ zip?: string;
80
97
  street: string;
81
- city: string;
98
+ city?: string;
82
99
  country: string;
83
100
  }
84
101
 
85
- export declare const GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;";
86
-
87
- export declare const HIDE_CSS = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;";
102
+ export declare interface ILabel {
103
+ label: string;
104
+ count: number;
105
+ info: string;
106
+ current: ICloudIndicators;
107
+ previous: ICloudIndicators;
108
+ }
88
109
 
89
- /**
90
- * Cloud
91
- */
92
- export declare interface ICloud {
93
- labels: Label[];
94
- current: any[];
95
- previous: any[];
110
+ export declare interface IMedium {
96
111
  type: string;
97
- total: number;
98
- current_total: number;
99
- previous_total: number;
112
+ url: string;
113
+ width: number;
114
+ height: number;
100
115
  }
101
116
 
102
- export declare interface IMessages {
103
- success?: boolean;
104
- message?: string;
105
- data?: Message[];
117
+ export declare interface IMessage {
118
+ id: string;
119
+ published: string;
120
+ harvested: string;
121
+ utc: number;
122
+ channel: string;
123
+ type: string;
124
+ sender: ISender;
125
+ reply: string;
126
+ replyto: string;
127
+ page: string;
128
+ conversation: string;
129
+ title: string;
130
+ content: string;
131
+ sentiment: number;
132
+ link: string;
133
+ language: string;
134
+ region: string;
135
+ topics: ITopic[];
136
+ dynamics?: IDynamics;
137
+ geo?: IGeo;
138
+ media?: IMedium[];
106
139
  }
107
140
 
108
- export declare interface IMessagesData {
109
- messages: IMessages;
141
+ export declare interface IMessages {
142
+ messages: IMessage[];
110
143
  presentation?: string;
111
144
  slide?: string;
145
+ title?: string;
112
146
  topics?: string;
113
147
  query: IQuery;
114
148
  }
@@ -145,12 +179,31 @@ export declare interface IQuery {
145
179
  * API Response
146
180
  */
147
181
  export declare interface IResponse {
148
- data: IMessagesData | ISeries | ICloud | null;
182
+ data: IMessages | ISeries | ICloud | null;
149
183
  message: string;
150
184
  success: boolean;
151
185
  query?: IQuery;
152
186
  }
153
187
 
188
+ /**
189
+ * Messages
190
+ */
191
+ export declare interface ISender {
192
+ id: string;
193
+ title: string;
194
+ name: string;
195
+ avatar: string;
196
+ bio: string;
197
+ location: string;
198
+ verified: number;
199
+ following: number;
200
+ followers: number;
201
+ listed: number;
202
+ favourites: number;
203
+ messages: number;
204
+ influence: number;
205
+ }
206
+
154
207
  /**
155
208
  * Series Data
156
209
  */
@@ -187,43 +240,12 @@ export declare interface IStorageOptions {
187
240
  retention?: number;
188
241
  }
189
242
 
190
- export declare interface Label {
191
- label: string;
192
- count: number;
193
- info: string;
194
- current: CloudIndicators;
195
- previous: CloudIndicators;
196
- }
197
-
198
- export declare interface Medium {
199
- type: string;
200
- url: string;
201
- width: number;
202
- height: number;
203
- }
204
-
205
- export declare interface Message {
206
- id: string;
207
- published: string;
208
- harvested: string;
209
- utc: number;
210
- channel: string;
211
- type: string;
212
- sender: Sender;
213
- reply: string;
214
- replyto: string;
215
- page: string;
216
- conversation: string;
217
- title: string;
218
- content: string;
243
+ export declare interface ITopic {
244
+ topic: string;
245
+ engagement: number;
246
+ impressions: number;
247
+ reach: number;
219
248
  sentiment: number;
220
- link: string;
221
- language: string;
222
- region: string;
223
- topics: Topic[];
224
- dynamics?: Dynamics;
225
- geo?: Geo;
226
- media?: Medium[];
227
249
  }
228
250
 
229
251
  export declare const MESSAGES = "messages";
@@ -242,25 +264,6 @@ export declare const NONE = "color:transparent;background-color:transparent;";
242
264
 
243
265
  export declare const PRESENTATION_CSS = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;";
244
266
 
245
- /**
246
- * Messages
247
- */
248
- export declare interface Sender {
249
- id: string;
250
- title: string;
251
- name: string;
252
- avatar: string;
253
- bio: string;
254
- location: string;
255
- verified: number;
256
- following: number;
257
- followers: number;
258
- listed: number;
259
- favourites: number;
260
- messages: number;
261
- influence: number;
262
- }
263
-
264
267
  export declare const SERIES = "series";
265
268
 
266
269
  export declare interface Series {
@@ -294,14 +297,6 @@ export declare const SUBSCRIBE = "subscribe";
294
297
 
295
298
  export declare const SUBSCRIBE_CSS = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;";
296
299
 
297
- export declare interface Topic {
298
- topic: string;
299
- engagement: number;
300
- impressions: number;
301
- reach: number;
302
- sentiment: number;
303
- }
304
-
305
300
  export declare const TOPICS = "topics";
306
301
 
307
302
  export declare const WIDGET = "widget";
@@ -320,7 +315,6 @@ export declare class Widget {
320
315
  addListener(cb: (arg: IResponse) => void): void;
321
316
  /**
322
317
  * Data received from BroadcastChannel
323
- * @param messageEvent
324
318
  */
325
319
  startListener(): void;
326
320
  subscribe(): void;
@@ -1,7 +1,7 @@
1
1
  var Ri = Object.defineProperty;
2
2
  var Ni = (j, o, h) => o in j ? Ri(j, o, { enumerable: !0, configurable: !0, writable: !0, value: h }) : j[o] = h;
3
3
  var C = (j, o, h) => (Ni(j, typeof o != "symbol" ? o + "" : o, h), h);
4
- const Fi = "2.5.1";
4
+ const Fi = "2.5.3";
5
5
  class $i {
6
6
  constructor(o) {
7
7
  C(this, "options");
@@ -4215,7 +4215,6 @@ class ao {
4215
4215
  }
4216
4216
  /**
4217
4217
  * Data received from BroadcastChannel
4218
- * @param messageEvent
4219
4218
  */
4220
4219
  startListener() {
4221
4220
  const o = this.query;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-storage",
3
3
  "type": "module",
4
- "version": "2.5.2",
4
+ "version": "2.5.4",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",