@databrainhq/plugin 0.15.57 → 0.15.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/index.d.ts +34 -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 +16 -0
- package/dist/components/Chart/SingleValueChart.d.ts +39 -0
- package/dist/components/Chart/index.d.ts +48 -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/ComboAxisSettings/AxisSettings.d.ts +10 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.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 +11 -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/FileUploader/index.d.ts +6 -0
- package/dist/components/FilterDropDown/index.d.ts +32 -0
- package/dist/components/FilterField/index.d.ts +40 -0
- package/dist/components/Flex/index.d.ts +13 -0
- package/dist/components/FloatingDropDown/index.d.ts +43 -0
- package/dist/components/FullScreenChart/index.d.ts +8 -0
- package/dist/components/GaugeLegend/index.d.ts +12 -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 +29 -0
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +36 -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 +82 -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 +33 -0
- package/dist/components/Icons/index.d.ts +9 -0
- package/dist/components/InfoTooltip/index.d.ts +31 -0
- package/dist/components/InputField/index.d.ts +20 -0
- package/dist/components/List/index.d.ts +43 -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 +13 -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 +39 -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 +21 -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 +18 -0
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +7 -0
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +19 -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 +25 -0
- package/dist/components/MetricList/MetricList.d.ts +79 -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 +20 -0
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +49 -0
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +7 -0
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +16 -0
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +19 -0
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +14 -0
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +17 -0
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +107 -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 +45 -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 +39 -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 +17 -0
- package/dist/components/ScheduleEmail/index.d.ts +18 -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 +16 -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 +10 -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 +40 -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 +15 -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 +17 -0
- package/dist/components/TimeSeriesSettings/index.d.ts +8 -0
- package/dist/components/ToggleIconBtn/index.d.ts +14 -0
- package/dist/components/index.d.ts +67 -0
- package/dist/consts/api.d.ts +81 -0
- package/dist/consts/app.d.ts +157 -0
- package/dist/consts/index.d.ts +2 -0
- package/dist/consts/metricOptions.d.ts +209 -0
- package/dist/consts/validations.d.ts +24 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +85 -0
- package/dist/containers/Dashboard/DashboardProvider.d.ts +7 -0
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +54 -0
- package/dist/containers/Dashboard/index.d.ts +2 -0
- package/dist/containers/DbnStyles.d.ts +14 -0
- package/dist/containers/Metric/EmbeddedMetric.d.ts +55 -0
- package/dist/containers/Metric/MergedMetric.d.ts +54 -0
- package/dist/containers/Metric/index.d.ts +97 -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 +35 -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 +39 -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 +27 -0
- package/dist/hooks/useExternalMetric.d.ts +55 -0
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +16 -0
- package/dist/hooks/useGenerateMetric.d.ts +64 -0
- package/dist/hooks/useMetricCard.d.ts +130 -0
- package/dist/hooks/useMetricConfig.d.ts +63 -0
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +37 -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 +38 -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 +964 -0
- package/dist/types/dragAndDropProps.d.ts +70 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/metricCreate.d.ts +768 -0
- package/dist/types/queryTypes.d.ts +350 -0
- package/dist/usa-c14e93e4.mjs +15112 -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 +11 -0
- package/dist/webcomponents.es.js +224001 -0
- package/dist/webcomponents.umd.js +4436 -0
- package/dist/world-8db01cf5.mjs +45896 -0
- package/package.json +1 -1
|
@@ -0,0 +1,350 @@
|
|
|
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
|
+
isAllowToDownloadMetrics?: boolean | null;
|
|
33
|
+
adminTheme?: any | null;
|
|
34
|
+
clientId?: string | null;
|
|
35
|
+
companyId?: string | null;
|
|
36
|
+
companyTenancyType?: string | null;
|
|
37
|
+
externalMetrics?: (any | null)[] | null;
|
|
38
|
+
rlsSettings?: any | null;
|
|
39
|
+
appFilters?: any | null;
|
|
40
|
+
dashboardAppFilters?: any | null;
|
|
41
|
+
workspace?: any | null;
|
|
42
|
+
sharingSettingsId?: string | null;
|
|
43
|
+
error?: {
|
|
44
|
+
message: string;
|
|
45
|
+
} | null;
|
|
46
|
+
clientSubsetData?: ClientSubsetData;
|
|
47
|
+
cType?: ClientColumnType;
|
|
48
|
+
refreshTime?: number | null;
|
|
49
|
+
isEnableMetricSummary?: boolean;
|
|
50
|
+
isAllClient?: boolean;
|
|
51
|
+
metricCreationMode?: string;
|
|
52
|
+
datasourceId?: string;
|
|
53
|
+
} | null;
|
|
54
|
+
export type UseMetricQueryQueryInputType = {
|
|
55
|
+
id?: string;
|
|
56
|
+
clientId?: string;
|
|
57
|
+
globalFilters?: Record<string, any>;
|
|
58
|
+
rlsConditions?: any[];
|
|
59
|
+
filterValues?: Record<string, any>;
|
|
60
|
+
tenancyLevel?: string;
|
|
61
|
+
drillFilters?: any[];
|
|
62
|
+
limit?: number;
|
|
63
|
+
offset?: number;
|
|
64
|
+
isAllClient?: boolean;
|
|
65
|
+
disableStringify?: boolean;
|
|
66
|
+
pivotHeaders?: string[];
|
|
67
|
+
timeseriesSettings?: {
|
|
68
|
+
format: string;
|
|
69
|
+
seriesField: string;
|
|
70
|
+
};
|
|
71
|
+
chartSeriesField?: string;
|
|
72
|
+
comparisonCount?: number;
|
|
73
|
+
dynamicXAxis?: {
|
|
74
|
+
isEnable: boolean;
|
|
75
|
+
xaxis: string;
|
|
76
|
+
};
|
|
77
|
+
dbId?: string;
|
|
78
|
+
};
|
|
79
|
+
export type UseMetricQueryQueryOutputType = {
|
|
80
|
+
data?: any | null;
|
|
81
|
+
timeTaken?: number | null;
|
|
82
|
+
totalRecords?: number | null;
|
|
83
|
+
metaData?: any | null;
|
|
84
|
+
};
|
|
85
|
+
export type UseMetricColumnMutationInputType = {
|
|
86
|
+
tableName?: string;
|
|
87
|
+
columnName?: string;
|
|
88
|
+
wId?: string;
|
|
89
|
+
filter?: Record<string, any>;
|
|
90
|
+
customTable?: {
|
|
91
|
+
query: string;
|
|
92
|
+
alias: string;
|
|
93
|
+
};
|
|
94
|
+
labelColumnName?: string;
|
|
95
|
+
limit?: string;
|
|
96
|
+
datasourceId: string;
|
|
97
|
+
};
|
|
98
|
+
export type UseMetricUnderlyingDataMutationInputType = {
|
|
99
|
+
columnName?: string;
|
|
100
|
+
companyId?: string;
|
|
101
|
+
query?: string;
|
|
102
|
+
value?: any;
|
|
103
|
+
workspaceId?: string;
|
|
104
|
+
metricId?: string;
|
|
105
|
+
isCustomSql?: boolean;
|
|
106
|
+
};
|
|
107
|
+
export type UseMetricShareCsvMutationInputType = {
|
|
108
|
+
configurations?: Record<string, any>;
|
|
109
|
+
emails?: string[];
|
|
110
|
+
expireCsvFileAt?: string;
|
|
111
|
+
expireUrlIn?: number;
|
|
112
|
+
externalMetricId?: string;
|
|
113
|
+
integrationId?: string;
|
|
114
|
+
integrationName?: string;
|
|
115
|
+
query?: string;
|
|
116
|
+
sharingSettingsId?: string;
|
|
117
|
+
subject?: string;
|
|
118
|
+
};
|
|
119
|
+
export type UseSaveDashboardLayoutMutationInputType = {
|
|
120
|
+
clientId: string;
|
|
121
|
+
externalDashboardId: string;
|
|
122
|
+
layout: any[];
|
|
123
|
+
isLocked?: boolean;
|
|
124
|
+
dashboardFiltersLayout?: any[];
|
|
125
|
+
gridMargin?: {
|
|
126
|
+
verticalMargin?: number;
|
|
127
|
+
horizontalMargin?: number;
|
|
128
|
+
} | null;
|
|
129
|
+
};
|
|
130
|
+
export type UseDeleteDashboardScheduleReportMutationInputType = {
|
|
131
|
+
token: string;
|
|
132
|
+
id: string;
|
|
133
|
+
};
|
|
134
|
+
export type UseSaveDashboardScheduleReportMutationInputType = {
|
|
135
|
+
emails?: any;
|
|
136
|
+
externalDashboardId?: string;
|
|
137
|
+
guestToken?: string;
|
|
138
|
+
nextScheduledAt?: string;
|
|
139
|
+
sharingSettingsId?: string;
|
|
140
|
+
subject?: string;
|
|
141
|
+
timeConfigurations?: any;
|
|
142
|
+
data?: any;
|
|
143
|
+
isInternal?: boolean;
|
|
144
|
+
};
|
|
145
|
+
export type UseMarkArchivedMutationInputType = {
|
|
146
|
+
id?: string;
|
|
147
|
+
};
|
|
148
|
+
export type UsePublishArchivedMetricsMutationInputType = {
|
|
149
|
+
externalMetricIds?: string[];
|
|
150
|
+
archiveMetrics?: string[];
|
|
151
|
+
};
|
|
152
|
+
export type UseExecutePythonMutationInputType = {
|
|
153
|
+
code: string;
|
|
154
|
+
clientId?: string;
|
|
155
|
+
companyId: string;
|
|
156
|
+
rlsConditions?: RlsCondition[];
|
|
157
|
+
};
|
|
158
|
+
export type ExternalMetricsInsertInput = {
|
|
159
|
+
chartOptions?: any;
|
|
160
|
+
clientDeletedMetrics?: any;
|
|
161
|
+
clientId?: string;
|
|
162
|
+
companyId?: string;
|
|
163
|
+
companyIntegrationId?: string;
|
|
164
|
+
createdAt?: string;
|
|
165
|
+
createdBy?: string;
|
|
166
|
+
datasetMetricSettings?: any;
|
|
167
|
+
description?: string;
|
|
168
|
+
drillDownSettings?: any;
|
|
169
|
+
externalDashboardMetrics?: any;
|
|
170
|
+
externalMetricRawCsvUrl?: any;
|
|
171
|
+
externalMetricsRlsFilters?: any;
|
|
172
|
+
groupBy?: any;
|
|
173
|
+
inputFields?: any;
|
|
174
|
+
integrationName?: string;
|
|
175
|
+
isCreatedByClient?: boolean;
|
|
176
|
+
isEnableGroupBy?: boolean;
|
|
177
|
+
isLive?: boolean;
|
|
178
|
+
metricId?: string;
|
|
179
|
+
metricQuery?: string;
|
|
180
|
+
name?: string;
|
|
181
|
+
outputColumns?: string;
|
|
182
|
+
query?: string;
|
|
183
|
+
resizeAttributes?: any;
|
|
184
|
+
scheduleEmailReportCharts?: any;
|
|
185
|
+
selectedGroupBy?: any;
|
|
186
|
+
timeGrain?: string;
|
|
187
|
+
updatedAt?: string;
|
|
188
|
+
elementSettings?: any;
|
|
189
|
+
isMetric?: boolean;
|
|
190
|
+
};
|
|
191
|
+
export type UseUpdateAdminMetricMutationInputType = {
|
|
192
|
+
externalMetricId: string;
|
|
193
|
+
object: ExternalMetricsInsertInput;
|
|
194
|
+
clientId: string;
|
|
195
|
+
};
|
|
196
|
+
export type ExternalMetricsSetInput = {
|
|
197
|
+
chartOptions?: any;
|
|
198
|
+
description?: string;
|
|
199
|
+
metricId?: string;
|
|
200
|
+
name?: string;
|
|
201
|
+
resizeAttributes?: any;
|
|
202
|
+
updatedAt?: any;
|
|
203
|
+
};
|
|
204
|
+
export type UseUpdateMetricMutationInputType = {
|
|
205
|
+
externalMetricId: string;
|
|
206
|
+
set: ExternalMetricsSetInput;
|
|
207
|
+
};
|
|
208
|
+
export type UsePreviewTableMutationInputType = {
|
|
209
|
+
tableName?: string;
|
|
210
|
+
limit?: number;
|
|
211
|
+
integrationId?: string;
|
|
212
|
+
integrationName?: string;
|
|
213
|
+
};
|
|
214
|
+
export type UseGenerateMetricDataMutationInputType = {
|
|
215
|
+
questionString: string;
|
|
216
|
+
};
|
|
217
|
+
export type UseGenerateMetricMutationInputType = {
|
|
218
|
+
userInputs?: any;
|
|
219
|
+
integrationName?: string;
|
|
220
|
+
integrationId?: string;
|
|
221
|
+
};
|
|
222
|
+
export type UseDatatsetMetricMutationInputType = {
|
|
223
|
+
cId: string;
|
|
224
|
+
configuration: DatasetMetricCreationConfiguration;
|
|
225
|
+
id: string;
|
|
226
|
+
datasourceId: string;
|
|
227
|
+
};
|
|
228
|
+
export type UseNewDatatsetMetricMutationInputType = {
|
|
229
|
+
configuration: DatasetMetricCreationConfiguration;
|
|
230
|
+
id: string;
|
|
231
|
+
datasourceId: string;
|
|
232
|
+
};
|
|
233
|
+
export type UseGenerateMetricSummaryMutationInputType = {
|
|
234
|
+
data: Record<string, any>[];
|
|
235
|
+
wId?: string;
|
|
236
|
+
};
|
|
237
|
+
export type DbChatMetricCreationType = {
|
|
238
|
+
wId?: string;
|
|
239
|
+
question: string;
|
|
240
|
+
config?: any;
|
|
241
|
+
};
|
|
242
|
+
export type DbChatMetricCreationOutputType = {
|
|
243
|
+
data: any;
|
|
244
|
+
};
|
|
245
|
+
export type UseCreateMetricMutationInputType = {
|
|
246
|
+
chartOptions?: any;
|
|
247
|
+
companyId?: string;
|
|
248
|
+
companyIntegrationId?: string;
|
|
249
|
+
description?: string;
|
|
250
|
+
inputFields?: any;
|
|
251
|
+
integrationName?: string;
|
|
252
|
+
metricId?: string;
|
|
253
|
+
metricQuery?: string;
|
|
254
|
+
name?: string;
|
|
255
|
+
outputColumns?: string;
|
|
256
|
+
query?: string;
|
|
257
|
+
isLive?: boolean;
|
|
258
|
+
clientId?: string | null;
|
|
259
|
+
isCreatedByClient?: boolean;
|
|
260
|
+
createdBy?: string;
|
|
261
|
+
timeGrain?: string | null;
|
|
262
|
+
externalDashboardIds?: any;
|
|
263
|
+
selectedGroupBy?: any;
|
|
264
|
+
isEnableGroupBy?: boolean;
|
|
265
|
+
datasetMetricSettings?: any;
|
|
266
|
+
groupBy?: any;
|
|
267
|
+
drillDownSettings?: any;
|
|
268
|
+
};
|
|
269
|
+
export type CompanyIntegrations = {
|
|
270
|
+
companyId: string;
|
|
271
|
+
companyWorkspace: any;
|
|
272
|
+
customSqlColumns: any;
|
|
273
|
+
externalMetrics: any;
|
|
274
|
+
id: string;
|
|
275
|
+
integrationId: string;
|
|
276
|
+
name: string;
|
|
277
|
+
workspaceId: string;
|
|
278
|
+
};
|
|
279
|
+
export type ExternalMetrics = {
|
|
280
|
+
chartOptions: any;
|
|
281
|
+
clickActions: any;
|
|
282
|
+
clientDeletedMetrics: any;
|
|
283
|
+
clientId?: string;
|
|
284
|
+
companyId: string;
|
|
285
|
+
companyIntegration: CompanyIntegrations;
|
|
286
|
+
companyIntegrationId: string;
|
|
287
|
+
createdAt: string;
|
|
288
|
+
createdBy?: string;
|
|
289
|
+
datasetMetricSettings?: any;
|
|
290
|
+
description: string;
|
|
291
|
+
drillDownSettings?: any;
|
|
292
|
+
/** An array relationship */
|
|
293
|
+
externalDashboardMetrics: any;
|
|
294
|
+
/** An object relationship */
|
|
295
|
+
externalMetricRawCsvUrl?: any;
|
|
296
|
+
/** An array relationship */
|
|
297
|
+
externalMetricsRlsFilters: any;
|
|
298
|
+
groupBy: any;
|
|
299
|
+
id: string;
|
|
300
|
+
inputFields?: any;
|
|
301
|
+
integrationName: string;
|
|
302
|
+
isArchived: boolean;
|
|
303
|
+
isCreatedByClient: boolean;
|
|
304
|
+
isEnableGroupBy: boolean;
|
|
305
|
+
isLive: boolean;
|
|
306
|
+
isMarkedDeleted: boolean;
|
|
307
|
+
metricId: string;
|
|
308
|
+
metricQuery?: string;
|
|
309
|
+
name: string;
|
|
310
|
+
outputColumns?: string;
|
|
311
|
+
query: string;
|
|
312
|
+
resizeAttributes: any;
|
|
313
|
+
rlsConditions: any;
|
|
314
|
+
scheduleEmailReportCharts: any;
|
|
315
|
+
selectedGroupBy: any;
|
|
316
|
+
timeGrain?: string;
|
|
317
|
+
updatedAt: string;
|
|
318
|
+
};
|
|
319
|
+
export type ChatCompletionRequestMessage = {
|
|
320
|
+
/**
|
|
321
|
+
* The role of the author of this message.
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof ChatCompletionRequestMessage
|
|
324
|
+
*/
|
|
325
|
+
role: 'system' | 'user' | 'assistant';
|
|
326
|
+
/**
|
|
327
|
+
* The contents of the message
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof ChatCompletionRequestMessage
|
|
330
|
+
*/
|
|
331
|
+
content: string;
|
|
332
|
+
/**
|
|
333
|
+
* The name of the user in a multi-user chat
|
|
334
|
+
* @type {string}
|
|
335
|
+
* @memberof ChatCompletionRequestMessage
|
|
336
|
+
*/
|
|
337
|
+
name?: string;
|
|
338
|
+
};
|
|
339
|
+
export type UseChatApiResponseType = {
|
|
340
|
+
messages: ChatCompletionRequestMessage[];
|
|
341
|
+
};
|
|
342
|
+
export type SummarizeMetricMutationType = {
|
|
343
|
+
metricData: any;
|
|
344
|
+
summaryPrompt: string;
|
|
345
|
+
id: string;
|
|
346
|
+
filters: string;
|
|
347
|
+
name: string;
|
|
348
|
+
description: string;
|
|
349
|
+
workspaceId: string;
|
|
350
|
+
};
|