drizzle-cube 0.12.2 → 0.12.3
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/ActivityGridChart.config-D14_z5sv.js +1 -0
- package/dist/adapters/ActivityGridChart.config-ufhph9uT.cjs +1 -0
- package/dist/adapters/AreaChart.config-0WZQMQva.js +1 -0
- package/dist/adapters/AreaChart.config-D13ltksm.cjs +1 -0
- package/dist/adapters/BarChart.config-CKW_EixK.cjs +1 -0
- package/dist/adapters/BarChart.config-Dap2k5h9.js +1 -0
- package/dist/adapters/BoxPlotChart.config-BL9GycIS.js +1 -0
- package/dist/adapters/BoxPlotChart.config-D8ijk7P0.cjs +1 -0
- package/dist/adapters/BubbleChart.config-B5mdZpOU.js +1 -0
- package/dist/adapters/BubbleChart.config-D_F6Q5z3.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-DWebnARH.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-U_bjkKnh.js +1 -0
- package/dist/adapters/DataTable.config-CgONV9qM.cjs +1 -0
- package/dist/adapters/DataTable.config-Cuagfjxg.js +1 -0
- package/dist/adapters/DotStripChart.config-B5lxjWSO.js +1 -0
- package/dist/adapters/DotStripChart.config-fD9Mc6W1.cjs +1 -0
- package/dist/adapters/FunnelChart.config-BaE_hLT-.js +1 -0
- package/dist/adapters/FunnelChart.config-Cx7W7-R0.cjs +1 -0
- package/dist/adapters/GaugeChart.config-CgKuBQVo.cjs +1 -0
- package/dist/adapters/GaugeChart.config-ilNlLLj6.js +1 -0
- package/dist/adapters/HeatMapChart.config-Bbk6aa8K.js +1 -0
- package/dist/adapters/HeatMapChart.config-CURg_iiu.cjs +1 -0
- package/dist/adapters/KpiDelta.config-CuZ2C_6t.js +1 -0
- package/dist/adapters/KpiDelta.config-DRy870xF.cjs +1 -0
- package/dist/adapters/KpiNumber.config-BWowvaBG.cjs +1 -0
- package/dist/adapters/KpiNumber.config-h9VspPBo.js +1 -0
- package/dist/adapters/KpiText.config-CXouHoxx.js +1 -0
- package/dist/adapters/KpiText.config-dSbcOdVW.cjs +1 -0
- package/dist/adapters/LineChart.config-BrcTc3dO.cjs +1 -0
- package/dist/adapters/LineChart.config-DOZctkmK.js +1 -0
- package/dist/adapters/MarkdownChart.config-BduAIK5N.js +1 -0
- package/dist/adapters/MarkdownChart.config-CFnH92Fg.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-BgdtMIbZ.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-CUahwnse.cjs +1 -0
- package/dist/adapters/PieChart.config-Bwf8meCN.js +1 -0
- package/dist/adapters/PieChart.config-ClfJ6LyA.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-CKyen5fP.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-D7RADfKH.js +1 -0
- package/dist/adapters/RadarChart.config-CBR7pNrt.js +1 -0
- package/dist/adapters/RadarChart.config-DSLRklgx.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-BTGjY6JD.js +1 -0
- package/dist/adapters/RadialBarChart.config-CPbimqdg.cjs +1 -0
- package/dist/adapters/RecordsTable.config-B1Z_3JTJ.js +1 -0
- package/dist/adapters/RecordsTable.config-C6QhLcZk.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-BkSezvSb.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-R1Eq-xRI.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-BlUhtL5W.js +1 -0
- package/dist/adapters/RetentionHeatmap.config-DCIsToqo.cjs +1 -0
- package/dist/adapters/SankeyChart.config-Bt0F2A6e.js +1 -0
- package/dist/adapters/SankeyChart.config-_Z5ZrziF.cjs +1 -0
- package/dist/adapters/ScatterChart.config-BW0_kSo8.cjs +1 -0
- package/dist/adapters/ScatterChart.config-DCaM-v68.js +1 -0
- package/dist/adapters/SunburstChart.config-B8Q9pbbo.js +1 -0
- package/dist/adapters/SunburstChart.config-mhQZB6uc.cjs +1 -0
- package/dist/adapters/TreeMapChart.config-Ch--bdyv.js +1 -0
- package/dist/adapters/TreeMapChart.config-DaNlt1aC.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-CR49XWjE.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-qHaD0m4H.js +1 -0
- package/dist/adapters/core/cache-options.d.ts +4 -0
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/core-3nDM2f7O.cjs +1 -0
- package/dist/adapters/{core-pxHAXRX7.js → core-CD6SqK5q.js} +66 -58
- package/dist/adapters/{compiler-DEL18KHw.js → cors-headers-DYYDrG7S.js} +129 -110
- package/dist/adapters/{compiler-Cs1gQ8Tc.cjs → cors-headers-DxkPVNnZ.cjs} +4 -4
- package/dist/adapters/cors-headers.d.ts +19 -0
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +13 -13
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +13 -13
- package/dist/adapters/{handler-zbRXe0T7.js → handler-B_vsFWWm.js} +32 -32
- package/dist/adapters/{handler-BIntJx7r.cjs → handler-DSOaXFuV.cjs} +3 -3
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +12 -12
- package/dist/adapters/locale.d.ts +0 -1
- package/dist/adapters/mcp-app-html-DkiIh0rL.cjs +1 -0
- package/dist/adapters/mcp-app-html-DwnysAEL.js +5 -0
- package/dist/adapters/mcp-app-html.cjs +1 -1
- package/dist/adapters/mcp-app-html.js +1 -1
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +3 -3
- package/dist/adapters/{mcp-transport-D0sMYZAv.cjs → mcp-transport-7zszPPXk.cjs} +1 -1
- package/dist/adapters/{mcp-transport-Dt0OJUTC.js → mcp-transport-DVI1lCNM.js} +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +20 -20
- package/dist/adapters/{openai-D-GSoFRS.js → openai-Bdnnw3Ok.js} +1 -1
- package/dist/adapters/{openai-fP9uuybp.cjs → openai-CE52anhW.cjs} +1 -1
- package/dist/adapters/{openai-yZ3KkIqz.js → openai-DA9yrRkA.js} +1 -1
- package/dist/adapters/{openai-BVi0RiSA.cjs → openai-JLaT_FPt.cjs} +1 -1
- package/dist/adapters/{utils-BTZoHYi5.js → utils-BtiRfbcX.js} +28 -2
- package/dist/adapters/utils-OLv25-nn.cjs +141 -0
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.d.ts +5 -10
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/adapters/core/cache-options.d.ts +4 -0
- package/dist/cjs/adapters/cors-headers.d.ts +19 -0
- package/dist/cjs/adapters/locale.d.ts +0 -1
- package/dist/cjs/adapters/utils.d.ts +5 -10
- package/dist/cjs/client/charts/lazyChartConfigRegistry.d.ts +2 -2
- package/dist/cjs/client/client/BatchCoordinator.d.ts +21 -6
- package/dist/cjs/client/client/CubeClient.d.ts +34 -8
- package/dist/cjs/client/client/maxAge.d.ts +84 -0
- package/dist/cjs/client/client/subscription.d.ts +30 -0
- package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/cjs/client/components/FloatingEditToolbar.d.ts +5 -1
- package/dist/cjs/client/components/MobileStackedLayout.d.ts +8 -2
- package/dist/cjs/client/components/PortletAnalysisModal.d.ts +4 -2
- package/dist/cjs/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +4 -2
- package/dist/cjs/client/components/analyticsPortlet/usePortletQueryResults.d.ts +15 -5
- package/dist/cjs/client/components/analyticsPortlet/usePortletVisibility.d.ts +23 -0
- package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +16 -3
- package/dist/cjs/client/components/dashboard/DashboardEditBar.d.ts +1 -1
- package/dist/cjs/client/components/dashboard/DashboardRefreshSelector.d.ts +12 -0
- package/dist/cjs/client/components/dashboard/DashboardToolbar.d.ts +2 -1
- package/dist/cjs/client/components/dashboard/RefreshPauseToggle.d.ts +8 -0
- package/dist/cjs/client/components/dashboardPortletCard/DataFreshnessIndicator.d.ts +19 -0
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +13 -3
- package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +2 -3
- package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +7 -4
- package/dist/cjs/client/components/portletAnalysisModal/RefreshSettings.d.ts +24 -0
- package/dist/cjs/client/hooks/dashboard/useDashboardController.d.ts +6 -10
- package/dist/cjs/client/hooks/dashboard/useDashboardRefreshTimer.d.ts +28 -0
- package/dist/cjs/client/hooks/queries/useCubeLoadQuery.d.ts +26 -6
- package/dist/cjs/client/hooks/queries/useFlowQuery.d.ts +6 -3
- package/dist/cjs/client/hooks/queries/useMultiCubeLoadQuery.d.ts +13 -4
- package/dist/cjs/client/hooks/queries/useRetentionQuery.d.ts +7 -4
- package/dist/cjs/client/hooks/queries/useShownRowsAge.d.ts +10 -0
- package/dist/cjs/client/hooks/useAnalysisBuilderHook.d.ts +2 -3
- package/dist/cjs/client/hooks/useAnalysisEffects.d.ts +2 -0
- package/dist/cjs/client/hooks/useAnalysisQuery.d.ts +2 -3
- package/dist/cjs/client/hooks/useDashboardHook.d.ts +7 -10
- package/dist/cjs/client/icons/types.d.ts +2 -0
- package/dist/cjs/client/index.d.ts +3 -1
- package/dist/cjs/client/shared/chartDefaults.d.ts +5 -3
- package/dist/cjs/client/stores/dashboardStore.d.ts +13 -0
- package/dist/cjs/client/types/funnel.d.ts +10 -4
- package/dist/cjs/client/types.d.ts +68 -3
- package/dist/cjs/client/utils/freshness.d.ts +37 -0
- package/dist/cjs/client/utils/multiQueryUtils.d.ts +23 -0
- package/dist/cjs/server/compiler.d.ts +2 -0
- package/dist/cjs/server/execution/query-result-cache.d.ts +8 -2
- package/dist/cjs/server/executor.d.ts +1 -0
- package/dist/cjs/server/physical-plan/processors/shared.d.ts +2 -0
- package/dist/cjs/server/types/core.d.ts +12 -1
- package/dist/cjs/server/types/cube.d.ts +7 -0
- package/dist/client/charts/lazyChartConfigRegistry.d.ts +2 -2
- package/dist/client/charts.js +13 -13
- package/dist/client/chunks/{DashboardEditModal-C7Nj2XvQ.js → DashboardEditModal-F2fGr29d.js} +2572 -2196
- package/dist/client/chunks/DashboardEditModal-F2fGr29d.js.map +1 -0
- package/dist/client/chunks/{DotStripChart-QEz91ja9.js → DotStripChart-CQaJwo8K.js} +3 -3
- package/dist/client/chunks/{DotStripChart-QEz91ja9.js.map → DotStripChart-CQaJwo8K.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-pb8nuT0D.js → ProportionBarChart-DiA5ZGeg.js} +3 -3
- package/dist/client/chunks/{ProportionBarChart-pb8nuT0D.js.map → ProportionBarChart-DiA5ZGeg.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-D8Lirq-E.js → RecordsTable-Bgqo-LjT.js} +166 -166
- package/dist/client/chunks/RecordsTable-Bgqo-LjT.js.map +1 -0
- package/dist/client/chunks/{RetentionCombinedChart-B9onTBMq.js → RetentionCombinedChart-BtMRtwlb.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-B9onTBMq.js.map → RetentionCombinedChart-BtMRtwlb.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-WN_NOsvA.js → RetentionHeatmap-ChTa35gp.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-WN_NOsvA.js.map → RetentionHeatmap-ChTa35gp.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-CmnW9_92.js → analysis-builder-CnmkTZm2.js} +831 -845
- package/dist/client/chunks/analysis-builder-CnmkTZm2.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-W_lbhFRa.js → analysis-builder-shared-BsjxOL7r.js} +809 -803
- package/dist/client/chunks/analysis-builder-shared-BsjxOL7r.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-CJXF0zeZ.js → chart-activity-grid-DeDPSs12.js} +27 -2
- package/dist/client/chunks/{chart-activity-grid-CJXF0zeZ.js.map → chart-activity-grid-DeDPSs12.js.map} +1 -1
- package/dist/client/chunks/{chart-area-DbcIg5Ql.js → chart-area-WyrVYze7.js} +2 -2
- package/dist/client/chunks/{chart-area-DbcIg5Ql.js.map → chart-area-WyrVYze7.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-E_qVO7I9.js → chart-bar-wGHC1Hfo.js} +3 -3
- package/dist/client/chunks/{chart-bar-E_qVO7I9.js.map → chart-bar-wGHC1Hfo.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-CIwQZh9I.js → chart-box-plot-CW5GZHM9.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-CIwQZh9I.js.map → chart-box-plot-CW5GZHM9.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-BrMToSQW.js → chart-bubble-CKkVi7L2.js} +2 -2
- package/dist/client/chunks/{chart-bubble-BrMToSQW.js.map → chart-bubble-CKkVi7L2.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-C9FBo9mf.js → chart-candlestick-BPFeay7t.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-C9FBo9mf.js.map → chart-candlestick-BPFeay7t.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-vxJ9eDbC.js → chart-data-table-uJG1V-be.js} +1133 -854
- package/dist/client/chunks/chart-data-table-uJG1V-be.js.map +1 -0
- package/dist/client/chunks/{chart-funnel-D11lxZ5_.js → chart-funnel-BtUexI1t.js} +2 -2
- package/dist/client/chunks/{chart-funnel-D11lxZ5_.js.map → chart-funnel-BtUexI1t.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-BQcgvynO.js → chart-gauge-BSrfZFsW.js} +3 -3
- package/dist/client/chunks/{chart-gauge-BQcgvynO.js.map → chart-gauge-BSrfZFsW.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-J2j5MNLJ.js → chart-heat-map-DtMtuFnw.js} +3 -3
- package/dist/client/chunks/{chart-heat-map-J2j5MNLJ.js.map → chart-heat-map-DtMtuFnw.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-BKEJT7mj.js → chart-kpi-delta-B0BkN_Q6.js} +3 -3
- package/dist/client/chunks/{chart-kpi-delta-BKEJT7mj.js.map → chart-kpi-delta-B0BkN_Q6.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-DCBXjFI-.js → chart-kpi-number-zlBkLesi.js} +5 -5
- package/dist/client/chunks/{chart-kpi-number-DCBXjFI-.js.map → chart-kpi-number-zlBkLesi.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-D_qFY84K.js → chart-kpi-text-BXXfkhz_.js} +3 -3
- package/dist/client/chunks/{chart-kpi-text-D_qFY84K.js.map → chart-kpi-text-BXXfkhz_.js.map} +1 -1
- package/dist/client/chunks/{chart-line-CS2ixl5U.js → chart-line-D_yFQDze.js} +3 -3
- package/dist/client/chunks/{chart-line-CS2ixl5U.js.map → chart-line-D_yFQDze.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-DKMZqwwH.js → chart-markdown-DaBTpRgf.js} +2 -2
- package/dist/client/chunks/{chart-markdown-DKMZqwwH.js.map → chart-markdown-DaBTpRgf.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-Cu-JZfYt.js → chart-measure-profile-DOHIm-QY.js} +3 -3
- package/dist/client/chunks/{chart-measure-profile-Cu-JZfYt.js.map → chart-measure-profile-DOHIm-QY.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CNRjmYs5.js → chart-pie-DLrT81CL.js} +3 -3
- package/dist/client/chunks/{chart-pie-CNRjmYs5.js.map → chart-pie-DLrT81CL.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-BZbwDAIY.js → chart-radar-CcXG6k6o.js} +3 -3
- package/dist/client/chunks/{chart-radar-BZbwDAIY.js.map → chart-radar-CcXG6k6o.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-Dvd2DAnu.js → chart-radial-bar-DYn5FLrG.js} +3 -3
- package/dist/client/chunks/{chart-radial-bar-Dvd2DAnu.js.map → chart-radial-bar-DYn5FLrG.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-CxR3tqnR.js → chart-sankey-CWkctg-k.js} +2 -2
- package/dist/client/chunks/{chart-sankey-CxR3tqnR.js.map → chart-sankey-CWkctg-k.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-BqFOCOhW.js → chart-scatter-CCGL2IEP.js} +3 -3
- package/dist/client/chunks/{chart-scatter-BqFOCOhW.js.map → chart-scatter-CCGL2IEP.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-C6wdt55m.js → chart-sunburst-9sgiHFSO.js} +3 -3
- package/dist/client/chunks/{chart-sunburst-C6wdt55m.js.map → chart-sunburst-9sgiHFSO.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DE8-SZzY.js → chart-tree-map-DOWeXCn_.js} +3 -3
- package/dist/client/chunks/{chart-tree-map-DE8-SZzY.js.map → chart-tree-map-DOWeXCn_.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-DdIFbm8I.js → chart-waterfall-BS7x0dW-.js} +3 -3
- package/dist/client/chunks/{chart-waterfall-DdIFbm8I.js.map → chart-waterfall-BS7x0dW-.js.map} +1 -1
- package/dist/client/chunks/{charts-core-0qGDP3Zh.js → charts-core-DM-Eav_9.js} +2 -2
- package/dist/client/chunks/{charts-core-0qGDP3Zh.js.map → charts-core-DM-Eav_9.js.map} +1 -1
- package/dist/client/chunks/charts-loader-3N-LqjLk.js +87 -0
- package/dist/client/chunks/{charts-loader-CwTTQh7e.js.map → charts-loader-3N-LqjLk.js.map} +1 -1
- package/dist/client/chunks/{dashboardExport-Cy5OOMpb.js → dashboardExport-ZiT4DcDZ.js} +143 -121
- package/dist/client/chunks/dashboardExport-ZiT4DcDZ.js.map +1 -0
- package/dist/client/chunks/{gapFilling-DKBRHcQL.js → gapFilling-C-A4o8Cl.js} +2 -1
- package/dist/client/chunks/{gapFilling-DKBRHcQL.js.map → gapFilling-C-A4o8Cl.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-Fi9_nOz7.js → nl-NL-CKfZudeP.js} +26 -1
- package/dist/client/chunks/{nl-NL-Fi9_nOz7.js.map → nl-NL-CKfZudeP.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-CcYQAUCS.js → schema-visualization-BO70spCF.js} +3 -3
- package/dist/client/chunks/{schema-visualization-CcYQAUCS.js.map → schema-visualization-BO70spCF.js.map} +1 -1
- package/dist/client/chunks/useDirtyStateTracking-OVW-JnrF.js +1086 -0
- package/dist/client/chunks/useDirtyStateTracking-OVW-JnrF.js.map +1 -0
- package/dist/client/chunks/{useExplainAI-2W12PFz_.js → useExplainAI-BrjlR24K.js} +25 -25
- package/dist/client/chunks/{useExplainAI-2W12PFz_.js.map → useExplainAI-BrjlR24K.js.map} +1 -1
- package/dist/client/chunks/{vendor-Bz0lKciG.js → vendor-Das3qwov.js} +188 -188
- package/dist/client/chunks/vendor-Das3qwov.js.map +1 -0
- package/dist/client/client/BatchCoordinator.d.ts +21 -6
- package/dist/client/client/CubeClient.d.ts +34 -8
- package/dist/client/client/maxAge.d.ts +84 -0
- package/dist/client/client/subscription.d.ts +30 -0
- package/dist/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/client/components/FloatingEditToolbar.d.ts +5 -1
- package/dist/client/components/MobileStackedLayout.d.ts +8 -2
- package/dist/client/components/PortletAnalysisModal.d.ts +4 -2
- package/dist/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +4 -2
- package/dist/client/components/analyticsPortlet/usePortletQueryResults.d.ts +15 -5
- package/dist/client/components/analyticsPortlet/usePortletVisibility.d.ts +23 -0
- package/dist/client/components/dashboard/DashboardContext.d.ts +16 -3
- package/dist/client/components/dashboard/DashboardEditBar.d.ts +1 -1
- package/dist/client/components/dashboard/DashboardRefreshSelector.d.ts +12 -0
- package/dist/client/components/dashboard/DashboardToolbar.d.ts +2 -1
- package/dist/client/components/dashboard/RefreshPauseToggle.d.ts +8 -0
- package/dist/client/components/dashboardPortletCard/DataFreshnessIndicator.d.ts +19 -0
- package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +13 -3
- package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +2 -3
- package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +7 -4
- package/dist/client/components/portletAnalysisModal/RefreshSettings.d.ts +24 -0
- package/dist/client/components.js +1 -1
- package/dist/client/hooks/dashboard/useDashboardController.d.ts +6 -10
- package/dist/client/hooks/dashboard/useDashboardRefreshTimer.d.ts +28 -0
- package/dist/client/hooks/queries/useCubeLoadQuery.d.ts +26 -6
- package/dist/client/hooks/queries/useFlowQuery.d.ts +6 -3
- package/dist/client/hooks/queries/useMultiCubeLoadQuery.d.ts +13 -4
- package/dist/client/hooks/queries/useRetentionQuery.d.ts +7 -4
- package/dist/client/hooks/queries/useShownRowsAge.d.ts +10 -0
- package/dist/client/hooks/useAnalysisBuilderHook.d.ts +2 -3
- package/dist/client/hooks/useAnalysisEffects.d.ts +2 -0
- package/dist/client/hooks/useAnalysisQuery.d.ts +2 -3
- package/dist/client/hooks/useDashboardHook.d.ts +7 -10
- package/dist/client/hooks.js +4 -4
- package/dist/client/icons/types.d.ts +2 -0
- package/dist/client/icons.js +1 -1
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +265 -265
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers.js +3 -3
- package/dist/client/schema.js +1 -1
- package/dist/client/shared/chartDefaults.d.ts +5 -3
- package/dist/client/stores/dashboardStore.d.ts +13 -0
- package/dist/client/types/funnel.d.ts +10 -4
- package/dist/client/types.d.ts +68 -3
- package/dist/client/utils/freshness.d.ts +37 -0
- package/dist/client/utils/multiQueryUtils.d.ts +23 -0
- package/dist/client/utils.js +6 -6
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +100 -100
- package/dist/server/compiler.d.ts +2 -0
- package/dist/server/execution/query-result-cache.d.ts +8 -2
- package/dist/server/executor.d.ts +1 -0
- package/dist/server/index.cjs +42 -42
- package/dist/server/index.js +1262 -1229
- package/dist/server/physical-plan/processors/shared.d.ts +2 -0
- package/dist/server/types/core.d.ts +12 -1
- package/dist/server/types/cube.d.ts +7 -0
- package/package.json +1 -1
- package/dist/adapters/ActivityGridChart.config-D39xezZk.cjs +0 -1
- package/dist/adapters/ActivityGridChart.config-Dda_6s0U.js +0 -1
- package/dist/adapters/AreaChart.config-C2jCU8Un.js +0 -1
- package/dist/adapters/AreaChart.config-OUEFGX8L.cjs +0 -1
- package/dist/adapters/BarChart.config-D98PTSf1.cjs +0 -1
- package/dist/adapters/BarChart.config-EU-BNwwQ.js +0 -1
- package/dist/adapters/BoxPlotChart.config-C31U6Xwc.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-CZ9PdgAR.js +0 -1
- package/dist/adapters/BubbleChart.config-bdvOX_OM.js +0 -1
- package/dist/adapters/BubbleChart.config-o1gkn-oi.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-BJ2zddnS.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-DVoQffTz.js +0 -1
- package/dist/adapters/DataTable.config-4jfKTU-P.cjs +0 -1
- package/dist/adapters/DataTable.config-CYymkiCj.js +0 -1
- package/dist/adapters/DotStripChart.config-CdEToyMR.js +0 -1
- package/dist/adapters/DotStripChart.config-CeGKfd2Y.cjs +0 -1
- package/dist/adapters/FunnelChart.config-C9xr0lB7.cjs +0 -1
- package/dist/adapters/FunnelChart.config-DgLsAd6X.js +0 -1
- package/dist/adapters/GaugeChart.config-Crpx_mOJ.cjs +0 -1
- package/dist/adapters/GaugeChart.config-DMGLtrtP.js +0 -1
- package/dist/adapters/HeatMapChart.config-Bag4iUrV.js +0 -1
- package/dist/adapters/HeatMapChart.config-DYlOsCXv.cjs +0 -1
- package/dist/adapters/KpiDelta.config-CpBbqTSe.js +0 -1
- package/dist/adapters/KpiDelta.config-Dz04ftLJ.cjs +0 -1
- package/dist/adapters/KpiNumber.config-B7hJ_9KD.js +0 -1
- package/dist/adapters/KpiNumber.config-B90sa19m.cjs +0 -1
- package/dist/adapters/KpiText.config-BkFneytA.cjs +0 -1
- package/dist/adapters/KpiText.config-De251rp3.js +0 -1
- package/dist/adapters/LineChart.config-BqhSrY3Y.cjs +0 -1
- package/dist/adapters/LineChart.config-So9LmBca.js +0 -1
- package/dist/adapters/MarkdownChart.config-Bb68uUv7.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-CPrdMTKk.js +0 -1
- package/dist/adapters/MeasureProfileChart.config-D8ys_JcL.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-DmtZaq33.js +0 -1
- package/dist/adapters/PieChart.config-DSCsXFyT.cjs +0 -1
- package/dist/adapters/PieChart.config-GnJP21n4.js +0 -1
- package/dist/adapters/ProportionBarChart.config-BpMvnSL2.js +0 -1
- package/dist/adapters/ProportionBarChart.config-L2KzFFNd.cjs +0 -1
- package/dist/adapters/RadarChart.config-BuoeQHzU.js +0 -1
- package/dist/adapters/RadarChart.config-s00FMtiV.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-Csaj03QZ.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-Cx5SaB02.js +0 -1
- package/dist/adapters/RecordsTable.config-Daba7GEf.cjs +0 -1
- package/dist/adapters/RecordsTable.config-DaeLGs-c.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-BC1bizXY.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-eOTeHUd-.js +0 -1
- package/dist/adapters/RetentionHeatmap.config-BW0tarnm.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-C_ObG7BL.js +0 -1
- package/dist/adapters/SankeyChart.config-BvtX99Ub.js +0 -1
- package/dist/adapters/SankeyChart.config-D1vkom4z.cjs +0 -1
- package/dist/adapters/ScatterChart.config-OF3pLDki.cjs +0 -1
- package/dist/adapters/ScatterChart.config-gmIhEs9x.js +0 -1
- package/dist/adapters/SunburstChart.config-DVF_YC7z.cjs +0 -1
- package/dist/adapters/SunburstChart.config-IeVU95wF.js +0 -1
- package/dist/adapters/TreeMapChart.config-CZbNvSfx.js +0 -1
- package/dist/adapters/TreeMapChart.config-CzjOynvQ.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-BCKwwg8W.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-BQ-qNCQD.js +0 -1
- package/dist/adapters/core-Bpzlbfe4.cjs +0 -1
- package/dist/adapters/mcp-app-html-DjXsoT66.js +0 -5
- package/dist/adapters/mcp-app-html-s0EguZzT.cjs +0 -1
- package/dist/adapters/utils-DY4WUdbt.cjs +0 -141
- package/dist/client/chunks/DashboardEditModal-C7Nj2XvQ.js.map +0 -1
- package/dist/client/chunks/RecordsTable-D8Lirq-E.js.map +0 -1
- package/dist/client/chunks/analysis-builder-CmnW9_92.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-W_lbhFRa.js.map +0 -1
- package/dist/client/chunks/chart-data-table-vxJ9eDbC.js.map +0 -1
- package/dist/client/chunks/charts-loader-CwTTQh7e.js +0 -87
- package/dist/client/chunks/dashboardExport-Cy5OOMpb.js.map +0 -1
- package/dist/client/chunks/useDirtyStateTracking-C_pCRhRu.js +0 -1150
- package/dist/client/chunks/useDirtyStateTracking-C_pCRhRu.js.map +0 -1
- package/dist/client/chunks/vendor-Bz0lKciG.js.map +0 -1
|
@@ -3,6 +3,7 @@ import { ColorPalette } from './utils/colorPalettes.js';
|
|
|
3
3
|
import { FunnelBindingKey } from './types/funnel.js';
|
|
4
4
|
import { FlowChartData } from './types/flow.js';
|
|
5
5
|
import { RetentionChartData } from './types/retention.js';
|
|
6
|
+
import { MaxAgeOptions } from './client/maxAge.js';
|
|
6
7
|
export type TimeGranularity = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
7
8
|
export interface CubeMetaMeasure {
|
|
8
9
|
name: string;
|
|
@@ -257,6 +258,29 @@ export interface ChartDisplayConfig {
|
|
|
257
258
|
showCenterLabel?: boolean;
|
|
258
259
|
showPercentage?: boolean;
|
|
259
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Interval refresh for one portlet. Overrides the dashboard default. Takes
|
|
263
|
+
* effect only when `features.refresh.enabled` is set.
|
|
264
|
+
*/
|
|
265
|
+
export interface PortletRefreshConfig {
|
|
266
|
+
/**
|
|
267
|
+
* Refetch every this many seconds, accepting a server result at most this old.
|
|
268
|
+
* Unset inherits the dashboard's `intervalSeconds`.
|
|
269
|
+
*/
|
|
270
|
+
intervalSeconds?: number;
|
|
271
|
+
/**
|
|
272
|
+
* Skip refreshes while the browser tab is hidden. Unset inherits the
|
|
273
|
+
* dashboard's `pauseWhenHidden`; `false` overrides it.
|
|
274
|
+
*/
|
|
275
|
+
pauseWhenHidden?: boolean;
|
|
276
|
+
}
|
|
277
|
+
/** Default interval refresh for every portlet on a dashboard. */
|
|
278
|
+
export interface DashboardRefreshConfig {
|
|
279
|
+
/** Refetch every this many seconds unless a portlet sets its own interval. */
|
|
280
|
+
intervalSeconds?: number;
|
|
281
|
+
/** Skip refreshes while the browser tab is hidden. */
|
|
282
|
+
pauseWhenHidden?: boolean;
|
|
283
|
+
}
|
|
260
284
|
export interface PortletConfig {
|
|
261
285
|
id: string;
|
|
262
286
|
title: string;
|
|
@@ -276,6 +300,8 @@ export interface PortletConfig {
|
|
|
276
300
|
displayConfig?: ChartDisplayConfig;
|
|
277
301
|
dashboardFilterMapping?: DashboardFilterMapping;
|
|
278
302
|
eagerLoad?: boolean;
|
|
303
|
+
/** Interval refresh for this portlet (overrides `DashboardConfig.refresh`; needs `features.refresh.enabled`) */
|
|
304
|
+
refresh?: PortletRefreshConfig;
|
|
279
305
|
/** @deprecated Use analysisConfig.analysisType instead */
|
|
280
306
|
analysisType?: AnalysisType;
|
|
281
307
|
/** @deprecated Use analysisConfig for funnel mode */
|
|
@@ -353,6 +379,8 @@ export interface DashboardConfig {
|
|
|
353
379
|
colorPalette?: string;
|
|
354
380
|
filters?: DashboardFilter[];
|
|
355
381
|
eagerLoad?: boolean;
|
|
382
|
+
/** Default interval refresh for every portlet (needs `features.refresh.enabled`) */
|
|
383
|
+
refresh?: DashboardRefreshConfig;
|
|
356
384
|
thumbnailData?: string;
|
|
357
385
|
thumbnailUrl?: string;
|
|
358
386
|
}
|
|
@@ -455,6 +483,7 @@ export declare function isMultiQueryConfig(obj: unknown): obj is MultiQueryConfi
|
|
|
455
483
|
export interface CubeQueryOptions {
|
|
456
484
|
skip?: boolean;
|
|
457
485
|
resetResultSetOnChange?: boolean;
|
|
486
|
+
/** Keep the query current by refetching it every 10 seconds (Cube.js `subscribe`). */
|
|
458
487
|
subscribe?: boolean;
|
|
459
488
|
}
|
|
460
489
|
export interface CubeApiOptions {
|
|
@@ -462,6 +491,12 @@ export interface CubeApiOptions {
|
|
|
462
491
|
token?: string;
|
|
463
492
|
headers?: Record<string, string>;
|
|
464
493
|
credentials?: 'include' | 'omit' | 'same-origin';
|
|
494
|
+
/**
|
|
495
|
+
* Floor, in seconds, for how often `CubeClient.subscribe` refetches. It
|
|
496
|
+
* refetches every 10 seconds unless this is larger. (`useCubeQuery`'s
|
|
497
|
+
* `subscribe` is floored by `features.refresh.minIntervalSeconds` instead.)
|
|
498
|
+
*/
|
|
499
|
+
minSubscribeIntervalSeconds?: number;
|
|
465
500
|
}
|
|
466
501
|
/**
|
|
467
502
|
* An unknown member the server rejected, mirroring the server's
|
|
@@ -486,6 +521,8 @@ export interface CubeResultSet {
|
|
|
486
521
|
ttlMs: number;
|
|
487
522
|
ttlRemainingMs: number;
|
|
488
523
|
} | undefined;
|
|
524
|
+
/** When the server sent the response (ISO string). On a cache hit the rows were computed at `cacheInfo().cachedAt`. */
|
|
525
|
+
lastRefreshTime?(): string | undefined;
|
|
489
526
|
/** Rows the query would return without limit/offset — only when `total: true` was asked for. */
|
|
490
527
|
totalCount?(): number | undefined;
|
|
491
528
|
}
|
|
@@ -497,6 +534,12 @@ export interface AnalyticsPortletProps {
|
|
|
497
534
|
dashboardFilters?: DashboardFilter[];
|
|
498
535
|
dashboardFilterMapping?: DashboardFilterMapping;
|
|
499
536
|
eagerLoad?: boolean;
|
|
537
|
+
/**
|
|
538
|
+
* The portlet refreshes on an interval: while scrolled away its queries are
|
|
539
|
+
* disabled, so ticks only mark them stale and it fetches once back in view.
|
|
540
|
+
* Without it a loaded portlet stays live when scrolled away.
|
|
541
|
+
*/
|
|
542
|
+
hasIntervalRefresh?: boolean;
|
|
500
543
|
isVisible?: boolean;
|
|
501
544
|
height?: string | number;
|
|
502
545
|
title?: string;
|
|
@@ -535,6 +578,15 @@ export interface AnalyticsPortletProps {
|
|
|
535
578
|
activeQuery: any;
|
|
536
579
|
};
|
|
537
580
|
}) => void;
|
|
581
|
+
/** Reports when the portlet's rows were computed and whether it is fetching, on every change. */
|
|
582
|
+
onFreshnessChange?: (freshness: PortletFreshness) => void;
|
|
583
|
+
}
|
|
584
|
+
/** Freshness of a portlet's data, as reported by `AnalyticsPortlet`. */
|
|
585
|
+
export interface PortletFreshness {
|
|
586
|
+
/** When the rows were computed on the server (cache time on a hit, else response time). */
|
|
587
|
+
computedAt?: string;
|
|
588
|
+
/** Whether a fetch is in flight. */
|
|
589
|
+
isFetching: boolean;
|
|
538
590
|
}
|
|
539
591
|
/**
|
|
540
592
|
* Host-owned dashboard record fields the library does not store in DashboardConfig.
|
|
@@ -569,9 +621,11 @@ export interface PortletExpandPayload {
|
|
|
569
621
|
}
|
|
570
622
|
/** Imperative handle of `AnalyticsPortlet`. */
|
|
571
623
|
export interface AnalyticsPortletRef {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
624
|
+
/**
|
|
625
|
+
* Refetch the portlet's data. `maxAgeSeconds` accepts a cached server result
|
|
626
|
+
* at most that old; `bustCache: true` is max-age 0.
|
|
627
|
+
*/
|
|
628
|
+
refresh: (options?: MaxAgeOptions) => void;
|
|
575
629
|
/** Returns the current view state of this chart instance. */
|
|
576
630
|
getViewState: () => PortletViewState;
|
|
577
631
|
}
|
|
@@ -676,6 +730,15 @@ export interface DashboardImportExportFeatureConfig {
|
|
|
676
730
|
/** Optional prefix for exported filenames (default: none; the file is named after the dashboard) */
|
|
677
731
|
filenamePrefix?: string;
|
|
678
732
|
}
|
|
733
|
+
/**
|
|
734
|
+
* Opt-in gate for dashboard and portlet interval refresh. Nothing refreshes on
|
|
735
|
+
* an interval unless `enabled` is true, and `manualRefresh` turns it off.
|
|
736
|
+
*/
|
|
737
|
+
export interface RefreshFeatureConfig {
|
|
738
|
+
enabled: boolean;
|
|
739
|
+
/** Floor for every refresh interval, in seconds (default: 5) */
|
|
740
|
+
minIntervalSeconds?: number;
|
|
741
|
+
}
|
|
679
742
|
export interface FeaturesConfig {
|
|
680
743
|
enableAI?: boolean;
|
|
681
744
|
aiEndpoint?: string;
|
|
@@ -694,7 +757,9 @@ export interface FeaturesConfig {
|
|
|
694
757
|
manualRefresh?: boolean;
|
|
695
758
|
xlsExport?: XlsExportFeatureConfig;
|
|
696
759
|
dashboardImportExport?: DashboardImportExportFeatureConfig;
|
|
760
|
+
refresh?: RefreshFeatureConfig;
|
|
697
761
|
portletExpand?: boolean;
|
|
762
|
+
hiddenChartTypes?: ChartType[];
|
|
698
763
|
}
|
|
699
764
|
export interface GridLayout {
|
|
700
765
|
i: string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CubeResultSet, DashboardRefreshConfig, FeaturesConfig, PortletRefreshConfig } from '../types.js';
|
|
2
|
+
/** Floor for any refresh interval when `features.refresh.minIntervalSeconds` is not set. */
|
|
3
|
+
export declare const DEFAULT_MIN_REFRESH_INTERVAL_SECONDS = 5;
|
|
4
|
+
/** A portlet's resolved refresh settings. */
|
|
5
|
+
export interface EffectiveRefresh {
|
|
6
|
+
intervalSeconds: number;
|
|
7
|
+
pauseWhenHidden: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** Whether interval refresh is switched on for dashboards (the opt-in gate). */
|
|
10
|
+
export declare function isRefreshFeatureEnabled(features: FeaturesConfig): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* A portlet's effective refresh: its own setting overrides the dashboard
|
|
13
|
+
* default, and the interval is floored by `minIntervalSeconds`. Undefined when
|
|
14
|
+
* the feature is off, `manualRefresh` is on, or no interval applies.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveEffectiveRefresh(portletRefresh: PortletRefreshConfig | undefined, dashboardRefresh: DashboardRefreshConfig | undefined, features: FeaturesConfig): EffectiveRefresh | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* When a result's rows were computed: the cache's computed time on a hit,
|
|
19
|
+
* otherwise the server's response time.
|
|
20
|
+
*/
|
|
21
|
+
export declare function resultSetComputedAt(resultSet: CubeResultSet | null | undefined): string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* How old a result's rows were when the server sent them: its response time
|
|
24
|
+
* minus the cache's computed time, both on the server's clock, as in the
|
|
25
|
+
* server's own max-age check. 0 for a fresh execution.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resultSetServedAgeMs(resultSet: CubeResultSet | null | undefined): number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The age of rows a query shows now: their age when served plus the time
|
|
30
|
+
* since they arrived (`receivedAtMs`, TanStack's `dataUpdatedAt`). Mixing no
|
|
31
|
+
* server and browser times keeps clock skew out.
|
|
32
|
+
*/
|
|
33
|
+
export declare function shownRowsAgeMs(servedAgeMs: number | undefined, receivedAtMs: number, nowMs?: number): number | undefined;
|
|
34
|
+
/** Stale: the rows are older than two refresh intervals. */
|
|
35
|
+
export declare function isComputedAtStale(computedAt: string | undefined, intervalSeconds: number | undefined, nowMs: number): boolean;
|
|
36
|
+
/** The oldest of several computed-at times (a multi-query portlet is as old as its oldest result). */
|
|
37
|
+
export declare function oldestComputedAt(times: Array<string | undefined>): string | undefined;
|
|
@@ -6,6 +6,29 @@ export interface MultiQueryMetadata {
|
|
|
6
6
|
__queryIndex: number;
|
|
7
7
|
__queryLabel: string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* The data fields of a result, in the order the rows first carry them.
|
|
11
|
+
*
|
|
12
|
+
* Reads every row, not only the first: after a multi-query merge, rows from
|
|
13
|
+
* different queries carry different fields ('concat' appends each query's
|
|
14
|
+
* rows; 'merge' starts a row from whichever query has its key first). Drops
|
|
15
|
+
* the multi-query metadata, which no other chart shows either.
|
|
16
|
+
*
|
|
17
|
+
* @param rows - Result rows, merged or from a single query
|
|
18
|
+
* @returns Field names, without duplicates
|
|
19
|
+
*/
|
|
20
|
+
export declare function getDataColumns(rows: readonly unknown[]): string[];
|
|
21
|
+
/**
|
|
22
|
+
* The query a chart reads when a portlet has several queries: the first query
|
|
23
|
+
* with the measures of every query. Charts use it to order columns, pivot a
|
|
24
|
+
* time dimension and format dates. The AnalysisBuilder preview and the
|
|
25
|
+
* dashboard portlet both use it, so a card renders the same in both places.
|
|
26
|
+
*
|
|
27
|
+
* @param queries - The queries of the portlet, in order
|
|
28
|
+
* @returns The only query when there is one, else the combined query;
|
|
29
|
+
* undefined when there is none
|
|
30
|
+
*/
|
|
31
|
+
export declare function combineQueriesForChart(queries: readonly CubeQuery[]): CubeQuery | undefined;
|
|
9
32
|
/**
|
|
10
33
|
* Check if data contains multi-query metadata
|
|
11
34
|
*/
|
|
@@ -238,11 +238,13 @@ export declare class SemanticLayerCompiler {
|
|
|
238
238
|
/**
|
|
239
239
|
* Unified query execution method that handles both single and multi-cube queries
|
|
240
240
|
* @param options.skipCache - Skip cache lookup (but still cache the fresh result)
|
|
241
|
+
* @param options.maxAgeMs - Oldest cached result to accept; older entries are a miss
|
|
241
242
|
*/
|
|
242
243
|
execute(query: SemanticQuery, securityContext: SecurityContext, options?: ExecutionOptions): Promise<QueryResult>;
|
|
243
244
|
/**
|
|
244
245
|
* Execute a multi-cube query
|
|
245
246
|
* @param options.skipCache - Skip cache lookup (but still cache the fresh result)
|
|
247
|
+
* @param options.maxAgeMs - Oldest cached result to accept; older entries are a miss
|
|
246
248
|
*/
|
|
247
249
|
executeMultiCubeQuery(query: SemanticQuery, securityContext: SecurityContext, options?: ExecutionOptions): Promise<QueryResult>;
|
|
248
250
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SecurityContext, SemanticQuery, QueryResult, CacheConfig } from '../types/index.js';
|
|
1
|
+
import { SecurityContext, SemanticQuery, QueryResult, CacheConfig, ExecutionOptions } from '../types/index.js';
|
|
2
2
|
export declare class QueryResultCache {
|
|
3
3
|
private readonly cacheConfig?;
|
|
4
4
|
constructor(cacheConfig?: CacheConfig | undefined);
|
|
@@ -11,8 +11,14 @@ export declare class QueryResultCache {
|
|
|
11
11
|
* Look up a cached result. Returns the cached value (with cache metadata
|
|
12
12
|
* attached) on a hit, or undefined on miss / bypass / no-cache. Emits
|
|
13
13
|
* hit/miss events; lookup errors are non-fatal.
|
|
14
|
+
*
|
|
15
|
+
* `options.maxAgeMs` is the oldest entry the caller accepts: an older entry
|
|
16
|
+
* (or one whose age is unknown) counts as a miss. `skipCache` is an alias for
|
|
17
|
+
* max-age 0, which skips the read entirely. A `maxAgeMs` that is not a finite
|
|
18
|
+
* non-negative number is ignored. Callers still store the fresh result in
|
|
19
|
+
* every case.
|
|
14
20
|
*/
|
|
15
|
-
lookup(cacheKey: string | undefined, skipCache
|
|
21
|
+
lookup(cacheKey: string | undefined, options?: Pick<ExecutionOptions, 'skipCache' | 'maxAgeMs'>): Promise<QueryResult | undefined>;
|
|
16
22
|
/**
|
|
17
23
|
* Store a fresh result under the given key. No-ops when caching is disabled
|
|
18
24
|
* or the key is undefined. Store errors are non-fatal.
|
|
@@ -30,6 +30,7 @@ export declare class QueryExecutor {
|
|
|
30
30
|
/**
|
|
31
31
|
* Unified query execution method that handles both single and multi-cube queries
|
|
32
32
|
* @param options.skipCache - Skip cache lookup (but still cache the fresh result)
|
|
33
|
+
* @param options.maxAgeMs - Oldest cached result to accept; older entries are a miss
|
|
33
34
|
*/
|
|
34
35
|
execute(cubes: Map<string, Cube>, query: SemanticQuery, securityContext: SecurityContext, options?: ExecutionOptions): Promise<QueryResult>;
|
|
35
36
|
/**
|
|
@@ -16,6 +16,8 @@ export interface DownstreamJoinState {
|
|
|
16
16
|
sourceColumnObj?: any;
|
|
17
17
|
targetColumnObj?: any;
|
|
18
18
|
}>;
|
|
19
|
+
/** See DownstreamJoinKeyInfo.throughJunction */
|
|
20
|
+
throughJunction?: boolean;
|
|
19
21
|
}
|
|
20
22
|
export interface CTEBuildState {
|
|
21
23
|
preBuiltFilterMap: Map<string, SQL[]>;
|
|
@@ -88,8 +88,19 @@ export interface SqlResult {
|
|
|
88
88
|
* Options for query execution
|
|
89
89
|
*/
|
|
90
90
|
export interface ExecutionOptions {
|
|
91
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Skip the cache lookup (but still cache the result for future requests).
|
|
93
|
+
* Alias for `maxAgeMs: 0`; when both are set, the smaller max-age wins.
|
|
94
|
+
*/
|
|
92
95
|
skipCache?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Max-age: the oldest cached result this request will accept, in milliseconds.
|
|
98
|
+
* A cached entry older than this counts as a miss, so the query runs and the
|
|
99
|
+
* fresh result is written back. `0` skips the read and still writes. Values
|
|
100
|
+
* that are not finite and non-negative are ignored. Has no effect when
|
|
101
|
+
* caching is disabled or no cache provider is configured.
|
|
102
|
+
*/
|
|
103
|
+
maxAgeMs?: number;
|
|
93
104
|
/**
|
|
94
105
|
* Identifies the cube definitions that produced the result, as
|
|
95
106
|
* `setId:baseGeneration.setGeneration`. Appended unconditionally to the query
|
|
@@ -515,6 +515,13 @@ export interface DownstreamJoinKeyInfo {
|
|
|
515
515
|
targetCubeName: string;
|
|
516
516
|
/** Join keys from CTE cube to downstream cube */
|
|
517
517
|
joinKeys: JoinKeyInfo[];
|
|
518
|
+
/**
|
|
519
|
+
* True when the CTE cube reaches the downstream cube through its own
|
|
520
|
+
* belongsToMany junction. The join keys then point at that junction table,
|
|
521
|
+
* not at the downstream cube, so they cannot replace a join to the
|
|
522
|
+
* downstream cube.
|
|
523
|
+
*/
|
|
524
|
+
throughJunction?: boolean;
|
|
518
525
|
}
|
|
519
526
|
/**
|
|
520
527
|
* Planned join entry used by runtime physical builders.
|
|
@@ -90,11 +90,11 @@ export declare function loadAllChartConfigs(): Promise<ChartConfigRegistry>;
|
|
|
90
90
|
export declare function clearChartConfigCache(): void;
|
|
91
91
|
/**
|
|
92
92
|
* Register a custom chart config directly into the cache.
|
|
93
|
-
* Used by the chart plugin system.
|
|
93
|
+
* Used by the chart plugin system. Mounted `useChartConfig` hooks update.
|
|
94
94
|
*/
|
|
95
95
|
export declare function registerConfigToCache(type: string, config: ChartTypeConfig): void;
|
|
96
96
|
/**
|
|
97
97
|
* Remove a custom chart config from the cache.
|
|
98
|
-
* Used by the chart plugin system.
|
|
98
|
+
* Used by the chart plugin system. Mounted `useChartConfig` hooks update.
|
|
99
99
|
*/
|
|
100
100
|
export declare function unregisterConfigFromCache(type: string): void;
|
package/dist/client/charts.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as l, l as u, s as d, u as f } from "./chunks/chart-activity-grid-
|
|
3
|
-
import { t as p } from "./chunks/chart-funnel-
|
|
4
|
-
import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "./chunks/charts-loader-
|
|
5
|
-
import { t as x } from "./chunks/chart-area-
|
|
1
|
+
import { Ft as e, It as t, Lt as n, Mt as r, Nt as i, Pt as a, Rt as o, jt as s, t as c } from "./chunks/chart-data-table-uJG1V-be.js";
|
|
2
|
+
import { d as l, l as u, s as d, u as f } from "./chunks/chart-activity-grid-DeDPSs12.js";
|
|
3
|
+
import { t as p } from "./chunks/chart-funnel-BtUexI1t.js";
|
|
4
|
+
import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "./chunks/charts-loader-3N-LqjLk.js";
|
|
5
|
+
import { t as x } from "./chunks/chart-area-WyrVYze7.js";
|
|
6
6
|
import { i as S } from "./chunks/utils-CToHkuhU.js";
|
|
7
|
-
import { t as C } from "./chunks/chart-bar-
|
|
8
|
-
import { t as w } from "./chunks/chart-line-
|
|
9
|
-
import { t as T } from "./chunks/chart-pie-
|
|
10
|
-
import { t as E } from "./chunks/chart-scatter-
|
|
11
|
-
import { t as D } from "./chunks/chart-radar-
|
|
12
|
-
import { t as O } from "./chunks/chart-radial-bar-
|
|
13
|
-
import { t as k } from "./chunks/chart-tree-map-
|
|
14
|
-
export { d as CHART_COLORS, u as CHART_MARGINS,
|
|
7
|
+
import { t as C } from "./chunks/chart-bar-wGHC1Hfo.js";
|
|
8
|
+
import { t as w } from "./chunks/chart-line-D_yFQDze.js";
|
|
9
|
+
import { t as T } from "./chunks/chart-pie-DLrT81CL.js";
|
|
10
|
+
import { t as E } from "./chunks/chart-scatter-CCGL2IEP.js";
|
|
11
|
+
import { t as D } from "./chunks/chart-radar-CcXG6k6o.js";
|
|
12
|
+
import { t as O } from "./chunks/chart-radial-bar-DYn5FLrG.js";
|
|
13
|
+
import { t as k } from "./chunks/chart-tree-map-DOWeXCn_.js";
|
|
14
|
+
export { d as CHART_COLORS, u as CHART_MARGINS, c as DataTable, p as FunnelChart, b as LazyChart, f as NEGATIVE_COLOR, l as POSITIVE_COLOR, x as RechartsAreaChart, C as RechartsBarChart, w as RechartsLineChart, T as RechartsPieChart, D as RechartsRadarChart, O as RechartsRadialBarChart, E as RechartsScatterChart, k as RechartsTreeMapChart, s as clearChartConfigCache, S as formatChartData, g as getAvailableChartTypes, r as getChartConfigAsync, i as getChartConfigSync, v as getUnavailableChartTypes, a as isChartConfigLoaded, h as isChartTypeAvailable, m as isValidChartType, e as loadAllChartConfigs, _ as preloadChart, t as preloadChartConfig, n as preloadChartConfigs, y as preloadCharts, o as useChartConfig };
|