buzzcasting-storage 2.3.1 → 2.4.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 +34 -26
- package/dist/buzzcasting-storage.esm.js +12 -23
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ 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
|
|
52
|
+
declare interface CloudIndicators {
|
|
53
53
|
total: number;
|
|
54
54
|
positive: number;
|
|
55
55
|
negative: number;
|
|
@@ -59,7 +59,7 @@ declare interface Current {
|
|
|
59
59
|
velocity: number;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
declare interface Dynamics {
|
|
62
|
+
export declare interface Dynamics {
|
|
63
63
|
engagement?: number;
|
|
64
64
|
semrush_visits?: number;
|
|
65
65
|
potential_reach?: number;
|
|
@@ -86,7 +86,10 @@ export declare const GET_DATA = "color:black;background-color:lime;padding:0 4px
|
|
|
86
86
|
|
|
87
87
|
export declare const HIDE_CSS = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;";
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Cloud
|
|
91
|
+
*/
|
|
92
|
+
export declare interface ICloud {
|
|
90
93
|
labels: Label[];
|
|
91
94
|
current: any[];
|
|
92
95
|
previous: any[];
|
|
@@ -96,7 +99,7 @@ declare interface ICloud {
|
|
|
96
99
|
previous_total: number;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
|
-
declare interface IMessages {
|
|
102
|
+
export declare interface IMessages {
|
|
100
103
|
success?: boolean;
|
|
101
104
|
message?: string;
|
|
102
105
|
data?: Message[];
|
|
@@ -114,7 +117,10 @@ declare interface Indicators {
|
|
|
114
117
|
value: number;
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Query
|
|
122
|
+
*/
|
|
123
|
+
export declare interface IQuery {
|
|
118
124
|
[x: string]: any;
|
|
119
125
|
topics?: string;
|
|
120
126
|
dashboard?: string;
|
|
@@ -135,14 +141,20 @@ declare interface IQuery {
|
|
|
135
141
|
hash?: string;
|
|
136
142
|
}
|
|
137
143
|
|
|
138
|
-
|
|
144
|
+
/**
|
|
145
|
+
* API Response
|
|
146
|
+
*/
|
|
147
|
+
export declare interface IResponse {
|
|
139
148
|
data: IMessagesData | ISeries | ICloud | null;
|
|
140
149
|
message: string;
|
|
141
150
|
success: boolean;
|
|
142
151
|
query?: IQuery;
|
|
143
152
|
}
|
|
144
153
|
|
|
145
|
-
|
|
154
|
+
/**
|
|
155
|
+
* Series Data
|
|
156
|
+
*/
|
|
157
|
+
export declare interface ISeries {
|
|
146
158
|
topic: string;
|
|
147
159
|
title: string;
|
|
148
160
|
series: Series[];
|
|
@@ -152,11 +164,14 @@ declare interface ISeries {
|
|
|
152
164
|
timestamp: number;
|
|
153
165
|
}
|
|
154
166
|
|
|
155
|
-
|
|
167
|
+
/**
|
|
168
|
+
* Storage Options
|
|
169
|
+
*/
|
|
170
|
+
export declare interface IStorageOptions {
|
|
156
171
|
app: string;
|
|
157
172
|
version: string;
|
|
158
173
|
storage: string;
|
|
159
|
-
slide
|
|
174
|
+
slide?: string;
|
|
160
175
|
presentation?: string;
|
|
161
176
|
token?: string;
|
|
162
177
|
bearer?: string;
|
|
@@ -168,22 +183,22 @@ declare interface IStorageOptions {
|
|
|
168
183
|
retention?: number;
|
|
169
184
|
}
|
|
170
185
|
|
|
171
|
-
declare interface Label {
|
|
186
|
+
export declare interface Label {
|
|
172
187
|
label: string;
|
|
173
188
|
count: number;
|
|
174
189
|
info: string;
|
|
175
|
-
current:
|
|
176
|
-
previous:
|
|
190
|
+
current: CloudIndicators;
|
|
191
|
+
previous: CloudIndicators;
|
|
177
192
|
}
|
|
178
193
|
|
|
179
|
-
declare interface Medium {
|
|
194
|
+
export declare interface Medium {
|
|
180
195
|
type: string;
|
|
181
196
|
url: string;
|
|
182
197
|
width: number;
|
|
183
198
|
height: number;
|
|
184
199
|
}
|
|
185
200
|
|
|
186
|
-
declare interface Message {
|
|
201
|
+
export declare interface Message {
|
|
187
202
|
id: string;
|
|
188
203
|
published: string;
|
|
189
204
|
harvested: string;
|
|
@@ -223,17 +238,10 @@ export declare const NONE = "color:transparent;background-color:transparent;";
|
|
|
223
238
|
|
|
224
239
|
export declare const PRESENTATION_CSS = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;";
|
|
225
240
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
neutral: number;
|
|
231
|
-
engagement: number;
|
|
232
|
-
reach: number;
|
|
233
|
-
velocity: number;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
declare interface Sender {
|
|
241
|
+
/**
|
|
242
|
+
* Messages
|
|
243
|
+
*/
|
|
244
|
+
export declare interface Sender {
|
|
237
245
|
id: string;
|
|
238
246
|
title: string;
|
|
239
247
|
name: string;
|
|
@@ -251,7 +259,7 @@ declare interface Sender {
|
|
|
251
259
|
|
|
252
260
|
export declare const SERIES = "series";
|
|
253
261
|
|
|
254
|
-
declare interface Series {
|
|
262
|
+
export declare interface Series {
|
|
255
263
|
name: string;
|
|
256
264
|
label: string;
|
|
257
265
|
current: number[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Bi = Object.defineProperty;
|
|
2
2
|
var Ii = (T, o, m) => o in T ? Bi(T, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : T[o] = m;
|
|
3
3
|
var j = (T, o, m) => (Ii(T, typeof o != "symbol" ? o + "" : o, m), m);
|
|
4
|
-
const Ri = "2.3.
|
|
4
|
+
const Ri = "2.3.1";
|
|
5
5
|
class Ni {
|
|
6
6
|
constructor(o) {
|
|
7
7
|
j(this, "options");
|
|
@@ -3469,33 +3469,15 @@ class Lr {
|
|
|
3469
3469
|
j(this, "options");
|
|
3470
3470
|
j(this, "getCloud", async (o) => {
|
|
3471
3471
|
const m = X(o);
|
|
3472
|
-
return await Un(m).then((v) => v).catch(() => (console.warn(
|
|
3473
|
-
"%capi",
|
|
3474
|
-
H,
|
|
3475
|
-
de,
|
|
3476
|
-
o.slide,
|
|
3477
|
-
o.widget
|
|
3478
|
-
), { data: null, message: "Cloud Data error", success: !1 }));
|
|
3472
|
+
return await Un(m).then((v) => v).catch(() => (console.warn("%capi", H, de, o.slide, o.widget), { data: null, message: "Cloud Data error", success: !1 }));
|
|
3479
3473
|
});
|
|
3480
3474
|
j(this, "getSeries", async (o) => {
|
|
3481
3475
|
const m = X(o);
|
|
3482
|
-
return await Un(m).then((v) => v).catch(() => (console.warn(
|
|
3483
|
-
"%capi",
|
|
3484
|
-
H,
|
|
3485
|
-
he,
|
|
3486
|
-
o.slide,
|
|
3487
|
-
o.widget
|
|
3488
|
-
), { data: null, message: "Series Data error", success: !1 }));
|
|
3476
|
+
return await Un(m).then((v) => v).catch(() => (console.warn("%capi", H, he, o.slide, o.widget), { data: null, message: "Series Data error", success: !1 }));
|
|
3489
3477
|
});
|
|
3490
3478
|
j(this, "getMessages", async (o) => {
|
|
3491
3479
|
const m = X(o);
|
|
3492
|
-
return await Un(m).then((v) => v).catch(() => (console.warn(
|
|
3493
|
-
"%capi",
|
|
3494
|
-
H,
|
|
3495
|
-
ie,
|
|
3496
|
-
o.slide,
|
|
3497
|
-
o.widget
|
|
3498
|
-
), { data: null, message: "Messages Data error", success: !1 }));
|
|
3480
|
+
return await Un(m).then((v) => v).catch(() => (console.warn("%capi", H, ie, o.slide, o.widget), { data: null, message: "Messages Data error", success: !1 }));
|
|
3499
3481
|
});
|
|
3500
3482
|
/**
|
|
3501
3483
|
* Update Cloud
|
|
@@ -3560,7 +3542,14 @@ class Lr {
|
|
|
3560
3542
|
}
|
|
3561
3543
|
return o.type === ie && (o = kt(this.options, o)), this.subscribers.filter(
|
|
3562
3544
|
(S) => S.widget === o.widget
|
|
3563
|
-
).length > 0 || (console.debug(
|
|
3545
|
+
).length > 0 || (console.debug(
|
|
3546
|
+
"%cstorage%c %csubscribe",
|
|
3547
|
+
V,
|
|
3548
|
+
q,
|
|
3549
|
+
St,
|
|
3550
|
+
o.slide,
|
|
3551
|
+
o.widget
|
|
3552
|
+
), this.subscribers.push(o)), null;
|
|
3564
3553
|
});
|
|
3565
3554
|
/**
|
|
3566
3555
|
* Get current subscribers
|