buzzcasting-utils 1.3.5 → 1.3.6

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.
@@ -1,65 +1,3 @@
1
- import { Countries } from './interfaces';
2
- import { CountriesGeometry } from './interfaces';
3
- import { IAnimation } from './interfaces';
4
- import { IArc } from './interfaces';
5
- import { IAttachedMedia } from './interfaces';
6
- import { IBorders } from './interfaces';
7
- import { IBrand } from './interfaces';
8
- import { ICardOptions } from './interfaces';
9
- import { ICloud } from './interfaces';
10
- import { ICloudBubbles } from './interfaces';
11
- import { ICloudConfig } from './interfaces';
12
- import { ICloudCss } from './interfaces';
13
- import { ICloudD3 } from './interfaces';
14
- import { ICloudDateFormat } from './interfaces';
15
- import { ICloudDimensions } from './interfaces';
16
- import { ICloudInfluencers } from './interfaces';
17
- import { ICloudInfluencersData } from './interfaces';
18
- import { ICloudKpi } from './interfaces';
19
- import { ICloudLegend } from './interfaces';
20
- import { ICloudOptions } from './interfaces';
21
- import { ICloudPie } from './interfaces';
22
- import { ICloudShow } from './interfaces';
23
- import { ICountries } from './interfaces';
24
- import { ICountry } from './interfaces';
25
- import { ICss } from './interfaces';
26
- import { ID3 } from './interfaces';
27
- import { ID3Bubbles } from './interfaces';
28
- import { ID3Data } from './interfaces';
29
- import { ID3Legend } from './interfaces';
30
- import { ID3Map } from './interfaces';
31
- import { ID3Options } from './interfaces';
32
- import { ID3Pie } from './interfaces';
33
- import { IDateFormat } from './interfaces';
34
- import { IDynamics } from './interfaces';
35
- import { IEchartsLine } from './interfaces';
36
- import { ILabel } from './interfaces';
37
- import { ILand } from './interfaces';
38
- import { IMessage } from './interfaces';
39
- import { IMessages } from './interfaces';
40
- import { IModal } from './interfaces';
41
- import { IQuery } from './interfaces';
42
- import { IQuery as IQuery_2 } from '../interfaces';
43
- import { IResponse } from './interfaces';
44
- import { IRotatingGlobe } from './interfaces';
45
- import { ISeries } from './interfaces';
46
- import { ISeriesConfig } from './interfaces';
47
- import { ISeriesCss } from './interfaces';
48
- import { ISeriesD3 } from './interfaces';
49
- import { ISeriesData } from './interfaces';
50
- import { ISeriesDateFormat } from './interfaces';
51
- import { ISeriesOptions } from './interfaces';
52
- import { ISeriesShow } from './interfaces';
53
- import { IShow } from './interfaces';
54
- import { ISphere } from './interfaces';
55
- import { IStorageOptions } from './interfaces';
56
- import { IStorageOptions as IStorageOptions_2 } from '../interfaces';
57
- import { ITopic } from './interfaces';
58
- import { Label } from './interfaces';
59
- import { Land } from './interfaces';
60
- import { LandGeometry } from './interfaces';
61
- import { Transform } from './interfaces';
62
-
63
1
  export declare function anonymize(name: string): string;
64
2
 
