autoql-fe-utils 1.0.2 → 1.0.4
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/README.md +2 -0
- package/dist/index.d.ts +903 -231
- package/dist/index.global.js +13219 -5257
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10037 -2780
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9750 -2594
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -4
- package/dist/index.d.mts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,201 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
+
import * as axios from 'axios';
|
|
3
|
+
|
|
4
|
+
declare const capitalizeFirstChar: (string: any) => any;
|
|
5
|
+
declare const isNumber: (str: any) => boolean;
|
|
6
|
+
|
|
7
|
+
declare enum PrecisionTypes {
|
|
8
|
+
DAY = "DAY",
|
|
9
|
+
MONTH = "MONTH",
|
|
10
|
+
YEAR = "YEAR",
|
|
11
|
+
WEEK = "WEEK",
|
|
12
|
+
QUARTER = "QUARTER",
|
|
13
|
+
DATE_HOUR = "DATE_HOUR",
|
|
14
|
+
DATE_MINUTE = "DATE_MINUTE",
|
|
15
|
+
HOUR = "HOUR",
|
|
16
|
+
MINUTE = "MINUTE"
|
|
17
|
+
}
|
|
18
|
+
declare enum AggTypes {
|
|
19
|
+
SUM = "SUM",
|
|
20
|
+
AVG = "AVG",
|
|
21
|
+
MIN = "MIN",
|
|
22
|
+
MAX = "MAX",
|
|
23
|
+
COUNT = "COUNT",
|
|
24
|
+
COUNT_DISTINCT = "COUNT_DISTINCT"
|
|
25
|
+
}
|
|
26
|
+
declare enum ColumnTypes {
|
|
27
|
+
DOLLAR_AMT = "DOLLAR_AMT",
|
|
28
|
+
QUANTITY = "QUANTITY",
|
|
29
|
+
RATIO = "RATIO",
|
|
30
|
+
PERCENT = "PERCENT",
|
|
31
|
+
STRING = "STRING",
|
|
32
|
+
DATE = "DATE",
|
|
33
|
+
DATE_STRING = "DATE_STRING"
|
|
34
|
+
}
|
|
35
|
+
declare enum DataExplorerTypes {
|
|
36
|
+
SUBJECT_TYPE = "subject",
|
|
37
|
+
VL_TYPE = "VL"
|
|
38
|
+
}
|
|
39
|
+
declare enum DisplayTypes {
|
|
40
|
+
TABLE = "table",
|
|
41
|
+
PIVOT_TABLE = "pivot_table",
|
|
42
|
+
BAR = "bar",
|
|
43
|
+
COLUMN = "column",
|
|
44
|
+
LINE = "line",
|
|
45
|
+
STACKED_COLUMN = "stacked_column",
|
|
46
|
+
STACKED_BAR = "stacked_bar",
|
|
47
|
+
STACKED_LINE = "stacked_line",
|
|
48
|
+
BUBBLE = "bubble",
|
|
49
|
+
HEATMAP = "heatmap",
|
|
50
|
+
PIE = "pie",
|
|
51
|
+
HISTOGRAM = "histogram",
|
|
52
|
+
SCATTERPLOT = "scatterplot",
|
|
53
|
+
COLUMN_LINE = "column_line"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface Column$1 {
|
|
57
|
+
type: ColumnTypes;
|
|
58
|
+
precision?: string;
|
|
59
|
+
dow_style?: string;
|
|
60
|
+
groupable?: boolean;
|
|
61
|
+
name?: string;
|
|
62
|
+
display_name?: string;
|
|
63
|
+
is_visible?: boolean;
|
|
64
|
+
multi_series?: boolean;
|
|
65
|
+
aggType?: string;
|
|
66
|
+
title?: string;
|
|
67
|
+
origColumn?: Column$1;
|
|
68
|
+
origPivotColumn?: Column$1;
|
|
69
|
+
origValues?: any;
|
|
70
|
+
headerFilter?: boolean;
|
|
71
|
+
frozen?: boolean;
|
|
72
|
+
visible?: boolean;
|
|
73
|
+
field?: string;
|
|
74
|
+
cssClass?: string;
|
|
75
|
+
pivot?: boolean;
|
|
76
|
+
formatter?: Function;
|
|
77
|
+
}
|
|
78
|
+
interface FilterLock {
|
|
79
|
+
filter_type: string;
|
|
80
|
+
key: string;
|
|
81
|
+
value: string;
|
|
82
|
+
show_message: string;
|
|
83
|
+
}
|
|
84
|
+
interface FrontendReq {
|
|
85
|
+
session_locked_conditions: Object;
|
|
86
|
+
page_size: number;
|
|
87
|
+
debug: false;
|
|
88
|
+
disambiguation: any[];
|
|
89
|
+
chart_images: string;
|
|
90
|
+
orders: any[];
|
|
91
|
+
filters: any[];
|
|
92
|
+
translation: string;
|
|
93
|
+
text: string;
|
|
94
|
+
date_format: string;
|
|
95
|
+
scope: string;
|
|
96
|
+
source: string;
|
|
97
|
+
test: boolean;
|
|
98
|
+
session_filter_locks: any[];
|
|
99
|
+
v2_dates: number;
|
|
100
|
+
persistent_filter_locks: FilterLock[];
|
|
101
|
+
columns?: Column$1[];
|
|
102
|
+
}
|
|
103
|
+
type Rows = Array<Array<string | number>>;
|
|
104
|
+
type ParsedInterpretationChunk = {
|
|
105
|
+
eng: string;
|
|
106
|
+
c_type?: string;
|
|
107
|
+
for?: string;
|
|
108
|
+
dateArray?: string[];
|
|
109
|
+
operator?: string;
|
|
110
|
+
type?: string;
|
|
111
|
+
};
|
|
112
|
+
type ParsedInterpretation = ParsedInterpretationChunk[];
|
|
113
|
+
interface QueryData {
|
|
114
|
+
session_locked_conditions: any[];
|
|
115
|
+
count_rows: number;
|
|
116
|
+
fe_req: FrontendReq;
|
|
117
|
+
query_id: string;
|
|
118
|
+
row_limit: number;
|
|
119
|
+
rows: Rows;
|
|
120
|
+
chart_images: null;
|
|
121
|
+
display_type: string;
|
|
122
|
+
columns: Column$1[];
|
|
123
|
+
interpretation: string;
|
|
124
|
+
text: string;
|
|
125
|
+
parsed_interpretation: ParsedInterpretation;
|
|
126
|
+
persistent_locked_conditions: any[];
|
|
127
|
+
condition_filter: any[];
|
|
128
|
+
sql: any[];
|
|
129
|
+
}
|
|
130
|
+
interface QueryResponse {
|
|
131
|
+
data: QueryData;
|
|
132
|
+
message: string;
|
|
133
|
+
reference_id: string;
|
|
134
|
+
}
|
|
135
|
+
interface AxiosResponse {
|
|
136
|
+
data: QueryResponse;
|
|
137
|
+
}
|
|
138
|
+
interface DataFormatting {
|
|
139
|
+
currencyCode: string;
|
|
140
|
+
languageCode: string;
|
|
141
|
+
currencyDecimals: number;
|
|
142
|
+
quantityDecimals: number;
|
|
143
|
+
ratioDecimals: number;
|
|
144
|
+
comparisonDisplay: string;
|
|
145
|
+
monthYearFormat: string;
|
|
146
|
+
dayMonthYearFormat: string;
|
|
147
|
+
}
|
|
148
|
+
interface Scale {
|
|
149
|
+
}
|
|
150
|
+
interface ValueLabel {
|
|
151
|
+
keyword: string;
|
|
152
|
+
show_message: string;
|
|
153
|
+
canonical: string;
|
|
154
|
+
}
|
|
155
|
+
interface DataExplorerSuggestion {
|
|
156
|
+
name: string;
|
|
157
|
+
alias_name: string;
|
|
158
|
+
canonical: string;
|
|
159
|
+
}
|
|
160
|
+
type AggTypeParams = {
|
|
161
|
+
type: string;
|
|
162
|
+
displayName?: string;
|
|
163
|
+
tooltip?: string;
|
|
164
|
+
unit?: string;
|
|
165
|
+
supportsStrings?: boolean;
|
|
166
|
+
symbol?: string;
|
|
167
|
+
fn?: Function;
|
|
168
|
+
};
|
|
169
|
+
declare class AggType {
|
|
170
|
+
type: string;
|
|
171
|
+
displayName?: string;
|
|
172
|
+
tooltip?: string;
|
|
173
|
+
unit?: string;
|
|
174
|
+
supportsStrings?: boolean;
|
|
175
|
+
symbol?: string;
|
|
176
|
+
fn?: Function;
|
|
177
|
+
constructor({ type, displayName, tooltip, unit, supportsStrings, symbol, fn }: AggTypeParams);
|
|
178
|
+
}
|
|
179
|
+
type tableFilterParams = {
|
|
180
|
+
name: string;
|
|
181
|
+
columnName: string;
|
|
182
|
+
value: string | number;
|
|
183
|
+
operator: string;
|
|
184
|
+
displayValue?: string;
|
|
185
|
+
};
|
|
186
|
+
type TableConfig = {
|
|
187
|
+
stringColumnIndex: number;
|
|
188
|
+
numberColumnIndex: number;
|
|
189
|
+
numberColumnIndex2: number;
|
|
190
|
+
legendColumnIndex: number;
|
|
191
|
+
stringColumnIndices: number[];
|
|
192
|
+
numberColumnIndices: number[];
|
|
193
|
+
numberColumnIndices2: number[];
|
|
194
|
+
};
|
|
2
195
|
|
|
3
196
|
declare const TABLE_TYPES: string[];
|
|
4
197
|
declare const CHART_TYPES: string[];
|
|
198
|
+
declare const CHARTS_WITHOUT_AGGREGATED_DATA: string[];
|
|
5
199
|
declare const DATE_ONLY_CHART_TYPES: string[];
|
|
6
200
|
declare const DOUBLE_AXIS_CHART_TYPES: string[];
|
|
7
201
|
declare const MONTH_NAMES: string[];
|
|
@@ -18,15 +212,25 @@ declare const DAYJS_PRECISION_FORMATS: {
|
|
|
18
212
|
DATE_HOUR: string;
|
|
19
213
|
DATE_MINUTE: string;
|
|
20
214
|
};
|
|
21
|
-
declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
215
|
+
declare const PRECISION_TYPES: {
|
|
216
|
+
DAY: string;
|
|
217
|
+
MONTH: string;
|
|
218
|
+
YEAR: string;
|
|
219
|
+
WEEK: string;
|
|
220
|
+
QUARTER: string;
|
|
221
|
+
DATE_HOUR: string;
|
|
222
|
+
DATE_MINUTE: string;
|
|
223
|
+
HOUR: string;
|
|
224
|
+
MINUTE: string;
|
|
225
|
+
};
|
|
28
226
|
declare const MAX_LEGEND_LABELS = 22;
|
|
29
227
|
declare const MIN_HISTOGRAM_SAMPLE = 20;
|
|
228
|
+
declare const DEFAULT_AGG_TYPE = AggTypes.SUM;
|
|
229
|
+
declare const AGG_TYPES: {
|
|
230
|
+
SUM: AggType;
|
|
231
|
+
AVG: AggType;
|
|
232
|
+
COUNT: AggType;
|
|
233
|
+
};
|
|
30
234
|
|
|
31
235
|
declare const CUSTOM_TYPE = "CUSTOM";
|
|
32
236
|
declare const PROJECT_TYPE = "PROJECT";
|
|
@@ -196,117 +400,52 @@ declare const EVALUATION_FREQUENCY_OPTIONS: {
|
|
|
196
400
|
};
|
|
197
401
|
};
|
|
198
402
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
declare enum TimestampFormats {
|
|
202
|
-
epoch = "EPOCH",
|
|
203
|
-
iso8601 = "ISO8601"
|
|
204
|
-
}
|
|
205
|
-
declare enum PrecisionTypes {
|
|
206
|
-
DAY = "DAY",
|
|
207
|
-
MONTH = "MONTH",
|
|
208
|
-
YEAR = "YEAR",
|
|
209
|
-
WEEK = "WEEK",
|
|
210
|
-
QUARTER = "QUARTER",
|
|
211
|
-
DATE_HOUR = "DATE_HOUR",
|
|
212
|
-
DATE_MINUTE = "DATE_MINUTE",
|
|
213
|
-
HOUR = "HOUR",
|
|
214
|
-
MINUTE = "MINUTE"
|
|
215
|
-
}
|
|
216
|
-
declare enum NumberColumnTypes {
|
|
217
|
-
CURRENCY = "DOLLAR_AMT",
|
|
218
|
-
QUANTITY = "QUANTITY",
|
|
219
|
-
RATIO = "RATIO",
|
|
220
|
-
PERCENT = "PERCENT"
|
|
221
|
-
}
|
|
222
|
-
declare enum NumberColumnTypeDisplayNames {
|
|
223
|
-
DOLLAR_AMT = "Currency",
|
|
224
|
-
QUANTITY = "Quantity",
|
|
225
|
-
RATIO = "Ratio",
|
|
226
|
-
PERCENT = "Percent"
|
|
227
|
-
}
|
|
228
|
-
declare enum DataExplorerTypes {
|
|
229
|
-
SUBJECT_TYPE = "subject",
|
|
230
|
-
VL_TYPE = "VL"
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
interface Column {
|
|
234
|
-
dow_style: string;
|
|
403
|
+
type ColumnTypeParams = {
|
|
235
404
|
type: string;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
disambiguation: any[];
|
|
257
|
-
chart_images: string;
|
|
258
|
-
orders: any[];
|
|
259
|
-
filters: any[];
|
|
260
|
-
translation: string;
|
|
261
|
-
text: string;
|
|
262
|
-
date_format: string;
|
|
263
|
-
scope: string;
|
|
264
|
-
source: string;
|
|
265
|
-
test: boolean;
|
|
266
|
-
session_filter_locks: any[];
|
|
267
|
-
v2_dates: number;
|
|
268
|
-
persistent_filter_locks: FilterLock[];
|
|
269
|
-
}
|
|
270
|
-
type Rows = Array<Array<string | number>>;
|
|
271
|
-
interface QueryData {
|
|
272
|
-
session_locked_conditions: any[];
|
|
273
|
-
count_rows: number;
|
|
274
|
-
fe_req: FrontendReq;
|
|
275
|
-
query_id: string;
|
|
276
|
-
row_limit: number;
|
|
277
|
-
rows: Rows;
|
|
278
|
-
chart_images: null;
|
|
279
|
-
display_type: string;
|
|
280
|
-
columns: Columns;
|
|
281
|
-
interpretation: string;
|
|
282
|
-
text: string;
|
|
283
|
-
parsed_interpretation: Object[];
|
|
284
|
-
persistent_locked_conditions: any[];
|
|
285
|
-
condition_filter: any[];
|
|
286
|
-
sql: any[];
|
|
287
|
-
}
|
|
288
|
-
interface QueryResponse {
|
|
289
|
-
data: QueryData;
|
|
290
|
-
message: string;
|
|
291
|
-
reference_id: string;
|
|
292
|
-
}
|
|
293
|
-
interface AxiosResponse {
|
|
294
|
-
data: QueryResponse;
|
|
405
|
+
description: string;
|
|
406
|
+
continuous?: boolean;
|
|
407
|
+
ordinal?: boolean;
|
|
408
|
+
aggOptions?: string[];
|
|
409
|
+
aggregable?: boolean;
|
|
410
|
+
isNumber?: boolean;
|
|
411
|
+
icon?: string;
|
|
412
|
+
unit?: string;
|
|
413
|
+
};
|
|
414
|
+
declare class ColumnType {
|
|
415
|
+
type: string;
|
|
416
|
+
description: string;
|
|
417
|
+
continuous?: boolean;
|
|
418
|
+
ordinal?: boolean;
|
|
419
|
+
aggOptions?: string[];
|
|
420
|
+
aggregable?: boolean;
|
|
421
|
+
isNumber?: boolean;
|
|
422
|
+
icon?: string;
|
|
423
|
+
unit?: string;
|
|
424
|
+
constructor({ type, description, continuous, ordinal, aggOptions, aggregable, isNumber, icon, unit, }: ColumnTypeParams);
|
|
295
425
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
comparisonDisplay: string;
|
|
304
|
-
monthYearFormat: string;
|
|
305
|
-
dayMonthYearFormat: string;
|
|
426
|
+
|
|
427
|
+
declare class Column {
|
|
428
|
+
type: ColumnTypes;
|
|
429
|
+
isNumberType: boolean;
|
|
430
|
+
isStringType: boolean;
|
|
431
|
+
isDateType: boolean;
|
|
432
|
+
constructor(options: Column$1);
|
|
306
433
|
}
|
|
307
|
-
interface
|
|
434
|
+
interface Column extends Column$1 {
|
|
308
435
|
}
|
|
309
436
|
|
|
437
|
+
declare const COLUMN_TYPES: {
|
|
438
|
+
DOLLAR_AMT: ColumnType;
|
|
439
|
+
QUANTITY: ColumnType;
|
|
440
|
+
RATIO: ColumnType;
|
|
441
|
+
PERCENT: ColumnType;
|
|
442
|
+
STRING: ColumnType;
|
|
443
|
+
DATE: ColumnType;
|
|
444
|
+
DATE_STRING: ColumnType;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
declare const DEFAULT_SOURCE = "widgets";
|
|
448
|
+
|
|
310
449
|
declare const authenticationDefault: {
|
|
311
450
|
token: any;
|
|
312
451
|
apiKey: any;
|
|
@@ -315,7 +454,6 @@ declare const authenticationDefault: {
|
|
|
315
454
|
dprDomain: any;
|
|
316
455
|
};
|
|
317
456
|
declare const dataFormattingDefault: {
|
|
318
|
-
timestampFormat: TimestampFormats;
|
|
319
457
|
currencyCode: string;
|
|
320
458
|
languageCode: string;
|
|
321
459
|
currencyDecimals: number;
|
|
@@ -374,108 +512,25 @@ declare const getDataConfig: (prop?: {}) => {
|
|
|
374
512
|
numberColumnIndex: number;
|
|
375
513
|
};
|
|
376
514
|
|
|
377
|
-
declare const
|
|
378
|
-
declare const
|
|
379
|
-
declare const
|
|
380
|
-
declare const
|
|
381
|
-
declare const
|
|
382
|
-
declare const hasDateColumn: (columns: any) => boolean;
|
|
383
|
-
declare const getVisibleColumns: (columns: any) => Columns;
|
|
384
|
-
declare const getGroupableColumns: (columns: any) => any[];
|
|
385
|
-
declare const getGroupBys: (row: any, columns: any) => {
|
|
386
|
-
groupBys: any[];
|
|
387
|
-
supportedByAPI: boolean;
|
|
388
|
-
};
|
|
389
|
-
declare const getGroupBysFromTable: (cell: any, tableColumns: any) => any[];
|
|
390
|
-
declare const getGroupBysFromPivotTable: ({ cell, rowHeaders, columnHeaders, rowHeaderDefinition, columnHeaderDefinition, }: {
|
|
391
|
-
cell: any;
|
|
392
|
-
rowHeaders: any;
|
|
393
|
-
columnHeaders: any;
|
|
394
|
-
rowHeaderDefinition: any;
|
|
395
|
-
columnHeaderDefinition: any;
|
|
396
|
-
}) => {
|
|
397
|
-
name: any;
|
|
398
|
-
value: string;
|
|
399
|
-
}[];
|
|
400
|
-
declare const isAggregation: (columns: any) => boolean;
|
|
401
|
-
declare const getColumnTypeAmounts: (columns: any) => {
|
|
402
|
-
amountOfNumberColumns: number;
|
|
403
|
-
amountOfStringColumns: number;
|
|
404
|
-
};
|
|
405
|
-
declare const getDateColumnIndex: (columns: any) => any;
|
|
406
|
-
declare const getNumberOfGroupables: (columns: any) => number;
|
|
407
|
-
declare const isListQuery: (columns: any) => boolean;
|
|
515
|
+
declare const constructRTArray: (interpretation: ParsedInterpretation) => ParsedInterpretationChunk[];
|
|
516
|
+
declare const getDatesFromRT: (queryResponse: AxiosResponse) => string[];
|
|
517
|
+
declare const getTimeRangeFromDateArray: (dates: any) => "DAY" | "MONTH" | "WEEK";
|
|
518
|
+
declare const getTimeRangeFromRT: (queryResponse: any) => "DAY" | "MONTH" | "WEEK";
|
|
519
|
+
declare const getTimeFrameTextFromChunk: (chunk: any) => string;
|
|
408
520
|
|
|
409
|
-
declare const
|
|
410
|
-
declare const
|
|
411
|
-
|
|
412
|
-
declare const
|
|
413
|
-
|
|
414
|
-
declare const formatEpochDate: (value: any, col: Column, config?: DataFormatting) => any;
|
|
415
|
-
declare const dateStringSortFn: (a: any, b: any, col: Column) => number;
|
|
416
|
-
declare const dateSortFn: (a: any, b: any, col: Column, isTable: any) => number;
|
|
417
|
-
declare const sortDataByDate: (data: any, tableColumns: any, sortDirection: string, isTable: any) => any;
|
|
418
|
-
interface formatElementParams {
|
|
419
|
-
element: string | number;
|
|
420
|
-
column: Column;
|
|
421
|
-
config: DataFormatting;
|
|
422
|
-
htmlElement?: HTMLElement;
|
|
423
|
-
isChart?: boolean;
|
|
424
|
-
}
|
|
425
|
-
declare const formatElement: ({ element, column, config, htmlElement, isChart, }: formatElementParams) => string | number;
|
|
426
|
-
declare const getNumberFormatConfig: (d: any, scale: any) => {
|
|
427
|
-
minimumFractionDigits: number;
|
|
428
|
-
maximumFractionDigits: number;
|
|
429
|
-
notation: any;
|
|
430
|
-
};
|
|
431
|
-
declare const formatChartLabel: ({ d, scale, column, dataFormatting, maxLabelWidth }: {
|
|
432
|
-
d: any;
|
|
433
|
-
scale: any;
|
|
434
|
-
column: any;
|
|
435
|
-
dataFormatting: any;
|
|
436
|
-
maxLabelWidth: any;
|
|
437
|
-
}) => {
|
|
438
|
-
fullWidthLabel: any;
|
|
439
|
-
formattedLabel: any;
|
|
440
|
-
};
|
|
441
|
-
declare const getCurrencySymbol: (dataFormatting?: {
|
|
442
|
-
timestampFormat: TimestampFormats;
|
|
443
|
-
currencyCode: string;
|
|
444
|
-
languageCode: string;
|
|
445
|
-
currencyDecimals: number;
|
|
446
|
-
quantityDecimals: number;
|
|
447
|
-
ratioDecimals: number;
|
|
448
|
-
comparisonDisplay: string;
|
|
449
|
-
monthYearFormat: string;
|
|
450
|
-
dayMonthYearFormat: string;
|
|
451
|
-
}) => string;
|
|
452
|
-
declare const getDayjsObjForStringType: (value: any, col: any) => dayjs.Dayjs;
|
|
453
|
-
declare const getDayJSObj: ({ value, column }: {
|
|
521
|
+
declare const getStringFromSource: (source: string | number | Array<string>) => string | null;
|
|
522
|
+
declare const mergeSources: (source: string | number | Array<string>, newSource: string | number | Array<string>) => string | null;
|
|
523
|
+
|
|
524
|
+
declare const nameValueObject: (name: any, value: any) => {
|
|
525
|
+
name: any;
|
|
454
526
|
value: any;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
declare const getEpochFromDate: (date: any, precision?: any, precisionFrame?: any) => any;
|
|
527
|
+
};
|
|
528
|
+
declare const getKeyByValue: (object: any, value: any) => string;
|
|
458
529
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
pivotDataLength?: number;
|
|
464
|
-
isDataLimited?: boolean;
|
|
465
|
-
}
|
|
466
|
-
declare const isChartType: (type: any) => boolean;
|
|
467
|
-
declare const isTableType: (type: any) => boolean;
|
|
468
|
-
declare const isDisplayTypeValid: (response: AxiosResponse, displayType: string, dataLength: number, pivotDataLength: number, columns: Columns, isDataLimited: boolean) => boolean;
|
|
469
|
-
declare const shouldPlotMultiSeries: (columns: any) => boolean;
|
|
470
|
-
declare const supportsPieChart: (columns: any, chartData: any) => boolean;
|
|
471
|
-
declare const supports2DCharts: (columns: any, dataLength: any) => boolean;
|
|
472
|
-
declare const supportsRegularPivotTable: (columns: any, dataLength: any, data: any) => boolean;
|
|
473
|
-
declare const supportsDatePivotTable: (columns: any) => boolean;
|
|
474
|
-
declare const isSingleValueResponse: (response: any) => boolean;
|
|
475
|
-
declare const getSupportedDisplayTypes: ({ response, columns, dataLength, pivotDataLength, isDataLimited, }?: getSupportedDisplayTypesParams) => string[];
|
|
476
|
-
declare const getFirstChartDisplayType: (supportedDisplayTypes: any, fallback: any) => any;
|
|
477
|
-
declare const getDefaultDisplayType: (response?: AxiosResponse, defaultToChart?: boolean, columns?: Columns, dataLength?: number, pivotDataLength?: number, preferredDisplayType?: string, isDataLimited?: boolean) => string;
|
|
478
|
-
declare const hasData: (response: any) => any;
|
|
530
|
+
declare const roundToNearestMultiple: (value: any, multiple?: number) => number;
|
|
531
|
+
declare const roundDownToNearestMultiple: (value: any, multiple?: number) => number;
|
|
532
|
+
declare const roundUpToNearestMultiple: (value: any, multiple?: number) => number;
|
|
533
|
+
declare const roundToNearestLog10: (number: any) => number;
|
|
479
534
|
|
|
480
535
|
declare const currentEventLoopEnd: () => Promise<unknown>;
|
|
481
536
|
declare const animateInputText: ({ text, inputRef, callback, totalAnimationTime }: {
|
|
@@ -505,17 +560,213 @@ declare const svgToPng: (svgElement: any, scale?: number) => Promise<unknown>;
|
|
|
505
560
|
declare const getBBoxFromRef: (ref: any) => any;
|
|
506
561
|
declare const getSVGBase64: (svgElement: any) => string;
|
|
507
562
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
563
|
+
interface getSupportedDisplayTypesParams {
|
|
564
|
+
response?: AxiosResponse;
|
|
565
|
+
columns?: Column$1[];
|
|
566
|
+
dataLength?: number;
|
|
567
|
+
pivotDataLength?: number;
|
|
568
|
+
isDataLimited?: boolean;
|
|
569
|
+
}
|
|
570
|
+
declare const isChartType: (type: any) => boolean;
|
|
571
|
+
declare const isTableType: (type: any) => boolean;
|
|
572
|
+
declare const isDisplayTypeValid: (response: AxiosResponse, displayType: string, dataLength: number, pivotDataLength: number, columns: Column$1[], isDataLimited: boolean) => boolean;
|
|
573
|
+
declare const shouldPlotMultiSeries: (columns: any) => boolean;
|
|
574
|
+
declare const supportsPieChart: (columns: any, chartData: any) => boolean;
|
|
575
|
+
declare const supports2DCharts: (columns: any, dataLength: any) => boolean;
|
|
576
|
+
declare const getPotentialDisplayTypes: (response: AxiosResponse) => string[];
|
|
577
|
+
declare const potentiallySupportsPivot: (response: AxiosResponse) => boolean;
|
|
578
|
+
declare const potentiallySupportsDatePivot: (response: any) => boolean;
|
|
579
|
+
declare const usePivotDataForChart: (response: any) => boolean;
|
|
580
|
+
declare const supportsRegularPivotTable: (columns: any, data?: any, dataLength?: any) => boolean;
|
|
581
|
+
declare const supportsDatePivotTable: (columns: any) => boolean;
|
|
582
|
+
declare const isSingleValueResponse: (response: any) => boolean;
|
|
583
|
+
declare const getUniqueYearsForColumn: (data: any, columns: any, index: any) => any[];
|
|
584
|
+
declare const getSupportedDisplayTypes: ({ response, columns, dataLength, pivotDataLength, isDataLimited, }?: getSupportedDisplayTypesParams) => string[];
|
|
585
|
+
declare const getFirstChartDisplayType: (supportedDisplayTypes: any, fallback: any) => any;
|
|
586
|
+
declare const getDefaultDisplayType: (response?: AxiosResponse, defaultToChart?: boolean, columns?: Column$1[], dataLength?: number, pivotDataLength?: number, preferredDisplayType?: string, isDataLimited?: boolean) => string;
|
|
587
|
+
declare const hasData: (response: any) => any;
|
|
588
|
+
declare const hasMoreData: (response: any, currentNumRows: any) => boolean;
|
|
589
|
+
|
|
590
|
+
declare const isISODate: (str: any) => boolean;
|
|
591
|
+
declare const getDateRangeIntersection: (aRange: any, bRange: any) => {
|
|
592
|
+
startDate: any;
|
|
593
|
+
endDate: any;
|
|
511
594
|
};
|
|
512
|
-
declare const
|
|
595
|
+
declare const getColumnNameForDateRange: (chunkEng: any) => any;
|
|
596
|
+
declare const getFilterPrecision: (col: Column$1) => PrecisionTypes.DAY | PrecisionTypes.MONTH | PrecisionTypes.YEAR;
|
|
597
|
+
declare const getPrecisionForDayJS: (colPrecision: any) => "month" | "minute" | "hour" | "day" | "year" | "quarter" | "week";
|
|
598
|
+
declare const getStartAndEndDateFromDateStrs: (dateRangeStrs: any) => {
|
|
599
|
+
startDate: Date;
|
|
600
|
+
endDate: Date;
|
|
601
|
+
};
|
|
602
|
+
declare const getDateRangesFromInterpretation: (parsedInterpretation: any) => any[];
|
|
603
|
+
declare const getColumnDateRanges: (response: any) => any[];
|
|
604
|
+
declare const getEpochFromDate: (date: any, precision?: any, precisionFrame?: any) => any;
|
|
605
|
+
declare const getDayjsObjForStringType: (value: any, col: any) => dayjs.Dayjs;
|
|
606
|
+
declare const getDayJSObj: ({ value, column }: {
|
|
607
|
+
value: number | string;
|
|
608
|
+
column: Column$1;
|
|
609
|
+
}) => dayjs.Dayjs;
|
|
513
610
|
|
|
514
|
-
declare const
|
|
515
|
-
declare const
|
|
611
|
+
declare const formatStringDateWithPrecision: (value: any, col: any) => any;
|
|
612
|
+
declare const formatStringDate: (value: any, config?: DataFormatting) => any;
|
|
613
|
+
declare const formatDateType: (element: any, column: Column$1, config?: DataFormatting) => any;
|
|
614
|
+
declare const formatDateStringType: (element: any, column: Column$1, config?: DataFormatting) => any;
|
|
615
|
+
declare const formatISODateWithPrecision: (value: any, col: Column$1, config?: DataFormatting) => any;
|
|
616
|
+
declare const formatEpochDate: (value: any, col: Column$1, config?: DataFormatting) => any;
|
|
617
|
+
declare const dateStringSortFn: (a: any, b: any, col: Column$1) => number;
|
|
618
|
+
declare const dateSortFn: (a: any, b: any, col: Column$1, isTable: any) => number;
|
|
619
|
+
declare const sortDataByDate: (data: any, tableColumns: any, sortDirection: string, isTable: any) => any;
|
|
620
|
+
interface formatElementParams {
|
|
621
|
+
element: string | number;
|
|
622
|
+
column: Column$1;
|
|
623
|
+
config?: DataFormatting;
|
|
624
|
+
htmlElement?: HTMLElement;
|
|
625
|
+
isChart?: boolean;
|
|
626
|
+
}
|
|
627
|
+
declare const formatElement: ({ element, column, config, htmlElement, isChart, }: formatElementParams) => string | number;
|
|
628
|
+
declare const getNumberFormatConfig: (d: number, scale: any) => {
|
|
629
|
+
minimumFractionDigits: number;
|
|
630
|
+
maximumFractionDigits: number;
|
|
631
|
+
notation: any;
|
|
632
|
+
};
|
|
633
|
+
declare const countDecimals: (number: any) => any;
|
|
634
|
+
declare const formatChartLabel: ({ d, scale, column, dataFormatting, maxLabelWidth, sigDigits, }: {
|
|
635
|
+
d: number | string;
|
|
636
|
+
scale?: any;
|
|
637
|
+
column: Column$1;
|
|
638
|
+
dataFormatting?: DataFormatting;
|
|
639
|
+
maxLabelWidth?: number;
|
|
640
|
+
sigDigits?: number;
|
|
641
|
+
}) => {
|
|
642
|
+
fullWidthLabel: string | number;
|
|
643
|
+
formattedLabel: string | number;
|
|
644
|
+
};
|
|
645
|
+
declare const getCurrencySymbol: (dataFormatting?: {
|
|
646
|
+
currencyCode: string;
|
|
647
|
+
languageCode: string;
|
|
648
|
+
currencyDecimals: number;
|
|
649
|
+
quantityDecimals: number;
|
|
650
|
+
ratioDecimals: number;
|
|
651
|
+
comparisonDisplay: string;
|
|
652
|
+
monthYearFormat: string;
|
|
653
|
+
dayMonthYearFormat: string;
|
|
654
|
+
}) => string;
|
|
516
655
|
|
|
517
|
-
declare const
|
|
518
|
-
declare const
|
|
656
|
+
declare const getScheduleFrequencyObject: (dataAlert: any) => any;
|
|
657
|
+
declare const getSupportedConditionTypes: (expression: any, queryResponse: any) => string[];
|
|
658
|
+
declare const showEvaluationFrequencySetting: (notificationType: any) => boolean;
|
|
659
|
+
declare const resetDateIsFuture: (dataAlert: any) => boolean;
|
|
660
|
+
declare const formatResetDate: (dataAlert: any, short: any) => string;
|
|
661
|
+
declare const formatNextScheduleDate: (schedules: any, short: any) => string;
|
|
662
|
+
declare const getTimeObjFromTimeStamp: (timestamp: any, timezone: any) => {
|
|
663
|
+
ampm: string;
|
|
664
|
+
value: string;
|
|
665
|
+
value24hr: string;
|
|
666
|
+
minute: number;
|
|
667
|
+
hour24: number;
|
|
668
|
+
hour: number;
|
|
669
|
+
};
|
|
670
|
+
declare const getWeekdayFromTimeStamp: (timestamp: any, timezone: any) => string;
|
|
671
|
+
declare const getDayLocalStartDate: ({ timeObj, timezone, daysToAdd }: {
|
|
672
|
+
timeObj: any;
|
|
673
|
+
timezone: any;
|
|
674
|
+
daysToAdd?: number;
|
|
675
|
+
}) => string;
|
|
676
|
+
declare const getWeekLocalStartDate: ({ weekDay, timeObj, timezone }: {
|
|
677
|
+
weekDay: any;
|
|
678
|
+
timeObj: any;
|
|
679
|
+
timezone: any;
|
|
680
|
+
}) => string;
|
|
681
|
+
declare const getMonthLocalStartDate: ({ monthDay, timeObj, timezone }: {
|
|
682
|
+
monthDay: any;
|
|
683
|
+
timeObj: any;
|
|
684
|
+
timezone: any;
|
|
685
|
+
}) => string;
|
|
686
|
+
|
|
687
|
+
declare const isColumnNumberType: (col: any) => boolean;
|
|
688
|
+
declare const isColumnStringType: (col: any) => boolean;
|
|
689
|
+
declare const isColumnDateType: (col: any) => boolean;
|
|
690
|
+
declare const hasNumberColumn: (columns: any) => boolean;
|
|
691
|
+
declare const hasStringColumn: (columns: any) => boolean;
|
|
692
|
+
declare const hasDateColumn: (columns: any) => boolean;
|
|
693
|
+
declare const getVisibleColumns: (columns: any) => Column$1[];
|
|
694
|
+
declare const getHiddenColumns: (columns: Column$1[]) => Column$1[];
|
|
695
|
+
declare const areSomeColumnsHidden: (columns: Column$1[]) => boolean;
|
|
696
|
+
declare const areAllColumnsHidden: (columns: Column$1[]) => boolean;
|
|
697
|
+
declare const getGroupableColumns: (columns: any) => any[];
|
|
698
|
+
declare const getGroupBys: (row: any, columns: any) => {
|
|
699
|
+
groupBys: any[];
|
|
700
|
+
supportedByAPI: boolean;
|
|
701
|
+
};
|
|
702
|
+
declare const getGroupBysFromTable: (cell: any, tableColumns: any) => any[];
|
|
703
|
+
declare const getGroupBysFromPivotTable: ({ cell, rowHeaders, columnHeaders, rowHeaderDefinition, columnHeaderDefinition, }: {
|
|
704
|
+
cell: any;
|
|
705
|
+
rowHeaders: any;
|
|
706
|
+
columnHeaders: any;
|
|
707
|
+
rowHeaderDefinition: any;
|
|
708
|
+
columnHeaderDefinition: any;
|
|
709
|
+
}) => {
|
|
710
|
+
name: any;
|
|
711
|
+
value: string;
|
|
712
|
+
}[];
|
|
713
|
+
declare const isAggregation: (columns: any) => boolean;
|
|
714
|
+
declare const getColumnTypeAmounts: (columns: any) => {
|
|
715
|
+
amountOfNumberColumns: number;
|
|
716
|
+
amountOfStringColumns: number;
|
|
717
|
+
};
|
|
718
|
+
declare const getDateColumnIndex: (columns: any) => any;
|
|
719
|
+
declare const getNumberOfGroupables: (columns: any) => number;
|
|
720
|
+
declare const isListQuery: (columns: any) => boolean;
|
|
721
|
+
declare const setFilterFunction: ({ column, dataFormatting, onErrorCallback, }: {
|
|
722
|
+
column: Column$1;
|
|
723
|
+
dataFormatting: DataFormatting;
|
|
724
|
+
onErrorCallback: Function;
|
|
725
|
+
}) => (headerValue: any, rowValue: any) => boolean;
|
|
726
|
+
declare const setSorterFunction: (col: any) => ((a: any, b: any) => number) | "alphanum";
|
|
727
|
+
declare const setHeaderFilterPlaceholder: (col: any) => "Pick range" | "Filter";
|
|
728
|
+
declare const getAggConfig: (columns: any) => {};
|
|
729
|
+
declare const getDrilldownGroupby: (queryResponse: any, newCol: any) => any;
|
|
730
|
+
declare const formatQueryColumns: ({ columns, aggConfig, queryResponse, onTableHeaderClick, enableTableSorting, dataFormatting, }: {
|
|
731
|
+
columns: Column$1[];
|
|
732
|
+
aggConfig?: Object;
|
|
733
|
+
queryResponse?: AxiosResponse;
|
|
734
|
+
onTableHeaderClick?: Function;
|
|
735
|
+
enableTableSorting?: boolean;
|
|
736
|
+
dataFormatting?: DataFormatting;
|
|
737
|
+
}) => Column$1[];
|
|
738
|
+
declare const getStringColumnIndices: (columns: any, supportsPivot?: boolean) => {
|
|
739
|
+
stringColumnIndices: any[];
|
|
740
|
+
stringColumnIndex: any;
|
|
741
|
+
};
|
|
742
|
+
declare const getNumberColumnIndices: (columns: any, isPivot: any) => {
|
|
743
|
+
numberColumnIndex: any;
|
|
744
|
+
numberColumnIndices: any[];
|
|
745
|
+
numberColumnIndices2: any[];
|
|
746
|
+
numberColumnIndex2: any;
|
|
747
|
+
currencyColumnIndices: any[];
|
|
748
|
+
currencyColumnIndex: any;
|
|
749
|
+
quantityColumnIndices: any[];
|
|
750
|
+
quantityColumnIndex: any;
|
|
751
|
+
ratioColumnIndices: any[];
|
|
752
|
+
ratioColumnIndex: any;
|
|
753
|
+
};
|
|
754
|
+
declare const getMultiSeriesColumnIndex: (columns: any) => any;
|
|
755
|
+
declare const isColumnIndexValid: (index: any, columns: any) => boolean;
|
|
756
|
+
declare const isColumnIndicesValid: (indices: any, columns: any) => any;
|
|
757
|
+
declare const numberIndicesArraysOverlap: (tableConfig: any) => any;
|
|
758
|
+
declare const hasColumnIndex: (indices: any, index: any) => boolean;
|
|
759
|
+
declare const getTableConfig: ({ response, columns, currentTableConfig, }?: {
|
|
760
|
+
response?: AxiosResponse;
|
|
761
|
+
columns?: Column$1[];
|
|
762
|
+
currentTableConfig?: TableConfig;
|
|
763
|
+
}) => any;
|
|
764
|
+
declare const isTableConfigValid: ({ response, tableConfig, columns, displayType }: {
|
|
765
|
+
response: any;
|
|
766
|
+
tableConfig: any;
|
|
767
|
+
columns: any;
|
|
768
|
+
displayType: any;
|
|
769
|
+
}) => boolean;
|
|
519
770
|
|
|
520
771
|
declare const invertArray: (array: any[]) => any[];
|
|
521
772
|
declare const functionsEqual: (a: Function, b: Function) => boolean;
|
|
@@ -525,6 +776,39 @@ declare const difference: (objA: Object, objB: Object) => any[];
|
|
|
525
776
|
declare const rotateArray: (array: any, n: any) => any[];
|
|
526
777
|
declare const onlyUnique: (value: any, index: any, self: any) => boolean;
|
|
527
778
|
declare const makeEmptyArray: (w: any, h: any, value?: string) => any[];
|
|
779
|
+
declare const removeElementAtIndex: (array: any, index: any) => any;
|
|
780
|
+
|
|
781
|
+
declare const aggregateData: ({ data, aggColIndex, columns, numberIndices, dataFormatting }: {
|
|
782
|
+
data: any;
|
|
783
|
+
aggColIndex: any;
|
|
784
|
+
columns: any;
|
|
785
|
+
numberIndices: any;
|
|
786
|
+
dataFormatting: any;
|
|
787
|
+
}) => any;
|
|
788
|
+
type CreatePivotDataParams = {
|
|
789
|
+
rows?: (string | number)[][];
|
|
790
|
+
columns?: Column$1[];
|
|
791
|
+
tableConfig?: TableConfig;
|
|
792
|
+
dataFormatting?: DataFormatting;
|
|
793
|
+
isFirstGeneration?: boolean;
|
|
794
|
+
};
|
|
795
|
+
declare const generatePivotTableData: ({ isFirstGeneration, rows, columns, tableConfig, dataFormatting, }?: CreatePivotDataParams) => {};
|
|
796
|
+
declare const formatDatePivotYear: ({ dateValue, dateColumn }: {
|
|
797
|
+
dateValue: any;
|
|
798
|
+
dateColumn: any;
|
|
799
|
+
}) => string;
|
|
800
|
+
declare const formatDatePivotMonth: ({ dateValue, dateColumn }: {
|
|
801
|
+
dateValue: any;
|
|
802
|
+
dateColumn: any;
|
|
803
|
+
}) => string;
|
|
804
|
+
declare const generateDatePivotData: ({ rows, columns, tableConfig, dataFormatting }?: CreatePivotDataParams) => {};
|
|
805
|
+
declare const generatePivotData: (params?: CreatePivotDataParams) => {};
|
|
806
|
+
declare const generateFilterDrilldownResponse: ({ response, rows, index, value }: {
|
|
807
|
+
response: any;
|
|
808
|
+
rows: any;
|
|
809
|
+
index: any;
|
|
810
|
+
value: any;
|
|
811
|
+
}) => any;
|
|
528
812
|
|
|
529
813
|
declare const dataStructureChanged: (props: any, prevProps: any) => boolean;
|
|
530
814
|
declare const onlySeriesVisibilityChanged: (props: any, prevProps: any) => boolean;
|
|
@@ -568,7 +852,7 @@ declare const getRangeForAxis: ({ axis, height, width }: {
|
|
|
568
852
|
}) => any[];
|
|
569
853
|
declare const getTimeScale: ({ data, columns, columnIndex, axis, domain, dataFormatting, outerPadding, innerPadding, height, width, stringColumnIndices, changeColumnIndices, enableAxisDropdown, changeStringColumnIndex, }: {
|
|
570
854
|
data: Rows;
|
|
571
|
-
columns:
|
|
855
|
+
columns: Column$1[];
|
|
572
856
|
columnIndex: number;
|
|
573
857
|
axis: string;
|
|
574
858
|
domain: number[];
|
|
@@ -584,7 +868,7 @@ declare const getTimeScale: ({ data, columns, columnIndex, axis, domain, dataFor
|
|
|
584
868
|
}) => any;
|
|
585
869
|
declare const getBandScale: ({ data, columns, columnIndex, axis, domain, dataFormatting, outerPadding, innerPadding, height, width, stringColumnIndices, changeColumnIndices, enableAxisDropdown, changeStringColumnIndex, }: {
|
|
586
870
|
data: Rows;
|
|
587
|
-
columns:
|
|
871
|
+
columns: Column$1[];
|
|
588
872
|
columnIndex: number;
|
|
589
873
|
axis: string;
|
|
590
874
|
domain: number[];
|
|
@@ -598,18 +882,18 @@ declare const getBandScale: ({ data, columns, columnIndex, axis, domain, dataFor
|
|
|
598
882
|
enableAxisDropdown: boolean;
|
|
599
883
|
changeStringColumnIndex: Function;
|
|
600
884
|
}) => any;
|
|
601
|
-
declare const getUnitsForColumn: (column:
|
|
885
|
+
declare const getUnitsForColumn: (column: any, useAgg?: boolean) => any;
|
|
602
886
|
declare const getUnitSymbol: ({ column, dataFormatting, }: {
|
|
603
|
-
column: Column;
|
|
887
|
+
column: Column$1;
|
|
604
888
|
dataFormatting: DataFormatting;
|
|
605
889
|
}) => string;
|
|
606
890
|
declare const getLinearAxisTitle: ({ numberColumns, aggregated, }: {
|
|
607
|
-
numberColumns:
|
|
891
|
+
numberColumns: Column$1[];
|
|
608
892
|
aggregated: boolean;
|
|
609
893
|
}) => string;
|
|
610
894
|
declare const getNumberAxisUnits: (numberColumns: any) => any;
|
|
611
895
|
declare const getBinLinearScale: ({ columns, columnIndex, axis, buckets, bins, changeColumnIndices, enableAxisDropdown, innerHeight, innerWidth, height, width, dataFormatting, changeNumberColumnIndices, }: {
|
|
612
|
-
columns:
|
|
896
|
+
columns: Column$1[];
|
|
613
897
|
columnIndex: number;
|
|
614
898
|
axis: string;
|
|
615
899
|
buckets: any[];
|
|
@@ -634,7 +918,7 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
|
|
|
634
918
|
numTicks: number;
|
|
635
919
|
stacked: boolean;
|
|
636
920
|
isScaled: boolean;
|
|
637
|
-
columns:
|
|
921
|
+
columns: Column$1[];
|
|
638
922
|
units: string;
|
|
639
923
|
title: string;
|
|
640
924
|
columnIndex: number;
|
|
@@ -652,7 +936,7 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
|
|
|
652
936
|
}) => any;
|
|
653
937
|
declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, changeColumnIndices, disableAutoScale, dataFormatting, changeNumberColumnIndices, enableAxisDropdown, height, width, aggregated, }: {
|
|
654
938
|
axis: string;
|
|
655
|
-
columns:
|
|
939
|
+
columns: Column$1[];
|
|
656
940
|
columnIndex: number;
|
|
657
941
|
columnIndices: number[];
|
|
658
942
|
height: number;
|
|
@@ -683,7 +967,7 @@ declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, st
|
|
|
683
967
|
axis: string;
|
|
684
968
|
stacked: boolean;
|
|
685
969
|
isScaled: boolean;
|
|
686
|
-
columns:
|
|
970
|
+
columns: Column$1[];
|
|
687
971
|
hasDropdown: boolean;
|
|
688
972
|
allowMultipleSeries: boolean;
|
|
689
973
|
changeColumnIndices: Function;
|
|
@@ -725,6 +1009,12 @@ declare const getTickValues: ({ scale, initialTicks, numTicks, innerPadding, out
|
|
|
725
1009
|
innerPadding?: number;
|
|
726
1010
|
outerPadding?: number;
|
|
727
1011
|
}) => any;
|
|
1012
|
+
declare const mergeBoundingClientRects: (boundingBoxes: any) => {
|
|
1013
|
+
x: any;
|
|
1014
|
+
y: any;
|
|
1015
|
+
height: number;
|
|
1016
|
+
width: number;
|
|
1017
|
+
};
|
|
728
1018
|
declare const mergeBboxes: (boundingBoxes: any) => {
|
|
729
1019
|
x: any;
|
|
730
1020
|
y: any;
|
|
@@ -738,4 +1028,386 @@ declare const GENERAL_HTML_ERROR = "Internal Service Error: Our system is experi
|
|
|
738
1028
|
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.";
|
|
739
1029
|
declare const REQUEST_CANCELLED_ERROR = "Request cancelled";
|
|
740
1030
|
|
|
741
|
-
|
|
1031
|
+
declare const fetchDataExplorerAutocomplete: ({ suggestion, domain, token, apiKey, cancelToken, }?: {
|
|
1032
|
+
suggestion?: string;
|
|
1033
|
+
domain?: string;
|
|
1034
|
+
apiKey?: string;
|
|
1035
|
+
token?: string;
|
|
1036
|
+
cancelToken?: any;
|
|
1037
|
+
}) => Promise<any[]>;
|
|
1038
|
+
declare const fetchDataExplorerSuggestions: ({ pageSize, pageNumber, domain, apiKey, token, text, context, selectedVL, userVLSelection, skipQueryValidation, }?: {
|
|
1039
|
+
pageSize?: number;
|
|
1040
|
+
pageNumber?: number;
|
|
1041
|
+
domain?: string;
|
|
1042
|
+
apiKey?: string;
|
|
1043
|
+
token?: string;
|
|
1044
|
+
text?: string;
|
|
1045
|
+
context?: string;
|
|
1046
|
+
selectedVL?: ValueLabel;
|
|
1047
|
+
userVLSelection?: ValueLabel[];
|
|
1048
|
+
skipQueryValidation?: boolean;
|
|
1049
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1050
|
+
|
|
1051
|
+
declare const fetchNotificationData: ({ id, domain, apiKey, token }: {
|
|
1052
|
+
id: any;
|
|
1053
|
+
domain: any;
|
|
1054
|
+
apiKey: any;
|
|
1055
|
+
token: any;
|
|
1056
|
+
}) => Promise<{
|
|
1057
|
+
data: any;
|
|
1058
|
+
}>;
|
|
1059
|
+
declare const isExpressionQueryValid: ({ query, domain, apiKey, token }: {
|
|
1060
|
+
query: any;
|
|
1061
|
+
domain: any;
|
|
1062
|
+
apiKey: any;
|
|
1063
|
+
token: any;
|
|
1064
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1065
|
+
declare const fetchNotificationCount: ({ domain, apiKey, token, unacknowledged }: {
|
|
1066
|
+
domain: any;
|
|
1067
|
+
apiKey: any;
|
|
1068
|
+
token: any;
|
|
1069
|
+
unacknowledged?: number;
|
|
1070
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1071
|
+
declare const fetchNotificationFeed: ({ domain, apiKey, token, offset, limit }: {
|
|
1072
|
+
domain: any;
|
|
1073
|
+
apiKey: any;
|
|
1074
|
+
token: any;
|
|
1075
|
+
offset: any;
|
|
1076
|
+
limit: any;
|
|
1077
|
+
}) => Promise<any>;
|
|
1078
|
+
declare const fetchNotificationChannels: ({ domain, apiKey, token, channelType }: {
|
|
1079
|
+
domain: any;
|
|
1080
|
+
apiKey: any;
|
|
1081
|
+
token: any;
|
|
1082
|
+
channelType: any;
|
|
1083
|
+
}) => Promise<any>;
|
|
1084
|
+
declare const fetchDataAlerts: ({ domain, apiKey, token }: {
|
|
1085
|
+
domain: any;
|
|
1086
|
+
apiKey: any;
|
|
1087
|
+
token: any;
|
|
1088
|
+
}) => Promise<any>;
|
|
1089
|
+
declare const fetchRule: ({ domain, apiKey, token, dataAlertId }: {
|
|
1090
|
+
domain: any;
|
|
1091
|
+
apiKey: any;
|
|
1092
|
+
token: any;
|
|
1093
|
+
dataAlertId: any;
|
|
1094
|
+
}) => Promise<any>;
|
|
1095
|
+
declare const resetNotificationCount: ({ domain, apiKey, token }: {
|
|
1096
|
+
domain: any;
|
|
1097
|
+
apiKey: any;
|
|
1098
|
+
token: any;
|
|
1099
|
+
}) => Promise<any>;
|
|
1100
|
+
declare const initializeAlert: ({ id, domain, apiKey, token }: {
|
|
1101
|
+
id: any;
|
|
1102
|
+
domain: any;
|
|
1103
|
+
apiKey: any;
|
|
1104
|
+
token: any;
|
|
1105
|
+
}) => Promise<any>;
|
|
1106
|
+
declare const deleteNotification: ({ notificationId, domain, apiKey, token }: {
|
|
1107
|
+
notificationId: any;
|
|
1108
|
+
domain: any;
|
|
1109
|
+
apiKey: any;
|
|
1110
|
+
token: any;
|
|
1111
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1112
|
+
declare const dismissAllNotifications: ({ domain, apiKey, token }: {
|
|
1113
|
+
domain: any;
|
|
1114
|
+
apiKey: any;
|
|
1115
|
+
token: any;
|
|
1116
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1117
|
+
declare const markNotificationAsUnread: ({ notificationId, domain, apiKey, token }: {
|
|
1118
|
+
notificationId: any;
|
|
1119
|
+
domain: any;
|
|
1120
|
+
apiKey: any;
|
|
1121
|
+
token: any;
|
|
1122
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1123
|
+
declare const dismissNotification: ({ notificationId, domain, apiKey, token }: {
|
|
1124
|
+
notificationId: any;
|
|
1125
|
+
domain: any;
|
|
1126
|
+
apiKey: any;
|
|
1127
|
+
token: any;
|
|
1128
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1129
|
+
declare const removeUserFromProjectRule: ({ dataAlertId, token, domain, apiKey }: {
|
|
1130
|
+
dataAlertId: any;
|
|
1131
|
+
token: any;
|
|
1132
|
+
domain: any;
|
|
1133
|
+
apiKey: any;
|
|
1134
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1135
|
+
declare const addUserToProjectRule: ({ dataAlertId, token, domain, apiKey }: {
|
|
1136
|
+
dataAlertId: any;
|
|
1137
|
+
token: any;
|
|
1138
|
+
domain: any;
|
|
1139
|
+
apiKey: any;
|
|
1140
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1141
|
+
declare const toggleProjectDataAlertStatus: ({ dataAlertId, status, token, domain, apiKey }: {
|
|
1142
|
+
dataAlertId: any;
|
|
1143
|
+
status: any;
|
|
1144
|
+
token: any;
|
|
1145
|
+
domain: any;
|
|
1146
|
+
apiKey: any;
|
|
1147
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1148
|
+
declare const toggleCustomDataAlertStatus: ({ dataAlertId, status, token, domain, apiKey }: {
|
|
1149
|
+
dataAlertId: any;
|
|
1150
|
+
status: any;
|
|
1151
|
+
token: any;
|
|
1152
|
+
domain: any;
|
|
1153
|
+
apiKey: any;
|
|
1154
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1155
|
+
declare const updateDataAlertStatus: ({ dataAlertId, status, type, domain, apiKey, token }: {
|
|
1156
|
+
dataAlertId: any;
|
|
1157
|
+
status: any;
|
|
1158
|
+
type: any;
|
|
1159
|
+
domain: any;
|
|
1160
|
+
apiKey: any;
|
|
1161
|
+
token: any;
|
|
1162
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1163
|
+
declare const createNotificationChannel: ({ token, domain, apiKey, channelType, channelName, channelEmail, userName, userEmail, }: {
|
|
1164
|
+
token: any;
|
|
1165
|
+
domain: any;
|
|
1166
|
+
apiKey: any;
|
|
1167
|
+
channelType: any;
|
|
1168
|
+
channelName: any;
|
|
1169
|
+
channelEmail: any;
|
|
1170
|
+
userName: any;
|
|
1171
|
+
userEmail: any;
|
|
1172
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1173
|
+
declare const sendDataToChannel: ({ token, domain, apiKey, channelId, fileName, base64Data }: {
|
|
1174
|
+
token: any;
|
|
1175
|
+
domain: any;
|
|
1176
|
+
apiKey: any;
|
|
1177
|
+
channelId: any;
|
|
1178
|
+
fileName: any;
|
|
1179
|
+
base64Data: any;
|
|
1180
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1181
|
+
declare const updateDataAlert: ({ dataAlert, domain, apiKey, token }: {
|
|
1182
|
+
dataAlert: any;
|
|
1183
|
+
domain: any;
|
|
1184
|
+
apiKey: any;
|
|
1185
|
+
token: any;
|
|
1186
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1187
|
+
declare const createDataAlert: ({ dataAlert, domain, apiKey, token }: {
|
|
1188
|
+
dataAlert?: {};
|
|
1189
|
+
domain: any;
|
|
1190
|
+
apiKey: any;
|
|
1191
|
+
token: any;
|
|
1192
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1193
|
+
declare const validateExpression: ({ expression, domain, apiKey, token }: {
|
|
1194
|
+
expression: any;
|
|
1195
|
+
domain: any;
|
|
1196
|
+
apiKey: any;
|
|
1197
|
+
token: any;
|
|
1198
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1199
|
+
declare const deleteDataAlert: (dataAlertId: any, authObject: any) => Promise<axios.AxiosResponse<any>>;
|
|
1200
|
+
declare const removeNotificationChannel: ({ channelId, domain, apiKey, token }: {
|
|
1201
|
+
channelId: any;
|
|
1202
|
+
domain: any;
|
|
1203
|
+
apiKey: any;
|
|
1204
|
+
token: any;
|
|
1205
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1206
|
+
|
|
1207
|
+
declare const isError500Type: (referenceId: any) => boolean;
|
|
1208
|
+
declare const fetchSuggestions: ({ query, queryId, domain, apiKey, token, cancelToken, }?: {
|
|
1209
|
+
query?: string;
|
|
1210
|
+
queryId?: string;
|
|
1211
|
+
domain?: string;
|
|
1212
|
+
apiKey?: string;
|
|
1213
|
+
token?: string;
|
|
1214
|
+
cancelToken?: any;
|
|
1215
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1216
|
+
declare const runQueryNewPage: ({ queryId, domain, apiKey, token, page, cancelToken, }?: {
|
|
1217
|
+
queryId?: string;
|
|
1218
|
+
domain?: string;
|
|
1219
|
+
apiKey?: string;
|
|
1220
|
+
token?: string;
|
|
1221
|
+
page?: number;
|
|
1222
|
+
cancelToken?: any;
|
|
1223
|
+
}) => Promise<any>;
|
|
1224
|
+
interface QueryParams {
|
|
1225
|
+
query?: string;
|
|
1226
|
+
userSelection?: Object[];
|
|
1227
|
+
userSelectionFinal?: Object[];
|
|
1228
|
+
debug?: boolean;
|
|
1229
|
+
test?: boolean;
|
|
1230
|
+
domain?: string;
|
|
1231
|
+
apiKey?: string;
|
|
1232
|
+
token?: string;
|
|
1233
|
+
source?: string;
|
|
1234
|
+
filters?: Object[];
|
|
1235
|
+
orders?: Object[];
|
|
1236
|
+
tableFilters?: Object[];
|
|
1237
|
+
pageSize?: number;
|
|
1238
|
+
allowSuggestions?: boolean;
|
|
1239
|
+
cancelToken?: any;
|
|
1240
|
+
scope?: string;
|
|
1241
|
+
enableQueryValidation?: boolean;
|
|
1242
|
+
skipQueryValidation?: boolean;
|
|
1243
|
+
}
|
|
1244
|
+
declare const runQueryOnly: ({ query, userSelection, userSelectionFinal, debug, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, scope, }?: QueryParams) => Promise<AxiosResponse | axios.AxiosResponse<any>>;
|
|
1245
|
+
declare const runQueryValidation: ({ text, domain, apiKey, token, cancelToken, }?: {
|
|
1246
|
+
text?: string;
|
|
1247
|
+
domain?: string;
|
|
1248
|
+
apiKey?: string;
|
|
1249
|
+
token?: string;
|
|
1250
|
+
cancelToken?: any;
|
|
1251
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1252
|
+
declare const runQuery: ({ query, userSelection, userSelectionFinal, debug, test, domain, apiKey, token, source, filters, orders, tableFilters, pageSize, allowSuggestions, cancelToken, enableQueryValidation, skipQueryValidation, scope, }?: QueryParams) => Promise<AxiosResponse | axios.AxiosResponse<any>>;
|
|
1253
|
+
declare const exportCSV: ({ queryId, domain, apiKey, token, csvProgressCallback, }?: {
|
|
1254
|
+
queryId?: string;
|
|
1255
|
+
domain?: string;
|
|
1256
|
+
apiKey?: string;
|
|
1257
|
+
token?: string;
|
|
1258
|
+
csvProgressCallback?: Function;
|
|
1259
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1260
|
+
declare const runDrilldown: ({ queryID, groupBys, debug, test, domain, apiKey, token, orders, source, tableFilters, cancelToken, pageSize, }?: {
|
|
1261
|
+
queryID?: string;
|
|
1262
|
+
groupBys?: Object[];
|
|
1263
|
+
debug?: boolean;
|
|
1264
|
+
test?: boolean;
|
|
1265
|
+
domain?: string;
|
|
1266
|
+
apiKey?: string;
|
|
1267
|
+
token?: string;
|
|
1268
|
+
orders?: Object[];
|
|
1269
|
+
source?: string;
|
|
1270
|
+
tableFilters?: Object[];
|
|
1271
|
+
cancelToken?: any;
|
|
1272
|
+
pageSize?: number;
|
|
1273
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1274
|
+
declare const fetchTopics: ({ domain, token, apiKey, }?: {
|
|
1275
|
+
domain?: string;
|
|
1276
|
+
apiKey?: string;
|
|
1277
|
+
token?: string;
|
|
1278
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1279
|
+
declare const fetchAutocomplete: ({ suggestion, domain, apiKey, token, }?: {
|
|
1280
|
+
suggestion?: string;
|
|
1281
|
+
domain?: string;
|
|
1282
|
+
apiKey?: string;
|
|
1283
|
+
token?: string;
|
|
1284
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1285
|
+
declare const fetchVLAutocomplete: ({ suggestion, domain, token, apiKey, cancelToken, }?: {
|
|
1286
|
+
suggestion?: string;
|
|
1287
|
+
domain?: string;
|
|
1288
|
+
apiKey?: string;
|
|
1289
|
+
token?: string;
|
|
1290
|
+
cancelToken?: any;
|
|
1291
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1292
|
+
declare const fetchFilters: ({ apiKey, token, domain, }?: {
|
|
1293
|
+
domain?: string;
|
|
1294
|
+
apiKey?: string;
|
|
1295
|
+
token?: string;
|
|
1296
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1297
|
+
declare const setFilters: ({ apiKey, token, domain, filters, }?: {
|
|
1298
|
+
domain?: string;
|
|
1299
|
+
apiKey?: string;
|
|
1300
|
+
token?: string;
|
|
1301
|
+
filters?: Object[];
|
|
1302
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1303
|
+
declare const unsetFilterFromAPI: ({ apiKey, token, domain, filter, }?: {
|
|
1304
|
+
domain?: string;
|
|
1305
|
+
apiKey?: string;
|
|
1306
|
+
token?: string;
|
|
1307
|
+
filter?: {
|
|
1308
|
+
id: string;
|
|
1309
|
+
};
|
|
1310
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1311
|
+
declare const setColumnVisibility: ({ apiKey, token, domain, columns, }?: {
|
|
1312
|
+
domain?: string;
|
|
1313
|
+
apiKey?: string;
|
|
1314
|
+
token?: string;
|
|
1315
|
+
columns?: any[];
|
|
1316
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1317
|
+
declare const sendSuggestion: ({ queryId, suggestion, apiKey, domain, token, }?: {
|
|
1318
|
+
queryId?: string;
|
|
1319
|
+
suggestion?: boolean;
|
|
1320
|
+
domain?: string;
|
|
1321
|
+
apiKey?: string;
|
|
1322
|
+
token?: string;
|
|
1323
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1324
|
+
declare const fetchExploreQueries: ({ keywords, pageSize, pageNumber, domain, apiKey, token, skipQueryValidation, }?: {
|
|
1325
|
+
keywords?: string;
|
|
1326
|
+
pageSize?: number;
|
|
1327
|
+
pageNumber?: number;
|
|
1328
|
+
domain?: string;
|
|
1329
|
+
apiKey?: string;
|
|
1330
|
+
token?: string;
|
|
1331
|
+
skipQueryValidation?: boolean;
|
|
1332
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1333
|
+
declare const reportProblem: ({ message, queryId, domain, apiKey, token, }?: {
|
|
1334
|
+
message?: string;
|
|
1335
|
+
queryId?: string;
|
|
1336
|
+
domain?: string;
|
|
1337
|
+
apiKey?: string;
|
|
1338
|
+
token?: string;
|
|
1339
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1340
|
+
declare const fetchSubjectList: ({ domain, apiKey, token }: {
|
|
1341
|
+
domain: any;
|
|
1342
|
+
apiKey: any;
|
|
1343
|
+
token: any;
|
|
1344
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1345
|
+
declare const fetchDataPreview: ({ subject, domain, apiKey, token, source, numRows, cancelToken, }?: {
|
|
1346
|
+
subject?: string;
|
|
1347
|
+
domain?: string;
|
|
1348
|
+
apiKey?: string;
|
|
1349
|
+
token?: string;
|
|
1350
|
+
source?: string;
|
|
1351
|
+
numRows?: number;
|
|
1352
|
+
cancelToken?: any;
|
|
1353
|
+
}) => Promise<axios.AxiosResponse<any>>;
|
|
1354
|
+
|
|
1355
|
+
declare const transformQueryResponse: (response: AxiosResponse | undefined) => AxiosResponse;
|
|
1356
|
+
declare const transformQueryResponseColumns: (columns: Column$1[] | undefined) => Column$1[];
|
|
1357
|
+
|
|
1358
|
+
declare enum ThemeType {
|
|
1359
|
+
LIGHT = "light",
|
|
1360
|
+
DARK = "dark"
|
|
1361
|
+
}
|
|
1362
|
+
type Theme = {
|
|
1363
|
+
theme?: ThemeType;
|
|
1364
|
+
chartColors?: string[];
|
|
1365
|
+
accentColor?: string;
|
|
1366
|
+
fontFamily?: string;
|
|
1367
|
+
textColor?: string;
|
|
1368
|
+
accentTextColor?: string;
|
|
1369
|
+
dashboardTitleColor?: string;
|
|
1370
|
+
backgroundColorPrimary?: string;
|
|
1371
|
+
backgroundColorSecondary?: string;
|
|
1372
|
+
};
|
|
1373
|
+
declare const getThemeValue: (property: string) => string;
|
|
1374
|
+
declare const getThemeType: () => ThemeType;
|
|
1375
|
+
type chartColorVarsResponse = {
|
|
1376
|
+
chartColors: string[];
|
|
1377
|
+
chartColorsDark: string[];
|
|
1378
|
+
};
|
|
1379
|
+
declare const getChartColorVars: () => chartColorVarsResponse;
|
|
1380
|
+
declare const configureTheme: (customThemeConfig?: Theme) => void;
|
|
1381
|
+
|
|
1382
|
+
declare function color(): {
|
|
1383
|
+
(svg: any): void;
|
|
1384
|
+
scale(_: any): any;
|
|
1385
|
+
cells(_: any): number[] | any;
|
|
1386
|
+
cellFilter(_: any): any;
|
|
1387
|
+
shape(_: any): string | any;
|
|
1388
|
+
path(_: any): any;
|
|
1389
|
+
shapeWidth(_: any): number | any;
|
|
1390
|
+
shapeHeight(_: any): number | any;
|
|
1391
|
+
shapeRadius(_: any): number | any;
|
|
1392
|
+
shapePadding(_: any): number | any;
|
|
1393
|
+
labels(_: any): any[] | any;
|
|
1394
|
+
labelAlign(_: any): string | any;
|
|
1395
|
+
locale(_?: any): {
|
|
1396
|
+
format: any;
|
|
1397
|
+
formatPrefix: any;
|
|
1398
|
+
} | any;
|
|
1399
|
+
labelFormat(_: any): any;
|
|
1400
|
+
labelOffset(_: any): number | any;
|
|
1401
|
+
labelDelimiter(_: any): string | any;
|
|
1402
|
+
labelWrap(_: any): any;
|
|
1403
|
+
useClass(_: any): boolean | any;
|
|
1404
|
+
orient(_: any): string | any;
|
|
1405
|
+
ascending(_: any): boolean | any;
|
|
1406
|
+
classPrefix(_: any): string | any;
|
|
1407
|
+
title(_: any): string | any;
|
|
1408
|
+
titleWidth(_: any): any;
|
|
1409
|
+
textWrap(_: any): any;
|
|
1410
|
+
on(): any;
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
export { AGG_TYPES, AggType, AggTypeParams, AggTypes, AxiosResponse, CHARTS_WITHOUT_AGGREGATED_DATA, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column$1 as Column, Column 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_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_SOURCE, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PERIODIC_TYPE, PRECISION_TYPES, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QueryData, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, Scale, TABLE_TYPES, TableConfig, Theme, ThemeType, UNAUTHENTICATED_ERROR, ValueLabel, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addUserToProjectRule, aggregateData, animateInputText, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, calculateMinAndMaxSums, capitalizeFirstChar, configureTheme, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSuggestions, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSuggestions, fetchTopics, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatISODateWithPrecision, formatNextScheduleDate, formatQueryColumns, formatResetDate, formatStringDate, formatStringDateWithPrecision, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getBBoxFromRef, getBandScale, getBinLinearScale, getChartColorVars, getColumnDateRanges, getColumnNameForDateRange, getColumnTypeAmounts, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultDisplayType, getDrilldownGroupby, getEpochFromDate, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHiddenColumns, getHistogramScale, getKey, getKeyByValue, getLegendLabelsForMultiSeries, getLegendLocation, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getPadding, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryParams, getRangeForAxis, getSVGBase64, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSupportedConditionTypes, getSupportedDisplayTypes, getTableConfig, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTooltipContent, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, invertArray, isAggregation, isChartType, isColumnDateType, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDisplayTypeValid, isError500Type, isExpressionQueryValid, isISODate, isListQuery, isNumber, isObject, isSingleValueResponse, isTableConfigValid, isTableType, color as legendColor, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onlySeriesVisibilityChanged, onlyUnique, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setSorterFunction, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supports2DCharts, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, usePivotDataForChart, validateExpression };
|