autoql-fe-utils 1.7.8 → 1.7.9

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.
@@ -0,0 +1,4201 @@
1
+ import dayjs from 'dayjs'
2
+ export { default as dayjs } from 'dayjs'
3
+ import axios from 'axios'
4
+
5
+ declare const capitalizeFirstChar: (string: any) => any
6
+ declare const isNumber: (str: any) => boolean
7
+ declare const getTitleCase: (str: any) => any
8
+ declare function titlelizeString(str: any): any
9
+
10
+ declare enum PrecisionTypes {
11
+ DAY = 'DAY',
12
+ MONTH = 'MONTH',
13
+ YEAR = 'YEAR',
14
+ WEEK = 'WEEK',
15
+ QUARTER = 'QUARTER',
16
+ DATE_HOUR = 'DATE_HOUR',
17
+ DATE_MINUTE = 'DATE_MINUTE',
18
+ HOUR = 'HOUR',
19
+ MINUTE = 'MINUTE',
20
+ }
21
+ declare enum DateStringPrecisionTypes {
22
+ DOW = 'DOW',
23
+ MONTHONLY = 'MONTHONLY',
24
+ WEEKONLY = 'WEEKONLY',
25
+ QUARTERONLY = 'QUARTERONLY',
26
+ HOUR = 'HOUR',
27
+ MINUTE = 'MINUTE',
28
+ }
29
+ declare enum AggTypes {
30
+ SUM = 'SUM',
31
+ AVG = 'AVG',
32
+ MIN = 'MIN',
33
+ MAX = 'MAX',
34
+ COUNT = 'COUNT',
35
+ COUNT_DISTINCT = 'COUNT_DISTINCT',
36
+ MEDIAN = 'MEDIAN',
37
+ STD_DEV = 'STD_DEV',
38
+ VARIANCE = 'VARIANCE',
39
+ }
40
+ declare enum ColumnTypes {
41
+ DOLLAR_AMT = 'DOLLAR_AMT',
42
+ QUANTITY = 'QUANTITY',
43
+ RATIO = 'RATIO',
44
+ PERCENT = 'PERCENT',
45
+ STRING = 'STRING',
46
+ DATE = 'DATE',
47
+ DATE_STRING = 'DATE_STRING',
48
+ }
49
+ declare enum DataExplorerTypes {
50
+ SUBJECT_TYPE = 'SUBJECT',
51
+ VL_TYPE = 'VL',
52
+ TEXT_TYPE = 'TEXT',
53
+ }
54
+ declare enum SampleQueryReplacementTypes {
55
+ SAMPLE_QUERY_TEXT_TYPE = 'TEXT',
56
+ SAMPLE_QUERY_VL_TYPE = 'VL',
57
+ SAMPLE_QUERY_TIME_TYPE = 'DUCKLING_TIME',
58
+ SAMPLE_QUERY_AMOUNT_TYPE = 'DUCKLING_AMOUNT',
59
+ }
60
+ declare enum DisplayTypes {
61
+ TABLE = 'table',
62
+ PIVOT_TABLE = 'pivot_table',
63
+ BAR = 'bar',
64
+ COLUMN = 'column',
65
+ LINE = 'line',
66
+ STACKED_COLUMN = 'stacked_column',
67
+ STACKED_BAR = 'stacked_bar',
68
+ STACKED_LINE = 'stacked_line',
69
+ BUBBLE = 'bubble',
70
+ HEATMAP = 'heatmap',
71
+ PIE = 'pie',
72
+ HISTOGRAM = 'histogram',
73
+ SCATTERPLOT = 'scatterplot',
74
+ COLUMN_LINE = 'column_line',
75
+ }
76
+ declare enum QueryErrorTypes {
77
+ UNAUTHENTICATED = 'Unauthenticated',
78
+ PARSE_ERROR = 'Parse error',
79
+ NO_QUERY_SUPPLIED = 'No query supplied',
80
+ NO_QUERY_ID_SUPPLIED = 'No query ID supplied',
81
+ }
82
+ declare enum Operators {
83
+ ADDITION = 'ADDITION',
84
+ MULTIPLICATION = 'MULTIPLICATION',
85
+ SUBTRACTION = 'SUBTRACTION',
86
+ DIVISION = 'DIVISION',
87
+ }
88
+ declare enum CustomColumnValues {
89
+ LEFT_BRACKET = 'LEFT_BRACKET',
90
+ RIGHT_BRACKET = 'RIGHT_BRACKET',
91
+ PERCENT_TOTAL = 'PERCENT_TOTAL',
92
+ RANK = 'RANK',
93
+ MOVING_AVG = 'MOVING_AVG',
94
+ CUMULATIVE_SUM = 'CUMULATIVE_SUM',
95
+ CUMULATIVE_PERCENT = 'CUMULATIVE_PERCENT',
96
+ CHANGE = 'CHANGE',
97
+ FUNCTION = 'FUNCTION',
98
+ }
99
+ declare enum CustomColumnTypes {
100
+ COLUMN = 'column',
101
+ NUMBER = 'number',
102
+ OPERATOR = 'operator',
103
+ CURRENCY = 'currency',
104
+ FUNCTION = 'function',
105
+ SUM = 'sum',
106
+ }
107
+ declare enum CustomColumnRowRangeTypes {
108
+ PRECEEDING = 'PRECEDING',
109
+ FOLLOWING = 'FOLLOWING',
110
+ }
111
+ declare enum GeneralErrorTypes {
112
+ UNAUTHORIZED = 'UNAUTHORIZED',
113
+ NO_PROJECT_ID_SUPPLIED = 'No project id supplied',
114
+ }
115
+ declare enum TranslationTypes {
116
+ INCLUDE = 'include',
117
+ EXCLUDE = 'exclude',
118
+ ONLY = 'only',
119
+ REVERSE_ONLY = 'reverse_only',
120
+ }
121
+
122
+ type ColumnTypeParams = {
123
+ type: string
124
+ description: string
125
+ continuous?: boolean
126
+ ordinal?: boolean
127
+ aggOptions?: string[]
128
+ aggregable?: boolean
129
+ isNumber?: boolean
130
+ icon?: string
131
+ unit?: string
132
+ supportedOperators?: string[]
133
+ }
134
+ declare class ColumnType {
135
+ type: string
136
+ description: string
137
+ continuous?: boolean
138
+ ordinal?: boolean
139
+ aggOptions?: string[]
140
+ aggregable?: boolean
141
+ isNumber?: boolean
142
+ icon?: string
143
+ unit?: string
144
+ supportedOperators?: string[]
145
+ constructor({
146
+ type,
147
+ description,
148
+ continuous,
149
+ ordinal,
150
+ aggOptions,
151
+ aggregable,
152
+ isNumber,
153
+ icon,
154
+ unit,
155
+ supportedOperators,
156
+ }: ColumnTypeParams)
157
+ }
158
+
159
+ declare class Column$1 {
160
+ type: ColumnTypes
161
+ isNumberType: boolean
162
+ isStringType: boolean
163
+ isDateType: boolean
164
+ drilldownGroupby: any
165
+ getTooltip: Function
166
+ constructor(options: Column)
167
+ }
168
+ interface Column$1 extends Column {}
169
+
170
+ declare class AggType {
171
+ type: string
172
+ displayName?: string
173
+ tooltip?: string
174
+ unit?: string
175
+ supportsStrings?: boolean
176
+ symbol?: string
177
+ fn?: Function
178
+ icon?: string
179
+ sqlFn?: Function
180
+ constructor({ type, displayName, tooltip, unit, icon, supportsStrings, symbol, sqlFn, fn }: AggTypeParams)
181
+ }
182
+
183
+ declare class DataExplorerSubject {
184
+ id: string
185
+ type: DataExplorerTypes
186
+ filters?: DataExplorerSubjectFilter[]
187
+ groups?: DataExplorerSubjectGroups[]
188
+ displayName: string
189
+ formattedType?: string
190
+ text?: string
191
+ query?: string
192
+ context?: string
193
+ valueLabel?: ValueLabelSuggestion
194
+ isSubject: Function
195
+ isValueLabel: Function
196
+ isPlainText: Function
197
+ isAggSeed: Function
198
+ constructor(obj: SubjectSuggestion | ValueLabelSuggestion)
199
+ }
200
+ interface DataExplorerSubject extends DataExplorerSubjectInterface {}
201
+
202
+ declare const TABLE_TYPES: DisplayTypes[]
203
+ declare const CHART_TYPES: DisplayTypes[]
204
+ declare const CHARTS_WITHOUT_LEGENDS: DisplayTypes[]
205
+ declare const CHARTS_WITHOUT_AGGREGATED_DATA: DisplayTypes[]
206
+ declare const DATE_ONLY_CHART_TYPES: DisplayTypes[]
207
+ declare const DOUBLE_AXIS_CHART_TYPES: DisplayTypes[]
208
+ declare const CHARTS_WITHOUT_AXES: DisplayTypes[]
209
+ declare const DEFAULT_CHART_CONFIG: {
210
+ isScaled: boolean
211
+ }
212
+ declare const MONTH_NAMES: string[]
213
+ declare const DEFAULT_DATA_PAGE_SIZE = 50000
214
+ declare const MAX_DATA_PAGE_SIZE = 50000
215
+ declare const MAX_CHART_ELEMENTS = 500
216
+ declare const WEEKDAY_NAMES_MON: string[]
217
+ declare const WEEKDAY_NAMES_SUN: string[]
218
+ declare const DOW_STYLES: string[]
219
+ declare const SEASON_NAMES: string[]
220
+ declare const DAYJS_PRECISION_FORMATS: {
221
+ DAY: string
222
+ MONTH: string
223
+ YEAR: string
224
+ DATE_HOUR: string
225
+ DATE_MINUTE: string
226
+ }
227
+ declare const MAX_LEGEND_LABELS = 22
228
+ declare const MIN_HISTOGRAM_SAMPLE = 20
229
+ declare const DEFAULT_AGG_TYPE = AggTypes.SUM
230
+ declare const AGG_TYPES: {
231
+ SUM: AggType
232
+ AVG: AggType
233
+ MIN: AggType
234
+ MAX: AggType
235
+ COUNT: AggType
236
+ COUNT_DISTINCT: AggType
237
+ MEDIAN: AggType
238
+ STD_DEV: AggType
239
+ VARIANCE: AggType
240
+ }
241
+ declare const DISPLAY_TYPES: {
242
+ TABLE: {
243
+ type: DisplayTypes
244
+ isTableType: boolean
245
+ }
246
+ PIVOT_TABLE: {
247
+ type: DisplayTypes
248
+ isTableType: boolean
249
+ }
250
+ BAR: {
251
+ type: DisplayTypes
252
+ isChartType: boolean
253
+ allowLegend: boolean
254
+ allowAgg: boolean
255
+ hasAxes: boolean
256
+ datesOnly: boolean
257
+ multiAxis: boolean
258
+ }
259
+ COLUMN: {
260
+ type: DisplayTypes
261
+ isChartType: boolean
262
+ allowLegend: boolean
263
+ allowAgg: boolean
264
+ hasAxes: boolean
265
+ datesOnly: boolean
266
+ multiAxis: boolean
267
+ }
268
+ LINE: {
269
+ type: DisplayTypes
270
+ isChartType: boolean
271
+ allowLegend: boolean
272
+ allowAgg: boolean
273
+ hasAxes: boolean
274
+ datesOnly: boolean
275
+ multiAxis: boolean
276
+ }
277
+ STACKED_COLUMN: {
278
+ type: DisplayTypes
279
+ isChartType: boolean
280
+ allowLegend: boolean
281
+ allowAgg: boolean
282
+ hasAxes: boolean
283
+ dateOnly: boolean
284
+ multiAxis: boolean
285
+ }
286
+ STACKED_BAR: {
287
+ type: DisplayTypes
288
+ isChartType: boolean
289
+ allowLegend: boolean
290
+ allowAgg: boolean
291
+ hasAxes: boolean
292
+ dateOnly: boolean
293
+ multiAxis: boolean
294
+ }
295
+ STACKED_LINE: {
296
+ type: DisplayTypes
297
+ isChartType: boolean
298
+ allowLegend: boolean
299
+ allowAgg: boolean
300
+ hasAxes: boolean
301
+ dateOnly: boolean
302
+ multiAxis: boolean
303
+ }
304
+ BUBBLE: {
305
+ type: DisplayTypes
306
+ isChartType: boolean
307
+ allowLegend: boolean
308
+ allowAgg: boolean
309
+ hasAxes: boolean
310
+ dateOnly: boolean
311
+ multiAxis: boolean
312
+ }
313
+ HEATMAP: {
314
+ type: DisplayTypes
315
+ isChartType: boolean
316
+ allowLegend: boolean
317
+ allowAgg: boolean
318
+ hasAxes: boolean
319
+ dateOnly: boolean
320
+ multiAxis: boolean
321
+ }
322
+ PIE: {
323
+ type: DisplayTypes
324
+ isChartType: boolean
325
+ allowLegend: boolean
326
+ allowAgg: boolean
327
+ hasAxes: boolean
328
+ dateOnly: boolean
329
+ multiAxis: boolean
330
+ }
331
+ HISTOGRAM: {
332
+ type: DisplayTypes
333
+ isChartType: boolean
334
+ allowLegend: boolean
335
+ allowAgg: boolean
336
+ hasAxes: boolean
337
+ dateOnly: boolean
338
+ multiAxis: boolean
339
+ }
340
+ SCATTERPLOT: {
341
+ type: DisplayTypes
342
+ isChartType: boolean
343
+ allowLegend: boolean
344
+ allowAgg: boolean
345
+ hasAxes: boolean
346
+ dateOnly: boolean
347
+ multiAxis: boolean
348
+ }
349
+ COLUMN_LINE: {
350
+ type: DisplayTypes
351
+ isChartType: boolean
352
+ allowLegend: boolean
353
+ allowAgg: boolean
354
+ hasAxes: boolean
355
+ dateOnly: boolean
356
+ multiAxis: boolean
357
+ }
358
+ }
359
+
360
+ declare const getDayLocalStartDate: ({
361
+ timeObj,
362
+ timezone,
363
+ daysToAdd,
364
+ }: {
365
+ timeObj: any
366
+ timezone: any
367
+ daysToAdd?: number
368
+ }) => string
369
+ declare const getWeekLocalStartDate: ({
370
+ weekDay,
371
+ timeObj,
372
+ timezone,
373
+ }: {
374
+ weekDay: any
375
+ timeObj: any
376
+ timezone: any
377
+ }) => string
378
+ declare const getMonthLocalStartDate: ({
379
+ monthDay,
380
+ timeObj,
381
+ timezone,
382
+ }: {
383
+ monthDay: any
384
+ timeObj: any
385
+ timezone: any
386
+ }) => string
387
+ declare const CUSTOM_TYPE = 'CUSTOM'
388
+ declare const PROJECT_TYPE = 'PROJECT'
389
+ declare const PERIODIC_TYPE = 'PERIODIC'
390
+ declare const CONTINUOUS_TYPE = 'CONTINUOUS'
391
+ declare const SCHEDULED_TYPE = 'SCHEDULED'
392
+ declare const COMPARE_TYPE = 'COMPARE'
393
+ declare const EXISTS_TYPE = 'EXISTS'
394
+ declare const NUMBER_TERM_TYPE = 'CONSTANT'
395
+ declare const QUERY_TERM_TYPE = 'QUERY'
396
+ declare const GROUP_TERM_TYPE = 'GROUP'
397
+ declare const DEFAULT_EVALUATION_FREQUENCY = 5
398
+ declare const DATA_ALERT_STATUSES: {
399
+ ACTIVE: string
400
+ RETRY: string
401
+ WAITING: string
402
+ INACTIVE: string
403
+ UNRECOVERABLE: string
404
+ EVALUATION_ERROR: string
405
+ DATA_RETURN_ERROR: string
406
+ GENERAL_ERROR: string
407
+ }
408
+ declare const DATA_ALERT_ENABLED_STATUSES: string[]
409
+ declare const DATA_ALERT_OPERATORS: {
410
+ GREATER_THAN: {
411
+ displayName: string
412
+ symbol: string
413
+ conditionText: string
414
+ conditionTextPast: string
415
+ }
416
+ GREATER_THAN_EQUAL_TO: {
417
+ displayName: string
418
+ symbol: string
419
+ conditionText: string
420
+ conditionTextPast: string
421
+ }
422
+ LESS_THAN: {
423
+ displayName: string
424
+ symbol: string
425
+ conditionText: string
426
+ conditionTextPast: string
427
+ }
428
+ LESS_THAN_EQUAL_TO: {
429
+ displayName: string
430
+ symbol: string
431
+ conditionText: string
432
+ conditionTextPast: string
433
+ }
434
+ EQUAL_TO: {
435
+ displayName: string
436
+ symbol: string
437
+ conditionText: string
438
+ conditionTextPast: string
439
+ }
440
+ NOT_EQUAL_TO: {
441
+ displayName: string
442
+ symbol: string
443
+ conditionText: string
444
+ conditionTextPast: string
445
+ }
446
+ }
447
+ declare const DATA_ALERT_CONDITION_TYPES: {
448
+ COMPARE: {
449
+ displayName: string
450
+ }
451
+ EXISTS: {
452
+ displayName: string
453
+ }
454
+ }
455
+ declare const DATA_ALERT_FREQUENCY_TYPE_OPTIONS: {
456
+ SCHEDULED: {
457
+ label: string
458
+ listLabel: string
459
+ }
460
+ CONTINUOUS: {
461
+ label: string
462
+ listLabel: string
463
+ }
464
+ }
465
+ declare const SCHEDULE_INTERVAL_OPTIONS: {
466
+ DAY: {
467
+ displayName: string
468
+ getLocalStartDate: ({ timeObj, timezone, daysToAdd }: { timeObj: any; timezone: any; daysToAdd?: number }) => string
469
+ }
470
+ WEEK: {
471
+ displayName: string
472
+ getLocalStartDate: ({ weekDay, timeObj, timezone }: { weekDay: any; timeObj: any; timezone: any }) => string
473
+ }
474
+ MONTH: {
475
+ displayName: string
476
+ getLocalStartDate: ({ monthDay, timeObj, timezone }: { monthDay: any; timeObj: any; timezone: any }) => string
477
+ }
478
+ }
479
+ declare const SCHEDULE_FREQUENCY_OPTIONS: {
480
+ DAY: {
481
+ displayText: string
482
+ }
483
+ WEEK: {
484
+ displayText: string
485
+ }
486
+ MONTH: {
487
+ displayText: string
488
+ }
489
+ MONTH_LAST_DAY: {
490
+ displayText: string
491
+ }
492
+ YEAR: {
493
+ displayText: string
494
+ }
495
+ }
496
+ declare const RESET_PERIOD_OPTIONS: {
497
+ DAY: {
498
+ displayName: string
499
+ displayText: string
500
+ }
501
+ WEEK: {
502
+ displayName: string
503
+ displayText: string
504
+ }
505
+ MONTH: {
506
+ displayName: string
507
+ displayText: string
508
+ }
509
+ NONE: {
510
+ displayName: string
511
+ displayText: string
512
+ }
513
+ }
514
+ declare const MONTH_DAY_SELECT_OPTIONS: {
515
+ LAST: string
516
+ }
517
+ declare const EVALUATION_FREQUENCY_OPTIONS: {
518
+ 1: {
519
+ value: number
520
+ label: string
521
+ }
522
+ 2: {
523
+ value: number
524
+ label: string
525
+ }
526
+ 3: {
527
+ value: number
528
+ label: string
529
+ }
530
+ 5: {
531
+ value: number
532
+ label: string
533
+ listLabel: string
534
+ }
535
+ 10: {
536
+ value: number
537
+ label: string
538
+ }
539
+ 30: {
540
+ value: number
541
+ label: string
542
+ }
543
+ 60: {
544
+ value: number
545
+ label: string
546
+ }
547
+ }
548
+
549
+ declare const COLUMN_TYPES: {
550
+ DOLLAR_AMT: ColumnType
551
+ QUANTITY: ColumnType
552
+ RATIO: ColumnType
553
+ PERCENT: ColumnType
554
+ STRING: ColumnType
555
+ DATE: ColumnType
556
+ DATE_STRING: ColumnType
557
+ }
558
+
559
+ declare const DEFAULT_SOURCE = 'widgets'
560
+
561
+ interface RawColumn {
562
+ type: ColumnTypes
563
+ precision?: string
564
+ dow_style?: string
565
+ groupable?: boolean
566
+ name?: string
567
+ display_name?: string
568
+ is_visible?: boolean
569
+ multi_series?: boolean
570
+ drill_down?: string
571
+ alt_name?: string
572
+ }
573
+ interface Column extends RawColumn {
574
+ aggType?: string
575
+ title?: string
576
+ origColumn?: Column
577
+ origPivotColumn?: Column
578
+ origValues?: any
579
+ headerFilter?: boolean | string
580
+ headerSort?: boolean | string
581
+ frozen?: boolean
582
+ visible?: boolean
583
+ field?: string
584
+ index?: number
585
+ cssClass?: string
586
+ pivot?: boolean
587
+ formatter?: Function
588
+ drilldownGroupby?: any
589
+ additional?: boolean
590
+ custom?: boolean
591
+ id?: string
592
+ }
593
+ interface AvailableSelect {
594
+ table_column: string
595
+ column_type: string
596
+ display_name: string
597
+ }
598
+ interface AdditionalSelect {
599
+ insertion: string
600
+ columns: string[]
601
+ }
602
+ interface DisplayOverride {
603
+ english: string
604
+ table_column: string
605
+ }
606
+ interface FilterLock {
607
+ filter_type: string
608
+ key: string
609
+ value: string
610
+ show_message: string
611
+ }
612
+ interface FrontendReq {
613
+ additional_selects?: any[]
614
+ session_locked_conditions: Object
615
+ page_size: number
616
+ disambiguation: any[]
617
+ chart_images: string
618
+ orders: any[]
619
+ filters: any[]
620
+ translation: string
621
+ text: string
622
+ date_format: string
623
+ scope: string
624
+ source: string
625
+ test: boolean
626
+ session_filter_locks: any[]
627
+ v2_dates: number
628
+ persistent_filter_locks: FilterLock[]
629
+ columns?: Column[]
630
+ }
631
+ type Rows = Array<Array<string | number>>
632
+ type ParsedInterpretationChunk = {
633
+ eng: string
634
+ c_type?: string
635
+ for?: string
636
+ dateArray?: string[]
637
+ operator?: string
638
+ type?: string
639
+ causes_gen2?: string[]
640
+ causes?: string[]
641
+ clean_causes?: string[]
642
+ }
643
+ type ParsedInterpretation = ParsedInterpretationChunk[]
644
+ interface QueryData {
645
+ session_locked_conditions: any[]
646
+ count_rows: number
647
+ fe_req: FrontendReq
648
+ query_id: string
649
+ row_limit: number
650
+ rows: Rows
651
+ chart_images: null
652
+ display_type: string
653
+ columns: RawColumn[]
654
+ interpretation: string
655
+ text: string
656
+ parsed_interpretation: ParsedInterpretation
657
+ persistent_locked_conditions: any[]
658
+ condition_filter: any[]
659
+ sql: any[]
660
+ }
661
+ interface QueryResponse {
662
+ data: QueryData
663
+ message: string
664
+ reference_id: string
665
+ }
666
+ interface AxiosResponse {
667
+ data: QueryResponse
668
+ }
669
+ interface TransformedAxiosResponse {
670
+ data: TransformedQueryResponse
671
+ }
672
+ interface TransformedQueryResponse extends QueryResponse {
673
+ originalQueryID?: string
674
+ isDrilldown?: boolean
675
+ queryFn?: Function
676
+ }
677
+ interface DataFormatting {
678
+ currencyCode: string
679
+ languageCode: string
680
+ currencyDecimals: number
681
+ quantityDecimals: number
682
+ ratioDecimals: number
683
+ comparisonDisplay: string
684
+ monthYearFormat: string
685
+ dayMonthYearFormat: string
686
+ }
687
+ interface Scale {}
688
+ interface ValueLabel {
689
+ keyword: string
690
+ show_message: string
691
+ format_txt?: string
692
+ canonical?: string
693
+ column_name?: string
694
+ }
695
+ interface DataExplorerSuggestion {
696
+ name: string
697
+ alias_name: string
698
+ column_name: string
699
+ }
700
+ type AggTypeParams = {
701
+ type: string
702
+ displayName?: string
703
+ tooltip?: string
704
+ unit?: string
705
+ supportsStrings?: boolean
706
+ symbol?: string
707
+ fn?: Function
708
+ icon?: string
709
+ sqlFn?: Function
710
+ }
711
+ interface SubjectSuggestion {
712
+ name: string
713
+ display_name: string
714
+ query: string
715
+ filters: DataExplorerSubjectFilter[]
716
+ groups: DataExplorerSubjectGroups[]
717
+ }
718
+ interface ValueLabelSuggestion {
719
+ canonical: string
720
+ keyword: string
721
+ show_message: string
722
+ format_txt: string
723
+ }
724
+ interface DataExplorerSubjectInterface {
725
+ type: DataExplorerTypes
726
+ id: string
727
+ original_obj: SubjectSuggestion | ValueLabelSuggestion
728
+ }
729
+ type tableFilterParams = {
730
+ name: string
731
+ columnName: string
732
+ value: string | number
733
+ operator: string
734
+ displayValue?: string
735
+ id: string
736
+ }
737
+ type TableConfig = {
738
+ stringColumnIndex: number
739
+ numberColumnIndex: number
740
+ numberColumnIndex2: number
741
+ legendColumnIndex: number
742
+ stringColumnIndices: number[]
743
+ numberColumnIndices: number[]
744
+ numberColumnIndices2: number[]
745
+ }
746
+ type Authentication = {
747
+ domain: string
748
+ token: string
749
+ apiKey: string
750
+ }
751
+ type AutoQLJWT = {
752
+ sub: string
753
+ resource_access: string[]
754
+ iss: string
755
+ groups: string[]
756
+ display_name: string
757
+ aud: string
758
+ user_id: string
759
+ project_id: string
760
+ client_app: string
761
+ exp: number
762
+ iat: number
763
+ email: string
764
+ access_control_id: string[]
765
+ }
766
+ interface DataExplorerSubjectFilter {
767
+ column_type: string
768
+ display_name: string
769
+ table_column: string
770
+ token_string: string
771
+ }
772
+ interface DataExplorerSubjectGroups {
773
+ column_type: string
774
+ display_name: string
775
+ table_column: string
776
+ }
777
+ type ApiSorter = {
778
+ name: string
779
+ sort: 'ASC' | 'DESC'
780
+ id?: string
781
+ }
782
+ type TabulatorSorter = {
783
+ field: string
784
+ dir: 'asc' | 'desc'
785
+ }
786
+ type ApiFilter = {
787
+ name: string
788
+ value: string
789
+ operator: string
790
+ column_type?: string | null
791
+ }
792
+ type TabulatorFilter = {
793
+ field: string
794
+ type: 'function'
795
+ value: string
796
+ }
797
+
798
+ declare const DEFAULT_CSS_PREFIX = 'react-autoql'
799
+ declare const authenticationDefault: {
800
+ token: any
801
+ apiKey: any
802
+ domain: any
803
+ dprKey: any
804
+ dprDomain: any
805
+ }
806
+ declare const dataFormattingDefault: {
807
+ currencyCode: string
808
+ languageCode: string
809
+ currencyDecimals: number
810
+ quantityDecimals: number
811
+ ratioDecimals: number
812
+ comparisonDisplay: string
813
+ monthYearFormat: string
814
+ dayMonthYearFormat: string
815
+ }
816
+ declare const autoQLConfigDefault: {
817
+ translation: TranslationTypes
818
+ test: boolean
819
+ enableAutocomplete: boolean
820
+ enableQueryInterpretation: boolean
821
+ enableQueryValidation: boolean
822
+ enableQuerySuggestions: boolean
823
+ enableColumnVisibilityManager: boolean
824
+ enableDrilldowns: boolean
825
+ enableNotifications: boolean
826
+ enableCSVDownload: boolean
827
+ enableReportProblem: boolean
828
+ projectId: string
829
+ enableProjectSelect: boolean
830
+ enableEditReverseTranslation: boolean
831
+ }
832
+ declare const dataConfigDefault: {
833
+ stringColumnIndices: any[]
834
+ numberColumnIndices: any[]
835
+ stringColumnIndex: number
836
+ legendColumnIndex: any
837
+ numberColumnIndex: number
838
+ }
839
+ declare const getAuthentication: (prop?: {}) => {
840
+ token: any
841
+ apiKey: any
842
+ domain: any
843
+ dprKey: any
844
+ dprDomain: any
845
+ }
846
+ declare const getDataFormatting: (prop?: {}) => DataFormatting
847
+ declare const getAutoQLConfig: (prop?: {}) => {
848
+ translation: TranslationTypes
849
+ test: boolean
850
+ enableAutocomplete: boolean
851
+ enableQueryInterpretation: boolean
852
+ enableQueryValidation: boolean
853
+ enableQuerySuggestions: boolean
854
+ enableColumnVisibilityManager: boolean
855
+ enableDrilldowns: boolean
856
+ enableNotifications: boolean
857
+ enableCSVDownload: boolean
858
+ enableReportProblem: boolean
859
+ projectId: string
860
+ enableProjectSelect: boolean
861
+ enableEditReverseTranslation: boolean
862
+ }
863
+ declare const getDataConfig: (prop?: {}) => {
864
+ stringColumnIndices: any[]
865
+ numberColumnIndices: any[]
866
+ stringColumnIndex: number
867
+ legendColumnIndex: any
868
+ numberColumnIndex: number
869
+ }
870
+
871
+ declare const CHART_PADDING = 0
872
+ declare const BUTTON_PADDING = 5
873
+ declare const AXIS_TITLE_PADDING_TOP = 20
874
+ declare const AXIS_TITLE_PADDING_BOTTOM = 0
875
+ declare const AXIS_TITLE_BORDER_PADDING_LEFT = 5
876
+ declare const AXIS_TITLE_BORDER_PADDING_TOP = 3
877
+ declare const LOAD_MORE_DROPDOWN_PADDING_BOTTOM = 10
878
+ declare const MINIMUM_TITLE_LENGTH = 10
879
+ declare const MINIMUM_INNER_WIDTH = 50
880
+ declare const MINIMUM_INNER_HEIGHT = 50
881
+ declare const LABEL_FONT_SIZE = 10
882
+ declare const TITLE_FONT_SIZE = 12
883
+ declare const LEGEND_BORDER_PADDING = 15
884
+ declare const LEGEND_BORDER_THICKNESS = 1
885
+ declare const HORIZONTAL_LEGEND_SPACING = 20
886
+ declare const VERTICAL_LEGEND_SPACING = 25
887
+ declare const LEGEND_SHAPE_SIZE = 75
888
+ declare const LEGEND_TOP_ADJUSTMENT = 15
889
+ declare const DEFAULT_MAX_LEGEND_WIDTH = 140
890
+ declare const DEFAULT_LEGEND_PADDING_LEFT = 10
891
+ declare const DEFAULT_LEGEND_PADDING_RIGHT = 10
892
+ declare const DEFAULT_LEGEND_PADDING_TOP = 10
893
+ declare const DEFAULT_LEGEND_PADDING_BOTTOM = 10
894
+ declare const PATH_SMOOTHING = 0.2
895
+ declare const MAX_ROWS_FOR_PIE_CHART = 10
896
+
897
+ declare const constructRTArray: (interpretation: ParsedInterpretation) => ParsedInterpretationChunk[] | undefined
898
+ declare const getDatesFromRT: (queryResponse: AxiosResponse) => any
899
+ declare const getTimeRangeFromDateArray: (dates: any) => 'DAY' | 'MONTH' | 'WEEK'
900
+ declare const getTimeRangeFromRT: (queryResponse: any) => 'DAY' | 'MONTH' | 'WEEK'
901
+ declare const getTimeFrameTextFromChunk: (chunk: any) => string
902
+
903
+ declare const getStringFromSource: (source: string | number | Array<string>) => string | null
904
+ declare const mergeSources: (
905
+ source: string | number | Array<string>,
906
+ newSource: string | number | Array<string>,
907
+ ) => string | null
908
+
909
+ interface DrilldownColumn {
910
+ name: string
911
+ value: string | number
912
+ drill_down?: string
913
+ operator?: string
914
+ }
915
+ declare const nameValueObject: (name: any, value: any, drill_down?: any, operator?: any) => DrilldownColumn
916
+ declare const getKeyByValue: (object: any, value: any) => string
917
+ declare const cloneObject: (from: any, to: any) => any
918
+
919
+ declare const roundToNearestMultiple: (value: any, multiple?: number) => number
920
+ declare const roundDownToNearestMultiple: (value: any, multiple?: number) => number
921
+ declare const roundUpToNearestMultiple: (value: any, multiple?: number) => number
922
+ declare const roundToNearestLog10: (number: any) => number
923
+
924
+ declare const currentEventLoopEnd: () => Promise<unknown>
925
+ declare const animateInputText: ({
926
+ text,
927
+ inputRef,
928
+ callback,
929
+ totalAnimationTime,
930
+ }: {
931
+ text?: string
932
+ inputRef: any
933
+ callback?: () => void
934
+ totalAnimationTime?: number
935
+ }) => Promise<void>
936
+ declare const handleTooltipBoundaryCollision: (e: any, self: any) => void
937
+ declare const removeFromDOM: (elem: any) => void
938
+ declare const setCaretPosition: (elem: any, caretPos: any) => void
939
+ declare const getPadding: (element: any) => {
940
+ left: number
941
+ right: number
942
+ top: number
943
+ bottom: number
944
+ }
945
+ declare const getQueryParams: (url: any) => {}
946
+ declare const getSVGBase64: (svgElement: any) => string
947
+ /**
948
+ * converts an svg string to base64 png using the domUrl
949
+ * @param {string} svgElement the svgElement
950
+ * @param {number} [margin=0] the width of the border - the image size will be height+margin by width+margin
951
+ * @param {string} [fill] optionally backgrund canvas fill
952
+ * @return {Promise} a promise to the bas64 png image
953
+ */
954
+ declare const svgToPng: (svgElement: SVGElement, scale: number, CSS_PREFIX: string) => Promise<string>
955
+ declare const getBBoxFromRef: (ref: any) => any
956
+
957
+ interface getSupportedDisplayTypesParams {
958
+ response?: AxiosResponse
959
+ columns?: Column[]
960
+ dataLength?: number
961
+ pivotDataLength?: number
962
+ isDataLimited?: boolean
963
+ allowNumericStringColumns?: boolean
964
+ }
965
+ declare const isChartType: (type: any) => boolean
966
+ declare const isTableType: (type: any) => boolean
967
+ declare const isDisplayTypeValid: (
968
+ response: AxiosResponse,
969
+ displayType: string,
970
+ dataLength: number,
971
+ pivotDataLength: number,
972
+ columns: Column[],
973
+ isDataLimited: boolean,
974
+ ) => boolean
975
+ declare const shouldPlotMultiSeries: (columns: any) => boolean
976
+ declare const supportsPieChart: (columns: any, chartData: any) => boolean
977
+ declare const getPotentialDisplayTypes: (response: AxiosResponse) => string[]
978
+ declare const potentiallySupportsPivot: (response: AxiosResponse) => boolean
979
+ declare const potentiallySupportsDatePivot: (response: any) => boolean
980
+ declare const usePivotDataForChart: (response: any) => boolean
981
+ declare const supportsRegularPivotTable: (columns: any, data?: any, dataLength?: any) => boolean
982
+ declare const supportsDatePivotTable: (columns: any) => boolean
983
+ declare const isSingleValueResponse: (response: any) => boolean
984
+ declare const getUniqueYearsForColumn: (data: any, columns: any, index: any) => any
985
+ declare const getSupportedDisplayTypes: ({
986
+ response,
987
+ columns,
988
+ dataLength,
989
+ pivotDataLength,
990
+ isDataLimited,
991
+ allowNumericStringColumns,
992
+ }?: getSupportedDisplayTypesParams) => string[]
993
+ declare const getFirstChartDisplayType: (supportedDisplayTypes: any, fallback: any) => any
994
+ declare const getDefaultDisplayType: (
995
+ response?: AxiosResponse,
996
+ defaultToChart?: boolean,
997
+ columns?: Column[],
998
+ dataLength?: number,
999
+ pivotDataLength?: number,
1000
+ preferredDisplayType?: string,
1001
+ isDataLimited?: boolean,
1002
+ ) => string
1003
+ declare const hasData: (response: any) => any
1004
+ declare const hasMoreData: (response: any, currentNumRows: any) => boolean
1005
+ declare const isDataLimited: (queryResponse: any, rows?: any) => boolean
1006
+ declare const isDrilldown: (queryResponse: any) => boolean
1007
+
1008
+ declare const isISODate: (str: any) => boolean
1009
+ declare const getDateRangeIntersection: (
1010
+ aRange: any,
1011
+ bRange: any,
1012
+ ) => {
1013
+ startDate: any
1014
+ endDate: any
1015
+ }
1016
+ declare const getColumnNameForDateRange: (chunkEng: any) => any
1017
+ declare const getFilterPrecision: (col: Column) => PrecisionTypes.DAY | PrecisionTypes.MONTH | PrecisionTypes.YEAR
1018
+ declare const getPrecisionForDayJS: (
1019
+ colPrecision: any,
1020
+ ) => 'minute' | 'hour' | 'day' | 'month' | 'year' | 'quarter' | 'week'
1021
+ declare const getStartAndEndDateFromDateStrs: (
1022
+ dateRangeStrs: any,
1023
+ isStartDateUnbounded: any,
1024
+ isEndDateUnbounded: any,
1025
+ ) => {
1026
+ startDate: Date
1027
+ endDate: Date
1028
+ }
1029
+ declare const getDateRangesFromInterpretation: (parsedInterpretation: any) => any
1030
+ declare const getColumnDateRanges: (response: any) => any
1031
+ declare const getEpochFromDate: (date: any, precision?: any, precisionFrame?: any) => any
1032
+ declare const getDayjsObjForStringType: (value: any, col: any) => dayjs.Dayjs
1033
+ declare const getDayJSObj: ({ value, column }: { value: number | string; column: Column }) => dayjs.Dayjs
1034
+
1035
+ declare const formatStringDateWithPrecision: (value: any, col: any) => any
1036
+ declare const formatStringDate: (value: any, config?: DataFormatting) => any
1037
+ declare const formatDateType: (element: any, column: Column, config?: DataFormatting) => any
1038
+ declare const formatDateStringType: (element: any, column: Column, config?: DataFormatting) => any
1039
+ declare const applyPrecisionToDate: (
1040
+ date: any,
1041
+ precision: any,
1042
+ dateDayJS: any,
1043
+ monthYearFormat: any,
1044
+ dayMonthYearFormat: any,
1045
+ ) => any
1046
+ declare const formatISODateWithPrecision: (value: any, col: Column, config?: DataFormatting) => any
1047
+ declare const formatEpochDate: (value: any, col: Column, config?: DataFormatting) => any
1048
+ declare const dateStringSortFn: (a: any, b: any, col: Column) => number
1049
+ declare const numberSortFn: (a: any, b: any) => number
1050
+ declare const dateSortFn: (a: any, b: any, col: Column, isTable: any) => number
1051
+ declare const filterDataByColumn: (
1052
+ data: any,
1053
+ columns: any,
1054
+ columnIndex: any,
1055
+ value: any,
1056
+ operator?: string,
1057
+ dataFormatting?: {
1058
+ currencyCode: string
1059
+ languageCode: string
1060
+ currencyDecimals: number
1061
+ quantityDecimals: number
1062
+ ratioDecimals: number
1063
+ comparisonDisplay: string
1064
+ monthYearFormat: string
1065
+ dayMonthYearFormat: string
1066
+ },
1067
+ ) => any
1068
+ declare const sortDataByColumn: (data: any, columns: any, columnIndex: any, sortDirection?: string) => any
1069
+ declare const sortDataByDate: (data: any, tableColumns: any, sortDirection: string, reverse: any) => any
1070
+ declare const sortDataByAlphabet: (data: any, tableColumns: any, sortDirection: string, isTable: any) => any
1071
+ interface formatElementParams {
1072
+ element: string | number
1073
+ column: Column
1074
+ config?: DataFormatting
1075
+ htmlElement?: HTMLElement
1076
+ isChart?: boolean
1077
+ }
1078
+ declare const formatElement: ({ element, column, config, htmlElement, isChart }: formatElementParams) => string | number
1079
+ declare const getNumberFormatConfig: (
1080
+ d: number | string,
1081
+ scale: any,
1082
+ ) => {
1083
+ minimumFractionDigits: number
1084
+ maximumFractionDigits: number
1085
+ notation: any
1086
+ }
1087
+ declare const countDecimals: (number: any) => any
1088
+ declare const formatChartLabel: ({
1089
+ d,
1090
+ scale,
1091
+ column,
1092
+ dataFormatting,
1093
+ maxLabelWidth,
1094
+ sigDigits,
1095
+ }: {
1096
+ d: number | string
1097
+ scale?: any
1098
+ column?: Column
1099
+ dataFormatting?: DataFormatting
1100
+ maxLabelWidth?: number
1101
+ sigDigits?: number
1102
+ }) => {
1103
+ fullWidthLabel: string | number
1104
+ formattedLabel: string | number
1105
+ }
1106
+ declare const getCurrencySymbol: (dataFormatting?: {
1107
+ currencyCode: string
1108
+ languageCode: string
1109
+ currencyDecimals: number
1110
+ quantityDecimals: number
1111
+ ratioDecimals: number
1112
+ comparisonDisplay: string
1113
+ monthYearFormat: string
1114
+ dayMonthYearFormat: string
1115
+ }) => string
1116
+
1117
+ declare const getScheduleFrequencyObject: (dataAlert: any) => any
1118
+ declare const getSupportedConditionTypes: (expression: any, queryResponse: any) => string[]
1119
+ declare const showEvaluationFrequencySetting: (notificationType: any) => boolean
1120
+ declare const resetDateIsFuture: (dataAlert: any) => boolean
1121
+ declare const formatResetDate: (dataAlert: any, short: any) => string
1122
+ declare const formatNextScheduleDate: (schedules: any, short: any) => string
1123
+ declare const getTimeObjFromTimeStamp: (
1124
+ timestamp: any,
1125
+ timezone: any,
1126
+ ) => {
1127
+ ampm: string
1128
+ value: string
1129
+ value24hr: string
1130
+ minute: number
1131
+ hour24: number
1132
+ hour: number
1133
+ }
1134
+ declare const getWeekdayFromTimeStamp: (timestamp: any, timezone: any) => string
1135
+ declare const getDayOfTheMonthFromTimestamp: (timestamp: any, timezone: any) => number
1136
+ declare const getTodaysDayOfTheMonth: () => number
1137
+ declare const getDayOfTheMonthSuffix: (day: any) => 'st' | 'nd' | 'rd' | 'th'
1138
+ declare const getFormattedTimestamp: () => string
1139
+
1140
+ interface JoinColumnsResult {
1141
+ firstJoinColumns: string[]
1142
+ secondJoinColumns?: string[]
1143
+ firstJoinColumnsDisplayName: string[]
1144
+ secondJoinColumnsDisplayName?: string[]
1145
+ firstJoinColumnsIndices: number[]
1146
+ secondJoinColumnsIndices?: number[]
1147
+ }
1148
+ declare const isColumnNumberType: (col: any) => boolean
1149
+ declare const isColumnStringType: (col: any) => boolean
1150
+ declare const isColumnDateType: (col: any) => boolean
1151
+ declare const hasNumberColumn: (columns: any) => boolean
1152
+ declare const hasStringColumn: (columns: any) => boolean
1153
+ declare const hasDateColumn: (columns: any) => boolean
1154
+ declare const getVisibleColumns: (columns: any) => Column[]
1155
+ declare const getHiddenColumns: (columns: Column[]) => Column[]
1156
+ declare const areSomeColumnsHidden: (columns: Column[]) => boolean
1157
+ declare const areAllColumnsHidden: (columns: Column[]) => boolean
1158
+ declare const getGroupableColumns: (columns: any) => any
1159
+ declare const getGroupBys: (
1160
+ row: any,
1161
+ columns: any,
1162
+ ) => {
1163
+ groupBys: any
1164
+ supportedByAPI: boolean
1165
+ }
1166
+ declare const getGroupBysFromTable: (cell: any, tableColumns: any) => any
1167
+ declare const getGroupBysFromPivotTable: ({
1168
+ cell,
1169
+ rowHeaders,
1170
+ columnHeaders,
1171
+ rowHeaderDefinition,
1172
+ columnHeaderDefinition,
1173
+ }: {
1174
+ cell: any
1175
+ rowHeaders: any
1176
+ columnHeaders: any
1177
+ rowHeaderDefinition: any
1178
+ columnHeaderDefinition: any
1179
+ }) => {
1180
+ name: any
1181
+ value: string
1182
+ operator: string
1183
+ drill_down: any
1184
+ }[]
1185
+ declare const isAggregation: (columns: any) => boolean
1186
+ declare const getColumnTypeAmounts: (columns: any) => {
1187
+ amountOfNumberColumns: number
1188
+ amountOfStringColumns: number
1189
+ }
1190
+ declare const getDateColumnIndex: (columns: any) => any
1191
+ declare const getNumberOfGroupables: (columns: any) => number
1192
+ declare const isListQuery: (columns: any) => boolean
1193
+ declare const setFilterFunction: ({
1194
+ column,
1195
+ dataFormatting,
1196
+ }: {
1197
+ column: Column
1198
+ dataFormatting: DataFormatting
1199
+ }) => (headerValue: any, rowValue: any) => boolean
1200
+ declare const setSorterFunction: (col: any) => ((a: any, b: any) => number) | 'alphanum'
1201
+ declare const setHeaderFilterPlaceholder: (col: any) => 'Pick range' | 'Filter'
1202
+ declare const getAggConfig: (columns: any) => {}
1203
+ declare const getDrilldownGroupby: (queryResponse: any, newCol: any) => any
1204
+ declare const formatQueryColumns: ({
1205
+ columns,
1206
+ aggConfig,
1207
+ queryResponse,
1208
+ onTableHeaderClick,
1209
+ enableTableSorting,
1210
+ dataFormatting,
1211
+ }: {
1212
+ columns: Column[]
1213
+ aggConfig?: Object
1214
+ queryResponse?: AxiosResponse
1215
+ onTableHeaderClick?: Function
1216
+ enableTableSorting?: boolean
1217
+ dataFormatting?: DataFormatting
1218
+ }) => Column[] | undefined
1219
+ declare const getStringColumnIndices: (
1220
+ columns: any,
1221
+ supportsPivot?: boolean,
1222
+ includeNumerics?: boolean,
1223
+ ) =>
1224
+ | {
1225
+ stringColumnIndices: any
1226
+ stringColumnIndex: any
1227
+ legendColumnIndex?: undefined
1228
+ }
1229
+ | {
1230
+ stringColumnIndex: any
1231
+ stringColumnIndices: any
1232
+ legendColumnIndex: any
1233
+ }
1234
+ declare const getNumberColumnIndices: (
1235
+ columns: any,
1236
+ isPivot?: any,
1237
+ ) => {
1238
+ numberColumnIndex: any
1239
+ numberColumnIndices: any
1240
+ numberColumnIndices2: any
1241
+ numberColumnIndex2: any
1242
+ currencyColumnIndices: any
1243
+ quantityColumnIndices: any
1244
+ ratioColumnIndices: any
1245
+ currencyColumnIndex: any
1246
+ quantityColumnIndex: any
1247
+ ratioColumnIndex: any
1248
+ countColumnIndex: any
1249
+ allNumberColumnIndices: any[]
1250
+ }
1251
+ declare const getMultiSeriesColumnIndex: (columns: any) => any
1252
+ declare const isColumnIndexValid: (index: any, columns: any) => boolean
1253
+ declare const isColumnIndicesValid: (indices: any, columns: any) => any
1254
+ declare const numberIndicesArraysOverlap: (columnIndexConfig: any) => any
1255
+ declare const hasColumnIndex: (indices: any, index: any) => boolean
1256
+ declare const getPivotColumnIndexConfig: ({
1257
+ pivotTableColumns,
1258
+ columnIndexConfig,
1259
+ isFirstGeneration,
1260
+ response,
1261
+ }: {
1262
+ pivotTableColumns: any
1263
+ columnIndexConfig: any
1264
+ isFirstGeneration: any
1265
+ response: any
1266
+ }) => any
1267
+ declare const getColumnIndexConfig: ({
1268
+ response,
1269
+ columns,
1270
+ currentTableConfig,
1271
+ allowNumericalOrdinalAxis,
1272
+ }?: {
1273
+ response?: AxiosResponse
1274
+ columns?: Column[]
1275
+ currentTableConfig?: TableConfig
1276
+ allowNumericalOrdinalAxis?: boolean
1277
+ }) => any
1278
+ declare const isColumnIndexConfigValid: ({
1279
+ response,
1280
+ columnIndexConfig,
1281
+ columns,
1282
+ displayType,
1283
+ }: {
1284
+ response: any
1285
+ columnIndexConfig: any
1286
+ columns: any
1287
+ displayType: any
1288
+ }) => boolean
1289
+ declare const getQuerySelectableJoinColumns: (columns: any) => any
1290
+ declare const getDefaultJoinColumnAndDisplayNameAndJoinColumnsIndices: (queryResponse: any) => {
1291
+ defaultJoinColumn: any[]
1292
+ defaultDisplayName: string
1293
+ defaultJoinColumnsIndices: any[]
1294
+ }
1295
+ declare const getDefaultJoinColumns: (firstQueryResult: any, secondQueryResult: any) => JoinColumnsResult
1296
+
1297
+ declare const functionsEqual: (a: Function, b: Function) => boolean
1298
+ declare const isObject: (obj: any) => boolean
1299
+ declare const deepEqual: (objA: Object, objB: Object) => boolean
1300
+ declare const difference: (objA: Object, objB: Object) => any[]
1301
+ declare const rotateArray: (array: any, n?: number) => any[]
1302
+ declare const onlyUnique: (value: any, index: any, self: any) => boolean
1303
+ declare const makeEmptyArray: (w: any, h: any, value?: string) => any[]
1304
+ declare const removeElementAtIndex: (array: any, index: any) => any
1305
+
1306
+ declare const aggregateOtherCategory: (data: any, columnIndexConfig: any, maxElements?: number) => any
1307
+ declare const aggregateData: ({
1308
+ data,
1309
+ aggColIndex,
1310
+ columns,
1311
+ numberIndices,
1312
+ dataFormatting,
1313
+ columnIndexConfig,
1314
+ maxElements,
1315
+ useBuckets,
1316
+ }: {
1317
+ data: any
1318
+ aggColIndex: any
1319
+ columns: any
1320
+ numberIndices: any
1321
+ dataFormatting: any
1322
+ columnIndexConfig: any
1323
+ maxElements: any
1324
+ useBuckets?: boolean
1325
+ }) => any
1326
+ type CreatePivotDataParams = {
1327
+ rows?: (string | number)[][]
1328
+ columns?: Column[]
1329
+ tableConfig?: TableConfig
1330
+ dataFormatting?: DataFormatting
1331
+ isFirstGeneration?: boolean
1332
+ }
1333
+ declare const generatePivotTableData: ({
1334
+ isFirstGeneration,
1335
+ rows,
1336
+ columns,
1337
+ tableConfig,
1338
+ dataFormatting,
1339
+ }?: CreatePivotDataParams) => {}
1340
+ declare const formatDatePivotYear: ({ dateValue, dateColumn }: { dateValue: any; dateColumn: any }) => string
1341
+ declare const formatDatePivotMonth: ({ dateValue, dateColumn }: { dateValue: any; dateColumn: any }) => string
1342
+ declare const generateDatePivotData: ({ rows, columns, tableConfig, dataFormatting }?: CreatePivotDataParams) => {}
1343
+ declare const generatePivotData: (params?: CreatePivotDataParams) => {}
1344
+ declare const generateFilterDrilldownResponse: ({
1345
+ response,
1346
+ rows,
1347
+ index,
1348
+ value,
1349
+ }: {
1350
+ response: any
1351
+ rows: any
1352
+ index: any
1353
+ value: any
1354
+ }) => any
1355
+ declare const uuidv4: () => string
1356
+ declare const parseJwt: (token: any) => AutoQLJWT
1357
+
1358
+ declare const formatTableParams: (
1359
+ params: any,
1360
+ columns: Column[],
1361
+ ) => {
1362
+ sorters: any
1363
+ filters: tableFilterParams[]
1364
+ page: any
1365
+ }
1366
+ declare const formatSortersForAPI: (params: any, columns: Column[]) => any
1367
+ declare const formatNumberFilterValue: (headerValue?: string) => {
1368
+ value: string
1369
+ operator: string
1370
+ }
1371
+ declare const formatFiltersForAPI: (params: any, columns: Column[]) => tableFilterParams[]
1372
+ declare const formatSortersForTabulator: (apiSorters: ApiSorter[], columns: Column[]) => TabulatorSorter[]
1373
+ declare const formatFiltersForTabulator: (apiFilters: ApiFilter[], columns: Column[]) => TabulatorFilter[]
1374
+ declare const onTableCellClick: ({
1375
+ cell,
1376
+ columns,
1377
+ tableConfig,
1378
+ pivotData,
1379
+ }: {
1380
+ cell: any
1381
+ columns: any
1382
+ tableConfig: any
1383
+ pivotData: any
1384
+ }) => {
1385
+ groupBys: {}
1386
+ supportedByAPI: boolean
1387
+ }
1388
+
1389
+ declare const MAX_RECENT_SEARCHES = 3
1390
+ declare const getRecentSelectionID: (authentication: Authentication) => string
1391
+ declare const getRecentSearchesFromLocalStorage: (authentication: any) => any[]
1392
+ declare const setRecentSearchesInLocalStorage: (recentSearches: any, authentication: any) => void
1393
+ declare const addSubjectToRecentSearches: (subject: any, authentication: any) => void
1394
+
1395
+ declare const getSuggestionLists: (query: any, replacements: any) => any[]
1396
+ declare const getPlainTextList: (query: any, fullSuggestions: any) => any[]
1397
+ declare const isInitialSelectionValid: ({
1398
+ initialSelections,
1399
+ suggestionLists,
1400
+ }: {
1401
+ initialSelections: any
1402
+ suggestionLists: any
1403
+ }) => boolean
1404
+ declare const updateStartAndEndIndexes: ({
1405
+ selectedSuggestions,
1406
+ plainTextList,
1407
+ }: {
1408
+ selectedSuggestions: any
1409
+ plainTextList: any
1410
+ }) => any
1411
+ declare const getInitialSelections: ({
1412
+ suggestionLists,
1413
+ plainTextList,
1414
+ initialSelections,
1415
+ autoSelectSuggestion,
1416
+ }: {
1417
+ suggestionLists: any
1418
+ plainTextList: any
1419
+ initialSelections: any
1420
+ autoSelectSuggestion: any
1421
+ }) => any
1422
+ declare const initializeQueryValidationOptions: ({
1423
+ responseBody,
1424
+ initialSelections,
1425
+ autoSelectSuggestion,
1426
+ }: {
1427
+ responseBody: any
1428
+ initialSelections: any
1429
+ autoSelectSuggestion?: boolean
1430
+ }) => {
1431
+ selections: any
1432
+ plainTextList: any[]
1433
+ suggestionLists: any[]
1434
+ }
1435
+ declare const getQueryValidationQueryText: (newSelectedSuggestions: any, plainTextList: any) => string
1436
+
1437
+ declare const isError500Type: (referenceId: any) => boolean
1438
+ declare const getCurrentTimezone: () => any
1439
+ declare const fetchSuggestions: ({
1440
+ query,
1441
+ queryId,
1442
+ domain,
1443
+ apiKey,
1444
+ token,
1445
+ cancelToken,
1446
+ }?: {
1447
+ query?: string
1448
+ queryId?: string
1449
+ domain?: string
1450
+ apiKey?: string
1451
+ token?: string
1452
+ cancelToken?: any
1453
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1454
+ declare const runQueryNewPage: ({
1455
+ queryId,
1456
+ domain,
1457
+ apiKey,
1458
+ token,
1459
+ page,
1460
+ cancelToken,
1461
+ }?: {
1462
+ queryId?: string
1463
+ domain?: string
1464
+ apiKey?: string
1465
+ token?: string
1466
+ page?: number
1467
+ cancelToken?: any
1468
+ }) => Promise<any>
1469
+ interface QueryParams {
1470
+ query?: string
1471
+ userSelection?: Object[]
1472
+ userSelectionFinal?: Object[]
1473
+ translation?: string
1474
+ test?: boolean
1475
+ domain?: string
1476
+ apiKey?: string
1477
+ token?: string
1478
+ source?: string
1479
+ filters?: Object[]
1480
+ orders?: Object[]
1481
+ tableFilters?: Object[]
1482
+ pageSize?: number
1483
+ allowSuggestions?: boolean
1484
+ cancelToken?: any
1485
+ scope?: string
1486
+ enableQueryValidation?: boolean
1487
+ skipQueryValidation?: boolean
1488
+ newColumns?: AdditionalSelect[]
1489
+ displayOverrides?: DisplayOverride[]
1490
+ }
1491
+ interface ColumnSelect {
1492
+ display_name: string
1493
+ column_type: string
1494
+ table_column: string
1495
+ }
1496
+ declare const runQueryOnly: ({
1497
+ query,
1498
+ userSelection,
1499
+ userSelectionFinal,
1500
+ translation,
1501
+ test,
1502
+ domain,
1503
+ apiKey,
1504
+ token,
1505
+ source,
1506
+ filters,
1507
+ orders,
1508
+ tableFilters,
1509
+ pageSize,
1510
+ allowSuggestions,
1511
+ cancelToken,
1512
+ scope,
1513
+ newColumns,
1514
+ displayOverrides,
1515
+ }: QueryParams) => Promise<TransformedAxiosResponse | import('axios').AxiosResponse<any, any>>
1516
+ declare const runQueryValidation: ({
1517
+ text,
1518
+ domain,
1519
+ apiKey,
1520
+ token,
1521
+ cancelToken,
1522
+ }?: {
1523
+ text?: string
1524
+ domain?: string
1525
+ apiKey?: string
1526
+ token?: string
1527
+ cancelToken?: any
1528
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1529
+ declare const runQuery: ({
1530
+ query,
1531
+ userSelection,
1532
+ userSelectionFinal,
1533
+ translation,
1534
+ test,
1535
+ domain,
1536
+ apiKey,
1537
+ token,
1538
+ source,
1539
+ filters,
1540
+ orders,
1541
+ tableFilters,
1542
+ pageSize,
1543
+ allowSuggestions,
1544
+ cancelToken,
1545
+ enableQueryValidation,
1546
+ skipQueryValidation,
1547
+ scope,
1548
+ newColumns,
1549
+ displayOverrides,
1550
+ }?: QueryParams) => Promise<TransformedAxiosResponse | import('axios').AxiosResponse<any, any>>
1551
+ declare const exportCSV: ({
1552
+ queryId,
1553
+ domain,
1554
+ apiKey,
1555
+ token,
1556
+ csvProgressCallback,
1557
+ }?: {
1558
+ queryId?: string
1559
+ domain?: string
1560
+ apiKey?: string
1561
+ token?: string
1562
+ csvProgressCallback?: Function
1563
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1564
+ declare const runDrilldown: ({
1565
+ queryID,
1566
+ groupBys,
1567
+ translation,
1568
+ test,
1569
+ domain,
1570
+ apiKey,
1571
+ token,
1572
+ orders,
1573
+ source,
1574
+ tableFilters,
1575
+ cancelToken,
1576
+ pageSize,
1577
+ newColumns,
1578
+ }?: {
1579
+ queryID?: string
1580
+ groupBys?: Object[]
1581
+ translation?: string
1582
+ test?: boolean
1583
+ domain?: string
1584
+ apiKey?: string
1585
+ token?: string
1586
+ orders?: Object[]
1587
+ source?: string
1588
+ tableFilters?: Object[]
1589
+ cancelToken?: any
1590
+ pageSize?: number
1591
+ newColumns?: AdditionalSelect[]
1592
+ }) => Promise<TransformedAxiosResponse>
1593
+ declare const fetchTopics: ({
1594
+ domain,
1595
+ token,
1596
+ apiKey,
1597
+ }?: {
1598
+ domain?: string
1599
+ apiKey?: string
1600
+ token?: string
1601
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1602
+ declare const fetchAutocomplete: ({
1603
+ suggestion,
1604
+ domain,
1605
+ apiKey,
1606
+ token,
1607
+ }?: {
1608
+ suggestion?: string
1609
+ domain?: string
1610
+ apiKey?: string
1611
+ token?: string
1612
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1613
+ declare const fetchVLAutocomplete: ({
1614
+ suggestion,
1615
+ domain,
1616
+ token,
1617
+ apiKey,
1618
+ context,
1619
+ filter,
1620
+ cancelToken,
1621
+ }?: {
1622
+ suggestion?: string
1623
+ domain?: string
1624
+ apiKey?: string
1625
+ token?: string
1626
+ context?: string
1627
+ filter?: string
1628
+ cancelToken?: any
1629
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1630
+ declare const fetchFilters: ({
1631
+ apiKey,
1632
+ token,
1633
+ domain,
1634
+ }?: {
1635
+ domain?: string
1636
+ apiKey?: string
1637
+ token?: string
1638
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1639
+ declare const setFilters: ({
1640
+ apiKey,
1641
+ token,
1642
+ domain,
1643
+ filters,
1644
+ }?: {
1645
+ domain?: string
1646
+ apiKey?: string
1647
+ token?: string
1648
+ filters?: Object[]
1649
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1650
+ declare const unsetFilterFromAPI: ({
1651
+ apiKey,
1652
+ token,
1653
+ domain,
1654
+ filter,
1655
+ }?: {
1656
+ domain?: string
1657
+ apiKey?: string
1658
+ token?: string
1659
+ filter?: {
1660
+ id: string
1661
+ }
1662
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1663
+ declare const setColumnVisibility: ({
1664
+ apiKey,
1665
+ token,
1666
+ domain,
1667
+ columns,
1668
+ }?: {
1669
+ domain?: string
1670
+ apiKey?: string
1671
+ token?: string
1672
+ columns?: any[]
1673
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1674
+ declare const sendSuggestion: ({
1675
+ queryId,
1676
+ suggestion,
1677
+ apiKey,
1678
+ domain,
1679
+ token,
1680
+ }?: {
1681
+ queryId?: string
1682
+ suggestion?: boolean
1683
+ domain?: string
1684
+ apiKey?: string
1685
+ token?: string
1686
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1687
+ declare const fetchExploreQueries: ({
1688
+ keywords,
1689
+ pageSize,
1690
+ pageNumber,
1691
+ domain,
1692
+ apiKey,
1693
+ token,
1694
+ skipQueryValidation,
1695
+ }?: {
1696
+ keywords?: string
1697
+ pageSize?: number
1698
+ pageNumber?: number
1699
+ domain?: string
1700
+ apiKey?: string
1701
+ token?: string
1702
+ skipQueryValidation?: boolean
1703
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1704
+ declare const reportProblem: ({
1705
+ message,
1706
+ queryId,
1707
+ domain,
1708
+ apiKey,
1709
+ token,
1710
+ }?: {
1711
+ message?: string
1712
+ queryId?: string
1713
+ domain?: string
1714
+ apiKey?: string
1715
+ token?: string
1716
+ }) => Promise<import('axios').AxiosResponse<any, any>>
1717
+
1718
+ declare const formatAdditionalSelectColumn: (
1719
+ column: ColumnSelect,
1720
+ sqlFn?: Function,
1721
+ ) => {
1722
+ insertion: string
1723
+ columns: string[]
1724
+ }
1725
+
1726
+ declare const GLOBAL_OPERATORS: string[]
1727
+ declare const FUNCTION_OPERATORS: string[]
1728
+ declare const HIGHLIGHTED_CLASS = 'highlighted-column'
1729
+ declare const DISABLED_CLASS = 'disabled-column'
1730
+ declare const FORMULA_CLASS = 'formula-column'
1731
+ declare const DEFAULT_COLUMN_NAME = 'New Column'
1732
+ declare const OPERATORS: {
1733
+ CONCAT: {
1734
+ value: string
1735
+ label: string
1736
+ js: string
1737
+ }
1738
+ ADDITION: {
1739
+ value: string
1740
+ icon: string
1741
+ fn: (a: any, b: any) => any
1742
+ js: string
1743
+ }
1744
+ SUBTRACTION: {
1745
+ value: string
1746
+ icon: string
1747
+ fn: (a: any, b: any) => number
1748
+ js: string
1749
+ }
1750
+ MULTIPLICATION: {
1751
+ value: string
1752
+ icon: string
1753
+ fn: (a: any, b: any) => number
1754
+ js: string
1755
+ }
1756
+ DIVISION: {
1757
+ value: string
1758
+ icon: string
1759
+ fn: (a: any, b: any) => number
1760
+ js: string
1761
+ }
1762
+ LEFT_BRACKET: {
1763
+ value: string
1764
+ label: string
1765
+ js: string
1766
+ }
1767
+ RIGHT_BRACKET: {
1768
+ value: string
1769
+ label: string
1770
+ js: string
1771
+ }
1772
+ PERCENT_TOTAL: {
1773
+ value: string
1774
+ label: string
1775
+ js: any
1776
+ }
1777
+ RANK: {
1778
+ value: string
1779
+ label: string
1780
+ js: any
1781
+ }
1782
+ MOVING_AVG: {
1783
+ value: string
1784
+ label: string
1785
+ js: any
1786
+ }
1787
+ CUMULATIVE_SUM: {
1788
+ value: string
1789
+ label: string
1790
+ js: any
1791
+ }
1792
+ CUMULATIVE_PERCENT: {
1793
+ value: string
1794
+ label: string
1795
+ js: any
1796
+ }
1797
+ CHANGE: {
1798
+ value: string
1799
+ label: string
1800
+ js: any
1801
+ }
1802
+ FUNCTION: {
1803
+ value: string
1804
+ label: string
1805
+ js: any
1806
+ }
1807
+ }
1808
+ declare const getOperators: (enableWindowFns: any) => any
1809
+ declare const isOperatorJs: (op: string) => boolean
1810
+ declare const ORDERBY_DIRECTIONS: {
1811
+ value: string
1812
+ label: string
1813
+ }[]
1814
+ declare const ROWS_RANGE: {
1815
+ value: string
1816
+ label: string
1817
+ }[]
1818
+ declare const ROWS_RANGE_OPTIONS: (
1819
+ | {
1820
+ value: string
1821
+ label: string
1822
+ canPrecedeWith: string[]
1823
+ canFollowWith: string[]
1824
+ hasNValue: boolean
1825
+ canStartWith: boolean
1826
+ canEndWith: boolean
1827
+ canUseBefore?: undefined
1828
+ canUseAfter?: undefined
1829
+ }
1830
+ | {
1831
+ value: string
1832
+ label: string
1833
+ canUseBefore: any[]
1834
+ canUseAfter: string[]
1835
+ hasNValue: boolean
1836
+ canStartWith: boolean
1837
+ canEndWith: boolean
1838
+ canPrecedeWith?: undefined
1839
+ canFollowWith?: undefined
1840
+ }
1841
+ | {
1842
+ value: string
1843
+ label: string
1844
+ canUseBefore: string[]
1845
+ canUseAfter: any[]
1846
+ hasNValue: boolean
1847
+ canStartWith: boolean
1848
+ canEndWith: boolean
1849
+ canPrecedeWith?: undefined
1850
+ canFollowWith?: undefined
1851
+ }
1852
+ )[]
1853
+ declare const WINDOW_FUNCTIONS: {
1854
+ AVG: {
1855
+ value: string
1856
+ label: string
1857
+ nextSelector: string
1858
+ orderable: boolean
1859
+ requiredCols: string[]
1860
+ rowsOrRange: boolean
1861
+ }
1862
+ COUNT: {
1863
+ value: string
1864
+ label: string
1865
+ nextSelector: string
1866
+ orderable: boolean
1867
+ requiredCols: string[]
1868
+ rowsOrRange: boolean
1869
+ }
1870
+ CUME_DIST: {
1871
+ value: string
1872
+ label: string
1873
+ nextSelector: any
1874
+ orderable: boolean
1875
+ requiredCols: string[]
1876
+ rowsOrRange: boolean
1877
+ }
1878
+ DENSE_RANK: {
1879
+ value: string
1880
+ label: string
1881
+ nextSelector: any
1882
+ orderable: boolean
1883
+ requiredCols: string[]
1884
+ rowsOrRange: boolean
1885
+ }
1886
+ FIRST_VALUE: {
1887
+ value: string
1888
+ label: string
1889
+ nextSelector: string
1890
+ orderable: boolean
1891
+ requiredCols: string[]
1892
+ rowsOrRange: boolean
1893
+ }
1894
+ LAG: {
1895
+ value: string
1896
+ label: string
1897
+ nextSelector: string
1898
+ orderable: boolean
1899
+ requiredCols: string[]
1900
+ rowsOrRange: boolean
1901
+ }
1902
+ LAST_VALUE: {
1903
+ value: string
1904
+ label: string
1905
+ nextSelector: string
1906
+ orderable: boolean
1907
+ requiredCols: string[]
1908
+ rowsOrRange: boolean
1909
+ }
1910
+ LEAD: {
1911
+ value: string
1912
+ label: string
1913
+ nextSelector: string
1914
+ orderable: boolean
1915
+ requiredCols: string[]
1916
+ rowsOrRange: boolean
1917
+ }
1918
+ MAX: {
1919
+ value: string
1920
+ label: string
1921
+ nextSelector: string
1922
+ orderable: boolean
1923
+ requiredCols: string[]
1924
+ rowsOrRange: boolean
1925
+ }
1926
+ MIN: {
1927
+ value: string
1928
+ label: string
1929
+ nextSelector: string
1930
+ orderable: boolean
1931
+ requiredCols: string[]
1932
+ rowsOrRange: boolean
1933
+ }
1934
+ NTILE: {
1935
+ value: string
1936
+ label: string
1937
+ nextSelector: string
1938
+ orderable: boolean
1939
+ requiredCols: string[]
1940
+ rowsOrRange: boolean
1941
+ }
1942
+ PERCENT_RANK: {
1943
+ value: string
1944
+ label: string
1945
+ nextSelector: any
1946
+ orderable: boolean
1947
+ requiredCols: string[]
1948
+ rowsOrRange: boolean
1949
+ }
1950
+ RANK: {
1951
+ value: string
1952
+ label: string
1953
+ nextSelector: any
1954
+ orderable: boolean
1955
+ requiredCols: string[]
1956
+ rowsOrRange: boolean
1957
+ }
1958
+ ROW_NUMBER: {
1959
+ value: string
1960
+ label: string
1961
+ nextSelector: any
1962
+ orderable: boolean
1963
+ requiredCols: string[]
1964
+ rowsOrRange: boolean
1965
+ }
1966
+ SUM: {
1967
+ value: string
1968
+ label: string
1969
+ nextSelector: string
1970
+ orderable: boolean
1971
+ requiredCols: string[]
1972
+ rowsOrRange: boolean
1973
+ }
1974
+ }
1975
+ declare const isValueEmpty: (value: any) => boolean
1976
+ declare const convertToFunctionStr: (origColumnFnArray: any) =>
1977
+ | {
1978
+ fn: Function
1979
+ error?: undefined
1980
+ }
1981
+ | {
1982
+ error: any
1983
+ fn?: undefined
1984
+ }
1985
+ declare const createMutatorFn: (columnFnArray: any) =>
1986
+ | {
1987
+ fn: Function
1988
+ error?: undefined
1989
+ }
1990
+ | {
1991
+ error: any
1992
+ fn?: undefined
1993
+ }
1994
+ | ((val: any, data: any, type: any, params: any, component: any) => any)
1995
+ declare const getFnSummary: (columnFnArray: any) => string
1996
+ declare const getSelectableColumns: (columns: any) => Column[]
1997
+ declare const getNumericalColumns: (columns: any) => Column[]
1998
+ declare const getStringColumns: (columns: any) => Column[]
1999
+ declare const getDateColumns: (columns: any) => Column[]
2000
+ declare const getCleanColumnName: (colName: string) => string
2001
+ declare const buildPlainColumnArrayFn: (columnName: string) => string[]
2002
+
2003
+ declare const dataStructureChanged: (props: any, prevProps: any) => boolean
2004
+ declare const onlySeriesVisibilityChanged: (props: any, prevProps: any) => boolean
2005
+ declare const scaleZero: (scale: any) => any
2006
+ declare const getKey: (rowIndex: any, cellIndex: any, extraIndex?: number) => string
2007
+ declare const shouldLabelsRotate: (axisElement: any) => boolean
2008
+ declare const transformLabels: (
2009
+ orient: string,
2010
+ axisElement: any,
2011
+ innerHeight: number,
2012
+ rotateLabels?: boolean,
2013
+ ) => boolean
2014
+ declare const getDrilldownData: ({
2015
+ pivotOriginalColumnData,
2016
+ row,
2017
+ columns,
2018
+ colIndex,
2019
+ legendColumn,
2020
+ columnIndexConfig,
2021
+ activeKey,
2022
+ }: {
2023
+ pivotOriginalColumnData?: {}
2024
+ row: any
2025
+ columns: any
2026
+ colIndex: any
2027
+ legendColumn: any
2028
+ columnIndexConfig: any
2029
+ activeKey: any
2030
+ }) => {
2031
+ groupBys: any
2032
+ supportedByAPI: boolean
2033
+ row: any
2034
+ activeKey: any
2035
+ stringColumnIndex: any
2036
+ column: any
2037
+ }
2038
+ declare const getTooltipContent: ({
2039
+ row,
2040
+ columns,
2041
+ colIndex,
2042
+ colIndex2,
2043
+ legendColumn,
2044
+ dataFormatting,
2045
+ aggregated,
2046
+ }: {
2047
+ row: any
2048
+ columns: any
2049
+ colIndex: any
2050
+ colIndex2: any
2051
+ legendColumn: any
2052
+ dataFormatting: any
2053
+ aggregated?: boolean
2054
+ }) => any
2055
+ declare const getFilterDrilldown: ({
2056
+ stringColumnIndex,
2057
+ row,
2058
+ json,
2059
+ }: {
2060
+ stringColumnIndex: any
2061
+ row: any
2062
+ json: any
2063
+ }) => any
2064
+ declare const constructFilter: ({ column, value }: { column: any; value: any }) => {
2065
+ name: any
2066
+ operator: string
2067
+ value: any
2068
+ column_type: any
2069
+ }
2070
+ declare const getCombinedFilters: (newFilter: any, response: any, formattedTableParams: any) => any[]
2071
+ declare const getLegendLabelsForGroupbyQuery: () => {
2072
+ labels: any[]
2073
+ labels2: any[]
2074
+ }
2075
+ declare const getLegendLabelsForSingleColumn: ({
2076
+ data,
2077
+ columns,
2078
+ colorScale,
2079
+ columnIndexConfig,
2080
+ dataFormatting,
2081
+ }: {
2082
+ data: any
2083
+ columns: any
2084
+ colorScale: any
2085
+ columnIndexConfig: any
2086
+ dataFormatting: any
2087
+ }) => any
2088
+ declare const getLegendLabelsForMultiSeries: (columns: any, colorScale: any, numberColumnIndices?: any) => any
2089
+ declare const getLegendLabels: ({
2090
+ isDataAggregated,
2091
+ columns,
2092
+ colorScales,
2093
+ columnIndexConfig,
2094
+ type,
2095
+ data,
2096
+ dataFormatting,
2097
+ }: {
2098
+ isDataAggregated: any
2099
+ columns: any
2100
+ colorScales: any
2101
+ columnIndexConfig: any
2102
+ type: any
2103
+ data: any
2104
+ dataFormatting: any
2105
+ }) =>
2106
+ | {
2107
+ labels: any
2108
+ labels2?: undefined
2109
+ }
2110
+ | {
2111
+ labels: any
2112
+ labels2: any
2113
+ }
2114
+ declare const getNumberOfSeries: (data: any) => any
2115
+ declare const convertToNumber: (value: any) => number
2116
+ declare const calculateMinAndMaxSums: (
2117
+ data: any,
2118
+ stringColumnIndex: any,
2119
+ numberColumnIndices: any,
2120
+ isScaled: any,
2121
+ ) => {
2122
+ maxValue: number
2123
+ minValue: number
2124
+ disableChartScale: boolean
2125
+ }
2126
+ declare const getObjSize: (obj: any) => number
2127
+ declare const getMaxValueFromKeyValueObj: (obj: any) => number
2128
+ declare const getMinValueFromKeyValueObj: (obj: any) => number
2129
+ declare const getChartScaleRatio: (minValue: number, maxValue: number) => number
2130
+ declare const shouldDisableChartScale: (minValue: number, maxValue: number) => boolean
2131
+ declare const adjustMinAndMaxForScaleRatio: (
2132
+ minValue: number,
2133
+ maxValue: number,
2134
+ isScaled?: boolean,
2135
+ ) => {
2136
+ newMinValue: number
2137
+ newMaxValue: number
2138
+ }
2139
+ declare const getMinAndMaxValues: (
2140
+ data: any,
2141
+ numberColumnIndices: any,
2142
+ isScaled: any,
2143
+ sum: any,
2144
+ stringColumnIndex: any,
2145
+ adjustRange?: boolean,
2146
+ ) => {
2147
+ minValue: number
2148
+ maxValue: number
2149
+ }
2150
+ declare const getLegendLocation: (seriesArray: any, displayType: any, preferredLocation?: string) => string
2151
+ declare const getRangeForAxis: ({ axis, height, width }: { axis: any; height: any; width: any }) => any[]
2152
+ declare const getTimeScale: ({
2153
+ data,
2154
+ columns,
2155
+ columnIndex,
2156
+ axis,
2157
+ domain,
2158
+ dataFormatting,
2159
+ outerPadding,
2160
+ innerPadding,
2161
+ height,
2162
+ width,
2163
+ stringColumnIndex,
2164
+ stringColumnIndices,
2165
+ enableAxisDropdown,
2166
+ changeStringColumnIndices,
2167
+ }: {
2168
+ data: Rows
2169
+ columns: Column[]
2170
+ columnIndex: number
2171
+ axis: string
2172
+ domain: number[]
2173
+ dataFormatting: DataFormatting
2174
+ outerPadding: number
2175
+ innerPadding: number
2176
+ height: number
2177
+ width: number
2178
+ stringColumnIndex: number
2179
+ stringColumnIndices: number[]
2180
+ enableAxisDropdown: boolean
2181
+ changeStringColumnIndices: Function
2182
+ }) => any
2183
+ declare const getBandScale: ({
2184
+ data,
2185
+ column,
2186
+ columns,
2187
+ columnIndex,
2188
+ axis,
2189
+ domain,
2190
+ dataFormatting,
2191
+ outerPadding,
2192
+ innerPadding,
2193
+ height,
2194
+ width,
2195
+ stringColumnIndex,
2196
+ stringColumnIndices,
2197
+ enableAxisDropdown,
2198
+ changeStringColumnIndices,
2199
+ }: {
2200
+ data: Rows
2201
+ column?: Column
2202
+ columns: Column[]
2203
+ columnIndex: number
2204
+ axis: string
2205
+ domain: number[]
2206
+ dataFormatting: DataFormatting
2207
+ outerPadding: number
2208
+ innerPadding: number
2209
+ height: number
2210
+ width: number
2211
+ stringColumnIndex: number
2212
+ stringColumnIndices: number[]
2213
+ enableAxisDropdown: boolean
2214
+ changeStringColumnIndices: Function
2215
+ }) => any
2216
+ declare const getOpacityScale: (data: any, columnIndices: any) => any
2217
+ declare const getRadiusScale: (data: any, columnIndices: any, xScale: any, yScale: any) => any
2218
+ declare const getColorScale: (values: string[], colors: any) => any
2219
+ declare const getColorScales: ({
2220
+ numberColumnIndices,
2221
+ numberColumnIndices2,
2222
+ CSS_PREFIX,
2223
+ data,
2224
+ type,
2225
+ }: {
2226
+ numberColumnIndices: any
2227
+ numberColumnIndices2: any
2228
+ CSS_PREFIX: any
2229
+ data: any
2230
+ type: any
2231
+ }) => {
2232
+ colorScale: any
2233
+ colorScale2: any
2234
+ }
2235
+ declare const getUnitsForColumn: (column: any, useAgg?: boolean) => any
2236
+ declare const getUnitSymbol: ({ column, dataFormatting }: { column: Column; dataFormatting: DataFormatting }) => string
2237
+ declare const getLinearAxisTitle: ({
2238
+ numberColumns,
2239
+ aggregated,
2240
+ }: {
2241
+ numberColumns: Column[]
2242
+ aggregated: boolean
2243
+ }) => string
2244
+ declare const getNumberAxisUnits: (numberColumns: any) => any
2245
+ declare const getBinLinearScale: ({
2246
+ columns,
2247
+ columnIndex,
2248
+ axis,
2249
+ buckets,
2250
+ bins,
2251
+ enableAxisDropdown,
2252
+ innerHeight,
2253
+ innerWidth,
2254
+ height,
2255
+ width,
2256
+ dataFormatting,
2257
+ changeNumberColumnIndices,
2258
+ }: {
2259
+ columns: Column[]
2260
+ columnIndex: number
2261
+ axis: string
2262
+ buckets: any[]
2263
+ bins: (string | number)[]
2264
+ enableAxisDropdown: boolean
2265
+ innerHeight: number
2266
+ innerWidth: number
2267
+ height: number
2268
+ width: number
2269
+ dataFormatting: DataFormatting
2270
+ changeNumberColumnIndices: Function
2271
+ }) => any
2272
+ declare const getHistogramScale: ({
2273
+ axis,
2274
+ buckets,
2275
+ columnIndex,
2276
+ height,
2277
+ width,
2278
+ minValue,
2279
+ maxValue,
2280
+ tickValues,
2281
+ numTicks,
2282
+ stacked,
2283
+ isScaled,
2284
+ columns,
2285
+ originalColumns,
2286
+ columnIndices,
2287
+ dataFormatting,
2288
+ changeNumberColumnIndices,
2289
+ enableAxisDropdown,
2290
+ aggregated,
2291
+ }: {
2292
+ buckets: any[]
2293
+ minValue: number
2294
+ maxValue: number
2295
+ axis: string
2296
+ range: number[]
2297
+ domain: number[]
2298
+ tickValues: number[]
2299
+ numTicks: number
2300
+ stacked: boolean
2301
+ isScaled: boolean
2302
+ columns: Column[]
2303
+ originalColumns?: Column[]
2304
+ units: string
2305
+ title: string
2306
+ columnIndex: number
2307
+ columnIndices: number[]
2308
+ hasDropdown: boolean
2309
+ allowMultipleSeries: boolean
2310
+ disableAutoScale: boolean
2311
+ dataFormatting: DataFormatting
2312
+ changeNumberColumnIndices: Function
2313
+ enableAxisDropdown: boolean
2314
+ height: number
2315
+ width: number
2316
+ aggregated: boolean
2317
+ }) => any
2318
+ declare const getLinearScale: ({
2319
+ minValue,
2320
+ maxValue,
2321
+ axis,
2322
+ range,
2323
+ domain,
2324
+ tickValues,
2325
+ numTicks,
2326
+ stacked,
2327
+ isScaled,
2328
+ columns,
2329
+ units,
2330
+ title,
2331
+ columnIndex,
2332
+ columnIndices,
2333
+ hasDropdown,
2334
+ allowMultipleSeries,
2335
+ disableAutoScale,
2336
+ dataFormatting,
2337
+ changeNumberColumnIndices,
2338
+ changeColumnIndices,
2339
+ changeAggConfig,
2340
+ enableAxisDropdown,
2341
+ height,
2342
+ width,
2343
+ aggregated,
2344
+ colorScale,
2345
+ adjustRange,
2346
+ originalColumns,
2347
+ }: {
2348
+ axis: string
2349
+ columns: Column[]
2350
+ originalColumns?: Column[]
2351
+ columnIndex: number
2352
+ columnIndices: number[]
2353
+ height: number
2354
+ width: number
2355
+ units?: string
2356
+ dataFormatting?: DataFormatting
2357
+ changeNumberColumnIndices?: Function
2358
+ changeColumnIndices?: Function
2359
+ changeAggConfig?: Function
2360
+ enableAxisDropdown?: boolean
2361
+ stacked?: boolean
2362
+ isScaled?: boolean
2363
+ minValue?: number
2364
+ maxValue?: number
2365
+ aggregated?: boolean
2366
+ numTicks?: number
2367
+ range?: number[]
2368
+ tickValues?: number[]
2369
+ allowMultipleSeries?: boolean
2370
+ disableAutoScale?: boolean
2371
+ hasDropdown?: boolean
2372
+ domain?: number[]
2373
+ title?: string
2374
+ colorScale?: any
2375
+ adjustRange?: boolean
2376
+ }) => any
2377
+ declare const getLinearScales: ({
2378
+ data,
2379
+ columnIndices1,
2380
+ columnIndices2,
2381
+ axis,
2382
+ stacked,
2383
+ isScaled,
2384
+ columns,
2385
+ originalColumns,
2386
+ hasDropdown,
2387
+ allowMultipleSeries,
2388
+ disableAutoScale,
2389
+ dataFormatting,
2390
+ changeNumberColumnIndices,
2391
+ changeAggConfig,
2392
+ enableAxisDropdown,
2393
+ stringColumnIndex,
2394
+ height,
2395
+ width,
2396
+ aggregated,
2397
+ colorScales,
2398
+ }: {
2399
+ data: Rows
2400
+ columnIndices1: number[]
2401
+ columnIndices2: number[]
2402
+ axis: string
2403
+ stacked: boolean
2404
+ isScaled: boolean
2405
+ columns: Column[]
2406
+ originalColumns?: Column[]
2407
+ hasDropdown: boolean
2408
+ allowMultipleSeries: boolean
2409
+ disableAutoScale: boolean
2410
+ dataFormatting: DataFormatting
2411
+ changeNumberColumnIndices: Function
2412
+ changeAggConfig: Function
2413
+ enableAxisDropdown: boolean
2414
+ stringColumnIndex: number
2415
+ height: number
2416
+ width: number
2417
+ aggregated: boolean
2418
+ colorScales: any
2419
+ }) =>
2420
+ | {
2421
+ scale: any
2422
+ scale2?: undefined
2423
+ }
2424
+ | {
2425
+ scale: any
2426
+ scale2: any
2427
+ }
2428
+ declare const doesElementOverflowContainer: (element: any, container: any) => boolean
2429
+ declare const DateUTC: (d: any) => Date
2430
+ declare const getNiceDateTickValues: ({ tickValues, scale }: { tickValues: any; scale: any }) => any
2431
+ declare const getNiceTickValues: ({ tickValues, scale }: { tickValues: any; scale: any }) => any
2432
+ declare const getTickSizeFromNumTicks: ({
2433
+ scale,
2434
+ numTicks,
2435
+ innerPadding,
2436
+ outerPadding,
2437
+ }: {
2438
+ scale: any
2439
+ numTicks: any
2440
+ innerPadding?: number
2441
+ outerPadding?: number
2442
+ }) => number
2443
+ declare const getTickValues: ({
2444
+ scale,
2445
+ initialTicks,
2446
+ numTicks,
2447
+ innerPadding,
2448
+ outerPadding,
2449
+ }: {
2450
+ scale: any
2451
+ initialTicks?: (string | number)[]
2452
+ numTicks?: number
2453
+ innerPadding?: number
2454
+ outerPadding?: number
2455
+ }) => any[]
2456
+ declare const mergeBoundingClientRects: (boundingBoxes: any) => {
2457
+ x: any
2458
+ y: any
2459
+ height: number
2460
+ width: number
2461
+ }
2462
+ declare const mergeBboxes: (bboxes: any) => {
2463
+ x: any
2464
+ y: any
2465
+ height: number
2466
+ width: number
2467
+ }
2468
+ declare const getRowNumberListForPopover: (initialPageSize: any, totalRows: any) => any
2469
+ declare const getAxisLabelsBbox: (axisElement: any) => {
2470
+ x: any
2471
+ y: any
2472
+ height: number
2473
+ width: number
2474
+ }
2475
+ declare const getTotalLeftPadding: (legendPadding?: any) => any
2476
+ declare const getTotalRightPadding: (legendPadding?: any) => any
2477
+ declare const getTotalHorizontalPadding: (legendPadding?: any) => any
2478
+ declare const getTotalBottomPadding: (legendPadding?: any) => any
2479
+ declare const getTotalTopPadding: (legendPadding?: any) => any
2480
+ declare const getTotalVerticalPadding: (legendPadding?: any) => any
2481
+ declare const getMaxLegendHeight: ({
2482
+ orientation,
2483
+ outerHeight,
2484
+ height,
2485
+ legendPadding,
2486
+ }: {
2487
+ orientation: any
2488
+ outerHeight: any
2489
+ height: any
2490
+ legendPadding: any
2491
+ }) => number
2492
+ declare const getMaxLegendSectionWidth: ({
2493
+ orientation,
2494
+ outerWidth,
2495
+ legendPadding,
2496
+ }: {
2497
+ orientation: any
2498
+ outerWidth: any
2499
+ legendPadding: any
2500
+ }) => number
2501
+ declare const getTotalPossibleLegendSections: ({
2502
+ orientation,
2503
+ outerWidth,
2504
+ hasSecondAxis,
2505
+ legendPadding,
2506
+ }: {
2507
+ orientation: any
2508
+ outerWidth: any
2509
+ hasSecondAxis: any
2510
+ legendPadding: any
2511
+ }) => any
2512
+ declare const distributeListsEvenly: (list1Orig: any, list2Orig: any, numSections: any) => any[][]
2513
+ declare const getlegendLabelSections: ({
2514
+ orientation,
2515
+ outerWidth,
2516
+ hasSecondAxis,
2517
+ labels,
2518
+ labels2,
2519
+ legendPadding,
2520
+ }: {
2521
+ orientation: any
2522
+ outerWidth: any
2523
+ hasSecondAxis: any
2524
+ labels: any
2525
+ labels2: any
2526
+ legendPadding: any
2527
+ }) => any[][]
2528
+ declare const getLegendScale: (legendLabels: any) => any
2529
+ declare const applyLegendTitleStyles: ({
2530
+ legendElement,
2531
+ title,
2532
+ isFirstSection,
2533
+ onLegendTitleClick,
2534
+ }: {
2535
+ legendElement: any
2536
+ title: any
2537
+ isFirstSection: any
2538
+ onLegendTitleClick: any
2539
+ }) => any
2540
+ declare const removeHiddenLegendLabels: ({
2541
+ legendElement,
2542
+ legendBorder,
2543
+ chartTooltipID,
2544
+ }: {
2545
+ legendElement: any
2546
+ legendBorder: any
2547
+ chartTooltipID: any
2548
+ }) => void
2549
+ declare const applyStylesForHiddenSeries: ({
2550
+ legendElement,
2551
+ legendLabels,
2552
+ }: {
2553
+ legendElement: any
2554
+ legendLabels: any
2555
+ }) => void
2556
+ declare const getPieChartData: ({
2557
+ data,
2558
+ numberColumnIndex,
2559
+ legendLabels,
2560
+ }: {
2561
+ data: any
2562
+ numberColumnIndex: any
2563
+ legendLabels: any
2564
+ }) => {
2565
+ pieChartFn: any
2566
+ legendScale: any
2567
+ }
2568
+ declare const getDefaultBucketConfig: (
2569
+ data: any,
2570
+ bucketSize: any,
2571
+ ) => {
2572
+ bucketSize: any
2573
+ minBucketSize: any
2574
+ maxBucketSize: any
2575
+ minNumBuckets: number
2576
+ maxNumBuckets: number
2577
+ bucketStepSize: number
2578
+ }
2579
+ declare const getInitialBucketSize: (minValue: any, maxValue: any, data: any, bucketConfig: any) => number
2580
+ declare const getBinData: ({
2581
+ newBucketSize,
2582
+ bucketConfig,
2583
+ data,
2584
+ numberColumnIndex,
2585
+ }: {
2586
+ newBucketSize: any
2587
+ bucketConfig: any
2588
+ data: any
2589
+ numberColumnIndex: any
2590
+ }) => {
2591
+ buckets: any
2592
+ bins: number[]
2593
+ }
2594
+
2595
+ declare const getMaxTickLabelWidth: ({
2596
+ orient,
2597
+ outerHeight,
2598
+ outerWidth,
2599
+ rotateLabels,
2600
+ prevLabelWidth,
2601
+ }?: {
2602
+ orient?: string
2603
+ outerHeight?: number
2604
+ outerWidth?: number
2605
+ rotateLabels?: boolean
2606
+ prevLabelWidth?: number
2607
+ }) => number
2608
+ declare const setTickSize: ({
2609
+ axis,
2610
+ innerWidth,
2611
+ innerHeight,
2612
+ }?: {
2613
+ axis?: any
2614
+ innerWidth?: number
2615
+ innerHeight?: number
2616
+ }) => void
2617
+ declare const setTickValues: ({
2618
+ axis,
2619
+ innerWidth,
2620
+ innerHeight,
2621
+ maxLabelWidth,
2622
+ }?: {
2623
+ axis?: any
2624
+ innerWidth?: number
2625
+ innerHeight?: number
2626
+ maxLabelWidth?: number
2627
+ }) => void
2628
+ declare const getAxis: ({
2629
+ orient,
2630
+ scale,
2631
+ innerWidth,
2632
+ innerHeight,
2633
+ maxLabelWidth,
2634
+ }?: {
2635
+ orient?: string
2636
+ scale?: any
2637
+ innerWidth?: number
2638
+ innerHeight?: number
2639
+ maxLabelWidth?: number
2640
+ }) => any
2641
+ declare const getLabelsBBox: (axisElement: any) => {}
2642
+ declare const adjustBottomTitleToFit: (
2643
+ titleElement: any,
2644
+ {
2645
+ labelsBBox,
2646
+ innerWidth,
2647
+ outerWidth,
2648
+ deltaX,
2649
+ chartPadding,
2650
+ }?: {
2651
+ labelsBBox?: any
2652
+ innerWidth?: number
2653
+ outerWidth?: number
2654
+ deltaX?: number
2655
+ chartPadding?: number
2656
+ CSS_PREFIX?: string
2657
+ },
2658
+ CSS_PREFIX?: string,
2659
+ ) => void
2660
+ declare const adjustTopTitleToFit: (
2661
+ titleElement: any,
2662
+ {
2663
+ labelsBBox,
2664
+ innerWidth,
2665
+ }?: {
2666
+ labelsBBox?: any
2667
+ innerWidth?: number
2668
+ },
2669
+ ) => void
2670
+ declare const adjustVerticalTitleToFit: (
2671
+ titleElement: any,
2672
+ {
2673
+ deltaY,
2674
+ chartPadding,
2675
+ }?: {
2676
+ deltaY?: number
2677
+ chartPadding?: number
2678
+ },
2679
+ CSS_PREFIX?: string,
2680
+ ) => void
2681
+ declare const adjustTitleToFit: (
2682
+ titleElement: any,
2683
+ orient: string,
2684
+ options: {
2685
+ labelsBBox?: any
2686
+ innerWidth?: number
2687
+ outerWidth?: number
2688
+ deltaX?: number
2689
+ deltaY?: number
2690
+ chartPadding?: number
2691
+ },
2692
+ CSS_PREFIX: any,
2693
+ ) => void
2694
+
2695
+ declare const getHistogramColumnObj: ({
2696
+ xScale,
2697
+ yScale,
2698
+ index,
2699
+ d,
2700
+ activeKey,
2701
+ }: {
2702
+ xScale: any
2703
+ yScale: any
2704
+ index: any
2705
+ d: any
2706
+ activeKey: any
2707
+ }) => {
2708
+ class: string
2709
+ key: string
2710
+ x: any
2711
+ y: any
2712
+ height: number
2713
+ width: number
2714
+ onClickData: {
2715
+ x0: any
2716
+ x1: any
2717
+ index: any
2718
+ }
2719
+ drilldownData: {
2720
+ activeKey: string
2721
+ filter: {
2722
+ name: any
2723
+ value: string
2724
+ operator: string
2725
+ column_type: string
2726
+ }
2727
+ }
2728
+ tooltip: string
2729
+ }
2730
+ declare const getPointObj: ({
2731
+ columns,
2732
+ yScale,
2733
+ xScale,
2734
+ columnIndexConfig,
2735
+ activeKey,
2736
+ dataFormatting,
2737
+ d,
2738
+ index,
2739
+ legendColumn,
2740
+ chartColors,
2741
+ }: {
2742
+ columns: any
2743
+ yScale: any
2744
+ xScale: any
2745
+ columnIndexConfig: any
2746
+ activeKey: any
2747
+ dataFormatting: any
2748
+ d: any
2749
+ index: any
2750
+ legendColumn: any
2751
+ chartColors: any
2752
+ }) => {
2753
+ key: string
2754
+ class: string
2755
+ cx: any
2756
+ cy: any
2757
+ r: number
2758
+ style: {
2759
+ fill: any
2760
+ }
2761
+ drilldownData: {
2762
+ groupBys: any
2763
+ supportedByAPI: boolean
2764
+ row: any
2765
+ activeKey: any
2766
+ stringColumnIndex: any
2767
+ column: any
2768
+ }
2769
+ tooltip: any
2770
+ }
2771
+ declare const getBubbleObj: ({
2772
+ columns,
2773
+ yScale,
2774
+ xScale,
2775
+ columnIndexConfig,
2776
+ activeKey,
2777
+ dataFormatting,
2778
+ colIndex,
2779
+ radiusScale,
2780
+ i,
2781
+ d,
2782
+ index,
2783
+ legendLabels,
2784
+ legendColumn,
2785
+ chartColors,
2786
+ }: {
2787
+ columns: any
2788
+ yScale: any
2789
+ xScale: any
2790
+ columnIndexConfig: any
2791
+ activeKey: any
2792
+ dataFormatting: any
2793
+ colIndex: any
2794
+ radiusScale: any
2795
+ i: any
2796
+ d: any
2797
+ index: any
2798
+ legendLabels: any
2799
+ legendColumn: any
2800
+ chartColors: any
2801
+ }) => {
2802
+ key: string
2803
+ class: string
2804
+ cx: any
2805
+ cy: any
2806
+ r: number
2807
+ width: any
2808
+ height: any
2809
+ style: {
2810
+ fill: any
2811
+ }
2812
+ drilldownData: {
2813
+ groupBys: any
2814
+ supportedByAPI: boolean
2815
+ row: any
2816
+ activeKey: any
2817
+ stringColumnIndex: any
2818
+ column: any
2819
+ }
2820
+ tooltip: any
2821
+ }
2822
+ declare const getHeatmapRectObj: ({
2823
+ columns,
2824
+ yScale,
2825
+ xScale,
2826
+ activeKey,
2827
+ dataFormatting,
2828
+ colIndex,
2829
+ opacityScale,
2830
+ i,
2831
+ d,
2832
+ index,
2833
+ legendLabels,
2834
+ legendColumn,
2835
+ chartColors,
2836
+ columnIndexConfig,
2837
+ }: {
2838
+ columns: any
2839
+ yScale: any
2840
+ xScale: any
2841
+ activeKey: any
2842
+ dataFormatting: any
2843
+ colIndex: any
2844
+ opacityScale: any
2845
+ i: any
2846
+ d: any
2847
+ index: any
2848
+ legendLabels: any
2849
+ legendColumn: any
2850
+ chartColors: any
2851
+ columnIndexConfig: any
2852
+ }) => {
2853
+ key: string
2854
+ class: string
2855
+ x: any
2856
+ y: any
2857
+ width: any
2858
+ height: any
2859
+ style: {
2860
+ color: any
2861
+ fill: any
2862
+ fillOpacity: any
2863
+ }
2864
+ drilldownData: {
2865
+ groupBys: any
2866
+ supportedByAPI: boolean
2867
+ row: any
2868
+ activeKey: any
2869
+ stringColumnIndex: any
2870
+ column: any
2871
+ }
2872
+ tooltip: any
2873
+ }
2874
+ declare const getLineVertexObj: ({
2875
+ columns,
2876
+ yScale,
2877
+ xScale,
2878
+ columnIndexConfig,
2879
+ legendColumn,
2880
+ activeKey,
2881
+ dataFormatting,
2882
+ colIndex,
2883
+ backgroundColor,
2884
+ cumulativeValues,
2885
+ d,
2886
+ index,
2887
+ color,
2888
+ stacked,
2889
+ }: {
2890
+ columns: any
2891
+ yScale: any
2892
+ xScale: any
2893
+ columnIndexConfig: any
2894
+ legendColumn: any
2895
+ activeKey: any
2896
+ dataFormatting: any
2897
+ colIndex: any
2898
+ backgroundColor: any
2899
+ cumulativeValues: any
2900
+ d: any
2901
+ index: any
2902
+ color: any
2903
+ stacked: any
2904
+ }) => {
2905
+ className: string
2906
+ key: string
2907
+ cx: any
2908
+ cy: any
2909
+ r: number
2910
+ value: any
2911
+ style: {
2912
+ pointerEvents: string
2913
+ stroke: any
2914
+ strokeWidth: number
2915
+ paintOrder: string
2916
+ color: any
2917
+ fill: any
2918
+ }
2919
+ drilldownData: {
2920
+ groupBys: any
2921
+ supportedByAPI: boolean
2922
+ row: any
2923
+ activeKey: any
2924
+ stringColumnIndex: any
2925
+ column: any
2926
+ }
2927
+ tooltip: any
2928
+ }
2929
+ declare const getColumnRectObj: ({
2930
+ columns,
2931
+ yScale,
2932
+ xScale,
2933
+ columnIndexConfig,
2934
+ chartTooltipID,
2935
+ activeKey,
2936
+ legendColumn,
2937
+ dataFormatting,
2938
+ colIndex,
2939
+ visibleIndex,
2940
+ barWidth,
2941
+ i,
2942
+ d,
2943
+ index,
2944
+ stacked,
2945
+ prevY,
2946
+ prevHeight,
2947
+ }: {
2948
+ columns: any
2949
+ yScale: any
2950
+ xScale: any
2951
+ columnIndexConfig: any
2952
+ chartTooltipID: any
2953
+ activeKey: any
2954
+ legendColumn: any
2955
+ dataFormatting: any
2956
+ colIndex: any
2957
+ visibleIndex: any
2958
+ barWidth: any
2959
+ i: any
2960
+ d: any
2961
+ index: any
2962
+ stacked: any
2963
+ prevY: any
2964
+ prevHeight?: number
2965
+ }) => {
2966
+ key: string
2967
+ className: string
2968
+ dataTest: string
2969
+ x: any
2970
+ y: any
2971
+ width: any
2972
+ height: number
2973
+ value: any
2974
+ colIndex: any
2975
+ dataFor: any
2976
+ style: {
2977
+ fill: any
2978
+ fillOpacity: number
2979
+ }
2980
+ drilldownData: {
2981
+ groupBys: any
2982
+ supportedByAPI: boolean
2983
+ row: any
2984
+ activeKey: any
2985
+ stringColumnIndex: any
2986
+ column: any
2987
+ }
2988
+ tooltip: any
2989
+ }
2990
+ declare const getBarRectObj: ({
2991
+ columnIndexConfig,
2992
+ columns,
2993
+ yScale,
2994
+ xScale,
2995
+ activeKey,
2996
+ dataFormatting,
2997
+ colIndex,
2998
+ visibleIndex,
2999
+ barHeight,
3000
+ legendColumn,
3001
+ i,
3002
+ d,
3003
+ index,
3004
+ stacked,
3005
+ prevX,
3006
+ prevWidth,
3007
+ }: {
3008
+ columnIndexConfig: any
3009
+ columns: any
3010
+ yScale: any
3011
+ xScale: any
3012
+ activeKey: any
3013
+ dataFormatting: any
3014
+ colIndex: any
3015
+ visibleIndex: any
3016
+ barHeight: any
3017
+ legendColumn: any
3018
+ i: any
3019
+ d: any
3020
+ index: any
3021
+ stacked: any
3022
+ prevX: any
3023
+ prevWidth?: number
3024
+ }) => {
3025
+ key: string
3026
+ className: string
3027
+ dataTest: string
3028
+ y: any
3029
+ x: any
3030
+ width: number
3031
+ height: any
3032
+ style: {
3033
+ fill: any
3034
+ fillOpacity: number
3035
+ }
3036
+ drilldownData: {
3037
+ groupBys: any
3038
+ supportedByAPI: boolean
3039
+ row: any
3040
+ activeKey: any
3041
+ stringColumnIndex: any
3042
+ column: any
3043
+ }
3044
+ tooltip: any
3045
+ }
3046
+ declare const getLegendTitleFromColumns: ({
3047
+ columnIndices,
3048
+ isDataAggregated,
3049
+ legendColumn,
3050
+ columns,
3051
+ hasSecondAxis,
3052
+ }: {
3053
+ columnIndices: any
3054
+ isDataAggregated: any
3055
+ legendColumn: any
3056
+ columns: any
3057
+ hasSecondAxis: any
3058
+ }) => any
3059
+
3060
+ declare const bezierCommand: (xy: any, i: any, a: any, smoothing: any) => string
3061
+ declare const lineCommand: (xy: any) => string
3062
+ declare const svgPathD: (points: any, command: any, smoothing?: any) => any
3063
+ declare const createSVGPath: (points: any, smoothing: any) => any
3064
+
3065
+ declare const GENERAL_ERROR =
3066
+ "Uh oh, Our system is experiencing an unexpected error. We're aware of this issue and are working to fix it as soon as possible."
3067
+ declare const GENERAL_QUERY_ERROR =
3068
+ "Internal Service Error: Our system is experiencing an unexpected error. We're aware of this issue and are working to fix it as soon as possible."
3069
+ declare const GENERAL_HTML_ERROR =
3070
+ "Internal Service Error: Our system is experiencing an unexpected error. We're aware of this issue and are working to fix it as soon as possible."
3071
+ declare const UNAUTHENTICATED_ERROR =
3072
+ "Uh oh.. It looks like you don't have access to this resource. Please double check that all required authentication fields are correct."
3073
+ declare const REQUEST_CANCELLED_ERROR = 'Request cancelled'
3074
+ declare const QUERY_TIMEOUT_ERROR =
3075
+ 'Database Timeout Error: Your query has exceeded the time limit. To receive a response, try narrowing your query down to a specific time range (e.g., today, this week, this month), or contact your database administrator.'
3076
+
3077
+ declare const isAggSeed: (subject: any) => any
3078
+ declare const getSampleQueryRegex: (suggestionValues: any) => RegExp
3079
+ declare const getSampleQueryText: (query: any, values?: {}) => any
3080
+ declare const fetchTopicsForVL: () => void
3081
+ declare const getQueryRequestParams: (
3082
+ chunk: any,
3083
+ values: any,
3084
+ ) => {
3085
+ query: any
3086
+ userSelection: any[]
3087
+ }
3088
+ declare const fetchDataExplorerAutocomplete: ({
3089
+ suggestion,
3090
+ domain,
3091
+ token,
3092
+ apiKey,
3093
+ cancelToken,
3094
+ }?: {
3095
+ suggestion?: string
3096
+ domain?: string
3097
+ apiKey?: string
3098
+ token?: string
3099
+ cancelToken?: any
3100
+ }) => Promise<any[]>
3101
+ declare const fetchDataExplorerSampleQueries: ({
3102
+ domain,
3103
+ apiKey,
3104
+ token,
3105
+ text,
3106
+ context,
3107
+ columns,
3108
+ }?: {
3109
+ domain?: string
3110
+ apiKey?: string
3111
+ token?: string
3112
+ text?: string
3113
+ context?: string
3114
+ columns?: object
3115
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3116
+ declare const fetchDataExplorerSuggestions: ({
3117
+ pageSize,
3118
+ pageNumber,
3119
+ domain,
3120
+ apiKey,
3121
+ token,
3122
+ text,
3123
+ context,
3124
+ selectedVL,
3125
+ userVLSelection,
3126
+ skipQueryValidation,
3127
+ }?: {
3128
+ pageSize?: number
3129
+ pageNumber?: number
3130
+ domain?: string
3131
+ apiKey?: string
3132
+ token?: string
3133
+ text?: string
3134
+ context?: string
3135
+ selectedVL?: ValueLabel
3136
+ userVLSelection?: ValueLabel[]
3137
+ skipQueryValidation?: boolean
3138
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3139
+ declare const fetchSubjectListV2: ({
3140
+ domain,
3141
+ apiKey,
3142
+ token,
3143
+ valueLabel,
3144
+ }: {
3145
+ domain: any
3146
+ apiKey: any
3147
+ token: any
3148
+ valueLabel: any
3149
+ }) => Promise<any[]>
3150
+ declare const fetchSubjectList: ({
3151
+ domain,
3152
+ apiKey,
3153
+ token,
3154
+ valueLabel,
3155
+ }: {
3156
+ domain: any
3157
+ apiKey: any
3158
+ token: any
3159
+ valueLabel: any
3160
+ }) => Promise<any[]>
3161
+ declare const fetchDataPreview: ({
3162
+ subject,
3163
+ domain,
3164
+ apiKey,
3165
+ token,
3166
+ source,
3167
+ numRows,
3168
+ cancelToken,
3169
+ }?: {
3170
+ subject?: string
3171
+ domain?: string
3172
+ apiKey?: string
3173
+ token?: string
3174
+ source?: string
3175
+ numRows?: number
3176
+ cancelToken?: any
3177
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3178
+
3179
+ declare const fetchNotificationData: ({
3180
+ id,
3181
+ domain,
3182
+ apiKey,
3183
+ token,
3184
+ }: {
3185
+ id: any
3186
+ domain: any
3187
+ apiKey: any
3188
+ token: any
3189
+ }) => Promise<TransformedAxiosResponse>
3190
+ declare const fetchNotification: ({
3191
+ id,
3192
+ domain,
3193
+ apiKey,
3194
+ token,
3195
+ }: {
3196
+ id: any
3197
+ domain: any
3198
+ apiKey: any
3199
+ token: any
3200
+ }) => Promise<any>
3201
+ declare const isExpressionQueryValid: ({
3202
+ query,
3203
+ domain,
3204
+ apiKey,
3205
+ token,
3206
+ }: {
3207
+ query: any
3208
+ domain: any
3209
+ apiKey: any
3210
+ token: any
3211
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3212
+ declare const fetchNotificationCount: ({
3213
+ domain,
3214
+ apiKey,
3215
+ token,
3216
+ unacknowledged,
3217
+ enableFetchNotificationCountAcrossProjects,
3218
+ }: {
3219
+ domain: any
3220
+ apiKey: any
3221
+ token: any
3222
+ unacknowledged?: number
3223
+ enableFetchNotificationCountAcrossProjects?: boolean
3224
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3225
+ declare const fetchNotificationFeed: ({
3226
+ domain,
3227
+ apiKey,
3228
+ token,
3229
+ offset,
3230
+ limit,
3231
+ enableFetchAllNotificationFeedAcrossProjects,
3232
+ selectedProjectId,
3233
+ notificationTitle,
3234
+ }: {
3235
+ domain: any
3236
+ apiKey: any
3237
+ token: any
3238
+ offset: any
3239
+ limit: any
3240
+ enableFetchAllNotificationFeedAcrossProjects?: boolean
3241
+ selectedProjectId?: string
3242
+ notificationTitle?: string
3243
+ }) => Promise<any>
3244
+ declare const fetchNotificationChannels: ({
3245
+ domain,
3246
+ apiKey,
3247
+ token,
3248
+ channelType,
3249
+ }: {
3250
+ domain: any
3251
+ apiKey: any
3252
+ token: any
3253
+ channelType: any
3254
+ }) => Promise<any>
3255
+ declare const fetchDataAlerts: ({ domain, apiKey, token }: { domain: any; apiKey: any; token: any }) => Promise<any>
3256
+ declare const getDataAlertsByLabel: ({
3257
+ domain,
3258
+ apiKey,
3259
+ token,
3260
+ lableId,
3261
+ }: {
3262
+ domain: any
3263
+ apiKey: any
3264
+ token: any
3265
+ lableId: any
3266
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3267
+ declare const getNotLabeledDataAlerts: ({
3268
+ domain,
3269
+ apiKey,
3270
+ token,
3271
+ }: {
3272
+ domain: any
3273
+ apiKey: any
3274
+ token: any
3275
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3276
+ declare const fetchSubscribedDataAlerts: ({
3277
+ domain,
3278
+ apiKey,
3279
+ token,
3280
+ }: {
3281
+ domain: any
3282
+ apiKey: any
3283
+ token: any
3284
+ }) => Promise<any>
3285
+ declare const fetchRule: ({
3286
+ domain,
3287
+ apiKey,
3288
+ token,
3289
+ dataAlertId,
3290
+ }: {
3291
+ domain: any
3292
+ apiKey: any
3293
+ token: any
3294
+ dataAlertId: any
3295
+ }) => Promise<any>
3296
+ declare const resetNotificationCount: ({
3297
+ domain,
3298
+ apiKey,
3299
+ token,
3300
+ }: {
3301
+ domain: any
3302
+ apiKey: any
3303
+ token: any
3304
+ }) => Promise<any>
3305
+ declare const initializeAlert: ({
3306
+ id,
3307
+ domain,
3308
+ apiKey,
3309
+ token,
3310
+ }: {
3311
+ id: any
3312
+ domain: any
3313
+ apiKey: any
3314
+ token: any
3315
+ }) => Promise<any>
3316
+ declare const deleteNotification: ({
3317
+ notificationId,
3318
+ domain,
3319
+ apiKey,
3320
+ token,
3321
+ }: {
3322
+ notificationId: any
3323
+ domain: any
3324
+ apiKey: any
3325
+ token: any
3326
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3327
+ declare const deleteMultipleNotifications: ({
3328
+ notificationList,
3329
+ domain,
3330
+ apiKey,
3331
+ token,
3332
+ }: {
3333
+ notificationList: any
3334
+ domain: any
3335
+ apiKey: any
3336
+ token: any
3337
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3338
+ declare const deleteAllNotifications: ({
3339
+ domain,
3340
+ apiKey,
3341
+ token,
3342
+ projectId,
3343
+ }: {
3344
+ domain: any
3345
+ apiKey: any
3346
+ token: any
3347
+ projectId: any
3348
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3349
+ declare const dismissAllNotifications: ({
3350
+ domain,
3351
+ apiKey,
3352
+ token,
3353
+ }: {
3354
+ domain: any
3355
+ apiKey: any
3356
+ token: any
3357
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3358
+ declare const markNotificationAsUnread: ({
3359
+ notificationId,
3360
+ domain,
3361
+ apiKey,
3362
+ token,
3363
+ }: {
3364
+ notificationId: any
3365
+ domain: any
3366
+ apiKey: any
3367
+ token: any
3368
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3369
+ declare const dismissNotification: ({
3370
+ notificationId,
3371
+ domain,
3372
+ apiKey,
3373
+ token,
3374
+ }: {
3375
+ notificationId: any
3376
+ domain: any
3377
+ apiKey: any
3378
+ token: any
3379
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3380
+ declare const removeUserFromProjectRule: ({
3381
+ dataAlertId,
3382
+ token,
3383
+ domain,
3384
+ apiKey,
3385
+ }: {
3386
+ dataAlertId: any
3387
+ token: any
3388
+ domain: any
3389
+ apiKey: any
3390
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3391
+ declare const addUserToProjectRule: ({
3392
+ dataAlertId,
3393
+ token,
3394
+ domain,
3395
+ apiKey,
3396
+ }: {
3397
+ dataAlertId: any
3398
+ token: any
3399
+ domain: any
3400
+ apiKey: any
3401
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3402
+ declare const toggleProjectDataAlertStatus: ({
3403
+ dataAlertId,
3404
+ status,
3405
+ token,
3406
+ domain,
3407
+ apiKey,
3408
+ }: {
3409
+ dataAlertId: any
3410
+ status: any
3411
+ token: any
3412
+ domain: any
3413
+ apiKey: any
3414
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3415
+ declare const toggleCustomDataAlertStatus: ({
3416
+ dataAlertId,
3417
+ status,
3418
+ token,
3419
+ domain,
3420
+ apiKey,
3421
+ }: {
3422
+ dataAlertId: any
3423
+ status: any
3424
+ token: any
3425
+ domain: any
3426
+ apiKey: any
3427
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3428
+ declare const updateDataAlertStatus: ({
3429
+ dataAlertId,
3430
+ status,
3431
+ type,
3432
+ domain,
3433
+ apiKey,
3434
+ token,
3435
+ }: {
3436
+ dataAlertId: any
3437
+ status: any
3438
+ type: any
3439
+ domain: any
3440
+ apiKey: any
3441
+ token: any
3442
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3443
+ declare const createNotificationChannel: ({
3444
+ token,
3445
+ domain,
3446
+ apiKey,
3447
+ channelType,
3448
+ channelName,
3449
+ channelEmail,
3450
+ userName,
3451
+ userEmail,
3452
+ }: {
3453
+ token: any
3454
+ domain: any
3455
+ apiKey: any
3456
+ channelType: any
3457
+ channelName: any
3458
+ channelEmail: any
3459
+ userName: any
3460
+ userEmail: any
3461
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3462
+ declare const sendDataToChannel: ({
3463
+ token,
3464
+ domain,
3465
+ apiKey,
3466
+ channelId,
3467
+ fileName,
3468
+ base64Data,
3469
+ }: {
3470
+ token: any
3471
+ domain: any
3472
+ apiKey: any
3473
+ channelId: any
3474
+ fileName: any
3475
+ base64Data: any
3476
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3477
+ declare const updateDataAlert: ({
3478
+ dataAlert,
3479
+ domain,
3480
+ apiKey,
3481
+ token,
3482
+ }: {
3483
+ dataAlert: any
3484
+ domain: any
3485
+ apiKey: any
3486
+ token: any
3487
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3488
+ declare const createDataAlert: ({
3489
+ dataAlert,
3490
+ domain,
3491
+ apiKey,
3492
+ token,
3493
+ }: {
3494
+ dataAlert?: {}
3495
+ domain: any
3496
+ apiKey: any
3497
+ token: any
3498
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3499
+ declare const createManagementDataAlert: ({
3500
+ dataAlert,
3501
+ domain,
3502
+ apiKey,
3503
+ token,
3504
+ projectId,
3505
+ evaluationMode,
3506
+ }: {
3507
+ dataAlert?: {}
3508
+ domain: any
3509
+ apiKey: any
3510
+ token: any
3511
+ projectId: any
3512
+ evaluationMode: any
3513
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3514
+ declare const updateManagementDataAlert: ({
3515
+ dataAlert,
3516
+ domain,
3517
+ apiKey,
3518
+ token,
3519
+ projectId,
3520
+ }: {
3521
+ dataAlert: any
3522
+ domain: any
3523
+ apiKey: any
3524
+ token: any
3525
+ projectId: any
3526
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3527
+ declare const previewDataAlert: ({
3528
+ dataAlertId,
3529
+ domain,
3530
+ apiKey,
3531
+ token,
3532
+ }: {
3533
+ dataAlertId: any
3534
+ domain: any
3535
+ apiKey: any
3536
+ token: any
3537
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3538
+ declare const previewManagementDataAlert: ({
3539
+ dataAlertId,
3540
+ domain,
3541
+ apiKey,
3542
+ token,
3543
+ projectId,
3544
+ }: {
3545
+ dataAlertId: any
3546
+ domain: any
3547
+ apiKey: any
3548
+ token: any
3549
+ projectId: any
3550
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3551
+ declare const assignLabelToManagementDataAlert: ({
3552
+ dataAlertId,
3553
+ domain,
3554
+ apiKey,
3555
+ token,
3556
+ categoryId,
3557
+ }: {
3558
+ dataAlertId: any
3559
+ domain: any
3560
+ apiKey: any
3561
+ token: any
3562
+ categoryId: any
3563
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3564
+ declare const validateExpression: ({
3565
+ expression,
3566
+ domain,
3567
+ apiKey,
3568
+ token,
3569
+ }: {
3570
+ expression: any
3571
+ domain: any
3572
+ apiKey: any
3573
+ token: any
3574
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3575
+ declare const deleteDataAlert: (dataAlertId: any, authObject: any) => Promise<import('axios').AxiosResponse<any, any>>
3576
+ declare const getAllDataAlertsLabelsByProject: ({
3577
+ domain,
3578
+ apiKey,
3579
+ token,
3580
+ }: {
3581
+ domain: any
3582
+ apiKey: any
3583
+ token: any
3584
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3585
+ declare const getAllDataAlertsLabels: ({
3586
+ domain,
3587
+ apiKey,
3588
+ token,
3589
+ }: {
3590
+ domain: any
3591
+ apiKey: any
3592
+ token: any
3593
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3594
+ declare const removeNotificationChannel: ({
3595
+ channelId,
3596
+ domain,
3597
+ apiKey,
3598
+ token,
3599
+ }: {
3600
+ channelId: any
3601
+ domain: any
3602
+ apiKey: any
3603
+ token: any
3604
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3605
+
3606
+ declare const getQueryFn: (
3607
+ response: TransformedAxiosResponse | undefined,
3608
+ ) => ({
3609
+ authentication,
3610
+ autoQLConfig,
3611
+ originalQueryID,
3612
+ formattedTableParams,
3613
+ clickedFilter,
3614
+ ...args
3615
+ }: {
3616
+ [x: string]: any
3617
+ authentication?: {}
3618
+ autoQLConfig?: {}
3619
+ originalQueryID: any
3620
+ formattedTableParams: any
3621
+ clickedFilter: any
3622
+ }) => any
3623
+ declare const transformQueryResponse: (
3624
+ response: AxiosResponse | undefined,
3625
+ originalQueryID?: string,
3626
+ isDrilldown?: boolean,
3627
+ newColumns?: AdditionalSelect[],
3628
+ ) => TransformedAxiosResponse
3629
+ declare const transformQueryResponseColumns: (response: AxiosResponse, addedColumns?: AdditionalSelect[]) => Column[]
3630
+
3631
+ declare const sendTrainingData: ({
3632
+ trainingData,
3633
+ apiKey,
3634
+ domain,
3635
+ token,
3636
+ }?: {
3637
+ trainingData?: object
3638
+ domain?: string
3639
+ apiKey?: string
3640
+ token?: string
3641
+ }) => Promise<import('axios').AxiosResponse<any, any>>
3642
+
3643
+ declare enum ThemeType {
3644
+ LIGHT = 'light',
3645
+ DARK = 'dark',
3646
+ }
3647
+ type Theme = {
3648
+ theme?: ThemeType
3649
+ chartColors?: string[]
3650
+ accentColor?: string
3651
+ fontFamily?: string
3652
+ textColor?: string
3653
+ textColorSecondary?: string
3654
+ accentTextColor?: string
3655
+ dashboardTitleColor?: string
3656
+ backgroundColorPrimary?: string
3657
+ backgroundColorSecondary?: string
3658
+ }
3659
+ declare const getThemeValue: (property: string, prefix?: string) => string
3660
+ declare const getThemeType: () => ThemeType
3661
+ type chartColorVarsResponse = {
3662
+ chartColors: string[]
3663
+ chartColorsDark: string[]
3664
+ }
3665
+ declare const getChartColorVars: (prefix: any) => chartColorVarsResponse
3666
+ declare const configureTheme: (customThemeConfig?: Theme, prefix?: string) => void
3667
+
3668
+ declare function color(): {
3669
+ (svg: any): void
3670
+ scale(_: any): any
3671
+ cells(_: any): number[] | any
3672
+ cellFilter(_: any): any
3673
+ shape(_: any): string | any
3674
+ path(_: any): any
3675
+ shapeWidth(_: any): number | any
3676
+ shapeHeight(_: any): number | any
3677
+ shapeRadius(_: any): number | any
3678
+ shapePadding(_: any): number | any
3679
+ labels(_: any): any[] | any
3680
+ labelAlign(_: any): string | any
3681
+ locale(_?: any):
3682
+ | {
3683
+ format: any
3684
+ formatPrefix: any
3685
+ }
3686
+ | any
3687
+ labelFormat(_: any): any
3688
+ labelOffset(_: any): number | any
3689
+ labelDelimiter(_: any): string | any
3690
+ labelWrap(_: any): any
3691
+ useClass(_: any): boolean | any
3692
+ orient(_: any): string | any
3693
+ ascending(_: any): boolean | any
3694
+ classPrefix(_: any): string | any
3695
+ title(_: any): string | any
3696
+ titleWidth(_: any): any
3697
+ textWrap(_: any): any
3698
+ on(): any
3699
+ }
3700
+
3701
+ export {
3702
+ AGG_TYPES,
3703
+ AXIS_TITLE_BORDER_PADDING_LEFT,
3704
+ AXIS_TITLE_BORDER_PADDING_TOP,
3705
+ AXIS_TITLE_PADDING_BOTTOM,
3706
+ AXIS_TITLE_PADDING_TOP,
3707
+ type AdditionalSelect,
3708
+ AggType,
3709
+ type AggTypeParams,
3710
+ AggTypes,
3711
+ type ApiFilter,
3712
+ type ApiSorter,
3713
+ type Authentication,
3714
+ type AutoQLJWT,
3715
+ type AvailableSelect,
3716
+ type AxiosResponse,
3717
+ BUTTON_PADDING,
3718
+ CHARTS_WITHOUT_AGGREGATED_DATA,
3719
+ CHARTS_WITHOUT_AXES,
3720
+ CHARTS_WITHOUT_LEGENDS,
3721
+ CHART_PADDING,
3722
+ CHART_TYPES,
3723
+ COLUMN_TYPES,
3724
+ COMPARE_TYPE,
3725
+ CONTINUOUS_TYPE,
3726
+ CUSTOM_TYPE,
3727
+ type Column,
3728
+ Column$1 as ColumnObj,
3729
+ type ColumnSelect,
3730
+ ColumnType,
3731
+ ColumnTypes,
3732
+ CustomColumnRowRangeTypes,
3733
+ CustomColumnTypes,
3734
+ CustomColumnValues,
3735
+ DATA_ALERT_CONDITION_TYPES,
3736
+ DATA_ALERT_ENABLED_STATUSES,
3737
+ DATA_ALERT_FREQUENCY_TYPE_OPTIONS,
3738
+ DATA_ALERT_OPERATORS,
3739
+ DATA_ALERT_STATUSES,
3740
+ DATE_ONLY_CHART_TYPES,
3741
+ DAYJS_PRECISION_FORMATS,
3742
+ DEFAULT_AGG_TYPE,
3743
+ DEFAULT_CHART_CONFIG,
3744
+ DEFAULT_COLUMN_NAME,
3745
+ DEFAULT_CSS_PREFIX,
3746
+ DEFAULT_DATA_PAGE_SIZE,
3747
+ DEFAULT_EVALUATION_FREQUENCY,
3748
+ DEFAULT_LEGEND_PADDING_BOTTOM,
3749
+ DEFAULT_LEGEND_PADDING_LEFT,
3750
+ DEFAULT_LEGEND_PADDING_RIGHT,
3751
+ DEFAULT_LEGEND_PADDING_TOP,
3752
+ DEFAULT_MAX_LEGEND_WIDTH,
3753
+ DEFAULT_SOURCE,
3754
+ DISABLED_CLASS,
3755
+ DISPLAY_TYPES,
3756
+ DOUBLE_AXIS_CHART_TYPES,
3757
+ DOW_STYLES,
3758
+ DataExplorerSubject,
3759
+ type DataExplorerSubjectFilter,
3760
+ type DataExplorerSubjectGroups,
3761
+ type DataExplorerSubjectInterface,
3762
+ type DataExplorerSuggestion,
3763
+ DataExplorerTypes,
3764
+ type DataFormatting,
3765
+ DateStringPrecisionTypes,
3766
+ DateUTC,
3767
+ type DisplayOverride,
3768
+ DisplayTypes,
3769
+ EVALUATION_FREQUENCY_OPTIONS,
3770
+ EXISTS_TYPE,
3771
+ FORMULA_CLASS,
3772
+ FUNCTION_OPERATORS,
3773
+ type FilterLock,
3774
+ type FrontendReq,
3775
+ GENERAL_ERROR,
3776
+ GENERAL_HTML_ERROR,
3777
+ GENERAL_QUERY_ERROR,
3778
+ GLOBAL_OPERATORS,
3779
+ GROUP_TERM_TYPE,
3780
+ GeneralErrorTypes,
3781
+ HIGHLIGHTED_CLASS,
3782
+ HORIZONTAL_LEGEND_SPACING,
3783
+ LABEL_FONT_SIZE,
3784
+ LEGEND_BORDER_PADDING,
3785
+ LEGEND_BORDER_THICKNESS,
3786
+ LEGEND_SHAPE_SIZE,
3787
+ LEGEND_TOP_ADJUSTMENT,
3788
+ LOAD_MORE_DROPDOWN_PADDING_BOTTOM,
3789
+ MAX_CHART_ELEMENTS,
3790
+ MAX_DATA_PAGE_SIZE,
3791
+ MAX_LEGEND_LABELS,
3792
+ MAX_RECENT_SEARCHES,
3793
+ MAX_ROWS_FOR_PIE_CHART,
3794
+ MINIMUM_INNER_HEIGHT,
3795
+ MINIMUM_INNER_WIDTH,
3796
+ MINIMUM_TITLE_LENGTH,
3797
+ MIN_HISTOGRAM_SAMPLE,
3798
+ MONTH_DAY_SELECT_OPTIONS,
3799
+ MONTH_NAMES,
3800
+ NUMBER_TERM_TYPE,
3801
+ OPERATORS,
3802
+ ORDERBY_DIRECTIONS,
3803
+ Operators,
3804
+ PATH_SMOOTHING,
3805
+ PERIODIC_TYPE,
3806
+ PROJECT_TYPE,
3807
+ type ParsedInterpretation,
3808
+ type ParsedInterpretationChunk,
3809
+ PrecisionTypes,
3810
+ QUERY_TERM_TYPE,
3811
+ QUERY_TIMEOUT_ERROR,
3812
+ type QueryData,
3813
+ QueryErrorTypes,
3814
+ type QueryResponse,
3815
+ REQUEST_CANCELLED_ERROR,
3816
+ RESET_PERIOD_OPTIONS,
3817
+ ROWS_RANGE,
3818
+ ROWS_RANGE_OPTIONS,
3819
+ type RawColumn,
3820
+ type Rows,
3821
+ SCHEDULED_TYPE,
3822
+ SCHEDULE_FREQUENCY_OPTIONS,
3823
+ SCHEDULE_INTERVAL_OPTIONS,
3824
+ SEASON_NAMES,
3825
+ SampleQueryReplacementTypes,
3826
+ type Scale,
3827
+ type SubjectSuggestion,
3828
+ TABLE_TYPES,
3829
+ TITLE_FONT_SIZE,
3830
+ type TableConfig,
3831
+ type TabulatorFilter,
3832
+ type TabulatorSorter,
3833
+ type Theme,
3834
+ ThemeType,
3835
+ type TransformedAxiosResponse,
3836
+ type TransformedQueryResponse,
3837
+ TranslationTypes,
3838
+ UNAUTHENTICATED_ERROR,
3839
+ VERTICAL_LEGEND_SPACING,
3840
+ type ValueLabel,
3841
+ type ValueLabelSuggestion,
3842
+ WEEKDAY_NAMES_MON,
3843
+ WEEKDAY_NAMES_SUN,
3844
+ WINDOW_FUNCTIONS,
3845
+ addSubjectToRecentSearches,
3846
+ addUserToProjectRule,
3847
+ adjustBottomTitleToFit,
3848
+ adjustMinAndMaxForScaleRatio,
3849
+ adjustTitleToFit,
3850
+ adjustTopTitleToFit,
3851
+ adjustVerticalTitleToFit,
3852
+ aggregateData,
3853
+ aggregateOtherCategory,
3854
+ animateInputText,
3855
+ applyLegendTitleStyles,
3856
+ applyPrecisionToDate,
3857
+ applyStylesForHiddenSeries,
3858
+ areAllColumnsHidden,
3859
+ areSomeColumnsHidden,
3860
+ assignLabelToManagementDataAlert,
3861
+ authenticationDefault,
3862
+ autoQLConfigDefault,
3863
+ bezierCommand,
3864
+ buildPlainColumnArrayFn,
3865
+ calculateMinAndMaxSums,
3866
+ capitalizeFirstChar,
3867
+ cloneObject,
3868
+ configureTheme,
3869
+ constructFilter,
3870
+ constructRTArray,
3871
+ convertToFunctionStr,
3872
+ convertToNumber,
3873
+ countDecimals,
3874
+ createDataAlert,
3875
+ createManagementDataAlert,
3876
+ createMutatorFn,
3877
+ createNotificationChannel,
3878
+ createSVGPath,
3879
+ currentEventLoopEnd,
3880
+ dataConfigDefault,
3881
+ dataFormattingDefault,
3882
+ dataStructureChanged,
3883
+ dateSortFn,
3884
+ dateStringSortFn,
3885
+ deepEqual,
3886
+ deleteAllNotifications,
3887
+ deleteDataAlert,
3888
+ deleteMultipleNotifications,
3889
+ deleteNotification,
3890
+ difference,
3891
+ dismissAllNotifications,
3892
+ dismissNotification,
3893
+ distributeListsEvenly,
3894
+ doesElementOverflowContainer,
3895
+ exportCSV,
3896
+ fetchAutocomplete,
3897
+ fetchDataAlerts,
3898
+ fetchDataExplorerAutocomplete,
3899
+ fetchDataExplorerSampleQueries,
3900
+ fetchDataExplorerSuggestions,
3901
+ fetchDataPreview,
3902
+ fetchExploreQueries,
3903
+ fetchFilters,
3904
+ fetchNotification,
3905
+ fetchNotificationChannels,
3906
+ fetchNotificationCount,
3907
+ fetchNotificationData,
3908
+ fetchNotificationFeed,
3909
+ fetchRule,
3910
+ fetchSubjectList,
3911
+ fetchSubjectListV2,
3912
+ fetchSubscribedDataAlerts,
3913
+ fetchSuggestions,
3914
+ fetchTopics,
3915
+ fetchTopicsForVL,
3916
+ fetchVLAutocomplete,
3917
+ filterDataByColumn,
3918
+ formatAdditionalSelectColumn,
3919
+ formatChartLabel,
3920
+ formatDatePivotMonth,
3921
+ formatDatePivotYear,
3922
+ formatDateStringType,
3923
+ formatDateType,
3924
+ formatElement,
3925
+ formatEpochDate,
3926
+ formatFiltersForAPI,
3927
+ formatFiltersForTabulator,
3928
+ formatISODateWithPrecision,
3929
+ formatNextScheduleDate,
3930
+ formatNumberFilterValue,
3931
+ formatQueryColumns,
3932
+ formatResetDate,
3933
+ formatSortersForAPI,
3934
+ formatSortersForTabulator,
3935
+ formatStringDate,
3936
+ formatStringDateWithPrecision,
3937
+ formatTableParams,
3938
+ functionsEqual,
3939
+ generateDatePivotData,
3940
+ generateFilterDrilldownResponse,
3941
+ generatePivotData,
3942
+ generatePivotTableData,
3943
+ getAggConfig,
3944
+ getAllDataAlertsLabels,
3945
+ getAllDataAlertsLabelsByProject,
3946
+ getAuthentication,
3947
+ getAutoQLConfig,
3948
+ getAxis,
3949
+ getAxisLabelsBbox,
3950
+ getBBoxFromRef,
3951
+ getBandScale,
3952
+ getBarRectObj,
3953
+ getBinData,
3954
+ getBinLinearScale,
3955
+ getBubbleObj,
3956
+ getChartColorVars,
3957
+ getChartScaleRatio,
3958
+ getCleanColumnName,
3959
+ getColorScale,
3960
+ getColorScales,
3961
+ getColumnDateRanges,
3962
+ getColumnIndexConfig,
3963
+ getColumnNameForDateRange,
3964
+ getColumnRectObj,
3965
+ getColumnTypeAmounts,
3966
+ getCombinedFilters,
3967
+ getCurrencySymbol,
3968
+ getCurrentTimezone,
3969
+ getDataAlertsByLabel,
3970
+ getDataConfig,
3971
+ getDataFormatting,
3972
+ getDateColumnIndex,
3973
+ getDateColumns,
3974
+ getDateRangeIntersection,
3975
+ getDateRangesFromInterpretation,
3976
+ getDatesFromRT,
3977
+ getDayJSObj,
3978
+ getDayLocalStartDate,
3979
+ getDayOfTheMonthFromTimestamp,
3980
+ getDayOfTheMonthSuffix,
3981
+ getDayjsObjForStringType,
3982
+ getDefaultBucketConfig,
3983
+ getDefaultDisplayType,
3984
+ getDefaultJoinColumnAndDisplayNameAndJoinColumnsIndices,
3985
+ getDefaultJoinColumns,
3986
+ getDrilldownData,
3987
+ getDrilldownGroupby,
3988
+ getEpochFromDate,
3989
+ getFilterDrilldown,
3990
+ getFilterPrecision,
3991
+ getFirstChartDisplayType,
3992
+ getFnSummary,
3993
+ getFormattedTimestamp,
3994
+ getGroupBys,
3995
+ getGroupBysFromPivotTable,
3996
+ getGroupBysFromTable,
3997
+ getGroupableColumns,
3998
+ getHeatmapRectObj,
3999
+ getHiddenColumns,
4000
+ getHistogramColumnObj,
4001
+ getHistogramScale,
4002
+ getInitialBucketSize,
4003
+ getInitialSelections,
4004
+ getKey,
4005
+ getKeyByValue,
4006
+ getLabelsBBox,
4007
+ getLegendLabels,
4008
+ getLegendLabelsForGroupbyQuery,
4009
+ getLegendLabelsForMultiSeries,
4010
+ getLegendLabelsForSingleColumn,
4011
+ getLegendLocation,
4012
+ getLegendScale,
4013
+ getLegendTitleFromColumns,
4014
+ getLineVertexObj,
4015
+ getLinearAxisTitle,
4016
+ getLinearScale,
4017
+ getLinearScales,
4018
+ getMaxLegendHeight,
4019
+ getMaxLegendSectionWidth,
4020
+ getMaxTickLabelWidth,
4021
+ getMaxValueFromKeyValueObj,
4022
+ getMinAndMaxValues,
4023
+ getMinValueFromKeyValueObj,
4024
+ getMonthLocalStartDate,
4025
+ getMultiSeriesColumnIndex,
4026
+ getNiceDateTickValues,
4027
+ getNiceTickValues,
4028
+ getNotLabeledDataAlerts,
4029
+ getNumberAxisUnits,
4030
+ getNumberColumnIndices,
4031
+ getNumberFormatConfig,
4032
+ getNumberOfGroupables,
4033
+ getNumberOfSeries,
4034
+ getNumericalColumns,
4035
+ getObjSize,
4036
+ getOpacityScale,
4037
+ getOperators,
4038
+ getPadding,
4039
+ getPieChartData,
4040
+ getPivotColumnIndexConfig,
4041
+ getPlainTextList,
4042
+ getPointObj,
4043
+ getPotentialDisplayTypes,
4044
+ getPrecisionForDayJS,
4045
+ getQueryFn,
4046
+ getQueryParams,
4047
+ getQueryRequestParams,
4048
+ getQuerySelectableJoinColumns,
4049
+ getQueryValidationQueryText,
4050
+ getRadiusScale,
4051
+ getRangeForAxis,
4052
+ getRecentSearchesFromLocalStorage,
4053
+ getRecentSelectionID,
4054
+ getRowNumberListForPopover,
4055
+ getSVGBase64,
4056
+ getSampleQueryRegex,
4057
+ getSampleQueryText,
4058
+ getScheduleFrequencyObject,
4059
+ getSelectableColumns,
4060
+ getStartAndEndDateFromDateStrs,
4061
+ getStringColumnIndices,
4062
+ getStringColumns,
4063
+ getStringFromSource,
4064
+ getSuggestionLists,
4065
+ getSupportedConditionTypes,
4066
+ getSupportedDisplayTypes,
4067
+ getThemeType,
4068
+ getThemeValue,
4069
+ getTickSizeFromNumTicks,
4070
+ getTickValues,
4071
+ getTimeFrameTextFromChunk,
4072
+ getTimeObjFromTimeStamp,
4073
+ getTimeRangeFromDateArray,
4074
+ getTimeRangeFromRT,
4075
+ getTimeScale,
4076
+ getTitleCase,
4077
+ getTodaysDayOfTheMonth,
4078
+ getTooltipContent,
4079
+ getTotalBottomPadding,
4080
+ getTotalHorizontalPadding,
4081
+ getTotalLeftPadding,
4082
+ getTotalPossibleLegendSections,
4083
+ getTotalRightPadding,
4084
+ getTotalTopPadding,
4085
+ getTotalVerticalPadding,
4086
+ getUniqueYearsForColumn,
4087
+ getUnitSymbol,
4088
+ getUnitsForColumn,
4089
+ getVisibleColumns,
4090
+ getWeekLocalStartDate,
4091
+ getWeekdayFromTimeStamp,
4092
+ getlegendLabelSections,
4093
+ handleTooltipBoundaryCollision,
4094
+ hasColumnIndex,
4095
+ hasData,
4096
+ hasDateColumn,
4097
+ hasMoreData,
4098
+ hasNumberColumn,
4099
+ hasStringColumn,
4100
+ initializeAlert,
4101
+ initializeQueryValidationOptions,
4102
+ isAggSeed,
4103
+ isAggregation,
4104
+ isChartType,
4105
+ isColumnDateType,
4106
+ isColumnIndexConfigValid,
4107
+ isColumnIndexValid,
4108
+ isColumnIndicesValid,
4109
+ isColumnNumberType,
4110
+ isColumnStringType,
4111
+ isDataLimited,
4112
+ isDisplayTypeValid,
4113
+ isDrilldown,
4114
+ isError500Type,
4115
+ isExpressionQueryValid,
4116
+ isISODate,
4117
+ isInitialSelectionValid,
4118
+ isListQuery,
4119
+ isNumber,
4120
+ isObject,
4121
+ isOperatorJs,
4122
+ isSingleValueResponse,
4123
+ isTableType,
4124
+ isValueEmpty,
4125
+ color as legendColor,
4126
+ lineCommand,
4127
+ makeEmptyArray,
4128
+ markNotificationAsUnread,
4129
+ mergeBboxes,
4130
+ mergeBoundingClientRects,
4131
+ mergeSources,
4132
+ nameValueObject,
4133
+ numberIndicesArraysOverlap,
4134
+ numberSortFn,
4135
+ onTableCellClick,
4136
+ onlySeriesVisibilityChanged,
4137
+ onlyUnique,
4138
+ parseJwt,
4139
+ potentiallySupportsDatePivot,
4140
+ potentiallySupportsPivot,
4141
+ previewDataAlert,
4142
+ previewManagementDataAlert,
4143
+ removeElementAtIndex,
4144
+ removeFromDOM,
4145
+ removeHiddenLegendLabels,
4146
+ removeNotificationChannel,
4147
+ removeUserFromProjectRule,
4148
+ reportProblem,
4149
+ resetDateIsFuture,
4150
+ resetNotificationCount,
4151
+ rotateArray,
4152
+ roundDownToNearestMultiple,
4153
+ roundToNearestLog10,
4154
+ roundToNearestMultiple,
4155
+ roundUpToNearestMultiple,
4156
+ runDrilldown,
4157
+ runQuery,
4158
+ runQueryNewPage,
4159
+ runQueryOnly,
4160
+ runQueryValidation,
4161
+ scaleZero,
4162
+ sendDataToChannel,
4163
+ sendSuggestion,
4164
+ sendTrainingData,
4165
+ setCaretPosition,
4166
+ setColumnVisibility,
4167
+ setFilterFunction,
4168
+ setFilters,
4169
+ setHeaderFilterPlaceholder,
4170
+ setRecentSearchesInLocalStorage,
4171
+ setSorterFunction,
4172
+ setTickSize,
4173
+ setTickValues,
4174
+ shouldDisableChartScale,
4175
+ shouldLabelsRotate,
4176
+ shouldPlotMultiSeries,
4177
+ showEvaluationFrequencySetting,
4178
+ sortDataByAlphabet,
4179
+ sortDataByColumn,
4180
+ sortDataByDate,
4181
+ supportsDatePivotTable,
4182
+ supportsPieChart,
4183
+ supportsRegularPivotTable,
4184
+ svgPathD,
4185
+ svgToPng,
4186
+ type tableFilterParams,
4187
+ titlelizeString,
4188
+ toggleCustomDataAlertStatus,
4189
+ toggleProjectDataAlertStatus,
4190
+ transformLabels,
4191
+ transformQueryResponse,
4192
+ transformQueryResponseColumns,
4193
+ unsetFilterFromAPI,
4194
+ updateDataAlert,
4195
+ updateDataAlertStatus,
4196
+ updateManagementDataAlert,
4197
+ updateStartAndEndIndexes,
4198
+ usePivotDataForChart,
4199
+ uuidv4,
4200
+ validateExpression,
4201
+ }