65
3
  export declare enum API {
@@ -81,8 +19,17 @@ export declare enum API {
81
19
 
82
20
  export declare type ApiData = ISeries & IMessages & ICloud;
83
21
 
22
+ export declare interface AreaStyle {
23
+ }
24
+
84
25
  export declare function attachedMedia(message: IMessage): IAttachedMedia_2;
85
26
 
27
+ declare interface Attr_2 {
28
+ ['x:string']: string | string[];
29
+ class: string | string[];
30
+ }
31
+ export { Attr_2 as Attr }
32
+
86
33
  export declare function attrs(attributes: NamedNodeMap): any;
87
34
 
88
35
  export declare function brandLogo(channel: string, size: string): string;
@@ -111,9 +58,56 @@ export declare const capitalizeFirstLetter: (prop: string) => string;
111
58
  */
112
59
  export declare function clearContents(myNode: HTMLElement): void;
113
60
 
114
- export { Countries }
61
+ export declare interface CloudAttr {
62
+ "data-type"?: string;
63
+ component?: string;
64
+ "data-dashboard"?: string;
65
+ "data-widget": string;
66
+ "css-count"?: string[];
67
+ "css-host"?: string;
68
+ "kpi-name"?: string;
69
+ "config-abbreviate"?: string;
70
+ class?: string | string[];
71
+ }
72
+
73
+ export declare interface Component {
74
+ path: string;
75
+ query: string;
76
+ node: string;
77
+ tag: string;
78
+ attr: MessagesAttr;
79
+ }
115
80
 
116
- export { CountriesGeometry }
81
+ export declare interface Content {
82
+ editable?: boolean;
83
+ path: string;
84
+ query: string;
85
+ text: string;
86
+ node: string;
87
+ attr: MessagesAttr;
88
+ }
89
+
90
+ export declare interface Countries {
91
+ type: string;
92
+ geometries: CountriesGeometry[];
93
+ }
94
+
95
+ export declare interface CountriesGeometry {
96
+ type: Type;
97
+ arcs: Array<Array<number[] | number>>;
98
+ id?: string;
99
+ properties: CountryProperties;
100
+ }
101
+
102
+ export declare interface CountryObjects {
103
+ countries: Countries;
104
+ land: Land;
105
+ }
106
+
107
+ export declare interface CountryProperties {
108
+ name: string;
109
+ code: string;
110
+ }
117
111
 
118
112
  declare enum CSS_2 {
119
113
  API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;",
@@ -198,7 +192,7 @@ export declare function formatContent(message: IMessage, titleCss?: string): str
198
192
 
199
193
  export declare const getGuid: () => string;
200
194
 
201
- export declare function getKey(query: IQuery_2): string;
195
+ export declare function getKey(query: IQuery): string;
202
196
 
203
197
  export declare function getParameterByName(key: string): string | null;
204
198
 
@@ -217,11 +211,27 @@ export declare const HTMLtoDOM: (html: string, doc: any) => any;
217
211
 
218
212
  export declare const HTMLtoXML: (html: string) => string;
219
213
 
220
- export { IAnimation }
214
+ export declare interface IAnimation {
215
+ items?: number;
216
+ interval: number;
217
+ animation: number;
218
+ speed?: '' | 'slow' | 'slower' | 'fast' | 'faster';
219
+ delay?: number;
220
+ parentTag?: string;
221
+ }
221
222
 
222
- export { IArc }
223
+ export declare interface IArc {
224
+ strokeStyle: string;
225
+ lineWidth: number;
226
+ }
223
227
 
224
- export { IAttachedMedia }
228
+ export declare interface IAttachedMedia {
229
+ image?: string;
230
+ background: {
231
+ backgroundimage?: string;
232
+ } | null;
233
+ video?: string;
234
+ }
225
235
 
226
236
  declare interface IAttachedMedia_2 {
227
237
  image?: string;
@@ -231,59 +241,332 @@ declare interface IAttachedMedia_2 {
231
241
  video?: string;
232
242
  }
233
243
 
234
- export { IBorders }
244
+ export declare interface IBorders {
245
+ strokeStyle: string;
246
+ lineWidth: number;
247
+ }
235
248
 
236
- export { IBrand }
249
+ export declare interface IBrand {
250
+ show?: boolean;
251
+ size?: string;
252
+ }
237
253
 
238
- export { ICardOptions }
254
+ export declare interface ICardAttributes {
255
+ 'layout'?: 'base' | 'globe' | 'carousel';
256
+ 'component': string;
257
+ 'data-type': 'messages' | 'cloud' | 'series';
258
+ 'data-order'?: string;
259
+ 'data-dashboard': string;
260
+ 'data-widget': string;
261
+ 'css-body'?: string[];
262
+ 'css-brand'?: string[];
263
+ 'css-card'?: string[];
264
+ 'css-date'?: string[];
265
+ 'css-handle'?: string[];
266
+ 'css-name'?: string[];
267
+ 'date-format'?: string;
268
+ 'time-format'?: string;
269
+ 'show-brand'?: 'true' | 'false';
270
+ 'show-kpi'?: 'true' | 'false';
271
+ 'show-sender'?: 'true' | 'false';
272
+ 'animation'?: string;
273
+ 'interval'?: string;
274
+ }
239
275
 
240
- export { ICloud }
276
+ export declare interface ICardOptions {
277
+ animation?: IAnimation;
278
+ brand?: IBrand;
279
+ css?: ICss;
280
+ d3?: ID3;
281
+ dateformat?: IDateFormat;
282
+ show?: IShow;
283
+ }
241
284
 
242
- export { ICloudBubbles }
285
+ export declare interface ICategory {
286
+ type: string;
287
+ data: string[];
288
+ }
243
289
 
244
- export { ICloudConfig }
290
+ /**
291
+ * Cloud
292
+ */
293
+ export declare interface ICloud {
294
+ labels: ILabel[];
295
+ current: any[];
296
+ previous: any[];
297
+ type: string;
298
+ total: number;
299
+ current_total: number;
300
+ previous_total: number;
301
+ }
245
302
 
246
- export { ICloudCss }
303
+ export declare interface ICloudBubbles {
304
+ size: number;
305
+ classlist: string;
306
+ force: number;
307
+ color: string;
308
+ }
247
309
 
248
- export { ICloudD3 }
310
+ export declare interface ICloudConfig {
311
+ fixed?: number;
312
+ abbreviate?: boolean;
313
+ }
249
314
 
250
- export { ICloudDateFormat }
315
+ export declare interface ICloudCss {
316
+ arrowdown?: string;
317
+ arrowup?: string;
318
+ backdrop?: string;
319
+ body?: string;
320
+ brand?: string;
321
+ change?: string;
322
+ chart?: string;
323
+ count?: string;
324
+ container?: string;
325
+ date?: string;
326
+ down?: string;
327
+ host?: string;
328
+ image?: string;
329
+ key?: string;
330
+ legend?: string;
331
+ title?: string;
332
+ up?: string;
333
+ widget?: string;
334
+ dark?: boolean;
335
+ }
251
336
 
252
- export { ICloudDimensions }
337
+ export declare interface ICloudD3 {
338
+ globe: {
339
+ colors: {
340
+ arc: string;
341
+ border: string;
342
+ country: string;
343
+ land: string;
344
+ sphere: string;
345
+ };
346
+ settings?: {
347
+ canvas?: string;
348
+ card?: string;
349
+ width?: number;
350
+ height?: number;
351
+ };
352
+ };
353
+ }
253
354
 
254
- export { ICloudInfluencers }
355
+ export declare interface ICloudDateFormat {
356
+ time?: string;
357
+ date?: string;
358
+ }
255
359
 
256
- export { ICloudInfluencersData }
360
+ export declare interface ICloudDimensions {
361
+ width: number;
362
+ height: number;
363
+ }
257
364
 
258
- export { ICloudKpi }
365
+ declare interface ICloudIndicators {
366
+ total: number;
367
+ positive: number;
368
+ negative: number;
369
+ neutral: number;
370
+ engagement: number;
371
+ reach: number;
372
+ velocity: number;
373
+ }
259
374
 
260
- export { ICloudLegend }
375
+ export declare interface ICloudInfluencers {
376
+ labels?: Label[];
377
+ title?: string;
378
+ current?: ICloudInfluencersData[];
379
+ previous?: ICloudInfluencersData[];
380
+ type: string;
381
+ total?: number;
382
+ current_total?: number;
383
+ previous_total?: number;
384
+ }
261
385
 
262
- export { ICloudOptions }
386
+ export declare interface ICloudInfluencersData {
387
+ color: string;
388
+ label: string;
389
+ avatar: string;
390
+ rank: number;
391
+ authors: string;
392
+ influencers: string;
393
+ total: number;
394
+ positive: number;
395
+ neutral: number;
396
+ negative: number;
397
+ potential_reach: number;
398
+ reach_per_result: number;
399
+ engagement: number;
400
+ engagement_per_result: number;
401
+ profile: string;
402
+ biography: string;
403
+ country: string;
404
+ }
263
405
 
264
- export { ICloudPie }
406
+ export declare interface ICloudKpi {
407
+ name: string;
408
+ }
265
409
 
266
- export { ICloudShow }
410
+ export declare interface ICloudLegend {
411
+ count?: {
412
+ width?: string;
413
+ height?: string;
414
+ };
415
+ key: {
416
+ width: string;
417
+ };
418
+ width: string;
419
+ position: string;
420
+ gap?: {
421
+ column: string;
422
+ row: string;
423
+ };
424
+ show: {
425
+ percentage: boolean;
426
+ };
427
+ }
267
428
 
268
- export { ICountries }
429
+ export declare interface ICloudOptions {
430
+ css?: ICloudCss;
431
+ d3?: ICloudD3;
432
+ dateformat?: ICloudDateFormat;
433
+ show?: ICloudShow;
434
+ config?: ICloudConfig;
435
+ colors?: string[];
436
+ dimensions?: ICloudDimensions;
437
+ pie?: ICloudPie;
438
+ kpi?: ICloudKpi;
439
+ legend?: ICloudLegend;
440
+ bubbles?: ICloudBubbles;
441
+ }
269
442
 
270
- export { ICountry }
443
+ export declare interface ICloudPie {
444
+ radius: {
445
+ inner: number;
446
+ outer: number;
447
+ };
448
+ animation: {
449
+ duration: number;
450
+ };
451
+ }
271
452
 
272
- export { ICss }
453
+ export declare interface ICloudShow {
454
+ brand?: boolean;
455
+ date?: boolean;
456
+ }
273
457
 
274
- export { ID3 }
458
+ export declare interface ICountries {
459
+ type: string;
460
+ objects: CountryObjects;
461
+ arcs: Array<Array<number[]>>;
462
+ bbox: number[];
463
+ transform: Transform;
464
+ }
275
465
 
276
- export { ID3Bubbles }
466
+ export declare interface ICountry {
467
+ fillStyle: string;
468
+ }
277
469
 
278
- export { ID3Data }
470
+ export declare interface ICss {
471
+ avatar?: string;
472
+ backdrop?: string;
473
+ body?: string;
474
+ brand?: string;
475
+ card?: string;
476
+ container?: string;
477
+ date?: string;
478
+ dynamics?: string;
479
+ handle?: string;
480
+ host?: string;
481
+ image?: string;
482
+ kpi?: string;
483
+ label?: string;
484
+ name?: string;
485
+ sender?: string;
486
+ title?: string;
487
+ video?: string;
488
+ widget?: string;
489
+ dark?: boolean;
490
+ }
279
491
 
280
- export { ID3Legend }
492
+ export declare interface ID3 {
493
+ globe: {
494
+ colors: {
495
+ arc: string;
496
+ border: string;
497
+ country: string;
498
+ land: string;
499
+ sphere: string;
500
+ };
501
+ settings?: {
502
+ canvas?: string;
503
+ card?: string;
504
+ width?: number;
505
+ height?: number;
506
+ };
507
+ };
508
+ }
281
509
 
282
- export { ID3Map }
510
+ export declare interface ID3Bubbles {
511
+ size: number;
512
+ force: number;
513
+ classlist?: string;
514
+ color?: string;
515
+ }
283
516
 
284
- export { ID3Options }
517
+ export declare interface ID3Data {
518
+ label: string;
519
+ count: number;
520
+ color: string;
521
+ radius?: number;
522
+ fill?: string;
523
+ }
285
524
 
286
- export { ID3Pie }
525
+ export declare interface ID3Legend {
526
+ count: {
527
+ width: string;
528
+ };
529
+ key: {
530
+ width: string;
531
+ };
532
+ legend: {
533
+ width: string;
534
+ };
535
+ }
536
+
537
+ export declare interface ID3Map {
538
+ radius: {
539
+ inner: number;
540
+ outer: number;
541
+ };
542
+ animation: {
543
+ duration: number;
544
+ };
545
+ }
546
+
547
+ export declare interface ID3Options {
548
+ colors: string[];
549
+ pie?: ID3Pie;
550
+ map?: ID3Map;
551
+ legend?: ID3Legend;
552
+ bubbles?: ID3Bubbles;
553
+ dimensions?: {
554
+ width: number;
555
+ height: number;
556
+ };
557
+ data: [ID3Data?];
558
+ total?: number;
559
+ }
560
+
561
+ export declare interface ID3Pie {
562
+ radius: {
563
+ inner: number;
564
+ outer: number;
565
+ };
566
+ animation: {
567
+ duration: number;
568
+ };
569
+ }
287
570
 
288
571
  export declare interface IDashboard {
289
572
  id: string;
@@ -300,25 +583,148 @@ export declare interface IDashboards {
300
583
  dashboards: IDashboard[];
301
584
  }
302
585
 
303
- export { IDateFormat }
586
+ export declare interface IDateFormat {
587
+ time?: string;
588
+ date?: string;
589
+ }
304
590
 
305
- export { IDynamics }
591
+ export declare interface IDynamics {
592
+ engagement?: number;
593
+ semrush_visits?: number;
594
+ potential_reach?: number;
595
+ facebook_engagement?: number;
596
+ facebook_insights_reach?: number;
597
+ facebook_insights_impressions?: number;
598
+ facebook_insights_link_clicks?: number;
599
+ facebook_reactions?: number;
600
+ facebook_shares?: number;
601
+ instagram_followers?: number;
602
+ instagram_likes?: number;
603
+ retweets?: number;
604
+ twitter_shares?: number;
605
+ twitter_bookmarks?: number;
606
+ twitter_followers?: number;
607
+ twitter_impressions?: number;
608
+ twitter_insights_retweets?: number;
609
+ twitter_likes?: number;
610
+ twitter_replies?: number;
611
+ twitter_video_views?: number;
612
+ total_comments?: number;
613
+ trending_score?: number;
614
+ }
306
615
 
307
- export { IEchartsLine }
616
+ export declare interface IEchartsLine {
617
+ color: string[];
618
+ xAxis: XAxis;
619
+ yAxis: YAxis;
620
+ series: Series[];
621
+ }
308
622
 
309
623
  export declare interface IFilteredAttributes {
310
624
  [key: string]: string | object;
311
625
  }
312
626
 
313
- export { ILabel }
627
+ export declare interface IGeo {
628
+ latitude?: number;
629
+ longitude?: number;
630
+ zip?: string;
631
+ street: string;
632
+ city?: string;
633
+ country: string;
634
+ }
635
+
636
+ export declare interface IIndicators {
637
+ value: number;
638
+ }
639
+
640
+ export declare interface IJsonWidget {
641
+ node: string;
642
+ child: any[] | JsonChild[];
643
+ settings?: Settings;
644
+ template?: string;
645
+ label?: string;
646
+ tag?: string;
647
+ }
648
+
649
+ export declare interface ILabel {
650
+ label: string;
651
+ count: number;
652
+ info?: string;
653
+ current: ICloudIndicators;
654
+ previous?: ICloudIndicators;
655
+ percentage?: number;
656
+ }
657
+
658
+ export declare interface ILand {
659
+ fillStyle: string;
660
+ }
314
661
 
315
- export { ILand }
662
+ export declare interface ILayout {
663
+ sections: Object | ISlideSections;
664
+ slide: ISlide;
665
+ widgets: Object | ISlideWidgets;
666
+ zones: Object | ISlideZones;
667
+ }
668
+
669
+ export declare interface IMedium {
670
+ type: string;
671
+ url: string;
672
+ width: number;
673
+ height: number;
674
+ }
675
+
676
+ export declare interface IMessage {
677
+ id: string;
678
+ published: string;
679
+ harvested: string;
680
+ utc: number;
681
+ expires: number;
682
+ channel: string;
683
+ type: string;
684
+ sender: ISender;
685
+ reply: string;
686
+ replyto: string;
687
+ page: string;
688
+ conversation: string;
689
+ title: string;
690
+ content: string;
691
+ sentiment: number;
692
+ link: string;
693
+ language?: string;
694
+ region?: string;
695
+ topics: ITopic[];
696
+ dynamics?: IDynamics;
697
+ geo?: IGeo;
698
+ media?: IMedium[];
699
+ }
316
700
 
317
- export { IMessage }
701
+ /**
702
+ * Messages
703
+ */
704
+ export declare interface IMessages {
705
+ messages: IMessage[];
706
+ presentation?: string;
707
+ slide?: string;
708
+ title?: string;
709
+ dashboard?: string;
710
+ widget?: string;
711
+ topics?: string;
712
+ }
318
713
 
319
- export { IMessages }
714
+ export declare interface IMetrics {
715
+ doc?: number;
716
+ previous?: number;
717
+ change?: number;
718
+ }
320
719
 
321
- export { IModal }
720
+ /**
721
+ * IModal
722
+ */
723
+ export declare interface IModal {
724
+ showComponent: string;
725
+ props?: any;
726
+ timeout?: number;
727
+ }
322
728
 
323
729
  export declare const intToString: (num: any, digits?: number, abbreviate?: boolean, locale?: string) => string;
324
730
 
@@ -347,40 +753,343 @@ export declare interface IPresentations {
347
753
  presentations: IPresentation[];
348
754
  }
349
755
 
350
- export { IQuery }
756
+ /**
757
+ * Query
758
+ */
759
+ export declare interface IQuery {
760
+ [x: string]: any;
761
+ topics?: string;
762
+ presentation?: string;
763
+ dashboard: string;
764
+ widget: string;
765
+ labels?: string[];
766
+ compare?: string;
767
+ period?: number;
768
+ type?: "cloud" | "messages" | "series" | "preference" | "proxy" | "slide" | "dashboard" | "widget";
769
+ order?: "utc" | "reach" | "engagement" | "impressions";
770
+ media?: number;
771
+ dynamics?: number;
772
+ geo?: number;
773
+ delay?: string;
774
+ approved?: string;
775
+ moderation?: "realtime" | "delayed" | "approved" | "none";
776
+ hrm?: string;
777
+ before?: number;
778
+ since?: number;
779
+ hash?: string;
780
+ name?: string;
781
+ data?: any;
782
+ }
783
+
784
+ /**
785
+ * API Response
786
+ */
787
+ export declare interface IResponse {
788
+ data: IDashboards | IMessages | ISeries | ICloud | ISlides | IPresentations | IPreferences | IWidgets | null;
789
+ message: string;
790
+ success: boolean;
791
+ query?: IQuery;
792
+ }
793
+
794
+ export declare interface IRotatingGlobe {
795
+ country: ICountry;
796
+ land: ILand;
797
+ borders: IBorders;
798
+ sphere: ISphere;
799
+ arc: IArc;
800
+ }
801
+
802
+ export declare interface ISender {
803
+ id?: string;
804
+ channel?: string;
805
+ title?: string;
806
+ name?: string;
807
+ avatar?: string;
808
+ bio?: string;
809
+ location?: string;
810
+ verified?: number;
811
+ following?: number;
812
+ followers?: number;
813
+ listed?: number;
814
+ favourites?: number;
815
+ messages?: number;
816
+ influence?: number;
817
+ }
818
+
819
+ /**
820
+ * Series Data
821
+ */
822
+ export declare interface ISeries {
823
+ topic: string;
824
+ title: string;
825
+ series: ISeriesData[];
826
+ category: ICategory;
827
+ metrics?: IMetrics;
828
+ indicators?: IIndicators;
829
+ timestamp?: number;
830
+ }
831
+
832
+ export declare interface ISeriesConfig {
833
+ fixed?: number;
834
+ abbreviate?: boolean;
835
+ }
351
836
 
352
- export { IResponse }
837
+ export declare interface ISeriesCss {
838
+ arrowdown?: string;
839
+ arrowup?: string;
840
+ backdrop?: string;
841
+ body?: string;
842
+ brand?: string;
843
+ change?: string;
844
+ count?: string;
845
+ container?: string;
846
+ date?: string;
847
+ down?: string;
848
+ host?: string;
849
+ image?: string;
850
+ title?: string;
851
+ up?: string;
852
+ widget?: string;
853
+ dark?: boolean;
854
+ }
353
855
 
354
- export { IRotatingGlobe }
856
+ export declare interface ISeriesD3 {
857
+ globe: {
858
+ colors: {
859
+ arc: string;
860
+ border: string;
861
+ country: string;
862
+ land: string;
863
+ sphere: string;
864
+ };
865
+ settings?: {
866
+ canvas?: string;
867
+ card?: string;
868
+ width?: number;
869
+ height?: number;
870
+ };
871
+ };
872
+ }
355
873
 
356
- export { ISeries }
874
+ export declare interface ISeriesData {
875
+ name?: string;
876
+ label?: string;
877
+ current?: number[];
878
+ current_total?: number;
879
+ previous_total?: number;
880
+ previous?: number[];
881
+ current_category?: number;
882
+ previous_category?: number;
883
+ }
357
884
 
358
- export { ISeriesConfig }
885
+ export declare interface ISeriesDateFormat {
886
+ time?: string;
887
+ date?: string;
888
+ }
359
889
 
360
- export { ISeriesCss }
890
+ export declare interface ISeriesOptions {
891
+ css?: ISeriesCss;
892
+ d3?: ISeriesD3;
893
+ dateformat?: ISeriesDateFormat;
894
+ show?: ISeriesShow;
895
+ config?: ISeriesConfig;
896
+ }
361
897
 
362
- export { ISeriesD3 }
898
+ export declare interface ISeriesShow {
899
+ brand?: boolean;
900
+ date?: boolean;
901
+ }
363
902
 
364
- export { ISeriesData }
903
+ export declare interface IShow {
904
+ approve?: boolean;
905
+ avatar?: boolean;
906
+ brand?: boolean;
907
+ date?: boolean;
908
+ dynamics?: boolean;
909
+ kpi?: boolean;
910
+ sender?: boolean;
911
+ star?: boolean;
912
+ visible?: boolean;
913
+ }
365
914
 
366
- export { ISeriesDateFormat }
915
+ export declare interface ISlide {
916
+ 'label': string;
917
+ 'cols': number;
918
+ 'rows': number;
919
+ 'width': string;
920
+ 'height': string;
921
+ 'backgrounds': string[];
922
+ 'zones': string[];
923
+ 'interval': string;
924
+ 'animation': string;
925
+ 'animation-speed': string;
926
+ }
367
927
 
368
- export { ISeriesOptions }
928
+ export declare interface ISlideCloud {
929
+ 'data-type'?: string;
930
+ 'component'?: string;
931
+ 'data-dashboard'?: string;
932
+ 'data-widget': string;
933
+ 'css-count'?: string[];
934
+ 'css-host'?: string;
935
+ 'kpi-name'?: string;
936
+ 'config-abbreviate'?: string;
937
+ 'class'?: string | string[];
938
+ }
369
939
 
370
- export { ISeriesShow }
940
+ export declare interface ISlideComponent {
941
+ path: string;
942
+ query: string;
943
+ node: string;
944
+ tag: string;
945
+ attr: ISlideMessages | ISlideSeries | ISlideCloud;
946
+ }
371
947
 
372
- export { IShow }
948
+ export declare interface ISlideContent {
949
+ editable: boolean;
950
+ path: string;
951
+ query: string;
952
+ node: string;
953
+ tag: string;
954
+ attr: Attr_2;
955
+ }
956
+
957
+ export declare interface ISlideMessages {
958
+ 'layout'?: string;
959
+ 'component'?: string;
960
+ 'data-type'?: string;
961
+ 'data-dashboard'?: string;
962
+ 'data-widget'?: string;
963
+ 'show-kpi'?: string;
964
+ 'show-sender'?: string;
965
+ 'css-date'?: string[];
966
+ 'css-card'?: string[];
967
+ 'css-body'?: string[];
968
+ 'css-brand'?: string[];
969
+ 'css-handle'?: string[];
970
+ 'css-name'?: string[];
971
+ 'date-format'?: string;
972
+ 'animation'?: string;
973
+ 'interval'?: string;
974
+ 'show-brand'?: string;
975
+ 'data-order'?: string;
976
+ 'index'?: string;
977
+ 'class'?: string | string[];
978
+ 'edit'?: string;
979
+ }
373
980
 
374
981
  export declare interface ISlides {
375
982
  presentation: string;
376
983
  slides: any;
377
984
  }
378
985
 
379
- export { ISphere }
986
+ export declare interface ISlideSection {
987
+ 'area': string;
988
+ 'grid-area': string;
989
+ 'widgets': string[];
990
+ }
380
991
 
381
- export { IStorageOptions }
992
+ export declare interface ISlideSections {
993
+ ['x:string']: ISlideSection;
994
+ }
382
995
 
383
- export { ITopic }
996
+ export declare interface ISlideSeries {
997
+ 'data-type'?: string;
998
+ 'data-widget': string;
999
+ 'component'?: string;
1000
+ 'data-dashboard'?: string;
1001
+ 'css-arrow-down'?: string | string[];
1002
+ 'css-body'?: string | string[];
1003
+ 'css-brand'?: string | string[];
1004
+ 'css-change'?: string | string[];
1005
+ 'css-count'?: string | string[];
1006
+ 'css-down'?: string | string[];
1007
+ 'css-up'?: string | string[];
1008
+ 'class'?: string | string[];
1009
+ }
1010
+
1011
+ export declare interface ISlideSettings {
1012
+ contents: ISlideContent[];
1013
+ component: ISlideComponent;
1014
+ }
1015
+
1016
+ export declare interface ISlideWidget {
1017
+ node: string;
1018
+ child: SlideChild[];
1019
+ settings: ISlideSettings;
1020
+ template: string;
1021
+ label: string;
1022
+ tag: string;
1023
+ }
1024
+
1025
+ export declare interface ISlideWidgets {
1026
+ ['x:string']: string;
1027
+ }
1028
+
1029
+ export declare interface ISlideZone {
1030
+ 'label': string;
1031
+ 'area': string;
1032
+ 'grid-area': string;
1033
+ 'grid-rows': string;
1034
+ 'grid-cols': string;
1035
+ 'gap-x': string;
1036
+ 'gap-y': string;
1037
+ 'padding': string;
1038
+ 'sections': string[];
1039
+ }
1040
+
1041
+ export declare interface ISlideZones {
1042
+ ['x:string']: ISlideZone[];
1043
+ }
1044
+
1045
+ export declare interface ISphere {
1046
+ strokeStyle: string;
1047
+ lineWidth: number;
1048
+ fillStyle: string;
1049
+ }
1050
+
1051
+ /**
1052
+ * Storage Options
1053
+ */
1054
+ export declare interface IStorageOptions {
1055
+ app: string;
1056
+ builder?: boolean;
1057
+ domain?: string;
1058
+ cdn?: string;
1059
+ channel?: string;
1060
+ presentation: string;
1061
+ slide?: string;
1062
+ slides?: string[];
1063
+ display?: string;
1064
+ monitor?: string;
1065
+ version: string;
1066
+ storage: string;
1067
+ token?: string;
1068
+ bearer?: string;
1069
+ csrf?: string;
1070
+ moderation?: string;
1071
+ beforeTime?: string;
1072
+ delay?: number;
1073
+ period?: number;
1074
+ retention?: number;
1075
+ suspended?: boolean;
1076
+ loglevel?: number;
1077
+ }
1078
+
1079
+ export declare interface ITopic {
1080
+ message_id: string;
1081
+ dashboard_id?: string;
1082
+ widget_id?: string;
1083
+ topic?: string;
1084
+ engagement: number;
1085
+ impressions: number;
1086
+ reach: number;
1087
+ sentiment: number;
1088
+ title?: string;
1089
+ utc?: number;
1090
+ expires?: number;
1091
+ visible?: number;
1092
+ }
384
1093
 
385
1094
  export declare interface IWidget {
386
1095
  id: string;
@@ -392,17 +1101,57 @@ export declare interface IWidget {
392
1101
  period?: string;
393
1102
  }
394
1103
 
1104
+ export declare interface IWidgetComponent {
1105
+ path: string;
1106
+ query: string;
1107
+ node: string;
1108
+ tag: string;
1109
+ attr: ICardAttributes;
1110
+ }
1111
+
1112
+ export declare interface IWidgetContent {
1113
+ editable: boolean;
1114
+ path: string;
1115
+ query: string;
1116
+ text: string;
1117
+ node: string;
1118
+ }
1119
+
395
1120
  export declare interface IWidgets {
396
1121
  widgets: IWidget[];
397
1122
  }
398
1123
 
1124
+ export declare interface IWidgetSettings {
1125
+ label: string;
1126
+ preview?: string;
1127
+ contents?: IWidgetContent[];
1128
+ component: IWidgetComponent;
1129
+ }
1130
+
399
1131
  export declare const json2html: (json: any) => any;
400
1132
 
401
- export { Label }
1133
+ export declare interface JsonChild {
1134
+ node: string;
1135
+ tag: string;
1136
+ attr: MessagesAttr | SeriesAttr;
1137
+ child: JsonChild[];
1138
+ }
402
1139
 
403
- export { Land }
1140
+ export declare interface Label {
1141
+ label: string;
1142
+ count: number;
1143
+ info: string;
1144
+ }
404
1145
 
405
- export { LandGeometry }
1146
+ export declare interface Land {
1147
+ type: string;
1148
+ geometries: LandGeometry[];
1149
+ }
1150
+
1151
+ export declare interface LandGeometry {
1152
+ type: Type;
1153
+ arcs: Array<Array<number[]>>;
1154
+ }
406
1155
 
407
1156
  export declare const log: (level: number | undefined, message: any[]) => void;
408
1157
 
@@ -410,6 +1159,30 @@ export declare const maxifyCss: (css: string) => string;
410
1159
 
411
1160
  export declare const maxifyHtml: (html: string) => string;
412
1161
 
1162
+ export declare interface MessagesAttr {
1163
+ layout?: string;
1164
+ component?: string;
1165
+ "data-type"?: string;
1166
+ "data-dashboard"?: string;
1167
+ "data-widget"?: string;
1168
+ "show-kpi"?: string;
1169
+ "show-sender"?: string;
1170
+ "css-date"?: string[];
1171
+ "css-card"?: string[];
1172
+ "css-body"?: string[];
1173
+ "css-brand"?: string[];
1174
+ "css-handle"?: string[];
1175
+ "css-name"?: string[];
1176
+ "date-format"?: string;
1177
+ animation?: string;
1178
+ interval?: string;
1179
+ "show-brand"?: string;
1180
+ "data-order"?: string;
1181
+ index?: string;
1182
+ class?: string | string[];
1183
+ edit?: string;
1184
+ }
1185
+
413
1186
  export declare const minifyCss: (css: string) => void;
414
1187
 
415
1188
  export declare const minifyHtml: (html: string) => string;
@@ -422,7 +1195,7 @@ export declare enum MODERATION {
422
1195
  REALTIME = "realtime"
423
1196
  }
424
1197
 
425
- export declare function moderation(options: IStorageOptions_2, query: IQuery_2): IQuery_2;
1198
+ export declare function moderation(options: IStorageOptions, query: IQuery): IQuery;
426
1199
 
427
1200
  export declare function numberFormatter(num: number, digits: number): string;
428
1201
 
@@ -439,6 +1212,32 @@ export declare function rtl(message: IMessage): {
439
1212
 
440
1213
  export declare function sanitize(messages: IMessage[]): IMessage[];
441
1214
 
1215
+ export declare interface Series {
1216
+ data: number[];
1217
+ type: string;
1218
+ areaStyle: AreaStyle;
1219
+ }
1220
+
1221
+ export declare interface SeriesAttr {
1222
+ "data-type"?: string;
1223
+ "data-widget": string;
1224
+ component?: string;
1225
+ "data-dashboard"?: string;
1226
+ "css-arrow-down"?: string | string[];
1227
+ "css-body"?: string | string[];
1228
+ "css-brand"?: string | string[];
1229
+ "css-change"?: string | string[];
1230
+ "css-count"?: string | string[];
1231
+ "css-down"?: string | string[];
1232
+ "css-up"?: string | string[];
1233
+ class?: string | string[];
1234
+ }
1235
+
1236
+ export declare interface Settings {
1237
+ contents: Content[];
1238
+ component: Component;
1239
+ }
1240
+
442
1241
  export declare enum ShapeType {
443
1242
  MultiPolygon = "MultiPolygon",
444
1243
  Polygon = "Polygon"
@@ -448,6 +1247,12 @@ export declare function showModal(e: MouseEvent, widget: any, message: IMessage,
448
1247
 
449
1248
  export declare function shuffleMessages(messages: IMessage[]): IMessage[];
450
1249
 
1250
+ export declare interface SlideChild {
1251
+ node: string;
1252
+ tag: string;
1253
+ attr: Attr_2;
1254
+ }
1255
+
451
1256
  export declare enum STORAGE {
452
1257
  KEYVAL = "keyval",
453
1258
  LOCAL = "local",
@@ -462,16 +1267,34 @@ export declare enum STORAGE {
462
1267
  */
463
1268
  export declare function stringGen(): string;
464
1269
 
465
- export { Transform }
1270
+ export declare interface Transform {
1271
+ scale: number[];
1272
+ translate: number[];
1273
+ }
1274
+
1275
+ export declare enum Type {
1276
+ MultiPolygon = "MultiPolygon",
1277
+ Polygon = "Polygon"
1278
+ }
466
1279
 
467
- export declare const typeCss: (query: IQuery_2 | undefined) => string;
1280
+ export declare const typeCss: (query: IQuery | undefined) => string;
468
1281
 
469
1282
  export declare const uniq: (length?: number, existing?: never[]) => string;
470
1283
 
471
1284
  export declare const upDownColor: (change: number) => "text-down text-xs" | "text-up text-xs" | "text-white text-xs";
472
1285
 
473
- export declare function widgetParams(query: IQuery_2): IQuery_2;
1286
+ export declare function widgetParams(query: IQuery): IQuery;
474
1287
 
475
1288
  export declare const wrapPromise: (promise: any, delay: number, reason: string) => Promise<any>;
476
1289
 
1290
+ export declare interface XAxis {
1291
+ type: string;
1292
+ boundaryGap: boolean;
1293
+ data: string[];
1294
+ }
1295
+
1296
+ export declare interface YAxis {
1297
+ type: string;
1298
+ }
1299
+
477
1300
  export { }