buzzcasting-storage 2.0.7 → 2.0.8

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.
@@ -11,59 +11,28 @@ declare class BuzzcastingStorageManager {
11
11
  update: () => Promise<void>;
12
12
  hide: (query: IQuery) => void;
13
13
  private actions;
14
- getCloud: (query: IQuery) => Promise<any>;
15
- getSeries: (query: IQuery) => Promise<any>;
16
- getMessages: (query: IQuery) => Promise<any>;
17
14
  cleanMessages: () => Promise<void | undefined>;
18
- getSubscribers: () => Promise<any[] | undefined>;
15
+ getSubscribers: () => Promise<IQuery[] | undefined>;
19
16
  }
20
17
  export default BuzzcastingStorageManager;
21
18
 
22
19
  export declare const CLOUD = "cloud";
23
20
 
24
- export declare interface Dynamics {
25
- uniquecomments: number;
26
- engagement: number;
27
- likesandvotes: number;
28
- viewcount: number;
29
- inboundlinks: number;
30
- forumthread: number;
31
- shares: number;
32
- favourite: number;
33
- semrush_visits?: number;
34
- potential_reach?: number;
35
- }
36
-
37
- export declare interface Geo {
38
- latitude: number;
39
- longitude: number;
40
- zip: string;
41
- street: string;
42
- city: string;
43
- country: string;
44
- }
45
-
46
- export declare interface IMessages {
47
- success?: boolean;
48
- message?: string;
49
- data?: Message[];
50
- }
51
-
52
- export declare interface IQuery {
21
+ declare interface IQuery {
53
22
  [x: string]: any;
54
23
  topics?: string;
55
24
  dashboard?: string;
56
25
  widget?: string;
57
26
  compare?: string;
58
27
  period?: number;
59
- type?: 'cloud' | 'messages' | 'indicators' | 'proxy';
28
+ type?: 'cloud' | 'messages' | 'series' | 'proxy';
60
29
  order?: string;
61
30
  media?: number;
62
31
  dynamics?: number;
63
32
  geo?: number;
64
33
  delay?: string;
65
34
  approved?: string;
66
- moderation?: 'realtime' | 'delayed' | 'approved';
35
+ moderation?: 'realtime' | 'delayed' | 'approved' | 'none';
67
36
  hrm?: string;
68
37
  before?: number;
69
38
  since?: number;
@@ -85,55 +54,8 @@ export declare interface IStorageOptions {
85
54
  retention?: number;
86
55
  }
87
56
 
88
- export declare interface Medium {
89
- type: string;
90
- url: string;
91
- width: number;
92
- height: number;
93
- }
94
-
95
- export declare interface Message {
96
- id: string;
97
- published: string;
98
- harvested: string;
99
- utc: number;
100
- channel: string;
101
- type: string;
102
- sender: Sender;
103
- reply: string;
104
- replyto: string;
105
- page: string;
106
- conversation: string;
107
- title: string;
108
- content: string;
109
- sentiment: number;
110
- link: string;
111
- language: string;
112
- region: string;
113
- topics: Topic[];
114
- dynamics?: Dynamics;
115
- geo?: Geo;
116
- media?: Medium[];
117
- }
118
-
119
57
  export declare const MESSAGES = "messages";
120
58
 
121
- export declare interface Sender {
122
- id: string;
123
- title: string;
124
- name: string;
125
- avatar: string;
126
- bio: string;
127
- location: string;
128
- verified: number;
129
- following: number;
130
- followers: number;
131
- listed: number;
132
- favourites: number;
133
- messages: number;
134
- influence: number;
135
- }
136
-
137
59
  export declare const SERIES = "series";
138
60
 
139
61
  export declare const STORAGE_CSS = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;";
@@ -148,14 +70,12 @@ export declare const STORAGE_SESSION = "session";
148
70
 
149
71
  export declare const STORAGE_WINDOW = "window";
150
72
 
151
- export declare interface Topic {
152
- topic: string;
153
- engagement: number;
154
- impressions: number;
155
- reach: number;
156
- sentiment: number;
157
- }
73
+ export declare const SUBSCRIBE = "subscribe";
158
74
 
159
75
  export declare const TOPICS = "topics";
160
76
 
77
+ export declare const WIDGET = "widget";
78
+
79
+ export declare const WIDGETS = "widgets";
80
+
161
81
  export { }