autoql-fe-utils 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +414 -245
- package/dist/index.global.js +599 -187
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +620 -190
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +610 -189
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
+
export { default as dayjs } from 'dayjs';
|
|
2
3
|
import axios from 'axios';
|
|
3
4
|
|
|
4
5
|
declare const capitalizeFirstChar: (string: any) => any;
|
|
5
6
|
declare const isNumber: (str: any) => boolean;
|
|
7
|
+
declare const getTitleCase: (str: any) => any;
|
|
6
8
|
|
|
7
9
|
declare enum PrecisionTypes {
|
|
8
10
|
DAY = "DAY",
|
|
@@ -33,8 +35,15 @@ declare enum ColumnTypes {
|
|
|
33
35
|
DATE_STRING = "DATE_STRING"
|
|
34
36
|
}
|
|
35
37
|
declare enum DataExplorerTypes {
|
|
36
|
-
SUBJECT_TYPE = "
|
|
37
|
-
VL_TYPE = "VL"
|
|
38
|
+
SUBJECT_TYPE = "SUBJECT",
|
|
39
|
+
VL_TYPE = "VL",
|
|
40
|
+
TEXT_TYPE = "TEXT"
|
|
41
|
+
}
|
|
42
|
+
declare enum SampleQueryReplacementTypes {
|
|
43
|
+
SAMPLE_QUERY_TEXT_TYPE = "TEXT",
|
|
44
|
+
SAMPLE_QUERY_VL_TYPE = "VL",
|
|
45
|
+
SAMPLE_QUERY_TIME_TYPE = "DUCKLING_TIME",
|
|
46
|
+
SAMPLE_QUERY_AMOUNT_TYPE = "DUCKLING_AMOUNT"
|
|
38
47
|
}
|
|
39
48
|
declare enum DisplayTypes {
|
|
40
49
|
TABLE = "table",
|
|
@@ -53,130 +62,42 @@ declare enum DisplayTypes {
|
|
|
53
62
|
COLUMN_LINE = "column_line"
|
|
54
63
|
}
|
|
55
64
|
|
|
56
|
-
|
|
57
|
-
type:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
interface Column$1 extends RawColumn {
|
|
67
|
-
aggType?: string;
|
|
68
|
-
title?: string;
|
|
69
|
-
origColumn?: Column$1;
|
|
70
|
-
origPivotColumn?: Column$1;
|
|
71
|
-
origValues?: any;
|
|
72
|
-
headerFilter?: boolean;
|
|
73
|
-
frozen?: boolean;
|
|
74
|
-
visible?: boolean;
|
|
75
|
-
field?: string;
|
|
76
|
-
index?: number;
|
|
77
|
-
cssClass?: string;
|
|
78
|
-
pivot?: boolean;
|
|
79
|
-
formatter?: Function;
|
|
80
|
-
drilldownGroupby?: any;
|
|
81
|
-
}
|
|
82
|
-
interface FilterLock {
|
|
83
|
-
filter_type: string;
|
|
84
|
-
key: string;
|
|
85
|
-
value: string;
|
|
86
|
-
show_message: string;
|
|
87
|
-
}
|
|
88
|
-
interface FrontendReq {
|
|
89
|
-
session_locked_conditions: Object;
|
|
90
|
-
page_size: number;
|
|
91
|
-
debug: false;
|
|
92
|
-
disambiguation: any[];
|
|
93
|
-
chart_images: string;
|
|
94
|
-
orders: any[];
|
|
95
|
-
filters: any[];
|
|
96
|
-
translation: string;
|
|
97
|
-
text: string;
|
|
98
|
-
date_format: string;
|
|
99
|
-
scope: string;
|
|
100
|
-
source: string;
|
|
101
|
-
test: boolean;
|
|
102
|
-
session_filter_locks: any[];
|
|
103
|
-
v2_dates: number;
|
|
104
|
-
persistent_filter_locks: FilterLock[];
|
|
105
|
-
columns?: Column$1[];
|
|
106
|
-
}
|
|
107
|
-
type Rows = Array<Array<string | number>>;
|
|
108
|
-
type ParsedInterpretationChunk = {
|
|
109
|
-
eng: string;
|
|
110
|
-
c_type?: string;
|
|
111
|
-
for?: string;
|
|
112
|
-
dateArray?: string[];
|
|
113
|
-
operator?: string;
|
|
114
|
-
type?: string;
|
|
65
|
+
type ColumnTypeParams = {
|
|
66
|
+
type: string;
|
|
67
|
+
description: string;
|
|
68
|
+
continuous?: boolean;
|
|
69
|
+
ordinal?: boolean;
|
|
70
|
+
aggOptions?: string[];
|
|
71
|
+
aggregable?: boolean;
|
|
72
|
+
isNumber?: boolean;
|
|
73
|
+
icon?: string;
|
|
74
|
+
unit?: string;
|
|
115
75
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
interpretation: string;
|
|
128
|
-
text: string;
|
|
129
|
-
parsed_interpretation: ParsedInterpretation;
|
|
130
|
-
persistent_locked_conditions: any[];
|
|
131
|
-
condition_filter: any[];
|
|
132
|
-
sql: any[];
|
|
133
|
-
}
|
|
134
|
-
interface QueryResponse {
|
|
135
|
-
data: QueryData;
|
|
136
|
-
message: string;
|
|
137
|
-
reference_id: string;
|
|
138
|
-
}
|
|
139
|
-
interface AxiosResponse {
|
|
140
|
-
data: QueryResponse;
|
|
141
|
-
}
|
|
142
|
-
interface TransformedAxiosResponse {
|
|
143
|
-
data: TransformedQueryResponse;
|
|
144
|
-
}
|
|
145
|
-
interface TransformedQueryResponse extends QueryResponse {
|
|
146
|
-
originalQueryID?: string;
|
|
147
|
-
queryFn?: Function;
|
|
148
|
-
}
|
|
149
|
-
interface DataFormatting {
|
|
150
|
-
currencyCode: string;
|
|
151
|
-
languageCode: string;
|
|
152
|
-
currencyDecimals: number;
|
|
153
|
-
quantityDecimals: number;
|
|
154
|
-
ratioDecimals: number;
|
|
155
|
-
comparisonDisplay: string;
|
|
156
|
-
monthYearFormat: string;
|
|
157
|
-
dayMonthYearFormat: string;
|
|
158
|
-
}
|
|
159
|
-
interface Scale {
|
|
76
|
+
declare class ColumnType {
|
|
77
|
+
type: string;
|
|
78
|
+
description: string;
|
|
79
|
+
continuous?: boolean;
|
|
80
|
+
ordinal?: boolean;
|
|
81
|
+
aggOptions?: string[];
|
|
82
|
+
aggregable?: boolean;
|
|
83
|
+
isNumber?: boolean;
|
|
84
|
+
icon?: string;
|
|
85
|
+
unit?: string;
|
|
86
|
+
constructor({ type, description, continuous, ordinal, aggOptions, aggregable, isNumber, icon, unit, }: ColumnTypeParams);
|
|
160
87
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
88
|
+
|
|
89
|
+
declare class Column$1 {
|
|
90
|
+
type: ColumnTypes;
|
|
91
|
+
isNumberType: boolean;
|
|
92
|
+
isStringType: boolean;
|
|
93
|
+
isDateType: boolean;
|
|
94
|
+
drilldownGroupby: any;
|
|
95
|
+
getTooltip: Function;
|
|
96
|
+
constructor(options: Column);
|
|
165
97
|
}
|
|
166
|
-
interface
|
|
167
|
-
name: string;
|
|
168
|
-
alias_name: string;
|
|
169
|
-
canonical: string;
|
|
98
|
+
interface Column$1 extends Column {
|
|
170
99
|
}
|
|
171
|
-
|
|
172
|
-
type: string;
|
|
173
|
-
displayName?: string;
|
|
174
|
-
tooltip?: string;
|
|
175
|
-
unit?: string;
|
|
176
|
-
supportsStrings?: boolean;
|
|
177
|
-
symbol?: string;
|
|
178
|
-
fn?: Function;
|
|
179
|
-
};
|
|
100
|
+
|
|
180
101
|
declare class AggType {
|
|
181
102
|
type: string;
|
|
182
103
|
displayName?: string;
|
|
@@ -187,30 +108,31 @@ declare class AggType {
|
|
|
187
108
|
fn?: Function;
|
|
188
109
|
constructor({ type, displayName, tooltip, unit, supportsStrings, symbol, fn }: AggTypeParams);
|
|
189
110
|
}
|
|
190
|
-
type tableFilterParams = {
|
|
191
|
-
name: string;
|
|
192
|
-
columnName: string;
|
|
193
|
-
value: string | number;
|
|
194
|
-
operator: string;
|
|
195
|
-
displayValue?: string;
|
|
196
|
-
};
|
|
197
|
-
type TableConfig = {
|
|
198
|
-
stringColumnIndex: number;
|
|
199
|
-
numberColumnIndex: number;
|
|
200
|
-
numberColumnIndex2: number;
|
|
201
|
-
legendColumnIndex: number;
|
|
202
|
-
stringColumnIndices: number[];
|
|
203
|
-
numberColumnIndices: number[];
|
|
204
|
-
numberColumnIndices2: number[];
|
|
205
|
-
};
|
|
206
111
|
|
|
207
|
-
declare
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
112
|
+
declare class DataExplorerSubject {
|
|
113
|
+
id: string;
|
|
114
|
+
type: DataExplorerTypes;
|
|
115
|
+
displayName: string;
|
|
116
|
+
formattedType?: string;
|
|
117
|
+
text?: string;
|
|
118
|
+
query?: string;
|
|
119
|
+
context?: string;
|
|
120
|
+
valueLabel?: ValueLabelSuggestion;
|
|
121
|
+
isSubject: Function;
|
|
122
|
+
isValueLabel: Function;
|
|
123
|
+
isPlainText: Function;
|
|
124
|
+
constructor(obj: SubjectSuggestion | ValueLabelSuggestion);
|
|
125
|
+
}
|
|
126
|
+
interface DataExplorerSubject extends DataExplorerSubjectInterface {
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare const TABLE_TYPES: DisplayTypes[];
|
|
130
|
+
declare const CHART_TYPES: DisplayTypes[];
|
|
131
|
+
declare const CHARTS_WITHOUT_LEGENDS: DisplayTypes[];
|
|
132
|
+
declare const CHARTS_WITHOUT_AGGREGATED_DATA: DisplayTypes[];
|
|
133
|
+
declare const DATE_ONLY_CHART_TYPES: DisplayTypes[];
|
|
134
|
+
declare const DOUBLE_AXIS_CHART_TYPES: DisplayTypes[];
|
|
135
|
+
declare const CHARTS_WITHOUT_AXES: DisplayTypes[];
|
|
214
136
|
declare const DEFAULT_CHART_CONFIG: {
|
|
215
137
|
isScaled: boolean;
|
|
216
138
|
};
|
|
@@ -228,17 +150,6 @@ declare const DAYJS_PRECISION_FORMATS: {
|
|
|
228
150
|
DATE_HOUR: string;
|
|
229
151
|
DATE_MINUTE: string;
|
|
230
152
|
};
|
|
231
|
-
declare const PRECISION_TYPES: {
|
|
232
|
-
DAY: string;
|
|
233
|
-
MONTH: string;
|
|
234
|
-
YEAR: string;
|
|
235
|
-
WEEK: string;
|
|
236
|
-
QUARTER: string;
|
|
237
|
-
DATE_HOUR: string;
|
|
238
|
-
DATE_MINUTE: string;
|
|
239
|
-
HOUR: string;
|
|
240
|
-
MINUTE: string;
|
|
241
|
-
};
|
|
242
153
|
declare const MAX_LEGEND_LABELS = 22;
|
|
243
154
|
declare const MIN_HISTOGRAM_SAMPLE = 20;
|
|
244
155
|
declare const DEFAULT_AGG_TYPE = AggTypes.SUM;
|
|
@@ -247,6 +158,124 @@ declare const AGG_TYPES: {
|
|
|
247
158
|
AVG: AggType;
|
|
248
159
|
COUNT: AggType;
|
|
249
160
|
};
|
|
161
|
+
declare const DISPLAY_TYPES: {
|
|
162
|
+
TABLE: {
|
|
163
|
+
type: DisplayTypes;
|
|
164
|
+
isTableType: boolean;
|
|
165
|
+
};
|
|
166
|
+
PIVOT_TABLE: {
|
|
167
|
+
type: DisplayTypes;
|
|
168
|
+
isTableType: boolean;
|
|
169
|
+
};
|
|
170
|
+
BAR: {
|
|
171
|
+
type: DisplayTypes;
|
|
172
|
+
isChartType: boolean;
|
|
173
|
+
allowLegend: boolean;
|
|
174
|
+
allowAgg: boolean;
|
|
175
|
+
hasAxes: boolean;
|
|
176
|
+
datesOnly: boolean;
|
|
177
|
+
multiAxis: boolean;
|
|
178
|
+
};
|
|
179
|
+
COLUMN: {
|
|
180
|
+
type: DisplayTypes;
|
|
181
|
+
isChartType: boolean;
|
|
182
|
+
allowLegend: boolean;
|
|
183
|
+
allowAgg: boolean;
|
|
184
|
+
hasAxes: boolean;
|
|
185
|
+
datesOnly: boolean;
|
|
186
|
+
multiAxis: boolean;
|
|
187
|
+
};
|
|
188
|
+
LINE: {
|
|
189
|
+
type: DisplayTypes;
|
|
190
|
+
isChartType: boolean;
|
|
191
|
+
allowLegend: boolean;
|
|
192
|
+
allowAgg: boolean;
|
|
193
|
+
hasAxes: boolean;
|
|
194
|
+
datesOnly: boolean;
|
|
195
|
+
multiAxis: boolean;
|
|
196
|
+
};
|
|
197
|
+
STACKED_COLUMN: {
|
|
198
|
+
type: DisplayTypes;
|
|
199
|
+
isChartType: boolean;
|
|
200
|
+
allowLegend: boolean;
|
|
201
|
+
allowAgg: boolean;
|
|
202
|
+
hasAxes: boolean;
|
|
203
|
+
dateOnly: boolean;
|
|
204
|
+
multiAxis: boolean;
|
|
205
|
+
};
|
|
206
|
+
STACKED_BAR: {
|
|
207
|
+
type: DisplayTypes;
|
|
208
|
+
isChartType: boolean;
|
|
209
|
+
allowLegend: boolean;
|
|
210
|
+
allowAgg: boolean;
|
|
211
|
+
hasAxes: boolean;
|
|
212
|
+
dateOnly: boolean;
|
|
213
|
+
multiAxis: boolean;
|
|
214
|
+
};
|
|
215
|
+
STACKED_LINE: {
|
|
216
|
+
type: DisplayTypes;
|
|
217
|
+
isChartType: boolean;
|
|
218
|
+
allowLegend: boolean;
|
|
219
|
+
allowAgg: boolean;
|
|
220
|
+
hasAxes: boolean;
|
|
221
|
+
dateOnly: boolean;
|
|
222
|
+
multiAxis: boolean;
|
|
223
|
+
};
|
|
224
|
+
BUBBLE: {
|
|
225
|
+
type: DisplayTypes;
|
|
226
|
+
isChartType: boolean;
|
|
227
|
+
allowLegend: boolean;
|
|
228
|
+
allowAgg: boolean;
|
|
229
|
+
hasAxes: boolean;
|
|
230
|
+
dateOnly: boolean;
|
|
231
|
+
multiAxis: boolean;
|
|
232
|
+
};
|
|
233
|
+
HEATMAP: {
|
|
234
|
+
type: DisplayTypes;
|
|
235
|
+
isChartType: boolean;
|
|
236
|
+
allowLegend: boolean;
|
|
237
|
+
allowAgg: boolean;
|
|
238
|
+
hasAxes: boolean;
|
|
239
|
+
dateOnly: boolean;
|
|
240
|
+
multiAxis: boolean;
|
|
241
|
+
};
|
|
242
|
+
PIE: {
|
|
243
|
+
type: DisplayTypes;
|
|
244
|
+
isChartType: boolean;
|
|
245
|
+
allowLegend: boolean;
|
|
246
|
+
allowAgg: boolean;
|
|
247
|
+
hasAxes: boolean;
|
|
248
|
+
dateOnly: boolean;
|
|
249
|
+
multiAxis: boolean;
|
|
250
|
+
};
|
|
251
|
+
HISTOGRAM: {
|
|
252
|
+
type: DisplayTypes;
|
|
253
|
+
isChartType: boolean;
|
|
254
|
+
allowLegend: boolean;
|
|
255
|
+
allowAgg: boolean;
|
|
256
|
+
hasAxes: boolean;
|
|
257
|
+
dateOnly: boolean;
|
|
258
|
+
multiAxis: boolean;
|
|
259
|
+
};
|
|
260
|
+
SCATTERPLOT: {
|
|
261
|
+
type: DisplayTypes;
|
|
262
|
+
isChartType: boolean;
|
|
263
|
+
allowLegend: boolean;
|
|
264
|
+
allowAgg: boolean;
|
|
265
|
+
hasAxes: boolean;
|
|
266
|
+
dateOnly: boolean;
|
|
267
|
+
multiAxis: boolean;
|
|
268
|
+
};
|
|
269
|
+
COLUMN_LINE: {
|
|
270
|
+
type: DisplayTypes;
|
|
271
|
+
isChartType: boolean;
|
|
272
|
+
allowLegend: boolean;
|
|
273
|
+
allowAgg: boolean;
|
|
274
|
+
hasAxes: boolean;
|
|
275
|
+
dateOnly: boolean;
|
|
276
|
+
multiAxis: boolean;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
250
279
|
|
|
251
280
|
declare const CUSTOM_TYPE = "CUSTOM";
|
|
252
281
|
declare const PROJECT_TYPE = "PROJECT";
|
|
@@ -416,42 +445,6 @@ declare const EVALUATION_FREQUENCY_OPTIONS: {
|
|
|
416
445
|
};
|
|
417
446
|
};
|
|
418
447
|
|
|
419
|
-
type ColumnTypeParams = {
|
|
420
|
-
type: string;
|
|
421
|
-
description: string;
|
|
422
|
-
continuous?: boolean;
|
|
423
|
-
ordinal?: boolean;
|
|
424
|
-
aggOptions?: string[];
|
|
425
|
-
aggregable?: boolean;
|
|
426
|
-
isNumber?: boolean;
|
|
427
|
-
icon?: string;
|
|
428
|
-
unit?: string;
|
|
429
|
-
};
|
|
430
|
-
declare class ColumnType {
|
|
431
|
-
type: string;
|
|
432
|
-
description: string;
|
|
433
|
-
continuous?: boolean;
|
|
434
|
-
ordinal?: boolean;
|
|
435
|
-
aggOptions?: string[];
|
|
436
|
-
aggregable?: boolean;
|
|
437
|
-
isNumber?: boolean;
|
|
438
|
-
icon?: string;
|
|
439
|
-
unit?: string;
|
|
440
|
-
constructor({ type, description, continuous, ordinal, aggOptions, aggregable, isNumber, icon, unit, }: ColumnTypeParams);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
declare class Column {
|
|
444
|
-
type: ColumnTypes;
|
|
445
|
-
isNumberType: boolean;
|
|
446
|
-
isStringType: boolean;
|
|
447
|
-
isDateType: boolean;
|
|
448
|
-
drilldownGroupby: any;
|
|
449
|
-
getTooltip: Function;
|
|
450
|
-
constructor(options: Column$1);
|
|
451
|
-
}
|
|
452
|
-
interface Column extends Column$1 {
|
|
453
|
-
}
|
|
454
|
-
|
|
455
448
|
declare const COLUMN_TYPES: {
|
|
456
449
|
DOLLAR_AMT: ColumnType;
|
|
457
450
|
QUANTITY: ColumnType;
|
|
@@ -464,6 +457,163 @@ declare const COLUMN_TYPES: {
|
|
|
464
457
|
|
|
465
458
|
declare const DEFAULT_SOURCE = "widgets";
|
|
466
459
|
|
|
460
|
+
interface RawColumn {
|
|
461
|
+
type: ColumnTypes;
|
|
462
|
+
precision?: string;
|
|
463
|
+
dow_style?: string;
|
|
464
|
+
groupable?: boolean;
|
|
465
|
+
name?: string;
|
|
466
|
+
display_name?: string;
|
|
467
|
+
is_visible?: boolean;
|
|
468
|
+
multi_series?: boolean;
|
|
469
|
+
}
|
|
470
|
+
interface Column extends RawColumn {
|
|
471
|
+
aggType?: string;
|
|
472
|
+
title?: string;
|
|
473
|
+
origColumn?: Column;
|
|
474
|
+
origPivotColumn?: Column;
|
|
475
|
+
origValues?: any;
|
|
476
|
+
headerFilter?: boolean;
|
|
477
|
+
frozen?: boolean;
|
|
478
|
+
visible?: boolean;
|
|
479
|
+
field?: string;
|
|
480
|
+
index?: number;
|
|
481
|
+
cssClass?: string;
|
|
482
|
+
pivot?: boolean;
|
|
483
|
+
formatter?: Function;
|
|
484
|
+
drilldownGroupby?: any;
|
|
485
|
+
}
|
|
486
|
+
interface FilterLock {
|
|
487
|
+
filter_type: string;
|
|
488
|
+
key: string;
|
|
489
|
+
value: string;
|
|
490
|
+
show_message: string;
|
|
491
|
+
}
|
|
492
|
+
interface FrontendReq {
|
|
493
|
+
session_locked_conditions: Object;
|
|
494
|
+
page_size: number;
|
|
495
|
+
debug: false;
|
|
496
|
+
disambiguation: any[];
|
|
497
|
+
chart_images: string;
|
|
498
|
+
orders: any[];
|
|
499
|
+
filters: any[];
|
|
500
|
+
translation: string;
|
|
501
|
+
text: string;
|
|
502
|
+
date_format: string;
|
|
503
|
+
scope: string;
|
|
504
|
+
source: string;
|
|
505
|
+
test: boolean;
|
|
506
|
+
session_filter_locks: any[];
|
|
507
|
+
v2_dates: number;
|
|
508
|
+
persistent_filter_locks: FilterLock[];
|
|
509
|
+
columns?: Column[];
|
|
510
|
+
}
|
|
511
|
+
type Rows = Array<Array<string | number>>;
|
|
512
|
+
type ParsedInterpretationChunk = {
|
|
513
|
+
eng: string;
|
|
514
|
+
c_type?: string;
|
|
515
|
+
for?: string;
|
|
516
|
+
dateArray?: string[];
|
|
517
|
+
operator?: string;
|
|
518
|
+
type?: string;
|
|
519
|
+
};
|
|
520
|
+
type ParsedInterpretation = ParsedInterpretationChunk[];
|
|
521
|
+
interface QueryData {
|
|
522
|
+
session_locked_conditions: any[];
|
|
523
|
+
count_rows: number;
|
|
524
|
+
fe_req: FrontendReq;
|
|
525
|
+
query_id: string;
|
|
526
|
+
row_limit: number;
|
|
527
|
+
rows: Rows;
|
|
528
|
+
chart_images: null;
|
|
529
|
+
display_type: string;
|
|
530
|
+
columns: RawColumn[];
|
|
531
|
+
interpretation: string;
|
|
532
|
+
text: string;
|
|
533
|
+
parsed_interpretation: ParsedInterpretation;
|
|
534
|
+
persistent_locked_conditions: any[];
|
|
535
|
+
condition_filter: any[];
|
|
536
|
+
sql: any[];
|
|
537
|
+
}
|
|
538
|
+
interface QueryResponse {
|
|
539
|
+
data: QueryData;
|
|
540
|
+
message: string;
|
|
541
|
+
reference_id: string;
|
|
542
|
+
}
|
|
543
|
+
interface AxiosResponse {
|
|
544
|
+
data: QueryResponse;
|
|
545
|
+
}
|
|
546
|
+
interface TransformedAxiosResponse {
|
|
547
|
+
data: TransformedQueryResponse;
|
|
548
|
+
}
|
|
549
|
+
interface TransformedQueryResponse extends QueryResponse {
|
|
550
|
+
originalQueryID?: string;
|
|
551
|
+
queryFn?: Function;
|
|
552
|
+
}
|
|
553
|
+
interface DataFormatting {
|
|
554
|
+
currencyCode: string;
|
|
555
|
+
languageCode: string;
|
|
556
|
+
currencyDecimals: number;
|
|
557
|
+
quantityDecimals: number;
|
|
558
|
+
ratioDecimals: number;
|
|
559
|
+
comparisonDisplay: string;
|
|
560
|
+
monthYearFormat: string;
|
|
561
|
+
dayMonthYearFormat: string;
|
|
562
|
+
}
|
|
563
|
+
interface Scale {
|
|
564
|
+
}
|
|
565
|
+
interface ValueLabel {
|
|
566
|
+
keyword: string;
|
|
567
|
+
show_message: string;
|
|
568
|
+
canonical: string;
|
|
569
|
+
}
|
|
570
|
+
interface DataExplorerSuggestion {
|
|
571
|
+
name: string;
|
|
572
|
+
alias_name: string;
|
|
573
|
+
canonical: string;
|
|
574
|
+
}
|
|
575
|
+
type AggTypeParams = {
|
|
576
|
+
type: string;
|
|
577
|
+
displayName?: string;
|
|
578
|
+
tooltip?: string;
|
|
579
|
+
unit?: string;
|
|
580
|
+
supportsStrings?: boolean;
|
|
581
|
+
symbol?: string;
|
|
582
|
+
fn?: Function;
|
|
583
|
+
};
|
|
584
|
+
interface SubjectSuggestion {
|
|
585
|
+
name: string;
|
|
586
|
+
display_name: string;
|
|
587
|
+
query: string;
|
|
588
|
+
}
|
|
589
|
+
interface ValueLabelSuggestion {
|
|
590
|
+
canonical: string;
|
|
591
|
+
keyword: string;
|
|
592
|
+
show_message: string;
|
|
593
|
+
format_txt: string;
|
|
594
|
+
}
|
|
595
|
+
interface DataExplorerSubjectInterface {
|
|
596
|
+
type: DataExplorerTypes;
|
|
597
|
+
id: string;
|
|
598
|
+
original_obj: SubjectSuggestion | ValueLabelSuggestion;
|
|
599
|
+
}
|
|
600
|
+
type tableFilterParams = {
|
|
601
|
+
name: string;
|
|
602
|
+
columnName: string;
|
|
603
|
+
value: string | number;
|
|
604
|
+
operator: string;
|
|
605
|
+
displayValue?: string;
|
|
606
|
+
};
|
|
607
|
+
type TableConfig = {
|
|
608
|
+
stringColumnIndex: number;
|
|
609
|
+
numberColumnIndex: number;
|
|
610
|
+
numberColumnIndex2: number;
|
|
611
|
+
legendColumnIndex: number;
|
|
612
|
+
stringColumnIndices: number[];
|
|
613
|
+
numberColumnIndices: number[];
|
|
614
|
+
numberColumnIndices2: number[];
|
|
615
|
+
};
|
|
616
|
+
|
|
467
617
|
declare const authenticationDefault: {
|
|
468
618
|
token: any;
|
|
469
619
|
apiKey: any;
|
|
@@ -607,14 +757,14 @@ declare const getBBoxFromRef: (ref: any) => any;
|
|
|
607
757
|
|
|
608
758
|
interface getSupportedDisplayTypesParams {
|
|
609
759
|
response?: AxiosResponse;
|
|
610
|
-
columns?: Column
|
|
760
|
+
columns?: Column[];
|
|
611
761
|
dataLength?: number;
|
|
612
762
|
pivotDataLength?: number;
|
|
613
763
|
isDataLimited?: boolean;
|
|
614
764
|
}
|
|
615
765
|
declare const isChartType: (type: any) => boolean;
|
|
616
766
|
declare const isTableType: (type: any) => boolean;
|
|
617
|
-
declare const isDisplayTypeValid: (response: AxiosResponse, displayType: string, dataLength: number, pivotDataLength: number, columns: Column
|
|
767
|
+
declare const isDisplayTypeValid: (response: AxiosResponse, displayType: string, dataLength: number, pivotDataLength: number, columns: Column[], isDataLimited: boolean) => boolean;
|
|
618
768
|
declare const shouldPlotMultiSeries: (columns: any) => boolean;
|
|
619
769
|
declare const supportsPieChart: (columns: any, chartData: any) => boolean;
|
|
620
770
|
declare const getPotentialDisplayTypes: (response: AxiosResponse) => string[];
|
|
@@ -627,7 +777,7 @@ declare const isSingleValueResponse: (response: any) => boolean;
|
|
|
627
777
|
declare const getUniqueYearsForColumn: (data: any, columns: any, index: any) => any;
|
|
628
778
|
declare const getSupportedDisplayTypes: ({ response, columns, dataLength, pivotDataLength, isDataLimited, }?: getSupportedDisplayTypesParams) => string[];
|
|
629
779
|
declare const getFirstChartDisplayType: (supportedDisplayTypes: any, fallback: any) => any;
|
|
630
|
-
declare const getDefaultDisplayType: (response?: AxiosResponse, defaultToChart?: boolean, columns?: Column
|
|
780
|
+
declare const getDefaultDisplayType: (response?: AxiosResponse, defaultToChart?: boolean, columns?: Column[], dataLength?: number, pivotDataLength?: number, preferredDisplayType?: string, isDataLimited?: boolean) => string;
|
|
631
781
|
declare const hasData: (response: any) => any;
|
|
632
782
|
declare const hasMoreData: (response: any, currentNumRows: any) => boolean;
|
|
633
783
|
declare const isDataLimited: (queryResponse: any, rows?: any) => boolean;
|
|
@@ -639,7 +789,7 @@ declare const getDateRangeIntersection: (aRange: any, bRange: any) => {
|
|
|
639
789
|
endDate: any;
|
|
640
790
|
};
|
|
641
791
|
declare const getColumnNameForDateRange: (chunkEng: any) => any;
|
|
642
|
-
declare const getFilterPrecision: (col: Column
|
|
792
|
+
declare const getFilterPrecision: (col: Column) => PrecisionTypes.DAY | PrecisionTypes.MONTH | PrecisionTypes.YEAR;
|
|
643
793
|
declare const getPrecisionForDayJS: (colPrecision: any) => "month" | "minute" | "hour" | "day" | "year" | "quarter" | "week";
|
|
644
794
|
declare const getStartAndEndDateFromDateStrs: (dateRangeStrs: any) => {
|
|
645
795
|
startDate: Date;
|
|
@@ -651,21 +801,21 @@ declare const getEpochFromDate: (date: any, precision?: any, precisionFrame?: an
|
|
|
651
801
|
declare const getDayjsObjForStringType: (value: any, col: any) => dayjs.Dayjs;
|
|
652
802
|
declare const getDayJSObj: ({ value, column }: {
|
|
653
803
|
value: number | string;
|
|
654
|
-
column: Column
|
|
804
|
+
column: Column;
|
|
655
805
|
}) => dayjs.Dayjs;
|
|
656
806
|
|
|
657
807
|
declare const formatStringDateWithPrecision: (value: any, col: any) => any;
|
|
658
808
|
declare const formatStringDate: (value: any, config?: DataFormatting) => any;
|
|
659
|
-
declare const formatDateType: (element: any, column: Column
|
|
660
|
-
declare const formatDateStringType: (element: any, column: Column
|
|
661
|
-
declare const formatISODateWithPrecision: (value: any, col: Column
|
|
662
|
-
declare const formatEpochDate: (value: any, col: Column
|
|
663
|
-
declare const dateStringSortFn: (a: any, b: any, col: Column
|
|
664
|
-
declare const dateSortFn: (a: any, b: any, col: Column
|
|
809
|
+
declare const formatDateType: (element: any, column: Column, config?: DataFormatting) => any;
|
|
810
|
+
declare const formatDateStringType: (element: any, column: Column, config?: DataFormatting) => any;
|
|
811
|
+
declare const formatISODateWithPrecision: (value: any, col: Column, config?: DataFormatting) => any;
|
|
812
|
+
declare const formatEpochDate: (value: any, col: Column, config?: DataFormatting) => any;
|
|
813
|
+
declare const dateStringSortFn: (a: any, b: any, col: Column) => number;
|
|
814
|
+
declare const dateSortFn: (a: any, b: any, col: Column, isTable: any) => number;
|
|
665
815
|
declare const sortDataByDate: (data: any, tableColumns: any, sortDirection: string, isTable: any) => any;
|
|
666
816
|
interface formatElementParams {
|
|
667
817
|
element: string | number;
|
|
668
|
-
column: Column
|
|
818
|
+
column: Column;
|
|
669
819
|
config?: DataFormatting;
|
|
670
820
|
htmlElement?: HTMLElement;
|
|
671
821
|
isChart?: boolean;
|
|
@@ -680,7 +830,7 @@ declare const countDecimals: (number: any) => any;
|
|
|
680
830
|
declare const formatChartLabel: ({ d, scale, column, dataFormatting, maxLabelWidth, sigDigits, }: {
|
|
681
831
|
d: number | string;
|
|
682
832
|
scale?: any;
|
|
683
|
-
column?: Column
|
|
833
|
+
column?: Column;
|
|
684
834
|
dataFormatting?: DataFormatting;
|
|
685
835
|
maxLabelWidth?: number;
|
|
686
836
|
sigDigits?: number;
|
|
@@ -736,10 +886,10 @@ declare const isColumnDateType: (col: any) => boolean;
|
|
|
736
886
|
declare const hasNumberColumn: (columns: any) => boolean;
|
|
737
887
|
declare const hasStringColumn: (columns: any) => boolean;
|
|
738
888
|
declare const hasDateColumn: (columns: any) => boolean;
|
|
739
|
-
declare const getVisibleColumns: (columns: any) => Column
|
|
740
|
-
declare const getHiddenColumns: (columns: Column
|
|
741
|
-
declare const areSomeColumnsHidden: (columns: Column
|
|
742
|
-
declare const areAllColumnsHidden: (columns: Column
|
|
889
|
+
declare const getVisibleColumns: (columns: any) => Column[];
|
|
890
|
+
declare const getHiddenColumns: (columns: Column[]) => Column[];
|
|
891
|
+
declare const areSomeColumnsHidden: (columns: Column[]) => boolean;
|
|
892
|
+
declare const areAllColumnsHidden: (columns: Column[]) => boolean;
|
|
743
893
|
declare const getGroupableColumns: (columns: any) => any;
|
|
744
894
|
declare const getGroupBys: (row: any, columns: any) => {
|
|
745
895
|
groupBys: any;
|
|
@@ -765,7 +915,7 @@ declare const getDateColumnIndex: (columns: any) => any;
|
|
|
765
915
|
declare const getNumberOfGroupables: (columns: any) => number;
|
|
766
916
|
declare const isListQuery: (columns: any) => boolean;
|
|
767
917
|
declare const setFilterFunction: ({ column, dataFormatting }: {
|
|
768
|
-
column: Column
|
|
918
|
+
column: Column;
|
|
769
919
|
dataFormatting: DataFormatting;
|
|
770
920
|
}) => (headerValue: any, rowValue: any) => boolean;
|
|
771
921
|
declare const setSorterFunction: (col: any) => ((a: any, b: any) => number) | "alphanum";
|
|
@@ -773,13 +923,13 @@ declare const setHeaderFilterPlaceholder: (col: any) => "Pick range" | "Filter";
|
|
|
773
923
|
declare const getAggConfig: (columns: any) => {};
|
|
774
924
|
declare const getDrilldownGroupby: (queryResponse: any, newCol: any) => any;
|
|
775
925
|
declare const formatQueryColumns: ({ columns, aggConfig, queryResponse, onTableHeaderClick, enableTableSorting, dataFormatting, }: {
|
|
776
|
-
columns: Column
|
|
926
|
+
columns: Column[];
|
|
777
927
|
aggConfig?: Object;
|
|
778
928
|
queryResponse?: AxiosResponse;
|
|
779
929
|
onTableHeaderClick?: Function;
|
|
780
930
|
enableTableSorting?: boolean;
|
|
781
931
|
dataFormatting?: DataFormatting;
|
|
782
|
-
}) => Column
|
|
932
|
+
}) => Column[] | undefined;
|
|
783
933
|
declare const getStringColumnIndices: (columns: any, supportsPivot?: boolean) => {
|
|
784
934
|
stringColumnIndices: any;
|
|
785
935
|
stringColumnIndex: any;
|
|
@@ -815,7 +965,7 @@ declare const getPivotColumnIndexConfig: ({ pivotTableColumns, columnIndexConfig
|
|
|
815
965
|
}) => any;
|
|
816
966
|
declare const getColumnIndexConfig: ({ response, columns, currentTableConfig, }?: {
|
|
817
967
|
response?: AxiosResponse;
|
|
818
|
-
columns?: Column
|
|
968
|
+
columns?: Column[];
|
|
819
969
|
currentTableConfig?: TableConfig;
|
|
820
970
|
}) => any;
|
|
821
971
|
declare const isColumnIndexConfigValid: ({ response, columnIndexConfig, columns, displayType }: {
|
|
@@ -844,7 +994,7 @@ declare const aggregateData: ({ data, aggColIndex, columns, numberIndices, dataF
|
|
|
844
994
|
}) => any;
|
|
845
995
|
type CreatePivotDataParams = {
|
|
846
996
|
rows?: (string | number)[][];
|
|
847
|
-
columns?: Column
|
|
997
|
+
columns?: Column[];
|
|
848
998
|
tableConfig?: TableConfig;
|
|
849
999
|
dataFormatting?: DataFormatting;
|
|
850
1000
|
isFirstGeneration?: boolean;
|
|
@@ -866,18 +1016,20 @@ declare const generateFilterDrilldownResponse: ({ response, rows, index, value }
|
|
|
866
1016
|
index: any;
|
|
867
1017
|
value: any;
|
|
868
1018
|
}) => any;
|
|
1019
|
+
declare const uuidv4: () => string;
|
|
1020
|
+
declare const parseJwt: (token: any) => any;
|
|
869
1021
|
|
|
870
|
-
declare const formatTableParams: (params: any, columns: Column
|
|
1022
|
+
declare const formatTableParams: (params: any, columns: Column[]) => {
|
|
871
1023
|
sorters: any;
|
|
872
1024
|
filters: tableFilterParams[];
|
|
873
1025
|
page: any;
|
|
874
1026
|
};
|
|
875
|
-
declare const formatSortersForAPI: (params: any, columns: Column
|
|
1027
|
+
declare const formatSortersForAPI: (params: any, columns: Column[]) => any;
|
|
876
1028
|
declare const formatNumberFilterValue: (headerValue?: string) => {
|
|
877
1029
|
value: string;
|
|
878
1030
|
operator: string;
|
|
879
1031
|
};
|
|
880
|
-
declare const formatFiltersForAPI: (params: any, columns: Column
|
|
1032
|
+
declare const formatFiltersForAPI: (params: any, columns: Column[]) => tableFilterParams[];
|
|
881
1033
|
declare const onTableCellClick: ({ cell, columns, tableConfig, pivotData }: {
|
|
882
1034
|
cell: any;
|
|
883
1035
|
columns: any;
|
|
@@ -977,7 +1129,7 @@ declare const adjustMinAndMaxForScaleRatio: (minValue: number, maxValue: number,
|
|
|
977
1129
|
newMinValue: number;
|
|
978
1130
|
newMaxValue: number;
|
|
979
1131
|
};
|
|
980
|
-
declare const getMinAndMaxValues: (data: any, numberColumnIndices: any, isScaled: any, sum: any, stringColumnIndex: any) => {
|
|
1132
|
+
declare const getMinAndMaxValues: (data: any, numberColumnIndices: any, isScaled: any, sum: any, stringColumnIndex: any, adjustRange?: boolean) => {
|
|
981
1133
|
minValue: number;
|
|
982
1134
|
maxValue: number;
|
|
983
1135
|
};
|
|
@@ -989,7 +1141,7 @@ declare const getRangeForAxis: ({ axis, height, width }: {
|
|
|
989
1141
|
}) => any[];
|
|
990
1142
|
declare const getTimeScale: ({ data, columns, columnIndex, axis, domain, dataFormatting, outerPadding, innerPadding, height, width, stringColumnIndex, stringColumnIndices, enableAxisDropdown, changeStringColumnIndices, }: {
|
|
991
1143
|
data: Rows;
|
|
992
|
-
columns: Column
|
|
1144
|
+
columns: Column[];
|
|
993
1145
|
columnIndex: number;
|
|
994
1146
|
axis: string;
|
|
995
1147
|
domain: number[];
|
|
@@ -1005,8 +1157,8 @@ declare const getTimeScale: ({ data, columns, columnIndex, axis, domain, dataFor
|
|
|
1005
1157
|
}) => any;
|
|
1006
1158
|
declare const getBandScale: ({ data, column, columns, columnIndex, axis, domain, dataFormatting, outerPadding, innerPadding, height, width, stringColumnIndex, stringColumnIndices, enableAxisDropdown, changeStringColumnIndices, }: {
|
|
1007
1159
|
data: Rows;
|
|
1008
|
-
column?: Column
|
|
1009
|
-
columns: Column
|
|
1160
|
+
column?: Column;
|
|
1161
|
+
columns: Column[];
|
|
1010
1162
|
columnIndex: number;
|
|
1011
1163
|
axis: string;
|
|
1012
1164
|
domain: number[];
|
|
@@ -1033,16 +1185,16 @@ declare const getColorScales: ({ numberColumnIndices, numberColumnIndices2, CSS_
|
|
|
1033
1185
|
};
|
|
1034
1186
|
declare const getUnitsForColumn: (column: any, useAgg?: boolean) => any;
|
|
1035
1187
|
declare const getUnitSymbol: ({ column, dataFormatting, }: {
|
|
1036
|
-
column: Column
|
|
1188
|
+
column: Column;
|
|
1037
1189
|
dataFormatting: DataFormatting;
|
|
1038
1190
|
}) => string;
|
|
1039
1191
|
declare const getLinearAxisTitle: ({ numberColumns, aggregated, }: {
|
|
1040
|
-
numberColumns: Column
|
|
1192
|
+
numberColumns: Column[];
|
|
1041
1193
|
aggregated: boolean;
|
|
1042
1194
|
}) => string;
|
|
1043
1195
|
declare const getNumberAxisUnits: (numberColumns: any) => any;
|
|
1044
1196
|
declare const getBinLinearScale: ({ columns, columnIndex, axis, buckets, bins, enableAxisDropdown, innerHeight, innerWidth, height, width, dataFormatting, changeNumberColumnIndices, }: {
|
|
1045
|
-
columns: Column
|
|
1197
|
+
columns: Column[];
|
|
1046
1198
|
columnIndex: number;
|
|
1047
1199
|
axis: string;
|
|
1048
1200
|
buckets: any[];
|
|
@@ -1066,7 +1218,7 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
|
|
|
1066
1218
|
numTicks: number;
|
|
1067
1219
|
stacked: boolean;
|
|
1068
1220
|
isScaled: boolean;
|
|
1069
|
-
columns: Column
|
|
1221
|
+
columns: Column[];
|
|
1070
1222
|
units: string;
|
|
1071
1223
|
title: string;
|
|
1072
1224
|
columnIndex: number;
|
|
@@ -1081,9 +1233,9 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
|
|
|
1081
1233
|
width: number;
|
|
1082
1234
|
aggregated: boolean;
|
|
1083
1235
|
}) => any;
|
|
1084
|
-
declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeColumnIndices, changeAggConfig, enableAxisDropdown, height, width, aggregated, colorScale, }: {
|
|
1236
|
+
declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeColumnIndices, changeAggConfig, enableAxisDropdown, height, width, aggregated, colorScale, adjustRange, }: {
|
|
1085
1237
|
axis: string;
|
|
1086
|
-
columns: Column
|
|
1238
|
+
columns: Column[];
|
|
1087
1239
|
columnIndex: number;
|
|
1088
1240
|
columnIndices: number[];
|
|
1089
1241
|
height: number;
|
|
@@ -1108,6 +1260,7 @@ declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickVa
|
|
|
1108
1260
|
domain?: number[];
|
|
1109
1261
|
title?: string;
|
|
1110
1262
|
colorScale?: any;
|
|
1263
|
+
adjustRange?: boolean;
|
|
1111
1264
|
}) => any;
|
|
1112
1265
|
declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, stacked, isScaled, columns, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeAggConfig, enableAxisDropdown, stringColumnIndex, height, width, aggregated, colorScales, }: {
|
|
1113
1266
|
data: Rows;
|
|
@@ -1116,7 +1269,7 @@ declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, st
|
|
|
1116
1269
|
axis: string;
|
|
1117
1270
|
stacked: boolean;
|
|
1118
1271
|
isScaled: boolean;
|
|
1119
|
-
columns: Column
|
|
1272
|
+
columns: Column[];
|
|
1120
1273
|
hasDropdown: boolean;
|
|
1121
1274
|
allowMultipleSeries: boolean;
|
|
1122
1275
|
disableAutoScale: boolean;
|
|
@@ -1578,6 +1731,8 @@ declare const GENERAL_HTML_ERROR = "Internal Service Error: Our system is experi
|
|
|
1578
1731
|
declare const UNAUTHENTICATED_ERROR = "Uh oh.. It looks like you don't have access to this resource. Please double check that all required authentication fields are correct.";
|
|
1579
1732
|
declare const REQUEST_CANCELLED_ERROR = "Request cancelled";
|
|
1580
1733
|
|
|
1734
|
+
declare const getSampleQueryRegex: (suggestionValues: any) => RegExp;
|
|
1735
|
+
declare const getSampleQueryText: (query: any, values: any) => any;
|
|
1581
1736
|
declare const fetchDataExplorerAutocomplete: ({ suggestion, domain, token, apiKey, cancelToken, }?: {
|
|
1582
1737
|
suggestion?: string;
|
|
1583
1738
|
domain?: string;
|
|
@@ -1585,6 +1740,19 @@ declare const fetchDataExplorerAutocomplete: ({ suggestion, domain, token, apiKe
|
|
|
1585
1740
|
token?: string;
|
|
1586
1741
|
cancelToken?: any;
|
|
1587
1742
|
}) => Promise<any[]>;
|
|
1743
|
+
declare const fetchDataExplorerSuggestionsV2: ({ pageSize, pageNumber, domain, apiKey, token, text, context, selectedVL, userVLSelection, skipQueryValidation, columns, }?: {
|
|
1744
|
+
pageSize?: number;
|
|
1745
|
+
pageNumber?: number;
|
|
1746
|
+
domain?: string;
|
|
1747
|
+
apiKey?: string;
|
|
1748
|
+
token?: string;
|
|
1749
|
+
text?: string;
|
|
1750
|
+
context?: string;
|
|
1751
|
+
selectedVL?: ValueLabel;
|
|
1752
|
+
userVLSelection?: ValueLabel[];
|
|
1753
|
+
skipQueryValidation?: boolean;
|
|
1754
|
+
columns?: string[];
|
|
1755
|
+
}) => Promise<unknown>;
|
|
1588
1756
|
declare const fetchDataExplorerSuggestions: ({ pageSize, pageNumber, domain, apiKey, token, text, context, selectedVL, userVLSelection, skipQueryValidation, }?: {
|
|
1589
1757
|
pageSize?: number;
|
|
1590
1758
|
pageNumber?: number;
|
|
@@ -1597,6 +1765,20 @@ declare const fetchDataExplorerSuggestions: ({ pageSize, pageNumber, domain, api
|
|
|
1597
1765
|
userVLSelection?: ValueLabel[];
|
|
1598
1766
|
skipQueryValidation?: boolean;
|
|
1599
1767
|
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
1768
|
+
declare const fetchSubjectList: ({ domain, apiKey, token }: {
|
|
1769
|
+
domain: any;
|
|
1770
|
+
apiKey: any;
|
|
1771
|
+
token: any;
|
|
1772
|
+
}) => Promise<any[]>;
|
|
1773
|
+
declare const fetchDataPreview: ({ subject, domain, apiKey, token, source, numRows, cancelToken, }?: {
|
|
1774
|
+
subject?: string;
|
|
1775
|
+
domain?: string;
|
|
1776
|
+
apiKey?: string;
|
|
1777
|
+
token?: string;
|
|
1778
|
+
source?: string;
|
|
1779
|
+
numRows?: number;
|
|
1780
|
+
cancelToken?: any;
|
|
1781
|
+
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
1600
1782
|
|
|
1601
1783
|
declare const fetchNotificationData: ({ id, domain, apiKey, token }: {
|
|
1602
1784
|
id: any;
|
|
@@ -1887,20 +2069,6 @@ declare const reportProblem: ({ message, queryId, domain, apiKey, token, }?: {
|
|
|
1887
2069
|
apiKey?: string;
|
|
1888
2070
|
token?: string;
|
|
1889
2071
|
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
1890
|
-
declare const fetchSubjectList: ({ domain, apiKey, token }: {
|
|
1891
|
-
domain: any;
|
|
1892
|
-
apiKey: any;
|
|
1893
|
-
token: any;
|
|
1894
|
-
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
1895
|
-
declare const fetchDataPreview: ({ subject, domain, apiKey, token, source, numRows, cancelToken, }?: {
|
|
1896
|
-
subject?: string;
|
|
1897
|
-
domain?: string;
|
|
1898
|
-
apiKey?: string;
|
|
1899
|
-
token?: string;
|
|
1900
|
-
source?: string;
|
|
1901
|
-
numRows?: number;
|
|
1902
|
-
cancelToken?: any;
|
|
1903
|
-
}) => Promise<axios.AxiosResponse<any, any>>;
|
|
1904
2072
|
|
|
1905
2073
|
declare const getQueryFn: (response: TransformedAxiosResponse | undefined) => ({ authentication, autoQLConfig, originalQueryID, formattedTableParams, clickedFilter, ...args }: {
|
|
1906
2074
|
[x: string]: any;
|
|
@@ -1911,7 +2079,7 @@ declare const getQueryFn: (response: TransformedAxiosResponse | undefined) => ({
|
|
|
1911
2079
|
clickedFilter: any;
|
|
1912
2080
|
}) => any;
|
|
1913
2081
|
declare const transformQueryResponse: (response: AxiosResponse | undefined, originalQueryID?: string) => TransformedAxiosResponse;
|
|
1914
|
-
declare const transformQueryResponseColumns: (response: AxiosResponse) => Column
|
|
2082
|
+
declare const transformQueryResponseColumns: (response: AxiosResponse) => Column[];
|
|
1915
2083
|
|
|
1916
2084
|
declare enum ThemeType {
|
|
1917
2085
|
LIGHT = "light",
|
|
@@ -1923,6 +2091,7 @@ type Theme = {
|
|
|
1923
2091
|
accentColor?: string;
|
|
1924
2092
|
fontFamily?: string;
|
|
1925
2093
|
textColor?: string;
|
|
2094
|
+
textColorSecondary?: string;
|
|
1926
2095
|
accentTextColor?: string;
|
|
1927
2096
|
dashboardTitleColor?: string;
|
|
1928
2097
|
backgroundColorPrimary?: string;
|
|
@@ -1935,7 +2104,7 @@ type chartColorVarsResponse = {
|
|
|
1935
2104
|
chartColorsDark: string[];
|
|
1936
2105
|
};
|
|
1937
2106
|
declare const getChartColorVars: (prefix: any) => chartColorVarsResponse;
|
|
1938
|
-
declare const configureTheme: (customThemeConfig?: Theme) => void;
|
|
2107
|
+
declare const configureTheme: (customThemeConfig?: Theme, prefix?: string) => void;
|
|
1939
2108
|
|
|
1940
2109
|
declare function color(): {
|
|
1941
2110
|
(svg: any): void;
|
|
@@ -1968,4 +2137,4 @@ declare function color(): {
|
|
|
1968
2137
|
on(): any;
|
|
1969
2138
|
};
|
|
1970
2139
|
|
|
1971
|
-
export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column
|
|
2140
|
+
export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column, Column$1 as ColumnObj, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MAX_ROWS_FOR_PIE_CHART, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QueryData, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, bezierCommand, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSuggestions, fetchDataExplorerSuggestionsV2, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSuggestions, fetchTopics, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramColumnObj, getHistogramScale, getInitialBucketSize, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getOpacityScale, getPadding, getPieChartData, getPivotColumnIndexConfig, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getRadiusScale, getRangeForAxis, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, invertArray, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isListQuery, isNumber, isObject, isSingleValueResponse, isTableType, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, usePivotDataForChart, uuidv4, validateExpression };
|