@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,27 +0,0 @@
|
|
|
1
|
-
import { ClientColumnType } from '@/types';
|
|
2
|
-
export interface UseEmbeddedMetricProps {
|
|
3
|
-
token: string;
|
|
4
|
-
metricId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const useEmbeddedMetric: ({ token, metricId, }: UseEmbeddedMetricProps) => {
|
|
7
|
-
externalMetric: any;
|
|
8
|
-
sharingSettingsId: string;
|
|
9
|
-
companyId: string;
|
|
10
|
-
clientId: string;
|
|
11
|
-
rlsSettings: {
|
|
12
|
-
metricId: string;
|
|
13
|
-
values: Record<string, any>;
|
|
14
|
-
} | undefined;
|
|
15
|
-
tenancyLevel: any;
|
|
16
|
-
isLoading: boolean;
|
|
17
|
-
errorMsg: any;
|
|
18
|
-
adminTheme: any;
|
|
19
|
-
workspaceId: any;
|
|
20
|
-
clientColumnType: ClientColumnType;
|
|
21
|
-
isEnableMetricSummary: boolean;
|
|
22
|
-
isAllClient: boolean;
|
|
23
|
-
isShowUnderlyingData: boolean;
|
|
24
|
-
appFilters: any;
|
|
25
|
-
mergedMetricsId: any;
|
|
26
|
-
datasourceId: any;
|
|
27
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { DashboardType, GroupBy, RlsFilterObjectType, SelectedColumns, ChartSettingsType } from '@/types/app';
|
|
3
|
-
import { DatasetSettings, DrillDownSettings } from '@/types';
|
|
4
|
-
type Params = {
|
|
5
|
-
onSuccess?: () => void;
|
|
6
|
-
companyIntegrationId: string | undefined;
|
|
7
|
-
selectedColumns: SelectedColumns[] | undefined;
|
|
8
|
-
query?: string;
|
|
9
|
-
metricQuery: string | undefined;
|
|
10
|
-
outputColumns: string | undefined;
|
|
11
|
-
id?: string;
|
|
12
|
-
chartSettings?: ChartSettingsType;
|
|
13
|
-
integrationName: string | undefined;
|
|
14
|
-
clientId?: string | null;
|
|
15
|
-
isEmbedded?: boolean;
|
|
16
|
-
rlsFilters?: RlsFilterObjectType[];
|
|
17
|
-
companyId: string;
|
|
18
|
-
isLiveMode?: boolean;
|
|
19
|
-
timeGrain?: string;
|
|
20
|
-
dashboardIds?: DashboardType['id'][];
|
|
21
|
-
userProvidedDashboardId?: string;
|
|
22
|
-
isEnableGroupBy?: boolean;
|
|
23
|
-
selectedGroupBy?: string[];
|
|
24
|
-
groupBy?: GroupBy | undefined;
|
|
25
|
-
metric?: Record<string, any>;
|
|
26
|
-
datasetMetricSettings?: DatasetSettings;
|
|
27
|
-
drillDownSettings?: DrillDownSettings;
|
|
28
|
-
};
|
|
29
|
-
export declare const useExternalMetric: ({ onSuccess, companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, chartSettings, clientId, companyId, isLiveMode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, metric, datasetMetricSettings, drillDownSettings, }: Params) => {
|
|
30
|
-
createExternalMetric: (data: FieldValues) => void;
|
|
31
|
-
updateExternalMetric: (data: FieldValues, isElement?: boolean) => void;
|
|
32
|
-
error: string;
|
|
33
|
-
isLoading: boolean;
|
|
34
|
-
clientSubsetData: any;
|
|
35
|
-
previewTable: import("react-query").UseMutateFunction<{
|
|
36
|
-
data: unknown;
|
|
37
|
-
}, unknown, {
|
|
38
|
-
data: import("../types/queryTypes").UsePreviewTableMutationInputType;
|
|
39
|
-
token: string;
|
|
40
|
-
}, unknown>;
|
|
41
|
-
token: string | undefined;
|
|
42
|
-
workspaceId: any;
|
|
43
|
-
dashboardOptions: {
|
|
44
|
-
value: any;
|
|
45
|
-
label: any;
|
|
46
|
-
}[];
|
|
47
|
-
isDatabaseTenancy: boolean;
|
|
48
|
-
register: import("react-hook-form").UseFormRegister<FieldValues>;
|
|
49
|
-
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
50
|
-
watch: import("react-hook-form").UseFormWatch<FieldValues>;
|
|
51
|
-
handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
|
|
52
|
-
control: import("react-hook-form").Control<FieldValues, any>;
|
|
53
|
-
reset: import("react-hook-form").UseFormReset<FieldValues>;
|
|
54
|
-
};
|
|
55
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const useGenerateDatasetMetrics: () => {
|
|
2
|
-
generateDatasetMetric: import("react-query").UseMutateFunction<{
|
|
3
|
-
data: unknown;
|
|
4
|
-
}, unknown, {
|
|
5
|
-
data: import("../types/queryTypes").UseGenerateMetricMutationInputType;
|
|
6
|
-
token: string;
|
|
7
|
-
}, unknown>;
|
|
8
|
-
isGeneratingDataset: boolean;
|
|
9
|
-
generateError: unknown;
|
|
10
|
-
fetchColumnValues: import("react-query").UseMutateFunction<{
|
|
11
|
-
data: unknown;
|
|
12
|
-
}, unknown, import("../types/queryTypes").UseMetricColumnMutationInputType, unknown>;
|
|
13
|
-
fetchColumnValuesAsync: import("react-query").UseMutateAsyncFunction<{
|
|
14
|
-
data: unknown;
|
|
15
|
-
}, unknown, import("../types/queryTypes").UseMetricColumnMutationInputType, unknown>;
|
|
16
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import EChartsReact from 'echarts-for-react';
|
|
4
|
-
import { ColumnSizingState } from '@tanstack/react-table';
|
|
5
|
-
import { ChartSettingsType, ConfigType, FloatingDropDownOption, GenerateMetricState, OnChangeAliasParams, OnChangeHelperFunctionParams, PivotDrillState, SelectedColumn, SetChartFieldParams, TableObjectType } from '@/types';
|
|
6
|
-
declare const useGenerateMetric: (config: ConfigType) => {
|
|
7
|
-
isDisableSaveBtn: boolean;
|
|
8
|
-
setChartSettings: import("react").Dispatch<import("react").SetStateAction<ChartSettingsType>>;
|
|
9
|
-
setShowSaveMetricModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
-
isShowSaveMetricModal: boolean;
|
|
11
|
-
register: import("react-hook-form").UseFormRegister<FieldValues>;
|
|
12
|
-
errors: import("react-hook-form").FieldErrors<FieldValues>;
|
|
13
|
-
onSubmitQuery: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
|
|
14
|
-
generateMetricState: GenerateMetricState;
|
|
15
|
-
chartTabType: "CHART" | "ERROR" | "LOADING" | "INIT";
|
|
16
|
-
chartSettings: ChartSettingsType;
|
|
17
|
-
chartRef: import("react").RefObject<EChartsReact>;
|
|
18
|
-
onColumnSizingChange: (columnSizing: ColumnSizingState) => void;
|
|
19
|
-
watch: import("react-hook-form").UseFormWatch<FieldValues>;
|
|
20
|
-
createExternalMetric: (data: FieldValues) => void;
|
|
21
|
-
saveError: string;
|
|
22
|
-
updateExternalMetric: (data: FieldValues, isElement?: boolean | undefined) => void;
|
|
23
|
-
clientSubsetData: any;
|
|
24
|
-
previewTable: import("react-query").UseMutateFunction<{
|
|
25
|
-
data: unknown;
|
|
26
|
-
}, unknown, {
|
|
27
|
-
data: import("@/types/queryTypes").UsePreviewTableMutationInputType;
|
|
28
|
-
token: string;
|
|
29
|
-
}, unknown>;
|
|
30
|
-
token: string | undefined;
|
|
31
|
-
dashboardOptions: {
|
|
32
|
-
value: any;
|
|
33
|
-
label: any;
|
|
34
|
-
}[];
|
|
35
|
-
isCreatingMetric: boolean;
|
|
36
|
-
tableList: TableObjectType[];
|
|
37
|
-
selectedMainTable: TableObjectType | undefined;
|
|
38
|
-
setSelectedMainTable: import("react").Dispatch<import("react").SetStateAction<TableObjectType | undefined>>;
|
|
39
|
-
aiResponseState: {
|
|
40
|
-
isLoading: boolean;
|
|
41
|
-
error: string;
|
|
42
|
-
};
|
|
43
|
-
onAiQuery: () => void;
|
|
44
|
-
autoCompleteDropdownOptions: SelectedColumn[];
|
|
45
|
-
selectedColumns: SelectedColumn[];
|
|
46
|
-
setSelectedColumns: import("react").Dispatch<import("react").SetStateAction<SelectedColumn[]>>;
|
|
47
|
-
functionOptions: (col?: SelectedColumn, colDatatype?: string) => FloatingDropDownOption[];
|
|
48
|
-
setChartFields: ({ chartType, chartDimensions, chartMetrics, chartAggregateColumns, configAggregates, }: SetChartFieldParams) => void;
|
|
49
|
-
onSubmitSearch: () => void;
|
|
50
|
-
onChangeHelperFunction: ({ column, helperFunction, functionConfiguration, }: OnChangeHelperFunctionParams) => void;
|
|
51
|
-
onChangeAlias: ({ alias, column }: OnChangeAliasParams) => void;
|
|
52
|
-
chartOptions: FloatingDropDownOption[];
|
|
53
|
-
isShowChartType: boolean;
|
|
54
|
-
setShowChartType: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
55
|
-
enabledCharts: string[];
|
|
56
|
-
stringColumnValues: {
|
|
57
|
-
column: string;
|
|
58
|
-
values: string[];
|
|
59
|
-
}[];
|
|
60
|
-
isRef: boolean;
|
|
61
|
-
setRef: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
62
|
-
pivotDrillState: PivotDrillState;
|
|
63
|
-
};
|
|
64
|
-
export default useGenerateMetric;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ChartSettingsType, FloatingDropDownOption, RlsCondition, DatasetSettings, MetricFilterOptionsType, PivotDrillState, OnDrillPivotTableParams, ChartReportStateType, ClientColumnType } from '@/types';
|
|
3
|
-
import { MetricCardProps } from '@/components';
|
|
4
|
-
type UseMetricCardProps = {
|
|
5
|
-
metric: Record<string, any>;
|
|
6
|
-
clientId: string;
|
|
7
|
-
encryptedClientId?: string;
|
|
8
|
-
tenancyLevel: string;
|
|
9
|
-
globalFilters?: MetricCardProps['globalFilters'];
|
|
10
|
-
rlsFilters?: any;
|
|
11
|
-
appFilters?: any;
|
|
12
|
-
datasetSettings?: DatasetSettings;
|
|
13
|
-
setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings>>;
|
|
14
|
-
isInternalApp?: boolean;
|
|
15
|
-
setCrossDashboardFilters?: React.Dispatch<React.SetStateAction<RlsCondition[]>>;
|
|
16
|
-
crossDashboardFilters?: RlsCondition[];
|
|
17
|
-
metricFilterOptions?: MetricFilterOptionsType;
|
|
18
|
-
isAllClient?: boolean;
|
|
19
|
-
isFrontendApp: boolean;
|
|
20
|
-
guestToken?: string;
|
|
21
|
-
workspaceId: string;
|
|
22
|
-
metricStore?: Map<string, {
|
|
23
|
-
data: any;
|
|
24
|
-
isLoading: boolean;
|
|
25
|
-
key: string;
|
|
26
|
-
}>;
|
|
27
|
-
setMetricStore?: React.Dispatch<React.SetStateAction<Map<string, {
|
|
28
|
-
data: any;
|
|
29
|
-
isLoading: boolean;
|
|
30
|
-
key: string;
|
|
31
|
-
}>>>;
|
|
32
|
-
onServerEvent?: any;
|
|
33
|
-
clientColumnType?: ClientColumnType;
|
|
34
|
-
datasourceId: string;
|
|
35
|
-
};
|
|
36
|
-
export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, clientId, tenancyLevel, isInternalApp, appFilters, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, isAllClient, isFrontendApp, guestToken, encryptedClientId, workspaceId, metricStore, setMetricStore, onServerEvent, clientColumnType, datasourceId, }: UseMetricCardProps) => {
|
|
37
|
-
elementSummary: string;
|
|
38
|
-
elementSummaryError: string;
|
|
39
|
-
isLoadingSummary: boolean;
|
|
40
|
-
isMetricListLoading: () => boolean;
|
|
41
|
-
onDrillLevelClick: (index: number) => void;
|
|
42
|
-
onDrillDown: (params: any, rowFilters?: {
|
|
43
|
-
columnName: string;
|
|
44
|
-
value: any;
|
|
45
|
-
}[] | undefined) => void;
|
|
46
|
-
handleChartClick: (params: any) => void;
|
|
47
|
-
dataDb: Record<string, any>[];
|
|
48
|
-
getUnderlyingData: ({ columnName, value, setData, setLoading, isSingleValueChart, clientColumnType, }: {
|
|
49
|
-
columnName: string | undefined;
|
|
50
|
-
value: any;
|
|
51
|
-
isSingleValueChart: boolean;
|
|
52
|
-
setData: import("react").Dispatch<import("react").SetStateAction<any[]>>;
|
|
53
|
-
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
54
|
-
clientColumnType: ClientColumnType;
|
|
55
|
-
}) => void;
|
|
56
|
-
onChangeFilterValue: (name: string, value: string, labelValue?: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[], slectedTimeGrainValue?: string) => void;
|
|
57
|
-
isShowChartPopup: boolean;
|
|
58
|
-
setShowChartPopup: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
59
|
-
columnName: string | undefined;
|
|
60
|
-
chartParams: any;
|
|
61
|
-
isQueryLoading: boolean;
|
|
62
|
-
isSingleValueNull: boolean;
|
|
63
|
-
dynamicOptions: any;
|
|
64
|
-
chartSettings: ChartSettingsType;
|
|
65
|
-
setChartSettings: import("react").Dispatch<import("react").SetStateAction<ChartSettingsType>>;
|
|
66
|
-
isEnableZoom: boolean;
|
|
67
|
-
filterValues: Record<string, any>;
|
|
68
|
-
containerRef: import("react").RefObject<HTMLDivElement>;
|
|
69
|
-
drilledLevel: number;
|
|
70
|
-
dimensions: any;
|
|
71
|
-
rlsConditions: RlsCondition[];
|
|
72
|
-
setRlsConditions: import("react").Dispatch<import("react").SetStateAction<RlsCondition[]>>;
|
|
73
|
-
setTableLimit: import("react").Dispatch<import("react").SetStateAction<{
|
|
74
|
-
limit: number;
|
|
75
|
-
offset: number;
|
|
76
|
-
}>>;
|
|
77
|
-
isEnableNextBtn: boolean;
|
|
78
|
-
isEnablePrevBtn: boolean;
|
|
79
|
-
paginationInfo: {
|
|
80
|
-
limit: number;
|
|
81
|
-
offset: number;
|
|
82
|
-
totalRecords: number;
|
|
83
|
-
};
|
|
84
|
-
onChangePage: (isPrev: boolean, resetValue?: number, nextOffset?: number) => void;
|
|
85
|
-
isExternalChart: boolean | undefined;
|
|
86
|
-
isEnablePivotTable: boolean;
|
|
87
|
-
groupByList: any[];
|
|
88
|
-
hasNumberKeys: boolean;
|
|
89
|
-
isEnableGauge: boolean;
|
|
90
|
-
updateFilter: (filter: RlsCondition) => void;
|
|
91
|
-
metricFilters: RlsCondition[];
|
|
92
|
-
leftPositionedMetricFilters: RlsCondition[];
|
|
93
|
-
rightPositionedMetricFilters: RlsCondition[];
|
|
94
|
-
drillFilters: {
|
|
95
|
-
columnName: string;
|
|
96
|
-
value: string | number;
|
|
97
|
-
}[];
|
|
98
|
-
drillType: any;
|
|
99
|
-
tableResultsDownloadData: Record<string, any>[];
|
|
100
|
-
appliedMetricFilters: RlsCondition[];
|
|
101
|
-
pivotHeaderOptions: FloatingDropDownOption[];
|
|
102
|
-
pivotDrillState: PivotDrillState;
|
|
103
|
-
onDrillPivotTable: ({ filters, nextLevel, currentValue, }: OnDrillPivotTableParams) => void;
|
|
104
|
-
legendData: any;
|
|
105
|
-
timeseriesDimension: any;
|
|
106
|
-
isPythonMode: boolean;
|
|
107
|
-
sortOrder: string;
|
|
108
|
-
setSortOrder: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
109
|
-
isNotFirstRender: boolean;
|
|
110
|
-
setNotFirstRender: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
111
|
-
isSorted: boolean;
|
|
112
|
-
isInavlidForSort: boolean | undefined;
|
|
113
|
-
onAddComparison: (isRemove?: boolean) => void;
|
|
114
|
-
groupedRlsConditions: Record<string | undefined, RlsCondition[]>;
|
|
115
|
-
onGenerateMetricSummary: () => void;
|
|
116
|
-
summary: ChartReportStateType;
|
|
117
|
-
setSummary: import("react").Dispatch<import("react").SetStateAction<ChartReportStateType>>;
|
|
118
|
-
dataMartRelationships: any;
|
|
119
|
-
onChartChange: (chartType: ChartSettingsType['chartType']) => void;
|
|
120
|
-
isCompareValue: boolean;
|
|
121
|
-
isShowChartPropertyPanel: boolean;
|
|
122
|
-
setShowChartPropertyPanel: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
123
|
-
columnList: string[];
|
|
124
|
-
variables: Record<string, any>;
|
|
125
|
-
metricName: string;
|
|
126
|
-
longDescription: string;
|
|
127
|
-
footNote: string;
|
|
128
|
-
description: string;
|
|
129
|
-
};
|
|
130
|
-
export {};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ChartSettingsType, ConfigType, DatasetSettings, DrillDownSettings, FloatingDropDownOption } from '@/types';
|
|
3
|
-
export type CompanyIntegration = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
} | undefined;
|
|
7
|
-
declare const useMetricConfig: ({ ...config }: ConfigType) => {
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
chartSettings: ChartSettingsType;
|
|
10
|
-
setShowSaveMetricModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
11
|
-
setSelectTable: import("react").Dispatch<import("react").SetStateAction<FloatingDropDownOption>>;
|
|
12
|
-
selectTable: FloatingDropDownOption;
|
|
13
|
-
data: any[] | undefined;
|
|
14
|
-
error: string;
|
|
15
|
-
previewTableData: any[] | undefined;
|
|
16
|
-
query: string;
|
|
17
|
-
isShowSqlModal: boolean;
|
|
18
|
-
setShowSqlModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
19
|
-
isEnablePivotTable: boolean;
|
|
20
|
-
isEnableGauge: boolean;
|
|
21
|
-
groupByList: string[];
|
|
22
|
-
hasNumberKeys: boolean;
|
|
23
|
-
setShowChartCustomProperties: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
24
|
-
isShowFullScreen: boolean;
|
|
25
|
-
setShowFullScreen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
26
|
-
isShowChartType: boolean;
|
|
27
|
-
setShowChartType: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
28
|
-
isShowSaveMetricModal: boolean;
|
|
29
|
-
updateExternalMetric: (data: import("react-hook-form").FieldValues, isElement?: boolean | undefined) => void;
|
|
30
|
-
createExternalMetric: (data: import("react-hook-form").FieldValues) => void;
|
|
31
|
-
dashboardOptions: {
|
|
32
|
-
value: any;
|
|
33
|
-
label: any;
|
|
34
|
-
}[];
|
|
35
|
-
saveError: string;
|
|
36
|
-
setChartSettings: import("react").Dispatch<import("react").SetStateAction<ChartSettingsType>>;
|
|
37
|
-
isShowChartCustomProperties: boolean;
|
|
38
|
-
setBarRadius: import("react").Dispatch<import("react").SetStateAction<{
|
|
39
|
-
topRadius: number;
|
|
40
|
-
bottomRadius: number;
|
|
41
|
-
}>>;
|
|
42
|
-
setError: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
43
|
-
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
44
|
-
setData: import("react").Dispatch<import("react").SetStateAction<any[] | undefined>>;
|
|
45
|
-
setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
46
|
-
setGroupByList: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
47
|
-
clientSubsetData: any;
|
|
48
|
-
isShowSortPanel: boolean;
|
|
49
|
-
setShowSortPanel: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
50
|
-
isShowFilters: boolean;
|
|
51
|
-
setShowFilters: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
52
|
-
isCreatingMetric: boolean;
|
|
53
|
-
isEnableSingleDimension: boolean;
|
|
54
|
-
isEnableSingleMetrics: boolean;
|
|
55
|
-
enabledCharts: string[];
|
|
56
|
-
setResetPallete: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
57
|
-
dbName: string;
|
|
58
|
-
setDatatsetSettings: import("react").Dispatch<import("react").SetStateAction<DatasetSettings | undefined>>;
|
|
59
|
-
drillDownSettings: DrillDownSettings;
|
|
60
|
-
setDrillDownSettings: import("react").Dispatch<import("react").SetStateAction<DrillDownSettings>>;
|
|
61
|
-
datasetSettings: DatasetSettings | undefined;
|
|
62
|
-
};
|
|
63
|
-
export default useMetricConfig;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
declare const useNewEmbeddedDashboard: ({ token, dashboardId, }: {
|
|
2
|
-
token: string;
|
|
3
|
-
dashboardId?: string | undefined;
|
|
4
|
-
}) => {
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
error: string | undefined;
|
|
7
|
-
data: {
|
|
8
|
-
token: string;
|
|
9
|
-
externalDashboard: any;
|
|
10
|
-
externalDashboardMetrics: any;
|
|
11
|
-
isAllowedToChangeLayout: boolean;
|
|
12
|
-
isAllowedToCreateMetrics: boolean;
|
|
13
|
-
isAllowedToDeleteMetrics: boolean;
|
|
14
|
-
isAllowedToUpdateMetrics: boolean;
|
|
15
|
-
isAllowedToEmailReports: boolean;
|
|
16
|
-
isAllowToDownloadMetrics: boolean;
|
|
17
|
-
isShowUnderlyingData: boolean;
|
|
18
|
-
companyId: string;
|
|
19
|
-
clientId: string;
|
|
20
|
-
workspace: any;
|
|
21
|
-
rlsSettings: any;
|
|
22
|
-
appFilters: any;
|
|
23
|
-
sharingSettingsId: string;
|
|
24
|
-
adminTheme: any;
|
|
25
|
-
companyTenancyType: string;
|
|
26
|
-
clientSubsetData: import("@/types/queryTypes").ClientSubsetData | undefined;
|
|
27
|
-
clientColumnType: import("../types").ClientColumnType;
|
|
28
|
-
refreshTime: number | null | undefined;
|
|
29
|
-
isEnableMetricSummary: boolean;
|
|
30
|
-
isAllClient: boolean;
|
|
31
|
-
metricCreationMode: string;
|
|
32
|
-
isAllowedManageMetrics: boolean;
|
|
33
|
-
dashboardAppFilters: any;
|
|
34
|
-
datasourceId: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export default useNewEmbeddedDashboard;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
type UseOutsideAlerterProps = {
|
|
3
|
-
onOutsideClick: () => void;
|
|
4
|
-
wrapRef: React.RefObject<any>;
|
|
5
|
-
portalRef?: any;
|
|
6
|
-
};
|
|
7
|
-
export declare const useOutsideAlerter: ({ onOutsideClick, wrapRef, portalRef, }: UseOutsideAlerterProps) => void;
|
|
8
|
-
type UsePopoverOutsideAlerterProps = {
|
|
9
|
-
wrapRef: React.RefObject<any>;
|
|
10
|
-
portalRef?: any;
|
|
11
|
-
autoCloseParent?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const usePopoverOutsideAlerter: ({ wrapRef, portalRef, autoCloseParent, }: UsePopoverOutsideAlerterProps) => void;
|
|
14
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RlsCondition, SqlError, TableColumn } from '@/types';
|
|
2
|
-
export declare const usePythonResults: ({ setError, setLoading, setData, }: {
|
|
3
|
-
setError?: ((error: SqlError) => void) | undefined;
|
|
4
|
-
setLoading?: ((loading: boolean) => void) | undefined;
|
|
5
|
-
setData?: ((data: Record<string, any>[]) => void) | undefined;
|
|
6
|
-
}) => {
|
|
7
|
-
pythonResult: Record<string, any>[];
|
|
8
|
-
pythonError: string;
|
|
9
|
-
isLoadingPython: boolean;
|
|
10
|
-
pythonColumns: TableColumn[];
|
|
11
|
-
executePython: ({ code, clientId, rlsConditions, companyId, }: {
|
|
12
|
-
code: string;
|
|
13
|
-
clientId?: string | undefined;
|
|
14
|
-
rlsConditions?: RlsCondition[] | undefined;
|
|
15
|
-
companyId: string;
|
|
16
|
-
}) => Promise<void>;
|
|
17
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import { ClientType } from '@/types';
|
|
4
|
-
export type ClientStateParams = {
|
|
5
|
-
setClients: React.Dispatch<React.SetStateAction<ClientType[]>>;
|
|
6
|
-
clients: ClientType[];
|
|
7
|
-
isDisableClient: boolean;
|
|
8
|
-
isRequiredClient: boolean;
|
|
9
|
-
};
|
|
10
|
-
type Params = {
|
|
11
|
-
onCancel: () => void;
|
|
12
|
-
getInternalToken?: (guestToken?: string, isAllClient?: boolean) => Promise<string>;
|
|
13
|
-
scheduleReportConfig?: any;
|
|
14
|
-
sharingSettingsId?: string;
|
|
15
|
-
externalDashboardId?: string;
|
|
16
|
-
onComplete?: () => void;
|
|
17
|
-
clientState?: ClientStateParams;
|
|
18
|
-
};
|
|
19
|
-
declare const useScheduleEmail: ({ onCancel, getInternalToken, scheduleReportConfig: internalScheduleReportConfig, externalDashboardId, sharingSettingsId, onComplete, clientState, }: Params) => {
|
|
20
|
-
register: import("react-hook-form").UseFormRegister<FieldValues>;
|
|
21
|
-
handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
|
|
22
|
-
watch: import("react-hook-form").UseFormWatch<FieldValues>;
|
|
23
|
-
control: import("react-hook-form").Control<FieldValues, any>;
|
|
24
|
-
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
25
|
-
getValues: import("react-hook-form").UseFormGetValues<FieldValues>;
|
|
26
|
-
reset: import("react-hook-form").UseFormReset<FieldValues>;
|
|
27
|
-
dashboardName: string;
|
|
28
|
-
onSave: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
|
|
29
|
-
isLoading: boolean;
|
|
30
|
-
isSuccess: boolean;
|
|
31
|
-
error: string;
|
|
32
|
-
isLoadingData: boolean;
|
|
33
|
-
scheduleReportConfig: any;
|
|
34
|
-
onDelete: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
|
|
35
|
-
isDeleted: boolean;
|
|
36
|
-
errors: import("react-hook-form").FieldErrors<FieldValues>;
|
|
37
|
-
};
|
|
38
|
-
export default useScheduleEmail;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ChartReportStateType, PivotDrillState, SearchKeyType, SearchState, SearchStateChatType } from '@/types';
|
|
3
|
-
import { ChartTypePanelProps } from '@/components/SearchMetricData/ChatMode/ChatMode';
|
|
4
|
-
import { ChartAppearancePanelProps } from '@/components/SearchMetricData/ChatMode/ChatAppearancePanel';
|
|
5
|
-
export type UseSearchType = {
|
|
6
|
-
dashboardId: string | null;
|
|
7
|
-
dashboardIds: string[];
|
|
8
|
-
themeChartColors?: string[];
|
|
9
|
-
workspaceId: string;
|
|
10
|
-
token: string;
|
|
11
|
-
companyId: string;
|
|
12
|
-
setSearchGenerateMetricModal: (value: React.SetStateAction<boolean>) => void;
|
|
13
|
-
clientId: string;
|
|
14
|
-
};
|
|
15
|
-
declare const useSearch: ({ dashboardId, dashboardIds, themeChartColors, token, workspaceId, companyId, clientId, }: UseSearchType) => {
|
|
16
|
-
searchState: SearchState;
|
|
17
|
-
setSearchState: import("react").Dispatch<import("react").SetStateAction<SearchState>>;
|
|
18
|
-
onAskQuestion: () => void;
|
|
19
|
-
autoCompleteDropdownOptions: import("@/types").SearchColumn[];
|
|
20
|
-
searchKeys: SearchKeyType[];
|
|
21
|
-
setSearchKeys: import("react").Dispatch<import("react").SetStateAction<SearchKeyType[]>>;
|
|
22
|
-
setSearchKeyword: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
23
|
-
searchKeyword: string;
|
|
24
|
-
showChatResults: number[];
|
|
25
|
-
setShowChatResults: import("react").Dispatch<import("react").SetStateAction<number[]>>;
|
|
26
|
-
chartPanel: {
|
|
27
|
-
isOpenTypePanel: boolean;
|
|
28
|
-
isOpenAppearance: boolean;
|
|
29
|
-
chartIndex: number;
|
|
30
|
-
};
|
|
31
|
-
setChartPanel: import("react").Dispatch<import("react").SetStateAction<{
|
|
32
|
-
isOpenTypePanel: boolean;
|
|
33
|
-
isOpenAppearance: boolean;
|
|
34
|
-
chartIndex: number;
|
|
35
|
-
}>>;
|
|
36
|
-
chartTypePanelProps: ChartTypePanelProps;
|
|
37
|
-
chartAppearancePanelProps: Pick<ChartAppearancePanelProps, "chartSettings" | "setChartSettings" | "isOpen" | "setResetPallete" | "setBarRadius" | "onClose" | "zIndex">;
|
|
38
|
-
selectedChat: SearchStateChatType | undefined;
|
|
39
|
-
saveChat: (data: import("react-hook-form").FieldValues) => void;
|
|
40
|
-
isSavingChat: boolean;
|
|
41
|
-
saveChatError: string;
|
|
42
|
-
updateChat: (data: import("react-hook-form").FieldValues, isElement?: boolean | undefined) => void;
|
|
43
|
-
fromatQuery: (query: string) => string;
|
|
44
|
-
setChatReport: import("react").Dispatch<import("react").SetStateAction<ChartReportStateType>>;
|
|
45
|
-
chatReport: ChartReportStateType;
|
|
46
|
-
isSearchDataLoading: boolean;
|
|
47
|
-
pivotDrillState: PivotDrillState;
|
|
48
|
-
setPivotDrillState: import("react").Dispatch<import("react").SetStateAction<PivotDrillState>>;
|
|
49
|
-
isModalShow: boolean;
|
|
50
|
-
setModalShow: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
51
|
-
isLoading: boolean;
|
|
52
|
-
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
53
|
-
onGenerateDataReport: (chat: SearchStateChatType) => void;
|
|
54
|
-
};
|
|
55
|
-
export default useSearch;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FilterFieldType } from '@/components';
|
|
2
|
-
import { DataMartRelationShip } from '@/helpers';
|
|
3
|
-
import { ClientColumnType, RlsCondition } from '@/types';
|
|
4
|
-
export declare const useUnderlyingData: ({ clientName, dbName, tenancyType, values, query, companyId, workspaceId, metricId, globalFilters, isAllClient, rlsConditions, dataMartRelationships, customSql, isEnableCustomSQL, }: {
|
|
5
|
-
clientName?: string | undefined;
|
|
6
|
-
dbName: string;
|
|
7
|
-
tenancyType?: string | undefined;
|
|
8
|
-
values?: Record<string, string> | undefined;
|
|
9
|
-
query: string;
|
|
10
|
-
companyId: string;
|
|
11
|
-
workspaceId: string;
|
|
12
|
-
metricId: string;
|
|
13
|
-
rlsConditions: RlsCondition[];
|
|
14
|
-
globalFilters: {
|
|
15
|
-
tableName: string;
|
|
16
|
-
filters: FilterFieldType[];
|
|
17
|
-
};
|
|
18
|
-
isAllClient: boolean;
|
|
19
|
-
dataMartRelationships: DataMartRelationShip[];
|
|
20
|
-
customSql?: string | undefined;
|
|
21
|
-
isEnableCustomSQL?: boolean | undefined;
|
|
22
|
-
}) => {
|
|
23
|
-
getUnderlyingData: ({ columnName, value, setData, setLoading, isSingleValueChart, clientColumnType, }: {
|
|
24
|
-
columnName: string | undefined;
|
|
25
|
-
value: any | undefined;
|
|
26
|
-
isSingleValueChart: boolean;
|
|
27
|
-
setData: React.Dispatch<React.SetStateAction<any[]>>;
|
|
28
|
-
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
-
clientColumnType: ClientColumnType;
|
|
30
|
-
}) => void;
|
|
31
|
-
};
|
|
32
|
-
export default useUnderlyingData;
|
package/dist/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './containers';
|
|
2
|
-
export * as utils from './utils';
|
|
3
|
-
export * as consts from './consts';
|
|
4
|
-
export * as helpers from './helpers';
|
|
5
|
-
export * as hooks from './hooks';
|
|
6
|
-
export * as types from './types';
|
|
7
|
-
export * as Ui from './components';
|
|
8
|
-
export * as queries from './queries';
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { UseChatApiResponseType, UseCreateMetricMutationInputType, UseDatatsetMetricMutationInputType, UseDeleteDashboardScheduleReportMutationInputType, UseGenerateMetricDataMutationInputType, UseGenerateMetricMutationInputType, UsePreviewTableMutationInputType, UseSaveDashboardLayoutMutationInputType, UseSaveDashboardScheduleReportMutationInputType, UseUpdateAdminMetricMutationInputType, UseUpdateMetricMutationInputType } from '@/types/queryTypes';
|
|
2
|
-
export declare const useSaveDashboardLayoutMutation: () => import("react-query").UseMutationResult<{
|
|
3
|
-
data: unknown;
|
|
4
|
-
}, unknown, UseSaveDashboardLayoutMutationInputType, unknown>;
|
|
5
|
-
export declare const useSaveDashboardScheduleReportMutation: () => import("react-query").UseMutationResult<{
|
|
6
|
-
data: unknown;
|
|
7
|
-
}, unknown, {
|
|
8
|
-
data: UseSaveDashboardScheduleReportMutationInputType;
|
|
9
|
-
token: string;
|
|
10
|
-
}, unknown>;
|
|
11
|
-
export declare const useDeleteDashboardScheduleReportMutation: () => import("react-query").UseMutationResult<{
|
|
12
|
-
data: unknown;
|
|
13
|
-
}, unknown, UseDeleteDashboardScheduleReportMutationInputType, unknown>;
|
|
14
|
-
export declare const useCreateMetricMutation: () => import("react-query").UseMutationResult<{
|
|
15
|
-
data: unknown;
|
|
16
|
-
}, unknown, {
|
|
17
|
-
data: UseCreateMetricMutationInputType;
|
|
18
|
-
token: string;
|
|
19
|
-
}, unknown>;
|
|
20
|
-
export declare const useUpdateMetricMutation: () => import("react-query").UseMutationResult<{
|
|
21
|
-
data: unknown;
|
|
22
|
-
}, unknown, {
|
|
23
|
-
data: UseUpdateMetricMutationInputType;
|
|
24
|
-
token: string;
|
|
25
|
-
}, unknown>;
|
|
26
|
-
export declare const useUpdateAdminMetricMutation: () => import("react-query").UseMutationResult<{
|
|
27
|
-
data: unknown;
|
|
28
|
-
}, unknown, {
|
|
29
|
-
data: UseUpdateAdminMetricMutationInputType;
|
|
30
|
-
token: string;
|
|
31
|
-
}, unknown>;
|
|
32
|
-
export declare const useGenerateMetricMutation: () => import("react-query").UseMutationResult<{
|
|
33
|
-
data: unknown;
|
|
34
|
-
}, unknown, {
|
|
35
|
-
data: UseGenerateMetricMutationInputType;
|
|
36
|
-
token: string;
|
|
37
|
-
}, unknown>;
|
|
38
|
-
export declare const useDatasetMetricMutation: () => import("react-query").UseMutationResult<{
|
|
39
|
-
data: unknown;
|
|
40
|
-
}, unknown, {
|
|
41
|
-
data: UseDatatsetMetricMutationInputType;
|
|
42
|
-
token: string;
|
|
43
|
-
}, unknown>;
|
|
44
|
-
export declare const usePreviewTableMutation: () => import("react-query").UseMutationResult<{
|
|
45
|
-
data: unknown;
|
|
46
|
-
}, unknown, {
|
|
47
|
-
data: UsePreviewTableMutationInputType;
|
|
48
|
-
token: string;
|
|
49
|
-
}, unknown>;
|
|
50
|
-
export declare const useGenerateMetricDataMutation: () => import("react-query").UseMutationResult<{
|
|
51
|
-
data: unknown;
|
|
52
|
-
}, unknown, {
|
|
53
|
-
data: UseGenerateMetricDataMutationInputType;
|
|
54
|
-
token: string;
|
|
55
|
-
}, unknown>;
|
|
56
|
-
export declare const useChatApiResponse: () => import("react-query").UseMutationResult<{
|
|
57
|
-
data: unknown;
|
|
58
|
-
}, unknown, {
|
|
59
|
-
data: UseChatApiResponseType;
|
|
60
|
-
token: string;
|
|
61
|
-
}, unknown>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { UseDashboardDataQueryInputType } from '@/types/queryTypes';
|
|
2
|
-
export declare const useDashboardDataQuery: ({ token, dashboardId, }: UseDashboardDataQueryInputType) => import("react-query").UseQueryResult<{
|
|
3
|
-
data: unknown;
|
|
4
|
-
}, unknown>;
|
|
5
|
-
export declare const useDashboardLayoutQuery: (dashboardId: string, clientId: string) => import("react-query").UseQueryResult<{
|
|
6
|
-
data: unknown;
|
|
7
|
-
}, unknown>;
|
|
8
|
-
export declare const useDashboardScheduledReportQuery: (token: string) => import("react-query").UseQueryResult<{
|
|
9
|
-
data: unknown;
|
|
10
|
-
}, unknown>;
|
|
11
|
-
export declare const useEmbeddedMetricQuery: (token: string, id: string) => import("react-query").UseQueryResult<{
|
|
12
|
-
data: unknown;
|
|
13
|
-
}, unknown>;
|
|
14
|
-
export declare const useGetTheme: ({ token, name, companyId, }: {
|
|
15
|
-
token: string;
|
|
16
|
-
name: string;
|
|
17
|
-
companyId: string;
|
|
18
|
-
}) => import("react-query").UseQueryResult<{
|
|
19
|
-
data: unknown;
|
|
20
|
-
}, unknown>;
|
package/dist/queries/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './metric.mutation';
|