@databrainhq/plugin 0.15.26 → 0.15.27
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 +233 -233
- package/dist/components/Accordion/index.d.ts +33 -0
- package/dist/components/AceEditorSql/AceEditorSql.d.ts +11 -0
- package/dist/components/Alert/index.d.ts +12 -0
- package/dist/components/AutoCompleteDropdown/index.d.ts +20 -0
- package/dist/components/Badge/index.d.ts +10 -0
- package/dist/components/Button/index.d.ts +14 -0
- package/dist/components/ButtonGroup/index.d.ts +14 -0
- package/dist/components/Chart/SingleValueChart.d.ts +37 -0
- package/dist/components/Chart/index.d.ts +34 -0
- package/dist/components/ChartModal/ChartConfig.d.ts +10 -0
- package/dist/components/ChartModal/ChartModalOptions.d.ts +14 -0
- package/dist/components/ChartModal/index.d.ts +3 -0
- package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +15 -0
- package/dist/components/ChartPopup/index.d.ts +28 -0
- package/dist/components/ChartReportPanel/index.d.ts +10 -0
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +13 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboChartFormatter.d.ts +8 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +8 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +26 -0
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +14 -0
- package/dist/components/ChartSettingsPopup/index.d.ts +3 -0
- package/dist/components/ChartTypePanel/index.d.ts +15 -0
- package/dist/components/Checkbox/index.d.ts +10 -0
- package/dist/components/ColorField/ColorField.d.ts +13 -0
- package/dist/components/DataType/index.d.ts +9 -0
- package/dist/components/DateRangePicker/index.d.ts +36 -0
- package/dist/components/DraggableItem/index.d.ts +7 -0
- package/dist/components/DrillBreadCrumb/index.d.ts +16 -0
- package/dist/components/Error/index.d.ts +6 -0
- package/dist/components/ErrorFallback/index.d.ts +2 -0
- package/dist/components/ExternalMetricForm/index.d.ts +11 -0
- package/dist/components/FilterDropDown/index.d.ts +30 -0
- package/dist/components/FilterField/index.d.ts +39 -0
- package/dist/components/Flex/index.d.ts +13 -0
- package/dist/components/FloatingDropDown/index.d.ts +38 -0
- package/dist/components/FullScreenChart/index.d.ts +8 -0
- package/dist/components/GaugeLegend/index.d.ts +11 -0
- package/dist/components/GenerateMetric/index.d.ts +3 -0
- package/dist/components/GlobalFilters/AddFilter.d.ts +15 -0
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +9 -0
- package/dist/components/GlobalFilters/Filters.d.ts +28 -0
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +35 -0
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +23 -0
- package/dist/components/GlobalFilters/SearchField.d.ts +10 -0
- package/dist/components/GlobalFilters/index.d.ts +79 -0
- package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +6 -0
- package/dist/components/HorizontalStackTable/index.d.ts +18 -0
- package/dist/components/Icons/Logos/index.d.ts +26 -0
- package/dist/components/Icons/index.d.ts +9 -0
- package/dist/components/InfoTooltip/index.d.ts +15 -0
- package/dist/components/InputField/index.d.ts +17 -0
- package/dist/components/List/index.d.ts +38 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Menu/index.d.ts +32 -0
- package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +11 -0
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +12 -0
- package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +12 -0
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +37 -0
- package/dist/components/MetricChart/index.d.ts +5 -0
- package/dist/components/MetricCreation/MetricCreation.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +2 -0
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/Header/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +3 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +33 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +2 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +1 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +11 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +2 -0
- package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +13 -0
- package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +22 -0
- package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +20 -0
- package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +15 -0
- package/dist/components/MetricCreation/index.d.ts +5 -0
- package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +17 -0
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +7 -0
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +18 -0
- package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +11 -0
- package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +12 -0
- package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +12 -0
- package/dist/components/MetricFilterDropDown/index.d.ts +24 -0
- package/dist/components/MetricList/MetricList.d.ts +65 -0
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +7 -0
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +13 -0
- package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +8 -0
- package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +12 -0
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +18 -0
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +45 -0
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +7 -0
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +15 -0
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +17 -0
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +14 -0
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +16 -0
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +98 -0
- package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +11 -0
- package/dist/components/MetricList/components/TableViewModal/index.d.ts +9 -0
- package/dist/components/MetricList/components/index.d.ts +7 -0
- package/dist/components/MetricList/index.d.ts +2 -0
- package/dist/components/MetricTable/index.d.ts +7 -0
- package/dist/components/Modal/Modal.d.ts +14 -0
- package/dist/components/Modal/ModalFooter.d.ts +5 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/MultiSelectDropdown/index.d.ts +39 -0
- package/dist/components/Panel/index.d.ts +17 -0
- package/dist/components/PivotTable/PivotTableV2.d.ts +23 -0
- package/dist/components/PivotTable/index.d.ts +8 -0
- package/dist/components/PivotTable/transformData.d.ts +7 -0
- package/dist/components/PopoverMenu/index.d.ts +36 -0
- package/dist/components/Portal/index.d.ts +2 -0
- package/dist/components/RadioButton/index.d.ts +16 -0
- package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +6 -0
- package/dist/components/ScheduleEmail/index.d.ts +3 -0
- package/dist/components/SearchDropdown/index.d.ts +14 -0
- package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +19 -0
- package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +44 -0
- package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +8 -0
- package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +9 -0
- package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +7 -0
- package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +3 -0
- package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +7 -0
- package/dist/components/SearchMetricData/ChatMode/Results.d.ts +23 -0
- package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +7 -0
- package/dist/components/SearchMetricData/SearchMetricData.d.ts +5 -0
- package/dist/components/SearchMetricData/index.d.ts +1 -0
- package/dist/components/SearchTab/index.d.ts +13 -0
- package/dist/components/Select/index.d.ts +47 -0
- package/dist/components/SelfHostControl/index.d.ts +4 -0
- package/dist/components/SkeletonLoader/index.d.ts +9 -0
- package/dist/components/SpinningLoader/index.d.ts +2 -0
- package/dist/components/Switch/SwitchInput.d.ts +9 -0
- package/dist/components/Switch/index.d.ts +11 -0
- package/dist/components/Tab/index.d.ts +14 -0
- package/dist/components/Table/DebouncedInput.d.ts +6 -0
- package/dist/components/Table/Filter.d.ts +7 -0
- package/dist/components/Table/index.d.ts +36 -0
- package/dist/components/Tabs/index.d.ts +41 -0
- package/dist/components/TagInputField/index.d.ts +33 -0
- package/dist/components/Text/index.d.ts +13 -0
- package/dist/components/TextAreaField/index.d.ts +24 -0
- package/dist/components/ThemeBlock/index.d.ts +8 -0
- package/dist/components/TimeGrainField/index.d.ts +16 -0
- package/dist/components/TimeSeriesSettings/index.d.ts +8 -0
- package/dist/components/index.d.ts +63 -0
- package/dist/consts/api.d.ts +64 -0
- package/dist/consts/app.d.ts +154 -0
- package/dist/consts/index.d.ts +2 -0
- package/dist/consts/metricOptions.d.ts +205 -0
- package/dist/consts/validations.d.ts +24 -0
- package/dist/containers/CreateMetric/CreateEmbeddedMetric.d.ts +14 -0
- package/dist/containers/CreateMetric/index.d.ts +3 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +72 -0
- package/dist/containers/Dashboard/DashboardProvider.d.ts +7 -0
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +45 -0
- package/dist/containers/Dashboard/index.d.ts +2 -0
- package/dist/containers/DbnStyles.d.ts +10 -0
- package/dist/containers/Metric/EmbeddedMetric.d.ts +47 -0
- package/dist/containers/Metric/index.d.ts +85 -0
- package/dist/containers/PluginProvider.d.ts +7 -0
- package/dist/containers/index.d.ts +3 -0
- package/dist/helpers/adaptiveFormatter.d.ts +6 -0
- package/dist/helpers/areArraysEqual.d.ts +1 -0
- package/dist/helpers/autoCompleteHelpers.d.ts +95 -0
- package/dist/helpers/cardActions.d.ts +5 -0
- package/dist/helpers/chartOptions.d.ts +93 -0
- package/dist/helpers/checkIsElementInViewport.d.ts +1 -0
- package/dist/helpers/conditionalFormatting.d.ts +3 -0
- package/dist/helpers/copyToClipboard.d.ts +4 -0
- package/dist/helpers/createMetric.d.ts +25 -0
- package/dist/helpers/darkColorIdentifier.d.ts +2 -0
- package/dist/helpers/dateFormatter.d.ts +1 -0
- package/dist/helpers/generateColorPalette.d.ts +1 -0
- package/dist/helpers/generateTimeRangeWhereClause.d.ts +13 -0
- package/dist/helpers/getColumnType.d.ts +2 -0
- package/dist/helpers/getComboRangeLabel.d.ts +5 -0
- package/dist/helpers/getFilterAppliedQuery.d.ts +71 -0
- package/dist/helpers/getModifiedQuery.d.ts +78 -0
- package/dist/helpers/getNextScheduledTime.d.ts +13 -0
- package/dist/helpers/getTimeFilterValue.d.ts +12 -0
- package/dist/helpers/getValidRlsConditionOptions.d.ts +16 -0
- package/dist/helpers/groupArray.d.ts +1 -0
- package/dist/helpers/groupBy.d.ts +25 -0
- package/dist/helpers/index.d.ts +16 -0
- package/dist/helpers/numberFormatter.d.ts +1 -0
- package/dist/helpers/setOnDateChange.d.ts +11 -0
- package/dist/helpers/sqlMetadata.d.ts +7 -0
- package/dist/helpers/timeseries.d.ts +35 -0
- package/dist/helpers/timeseriesOption.d.ts +72 -0
- package/dist/helpers/tooltipFormatter.d.ts +27 -0
- package/dist/helpers/treeMap.d.ts +6 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/useArchiveMetric.d.ts +10 -0
- package/dist/hooks/useAutoCompleteOptions.d.ts +4 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +21 -0
- package/dist/hooks/useDashboardContext.d.ts +37 -0
- package/dist/hooks/useDatasetMetric.d.ts +50 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +21 -0
- package/dist/hooks/useDrag.d.ts +10 -0
- package/dist/hooks/useDragAndDropState.d.ts +10 -0
- package/dist/hooks/useDrop.d.ts +13 -0
- package/dist/hooks/useEmbeddedMetric.d.ts +24 -0
- package/dist/hooks/useExternalMetric.d.ts +55 -0
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +13 -0
- package/dist/hooks/useGenerateMetric.d.ts +64 -0
- package/dist/hooks/useMetricCard.d.ts +121 -0
- package/dist/hooks/useMetricConfig.d.ts +63 -0
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +35 -0
- package/dist/hooks/useOutsideAlerter.d.ts +14 -0
- package/dist/hooks/usePublishArchivedMetrics.d.ts +5 -0
- package/dist/hooks/usePythonResults.d.ts +17 -0
- package/dist/hooks/useScheduleEmail.d.ts +29 -0
- package/dist/hooks/useSearch.d.ts +55 -0
- package/dist/hooks/useUnderlyingData.d.ts +32 -0
- package/dist/index.d.ts +8 -0
- package/dist/queries/externalDashboard.mutation.d.ts +61 -0
- package/dist/queries/externalDashboard.query.d.ts +20 -0
- package/dist/queries/index.d.ts +1 -0
- package/dist/queries/metric.mutation.d.ts +57 -0
- package/dist/queries/metric.query.d.ts +12 -0
- package/dist/types/app.d.ts +894 -0
- package/dist/types/dragAndDropProps.d.ts +70 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/metricCreate.d.ts +741 -0
- package/dist/types/queryTypes.d.ts +341 -0
- package/dist/utils/arrayToCsvString.d.ts +6 -0
- package/dist/utils/colors.d.ts +2 -0
- package/dist/utils/fetcher.d.ts +13 -0
- package/dist/utils/getChartAttributes.d.ts +98 -0
- package/dist/utils/getChartImage.d.ts +3 -0
- package/dist/utils/getChartOptions.d.ts +42 -0
- package/dist/utils/getFormattedDataType.d.ts +1 -0
- package/dist/utils/getNoAxisChartOptions.d.ts +25 -0
- package/dist/utils/getValidJson.d.ts +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/pivotDataTransform.d.ts +7 -0
- package/dist/utils/popoverPosition.d.ts +2 -0
- package/dist/utils/theme.d.ts +42 -0
- package/dist/webcomponents.d.ts +16 -0
- package/dist/webcomponents.es.js +758 -758
- package/dist/webcomponents.umd.js +14 -14
- package/package.json +112 -112
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { ClientColumnType, RlsCondition } from './app';
|
|
2
|
+
import { DatasetMetricCreationConfiguration } from './metricCreate';
|
|
3
|
+
export type UseDashboardDataQueryInputType = {
|
|
4
|
+
token: string;
|
|
5
|
+
dashboardId?: string;
|
|
6
|
+
};
|
|
7
|
+
export type ClientSubsetData = {
|
|
8
|
+
companyIntegrationId?: string | null;
|
|
9
|
+
dbName?: string | null;
|
|
10
|
+
error?: {
|
|
11
|
+
message: string;
|
|
12
|
+
} | null;
|
|
13
|
+
tableList?: {
|
|
14
|
+
tableName: string;
|
|
15
|
+
clientColumn?: string | null;
|
|
16
|
+
columns?: {
|
|
17
|
+
datatype: string;
|
|
18
|
+
name: string;
|
|
19
|
+
as: string;
|
|
20
|
+
}[] | null;
|
|
21
|
+
}[] | null;
|
|
22
|
+
} | null;
|
|
23
|
+
export type UseDashboardDataQueryOutputType = {
|
|
24
|
+
externalDashboard?: any | null;
|
|
25
|
+
isAllowedToChangeLayout?: boolean | null;
|
|
26
|
+
isAllowedToCreateMetrics?: boolean | null;
|
|
27
|
+
isAllowedToDeleteMetrics?: boolean | null;
|
|
28
|
+
isAllowedToUpdateMetrics?: boolean | null;
|
|
29
|
+
isAllowedToEmailReports?: boolean | null;
|
|
30
|
+
isAllowedManageMetrics?: boolean | null;
|
|
31
|
+
isShowUnderlyingData?: boolean | null;
|
|
32
|
+
adminTheme?: any | null;
|
|
33
|
+
clientId?: string | null;
|
|
34
|
+
companyId?: string | null;
|
|
35
|
+
companyTenancyType?: string | null;
|
|
36
|
+
externalMetrics?: (any | null)[] | null;
|
|
37
|
+
rlsSettings?: any | null;
|
|
38
|
+
appFilters?: any | null;
|
|
39
|
+
dashboardAppFilters?: any | null;
|
|
40
|
+
workspace?: any | null;
|
|
41
|
+
sharingSettingsId?: string | null;
|
|
42
|
+
error?: {
|
|
43
|
+
message: string;
|
|
44
|
+
} | null;
|
|
45
|
+
clientSubsetData?: ClientSubsetData;
|
|
46
|
+
cType?: ClientColumnType;
|
|
47
|
+
refreshTime?: number | null;
|
|
48
|
+
isEnableMetricSummary?: boolean;
|
|
49
|
+
isAllClient?: boolean;
|
|
50
|
+
metricCreationMode?: string;
|
|
51
|
+
} | null;
|
|
52
|
+
export type UseMetricQueryQueryInputType = {
|
|
53
|
+
id?: string;
|
|
54
|
+
clientId?: string;
|
|
55
|
+
globalFilters?: Record<string, any>;
|
|
56
|
+
rlsConditions?: any[];
|
|
57
|
+
filterValues?: Record<string, any>;
|
|
58
|
+
tenancyLevel?: string;
|
|
59
|
+
drillFilters?: any[];
|
|
60
|
+
limit?: number;
|
|
61
|
+
offset?: number;
|
|
62
|
+
isAllClient?: boolean;
|
|
63
|
+
disableStringify?: boolean;
|
|
64
|
+
pivotHeaders?: string[];
|
|
65
|
+
timeseriesSettings?: {
|
|
66
|
+
format: string;
|
|
67
|
+
seriesField: string;
|
|
68
|
+
};
|
|
69
|
+
chartSeriesField?: string;
|
|
70
|
+
comparisonCount?: number;
|
|
71
|
+
dynamicXAxis?: {
|
|
72
|
+
isEnable: boolean;
|
|
73
|
+
xaxis: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type UseMetricQueryQueryOutputType = {
|
|
77
|
+
data?: any | null;
|
|
78
|
+
timeTaken?: number | null;
|
|
79
|
+
totalRecords?: number | null;
|
|
80
|
+
metaData?: any | null;
|
|
81
|
+
};
|
|
82
|
+
export type UseMetricColumnMutationInputType = {
|
|
83
|
+
tableName?: string;
|
|
84
|
+
columnName?: string;
|
|
85
|
+
wId?: string;
|
|
86
|
+
filter?: Record<string, any>;
|
|
87
|
+
customTable?: {
|
|
88
|
+
query: string;
|
|
89
|
+
alias: string;
|
|
90
|
+
};
|
|
91
|
+
labelColumnName?: string;
|
|
92
|
+
};
|
|
93
|
+
export type UseMetricUnderlyingDataMutationInputType = {
|
|
94
|
+
columnName?: string;
|
|
95
|
+
companyId?: string;
|
|
96
|
+
query?: string;
|
|
97
|
+
value?: any;
|
|
98
|
+
workspaceId?: string;
|
|
99
|
+
metricId?: string;
|
|
100
|
+
isCustomSql?: boolean;
|
|
101
|
+
};
|
|
102
|
+
export type UseMetricShareCsvMutationInputType = {
|
|
103
|
+
configurations?: Record<string, any>;
|
|
104
|
+
emails?: string[];
|
|
105
|
+
expireCsvFileAt?: string;
|
|
106
|
+
expireUrlIn?: number;
|
|
107
|
+
externalMetricId?: string;
|
|
108
|
+
integrationId?: string;
|
|
109
|
+
integrationName?: string;
|
|
110
|
+
query?: string;
|
|
111
|
+
sharingSettingsId?: string;
|
|
112
|
+
subject?: string;
|
|
113
|
+
};
|
|
114
|
+
export type UseSaveDashboardLayoutMutationInputType = {
|
|
115
|
+
clientId: string;
|
|
116
|
+
externalDashboardId: string;
|
|
117
|
+
layout: any[];
|
|
118
|
+
isLocked?: boolean;
|
|
119
|
+
dashboardFiltersLayout?: any[];
|
|
120
|
+
gridMargin?: {
|
|
121
|
+
verticalMargin?: number;
|
|
122
|
+
horizontalMargin?: number;
|
|
123
|
+
} | null;
|
|
124
|
+
};
|
|
125
|
+
export type UseDeleteDashboardScheduleReportMutationInputType = {
|
|
126
|
+
token: string;
|
|
127
|
+
id: string;
|
|
128
|
+
};
|
|
129
|
+
export type UseSaveDashboardScheduleReportMutationInputType = {
|
|
130
|
+
emails?: any;
|
|
131
|
+
externalDashboardId?: string;
|
|
132
|
+
guestToken?: string;
|
|
133
|
+
nextScheduledAt?: string;
|
|
134
|
+
sharingSettingsId?: string;
|
|
135
|
+
subject?: string;
|
|
136
|
+
timeConfigurations?: any;
|
|
137
|
+
data?: any;
|
|
138
|
+
};
|
|
139
|
+
export type UseMarkArchivedMutationInputType = {
|
|
140
|
+
id?: string;
|
|
141
|
+
};
|
|
142
|
+
export type UsePublishArchivedMetricsMutationInputType = {
|
|
143
|
+
externalMetricIds?: string[];
|
|
144
|
+
archiveMetrics?: string[];
|
|
145
|
+
};
|
|
146
|
+
export type UseExecutePythonMutationInputType = {
|
|
147
|
+
code: string;
|
|
148
|
+
clientId?: string;
|
|
149
|
+
companyId: string;
|
|
150
|
+
rlsConditions?: RlsCondition[];
|
|
151
|
+
};
|
|
152
|
+
export type ExternalMetricsInsertInput = {
|
|
153
|
+
chartOptions?: any;
|
|
154
|
+
clientDeletedMetrics?: any;
|
|
155
|
+
clientId?: string;
|
|
156
|
+
companyId?: string;
|
|
157
|
+
companyIntegrationId?: string;
|
|
158
|
+
createdAt?: string;
|
|
159
|
+
createdBy?: string;
|
|
160
|
+
datasetMetricSettings?: any;
|
|
161
|
+
description?: string;
|
|
162
|
+
drillDownSettings?: any;
|
|
163
|
+
externalDashboardMetrics?: any;
|
|
164
|
+
externalMetricRawCsvUrl?: any;
|
|
165
|
+
externalMetricsRlsFilters?: any;
|
|
166
|
+
groupBy?: any;
|
|
167
|
+
inputFields?: any;
|
|
168
|
+
integrationName?: string;
|
|
169
|
+
isCreatedByClient?: boolean;
|
|
170
|
+
isEnableGroupBy?: boolean;
|
|
171
|
+
isLive?: boolean;
|
|
172
|
+
metricId?: string;
|
|
173
|
+
metricQuery?: string;
|
|
174
|
+
name?: string;
|
|
175
|
+
outputColumns?: string;
|
|
176
|
+
query?: string;
|
|
177
|
+
resizeAttributes?: any;
|
|
178
|
+
scheduleEmailReportCharts?: any;
|
|
179
|
+
selectedGroupBy?: any;
|
|
180
|
+
timeGrain?: string;
|
|
181
|
+
updatedAt?: string;
|
|
182
|
+
elementSettings?: any;
|
|
183
|
+
isMetric?: boolean;
|
|
184
|
+
};
|
|
185
|
+
export type UseUpdateAdminMetricMutationInputType = {
|
|
186
|
+
externalMetricId: string;
|
|
187
|
+
object: ExternalMetricsInsertInput;
|
|
188
|
+
clientId: string;
|
|
189
|
+
};
|
|
190
|
+
export type ExternalMetricsSetInput = {
|
|
191
|
+
chartOptions?: any;
|
|
192
|
+
description?: string;
|
|
193
|
+
metricId?: string;
|
|
194
|
+
name?: string;
|
|
195
|
+
resizeAttributes?: any;
|
|
196
|
+
updatedAt?: any;
|
|
197
|
+
};
|
|
198
|
+
export type UseUpdateMetricMutationInputType = {
|
|
199
|
+
externalMetricId: string;
|
|
200
|
+
set: ExternalMetricsSetInput;
|
|
201
|
+
};
|
|
202
|
+
export type UsePreviewTableMutationInputType = {
|
|
203
|
+
tableName?: string;
|
|
204
|
+
limit?: number;
|
|
205
|
+
integrationId?: string;
|
|
206
|
+
integrationName?: string;
|
|
207
|
+
};
|
|
208
|
+
export type UseGenerateMetricDataMutationInputType = {
|
|
209
|
+
questionString: string;
|
|
210
|
+
};
|
|
211
|
+
export type UseGenerateMetricMutationInputType = {
|
|
212
|
+
userInputs?: any;
|
|
213
|
+
integrationName?: string;
|
|
214
|
+
integrationId?: string;
|
|
215
|
+
};
|
|
216
|
+
export type UseDatatsetMetricMutationInputType = {
|
|
217
|
+
cId: string;
|
|
218
|
+
configuration: DatasetMetricCreationConfiguration;
|
|
219
|
+
id: string;
|
|
220
|
+
};
|
|
221
|
+
export type UseNewDatatsetMetricMutationInputType = {
|
|
222
|
+
configuration: DatasetMetricCreationConfiguration;
|
|
223
|
+
id: string;
|
|
224
|
+
};
|
|
225
|
+
export type UseGenerateMetricSummaryMutationInputType = {
|
|
226
|
+
data: Record<string, any>[];
|
|
227
|
+
wId?: string;
|
|
228
|
+
};
|
|
229
|
+
export type DbChatMetricCreationType = {
|
|
230
|
+
wId?: string;
|
|
231
|
+
question: string;
|
|
232
|
+
config?: any;
|
|
233
|
+
};
|
|
234
|
+
export type DbChatMetricCreationOutputType = {
|
|
235
|
+
data: any;
|
|
236
|
+
};
|
|
237
|
+
export type UseCreateMetricMutationInputType = {
|
|
238
|
+
chartOptions?: any;
|
|
239
|
+
companyId?: string;
|
|
240
|
+
companyIntegrationId?: string;
|
|
241
|
+
description?: string;
|
|
242
|
+
inputFields?: any;
|
|
243
|
+
integrationName?: string;
|
|
244
|
+
metricId?: string;
|
|
245
|
+
metricQuery?: string;
|
|
246
|
+
name?: string;
|
|
247
|
+
outputColumns?: string;
|
|
248
|
+
query?: string;
|
|
249
|
+
isLive?: boolean;
|
|
250
|
+
clientId?: string | null;
|
|
251
|
+
isCreatedByClient?: boolean;
|
|
252
|
+
createdBy?: string;
|
|
253
|
+
timeGrain?: string | null;
|
|
254
|
+
externalDashboardIds?: any;
|
|
255
|
+
selectedGroupBy?: any;
|
|
256
|
+
isEnableGroupBy?: boolean;
|
|
257
|
+
datasetMetricSettings?: any;
|
|
258
|
+
groupBy?: any;
|
|
259
|
+
drillDownSettings?: any;
|
|
260
|
+
};
|
|
261
|
+
export type CompanyIntegrations = {
|
|
262
|
+
companyId: string;
|
|
263
|
+
companyWorkspace: any;
|
|
264
|
+
customSqlColumns: any;
|
|
265
|
+
externalMetrics: any;
|
|
266
|
+
id: string;
|
|
267
|
+
integrationId: string;
|
|
268
|
+
name: string;
|
|
269
|
+
workspaceId: string;
|
|
270
|
+
};
|
|
271
|
+
export type ExternalMetrics = {
|
|
272
|
+
chartOptions: any;
|
|
273
|
+
clickActions: any;
|
|
274
|
+
clientDeletedMetrics: any;
|
|
275
|
+
clientId?: string;
|
|
276
|
+
companyId: string;
|
|
277
|
+
companyIntegration: CompanyIntegrations;
|
|
278
|
+
companyIntegrationId: string;
|
|
279
|
+
createdAt: string;
|
|
280
|
+
createdBy?: string;
|
|
281
|
+
datasetMetricSettings?: any;
|
|
282
|
+
description: string;
|
|
283
|
+
drillDownSettings?: any;
|
|
284
|
+
/** An array relationship */
|
|
285
|
+
externalDashboardMetrics: any;
|
|
286
|
+
/** An object relationship */
|
|
287
|
+
externalMetricRawCsvUrl?: any;
|
|
288
|
+
/** An array relationship */
|
|
289
|
+
externalMetricsRlsFilters: any;
|
|
290
|
+
groupBy: any;
|
|
291
|
+
id: string;
|
|
292
|
+
inputFields?: any;
|
|
293
|
+
integrationName: string;
|
|
294
|
+
isArchived: boolean;
|
|
295
|
+
isCreatedByClient: boolean;
|
|
296
|
+
isEnableGroupBy: boolean;
|
|
297
|
+
isLive: boolean;
|
|
298
|
+
isMarkedDeleted: boolean;
|
|
299
|
+
metricId: string;
|
|
300
|
+
metricQuery?: string;
|
|
301
|
+
name: string;
|
|
302
|
+
outputColumns?: string;
|
|
303
|
+
query: string;
|
|
304
|
+
resizeAttributes: any;
|
|
305
|
+
rlsConditions: any;
|
|
306
|
+
scheduleEmailReportCharts: any;
|
|
307
|
+
selectedGroupBy: any;
|
|
308
|
+
timeGrain?: string;
|
|
309
|
+
updatedAt: string;
|
|
310
|
+
};
|
|
311
|
+
export type ChatCompletionRequestMessage = {
|
|
312
|
+
/**
|
|
313
|
+
* The role of the author of this message.
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof ChatCompletionRequestMessage
|
|
316
|
+
*/
|
|
317
|
+
role: 'system' | 'user' | 'assistant';
|
|
318
|
+
/**
|
|
319
|
+
* The contents of the message
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof ChatCompletionRequestMessage
|
|
322
|
+
*/
|
|
323
|
+
content: string;
|
|
324
|
+
/**
|
|
325
|
+
* The name of the user in a multi-user chat
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof ChatCompletionRequestMessage
|
|
328
|
+
*/
|
|
329
|
+
name?: string;
|
|
330
|
+
};
|
|
331
|
+
export type UseChatApiResponseType = {
|
|
332
|
+
messages: ChatCompletionRequestMessage[];
|
|
333
|
+
};
|
|
334
|
+
export type SummarizeMetricMutationType = {
|
|
335
|
+
metricData: any;
|
|
336
|
+
summaryPrompt: string;
|
|
337
|
+
key: string;
|
|
338
|
+
name: string;
|
|
339
|
+
description: string;
|
|
340
|
+
workspaceId: string;
|
|
341
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name objectArrayToCsvString - converts array of objects to csv file downloadable link
|
|
3
|
+
* @param array - array of objects with key value pairs
|
|
4
|
+
* @returns uri encoded csv data string
|
|
5
|
+
*/
|
|
6
|
+
export declare const objectArrayToCsvString: (array: Record<string, string>[]) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type ApiResponse<T> = {
|
|
2
|
+
data: T;
|
|
3
|
+
};
|
|
4
|
+
type FetcherOptions = {
|
|
5
|
+
method: 'GET' | 'POST';
|
|
6
|
+
token?: string;
|
|
7
|
+
data?: object;
|
|
8
|
+
isFrontend?: boolean;
|
|
9
|
+
clientId?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const getToken: () => string | null;
|
|
12
|
+
declare const fetcher: <T>(url: string, options?: FetcherOptions) => Promise<ApiResponse<T>>;
|
|
13
|
+
export default fetcher;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
type GetLabelsParams = {
|
|
2
|
+
data: Record<string, any>[] | undefined;
|
|
3
|
+
xAxis: string | undefined;
|
|
4
|
+
isDynamicXaxis: boolean;
|
|
5
|
+
isGroupXAxis: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const getLabels: ({ data, xAxis, isDynamicXaxis, isGroupXAxis, }: GetLabelsParams) => string[] | undefined;
|
|
8
|
+
export type GetDatasetsParams = {
|
|
9
|
+
data: Record<string, any>[] | undefined;
|
|
10
|
+
yAxisList: string[] | undefined;
|
|
11
|
+
xAxis: string | undefined;
|
|
12
|
+
isDynamicXaxis: boolean;
|
|
13
|
+
isCumulativeBar: boolean;
|
|
14
|
+
chartType: string;
|
|
15
|
+
seriesType: string;
|
|
16
|
+
isGroupXAxis: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const getDatasets: ({ data, yAxisList, xAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }: GetDatasetsParams) => {
|
|
19
|
+
label: string;
|
|
20
|
+
data: any[] | undefined;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
type GetFunnelDataParams = {
|
|
24
|
+
data: Record<string, any>[] | undefined;
|
|
25
|
+
measure: string | undefined;
|
|
26
|
+
step: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const getFunnelData: ({ data, measure, step }: GetFunnelDataParams) => {
|
|
29
|
+
value: any;
|
|
30
|
+
name: any;
|
|
31
|
+
}[];
|
|
32
|
+
type GetSingleValueDataParams = {
|
|
33
|
+
data: Record<string, any>[] | undefined;
|
|
34
|
+
singleValue: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
export declare const getSingleValueData: ({ data, singleValue, }: GetSingleValueDataParams) => any[];
|
|
37
|
+
type GetXaxisDataParams = {
|
|
38
|
+
isTimeSeries: boolean;
|
|
39
|
+
xAxis: string | undefined;
|
|
40
|
+
data: Record<string, any>[] | undefined;
|
|
41
|
+
selectedFormat: string | undefined;
|
|
42
|
+
fillXAxis: boolean;
|
|
43
|
+
};
|
|
44
|
+
export declare const getXAxisData: ({ isTimeSeries, xAxis, data, selectedFormat, fillXAxis, }: GetXaxisDataParams) => any[];
|
|
45
|
+
export type GetSeriesDataParams = {
|
|
46
|
+
data: Record<string, any>[] | undefined;
|
|
47
|
+
xAxis: string | undefined;
|
|
48
|
+
yAxisList: string[] | undefined;
|
|
49
|
+
seriesField: string | undefined;
|
|
50
|
+
isTimeSeries: boolean;
|
|
51
|
+
selectedFormat: string | undefined;
|
|
52
|
+
fillXAxis: boolean;
|
|
53
|
+
isCumulativeBar: boolean;
|
|
54
|
+
chartType: string;
|
|
55
|
+
seriesType: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const getSeriesData: ({ data, seriesField, isTimeSeries, xAxis, selectedFormat, fillXAxis, yAxisList, isCumulativeBar, chartType, seriesType, }: GetSeriesDataParams) => any;
|
|
58
|
+
export type GetChartAttributesParams = {
|
|
59
|
+
data: Record<string, any>[] | undefined;
|
|
60
|
+
yAxisList: string[] | undefined;
|
|
61
|
+
xAxis: string | undefined;
|
|
62
|
+
measure: string | undefined;
|
|
63
|
+
step: string | undefined;
|
|
64
|
+
singleValue: string | undefined;
|
|
65
|
+
seriesField: string | undefined;
|
|
66
|
+
isTimeSeries: boolean;
|
|
67
|
+
selectedFormat: string | undefined;
|
|
68
|
+
fillXAxis: boolean;
|
|
69
|
+
isDynamicXaxis: boolean;
|
|
70
|
+
isCumulativeBar: boolean;
|
|
71
|
+
chartType: string;
|
|
72
|
+
seriesType: string;
|
|
73
|
+
isGroupXAxis: boolean;
|
|
74
|
+
};
|
|
75
|
+
export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, isGroupXAxis, }: GetChartAttributesParams) => {
|
|
76
|
+
labels: string[];
|
|
77
|
+
datasets: any;
|
|
78
|
+
funnelData: {
|
|
79
|
+
value: any;
|
|
80
|
+
name: any;
|
|
81
|
+
}[];
|
|
82
|
+
singleValueData: any[];
|
|
83
|
+
xAxisData: any[];
|
|
84
|
+
seriesData: any;
|
|
85
|
+
};
|
|
86
|
+
export declare const transformDataToSankey: ({ data, source, target, value, sankeyColors, }: {
|
|
87
|
+
data: Record<string, any>[];
|
|
88
|
+
source: string;
|
|
89
|
+
target: string;
|
|
90
|
+
value: any;
|
|
91
|
+
sankeyColors: string[] | undefined;
|
|
92
|
+
}) => {
|
|
93
|
+
nodes: {
|
|
94
|
+
name: any;
|
|
95
|
+
}[];
|
|
96
|
+
links: Record<string, any>[];
|
|
97
|
+
};
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartAppearanceType, ChartSettingsType } from '@/types';
|
|
3
|
+
export declare const truncateText: (label: string, maxLength: number) => string;
|
|
4
|
+
export declare const addPrefixAndSuffix: (val: any, prefix?: any, suffix?: any) => string;
|
|
5
|
+
export declare const findLegendPosition: (val: string | undefined) => {
|
|
6
|
+
top: string;
|
|
7
|
+
left: string;
|
|
8
|
+
right?: undefined;
|
|
9
|
+
bottom?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
top: string;
|
|
12
|
+
right: string;
|
|
13
|
+
left?: undefined;
|
|
14
|
+
bottom?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
bottom: string;
|
|
17
|
+
left: string;
|
|
18
|
+
top?: undefined;
|
|
19
|
+
right?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
bottom: string;
|
|
22
|
+
right: string;
|
|
23
|
+
top?: undefined;
|
|
24
|
+
left?: undefined;
|
|
25
|
+
};
|
|
26
|
+
export declare const validateColor: (color: any) => boolean;
|
|
27
|
+
export type GetChartOptionsParams = {
|
|
28
|
+
chartOptions: ChartSettingsType;
|
|
29
|
+
data: Record<string, any>[];
|
|
30
|
+
colors?: string[];
|
|
31
|
+
geoJsonData?: any;
|
|
32
|
+
isPythonMode?: boolean;
|
|
33
|
+
chartHeight?: number;
|
|
34
|
+
chartAppearance?: ChartAppearanceType;
|
|
35
|
+
chartRef?: React.MutableRefObject<any>;
|
|
36
|
+
metricCardColor?: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const getLegendData: ({ chartOptions, data, }: {
|
|
39
|
+
chartOptions: ChartSettingsType;
|
|
40
|
+
data: Record<string, any>[];
|
|
41
|
+
}) => any;
|
|
42
|
+
export declare const getChartOptions: ({ chartOptions, data, colors, isPythonMode, geoJsonData, chartHeight, chartAppearance, chartRef, metricCardColor, }: GetChartOptionsParams) => Record<string, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFormattedDataType: (datatype: string) => 'text' | 'number' | 'boolean';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartAppearanceType, ChartSettingsType } from '@/types';
|
|
3
|
+
export type GetNoAxisChartOptionsParams = {
|
|
4
|
+
chartOptions: ChartSettingsType;
|
|
5
|
+
data: Record<string, any>[];
|
|
6
|
+
colors?: string[];
|
|
7
|
+
datasets?: any;
|
|
8
|
+
labels?: any;
|
|
9
|
+
funnelData?: {
|
|
10
|
+
value: any;
|
|
11
|
+
name: any;
|
|
12
|
+
}[];
|
|
13
|
+
singleValueData?: any;
|
|
14
|
+
geoJsonData?: any;
|
|
15
|
+
mapColors?: string[];
|
|
16
|
+
progressData?: any;
|
|
17
|
+
barGradient?: any;
|
|
18
|
+
labelFormatSettings: any;
|
|
19
|
+
bgColors: string[];
|
|
20
|
+
chartHeight?: number;
|
|
21
|
+
chartAppearance?: ChartAppearanceType;
|
|
22
|
+
chartRef?: React.MutableRefObject<any>;
|
|
23
|
+
metricCardColor?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const getNoAxisChartOptions: ({ chartOptions, data, colors, datasets, funnelData, labels, singleValueData, geoJsonData, mapColors, progressData, barGradient, labelFormatSettings, bgColors, chartHeight, chartAppearance, chartRef, metricCardColor, }: GetNoAxisChartOptionsParams) => Record<string, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getValidJson: (json: string) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './theme';
|
|
2
|
+
export * from './getChartAttributes';
|
|
3
|
+
export * from './colors';
|
|
4
|
+
export * from './getFormattedDataType';
|
|
5
|
+
export * from './arrayToCsvString';
|
|
6
|
+
export * from './popoverPosition';
|
|
7
|
+
export * from './colors';
|
|
8
|
+
export * from './getValidJson';
|
|
9
|
+
export * from './getChartOptions';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name pivotDataTransform - converts array of objects to pivot csv data
|
|
3
|
+
* @param chartOptions - includes chart properties, data - array of objects including data for the chart
|
|
4
|
+
* @returns array containing pivoted data
|
|
5
|
+
*/
|
|
6
|
+
import { ChartSettingsType } from '@/types';
|
|
7
|
+
export declare const pivotDataTransform: (chartOptions: ChartSettingsType | undefined, data: Record<string, string>[]) => any[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* colors - object of customizable colors
|
|
3
|
+
* typography - object of customizable typography
|
|
4
|
+
* border - object of customizable border
|
|
5
|
+
* shadow - object of customizable box shadow
|
|
6
|
+
* breakpoint - object of customizable breakpoint
|
|
7
|
+
* metricLayoutCols - object of customizable metric chart layout columns
|
|
8
|
+
*/
|
|
9
|
+
export interface ThemeType {
|
|
10
|
+
button?: {
|
|
11
|
+
primary?: string;
|
|
12
|
+
secondary?: string;
|
|
13
|
+
primaryText?: string;
|
|
14
|
+
secondaryText?: string;
|
|
15
|
+
};
|
|
16
|
+
checkbox?: {
|
|
17
|
+
checked?: string;
|
|
18
|
+
unChecked?: string;
|
|
19
|
+
};
|
|
20
|
+
switch?: {
|
|
21
|
+
enabled?: string;
|
|
22
|
+
disabled?: string;
|
|
23
|
+
};
|
|
24
|
+
datePickerColor?: string;
|
|
25
|
+
manageMetricsStyle?: Record<string, any>;
|
|
26
|
+
breakpoint?: {
|
|
27
|
+
xl?: number;
|
|
28
|
+
lg?: number;
|
|
29
|
+
md?: number;
|
|
30
|
+
sm?: number;
|
|
31
|
+
xs?: number;
|
|
32
|
+
};
|
|
33
|
+
metricLayoutCols?: {
|
|
34
|
+
xl?: number;
|
|
35
|
+
lg?: number;
|
|
36
|
+
md?: number;
|
|
37
|
+
sm?: number;
|
|
38
|
+
xs?: number;
|
|
39
|
+
xxs?: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export declare const applyTheme: (theme: ThemeType) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DashboardProps } from './containers/Dashboard';
|
|
2
|
+
import { Chart, ChartProps } from './components';
|
|
3
|
+
import { MetricProps } from './containers/Metric';
|
|
4
|
+
import { CreateEmbedMetricProps } from './containers/CreateMetric/CreateEmbeddedMetric';
|
|
5
|
+
export type { CustomSettings, TableSettings, MarginSettings, AxisSettings, LegendSettings, LabelSettings, BackgroundSettings, PivotSettingsType, GaugeSettingsType, ChartSettingsType, TimeSeriesSettingsType, MetricFilterOptionsType, DateTypeOptionType, } from '@/types';
|
|
6
|
+
export declare namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
Tag: any;
|
|
9
|
+
'dbn-dashboard': DashboardProps;
|
|
10
|
+
'dbn-metric': MetricProps;
|
|
11
|
+
'dbn-chart': ChartProps;
|
|
12
|
+
'dbn-create-metric': CreateEmbedMetricProps;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export type { DashboardProps, MetricProps, ChartProps, CreateEmbedMetricProps };
|
|
16
|
+
export { Chart };
|