autoql-fe-utils 1.7.8 → 1.7.10

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