drizzle-cube 0.5.4 → 0.5.5
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 +4 -4
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +4 -4
- package/dist/adapters/{handler-CNn3q29F.cjs → handler-C1Qs8JMY.cjs} +3 -3
- package/dist/adapters/{handler-_TKfigrZ.js → handler-CoaNnZyf.js} +122 -1
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +4 -4
- package/dist/adapters/{locale-Dl_3R6hP.cjs → locale-CTuvUGBs.cjs} +1 -1
- package/dist/adapters/{locale-BQQrZYhz.js → locale-wMBdZ3Ks.js} +1 -1
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +8 -3
- package/dist/adapters/mcp-transport-B_HoB1HQ.js +579 -0
- package/dist/adapters/mcp-transport-bQzyrBPI.cjs +40 -0
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +4 -4
- package/dist/adapters/utils-CIRA5_JO.cjs +128 -0
- package/dist/adapters/{utils-DG8ti3FT.js → utils-hC7Z8V39.js} +19 -5
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.d.ts +6 -1
- package/dist/adapters/utils.js +1 -1
- package/dist/client/charts/chartConfigs.d.ts +34 -0
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{DashboardEditModal-BBcB0E2g.js → DashboardEditModal-DayTXEH0.js} +10 -10
- package/dist/client/chunks/{DashboardEditModal-BBcB0E2g.js.map → DashboardEditModal-DayTXEH0.js.map} +1 -1
- package/dist/client/chunks/{FieldSearchModal-CisOov-_.js → FieldSearchModal-B7Mr8UNT.js} +4 -4
- package/dist/client/chunks/{FieldSearchModal-CisOov-_.js.map → FieldSearchModal-B7Mr8UNT.js.map} +1 -1
- package/dist/client/chunks/KpiDelta-C-hZ1x01.js +2 -0
- package/dist/client/chunks/KpiNumber-Beo8CK0a.js +2 -0
- package/dist/client/chunks/KpiText-ytYiRTRO.js +2 -0
- package/dist/client/chunks/{RetentionCombinedChart-DiyZwiPv.js → RetentionCombinedChart-D3dRmoos.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-DiyZwiPv.js.map → RetentionCombinedChart-D3dRmoos.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-usGF7BCo.js → RetentionHeatmap-DHPnn0qH.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-usGF7BCo.js.map → RetentionHeatmap-DHPnn0qH.js.map} +1 -1
- package/dist/client/chunks/SchemaVisualization-DbYZBTyi.js +2 -0
- package/dist/client/chunks/SchemaVisualizationLazy-BGo-1S3q.js +2 -0
- package/dist/client/chunks/{af-ZA-xDmO5F0s.js → af-ZA-BtTNqvHF.js} +8 -3
- package/dist/client/chunks/af-ZA-BtTNqvHF.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-0o1W-k3K.js → analysis-builder-lcGl099d.js} +245 -255
- package/dist/client/chunks/analysis-builder-lcGl099d.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-Cz4KAlIC.js → analysis-builder-shared-6BRZcEnu.js} +391 -459
- package/dist/client/chunks/analysis-builder-shared-6BRZcEnu.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-VFFm85hC.js → chart-activity-grid-BnY-jaoa.js} +10 -5
- package/dist/client/chunks/chart-activity-grid-BnY-jaoa.js.map +1 -0
- package/dist/client/chunks/{chart-area-CwwIHTmK.js → chart-area-G3OvLLK4.js} +2 -2
- package/dist/client/chunks/{chart-area-CwwIHTmK.js.map → chart-area-G3OvLLK4.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-Bmny922L.js → chart-bar-MLIWiLrc.js} +3 -3
- package/dist/client/chunks/{chart-bar-Bmny922L.js.map → chart-bar-MLIWiLrc.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-DM7GwtCV.js → chart-box-plot-c2XqKTWq.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-DM7GwtCV.js.map → chart-box-plot-c2XqKTWq.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-DJOq4IpT.js → chart-bubble-CAGvnYb1.js} +2 -2
- package/dist/client/chunks/{chart-bubble-DJOq4IpT.js.map → chart-bubble-CAGvnYb1.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-C2nzVCv1.js → chart-candlestick-oSPk-KQp.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-C2nzVCv1.js.map → chart-candlestick-oSPk-KQp.js.map} +1 -1
- package/dist/client/chunks/{chart-config-activity-grid-C-EkgYoa.js → chart-config-activity-grid-Dssynumw.js} +8 -1
- package/dist/client/chunks/chart-config-activity-grid-Dssynumw.js.map +1 -0
- package/dist/client/chunks/{chart-config-area-CMZpbIah.js → chart-config-area-40fbx2Ah.js} +8 -1
- package/dist/client/chunks/chart-config-area-40fbx2Ah.js.map +1 -0
- package/dist/client/chunks/{chart-config-bar-B8_V4YLg.js → chart-config-bar-CUWHwOPN.js} +8 -1
- package/dist/client/chunks/chart-config-bar-CUWHwOPN.js.map +1 -0
- package/dist/client/chunks/{chart-config-box-plot-Dwj7sEbU.js → chart-config-box-plot-D3Y0ien3.js} +8 -1
- package/dist/client/chunks/chart-config-box-plot-D3Y0ien3.js.map +1 -0
- package/dist/client/chunks/{chart-config-bubble-B0w0ZVp4.js → chart-config-bubble-BXSTKLn-.js} +8 -1
- package/dist/client/chunks/chart-config-bubble-BXSTKLn-.js.map +1 -0
- package/dist/client/chunks/{chart-config-candlestick-Bvo3zeIn.js → chart-config-candlestick-DEuD2Av0.js} +8 -1
- package/dist/client/chunks/chart-config-candlestick-DEuD2Av0.js.map +1 -0
- package/dist/client/chunks/{chart-config-gauge-C5ZiyZy7.js → chart-config-gauge-CCva3FfA.js} +5 -1
- package/dist/client/chunks/chart-config-gauge-CCva3FfA.js.map +1 -0
- package/dist/client/chunks/{chart-config-heat-map-Cv8qNnVP.js → chart-config-heat-map-Db4Z8UUn.js} +8 -1
- package/dist/client/chunks/chart-config-heat-map-Db4Z8UUn.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-delta-BraHQc2E.js → chart-config-kpi-delta-BfLf3iyi.js} +8 -1
- package/dist/client/chunks/chart-config-kpi-delta-BfLf3iyi.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-number-CeCkx7mC.js → chart-config-kpi-number-DWKFc9PX.js} +5 -1
- package/dist/client/chunks/chart-config-kpi-number-DWKFc9PX.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-text-CImM3SvH.js → chart-config-kpi-text-Dr4OG6cY.js} +5 -1
- package/dist/client/chunks/chart-config-kpi-text-Dr4OG6cY.js.map +1 -0
- package/dist/client/chunks/{chart-config-line-BVKapAQK.js → chart-config-line-DGYYdDw9.js} +8 -1
- package/dist/client/chunks/chart-config-line-DGYYdDw9.js.map +1 -0
- package/dist/client/chunks/{chart-config-measure-profile-KTVV1gO3.js → chart-config-measure-profile-sB3n_Azv.js} +5 -1
- package/dist/client/chunks/chart-config-measure-profile-sB3n_Azv.js.map +1 -0
- package/dist/client/chunks/{chart-config-pie-BZxVl25X.js → chart-config-pie-kte7OXa9.js} +8 -1
- package/dist/client/chunks/chart-config-pie-kte7OXa9.js.map +1 -0
- package/dist/client/chunks/{chart-config-radar-B7FByX3t.js → chart-config-radar-C9IxP5tc.js} +8 -1
- package/dist/client/chunks/chart-config-radar-C9IxP5tc.js.map +1 -0
- package/dist/client/chunks/{chart-config-radial-bar-UfW_3yyX.js → chart-config-radial-bar-C3WJ8Uhm.js} +8 -1
- package/dist/client/chunks/chart-config-radial-bar-C3WJ8Uhm.js.map +1 -0
- package/dist/client/chunks/{chart-config-scatter-BVVJuOnt.js → chart-config-scatter-BVN_29G5.js} +8 -1
- package/dist/client/chunks/chart-config-scatter-BVN_29G5.js.map +1 -0
- package/dist/client/chunks/{chart-config-tree-map-IHp97OyV.js → chart-config-tree-map-meeJEDi8.js} +8 -1
- package/dist/client/chunks/chart-config-tree-map-meeJEDi8.js.map +1 -0
- package/dist/client/chunks/{chart-config-waterfall-BdqG1V-x.js → chart-config-waterfall-CaPeWZMl.js} +8 -1
- package/dist/client/chunks/chart-config-waterfall-CaPeWZMl.js.map +1 -0
- package/dist/client/chunks/{chart-data-table-zZtwLf55.js → chart-data-table-BRXHT2H-.js} +65 -65
- package/dist/client/chunks/{chart-data-table-zZtwLf55.js.map → chart-data-table-BRXHT2H-.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-COTJy8BP.js → chart-funnel-aQ7G_CqU.js} +2 -2
- package/dist/client/chunks/{chart-funnel-COTJy8BP.js.map → chart-funnel-aQ7G_CqU.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-C8lIneI0.js → chart-gauge-DqbDKr9E.js} +2 -2
- package/dist/client/chunks/{chart-gauge-C8lIneI0.js.map → chart-gauge-DqbDKr9E.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-BJXt3RMt.js → chart-heat-map--6QnhUM8.js} +2 -2
- package/dist/client/chunks/{chart-heat-map-BJXt3RMt.js.map → chart-heat-map--6QnhUM8.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-DHkNqufb.js → chart-kpi-delta-DOSpRjfs.js} +3 -3
- package/dist/client/chunks/{chart-kpi-delta-DHkNqufb.js.map → chart-kpi-delta-DOSpRjfs.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-BrXw7m-S.js → chart-kpi-number-BcMjeKm8.js} +5 -5
- package/dist/client/chunks/{chart-kpi-number-BrXw7m-S.js.map → chart-kpi-number-BcMjeKm8.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-D0plngLV.js → chart-kpi-text-BI9isc2i.js} +3 -3
- package/dist/client/chunks/{chart-kpi-text-D0plngLV.js.map → chart-kpi-text-BI9isc2i.js.map} +1 -1
- package/dist/client/chunks/{chart-line-DKvW32U-.js → chart-line-C0IHQteu.js} +3 -3
- package/dist/client/chunks/{chart-line-DKvW32U-.js.map → chart-line-C0IHQteu.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-CJU2hUq3.js → chart-markdown-BmgSMqPg.js} +2 -2
- package/dist/client/chunks/{chart-markdown-CJU2hUq3.js.map → chart-markdown-BmgSMqPg.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-DNT_tbh4.js → chart-measure-profile-DEyLW1fd.js} +3 -3
- package/dist/client/chunks/{chart-measure-profile-DNT_tbh4.js.map → chart-measure-profile-DEyLW1fd.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CzYnncO-.js → chart-pie-DSIekr7p.js} +3 -3
- package/dist/client/chunks/{chart-pie-CzYnncO-.js.map → chart-pie-DSIekr7p.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-8iAt3QZl.js → chart-radar-SGl62hK8.js} +3 -3
- package/dist/client/chunks/{chart-radar-8iAt3QZl.js.map → chart-radar-SGl62hK8.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-CJbG7RIe.js → chart-radial-bar-C42EykOa.js} +3 -3
- package/dist/client/chunks/{chart-radial-bar-CJbG7RIe.js.map → chart-radial-bar-C42EykOa.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-C-wLBUmb.js → chart-sankey-DguImp0W.js} +2 -2
- package/dist/client/chunks/{chart-sankey-C-wLBUmb.js.map → chart-sankey-DguImp0W.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-NMjD1lbW.js → chart-scatter-Doeox4OP.js} +3 -3
- package/dist/client/chunks/{chart-scatter-NMjD1lbW.js.map → chart-scatter-Doeox4OP.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-HtJ-LJ7n.js → chart-sunburst-F3tgCpL-.js} +3 -3
- package/dist/client/chunks/{chart-sunburst-HtJ-LJ7n.js.map → chart-sunburst-F3tgCpL-.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-CetaLMt8.js → chart-tree-map-DvuSCIc8.js} +3 -3
- package/dist/client/chunks/{chart-tree-map-CetaLMt8.js.map → chart-tree-map-DvuSCIc8.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-ontNp1Sd.js → chart-waterfall-Be5duXlO.js} +3 -3
- package/dist/client/chunks/{chart-waterfall-ontNp1Sd.js.map → chart-waterfall-Be5duXlO.js.map} +1 -1
- package/dist/client/chunks/{charts-core-B5UXUg6_.js → charts-core-XlOwoP_r.js} +2 -2
- package/dist/client/chunks/{charts-core-B5UXUg6_.js.map → charts-core-XlOwoP_r.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-DDf0OdfW.js → nl-NL-BLDeSy_P.js} +8 -3
- package/dist/client/chunks/nl-NL-BLDeSy_P.js.map +1 -0
- package/dist/client/chunks/{schema-visualization-cnB2xZxn.js → schema-visualization-CM5ikSWB.js} +4 -4
- package/dist/client/chunks/{schema-visualization-cnB2xZxn.js.map → schema-visualization-CM5ikSWB.js.map} +1 -1
- package/dist/client/chunks/{useDebounce-BOBSvhHy.js → useDebounce-NEZQbfxN.js} +4 -4
- package/dist/client/chunks/{useDebounce-BOBSvhHy.js.map → useDebounce-NEZQbfxN.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-B_Pi4eXW.js → useExplainAI-DivfI0dW.js} +4 -4
- package/dist/client/chunks/{useExplainAI-B_Pi4eXW.js.map → useExplainAI-DivfI0dW.js.map} +1 -1
- package/dist/client/chunks/{utils-BIuqPQuJ.js → utils-Ctl_cVNR.js} +2 -2
- package/dist/client/chunks/{utils-BIuqPQuJ.js.map → utils-Ctl_cVNR.js.map} +1 -1
- package/dist/client/chunks/{vendor-BxLCTfvm.js → vendor-BcLQ6iVZ.js} +2 -2
- package/dist/client/chunks/{vendor-BxLCTfvm.js.map → vendor-BcLQ6iVZ.js.map} +1 -1
- package/dist/client/components/AnalysisBuilder/types.d.ts +2 -2
- package/dist/client/components.js +3 -3
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +1 -1
- package/dist/client/index.js +14 -14
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client/shared/chartDefaults.d.ts +5 -10
- package/dist/client/utils.js +5 -5
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +5 -5
- package/dist/server/index.cjs +4 -4
- package/dist/server/index.js +128 -2
- package/package.json +2 -2
- package/dist/adapters/mcp-transport-CkyawtUT.cjs +0 -40
- package/dist/adapters/mcp-transport-DSbd6M_u.js +0 -586
- package/dist/adapters/utils-DrWvXf0G.cjs +0 -128
- package/dist/client/chunks/KpiDelta-D09hA_UJ.js +0 -2
- package/dist/client/chunks/KpiNumber-B7F9F9fC.js +0 -2
- package/dist/client/chunks/KpiText-C3ZXOF8b.js +0 -2
- package/dist/client/chunks/SchemaVisualization-DP4k1fPp.js +0 -2
- package/dist/client/chunks/SchemaVisualizationLazy-Brqv_PY9.js +0 -2
- package/dist/client/chunks/af-ZA-xDmO5F0s.js.map +0 -1
- package/dist/client/chunks/analysis-builder-0o1W-k3K.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-Cz4KAlIC.js.map +0 -1
- package/dist/client/chunks/chart-activity-grid-VFFm85hC.js.map +0 -1
- package/dist/client/chunks/chart-config-activity-grid-C-EkgYoa.js.map +0 -1
- package/dist/client/chunks/chart-config-area-CMZpbIah.js.map +0 -1
- package/dist/client/chunks/chart-config-bar-B8_V4YLg.js.map +0 -1
- package/dist/client/chunks/chart-config-box-plot-Dwj7sEbU.js.map +0 -1
- package/dist/client/chunks/chart-config-bubble-B0w0ZVp4.js.map +0 -1
- package/dist/client/chunks/chart-config-candlestick-Bvo3zeIn.js.map +0 -1
- package/dist/client/chunks/chart-config-gauge-C5ZiyZy7.js.map +0 -1
- package/dist/client/chunks/chart-config-heat-map-Cv8qNnVP.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-delta-BraHQc2E.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-number-CeCkx7mC.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-text-CImM3SvH.js.map +0 -1
- package/dist/client/chunks/chart-config-line-BVKapAQK.js.map +0 -1
- package/dist/client/chunks/chart-config-measure-profile-KTVV1gO3.js.map +0 -1
- package/dist/client/chunks/chart-config-pie-BZxVl25X.js.map +0 -1
- package/dist/client/chunks/chart-config-radar-B7FByX3t.js.map +0 -1
- package/dist/client/chunks/chart-config-radial-bar-UfW_3yyX.js.map +0 -1
- package/dist/client/chunks/chart-config-scatter-BVVJuOnt.js.map +0 -1
- package/dist/client/chunks/chart-config-tree-map-IHp97OyV.js.map +0 -1
- package/dist/client/chunks/chart-config-waterfall-BdqG1V-x.js.map +0 -1
- package/dist/client/chunks/nl-NL-DDf0OdfW.js.map +0 -1
|
@@ -45,10 +45,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
45
45
|
"analysis.tabs.query": "Query",
|
|
46
46
|
"analysis.tabs.chart": "Chart",
|
|
47
47
|
"analysis.tabs.chartTitle": "Chart configuration",
|
|
48
|
-
"analysis.tabs.chartDisabled": "Add metrics to configure chart",
|
|
49
48
|
"analysis.tabs.display": "Display",
|
|
50
49
|
"analysis.tabs.displayTitle": "Display options",
|
|
51
|
-
"analysis.tabs.displayDisabled": "Add metrics to configure display",
|
|
52
50
|
"analysis.multiQuery.removeQuery": "Remove query",
|
|
53
51
|
"analysis.multiQuery.addQuery": "Add new query",
|
|
54
52
|
"analysis.multiQuery.addAnother": "Add another query",
|
|
@@ -955,6 +953,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
955
953
|
"queryAnalysis.cubesInvolved": "Cubes involved:",
|
|
956
954
|
"common.actions.copied": "Copied",
|
|
957
955
|
"common.actions.copyToClipboard": "Copy to clipboard",
|
|
956
|
+
"chart.availability.requiresMeasure": "Requires at least 1 measure",
|
|
957
|
+
"chart.availability.requiresTwoMeasures": "Requires at least 2 measures",
|
|
958
|
+
"chart.availability.requiresDimension": "Requires at least 1 dimension",
|
|
959
|
+
"chart.availability.requiresTwoDimensions": "Requires at least 2 dimensions",
|
|
960
|
+
"chart.availability.requiresTimeDimension": "Requires a time dimension",
|
|
961
|
+
"chart.availability.scatter": "Requires 2 measures, or 1 measure plus 1 dimension",
|
|
962
|
+
"chart.availability.bubble": "Requires at least 2 measures and 1 dimension",
|
|
958
963
|
"chart.runtime.noData": "No data available",
|
|
959
964
|
"chart.runtime.noDataHint.bar": "No data points to display in bar chart",
|
|
960
965
|
"chart.runtime.noDataHint.line": "No data points to display in line chart",
|
|
@@ -7343,9 +7348,18 @@ async function rs(e, t) {
|
|
|
7343
7348
|
async function is(e, t) {
|
|
7344
7349
|
return Eo(e.getMetadata(), t.naturalLanguage, t.cube);
|
|
7345
7350
|
}
|
|
7346
|
-
async function as(e, t) {
|
|
7347
|
-
let
|
|
7348
|
-
|
|
7351
|
+
async function as(e, t, n) {
|
|
7352
|
+
let r = e.getMetadata(), i = await Mo(t.query, r);
|
|
7353
|
+
if (i.isValid && n) try {
|
|
7354
|
+
let r = os(i.correctedQuery ?? t.query), a = await e.dryRun(r, n);
|
|
7355
|
+
return {
|
|
7356
|
+
...i,
|
|
7357
|
+
sql: a
|
|
7358
|
+
};
|
|
7359
|
+
} catch {
|
|
7360
|
+
return i;
|
|
7361
|
+
}
|
|
7362
|
+
return i;
|
|
7349
7363
|
}
|
|
7350
7364
|
function $(e) {
|
|
7351
7365
|
let t = e.split(".");
|
package/dist/adapters/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./utils-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./utils-CIRA5_JO.cjs`);exports.buildTransformedQuery=e.t,exports.calculateQueryComplexity=e.n,exports.formatCubeResponse=e.r,exports.formatErrorResponse=e.i,exports.formatMetaResponse=e.a,exports.formatSqlResponse=e.o,exports.formatSqlString=e.s,exports.generateRequestId=e.c,exports.getDatabaseType=e.l,exports.handleBatchRequest=e.u,exports.handleDiscover=e.d,exports.handleDryRun=e.f,exports.handleLoad=e.p,exports.handleSuggest=e.m,exports.handleValidate=e.h,exports.normalizeQueryFields=e.g;
|
package/dist/adapters/utils.d.ts
CHANGED
|
@@ -401,7 +401,12 @@ export declare function handleSuggest(semanticLayer: SemanticLayerCompiler, body
|
|
|
401
401
|
/**
|
|
402
402
|
* Handle /validate endpoint - validate query with corrections
|
|
403
403
|
*/
|
|
404
|
-
export declare function handleValidate(semanticLayer: SemanticLayerCompiler, body: ValidateRequest): Promise<AIValidationResult
|
|
404
|
+
export declare function handleValidate(semanticLayer: SemanticLayerCompiler, body: ValidateRequest, securityContext?: SecurityContext): Promise<AIValidationResult & {
|
|
405
|
+
sql?: {
|
|
406
|
+
sql: string;
|
|
407
|
+
params?: any[];
|
|
408
|
+
};
|
|
409
|
+
}>;
|
|
405
410
|
/**
|
|
406
411
|
* Normalize AI-generated query fields before validation/execution.
|
|
407
412
|
* Fixes common LLM mistakes:
|
package/dist/adapters/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./utils-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./utils-hC7Z8V39.js";
|
|
2
2
|
export { m as buildTransformedQuery, l as calculateQueryComplexity, f as formatCubeResponse, o as formatErrorResponse, e as formatMetaResponse, u as formatSqlResponse, p as formatSqlString, t as generateRequestId, s as getDatabaseType, h as handleBatchRequest, n as handleDiscover, r as handleDryRun, d as handleLoad, c as handleSuggest, a as handleValidate, i as normalizeQueryFields };
|
|
@@ -47,6 +47,35 @@ export interface DisplayOptionConfig {
|
|
|
47
47
|
/** Step value for number inputs */
|
|
48
48
|
step?: number;
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Whether a chart type can be rendered with the current query shape.
|
|
52
|
+
* Each chart's .config.ts declares its own `isAvailable` to keep requirements
|
|
53
|
+
* co-located with the chart itself (rather than in a central switch).
|
|
54
|
+
*/
|
|
55
|
+
export interface ChartAvailability {
|
|
56
|
+
/** Whether the chart type can be used with the current selections */
|
|
57
|
+
available: boolean;
|
|
58
|
+
/** Translation key explaining why the chart is unavailable (for tooltip) */
|
|
59
|
+
reason?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Snapshot of the current query shape passed to each chart's `isAvailable`.
|
|
63
|
+
*/
|
|
64
|
+
export interface ChartAvailabilityContext {
|
|
65
|
+
/** Number of measures selected */
|
|
66
|
+
measureCount: number;
|
|
67
|
+
/**
|
|
68
|
+
* Number of dimension-like breakdowns (regular dimensions + time dimensions).
|
|
69
|
+
* A time dimension can serve any role a regular dimension does (categories,
|
|
70
|
+
* axes, heatmap rows/columns, pie slices, etc.), so they are counted together.
|
|
71
|
+
*/
|
|
72
|
+
dimensionCount: number;
|
|
73
|
+
/**
|
|
74
|
+
* Number of time dimensions specifically. Only needed by charts that *require*
|
|
75
|
+
* a time dimension (e.g. activityGrid).
|
|
76
|
+
*/
|
|
77
|
+
timeDimensionCount: number;
|
|
78
|
+
}
|
|
50
79
|
/**
|
|
51
80
|
* Configuration for which elements in a chart support clicking (for drill-down)
|
|
52
81
|
*/
|
|
@@ -91,6 +120,11 @@ export interface ChartTypeConfig {
|
|
|
91
120
|
skipQuery?: boolean;
|
|
92
121
|
/** Configuration for which elements support clicking (for drill-down) */
|
|
93
122
|
clickableElements?: ClickableElementsConfig;
|
|
123
|
+
/**
|
|
124
|
+
* Whether this chart type can render with the given query shape.
|
|
125
|
+
* Omit to mean "always available".
|
|
126
|
+
*/
|
|
127
|
+
isAvailable?: (ctx: ChartAvailabilityContext) => ChartAvailability;
|
|
94
128
|
}
|
|
95
129
|
/**
|
|
96
130
|
* Registry of all chart type configurations
|
package/dist/client/charts.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as e, D as t, E as n, S as r, T as i, _ as a, b as o, g as s, h as c, m as l, p as u, t as d, v as f, w as p, x as m, y as h } from "./chunks/chart-data-table-
|
|
2
|
-
import { t as g } from "./chunks/chart-funnel-
|
|
3
|
-
import { a as _, i as v, n as y, o as b } from "./chunks/chart-activity-grid-
|
|
4
|
-
import { t as x } from "./chunks/chart-area-
|
|
5
|
-
import { i as S } from "./chunks/utils-
|
|
6
|
-
import { t as C } from "./chunks/chart-line-
|
|
7
|
-
import { t as w } from "./chunks/chart-bar-
|
|
8
|
-
import { t as T } from "./chunks/chart-pie-
|
|
9
|
-
import { t as E } from "./chunks/chart-scatter-
|
|
10
|
-
import { t as D } from "./chunks/chart-radar-
|
|
11
|
-
import { t as O } from "./chunks/chart-radial-bar-
|
|
12
|
-
import { t as k } from "./chunks/chart-tree-map-
|
|
1
|
+
import { C as e, D as t, E as n, S as r, T as i, _ as a, b as o, g as s, h as c, m as l, p as u, t as d, v as f, w as p, x as m, y as h } from "./chunks/chart-data-table-BRXHT2H-.js";
|
|
2
|
+
import { t as g } from "./chunks/chart-funnel-aQ7G_CqU.js";
|
|
3
|
+
import { a as _, i as v, n as y, o as b } from "./chunks/chart-activity-grid-BnY-jaoa.js";
|
|
4
|
+
import { t as x } from "./chunks/chart-area-G3OvLLK4.js";
|
|
5
|
+
import { i as S } from "./chunks/utils-Ctl_cVNR.js";
|
|
6
|
+
import { t as C } from "./chunks/chart-line-C0IHQteu.js";
|
|
7
|
+
import { t as w } from "./chunks/chart-bar-MLIWiLrc.js";
|
|
8
|
+
import { t as T } from "./chunks/chart-pie-DSIekr7p.js";
|
|
9
|
+
import { t as E } from "./chunks/chart-scatter-Doeox4OP.js";
|
|
10
|
+
import { t as D } from "./chunks/chart-radar-SGl62hK8.js";
|
|
11
|
+
import { t as O } from "./chunks/chart-radial-bar-C42EykOa.js";
|
|
12
|
+
import { t as k } from "./chunks/chart-tree-map-DvuSCIc8.js";
|
|
13
13
|
export { y as CHART_COLORS, v as CHART_MARGINS, d as DataTable, g as FunnelChart, m as LazyChart, _ as NEGATIVE_COLOR, b as POSITIVE_COLOR, x as RechartsAreaChart, w as RechartsBarChart, C as RechartsLineChart, T as RechartsPieChart, D as RechartsRadarChart, O as RechartsRadialBarChart, E as RechartsScatterChart, k as RechartsTreeMapChart, u as clearChartConfigCache, S as formatChartData, r as getAvailableChartTypes, l as getChartConfigAsync, c as getChartConfigSync, e as getUnavailableChartTypes, s as isChartConfigLoaded, p as isChartTypeAvailable, i as isValidChartType, a as loadAllChartConfigs, n as preloadChart, f as preloadChartConfig, h as preloadChartConfigs, t as preloadCharts, o as useChartConfig };
|
package/dist/client/chunks/{DashboardEditModal-BBcB0E2g.js → DashboardEditModal-DayTXEH0.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as e, n as t, o as n, r, s as i, u as a } from "./vendor-
|
|
2
|
-
import { A as o, G as s, H as c, K as l, T as u, U as d, V as f, b as p, lt as m, q as h, x as g } from "./chart-data-table-
|
|
3
|
-
import { C as _, D as v, E as y, O as b, S as x, T as S, a as C, b as w, c as T, l as E, n as D, r as ee, s as te, t as O, w as k, y as ne } from "./useDebounce-
|
|
4
|
-
import { r as re } from "./chart-sankey-
|
|
1
|
+
import { a as e, n as t, o as n, r, s as i, u as a } from "./vendor-BcLQ6iVZ.js";
|
|
2
|
+
import { A as o, G as s, H as c, K as l, T as u, U as d, V as f, b as p, lt as m, q as h, x as g } from "./chart-data-table-BRXHT2H-.js";
|
|
3
|
+
import { C as _, D as v, E as y, O as b, S as x, T as S, a as C, b as w, c as T, l as E, n as D, r as ee, s as te, t as O, w as k, y as ne } from "./useDebounce-NEZQbfxN.js";
|
|
4
|
+
import { r as re } from "./chart-sankey-DguImp0W.js";
|
|
5
5
|
import { n as A, t as j } from "./providers-DX3Vw5kc.js";
|
|
6
|
-
import { F as ie, M, k as N } from "./chart-activity-grid-
|
|
7
|
-
import { u as ae } from "./chart-area-
|
|
6
|
+
import { F as ie, M, k as N } from "./chart-activity-grid-BnY-jaoa.js";
|
|
7
|
+
import { u as ae } from "./chart-area-G3OvLLK4.js";
|
|
8
8
|
import { l as oe } from "./retention-YhT1Oohi.js";
|
|
9
|
-
import { S as P, _ as se, a as F, b as ce, c as le, g as I, h as L, i as R, l as z, m as B, n as V, o as H, p as ue, r as de, s as fe, t as U, v as pe, y as W } from "./FieldSearchModal-
|
|
10
|
-
import { t as G } from "./chart-markdown-
|
|
9
|
+
import { S as P, _ as se, a as F, b as ce, c as le, g as I, h as L, i as R, l as z, m as B, n as V, o as H, p as ue, r as de, s as fe, t as U, v as pe, y as W } from "./FieldSearchModal-B7Mr8UNT.js";
|
|
10
|
+
import { t as G } from "./chart-markdown-BmgSMqPg.js";
|
|
11
11
|
import { n as me, t as he } from "./useDirtyStateTracking-KAjwj1Ht.js";
|
|
12
12
|
import ge, { Component as _e, Suspense as ve, createContext as ye, forwardRef as be, lazy as xe, startTransition as Se, useCallback as K, useContext as Ce, useEffect as q, useImperativeHandle as we, useMemo as J, useRef as Y, useState as X } from "react";
|
|
13
13
|
import { Fragment as Z, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
@@ -2459,7 +2459,7 @@ function Zt({ position: e, currentPalette: t, onPaletteChange: n }) {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
//#endregion
|
|
2461
2461
|
//#region src/client/components/AnalysisBuilderLazy.tsx
|
|
2462
|
-
var Qt = xe(() => import("./analysis-builder-
|
|
2462
|
+
var Qt = xe(() => import("./analysis-builder-lcGl099d.js")), $t = be((e, t) => /* @__PURE__ */ Q(ve, {
|
|
2463
2463
|
fallback: /* @__PURE__ */ Q("div", {
|
|
2464
2464
|
className: "dc:flex dc:items-center dc:justify-center dc:w-full dc:py-6",
|
|
2465
2465
|
children: /* @__PURE__ */ Q(ae, {})
|
|
@@ -6693,4 +6693,4 @@ function Ar({ isOpen: e, onClose: t, onSave: n, title: r, submitText: i, initial
|
|
|
6693
6693
|
//#endregion
|
|
6694
6694
|
export { at as A, Ct as C, ct as D, lt as E, Re as M, ke as N, ot as O, St as S, ut as T, At as _, cr as a, Nt as b, bt as c, Dt as d, Mt as f, Et as g, jt as h, Dr as i, Ue as j, st as k, gt as l, wt as m, kr as n, en as o, kt as p, Or as r, $t as s, Ar as t, Pt as u, Tt as v, ft as w, xt as x, Ot as y };
|
|
6695
6695
|
|
|
6696
|
-
//# sourceMappingURL=DashboardEditModal-
|
|
6696
|
+
//# sourceMappingURL=DashboardEditModal-DayTXEH0.js.map
|