@databrainhq/plugin 0.15.55 → 0.15.57
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/package.json +1 -1
- package/dist/components/Accordion/index.d.ts +0 -34
- package/dist/components/AceEditorSql/AceEditorSql.d.ts +0 -11
- package/dist/components/Alert/index.d.ts +0 -12
- package/dist/components/AutoCompleteDropdown/index.d.ts +0 -20
- package/dist/components/Badge/index.d.ts +0 -10
- package/dist/components/Button/index.d.ts +0 -14
- package/dist/components/ButtonGroup/index.d.ts +0 -16
- package/dist/components/Chart/SingleValueChart.d.ts +0 -38
- package/dist/components/Chart/index.d.ts +0 -47
- package/dist/components/ChartModal/ChartConfig.d.ts +0 -10
- package/dist/components/ChartModal/ChartModalOptions.d.ts +0 -14
- package/dist/components/ChartModal/index.d.ts +0 -3
- package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +0 -15
- package/dist/components/ChartPopup/index.d.ts +0 -28
- package/dist/components/ChartReportPanel/index.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +0 -13
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/AxisSettings.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +0 -26
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +0 -14
- package/dist/components/ChartSettingsPopup/index.d.ts +0 -3
- package/dist/components/ChartTypePanel/index.d.ts +0 -15
- package/dist/components/Checkbox/index.d.ts +0 -11
- package/dist/components/ColorField/ColorField.d.ts +0 -13
- package/dist/components/DataType/index.d.ts +0 -9
- package/dist/components/DateRangePicker/index.d.ts +0 -36
- package/dist/components/DraggableItem/index.d.ts +0 -7
- package/dist/components/DrillBreadCrumb/index.d.ts +0 -16
- package/dist/components/Error/index.d.ts +0 -6
- package/dist/components/ErrorFallback/index.d.ts +0 -2
- package/dist/components/ExternalMetricForm/index.d.ts +0 -11
- package/dist/components/FileUploader/index.d.ts +0 -6
- package/dist/components/FilterDropDown/index.d.ts +0 -32
- package/dist/components/FilterField/index.d.ts +0 -40
- package/dist/components/Flex/index.d.ts +0 -13
- package/dist/components/FloatingDropDown/index.d.ts +0 -43
- package/dist/components/FullScreenChart/index.d.ts +0 -8
- package/dist/components/GaugeLegend/index.d.ts +0 -12
- package/dist/components/GenerateMetric/index.d.ts +0 -3
- package/dist/components/GlobalFilters/AddFilter.d.ts +0 -15
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +0 -9
- package/dist/components/GlobalFilters/Filters.d.ts +0 -29
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +0 -36
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +0 -23
- package/dist/components/GlobalFilters/SearchField.d.ts +0 -10
- package/dist/components/GlobalFilters/index.d.ts +0 -82
- package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +0 -6
- package/dist/components/HorizontalStackTable/index.d.ts +0 -18
- package/dist/components/Icons/Logos/index.d.ts +0 -33
- package/dist/components/Icons/index.d.ts +0 -9
- package/dist/components/InfoTooltip/index.d.ts +0 -31
- package/dist/components/InputField/index.d.ts +0 -20
- package/dist/components/List/index.d.ts +0 -43
- package/dist/components/Loader/index.d.ts +0 -6
- package/dist/components/Menu/index.d.ts +0 -32
- package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +0 -13
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +0 -39
- package/dist/components/MetricChart/index.d.ts +0 -5
- package/dist/components/MetricCreation/MetricCreation.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/Header/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +0 -33
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +0 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +0 -11
- package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +0 -13
- package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +0 -22
- package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +0 -21
- package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +0 -15
- package/dist/components/MetricCreation/index.d.ts +0 -5
- package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +0 -18
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +0 -7
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +0 -19
- package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +0 -11
- package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/index.d.ts +0 -25
- package/dist/components/MetricList/MetricList.d.ts +0 -79
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +0 -7
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +0 -13
- package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +0 -8
- package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +0 -12
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +0 -20
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +0 -49
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +0 -7
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +0 -16
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +0 -19
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +0 -14
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +0 -17
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +0 -106
- package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +0 -11
- package/dist/components/MetricList/components/TableViewModal/index.d.ts +0 -9
- package/dist/components/MetricList/components/index.d.ts +0 -7
- package/dist/components/MetricList/index.d.ts +0 -2
- package/dist/components/MetricTable/index.d.ts +0 -7
- package/dist/components/Modal/Modal.d.ts +0 -14
- package/dist/components/Modal/ModalFooter.d.ts +0 -5
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/MultiSelectDropdown/index.d.ts +0 -45
- package/dist/components/Panel/index.d.ts +0 -17
- package/dist/components/PivotTable/PivotTableV2.d.ts +0 -23
- package/dist/components/PivotTable/index.d.ts +0 -8
- package/dist/components/PivotTable/transformData.d.ts +0 -7
- package/dist/components/PopoverMenu/index.d.ts +0 -39
- package/dist/components/Portal/index.d.ts +0 -2
- package/dist/components/RadioButton/index.d.ts +0 -16
- package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +0 -17
- package/dist/components/ScheduleEmail/index.d.ts +0 -18
- package/dist/components/SearchDropdown/index.d.ts +0 -14
- package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +0 -19
- package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +0 -44
- package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +0 -8
- package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +0 -9
- package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +0 -7
- package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +0 -3
- package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +0 -16
- package/dist/components/SearchMetricData/ChatMode/Results.d.ts +0 -23
- package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +0 -7
- package/dist/components/SearchMetricData/SearchMetricData.d.ts +0 -5
- package/dist/components/SearchMetricData/index.d.ts +0 -1
- package/dist/components/SearchTab/index.d.ts +0 -13
- package/dist/components/Select/index.d.ts +0 -47
- package/dist/components/SelfHostControl/index.d.ts +0 -4
- package/dist/components/SkeletonLoader/index.d.ts +0 -9
- package/dist/components/SpinningLoader/index.d.ts +0 -2
- package/dist/components/Switch/SwitchInput.d.ts +0 -10
- package/dist/components/Switch/index.d.ts +0 -11
- package/dist/components/Tab/index.d.ts +0 -14
- package/dist/components/Table/DebouncedInput.d.ts +0 -6
- package/dist/components/Table/Filter.d.ts +0 -7
- package/dist/components/Table/index.d.ts +0 -39
- package/dist/components/Tabs/index.d.ts +0 -41
- package/dist/components/TagInputField/index.d.ts +0 -33
- package/dist/components/Text/index.d.ts +0 -15
- package/dist/components/TextAreaField/index.d.ts +0 -24
- package/dist/components/ThemeBlock/index.d.ts +0 -8
- package/dist/components/TimeGrainField/index.d.ts +0 -17
- package/dist/components/TimeSeriesSettings/index.d.ts +0 -8
- package/dist/components/ToggleIconBtn/index.d.ts +0 -14
- package/dist/components/index.d.ts +0 -67
- package/dist/consts/api.d.ts +0 -81
- package/dist/consts/app.d.ts +0 -157
- package/dist/consts/index.d.ts +0 -2
- package/dist/consts/metricOptions.d.ts +0 -209
- package/dist/consts/validations.d.ts +0 -24
- package/dist/containers/Dashboard/Dashboard.d.ts +0 -85
- package/dist/containers/Dashboard/DashboardProvider.d.ts +0 -7
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -54
- package/dist/containers/Dashboard/index.d.ts +0 -2
- package/dist/containers/DbnStyles.d.ts +0 -14
- package/dist/containers/Metric/EmbeddedMetric.d.ts +0 -55
- package/dist/containers/Metric/MergedMetric.d.ts +0 -54
- package/dist/containers/Metric/index.d.ts +0 -97
- package/dist/containers/PluginProvider.d.ts +0 -7
- package/dist/containers/index.d.ts +0 -3
- package/dist/helpers/adaptiveFormatter.d.ts +0 -6
- package/dist/helpers/areArraysEqual.d.ts +0 -1
- package/dist/helpers/autoCompleteHelpers.d.ts +0 -95
- package/dist/helpers/cardActions.d.ts +0 -5
- package/dist/helpers/chartOptions.d.ts +0 -93
- package/dist/helpers/checkIsElementInViewport.d.ts +0 -1
- package/dist/helpers/conditionalFormatting.d.ts +0 -3
- package/dist/helpers/copyToClipboard.d.ts +0 -4
- package/dist/helpers/createMetric.d.ts +0 -35
- package/dist/helpers/darkColorIdentifier.d.ts +0 -2
- package/dist/helpers/dateFormatter.d.ts +0 -1
- package/dist/helpers/generateColorPalette.d.ts +0 -1
- package/dist/helpers/generateTimeRangeWhereClause.d.ts +0 -13
- package/dist/helpers/getColumnType.d.ts +0 -2
- package/dist/helpers/getComboRangeLabel.d.ts +0 -5
- package/dist/helpers/getFilterAppliedQuery.d.ts +0 -71
- package/dist/helpers/getModifiedQuery.d.ts +0 -78
- package/dist/helpers/getNextScheduledTime.d.ts +0 -13
- package/dist/helpers/getTimeFilterValue.d.ts +0 -12
- package/dist/helpers/getValidRlsConditionOptions.d.ts +0 -16
- package/dist/helpers/groupArray.d.ts +0 -1
- package/dist/helpers/groupBy.d.ts +0 -25
- package/dist/helpers/index.d.ts +0 -16
- package/dist/helpers/numberFormatter.d.ts +0 -1
- package/dist/helpers/setOnDateChange.d.ts +0 -11
- package/dist/helpers/sqlMetadata.d.ts +0 -7
- package/dist/helpers/timeseries.d.ts +0 -35
- package/dist/helpers/timeseriesOption.d.ts +0 -72
- package/dist/helpers/tooltipFormatter.d.ts +0 -27
- package/dist/helpers/treeMap.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/useArchiveMetric.d.ts +0 -10
- package/dist/hooks/useAutoCompleteOptions.d.ts +0 -4
- package/dist/hooks/useClientDashboardLayout.d.ts +0 -21
- package/dist/hooks/useDashboardContext.d.ts +0 -39
- package/dist/hooks/useDatasetMetric.d.ts +0 -50
- package/dist/hooks/useDebounce.d.ts +0 -2
- package/dist/hooks/useDownloadRawCsv.d.ts +0 -21
- package/dist/hooks/useDrag.d.ts +0 -10
- package/dist/hooks/useDragAndDropState.d.ts +0 -10
- package/dist/hooks/useDrop.d.ts +0 -13
- package/dist/hooks/useEmbeddedMetric.d.ts +0 -27
- package/dist/hooks/useExternalMetric.d.ts +0 -55
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +0 -16
- package/dist/hooks/useGenerateMetric.d.ts +0 -64
- package/dist/hooks/useMetricCard.d.ts +0 -130
- package/dist/hooks/useMetricConfig.d.ts +0 -63
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +0 -37
- package/dist/hooks/useOutsideAlerter.d.ts +0 -14
- package/dist/hooks/usePublishArchivedMetrics.d.ts +0 -5
- package/dist/hooks/usePythonResults.d.ts +0 -17
- package/dist/hooks/useScheduleEmail.d.ts +0 -38
- package/dist/hooks/useSearch.d.ts +0 -55
- package/dist/hooks/useUnderlyingData.d.ts +0 -32
- package/dist/index.d.ts +0 -8
- package/dist/queries/externalDashboard.mutation.d.ts +0 -61
- package/dist/queries/externalDashboard.query.d.ts +0 -20
- package/dist/queries/index.d.ts +0 -1
- package/dist/queries/metric.mutation.d.ts +0 -57
- package/dist/queries/metric.query.d.ts +0 -12
- package/dist/types/app.d.ts +0 -962
- package/dist/types/dragAndDropProps.d.ts +0 -70
- package/dist/types/index.d.ts +0 -3
- package/dist/types/metricCreate.d.ts +0 -766
- package/dist/types/queryTypes.d.ts +0 -350
- package/dist/usa-c14e93e4.mjs +0 -15112
- package/dist/utils/arrayToCsvString.d.ts +0 -6
- package/dist/utils/colors.d.ts +0 -2
- package/dist/utils/fetcher.d.ts +0 -13
- package/dist/utils/getChartAttributes.d.ts +0 -98
- package/dist/utils/getChartImage.d.ts +0 -3
- package/dist/utils/getChartOptions.d.ts +0 -42
- package/dist/utils/getFormattedDataType.d.ts +0 -1
- package/dist/utils/getNoAxisChartOptions.d.ts +0 -25
- package/dist/utils/getValidJson.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/pivotDataTransform.d.ts +0 -7
- package/dist/utils/popoverPosition.d.ts +0 -2
- package/dist/utils/theme.d.ts +0 -42
- package/dist/webcomponents.d.ts +0 -11
- package/dist/webcomponents.es.js +0 -223696
- package/dist/webcomponents.umd.js +0 -4399
- package/dist/world-8db01cf5.mjs +0 -45896
|
@@ -1,766 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import { RlsCondition, FloatingDropDownOption, ChartSettingsType, TableColumn, PivotDrillState, UseDragProps, DndStateProp, Modifiers, ClientColumnType } from '@/types';
|
|
4
|
-
import { ExternalMetrics } from '@/types/queryTypes';
|
|
5
|
-
import { MetricCardProps } from '@/components';
|
|
6
|
-
type ColumnData = {
|
|
7
|
-
name: string;
|
|
8
|
-
datatype: string;
|
|
9
|
-
as: string;
|
|
10
|
-
};
|
|
11
|
-
export type EmbeddedMetricCreationProps = {
|
|
12
|
-
clientId: string;
|
|
13
|
-
companyId: string;
|
|
14
|
-
isLiveMode: boolean;
|
|
15
|
-
externalDashboardId: string;
|
|
16
|
-
userProvidedDashboardId: string;
|
|
17
|
-
variant?: 'static' | 'floating';
|
|
18
|
-
chartColors?: string[];
|
|
19
|
-
setShowMetricCreateModal: Dispatch<SetStateAction<boolean>>;
|
|
20
|
-
isShowMetricCreateModal: boolean;
|
|
21
|
-
metric?: ExternalMetrics;
|
|
22
|
-
metricData?: Record<string, any>[];
|
|
23
|
-
workspaceId: string;
|
|
24
|
-
token: string;
|
|
25
|
-
tenancyType: string;
|
|
26
|
-
clientColumnType: ClientColumnType;
|
|
27
|
-
datasourceId: string;
|
|
28
|
-
};
|
|
29
|
-
export type HeaderProps = {
|
|
30
|
-
heading: string;
|
|
31
|
-
setShowMetricCreateModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
32
|
-
isDisableSaveBtn: boolean;
|
|
33
|
-
setShowSaveMetricModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
34
|
-
};
|
|
35
|
-
export type DatasetProps = {
|
|
36
|
-
setselectTable: React.Dispatch<React.SetStateAction<TableObjectType | undefined>>;
|
|
37
|
-
selectTable: TableObjectType | undefined;
|
|
38
|
-
tableList: TableObjectType[];
|
|
39
|
-
};
|
|
40
|
-
export type MetricsValue = {
|
|
41
|
-
value: string;
|
|
42
|
-
as: string;
|
|
43
|
-
};
|
|
44
|
-
export type CustomTableObject = {
|
|
45
|
-
tableName: string;
|
|
46
|
-
columns: {
|
|
47
|
-
name: string;
|
|
48
|
-
as: string;
|
|
49
|
-
datatype: string;
|
|
50
|
-
}[];
|
|
51
|
-
clientColumn: string;
|
|
52
|
-
};
|
|
53
|
-
export type TableObjectType = {
|
|
54
|
-
id: string;
|
|
55
|
-
columns: string[];
|
|
56
|
-
companyId: string;
|
|
57
|
-
tableName: string;
|
|
58
|
-
schemaName: string;
|
|
59
|
-
recentUpdatedAt: number;
|
|
60
|
-
columnsWithDataType: TableColumn[];
|
|
61
|
-
type?: string;
|
|
62
|
-
alias?: string;
|
|
63
|
-
sql?: string;
|
|
64
|
-
clientColumn?: string;
|
|
65
|
-
};
|
|
66
|
-
export type AiQueryType = {
|
|
67
|
-
prompt: string;
|
|
68
|
-
values: FieldValues;
|
|
69
|
-
onSuccess: () => void;
|
|
70
|
-
};
|
|
71
|
-
export type DraggableMetricItemData = {
|
|
72
|
-
table: TableObjectType;
|
|
73
|
-
column: TableColumn;
|
|
74
|
-
};
|
|
75
|
-
export type MetricVariableType = {
|
|
76
|
-
name: string;
|
|
77
|
-
type: FloatingDropDownOption;
|
|
78
|
-
createdAt: string;
|
|
79
|
-
table?: FloatingDropDownOption;
|
|
80
|
-
column?: FloatingDropDownOption;
|
|
81
|
-
defaultValue?: string;
|
|
82
|
-
customQuery?: string;
|
|
83
|
-
customColumnName?: string;
|
|
84
|
-
dependOnOptions: {
|
|
85
|
-
type?: string;
|
|
86
|
-
filter?: FloatingDropDownOption;
|
|
87
|
-
column?: string;
|
|
88
|
-
}[];
|
|
89
|
-
isClientScoped?: boolean;
|
|
90
|
-
clientColumn?: {
|
|
91
|
-
name?: FloatingDropDownOption;
|
|
92
|
-
datatype?: FloatingDropDownOption;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export type CastColumn = 'integer' | 'decimal' | 'date';
|
|
96
|
-
export type SelectedColumn = {
|
|
97
|
-
name: string;
|
|
98
|
-
datatype: string;
|
|
99
|
-
table: TableObjectType;
|
|
100
|
-
alias: string;
|
|
101
|
-
parentAlias: string;
|
|
102
|
-
helperFunction?: string;
|
|
103
|
-
type: 'DEFAULT' | 'HELPER_FUNCTION' | 'CUSTOM' | 'PYTHON' | 'ARITHMETIC';
|
|
104
|
-
index: number;
|
|
105
|
-
configType: 'DIMENSION' | 'AGGREGATE' | 'FILTER';
|
|
106
|
-
dropType: 'METRIC' | 'DIMENSION' | 'FILTER';
|
|
107
|
-
sql: string;
|
|
108
|
-
functionConfiguration?: {
|
|
109
|
-
dateFormat?: string;
|
|
110
|
-
};
|
|
111
|
-
synonyms?: string[];
|
|
112
|
-
sortType?: 'ASC' | 'DESC';
|
|
113
|
-
limit?: number;
|
|
114
|
-
filterMethod?: string;
|
|
115
|
-
filterType?: 'custom' | 'default' | 'agr' | 'dimension' | 'time' | 'client' | 'rls_filter';
|
|
116
|
-
filterValue?: {
|
|
117
|
-
stringValue?: string;
|
|
118
|
-
numberValue?: number;
|
|
119
|
-
stringArray?: string[];
|
|
120
|
-
numberArray?: number[];
|
|
121
|
-
timeValue?: {
|
|
122
|
-
startDate: string;
|
|
123
|
-
endDate: string;
|
|
124
|
-
timeFilter: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
relationOperator?: 'AND' | 'OR';
|
|
128
|
-
draggableItemData: DraggableMetricItemData;
|
|
129
|
-
keyword?: string;
|
|
130
|
-
cast?: FloatingDropDownOption;
|
|
131
|
-
arithmeticConfig?: {
|
|
132
|
-
firstOperand: SelectedColumn;
|
|
133
|
-
secondOperand: SelectedColumn;
|
|
134
|
-
operator: FloatingDropDownOption;
|
|
135
|
-
};
|
|
136
|
-
columnSynonyms?: string[];
|
|
137
|
-
isDisable?: boolean;
|
|
138
|
-
patterns?: RegExp;
|
|
139
|
-
dataMartColumnAlias?: string;
|
|
140
|
-
metricFilter?: string;
|
|
141
|
-
};
|
|
142
|
-
export type SearchColumn = {
|
|
143
|
-
name: string;
|
|
144
|
-
datatype: string;
|
|
145
|
-
tableName: string;
|
|
146
|
-
schemaName: string;
|
|
147
|
-
alias: string;
|
|
148
|
-
patterns?: RegExp;
|
|
149
|
-
functionsSynonyms?: string[];
|
|
150
|
-
columnSynonyms?: string[];
|
|
151
|
-
distinctValues?: string[];
|
|
152
|
-
filtersSynonyms?: string[];
|
|
153
|
-
distinctValueSynonyms?: string[];
|
|
154
|
-
type: 'COLUMN' | 'VALUE';
|
|
155
|
-
};
|
|
156
|
-
export type SearchKeyType = {
|
|
157
|
-
key: string;
|
|
158
|
-
type: 'VALID' | 'INVALID';
|
|
159
|
-
};
|
|
160
|
-
export type SelectedFilter = {
|
|
161
|
-
method: string;
|
|
162
|
-
alias: string;
|
|
163
|
-
parentAlias: string;
|
|
164
|
-
type: 'custom' | 'default' | 'agr' | 'dimension' | 'time' | 'client' | 'rls_filter';
|
|
165
|
-
dataType: string;
|
|
166
|
-
value: {
|
|
167
|
-
stringValue?: string;
|
|
168
|
-
numberValue?: number;
|
|
169
|
-
stringArray?: string[];
|
|
170
|
-
numberArray?: number[];
|
|
171
|
-
timeValue?: {
|
|
172
|
-
startDate: string;
|
|
173
|
-
endDate: string;
|
|
174
|
-
timeFilter: string;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
relationOperator?: 'AND' | 'OR';
|
|
178
|
-
sql: string;
|
|
179
|
-
name: string;
|
|
180
|
-
table: TableObjectType;
|
|
181
|
-
draggableItemData: DraggableMetricItemData;
|
|
182
|
-
filterSynonmns?: string[];
|
|
183
|
-
keyword?: string;
|
|
184
|
-
};
|
|
185
|
-
export type NewDatasetSettings = {
|
|
186
|
-
type?: 'NEW';
|
|
187
|
-
selectedDims?: SelectedColumn[];
|
|
188
|
-
selectedMainTable?: TableObjectType;
|
|
189
|
-
selectedMetrics?: SelectedColumn[];
|
|
190
|
-
selectedGroupBy?: SelectedColumn[];
|
|
191
|
-
metrics: MetricsValue[];
|
|
192
|
-
selectedDimensions: string[];
|
|
193
|
-
configuration?: DatasetMetricCreationConfiguration;
|
|
194
|
-
sqlColumnList?: TableColumn[];
|
|
195
|
-
isSqlMode?: boolean;
|
|
196
|
-
subQuery?: string;
|
|
197
|
-
isPythonMode?: boolean;
|
|
198
|
-
pythonCode?: string;
|
|
199
|
-
isAutoCompleteMode?: boolean;
|
|
200
|
-
isChatMode?: boolean;
|
|
201
|
-
selectedAutoCompleteColumns?: SelectedColumn[];
|
|
202
|
-
isDataMartQuery?: boolean;
|
|
203
|
-
chatQuestion?: string;
|
|
204
|
-
};
|
|
205
|
-
export type ForcastType = {
|
|
206
|
-
isEnable: boolean;
|
|
207
|
-
forecastPeriods: number;
|
|
208
|
-
modelName: string;
|
|
209
|
-
confidenceInterval: number;
|
|
210
|
-
timeColumnName: string;
|
|
211
|
-
measureColumnName: string;
|
|
212
|
-
timeGrain: string;
|
|
213
|
-
yearlySeasonality: boolean;
|
|
214
|
-
weeklySeasonality: boolean;
|
|
215
|
-
dailySeasonality: boolean;
|
|
216
|
-
orderP: number;
|
|
217
|
-
orderD: number;
|
|
218
|
-
orderQ: number;
|
|
219
|
-
trend: {
|
|
220
|
-
value: string;
|
|
221
|
-
label: string;
|
|
222
|
-
};
|
|
223
|
-
growth: string;
|
|
224
|
-
};
|
|
225
|
-
export type DatasetSettings = {
|
|
226
|
-
timeColumn: FloatingDropDownOption;
|
|
227
|
-
timeGrainValue: string;
|
|
228
|
-
metrics: MetricsValue[];
|
|
229
|
-
selectedDimensions: string[];
|
|
230
|
-
isIncludeTime: boolean;
|
|
231
|
-
clientColumn: FloatingDropDownOption;
|
|
232
|
-
customColumnList: MetricsValue[];
|
|
233
|
-
timeGrainVal: FloatingDropDownOption;
|
|
234
|
-
comparisonLag: number;
|
|
235
|
-
forecast?: ForcastType;
|
|
236
|
-
configuration?: DatasetMetricCreationConfiguration;
|
|
237
|
-
isNewDataset: boolean;
|
|
238
|
-
selectedManageColumns?: FloatingDropDownOption[];
|
|
239
|
-
selectedGroupColumns?: FloatingDropDownOption[];
|
|
240
|
-
selectedNewManageColumns?: FloatingDropDownOption[];
|
|
241
|
-
selectedCustomColumns?: MetricsValue[];
|
|
242
|
-
selectedCustomGroups?: MetricsValue[];
|
|
243
|
-
createdNewColumnOptions?: FloatingDropDownOption[];
|
|
244
|
-
createdFilters: CreateNewFilter[];
|
|
245
|
-
createdSorts: CreateNewSort[];
|
|
246
|
-
comparisonLagSettings: ComparisonLagSettings;
|
|
247
|
-
selectedJoins: SelectedJoin[];
|
|
248
|
-
selectedTable: FloatingDropDownOption;
|
|
249
|
-
chatQuestion?: string;
|
|
250
|
-
columns?: SqlColumns;
|
|
251
|
-
summary?: string[];
|
|
252
|
-
timestamp?: number;
|
|
253
|
-
queryTimestamp?: number;
|
|
254
|
-
newDatasetSettings?: NewDatasetSettings;
|
|
255
|
-
isUseRawSQL?: boolean;
|
|
256
|
-
};
|
|
257
|
-
export type ConstructMetricProps = {
|
|
258
|
-
columnList: FloatingDropDownOption[];
|
|
259
|
-
dateTimeColumnList: ColumnData[];
|
|
260
|
-
companyId: string;
|
|
261
|
-
tableName: string;
|
|
262
|
-
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
263
|
-
setError: React.Dispatch<React.SetStateAction<string>>;
|
|
264
|
-
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
265
|
-
setData: React.Dispatch<React.SetStateAction<any[] | undefined>>;
|
|
266
|
-
database: string;
|
|
267
|
-
clientId: string;
|
|
268
|
-
clientColumn?: string;
|
|
269
|
-
databaseId: string;
|
|
270
|
-
datasetSettings?: DatasetSettings;
|
|
271
|
-
setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings | undefined>>;
|
|
272
|
-
setGroupByList: React.Dispatch<React.SetStateAction<string[]>>;
|
|
273
|
-
datasourceId: string;
|
|
274
|
-
};
|
|
275
|
-
export type OnDropColumnParams = {
|
|
276
|
-
table: TableObjectType;
|
|
277
|
-
column: TableColumn;
|
|
278
|
-
sorting: DndStateProp['sorting'];
|
|
279
|
-
identifier?: UseDragProps['identifier'];
|
|
280
|
-
type: 'METRIC' | 'DIMENSION';
|
|
281
|
-
};
|
|
282
|
-
export type OnRemoveColumnParams = {
|
|
283
|
-
column: SelectedColumn;
|
|
284
|
-
type: 'METRIC' | 'DIMENSION';
|
|
285
|
-
};
|
|
286
|
-
export type OnGenerateMetric = {
|
|
287
|
-
prevConfiguration?: DatasetMetricCreationConfiguration;
|
|
288
|
-
onSuccess?: () => void;
|
|
289
|
-
prevLimit?: string;
|
|
290
|
-
chartFieldParams?: SetChartFieldParams;
|
|
291
|
-
updatedDims?: SelectedColumn[];
|
|
292
|
-
updatedMetrics?: SelectedColumn[];
|
|
293
|
-
updatedAutoCompleteCols?: SelectedColumn[];
|
|
294
|
-
selectedMainTable?: TableObjectType;
|
|
295
|
-
isPivotAction?: boolean;
|
|
296
|
-
isTimeseriesAction?: boolean;
|
|
297
|
-
isGroupByAction?: boolean;
|
|
298
|
-
isAddComparisonAction?: boolean;
|
|
299
|
-
sqlChartType?: string;
|
|
300
|
-
updatedSqlColumnList?: TableColumn[];
|
|
301
|
-
updatedTable?: FloatingDropDownOption;
|
|
302
|
-
};
|
|
303
|
-
export type SetChartFieldParams = {
|
|
304
|
-
chartMetrics?: string[];
|
|
305
|
-
chartDimensions?: string[];
|
|
306
|
-
chartAggregateColumns?: string[];
|
|
307
|
-
chartType?: ChartSettingsType['chartType'];
|
|
308
|
-
resultData?: any[];
|
|
309
|
-
configAggregates?: Aggregate[];
|
|
310
|
-
pivotHeaderColumns?: string[];
|
|
311
|
-
chartTimeColumns?: string[];
|
|
312
|
-
dbName?: string;
|
|
313
|
-
setChartSettings?: (value: React.SetStateAction<ChartSettingsType>) => void;
|
|
314
|
-
chartSettings?: ChartSettingsType;
|
|
315
|
-
configuration?: DatasetMetricCreationConfiguration;
|
|
316
|
-
};
|
|
317
|
-
export type MetricOutputProps = {
|
|
318
|
-
newMetricCreation: {
|
|
319
|
-
onDropColumn: ({ column, table, type }: OnDropColumnParams) => void;
|
|
320
|
-
selectedDims: SelectedColumn[];
|
|
321
|
-
selectedMetrics: SelectedColumn[];
|
|
322
|
-
functionOptions: (col?: SelectedColumn, dataType?: string) => FloatingDropDownOption[];
|
|
323
|
-
onRemoveColumn: ({ column, type }: OnRemoveColumnParams) => void;
|
|
324
|
-
onChangeHelperFunction: ({ column, helperFunction, type, }: OnChangeHelperFunctionParams) => void;
|
|
325
|
-
onChangeAlias: ({ alias, column, type }: OnChangeAliasParams) => void;
|
|
326
|
-
dimModifiers: Modifiers;
|
|
327
|
-
metricModifiers: Modifiers;
|
|
328
|
-
isTimeSeries: boolean;
|
|
329
|
-
};
|
|
330
|
-
drillProps: {
|
|
331
|
-
onChangeDrillDown: (params: any, isEnable?: boolean, isChange?: boolean) => void;
|
|
332
|
-
drillLevel: number;
|
|
333
|
-
dimensions: string[];
|
|
334
|
-
isDrillEnableGroupBy: boolean;
|
|
335
|
-
drillFilters: {
|
|
336
|
-
columnName: string;
|
|
337
|
-
value: any;
|
|
338
|
-
}[];
|
|
339
|
-
onDrillLevelClick: (index: number) => void;
|
|
340
|
-
};
|
|
341
|
-
data: any[] | undefined;
|
|
342
|
-
isUpdateMetric?: boolean;
|
|
343
|
-
isSortReversed?: boolean;
|
|
344
|
-
query?: string;
|
|
345
|
-
error: string;
|
|
346
|
-
clientName?: string;
|
|
347
|
-
isLoading: boolean;
|
|
348
|
-
isEnablePivotTable: boolean;
|
|
349
|
-
isEnableGauge: boolean;
|
|
350
|
-
groupbyList: any[];
|
|
351
|
-
hasNumberKeys: boolean;
|
|
352
|
-
configuration: DatasetMetricCreationConfiguration;
|
|
353
|
-
setQuery?: React.Dispatch<React.SetStateAction<string>>;
|
|
354
|
-
setData?: React.Dispatch<React.SetStateAction<any[] | undefined>>;
|
|
355
|
-
setLoading?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
356
|
-
setError?: React.Dispatch<React.SetStateAction<string>>;
|
|
357
|
-
isEnableSingleDimension?: boolean;
|
|
358
|
-
isEnableSingleMetrics?: boolean;
|
|
359
|
-
destinationId?: string;
|
|
360
|
-
outputHeaderProps: {
|
|
361
|
-
setShowChartCustomProperties: React.Dispatch<React.SetStateAction<boolean>>;
|
|
362
|
-
setShowChartType: React.Dispatch<React.SetStateAction<boolean>>;
|
|
363
|
-
setShowSortPanel: React.Dispatch<React.SetStateAction<boolean>>;
|
|
364
|
-
setShowFilters: React.Dispatch<React.SetStateAction<boolean>>;
|
|
365
|
-
};
|
|
366
|
-
dbName?: string;
|
|
367
|
-
previewTableDataList: any[] | undefined;
|
|
368
|
-
enableQueryTab?: boolean;
|
|
369
|
-
rlsConditions?: RlsCondition[] | undefined;
|
|
370
|
-
onChangeFilterValue?: (name: string, value: string) => void;
|
|
371
|
-
moreTabs?: {
|
|
372
|
-
name: string;
|
|
373
|
-
tab: JSX.Element;
|
|
374
|
-
tabContent: JSX.Element;
|
|
375
|
-
}[];
|
|
376
|
-
chartColors?: string[];
|
|
377
|
-
chartSettings: ChartSettingsType;
|
|
378
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
379
|
-
isDisableSqlBtn: boolean;
|
|
380
|
-
setShowSqlModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
381
|
-
pivotDrillState: PivotDrillState;
|
|
382
|
-
};
|
|
383
|
-
export type CompanyIntegration = {
|
|
384
|
-
id: string;
|
|
385
|
-
name: string;
|
|
386
|
-
} | undefined;
|
|
387
|
-
export type ClickActionsConfig = {
|
|
388
|
-
card: {
|
|
389
|
-
isEnable: boolean;
|
|
390
|
-
baseUrl: string;
|
|
391
|
-
dynamic: string;
|
|
392
|
-
route: string;
|
|
393
|
-
routeType: string;
|
|
394
|
-
};
|
|
395
|
-
chart: {
|
|
396
|
-
isEnable: boolean;
|
|
397
|
-
baseUrl: string;
|
|
398
|
-
dynamic: string;
|
|
399
|
-
route: string;
|
|
400
|
-
routeType: string;
|
|
401
|
-
valueColumn?: string;
|
|
402
|
-
isOpenInNewTab?: boolean;
|
|
403
|
-
};
|
|
404
|
-
underlyingData?: {
|
|
405
|
-
isEnable?: boolean;
|
|
406
|
-
sql?: string;
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
export type DrillDownSetting = {
|
|
410
|
-
selectedMeasures: string[];
|
|
411
|
-
selectedDimensions: string[];
|
|
412
|
-
isEnableGroupBy: boolean;
|
|
413
|
-
};
|
|
414
|
-
export type ComparisonLagSettings = {
|
|
415
|
-
column: FloatingDropDownOption;
|
|
416
|
-
timeGrain: FloatingDropDownOption;
|
|
417
|
-
periodLag: number;
|
|
418
|
-
differenceType: 'PERCENTAGE_DIFFERENCE' | 'DIFFERENCE';
|
|
419
|
-
timeColumnLabel: string;
|
|
420
|
-
};
|
|
421
|
-
export type CreatedNewColumn = {
|
|
422
|
-
columnName: FloatingDropDownOption;
|
|
423
|
-
function: FloatingDropDownOption;
|
|
424
|
-
alias: string;
|
|
425
|
-
};
|
|
426
|
-
export type SelectedJoin = {
|
|
427
|
-
tableName: FloatingDropDownOption;
|
|
428
|
-
conditions: {
|
|
429
|
-
firstOperand: FloatingDropDownOption;
|
|
430
|
-
secondOperand: FloatingDropDownOption;
|
|
431
|
-
operator: FloatingDropDownOption;
|
|
432
|
-
}[];
|
|
433
|
-
joinType: FloatingDropDownOption;
|
|
434
|
-
};
|
|
435
|
-
export type CreateNewFilter = {
|
|
436
|
-
tableName: FloatingDropDownOption;
|
|
437
|
-
columnName: FloatingDropDownOption;
|
|
438
|
-
operator: FloatingDropDownOption;
|
|
439
|
-
value: {
|
|
440
|
-
stringValue?: string;
|
|
441
|
-
numberValue?: number;
|
|
442
|
-
stringArray?: string[];
|
|
443
|
-
numberArray?: number[];
|
|
444
|
-
timeValue?: {
|
|
445
|
-
startDate: string;
|
|
446
|
-
endDate: string;
|
|
447
|
-
timeFilter: string;
|
|
448
|
-
label?: string;
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
|
-
relationOperator?: FloatingDropDownOption;
|
|
452
|
-
type: 'custom' | 'default' | 'client';
|
|
453
|
-
sql: string;
|
|
454
|
-
name: string;
|
|
455
|
-
isSaved?: boolean;
|
|
456
|
-
};
|
|
457
|
-
export type CreateNewSort = {
|
|
458
|
-
columnName: FloatingDropDownOption;
|
|
459
|
-
method: FloatingDropDownOption;
|
|
460
|
-
tableName: FloatingDropDownOption;
|
|
461
|
-
};
|
|
462
|
-
export type GetFilterDropDownType = ({ datatype, operator, }: {
|
|
463
|
-
datatype: string;
|
|
464
|
-
operator: string;
|
|
465
|
-
}) => 'NULL' | 'DATE_RANGE' | 'TIME_FILTER' | 'DATE_PICKER' | 'MULTI_FILTER_DROPDOWN' | 'INPUT_NUMBER_FIELD' | 'INPUT_TEXT_FIELD' | 'FILTER_DROPDOWN';
|
|
466
|
-
export type JoinCondition = {
|
|
467
|
-
firstOperand: {
|
|
468
|
-
parentAlias: string;
|
|
469
|
-
columnName: string;
|
|
470
|
-
};
|
|
471
|
-
secondOperand: {
|
|
472
|
-
parentAlias: string;
|
|
473
|
-
columnName: string;
|
|
474
|
-
};
|
|
475
|
-
operator?: string;
|
|
476
|
-
};
|
|
477
|
-
export type Join = {
|
|
478
|
-
conditions: JoinCondition[];
|
|
479
|
-
name: string;
|
|
480
|
-
alias: string;
|
|
481
|
-
schema: string;
|
|
482
|
-
joinType?: string;
|
|
483
|
-
};
|
|
484
|
-
export type Table = {
|
|
485
|
-
name: string;
|
|
486
|
-
alias: string;
|
|
487
|
-
schema: string;
|
|
488
|
-
id: string;
|
|
489
|
-
joins: Join[];
|
|
490
|
-
type?: 'custom' | 'default';
|
|
491
|
-
};
|
|
492
|
-
export type Aggregate = {
|
|
493
|
-
method: string;
|
|
494
|
-
columnName: string;
|
|
495
|
-
alias: string;
|
|
496
|
-
parentAlias: string;
|
|
497
|
-
dataType: string;
|
|
498
|
-
cast?: CastColumn;
|
|
499
|
-
type: 'custom' | 'default' | 'arithmetic_column';
|
|
500
|
-
arithmeticConfig?: {
|
|
501
|
-
firstOperand: Aggregate;
|
|
502
|
-
secondOperand: Aggregate;
|
|
503
|
-
operator: string;
|
|
504
|
-
};
|
|
505
|
-
filter?: string;
|
|
506
|
-
};
|
|
507
|
-
export type Dimension = {
|
|
508
|
-
columnName: string;
|
|
509
|
-
alias: string;
|
|
510
|
-
parentAlias: string;
|
|
511
|
-
timeGrain?: string;
|
|
512
|
-
dataType: string;
|
|
513
|
-
helperFunction?: string;
|
|
514
|
-
labelType?: string;
|
|
515
|
-
functionConfiguration?: {
|
|
516
|
-
dateFormat?: string;
|
|
517
|
-
};
|
|
518
|
-
cast?: CastColumn;
|
|
519
|
-
type: 'custom' | 'default' | 'arithmetic_column';
|
|
520
|
-
arithmeticConfig?: {
|
|
521
|
-
firstOperand: Dimension;
|
|
522
|
-
secondOperand: Dimension;
|
|
523
|
-
operator: string;
|
|
524
|
-
};
|
|
525
|
-
};
|
|
526
|
-
export type Filter = {
|
|
527
|
-
method: string;
|
|
528
|
-
columnName: string;
|
|
529
|
-
alias: string;
|
|
530
|
-
parentAlias: string;
|
|
531
|
-
value: string | number | string[] | number[] | {
|
|
532
|
-
from: string;
|
|
533
|
-
to: string;
|
|
534
|
-
} | {
|
|
535
|
-
startDate: string;
|
|
536
|
-
endDate: string;
|
|
537
|
-
timeFilter: string;
|
|
538
|
-
};
|
|
539
|
-
type: 'custom' | 'default' | 'agr' | 'dimension' | 'time' | 'client' | 'rls_filter' | 'number_range';
|
|
540
|
-
dataType: string;
|
|
541
|
-
relationOperator?: 'AND' | 'OR';
|
|
542
|
-
};
|
|
543
|
-
export type Order = {
|
|
544
|
-
method: string;
|
|
545
|
-
name: string;
|
|
546
|
-
type?: 'custom' | 'default' | 'selected_column' | 'formatted_date';
|
|
547
|
-
formattedColumn?: Dimension;
|
|
548
|
-
};
|
|
549
|
-
export type Forcast = {
|
|
550
|
-
isEnable: boolean;
|
|
551
|
-
forecastPeriods: number;
|
|
552
|
-
modelName: string;
|
|
553
|
-
confidenceInterval: number;
|
|
554
|
-
timeColumnName: string;
|
|
555
|
-
measureColumnName: string;
|
|
556
|
-
timeGrain: string;
|
|
557
|
-
yearlySeasonality: boolean;
|
|
558
|
-
weeklySeasonality: boolean;
|
|
559
|
-
dailySeasonality: boolean;
|
|
560
|
-
orderP: number;
|
|
561
|
-
orderD: number;
|
|
562
|
-
orderQ: number;
|
|
563
|
-
trend: {
|
|
564
|
-
value: string;
|
|
565
|
-
label: string;
|
|
566
|
-
};
|
|
567
|
-
growth: string;
|
|
568
|
-
};
|
|
569
|
-
export type TableType = string;
|
|
570
|
-
export type GroupByColumn = {
|
|
571
|
-
columnName: string;
|
|
572
|
-
alias: string;
|
|
573
|
-
parentAlias: string;
|
|
574
|
-
timeGrain?: string;
|
|
575
|
-
helperFunction?: string;
|
|
576
|
-
type: 'custom' | 'default';
|
|
577
|
-
dataType: string;
|
|
578
|
-
functionConfiguration?: {
|
|
579
|
-
dateFormat?: string;
|
|
580
|
-
};
|
|
581
|
-
cast?: CastColumn;
|
|
582
|
-
};
|
|
583
|
-
export type DatasetMetricCreationConfiguration = {
|
|
584
|
-
table: Table;
|
|
585
|
-
aggregates: Aggregate[];
|
|
586
|
-
dimensions: Dimension[];
|
|
587
|
-
filters: Filter[];
|
|
588
|
-
orders: Order[];
|
|
589
|
-
limit: string;
|
|
590
|
-
isEnableDrill: boolean;
|
|
591
|
-
forecast?: Forcast;
|
|
592
|
-
rlsValues?: Record<string, string | number>;
|
|
593
|
-
groupByColumnList?: GroupByColumn[];
|
|
594
|
-
rlsConditions?: RlsCondition[];
|
|
595
|
-
isAllClient?: boolean;
|
|
596
|
-
globalFilters?: MetricCardProps['globalFilters'];
|
|
597
|
-
isApplyMetricFilter?: boolean;
|
|
598
|
-
isApplyGlobalFilter?: boolean;
|
|
599
|
-
drillFilters?: {
|
|
600
|
-
columnName: string;
|
|
601
|
-
value: string | number;
|
|
602
|
-
}[];
|
|
603
|
-
};
|
|
604
|
-
export type OnChangeHelperFunctionParams = {
|
|
605
|
-
column: SelectedColumn;
|
|
606
|
-
helperFunction: FloatingDropDownOption;
|
|
607
|
-
functionConfiguration?: {
|
|
608
|
-
dateFormat?: string;
|
|
609
|
-
};
|
|
610
|
-
type?: 'METRIC' | 'DIMENSION';
|
|
611
|
-
};
|
|
612
|
-
export type OnChangeAliasParams = {
|
|
613
|
-
column: SelectedColumn;
|
|
614
|
-
type?: 'METRIC' | 'DIMENSION';
|
|
615
|
-
alias: string;
|
|
616
|
-
cast?: FloatingDropDownOption;
|
|
617
|
-
isColumnCasted?: boolean;
|
|
618
|
-
};
|
|
619
|
-
export type ConfigType = {
|
|
620
|
-
clientId: string;
|
|
621
|
-
companyId: string;
|
|
622
|
-
isLiveMode: boolean;
|
|
623
|
-
externalDashboardId: string;
|
|
624
|
-
userProvidedDashboardId: string;
|
|
625
|
-
chartColors: string[] | undefined;
|
|
626
|
-
isShowMetricCreateModal: boolean;
|
|
627
|
-
setShowMetricCreateModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
628
|
-
metric: ExternalMetrics | undefined;
|
|
629
|
-
metricData: Record<string, any>[] | undefined;
|
|
630
|
-
clientColumnType: ClientColumnType;
|
|
631
|
-
datasourceId: string;
|
|
632
|
-
};
|
|
633
|
-
export type DrillDownSettings = {
|
|
634
|
-
isEnableGroupBy: boolean;
|
|
635
|
-
drilldownChartSettings?: {
|
|
636
|
-
name: string;
|
|
637
|
-
chartSettings: ChartSettingsType;
|
|
638
|
-
}[];
|
|
639
|
-
isEnableCrossFilter: boolean;
|
|
640
|
-
drillType: string;
|
|
641
|
-
};
|
|
642
|
-
export type GenerateConfigType = {
|
|
643
|
-
clientId: string;
|
|
644
|
-
companyId: string;
|
|
645
|
-
isLiveMode: boolean;
|
|
646
|
-
externalDashboardId: string;
|
|
647
|
-
userProvidedDashboardId: string;
|
|
648
|
-
chartColors: string[] | undefined;
|
|
649
|
-
isShowMetricCreateModal: boolean;
|
|
650
|
-
setShowMetricCreateModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
651
|
-
metric: ExternalMetrics | undefined;
|
|
652
|
-
metricData: Record<string, any>[] | undefined;
|
|
653
|
-
workspaceId: string;
|
|
654
|
-
variant: 'static' | 'floating' | undefined;
|
|
655
|
-
clientColumnType: ClientColumnType;
|
|
656
|
-
datasourceId: string;
|
|
657
|
-
};
|
|
658
|
-
export type GenerateMetricState = {
|
|
659
|
-
data: Record<string, any>[];
|
|
660
|
-
error: string;
|
|
661
|
-
query: string;
|
|
662
|
-
isLoading: boolean;
|
|
663
|
-
};
|
|
664
|
-
export type DatasetConfig = {
|
|
665
|
-
clientSubsetData: any;
|
|
666
|
-
clientId: string;
|
|
667
|
-
setError: React.Dispatch<React.SetStateAction<string>>;
|
|
668
|
-
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
669
|
-
setData: React.Dispatch<React.SetStateAction<any[] | undefined>>;
|
|
670
|
-
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
671
|
-
setGroupByList: React.Dispatch<React.SetStateAction<string[]>>;
|
|
672
|
-
chart: string;
|
|
673
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
674
|
-
dbName?: string;
|
|
675
|
-
chartSettings: ChartSettingsType;
|
|
676
|
-
data: Record<string, any>[];
|
|
677
|
-
limit: string;
|
|
678
|
-
setDatasetSettings: React.Dispatch<React.SetStateAction<DatasetSettings | undefined>>;
|
|
679
|
-
workspaceId: string;
|
|
680
|
-
token: string;
|
|
681
|
-
isDatabaseTenancy: boolean;
|
|
682
|
-
clientColumnType: ClientColumnType;
|
|
683
|
-
setDrillDownSettings: React.Dispatch<React.SetStateAction<DrillDownSettings>>;
|
|
684
|
-
drillDownSettings: DrillDownSettings;
|
|
685
|
-
datasourceId: string;
|
|
686
|
-
};
|
|
687
|
-
export type OnChangeFilterValueType = ((name: string, value: string, labelValue?: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[], timeGrain?: string) => void) | undefined;
|
|
688
|
-
export type MetricFilterDemoThemeType = {
|
|
689
|
-
width: string;
|
|
690
|
-
variant: 'static' | 'floating';
|
|
691
|
-
radius: string;
|
|
692
|
-
};
|
|
693
|
-
export type MetricConfigType = 'DIMENSION' | 'METRIC';
|
|
694
|
-
export type OnSaveArithmeticColumnParams = {
|
|
695
|
-
column: SelectedColumn['arithmeticConfig'];
|
|
696
|
-
type: MetricConfigType;
|
|
697
|
-
alias: string;
|
|
698
|
-
};
|
|
699
|
-
export type KeywordFilteredResult = {
|
|
700
|
-
keywords: string[];
|
|
701
|
-
questionKeys: string[];
|
|
702
|
-
groupKeywords: string[];
|
|
703
|
-
ascKeywords: string[];
|
|
704
|
-
descKeywords: string[];
|
|
705
|
-
numberKeywords: string[];
|
|
706
|
-
};
|
|
707
|
-
export type FilteredOptionResult = {
|
|
708
|
-
filteredOptions: SelectedColumn[];
|
|
709
|
-
remainingOptions: SelectedColumn[];
|
|
710
|
-
};
|
|
711
|
-
export type SearchStateChatType = {
|
|
712
|
-
question: string;
|
|
713
|
-
responseQuery: string;
|
|
714
|
-
chartSettings: ChartSettingsType;
|
|
715
|
-
data: Record<string, any>[];
|
|
716
|
-
groupbyColumnList: string[];
|
|
717
|
-
timestamp: number;
|
|
718
|
-
queryTimestamp?: number;
|
|
719
|
-
isResetPallete: boolean;
|
|
720
|
-
barRadius?: {
|
|
721
|
-
topRadius: number;
|
|
722
|
-
bottomRadius: number;
|
|
723
|
-
};
|
|
724
|
-
error: string;
|
|
725
|
-
followUp?: SearchStateChatType;
|
|
726
|
-
columns: SqlColumns;
|
|
727
|
-
report?: string;
|
|
728
|
-
summary?: string[];
|
|
729
|
-
isLoading?: boolean;
|
|
730
|
-
};
|
|
731
|
-
export type ChartReportStateType = {
|
|
732
|
-
isLoading: boolean;
|
|
733
|
-
isOpen: boolean;
|
|
734
|
-
report: string;
|
|
735
|
-
};
|
|
736
|
-
export type SearchState = {
|
|
737
|
-
isDisableButton: boolean;
|
|
738
|
-
error: string;
|
|
739
|
-
errorTime?: number;
|
|
740
|
-
isLoading: boolean;
|
|
741
|
-
currentQuestion: string;
|
|
742
|
-
chats: SearchStateChatType[];
|
|
743
|
-
followUp?: SearchStateChatType;
|
|
744
|
-
};
|
|
745
|
-
export type SearchFollowUpConfig = {
|
|
746
|
-
isEnable: true;
|
|
747
|
-
previousQuestion: string;
|
|
748
|
-
previousSql: string;
|
|
749
|
-
};
|
|
750
|
-
export type SearchConfigType = {
|
|
751
|
-
followUp?: SearchFollowUpConfig;
|
|
752
|
-
tables?: {
|
|
753
|
-
name: string;
|
|
754
|
-
columns: {
|
|
755
|
-
name: string;
|
|
756
|
-
method?: string;
|
|
757
|
-
}[];
|
|
758
|
-
}[];
|
|
759
|
-
};
|
|
760
|
-
export type SqlColumns = {
|
|
761
|
-
dimensions: string[];
|
|
762
|
-
measures: string[];
|
|
763
|
-
} | undefined | null;
|
|
764
|
-
export type onChangePagination = (isPrev: boolean, resetValue?: number, nextOffset?: number) => void;
|
|
765
|
-
export type SearchQuestionType = 'VARIATION/DISTRIBUTION' | 'TIME/EVOLUTION/PROGRESSIVE' | 'COMPOSITION/PROPOSITION' | 'RELATIONSHIP/HIERARCHICAL' | 'COMPARISON' | 'DISTRIBUTION' | 'VARIATION';
|
|
766
|
-
export {};
|