drizzle-cube 0.6.1 → 0.6.2
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/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +1 -1
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +1 -1
- package/dist/adapters/{handler-CfgE0JSL.js → handler-CtaSua-i.js} +1 -1
- package/dist/adapters/{handler-Cn0dOctE.cjs → handler-OwxSBJH8.cjs} +1 -1
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +1 -1
- package/dist/{server/openai-B5jEiqiB.js → adapters/openai-CmVRIbUg.js} +18 -2
- package/dist/adapters/{openai-cDlFSTk6.js → openai-CtXqeznO.js} +1 -1
- package/dist/{server/openai-D0musiYP.cjs → adapters/openai-D-6l1Y8h.cjs} +3 -3
- package/dist/adapters/{openai-vXvLni8v.cjs → openai-DTSTMiXL.cjs} +1 -1
- package/dist/cjs/adapters/express/index.d.ts +114 -0
- package/dist/cjs/adapters/fastify/index.d.ts +113 -0
- package/dist/cjs/adapters/hono/agent-handler.d.ts +9 -0
- package/dist/cjs/adapters/hono/index.d.ts +120 -0
- package/dist/cjs/adapters/hono/mcp-handler.d.ts +37 -0
- package/dist/cjs/adapters/locale.d.ts +8 -0
- package/dist/cjs/adapters/mcp-tools-handlers.d.ts +18 -0
- package/dist/cjs/adapters/mcp-tools.d.ts +134 -0
- package/dist/cjs/adapters/mcp-transport.d.ts +158 -0
- package/dist/cjs/adapters/nextjs/index.d.ts +196 -0
- package/dist/cjs/adapters/nextjs/mcp-handler.d.ts +36 -0
- package/dist/cjs/adapters/types.d.ts +41 -0
- package/dist/cjs/adapters/utils.d.ts +354 -0
- package/dist/cjs/client/adapters/adapterRegistry.d.ts +44 -0
- package/dist/cjs/client/adapters/flowModeAdapter.d.ts +3 -0
- package/dist/cjs/client/adapters/funnelModeAdapter.d.ts +19 -0
- package/dist/cjs/client/adapters/index.d.ts +29 -0
- package/dist/cjs/client/adapters/modeAdapter.d.ts +117 -0
- package/dist/cjs/client/adapters/queryModeAdapter.d.ts +16 -0
- package/dist/cjs/client/adapters/retentionModeAdapter.d.ts +3 -0
- package/dist/cjs/client/charts/ChartLoader.d.ts +69 -0
- package/dist/cjs/client/charts/chartComponentRegistry.d.ts +46 -0
- package/dist/cjs/client/charts/chartConfigHelpers.d.ts +38 -0
- package/dist/cjs/client/charts/chartConfigRegistry.d.ts +15 -0
- package/dist/cjs/client/charts/chartConfigs.d.ts +142 -0
- package/dist/cjs/client/charts/chartPlugin.d.ts +74 -0
- package/dist/cjs/client/charts/lazyChartConfigRegistry.d.ts +100 -0
- package/dist/cjs/client/charts.d.ts +17 -0
- package/dist/cjs/client/client/BatchCoordinator.d.ts +38 -0
- package/dist/cjs/client/client/CubeClient.d.ts +32 -0
- package/dist/cjs/client/components/AIAssistant/constants.d.ts +11 -0
- package/dist/cjs/client/components/AIAssistant/index.d.ts +10 -0
- package/dist/cjs/client/components/AIAssistant/types.d.ts +49 -0
- package/dist/cjs/client/components/AIAssistant/utils.d.ts +17 -0
- package/dist/cjs/client/components/AgenticNotebook/AgentChatPanel.d.ts +27 -0
- package/dist/cjs/client/components/AgenticNotebook/ChatInput.d.ts +14 -0
- package/dist/cjs/client/components/AgenticNotebook/ChatMessage.d.ts +9 -0
- package/dist/cjs/client/components/AgenticNotebook/NotebookCanvas.d.ts +6 -0
- package/dist/cjs/client/components/AgenticNotebook/NotebookMarkdownBlock.d.ts +12 -0
- package/dist/cjs/client/components/AgenticNotebook/NotebookPortletBlock.d.ts +15 -0
- package/dist/cjs/client/components/AgenticNotebook/agentChatParts.d.ts +34 -0
- package/dist/cjs/client/components/AgenticNotebook/chatMessageParts.d.ts +39 -0
- package/dist/cjs/client/components/AgenticNotebook/index.d.ts +56 -0
- package/dist/cjs/client/components/AgenticNotebook/useAgentChatController.d.ts +25 -0
- package/dist/cjs/client/components/AgenticNotebook/useNotebookAutosave.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisAIPanel.d.ts +25 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisAxisDropZone.d.ts +29 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisChartConfigPanel.d.ts +18 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisDisplayConfigPanel.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisFilterGroup.d.ts +20 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisFilterItem.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisFilterSection.d.ts +16 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisModeErrorBoundary.d.ts +27 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisQueryPanel.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisQueryPanelParts.d.ts +64 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +67 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsPanel.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisTypeSelector.d.ts +17 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownComparisonToggle.d.ts +13 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownItemCard.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownRow.d.ts +26 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownSection.d.ts +9 -0
- package/dist/cjs/client/components/AnalysisBuilder/DisplayOptionControl.d.ts +10 -0
- package/dist/cjs/client/components/AnalysisBuilder/ExecutionPlanPanel.d.ts +49 -0
- package/dist/cjs/client/components/AnalysisBuilder/ExecutionPlanPanelParts.d.ts +22 -0
- package/dist/cjs/client/components/AnalysisBuilder/ExplainAIPanel.d.ts +16 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldDetailPanel.d.ts +4 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldSearchItem.d.ts +6 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldSearchModal.d.ts +2 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldSearchResults.d.ts +16 -0
- package/dist/cjs/client/components/AnalysisBuilder/FilterConfigModal.d.ts +17 -0
- package/dist/cjs/client/components/AnalysisBuilder/FilterValueInput.d.ts +63 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowConfigPanel.d.ts +28 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowDepthControls.d.ts +10 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowModeContent.d.ts +57 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowVisualizationPicker.d.ts +7 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelBindingKeySelector.d.ts +21 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelConfigPanel.d.ts +24 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelModeContent.d.ts +48 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelStepCard.d.ts +25 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelStepList.d.ts +26 -0
- package/dist/cjs/client/components/AnalysisBuilder/LegacyBooleanOptions.d.ts +8 -0
- package/dist/cjs/client/components/AnalysisBuilder/LimitSection.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/MetricItemCard.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/MetricRow.d.ts +23 -0
- package/dist/cjs/client/components/AnalysisBuilder/MetricsSection.d.ts +9 -0
- package/dist/cjs/client/components/AnalysisBuilder/RetentionConfigPanel.d.ts +36 -0
- package/dist/cjs/client/components/AnalysisBuilder/RetentionModeContent.d.ts +71 -0
- package/dist/cjs/client/components/AnalysisBuilder/SectionHeading.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/SortToggleButton.d.ts +13 -0
- package/dist/cjs/client/components/AnalysisBuilder/StringArrayInput.d.ts +17 -0
- package/dist/cjs/client/components/AnalysisBuilder/filterConfigModalUtils.d.ts +30 -0
- package/dist/cjs/client/components/AnalysisBuilder/hooks/useAnalysisBuilderImperativeHandle.d.ts +13 -0
- package/dist/cjs/client/components/AnalysisBuilder/hooks/useDragReorder.d.ts +25 -0
- package/dist/cjs/client/components/AnalysisBuilder/hooks/useFieldSearchKeyboard.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/index.d.ts +9 -0
- package/dist/cjs/client/components/AnalysisBuilder/types.d.ts +851 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/axisConfigUtils.d.ts +23 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/executionPlanMarkdown.d.ts +8 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/fieldUtils.d.ts +69 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/filterUtils.d.ts +19 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/idUtils.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/index.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/queryUtils.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/recentFieldsUtils.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/resultsPanelDerive.d.ts +68 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/shareStateUtils.d.ts +68 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/sortUtils.d.ts +7 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/storageUtils.d.ts +44 -0
- package/dist/cjs/client/components/AnalysisBuilderLazy.d.ts +4 -0
- package/dist/cjs/client/components/AnalyticsDashboard.d.ts +2 -0
- package/dist/cjs/client/components/AnalyticsPage.d.ts +1 -0
- package/dist/cjs/client/components/AnalyticsPortlet.d.ts +10 -0
- package/dist/cjs/client/components/ChartErrorBoundary.d.ts +21 -0
- package/dist/cjs/client/components/ChartTypeSelector.d.ts +15 -0
- package/dist/cjs/client/components/ColorPaletteSelector.d.ts +11 -0
- package/dist/cjs/client/components/ConfirmModal.d.ts +30 -0
- package/dist/cjs/client/components/DashboardEditModal.d.ts +15 -0
- package/dist/cjs/client/components/DashboardFilterPanel.d.ts +15 -0
- package/dist/cjs/client/components/DashboardFilters/CompactFilterBar.d.ts +13 -0
- package/dist/cjs/client/components/DashboardFilters/CompactFilterBarParts.d.ts +26 -0
- package/dist/cjs/client/components/DashboardFilters/CustomDateDropdown.d.ts +10 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterConfigModal.d.ts +20 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterConfigModalParts.d.ts +27 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterItem.d.ts +14 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterValueInput.d.ts +39 -0
- package/dist/cjs/client/components/DashboardFilters/DatePresetChips.d.ts +8 -0
- package/dist/cjs/client/components/DashboardFilters/EditModeFilterList.d.ts +13 -0
- package/dist/cjs/client/components/DashboardFilters/FilterChip.d.ts +12 -0
- package/dist/cjs/client/components/DashboardFilters/FilterEditModal.d.ts +15 -0
- package/dist/cjs/client/components/DashboardFilters/FilterValuePopover.d.ts +11 -0
- package/dist/cjs/client/components/DashboardFilters/ReadOnlyFilterList.d.ts +13 -0
- package/dist/cjs/client/components/DashboardFilters/XTDDropdown.d.ts +10 -0
- package/dist/cjs/client/components/DashboardFilters/dashboardFilterConfigModalUtils.d.ts +21 -0
- package/dist/cjs/client/components/DashboardFilters/useCompactFilterBar.d.ts +19 -0
- package/dist/cjs/client/components/DashboardFilters/useDashboardFilterConfigModal.d.ts +69 -0
- package/dist/cjs/client/components/DashboardFilters/useDateRangeState.d.ts +19 -0
- package/dist/cjs/client/components/DashboardFilters/useFilterDropdowns.d.ts +21 -0
- package/dist/cjs/client/components/DashboardFilters/useFilterValueFetch.d.ts +23 -0
- package/dist/cjs/client/components/DashboardGrid.d.ts +22 -0
- package/dist/cjs/client/components/DashboardPortletCard.d.ts +4 -0
- package/dist/cjs/client/components/DashboardThumbnailPlaceholder.d.ts +13 -0
- package/dist/cjs/client/components/DataBrowser/DataBrowserSidebar.d.ts +16 -0
- package/dist/cjs/client/components/DataBrowser/DataBrowserTable.d.ts +16 -0
- package/dist/cjs/client/components/DataBrowser/DataBrowserToolbar.d.ts +22 -0
- package/dist/cjs/client/components/DataBrowser/index.d.ts +28 -0
- package/dist/cjs/client/components/DataHistogram.d.ts +27 -0
- package/dist/cjs/client/components/DebugModal.d.ts +17 -0
- package/dist/cjs/client/components/DrillBreadcrumb.d.ts +7 -0
- package/dist/cjs/client/components/DrillMenu.d.ts +8 -0
- package/dist/cjs/client/components/FloatingEditToolbar.d.ts +30 -0
- package/dist/cjs/client/components/LoadingIndicator.d.ts +16 -0
- package/dist/cjs/client/components/MobileStackedLayout.d.ts +14 -0
- package/dist/cjs/client/components/Modal.d.ts +16 -0
- package/dist/cjs/client/components/PortletAnalysisModal.d.ts +27 -0
- package/dist/cjs/client/components/PortletContainer.d.ts +10 -0
- package/dist/cjs/client/components/PortletFilterConfigModal.d.ts +13 -0
- package/dist/cjs/client/components/RowManagedLayout.d.ts +19 -0
- package/dist/cjs/client/components/ScaledGridWrapper.d.ts +12 -0
- package/dist/cjs/client/components/SchemaVisualization/CubeNode.d.ts +25 -0
- package/dist/cjs/client/components/SchemaVisualization/FieldDetailPanel.d.ts +15 -0
- package/dist/cjs/client/components/SchemaVisualization/RelationshipEdge.d.ts +13 -0
- package/dist/cjs/client/components/SchemaVisualization/SchemaVisualizationLazy.d.ts +3 -0
- package/dist/cjs/client/components/SchemaVisualization/index.d.ts +10 -0
- package/dist/cjs/client/components/SchemaVisualization/useERDLayout.d.ts +39 -0
- package/dist/cjs/client/components/SchemaVisualization/xyflowContext.d.ts +11 -0
- package/dist/cjs/client/components/TextPortletModal.d.ts +12 -0
- package/dist/cjs/client/components/analyticsPortlet/PortletChart.d.ts +31 -0
- package/dist/cjs/client/components/analyticsPortlet/PortletChartView.d.ts +35 -0
- package/dist/cjs/client/components/analyticsPortlet/PortletStates.d.ts +65 -0
- package/dist/cjs/client/components/analyticsPortlet/parsePortletQuery.d.ts +22 -0
- package/dist/cjs/client/components/analyticsPortlet/portletRenderState.d.ts +31 -0
- package/dist/cjs/client/components/analyticsPortlet/usePortletDebugData.d.ts +37 -0
- package/dist/cjs/client/components/analyticsPortlet/usePortletDrillState.d.ts +17 -0
- package/dist/cjs/client/components/analyticsPortlet/usePortletQueryResults.d.ts +37 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.helpers.d.ts +33 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.render.d.ts +31 -0
- package/dist/cjs/client/components/charts/AngledXAxisTick.d.ts +19 -0
- package/dist/cjs/client/components/charts/AreaChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/AreaChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/AxisFormatControls.d.ts +37 -0
- package/dist/cjs/client/components/charts/BarChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/BarChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/BarChart.helpers.d.ts +23 -0
- package/dist/cjs/client/components/charts/BarSeries.d.ts +29 -0
- package/dist/cjs/client/components/charts/BoxPlotChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/BoxPlotChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/BubbleChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/BubbleChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/BubbleChart.helpers.d.ts +43 -0
- package/dist/cjs/client/components/charts/BubbleChart.render.d.ts +21 -0
- package/dist/cjs/client/components/charts/CandlestickChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/CandlestickChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/ChartContainer.d.ts +7 -0
- package/dist/cjs/client/components/charts/ChartLegend.d.ts +7 -0
- package/dist/cjs/client/components/charts/ChartStates.d.ts +38 -0
- package/dist/cjs/client/components/charts/ChartTooltip.d.ts +7 -0
- package/dist/cjs/client/components/charts/DataTable.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/DataTable.d.ts +4 -0
- package/dist/cjs/client/components/charts/FunnelChart.config.d.ts +9 -0
- package/dist/cjs/client/components/charts/FunnelChart.d.ts +11 -0
- package/dist/cjs/client/components/charts/FunnelChart.helpers.d.ts +25 -0
- package/dist/cjs/client/components/charts/FunnelViews.d.ts +16 -0
- package/dist/cjs/client/components/charts/GaugeChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/GaugeChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/HeatMapCanvas.d.ts +25 -0
- package/dist/cjs/client/components/charts/HeatMapChart.config.d.ts +8 -0
- package/dist/cjs/client/components/charts/HeatMapChart.d.ts +10 -0
- package/dist/cjs/client/components/charts/HeatMapChart.helpers.d.ts +64 -0
- package/dist/cjs/client/components/charts/KpiDelta.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/KpiDelta.d.ts +4 -0
- package/dist/cjs/client/components/charts/KpiDelta.helpers.d.ts +20 -0
- package/dist/cjs/client/components/charts/KpiNumber.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/KpiNumber.d.ts +4 -0
- package/dist/cjs/client/components/charts/KpiNumber.helpers.d.ts +30 -0
- package/dist/cjs/client/components/charts/KpiStates.d.ts +19 -0
- package/dist/cjs/client/components/charts/KpiText.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/KpiText.d.ts +4 -0
- package/dist/cjs/client/components/charts/LineChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/LineChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/MarkdownChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/MarkdownChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/MeasureProfileChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/MeasureProfileChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/MissingDependencyFallback.d.ts +12 -0
- package/dist/cjs/client/components/charts/PieChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/PieChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/RadarChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/RadarChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/RadialBarChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/RadialBarChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/RetentionCombinedChart.config.d.ts +2 -0
- package/dist/cjs/client/components/charts/RetentionCombinedChart.d.ts +14 -0
- package/dist/cjs/client/components/charts/RetentionHeatmap.config.d.ts +2 -0
- package/dist/cjs/client/components/charts/RetentionHeatmap.d.ts +7 -0
- package/dist/cjs/client/components/charts/SankeyChart.config.d.ts +9 -0
- package/dist/cjs/client/components/charts/SankeyChart.d.ts +10 -0
- package/dist/cjs/client/components/charts/ScatterChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/ScatterChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/ScatterChart.helpers.d.ts +43 -0
- package/dist/cjs/client/components/charts/ScatterSeries.d.ts +17 -0
- package/dist/cjs/client/components/charts/ScatterTooltip.d.ts +21 -0
- package/dist/cjs/client/components/charts/SunburstChart.config.d.ts +9 -0
- package/dist/cjs/client/components/charts/SunburstChart.d.ts +10 -0
- package/dist/cjs/client/components/charts/TreeMapChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/TreeMapChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/TreeMapChart.helpers.d.ts +37 -0
- package/dist/cjs/client/components/charts/TreeMapContent.d.ts +24 -0
- package/dist/cjs/client/components/charts/TreeMapLegend.d.ts +13 -0
- package/dist/cjs/client/components/charts/WaterfallChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/WaterfallChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/cartesianChartHelpers.d.ts +126 -0
- package/dist/cjs/client/components/charts/chartAxisResolution.d.ts +32 -0
- package/dist/cjs/client/components/charts/chartScaffolding.d.ts +77 -0
- package/dist/cjs/client/components/charts/gaugeChartHelpers.d.ts +36 -0
- package/dist/cjs/client/components/charts/index.d.ts +25 -0
- package/dist/cjs/client/components/charts/kpiTextHelpers.d.ts +46 -0
- package/dist/cjs/client/components/charts/radarChartHelpers.d.ts +14 -0
- package/dist/cjs/client/components/charts/radialBarChartHelpers.d.ts +22 -0
- package/dist/cjs/client/components/charts/useChartDimensions.d.ts +20 -0
- package/dist/cjs/client/components/charts/useKpiDimensions.d.ts +30 -0
- package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +113 -0
- package/dist/cjs/client/components/dashboard/DashboardCoordinator.d.ts +2 -0
- package/dist/cjs/client/components/dashboard/DashboardEditBar.d.ts +5 -0
- package/dist/cjs/client/components/dashboard/DashboardFilterBar.d.ts +8 -0
- package/dist/cjs/client/components/dashboard/DashboardGridSurface.d.ts +8 -0
- package/dist/cjs/client/components/dashboard/DashboardModals.d.ts +8 -0
- package/dist/cjs/client/components/dashboard/DashboardProvider.d.ts +2 -0
- package/dist/cjs/client/components/dashboard/DashboardToolbar.d.ts +11 -0
- package/dist/cjs/client/components/dashboard/LayoutModeToggle.d.ts +10 -0
- package/dist/cjs/client/components/dashboard/dashboardGridUtils.d.ts +17 -0
- package/dist/cjs/client/components/dashboard/index.d.ts +13 -0
- package/dist/cjs/client/components/dashboardPortletCard/FilterFieldChip.d.ts +12 -0
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +43 -0
- package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +33 -0
- package/dist/cjs/client/components/dashboardPortletCard/filterField.d.ts +12 -0
- package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +55 -0
- package/dist/cjs/client/components/dashboardPortletCard/usePortletCardActions.d.ts +16 -0
- package/dist/cjs/client/components/portletAnalysisModal/saveValidation.d.ts +8 -0
- package/dist/cjs/client/components/shared/DateRangeFilter.d.ts +4 -0
- package/dist/cjs/client/components/shared/DateRangeSelector.d.ts +13 -0
- package/dist/cjs/client/components/shared/FilterBuilder.d.ts +4 -0
- package/dist/cjs/client/components/shared/FilterGroup.d.ts +4 -0
- package/dist/cjs/client/components/shared/FilterItem.d.ts +4 -0
- package/dist/cjs/client/components/shared/FilterValueSelector.d.ts +4 -0
- package/dist/cjs/client/components/shared/dateRangeUtils.d.ts +40 -0
- package/dist/cjs/client/components/shared/filterDisplayUtils.d.ts +10 -0
- package/dist/cjs/client/components/shared/filterItem/FilterDateRangeSelector.d.ts +17 -0
- package/dist/cjs/client/components/shared/filterItem/FilterFieldDropdown.d.ts +16 -0
- package/dist/cjs/client/components/shared/filterItem/dateRangeSync.d.ts +14 -0
- package/dist/cjs/client/components/shared/filterItem/fieldVisuals.d.ts +5 -0
- package/dist/cjs/client/components/shared/filterValueSelector/FilterValueInputs.d.ts +55 -0
- package/dist/cjs/client/components/shared/filterValueSelector/useFilterValueSelectorState.d.ts +25 -0
- package/dist/cjs/client/components/shared/queryFieldUtils.d.ts +21 -0
- package/dist/cjs/client/components/shared/types.d.ts +60 -0
- package/dist/cjs/client/components/shared/utils.d.ts +71 -0
- package/dist/cjs/client/components.d.ts +17 -0
- package/dist/cjs/client/hooks/agentChatStream.d.ts +39 -0
- package/dist/cjs/client/hooks/analysisQueryExecutionModes.d.ts +133 -0
- package/dist/cjs/client/hooks/dashboard/layoutUtils.d.ts +7 -0
- package/dist/cjs/client/hooks/dashboard/useDashboardController.d.ts +53 -0
- package/dist/cjs/client/hooks/dashboard/useGridLayoutEngine.d.ts +10 -0
- package/dist/cjs/client/hooks/dashboard/useRowLayoutEngine.d.ts +18 -0
- package/dist/cjs/client/hooks/drillNavigation.d.ts +25 -0
- package/dist/cjs/client/hooks/queries/index.d.ts +20 -0
- package/dist/cjs/client/hooks/queries/useCubeLoadQuery.d.ts +85 -0
- package/dist/cjs/client/hooks/queries/useCubeMetaQuery.d.ts +51 -0
- package/dist/cjs/client/hooks/queries/useDryRunQuery.d.ts +153 -0
- package/dist/cjs/client/hooks/queries/useExplainAI.d.ts +62 -0
- package/dist/cjs/client/hooks/queries/useExplainQuery.d.ts +62 -0
- package/dist/cjs/client/hooks/queries/useFlowQuery.d.ts +72 -0
- package/dist/cjs/client/hooks/queries/useFunnelQuery.d.ts +20 -0
- package/dist/cjs/client/hooks/queries/useMultiCubeLoadQuery.d.ts +70 -0
- package/dist/cjs/client/hooks/queries/useRetentionQuery.d.ts +67 -0
- package/dist/cjs/client/hooks/useAgentChat.d.ts +60 -0
- package/dist/cjs/client/hooks/useAnalysisAI.d.ts +56 -0
- package/dist/cjs/client/hooks/useAnalysisBuilderHook.d.ts +245 -0
- package/dist/cjs/client/hooks/useAnalysisChartDefaults.d.ts +35 -0
- package/dist/cjs/client/hooks/useAnalysisCombinedFields.d.ts +18 -0
- package/dist/cjs/client/hooks/useAnalysisInitialization.d.ts +25 -0
- package/dist/cjs/client/hooks/useAnalysisQueryBuilder.d.ts +32 -0
- package/dist/cjs/client/hooks/useAnalysisQueryExecution.d.ts +144 -0
- package/dist/cjs/client/hooks/useAnalysisShare.d.ts +18 -0
- package/dist/cjs/client/hooks/useAnalysisUIState.d.ts +24 -0
- package/dist/cjs/client/hooks/useCubeFieldLabel.d.ts +16 -0
- package/dist/cjs/client/hooks/useDashboardHook.d.ts +123 -0
- package/dist/cjs/client/hooks/useDataBrowser.d.ts +67 -0
- package/dist/cjs/client/hooks/useDebounce.d.ts +12 -0
- package/dist/cjs/client/hooks/useDebounceQuery.d.ts +48 -0
- package/dist/cjs/client/hooks/useDirtyStateTracking.d.ts +37 -0
- package/dist/cjs/client/hooks/useDragAutoScroll.d.ts +18 -0
- package/dist/cjs/client/hooks/useDrillInteraction.d.ts +9 -0
- package/dist/cjs/client/hooks/useElementVisibility.d.ts +30 -0
- package/dist/cjs/client/hooks/useFilterValues.d.ts +19 -0
- package/dist/cjs/client/hooks/useNotebookLayout.d.ts +8 -0
- package/dist/cjs/client/hooks/useResponsiveDashboard.d.ts +16 -0
- package/dist/cjs/client/hooks/useScrollDetection.d.ts +29 -0
- package/dist/cjs/client/hooks/useTheme.d.ts +11 -0
- package/dist/cjs/client/hooks/useTranslation.d.ts +21 -0
- package/dist/cjs/client/hooks.d.ts +17 -0
- package/dist/cjs/client/icons/customIcons.d.ts +22 -0
- package/dist/cjs/client/icons/defaultIcons.d.ts +5 -0
- package/dist/cjs/client/icons/index.d.ts +22 -0
- package/dist/cjs/client/icons/registry.d.ts +64 -0
- package/dist/cjs/client/icons/types.d.ts +129 -0
- package/dist/cjs/client/icons.d.ts +2 -0
- package/dist/cjs/client/index.d.ts +76 -0
- package/dist/cjs/client/providers/CubeApiProvider.d.ts +24 -0
- package/dist/cjs/client/providers/CubeFeaturesProvider.d.ts +19 -0
- package/dist/cjs/client/providers/CubeMetaContext.d.ts +11 -0
- package/dist/cjs/client/providers/CubeMetaProvider.d.ts +6 -0
- package/dist/cjs/client/providers/CubeProvider.d.ts +70 -0
- package/dist/cjs/client/providers/I18nProvider.d.ts +18 -0
- package/dist/cjs/client/providers/ScrollContainerContext.d.ts +19 -0
- package/dist/cjs/client/providers.d.ts +10 -0
- package/dist/cjs/client/schema.d.ts +13 -0
- package/dist/cjs/client/shared/chartConfigBuilders.d.ts +18 -0
- package/dist/cjs/client/shared/chartDefaults.d.ts +59 -0
- package/dist/cjs/client/shared/components/CodeBlock.d.ts +13 -0
- package/dist/cjs/client/shared/components/QueryAnalysisPanel.d.ts +7 -0
- package/dist/cjs/client/shared/components/QueryAnalysisPanel.sections.d.ts +41 -0
- package/dist/cjs/client/shared/index.d.ts +11 -0
- package/dist/cjs/client/shared/queryKey.d.ts +1 -0
- package/dist/cjs/client/shared/queryTransforms.d.ts +20 -0
- package/dist/cjs/client/shared/types.d.ts +184 -0
- package/dist/cjs/client/shared/utils.d.ts +104 -0
- package/dist/cjs/client/stores/analysisBuilderStore.d.ts +578 -0
- package/dist/cjs/client/stores/dashboardStore.d.ts +292 -0
- package/dist/cjs/client/stores/dataBrowserStore.d.ts +34 -0
- package/dist/cjs/client/stores/index.d.ts +13 -0
- package/dist/cjs/client/stores/notebookStore.d.ts +157 -0
- package/dist/cjs/client/stores/optionsToAnalysisConfig.d.ts +17 -0
- package/dist/cjs/client/stores/slices/coreSlice.d.ts +96 -0
- package/dist/cjs/client/stores/slices/flowSlice.d.ts +69 -0
- package/dist/cjs/client/stores/slices/funnelSlice.d.ts +61 -0
- package/dist/cjs/client/stores/slices/index.d.ts +13 -0
- package/dist/cjs/client/stores/slices/querySlice.d.ts +55 -0
- package/dist/cjs/client/stores/slices/retentionSlice.d.ts +66 -0
- package/dist/cjs/client/stores/slices/uiSlice.d.ts +52 -0
- package/dist/cjs/client/theme/index.d.ts +135 -0
- package/dist/cjs/client/types/analysisConfig.d.ts +185 -0
- package/dist/cjs/client/types/drill.d.ts +240 -0
- package/dist/cjs/client/types/flow.d.ts +191 -0
- package/dist/cjs/client/types/funnel.d.ts +288 -0
- package/dist/cjs/client/types/retention.d.ts +301 -0
- package/dist/cjs/client/types.d.ts +600 -0
- package/dist/cjs/client/utils/axisValueFormatting.d.ts +32 -0
- package/dist/cjs/client/utils/chartConstants.d.ts +16 -0
- package/dist/cjs/client/utils/chartUtils.d.ts +35 -0
- package/dist/cjs/client/utils/colorPalettes.d.ts +35 -0
- package/dist/cjs/client/utils/comparisonUtils.d.ts +96 -0
- package/dist/cjs/client/utils/configMigration.d.ts +85 -0
- package/dist/cjs/client/utils/drillQueryBuilder.d.ts +41 -0
- package/dist/cjs/client/utils/exportXlsx.d.ts +20 -0
- package/dist/cjs/client/utils/filterUtils.d.ts +113 -0
- package/dist/cjs/client/utils/funnelExecution.d.ts +211 -0
- package/dist/cjs/client/utils/funnelValidation.d.ts +46 -0
- package/dist/cjs/client/utils/index.d.ts +94 -0
- package/dist/cjs/client/utils/joinReachability.d.ts +27 -0
- package/dist/cjs/client/utils/measureIcons.d.ts +11 -0
- package/dist/cjs/client/utils/multiQueryUtils.d.ts +86 -0
- package/dist/cjs/client/utils/multiQueryValidation.d.ts +69 -0
- package/dist/cjs/client/utils/periodUtils.d.ts +40 -0
- package/dist/cjs/client/utils/pivotUtils.d.ts +87 -0
- package/dist/cjs/client/utils/shareUtils.d.ts +61 -0
- package/dist/cjs/client/utils/syntaxHighlighting.d.ts +36 -0
- package/dist/cjs/client/utils/targetUtils.d.ts +36 -0
- package/dist/cjs/client/utils/thumbnail.d.ts +36 -0
- package/dist/cjs/client/utils/timeValueFormatting.d.ts +32 -0
- package/dist/cjs/client/utils.d.ts +8 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/server/adapters/base-adapter.d.ts +332 -0
- package/dist/cjs/server/adapters/databend-adapter.d.ts +63 -0
- package/dist/cjs/server/adapters/duckdb-adapter.d.ts +68 -0
- package/dist/cjs/server/adapters/mysql-adapter.d.ts +65 -0
- package/dist/cjs/server/adapters/postgres-adapter.d.ts +55 -0
- package/dist/cjs/server/adapters/singlestore-adapter.d.ts +4 -0
- package/dist/cjs/server/adapters/snowflake-adapter.d.ts +53 -0
- package/dist/cjs/server/adapters/sqlite-adapter.d.ts +120 -0
- package/dist/cjs/server/adapters/window-function-builder.d.ts +11 -0
- package/dist/cjs/server/agent/chart-validation.d.ts +22 -0
- package/dist/cjs/server/agent/handler-steps.d.ts +37 -0
- package/dist/cjs/server/agent/handler.d.ts +25 -0
- package/dist/cjs/server/agent/index.d.ts +11 -0
- package/dist/cjs/server/agent/providers/anthropic.d.ts +24 -0
- package/dist/cjs/server/agent/providers/factory.d.ts +12 -0
- package/dist/cjs/server/agent/providers/google.d.ts +23 -0
- package/dist/cjs/server/agent/providers/index.d.ts +6 -0
- package/dist/cjs/server/agent/providers/openai.d.ts +26 -0
- package/dist/cjs/server/agent/providers/types.d.ts +95 -0
- package/dist/cjs/server/agent/system-prompt.d.ts +5 -0
- package/dist/cjs/server/agent/tools.d.ts +28 -0
- package/dist/cjs/server/agent/types.d.ts +192 -0
- package/dist/cjs/server/ai/discovery-helpers.d.ts +29 -0
- package/dist/cjs/server/ai/discovery.d.ts +66 -0
- package/dist/cjs/server/ai/index.d.ts +10 -0
- package/dist/cjs/server/ai/mcp-prompts.d.ts +83 -0
- package/dist/cjs/server/ai/query-schema.d.ts +258 -0
- package/dist/cjs/server/ai/schemas.d.ts +63 -0
- package/dist/cjs/server/ai/suggestion-helpers.d.ts +33 -0
- package/dist/cjs/server/ai/suggestion.d.ts +16 -0
- package/dist/cjs/server/ai/validation-helpers.d.ts +21 -0
- package/dist/cjs/server/ai/validation.d.ts +31 -0
- package/dist/cjs/server/builders/analysis-utils.d.ts +106 -0
- package/dist/cjs/server/builders/comparison-query-builder.d.ts +70 -0
- package/dist/cjs/server/builders/cte-builder.d.ts +108 -0
- package/dist/cjs/server/builders/date-time-builder.d.ts +34 -0
- package/dist/cjs/server/builders/date-time-helpers.d.ts +34 -0
- package/dist/cjs/server/builders/filter-builder.d.ts +25 -0
- package/dist/cjs/server/builders/filter-operators.d.ts +23 -0
- package/dist/cjs/server/builders/flow-query-builder.d.ts +136 -0
- package/dist/cjs/server/builders/funnel-query-builder.d.ts +145 -0
- package/dist/cjs/server/builders/group-by-builder.d.ts +38 -0
- package/dist/cjs/server/builders/index.d.ts +13 -0
- package/dist/cjs/server/builders/measure-builder.d.ts +185 -0
- package/dist/cjs/server/builders/retention-query-builder.d.ts +98 -0
- package/dist/cjs/server/cache-providers/index.d.ts +5 -0
- package/dist/cjs/server/cache-providers/memory.d.ts +105 -0
- package/dist/cjs/server/cache-utils.d.ts +85 -0
- package/dist/cjs/server/compiler-metadata.d.ts +11 -0
- package/dist/cjs/server/compiler.d.ts +212 -0
- package/dist/cjs/server/cube-utils.d.ts +158 -0
- package/dist/cjs/server/database-utils.d.ts +18 -0
- package/dist/cjs/server/execution/annotation-builder.d.ts +12 -0
- package/dist/cjs/server/execution/filter-cache-preloader.d.ts +19 -0
- package/dist/cjs/server/execution/mode-router.d.ts +25 -0
- package/dist/cjs/server/execution/query-result-cache.d.ts +21 -0
- package/dist/cjs/server/execution/result-post-processor.d.ts +10 -0
- package/dist/cjs/server/executor.d.ts +186 -0
- package/dist/cjs/server/executors/base-executor.d.ts +16 -0
- package/dist/cjs/server/executors/databend-executor.d.ts +33 -0
- package/dist/cjs/server/executors/duckdb-executor.d.ts +33 -0
- package/dist/cjs/server/executors/explain-utils.d.ts +28 -0
- package/dist/cjs/server/executors/index.d.ts +21 -0
- package/dist/cjs/server/executors/mysql-executor.d.ts +27 -0
- package/dist/cjs/server/executors/postgres-executor.d.ts +27 -0
- package/dist/cjs/server/executors/singlestore-executor.d.ts +9 -0
- package/dist/cjs/server/executors/snowflake-executor.d.ts +33 -0
- package/dist/cjs/server/executors/sqlite-executor.d.ts +28 -0
- package/dist/cjs/server/explain/databend-parser.d.ts +16 -0
- package/dist/cjs/server/explain/duckdb-parser.d.ts +28 -0
- package/dist/cjs/server/explain/explain-tree.d.ts +20 -0
- package/dist/cjs/server/explain/index.d.ts +9 -0
- package/dist/cjs/server/explain/mysql-parser.d.ts +38 -0
- package/dist/cjs/server/explain/postgres-parser.d.ts +18 -0
- package/dist/cjs/server/explain/snowflake-parser.d.ts +17 -0
- package/dist/cjs/server/explain/sqlite-parser.d.ts +23 -0
- package/dist/cjs/server/filter-cache.d.ts +73 -0
- package/dist/cjs/server/gap-filler.d.ts +48 -0
- package/dist/cjs/server/index.d.ts +38 -0
- package/dist/cjs/server/logical-plan/cte-planner-helpers.d.ts +37 -0
- package/dist/cjs/server/logical-plan/cte-planner.d.ts +104 -0
- package/dist/cjs/server/logical-plan/filter-propagation.d.ts +44 -0
- package/dist/cjs/server/logical-plan/index.d.ts +19 -0
- package/dist/cjs/server/logical-plan/join-planner.d.ts +27 -0
- package/dist/cjs/server/logical-plan/logical-plan-builder.d.ts +58 -0
- package/dist/cjs/server/logical-plan/logical-planner.d.ts +39 -0
- package/dist/cjs/server/logical-plan/optimiser.d.ts +34 -0
- package/dist/cjs/server/logical-plan/plan-analysis-reporter.d.ts +59 -0
- package/dist/cjs/server/logical-plan/planner-utils.d.ts +20 -0
- package/dist/cjs/server/logical-plan/types.d.ts +199 -0
- package/dist/cjs/server/measure-classification.d.ts +40 -0
- package/dist/cjs/server/physical-plan/drizzle-plan-builder.d.ts +50 -0
- package/dist/cjs/server/physical-plan/drizzle-sql-builder.d.ts +118 -0
- package/dist/cjs/server/physical-plan/index.d.ts +2 -0
- package/dist/cjs/server/physical-plan/processors/cte-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/index.d.ts +8 -0
- package/dist/cjs/server/physical-plan/processors/joins-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/keys-dedup-processor.d.ts +13 -0
- package/dist/cjs/server/physical-plan/processors/multi-fact-processor.d.ts +13 -0
- package/dist/cjs/server/physical-plan/processors/predicates-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/selection-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/shared.d.ts +38 -0
- package/dist/cjs/server/physical-plan/processors/window-processor.d.ts +6 -0
- package/dist/cjs/server/prompts/explain-analysis-prompt.d.ts +47 -0
- package/dist/cjs/server/prompts/index.d.ts +27 -0
- package/dist/cjs/server/prompts/single-step-prompt.d.ts +31 -0
- package/dist/cjs/server/prompts/step0-validation-prompt.d.ts +39 -0
- package/dist/cjs/server/prompts/step1-shape-prompt.d.ts +29 -0
- package/dist/cjs/server/prompts/step2-complete-prompt.d.ts +19 -0
- package/dist/cjs/server/prompts/types.d.ts +37 -0
- package/dist/cjs/server/query-handlers.d.ts +79 -0
- package/dist/cjs/server/query-modes.d.ts +28 -0
- package/dist/cjs/server/query-validator.d.ts +9 -0
- package/dist/cjs/server/resolvers/calculated-measure-resolver.d.ts +98 -0
- package/dist/cjs/server/resolvers/index.d.ts +6 -0
- package/dist/cjs/server/resolvers/join-path-resolver.d.ts +158 -0
- package/dist/cjs/server/sql-format.d.ts +11 -0
- package/dist/cjs/server/template-substitution.d.ts +57 -0
- package/dist/cjs/server/types/analysis.d.ts +189 -0
- package/dist/cjs/server/types/cache.d.ts +132 -0
- package/dist/cjs/server/types/core.d.ts +164 -0
- package/dist/cjs/server/types/cube.d.ts +544 -0
- package/dist/cjs/server/types/executor.d.ts +156 -0
- package/dist/cjs/server/types/flow.d.ts +144 -0
- package/dist/cjs/server/types/funnel.d.ts +118 -0
- package/dist/cjs/server/types/index.d.ts +11 -0
- package/dist/cjs/server/types/metadata.d.ts +113 -0
- package/dist/cjs/server/types/query.d.ts +153 -0
- package/dist/cjs/server/types/retention.d.ts +141 -0
- package/dist/cjs/server/types/utils.d.ts +11 -0
- package/dist/cjs/server/types/validation.d.ts +14 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/{adapters/openai-B5jEiqiB.js → server/openai-CmVRIbUg.js} +18 -2
- package/dist/server/{openai-cDlFSTk6.js → openai-CtXqeznO.js} +1 -1
- package/dist/{adapters/openai-D0musiYP.cjs → server/openai-D-6l1Y8h.cjs} +3 -3
- package/dist/server/{openai-vXvLni8v.cjs → openai-DTSTMiXL.cjs} +1 -1
- package/package.json +75 -29
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ChangeHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
3
|
+
export declare function NoValueInput(): React.JSX.Element;
|
|
4
|
+
interface DateRangeInputProps {
|
|
5
|
+
values: any[];
|
|
6
|
+
onStartChange: ChangeHandler;
|
|
7
|
+
onEndChange: ChangeHandler;
|
|
8
|
+
}
|
|
9
|
+
export declare function DateRangeInput({ values, onStartChange, onEndChange }: DateRangeInputProps): React.JSX.Element;
|
|
10
|
+
interface BetweenInputProps {
|
|
11
|
+
values: any[];
|
|
12
|
+
onStartChange: ChangeHandler;
|
|
13
|
+
onEndChange: ChangeHandler;
|
|
14
|
+
}
|
|
15
|
+
export declare function BetweenInput({ values, onStartChange, onEndChange }: BetweenInputProps): React.JSX.Element;
|
|
16
|
+
interface SingleDateInputProps {
|
|
17
|
+
values: any[];
|
|
18
|
+
onChange: ChangeHandler;
|
|
19
|
+
}
|
|
20
|
+
export declare function SingleDateInput({ values, onChange }: SingleDateInputProps): React.JSX.Element;
|
|
21
|
+
interface NumberInputProps {
|
|
22
|
+
values: any[];
|
|
23
|
+
onChange: ChangeHandler;
|
|
24
|
+
}
|
|
25
|
+
export declare function NumberInput({ values, onChange }: NumberInputProps): React.JSX.Element;
|
|
26
|
+
interface TextInputProps {
|
|
27
|
+
values: any[];
|
|
28
|
+
onChange: ChangeHandler;
|
|
29
|
+
valueType: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function TextInput({ values, onChange, valueType }: TextInputProps): React.JSX.Element;
|
|
32
|
+
interface MultiDateInputProps {
|
|
33
|
+
values: any[];
|
|
34
|
+
onValuesChange: (values: any[]) => void;
|
|
35
|
+
onValueRemove: (value: any) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function MultiDateInput({ values, onValuesChange, onValueRemove }: MultiDateInputProps): React.JSX.Element;
|
|
38
|
+
interface ComboBoxInputProps {
|
|
39
|
+
dropdownRef: React.RefObject<HTMLDivElement>;
|
|
40
|
+
supportsMultipleValues: boolean;
|
|
41
|
+
values: any[];
|
|
42
|
+
isOpen: boolean;
|
|
43
|
+
searchText: string;
|
|
44
|
+
hasLoadedInitial: boolean;
|
|
45
|
+
valuesLoading: boolean;
|
|
46
|
+
valuesError: any;
|
|
47
|
+
distinctValues: any[];
|
|
48
|
+
onValuesChange: (values: any[]) => void;
|
|
49
|
+
onValueRemove: (value: any) => void;
|
|
50
|
+
onValueSelect: (value: any) => void;
|
|
51
|
+
onToggle: () => void;
|
|
52
|
+
onSearchChange: ChangeHandler;
|
|
53
|
+
}
|
|
54
|
+
export declare function ComboBoxInput({ dropdownRef, supportsMultipleValues, values, isOpen, searchText, hasLoadedInitial, valuesLoading, valuesError, distinctValues, onValuesChange, onValueRemove, onValueSelect, onToggle, onSearchChange }: ComboBoxInputProps): React.JSX.Element;
|
|
55
|
+
export {};
|
package/dist/cjs/client/components/shared/filterValueSelector/useFilterValueSelectorState.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { FilterValueSelectorProps } from '../types.js';
|
|
3
|
+
declare const COMBO_OPERATORS: string[];
|
|
4
|
+
export declare function useFilterValueSelectorState({ fieldName, operator, values, onValuesChange, schema }: FilterValueSelectorProps): {
|
|
5
|
+
operatorMeta: import('../../../shared/types.js').FilterOperatorMeta;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
searchText: string;
|
|
8
|
+
hasLoadedInitial: boolean;
|
|
9
|
+
dropdownRef: import('react').RefObject<HTMLDivElement>;
|
|
10
|
+
isTimeDimension: boolean;
|
|
11
|
+
shouldShowComboBox: boolean;
|
|
12
|
+
distinctValues: any[];
|
|
13
|
+
valuesLoading: boolean;
|
|
14
|
+
valuesError: string | null;
|
|
15
|
+
handleDropdownToggle: () => void;
|
|
16
|
+
handleSearchChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
handleValueSelect: (value: any) => void;
|
|
18
|
+
handleValueRemove: (valueToRemove: any) => void;
|
|
19
|
+
handleDirectInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
+
handleDateInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
+
handleDateRangeEndInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
22
|
+
handleBetweenStartInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
+
handleBetweenEndInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
+
};
|
|
25
|
+
export { COMBO_OPERATORS };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CubeQuery, SimpleFilter } from '../../types.js';
|
|
2
|
+
import { MetaResponse } from './types.js';
|
|
3
|
+
/** Collect the set of field names currently selected by a query. */
|
|
4
|
+
export declare function getSelectedFieldNames(query: CubeQuery): Set<string>;
|
|
5
|
+
/**
|
|
6
|
+
* Validate operator compatibility / value requirements for a filter.
|
|
7
|
+
* Assumes the filter member is already known to exist.
|
|
8
|
+
*/
|
|
9
|
+
export declare function validateFilterOperator(filter: SimpleFilter, schema: MetaResponse): string[];
|
|
10
|
+
/**
|
|
11
|
+
* Get sort direction for a field from the order object
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSortDirection(fieldName: string, order: Record<string, 'asc' | 'desc'> | undefined): 'asc' | 'desc' | null;
|
|
14
|
+
/**
|
|
15
|
+
* Get tooltip text for sort button based on current direction
|
|
16
|
+
*/
|
|
17
|
+
export declare function getSortTooltip(direction: 'asc' | 'desc' | null): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get next sort direction in the cycle: null -> asc -> desc -> null
|
|
20
|
+
*/
|
|
21
|
+
export declare function getNextSortDirection(current: 'asc' | 'desc' | null): 'asc' | 'desc' | null;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { CubeQuery, FilterOperator, Filter, SimpleFilter, GroupFilter } from '../../types.js';
|
|
2
|
+
export type { MetaField, MetaResponse, DateRangeType } from '../../shared/types.js';
|
|
3
|
+
export { FILTER_OPERATORS, DATE_RANGE_OPTIONS, TIME_GRANULARITIES } from '../../shared/types.js';
|
|
4
|
+
export interface FilterBuilderProps {
|
|
5
|
+
filters: Filter[];
|
|
6
|
+
schema: import('../../shared/types.js').MetaResponse | null;
|
|
7
|
+
query: CubeQuery;
|
|
8
|
+
onFiltersChange: (filters: Filter[]) => void;
|
|
9
|
+
hideFieldSelector?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface FilterItemProps {
|
|
12
|
+
filter: SimpleFilter;
|
|
13
|
+
index: number;
|
|
14
|
+
onFilterChange: (index: number, filter: SimpleFilter) => void;
|
|
15
|
+
onFilterRemove: (index: number) => void;
|
|
16
|
+
schema: import('../../shared/types.js').MetaResponse | null;
|
|
17
|
+
query: CubeQuery;
|
|
18
|
+
hideFieldSelector?: boolean;
|
|
19
|
+
hideOperatorSelector?: boolean;
|
|
20
|
+
hideRemoveButton?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface FilterGroupProps {
|
|
23
|
+
group: GroupFilter;
|
|
24
|
+
index: number;
|
|
25
|
+
onGroupChange: (index: number, group: GroupFilter) => void;
|
|
26
|
+
onGroupChangeWithUnwrap?: (index: number, group: GroupFilter) => void;
|
|
27
|
+
onGroupRemove: (index: number) => void;
|
|
28
|
+
schema: import('../../shared/types.js').MetaResponse | null;
|
|
29
|
+
query: CubeQuery;
|
|
30
|
+
depth: number;
|
|
31
|
+
}
|
|
32
|
+
export interface FilterValueSelectorProps {
|
|
33
|
+
fieldName: string;
|
|
34
|
+
operator: FilterOperator;
|
|
35
|
+
values: any[];
|
|
36
|
+
onValuesChange: (values: any[]) => void;
|
|
37
|
+
schema: import('../../shared/types.js').MetaResponse | null;
|
|
38
|
+
}
|
|
39
|
+
export interface DateRangeFilter {
|
|
40
|
+
id: string;
|
|
41
|
+
timeDimension: string;
|
|
42
|
+
rangeType: import('../../shared/types.js').DateRangeType;
|
|
43
|
+
startDate?: string;
|
|
44
|
+
endDate?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface DateRangeSelectorProps {
|
|
47
|
+
timeDimensions: string[];
|
|
48
|
+
onDateRangeChange: (timeDimension: string, dateRange: string | string[]) => void;
|
|
49
|
+
onDateRangeRemove: (timeDimension: string) => void;
|
|
50
|
+
currentDateRanges: Record<string, string | string[]>;
|
|
51
|
+
}
|
|
52
|
+
export interface DateRangeFilterProps {
|
|
53
|
+
timeDimensions: Array<{
|
|
54
|
+
dimension: string;
|
|
55
|
+
granularity?: string;
|
|
56
|
+
dateRange?: string | string[];
|
|
57
|
+
}>;
|
|
58
|
+
onDateRangeChange: (timeDimension: string, dateRange: string | string[]) => void;
|
|
59
|
+
onDateRangeRemove: (timeDimension: string) => void;
|
|
60
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { CubeQuery, Filter, SimpleFilter } from '../../types.js';
|
|
2
|
+
import { MetaField, MetaResponse } from './types.js';
|
|
3
|
+
export { getSortDirection, getSortTooltip, getNextSortDirection, } from './queryFieldUtils.js';
|
|
4
|
+
export type { DatePreset } from './dateRangeUtils.js';
|
|
5
|
+
export { DATE_PRESETS, XTD_OPTIONS, calculateDateRange, formatDateRangeDisplay, detectPresetFromDateRange, } from './dateRangeUtils.js';
|
|
6
|
+
export { formatFilterValueDisplay } from './filterDisplayUtils.js';
|
|
7
|
+
export { isSimpleFilter, isGroupFilter, isAndFilter, isOrFilter, flattenFilters, countFilters, createSimpleFilter, createAndFilter, createOrFilter, cleanupFilters, transformFiltersForServer, transformFiltersFromServer, hasQueryContent, cleanQuery, cleanQueryForServer, transformQueryForUI, getCubeNameFromField, getFieldType, getFieldTitle, getAvailableOperators, getAllFilterableFields, convertDateRangeTypeToValue, requiresNumberInput, formatDateForCube, } from '../../shared/utils.js';
|
|
8
|
+
/**
|
|
9
|
+
* Check if a field is selected in the current query
|
|
10
|
+
*/
|
|
11
|
+
export declare function isFieldSelected(fieldName: string, fieldType: 'measures' | 'dimensions' | 'timeDimensions', query: CubeQuery): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Get all time dimension fields from schema
|
|
14
|
+
*/
|
|
15
|
+
export declare function getTimeDimensionFields(schema: MetaResponse): MetaField[];
|
|
16
|
+
/**
|
|
17
|
+
* Get all non-time dimension fields from schema
|
|
18
|
+
*/
|
|
19
|
+
export declare function getRegularDimensionFields(schema: MetaResponse): MetaField[];
|
|
20
|
+
/**
|
|
21
|
+
* Get all measure fields from schema
|
|
22
|
+
*/
|
|
23
|
+
export declare function getMeasureFields(schema: MetaResponse): MetaField[];
|
|
24
|
+
/**
|
|
25
|
+
* Get count of selected fields across all types
|
|
26
|
+
*/
|
|
27
|
+
export declare function getSelectedFieldsCount(query: CubeQuery): number;
|
|
28
|
+
/**
|
|
29
|
+
* Group fields by cube name
|
|
30
|
+
*/
|
|
31
|
+
export declare function groupFieldsByCube(fields: MetaField[]): Record<string, MetaField[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Create an empty query object
|
|
34
|
+
*/
|
|
35
|
+
export declare function createEmptyQuery(): CubeQuery;
|
|
36
|
+
/**
|
|
37
|
+
* Get all filterable fields from schema (measures, dimensions, and time dimensions)
|
|
38
|
+
* Returns ALL fields if no query provided, or only query fields if query provided
|
|
39
|
+
*/
|
|
40
|
+
export declare function getFilterableFields(schema: MetaResponse, query?: CubeQuery): MetaField[];
|
|
41
|
+
/**
|
|
42
|
+
* Get organized filter field options with query fields prioritized at top
|
|
43
|
+
*/
|
|
44
|
+
export declare function getOrganizedFilterFields(schema: MetaResponse, query?: CubeQuery): {
|
|
45
|
+
queryFields: MetaField[];
|
|
46
|
+
allFields: MetaField[];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Validate a filter
|
|
50
|
+
*/
|
|
51
|
+
export declare function validateFilter(filter: SimpleFilter, schema: MetaResponse): {
|
|
52
|
+
isValid: boolean;
|
|
53
|
+
errors: string[];
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Clean up filters by removing any that reference fields not in the current query (legacy)
|
|
57
|
+
* Only used for backward compatibility - filters on non-query fields are now supported
|
|
58
|
+
*/
|
|
59
|
+
export declare function cleanupFiltersLegacy(filters: Filter[], query: CubeQuery): Filter[];
|
|
60
|
+
/**
|
|
61
|
+
* Get the time dimensions that have date ranges applied
|
|
62
|
+
*/
|
|
63
|
+
export declare function getTimeDimensionsWithDateRanges(query: CubeQuery): Record<string, string | string[]>;
|
|
64
|
+
/**
|
|
65
|
+
* Check if a query has any time dimensions
|
|
66
|
+
*/
|
|
67
|
+
export declare function hasTimeDimensions(query: CubeQuery): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Clean up order object by removing fields that are no longer in the query
|
|
70
|
+
*/
|
|
71
|
+
export declare function cleanupOrder(order: Record<string, 'asc' | 'desc'> | undefined, query: CubeQuery): Record<string, 'asc' | 'desc'> | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drizzle Cube UI Components
|
|
3
|
+
*
|
|
4
|
+
* UI components without charts - for applications that need dashboards,
|
|
5
|
+
* query builders, and layout components but provide their own charts.
|
|
6
|
+
*/
|
|
7
|
+
export { default as AnalyticsPortlet } from './components/AnalyticsPortlet.js';
|
|
8
|
+
export { default as AnalyticsDashboard } from './components/AnalyticsDashboard.js';
|
|
9
|
+
export { default as DashboardGrid } from './components/DashboardGrid.js';
|
|
10
|
+
export { DashboardProvider, DashboardToolbar, DashboardFilterBar, DashboardGridSurface, DashboardModals, useDashboardContext, } from './components/dashboard/index.js';
|
|
11
|
+
export type { DashboardContextValue, DashboardProviderProps } from './components/dashboard/index.js';
|
|
12
|
+
export { default as PortletContainer } from './components/PortletContainer.js';
|
|
13
|
+
export { default as DashboardEditModal } from './components/DashboardEditModal.js';
|
|
14
|
+
export { default as Modal } from './components/Modal.js';
|
|
15
|
+
export { default as AnalysisDisplayConfigPanel } from './components/AnalysisBuilder/AnalysisDisplayConfigPanel.js';
|
|
16
|
+
export { createDashboardLayout, generateResponsiveLayouts, generatePortletId, findNextPosition, validateCubeQuery, createSamplePortlet } from './utils/index.js';
|
|
17
|
+
export type { PortletConfig, DashboardConfig } from './types.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PortletBlock, MarkdownBlock } from '../stores/notebookStore.js';
|
|
2
|
+
/** Clean up raw API errors into user-friendly messages */
|
|
3
|
+
export declare function formatUserFacingError(message: string): string;
|
|
4
|
+
export interface AgentSSEEvent {
|
|
5
|
+
type: 'text_delta' | 'tool_use_start' | 'tool_use_result' | 'add_portlet' | 'add_markdown' | 'dashboard_saved' | 'turn_complete' | 'done' | 'error';
|
|
6
|
+
data: any;
|
|
7
|
+
}
|
|
8
|
+
/** Subset of the hook options that handleAgentEvent dispatches to. */
|
|
9
|
+
export interface AgentEventCallbacks {
|
|
10
|
+
onAddPortlet: (data: PortletBlock) => void;
|
|
11
|
+
onAddMarkdown: (data: MarkdownBlock) => void;
|
|
12
|
+
onDashboardSaved?: (data: {
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
dashboardConfig: any;
|
|
16
|
+
}) => void;
|
|
17
|
+
onTextDelta: (text: string) => void;
|
|
18
|
+
onToolStart: (id: string, name: string, input?: unknown) => void;
|
|
19
|
+
onToolResult: (id: string, name: string, result?: unknown, isError?: boolean) => void;
|
|
20
|
+
onDone: (sessionId: string, traceId?: string) => void;
|
|
21
|
+
onTurnComplete?: () => void;
|
|
22
|
+
onError: (message: string) => void;
|
|
23
|
+
}
|
|
24
|
+
/** Dispatch a single decoded SSE event to the relevant callback. */
|
|
25
|
+
export declare function handleAgentEvent(event: AgentSSEEvent, cb: AgentEventCallbacks): void;
|
|
26
|
+
/**
|
|
27
|
+
* Parse one block of SSE text (possibly multi-line) and dispatch each
|
|
28
|
+
* `data: ` line. Malformed JSON lines are skipped silently.
|
|
29
|
+
*/
|
|
30
|
+
export declare function dispatchSSEBlock(block: string, dispatch: (event: AgentSSEEvent) => void): void;
|
|
31
|
+
export interface AgentRequestHeaderOptions {
|
|
32
|
+
baseHeaders?: Record<string, string>;
|
|
33
|
+
agentApiKey?: string;
|
|
34
|
+
agentProvider?: string;
|
|
35
|
+
agentModel?: string;
|
|
36
|
+
agentProviderEndpoint?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Build request headers matching CubeClient's auth pattern plus agent overrides. */
|
|
39
|
+
export declare function buildAgentHeaders(opts: AgentRequestHeaderOptions): Record<string, string>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure mode-selection helpers for useAnalysisQueryExecution.
|
|
3
|
+
*
|
|
4
|
+
* The hook coordinates five execution modes (retention, flow, funnel, multi,
|
|
5
|
+
* single). Almost every derived value is "pick the field from whichever mode is
|
|
6
|
+
* active". These helpers collapse the repeated 5-way ternary chains into a
|
|
7
|
+
* single normalized per-mode descriptor plus a selector, without changing any
|
|
8
|
+
* behaviour: the selected values are byte-for-byte equivalent to the original
|
|
9
|
+
* nested ternaries.
|
|
10
|
+
*/
|
|
11
|
+
/** The active execution mode, in priority order (retention > flow > funnel > multi > single). */
|
|
12
|
+
export type ActiveMode = 'retention' | 'flow' | 'funnel' | 'multi' | 'single';
|
|
13
|
+
export interface ModeFlags {
|
|
14
|
+
isRetentionMode: boolean | undefined;
|
|
15
|
+
isFlowMode: boolean | undefined;
|
|
16
|
+
isFunnelMode: boolean | undefined;
|
|
17
|
+
isMultiMode: boolean | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the single active mode from the boolean flags, using the same
|
|
21
|
+
* precedence as the original nested ternaries (retention first, single last).
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveActiveMode(flags: ModeFlags): ActiveMode;
|
|
24
|
+
/**
|
|
25
|
+
* A value resolved per-mode. Pass the value each mode contributes; `pickByMode`
|
|
26
|
+
* returns the one for the active mode. This mirrors the original
|
|
27
|
+
* `isRetentionMode ? a : isFlowMode ? b : ...` chains exactly. Each field may
|
|
28
|
+
* have its own type — the return type is the union across all modes.
|
|
29
|
+
*/
|
|
30
|
+
export type PerMode<R extends Record<ActiveMode, unknown>> = R;
|
|
31
|
+
export declare function pickByMode<R extends Record<ActiveMode, unknown>>(mode: ActiveMode, values: R): R[ActiveMode];
|
|
32
|
+
/**
|
|
33
|
+
* Inputs for deriving the per-mode "debug / server query / chart data" outputs.
|
|
34
|
+
* Each field is the raw value the corresponding mode hook exposes; the helper
|
|
35
|
+
* gates it on the matching mode flag (returning null otherwise), exactly as the
|
|
36
|
+
* original inline `isXMode ? value : null` expressions did.
|
|
37
|
+
*/
|
|
38
|
+
export interface ModeOutputsInput<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug> {
|
|
39
|
+
isFunnelMode: boolean | undefined;
|
|
40
|
+
isFlowMode: boolean;
|
|
41
|
+
isRetentionMode: boolean;
|
|
42
|
+
funnelExecutedQueries: FunnelExecuted[] | undefined;
|
|
43
|
+
funnelServerQuery: FunnelServer;
|
|
44
|
+
funnelDebugData: Debug;
|
|
45
|
+
flowServerQuery: FlowServer;
|
|
46
|
+
flowData: FlowChart;
|
|
47
|
+
flowDebugData: Debug;
|
|
48
|
+
retentionServerQuery: RetentionServer;
|
|
49
|
+
retentionChartData: RetentionChart;
|
|
50
|
+
retentionDebugData: Debug;
|
|
51
|
+
}
|
|
52
|
+
export interface ModeOutputs<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug> {
|
|
53
|
+
funnelExecutedQueries: FunnelExecuted[] | null;
|
|
54
|
+
funnelServerQuery: FunnelServer | null;
|
|
55
|
+
funnelDebugData: Debug | null;
|
|
56
|
+
flowServerQuery: FlowServer | null;
|
|
57
|
+
flowChartData: FlowChart | null;
|
|
58
|
+
flowDebugData: Debug | null;
|
|
59
|
+
retentionServerQuery: RetentionServer | null;
|
|
60
|
+
retentionChartData: RetentionChart | null;
|
|
61
|
+
retentionDebugData: Debug | null;
|
|
62
|
+
}
|
|
63
|
+
export declare function deriveModeOutputs<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug>(input: ModeOutputsInput<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug>): ModeOutputs<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug>;
|
|
64
|
+
/** Inputs for computing the per-query-hook `skip` flags. */
|
|
65
|
+
export interface SkipFlagsInput {
|
|
66
|
+
isValidQuery: boolean;
|
|
67
|
+
isSingleMode: boolean;
|
|
68
|
+
isMultiMode: boolean;
|
|
69
|
+
isFunnelMode: boolean | undefined;
|
|
70
|
+
isFlowMode: boolean;
|
|
71
|
+
isRetentionMode: boolean;
|
|
72
|
+
hasMultiQueryConfig: boolean;
|
|
73
|
+
hasFunnelConfig: boolean;
|
|
74
|
+
hasServerFunnelQuery: boolean;
|
|
75
|
+
hasServerFlowQuery: boolean;
|
|
76
|
+
hasServerRetentionQuery: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface SkipFlags {
|
|
79
|
+
single: boolean;
|
|
80
|
+
multi: boolean;
|
|
81
|
+
funnel: boolean;
|
|
82
|
+
flow: boolean;
|
|
83
|
+
retention: boolean;
|
|
84
|
+
dryRun: boolean;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Compute the `skip` flag for each query hook. Extracted from the inline
|
|
88
|
+
* boolean expressions so the hook body stays flat. Logic is unchanged.
|
|
89
|
+
*/
|
|
90
|
+
export declare function computeSkipFlags(input: SkipFlagsInput): SkipFlags;
|
|
91
|
+
/** Inputs for the unified execution-status computation. */
|
|
92
|
+
export interface ExecutionStatusInput {
|
|
93
|
+
hasResults: unknown;
|
|
94
|
+
initialData: unknown[] | undefined;
|
|
95
|
+
isValidQuery: boolean;
|
|
96
|
+
isLoading: boolean;
|
|
97
|
+
isFetching: boolean;
|
|
98
|
+
error: unknown;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Compute the unified execution status. Extracted verbatim from the original
|
|
102
|
+
* useMemo body to keep the hook flat; the `hasResults` per-mode pick is done by
|
|
103
|
+
* the caller and passed in.
|
|
104
|
+
*/
|
|
105
|
+
export declare function computeExecutionStatus(input: ExecutionStatusInput): 'idle' | 'loading' | 'refreshing' | 'error' | 'success';
|
|
106
|
+
/** Inputs for computing the unified execution results array. */
|
|
107
|
+
export interface ExecutionResultsInput {
|
|
108
|
+
isRetentionMode: boolean;
|
|
109
|
+
isFlowMode: boolean;
|
|
110
|
+
isFunnelMode: boolean | undefined;
|
|
111
|
+
isMultiMode: boolean;
|
|
112
|
+
retentionChartData: {
|
|
113
|
+
rows: Array<{
|
|
114
|
+
period: number;
|
|
115
|
+
retentionRate: number;
|
|
116
|
+
retainedUsers: number;
|
|
117
|
+
cohortSize: number;
|
|
118
|
+
breakdownValue?: string | null;
|
|
119
|
+
}>;
|
|
120
|
+
} | null | undefined;
|
|
121
|
+
flowData: unknown;
|
|
122
|
+
funnelChartData: unknown[] | null | undefined;
|
|
123
|
+
multiData: unknown[] | null | undefined;
|
|
124
|
+
singleRawData: unknown[] | null | undefined;
|
|
125
|
+
initialData: unknown[] | undefined;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Compute the unified execution results array. This is a priority cascade
|
|
129
|
+
* (not a strict per-mode pick): when the active mode has no data yet, it falls
|
|
130
|
+
* through to lower-priority sources, ending at initialData. Extracted verbatim
|
|
131
|
+
* from the original useMemo body to preserve behaviour.
|
|
132
|
+
*/
|
|
133
|
+
export declare function computeExecutionResults(input: ExecutionResultsInput): unknown[] | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DashboardGridSettings, PortletConfig, RowLayout, RowLayoutColumn } from '../../types.js';
|
|
2
|
+
export declare const createRowId: () => string;
|
|
3
|
+
export declare const equalizeRowColumns: (portletIds: string[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
|
|
4
|
+
export declare const adjustRowWidths: (columns: RowLayoutColumn[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
|
|
5
|
+
export declare const convertPortletsToRows: (portlets: PortletConfig[], gridSettings: DashboardGridSettings) => RowLayout[];
|
|
6
|
+
export declare const normalizeRows: (rows: RowLayout[], portlets: PortletConfig[], gridSettings: DashboardGridSettings) => RowLayout[];
|
|
7
|
+
export declare const convertRowsToPortlets: (rows: RowLayout[], portlets: PortletConfig[]) => PortletConfig[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { MutableRefObject, RefObject } from 'react';
|
|
2
|
+
import { StoreApi } from 'zustand';
|
|
3
|
+
import { DashboardConfig, DashboardFilterMapping, DashboardGridSettings, DashboardLayoutMode, PortletConfig, RowLayout, ThumbnailFeatureConfig } from '../../types.js';
|
|
4
|
+
import { DashboardStore, DashboardStoreActions } from '../../stores/dashboardStore.js';
|
|
5
|
+
interface UseDashboardControllerOptions {
|
|
6
|
+
allowedModes: DashboardLayoutMode[];
|
|
7
|
+
canChangeLayoutMode: boolean;
|
|
8
|
+
isResponsiveEditable: boolean;
|
|
9
|
+
layoutMode: DashboardLayoutMode;
|
|
10
|
+
resolvedRows: RowLayout[];
|
|
11
|
+
gridSettings: DashboardGridSettings;
|
|
12
|
+
thumbnailConfig?: ThumbnailFeatureConfig;
|
|
13
|
+
dashboardRef?: RefObject<HTMLElement | null>;
|
|
14
|
+
storeApi: StoreApi<DashboardStore>;
|
|
15
|
+
storeActions: Pick<DashboardStoreActions, 'setEditMode' | 'exitFilterSelectionMode' | 'openPortletModal' | 'closePortletModal' | 'openTextModal' | 'closeTextModal' | 'openFilterConfigModal' | 'closeFilterConfigModal' | 'openDeleteConfirm' | 'closeDeleteConfirm' | 'setThumbnailDirty'>;
|
|
16
|
+
configRef: MutableRefObject<DashboardConfig>;
|
|
17
|
+
onConfigChangeRef: MutableRefObject<((config: DashboardConfig) => void) | undefined>;
|
|
18
|
+
onSaveRef: MutableRefObject<((config: DashboardConfig) => Promise<void> | void) | undefined>;
|
|
19
|
+
onSaveThumbnailRef: MutableRefObject<((thumbnailData: string) => Promise<string | void>) | undefined>;
|
|
20
|
+
updateRowLayout: (rows: RowLayout[], save?: boolean, portletsOverride?: PortletConfig[]) => Promise<void>;
|
|
21
|
+
portletComponentRefs?: MutableRefObject<Record<string, {
|
|
22
|
+
refresh: (options?: {
|
|
23
|
+
bustCache?: boolean;
|
|
24
|
+
}) => void;
|
|
25
|
+
} | null>>;
|
|
26
|
+
onPortletRefresh?: (portletId: string, options?: {
|
|
27
|
+
bustCache?: boolean;
|
|
28
|
+
}) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function useDashboardController({ allowedModes, canChangeLayoutMode, isResponsiveEditable, layoutMode, resolvedRows, gridSettings, thumbnailConfig, dashboardRef, storeApi, storeActions, configRef, onConfigChangeRef, onSaveRef, onSaveThumbnailRef, updateRowLayout, portletComponentRefs, onPortletRefresh, }: UseDashboardControllerOptions): {
|
|
31
|
+
enterEditMode: () => void;
|
|
32
|
+
exitEditMode: () => void;
|
|
33
|
+
toggleEditMode: () => void;
|
|
34
|
+
selectFilter: (filterId: string | null) => void;
|
|
35
|
+
openAddPortlet: () => void;
|
|
36
|
+
openEditPortlet: (portlet: PortletConfig) => void;
|
|
37
|
+
openAddText: () => void;
|
|
38
|
+
openEditText: (portlet: PortletConfig) => void;
|
|
39
|
+
openFilterConfig: (portlet: PortletConfig) => void;
|
|
40
|
+
handleLayoutModeChange: (mode: DashboardLayoutMode) => Promise<void>;
|
|
41
|
+
savePortlet: (portletData: PortletConfig | Omit<PortletConfig, "id" | "x" | "y">) => Promise<string | null>;
|
|
42
|
+
deletePortlet: (portletId: string) => Promise<void>;
|
|
43
|
+
confirmDelete: () => Promise<void>;
|
|
44
|
+
duplicatePortlet: (portletId: string) => Promise<string | undefined>;
|
|
45
|
+
refreshPortlet: (portletId: string, options?: {
|
|
46
|
+
bustCache?: boolean;
|
|
47
|
+
}) => void;
|
|
48
|
+
toggleFilterForPortlet: (portletId: string, filterId: string) => Promise<void>;
|
|
49
|
+
selectAllForFilter: (filterId: string) => Promise<void>;
|
|
50
|
+
saveFilterConfig: (mapping: DashboardFilterMapping) => Promise<void>;
|
|
51
|
+
handlePaletteChange: (paletteName: string) => Promise<void>;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LayoutItem } from 'react-grid-layout';
|
|
2
|
+
import { StoreApi } from 'zustand';
|
|
3
|
+
import { DashboardStore } from '../../stores/dashboardStore.js';
|
|
4
|
+
interface UseGridLayoutEngineOptions {
|
|
5
|
+
storeApi: StoreApi<DashboardStore>;
|
|
6
|
+
}
|
|
7
|
+
export declare function useGridLayoutEngine({ storeApi }: UseGridLayoutEngineOptions): {
|
|
8
|
+
hasLayoutActuallyChanged: (newLayout: LayoutItem[]) => boolean;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { DashboardConfig, DashboardGridSettings, DashboardLayoutMode, PortletConfig, RowLayout } from '../../types.js';
|
|
3
|
+
interface UseRowLayoutEngineOptions {
|
|
4
|
+
layoutMode: DashboardLayoutMode;
|
|
5
|
+
draftRows: RowLayout[] | null;
|
|
6
|
+
config: DashboardConfig;
|
|
7
|
+
gridSettings: DashboardGridSettings;
|
|
8
|
+
configRef: MutableRefObject<DashboardConfig>;
|
|
9
|
+
onConfigChangeRef: MutableRefObject<((config: DashboardConfig) => void) | undefined>;
|
|
10
|
+
onSaveRef: MutableRefObject<((config: DashboardConfig) => Promise<void> | void) | undefined>;
|
|
11
|
+
setDraftRows: (rows: RowLayout[] | null) => void;
|
|
12
|
+
setThumbnailDirty: (dirty: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function useRowLayoutEngine({ layoutMode, draftRows, config, gridSettings, configRef, onConfigChangeRef, onSaveRef, setDraftRows, setThumbnailDirty, }: UseRowLayoutEngineOptions): {
|
|
15
|
+
resolvedRows: RowLayout[];
|
|
16
|
+
updateRowLayout: (rows: RowLayout[], save?: boolean, portletsOverride?: PortletConfig[]) => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DrillOption, DrillPathEntry } from '../types/drill.js';
|
|
2
|
+
import { ChartAxisConfig, CubeQuery } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Find an existing drill-path level for the given option and compute the
|
|
5
|
+
* "navigate back" descriptor (the truncated path + the query/chartConfig to
|
|
6
|
+
* restore). Returns null when there is no matching existing level.
|
|
7
|
+
*
|
|
8
|
+
* Used for both time-granularity drilling (matched by `granularity`) and
|
|
9
|
+
* hierarchy-dimension drilling (matched by `dimension`).
|
|
10
|
+
*/
|
|
11
|
+
export declare function findNavigateBackToExistingLevel(drillPath: DrillPathEntry[], matches: (entry: DrillPathEntry) => boolean): {
|
|
12
|
+
newPath: DrillPathEntry[];
|
|
13
|
+
query: CubeQuery;
|
|
14
|
+
chartConfig: ChartAxisConfig | null;
|
|
15
|
+
} | null;
|
|
16
|
+
/**
|
|
17
|
+
* Whether selecting this option means returning all the way to the root via the
|
|
18
|
+
* original time granularity.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isDrillBackToRootGranularity(option: DrillOption, originalGranularity: string | null): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Compute the granularity to remember as the "original" when first drilling via
|
|
23
|
+
* a time-granularity option. Returns null when nothing should be stored.
|
|
24
|
+
*/
|
|
25
|
+
export declare function computeOriginalGranularity(option: DrillOption, query: CubeQuery): string | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TanStack Query Hooks - Barrel Export
|
|
3
|
+
*
|
|
4
|
+
* These hooks provide TanStack Query-based data fetching for:
|
|
5
|
+
* - Cube metadata (useCubeMetaQuery)
|
|
6
|
+
* - Single cube data loading (useCubeLoadQuery)
|
|
7
|
+
* - Multi-cube data loading (useMultiCubeLoadQuery)
|
|
8
|
+
* - Dry-run/debug data (useDryRunQuery, useMultiDryRunQueries)
|
|
9
|
+
*
|
|
10
|
+
* All hooks include built-in debouncing, caching, and error handling.
|
|
11
|
+
*/
|
|
12
|
+
export { useCubeMetaQuery, prefetchCubeMeta, CUBE_META_QUERY_KEY, type UseCubeMetaQueryOptions, type UseCubeMetaQueryResult, } from './useCubeMetaQuery.js';
|
|
13
|
+
export { useCubeLoadQuery, useCubeLoadQuery as useCubeQuery, createQueryKey, type UseCubeLoadQueryOptions, type UseCubeLoadQueryResult, } from './useCubeLoadQuery.js';
|
|
14
|
+
export { useMultiCubeLoadQuery, createMultiQueryKey, type UseMultiCubeLoadQueryOptions, type UseMultiCubeLoadQueryResult, } from './useMultiCubeLoadQuery.js';
|
|
15
|
+
export { useDryRunQuery, useMultiDryRunQueries, useDryRunQueries, useFunnelDryRunQuery, useFlowDryRunQuery, useRetentionDryRunQuery, createDryRunQueryKey, type DebugDataEntry, type FunnelDebugDataEntry, type FlowDebugDataEntry, type RetentionDebugDataEntry, type UseDryRunQueryOptions, type UseDryRunQueryResult, type UseMultiDryRunQueriesOptions, type UseMultiDryRunQueriesResult, } from './useDryRunQuery.js';
|
|
16
|
+
export { useFunnelQuery, createFunnelQueryKey, } from './useFunnelQuery.js';
|
|
17
|
+
export { useFlowQuery, createFlowQueryKey, type UseFlowQueryOptions, type UseFlowQueryResult, } from './useFlowQuery.js';
|
|
18
|
+
export { useRetentionQuery, type UseRetentionQueryOptions, type UseRetentionQueryResult, } from './useRetentionQuery.js';
|
|
19
|
+
export { useExplainQuery, createExplainQueryKey, type UseExplainQueryOptions, type UseExplainQueryResult, } from './useExplainQuery.js';
|
|
20
|
+
export { useExplainAI, type UseExplainAIOptions, type UseExplainAIResult, } from './useExplainAI.js';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { CubeQuery, CubeResultSet } from '../../types.js';
|
|
2
|
+
import { QueryWarning } from '../../shared/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Create a stable query key from a CubeQuery
|
|
5
|
+
* The key includes all query parameters to ensure proper caching
|
|
6
|
+
*/
|
|
7
|
+
export declare function createQueryKey(query: CubeQuery | null): readonly unknown[];
|
|
8
|
+
export interface UseCubeLoadQueryOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Whether to skip the query
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
skip?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Debounce delay in milliseconds
|
|
16
|
+
* @default 300
|
|
17
|
+
*/
|
|
18
|
+
debounceMs?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to reset result set when query changes
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
resetResultSetOnChange?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Stale time in milliseconds
|
|
26
|
+
* @default 60 * 1000 (1 minute)
|
|
27
|
+
*/
|
|
28
|
+
staleTime?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to keep previous data while loading new data
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
keepPreviousData?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** Options for the refetch function */
|
|
36
|
+
export interface RefetchOptions {
|
|
37
|
+
/** If true, bypasses both client and server caches */
|
|
38
|
+
bustCache?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface UseCubeLoadQueryResult {
|
|
41
|
+
/** The result set from the query */
|
|
42
|
+
resultSet: CubeResultSet | null;
|
|
43
|
+
/** Raw data from the result set */
|
|
44
|
+
rawData: unknown[] | null;
|
|
45
|
+
/** Whether the query is loading (initial load) */
|
|
46
|
+
isLoading: boolean;
|
|
47
|
+
/** Whether the query is fetching (includes refetch) */
|
|
48
|
+
isFetching: boolean;
|
|
49
|
+
/** Whether query is debouncing (waiting for user to stop typing) */
|
|
50
|
+
isDebouncing: boolean;
|
|
51
|
+
/** Error if the query failed */
|
|
52
|
+
error: Error | null;
|
|
53
|
+
/** The debounced query that was executed */
|
|
54
|
+
debouncedQuery: CubeQuery | null;
|
|
55
|
+
/** Whether the current query is valid */
|
|
56
|
+
isValidQuery: boolean;
|
|
57
|
+
/** Manually refetch the data. Pass { bustCache: true } to bypass caches. */
|
|
58
|
+
refetch: (options?: RefetchOptions) => void;
|
|
59
|
+
/** Clear the query cache */
|
|
60
|
+
clearCache: () => void;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the query needs to be refreshed (manual refresh mode only).
|
|
63
|
+
* True when the current query config differs from the last executed query.
|
|
64
|
+
*/
|
|
65
|
+
needsRefresh: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Execute the current query (manual refresh mode only).
|
|
68
|
+
* In auto-refresh mode, this is the same as refetch().
|
|
69
|
+
*/
|
|
70
|
+
executeQuery: (options?: RefetchOptions) => void;
|
|
71
|
+
/** Warnings from query planning (e.g., fan-out without dimensions) */
|
|
72
|
+
warnings: QueryWarning[] | undefined;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* TanStack Query hook for loading cube data with debouncing
|
|
76
|
+
*
|
|
77
|
+
* Usage:
|
|
78
|
+
* ```tsx
|
|
79
|
+
* const { resultSet, rawData, isLoading, error } = useCubeLoadQuery(query, {
|
|
80
|
+
* debounceMs: 300,
|
|
81
|
+
* skip: !isReady
|
|
82
|
+
* })
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare function useCubeLoadQuery(query: CubeQuery | null, options?: UseCubeLoadQueryOptions): UseCubeLoadQueryResult;
|