@vizzly/dashboard 0.15.0-dev-3d599f1049eba812c1f45d1985540f920617733b → 0.15.0

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.
Files changed (67) hide show
  1. package/dist/charts/src/useXAxisLabelCount.d.ts +1 -1
  2. package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +1 -1
  3. package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +2 -2
  4. package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +2 -4
  5. package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +1 -2
  6. package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +2 -2
  7. package/dist/charts/src/v2/utils/components/BarGroup.d.ts +4 -4
  8. package/dist/charts/src/v2/utils/components/BarStacked.d.ts +4 -4
  9. package/dist/dashboard/src/contexts/GlobalProvider/GlobalProvider.d.ts +2 -4
  10. package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +0 -18
  11. package/dist/dashboard/src/contexts/GlobalProvider/useOnDashboardLoadCallback.d.ts +2 -3
  12. package/dist/dashboard/src/types.d.ts +5 -6
  13. package/dist/dashboard.cjs.development.js +3564 -3114
  14. package/dist/dashboard.cjs.production.min.js +1 -1
  15. package/dist/dashboard.esm.js +3565 -3115
  16. package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
  17. package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +1 -1
  18. package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
  19. package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +1 -1
  20. package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
  21. package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +1 -1
  22. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
  23. package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
  24. package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +1 -1
  25. package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
  26. package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
  27. package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +1 -1
  28. package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +1 -1
  29. package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +1 -1
  30. package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +1 -1
  31. package/dist/shared-logic/src/AdditionalFilter/types.d.ts +1 -4
  32. package/dist/shared-logic/src/BubbleChart/types.d.ts +0 -7
  33. package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +7 -4
  34. package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +3 -4
  35. package/dist/shared-logic/src/BubbleChartV2/types.d.ts +0 -8
  36. package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +3 -3
  37. package/dist/shared-logic/src/Component/types.d.ts +1 -0
  38. package/dist/shared-logic/src/CustomField/SimpleMath/index.d.ts +1 -1
  39. package/dist/shared-logic/src/Filter/Filter.d.ts +1 -1
  40. package/dist/shared-logic/src/Filter/Where.d.ts +6 -0
  41. package/dist/shared-logic/src/Filter/types.d.ts +4 -2
  42. package/dist/shared-logic/src/JSQueryEngine/types.d.ts +8 -2
  43. package/dist/shared-logic/src/Query/Query.d.ts +3 -9
  44. package/dist/shared-logic/src/Query/buildFromQueryAttributes.d.ts +1 -1
  45. package/dist/shared-logic/src/Query/types.d.ts +109 -6
  46. package/dist/shared-logic/src/TimeDimension/TimeDimension.d.ts +1 -3
  47. package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -1
  48. package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -2
  49. package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -1
  50. package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +3 -3
  51. package/dist/shared-ui/src/components/Component/types.d.ts +2 -0
  52. package/dist/shared-ui/src/components/Component.d.ts +2 -0
  53. package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +2 -0
  54. package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +1 -1
  55. package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +3 -3
  56. package/dist/shared-ui/src/components/useComponentEffect.d.ts +2 -2
  57. package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +2 -2
  58. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +13 -16
  59. package/dist/shared-ui/src/contexts/DashboardContext/context.d.ts +1 -4
  60. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +17 -1
  61. package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -0
  62. package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +1 -0
  63. package/dist/shared-ui/src/library/Library/Library.d.ts +4 -0
  64. package/dist/shared-ui/src/library/Library/types.d.ts +2 -0
  65. package/package.json +3 -3
  66. package/dist/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +0 -3
  67. package/dist/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +0 -25
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
2
+ queries: import("../../../../../shared-logic/src/Query/types").Query<string, string, string>[];
3
3
  resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
4
  };
@@ -1,12 +1,9 @@
1
1
  import { QueryAttributes } from '../QueryAttributes/types';
2
2
  import * as FilterType from './constants';
3
3
  export declare type FilterConfig = {
4
- /** Quick-access filters added to each view */
5
4
  localFilters?: Array<AdditionalFilter>;
6
- /** Filters existing on the dashboard level */
7
5
  globalFilters?: Array<AdditionalFilter>;
8
- /** Filters existing in the "advanced" section of the data panel */
9
- viewFilters?: QueryAttributes['filter'];
6
+ advancedFilter?: Array<QueryAttributes.Filter[]>;
10
7
  };
11
8
  export declare type AdditionalFilter = NumericFilter | SingleSelectFilter | DateFilter | DateAndTimeFilter | DateTimeFilter | MultiSelectFilter | AdvancedFilter;
12
9
  export declare type Field = {
@@ -53,13 +53,6 @@ export declare type BubbleChartRepresentation = {
53
53
  [keyId: string]: DataItem;
54
54
  }[];
55
55
  lines: LegendItem[];
56
- groupByKey: string;
57
- legend: {
58
- keys: {
59
- [keyId: string]: Key;
60
- };
61
- items: LegendItem[];
62
- };
63
56
  };
64
57
  export declare type DataItem = {
65
58
  value: number | string | null;
@@ -4,10 +4,11 @@ import { ValueAlias } from '../ValueAlias/types';
4
4
  import { Result } from '../Result/types';
5
5
  import { PivotConfig } from '../PivotConfig/types';
6
6
  import { QueryAttributes } from '../QueryAttributes/types';
7
- import { ApproxAxisLabelCount, Component, FormatType } from '../Component/types';
7
+ import { Component, FormatType } from '../Component/types';
8
+ import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
8
9
  interface buildBubbleChartRepresentationArgs {
9
10
  axisTitles?: Component.AxisTitles;
10
- colors: CSSProperties['color'][];
11
+ colors?: CSSProperties['color'][];
11
12
  conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
12
13
  dateTimeFormatOptions: {
13
14
  [id: string]: DateTimeFormatter;
@@ -23,6 +24,7 @@ interface buildBubbleChartRepresentationArgs {
23
24
  order: QueryAttributes.Order[];
24
25
  pivotConfig: PivotConfig;
25
26
  result: Result;
27
+ trendsAndForecasts?: Component.Trends[];
26
28
  valueAlias?: ValueAlias;
27
29
  xAxisFormat: FormatType;
28
30
  xAxisPostfix: string;
@@ -30,8 +32,9 @@ interface buildBubbleChartRepresentationArgs {
30
32
  yAxisFormat: FormatType;
31
33
  yAxisPostfix: string;
32
34
  yAxisPrefix: string;
33
- approxYAxisLabelCount: ApproxAxisLabelCount;
35
+ approxYAxisLabelCount: number;
36
+ seriesLabelFormatter: seriesLabelFormatter;
34
37
  zFieldId: string;
35
38
  }
36
- export declare const buildBubbleChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, valueAlias, zFieldId, }: buildBubbleChartRepresentationArgs) => BubbleChartRepresentation;
39
+ export declare const buildBubbleChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, trendsAndForecasts, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, seriesLabelFormatter, valueAlias, zFieldId, }: buildBubbleChartRepresentationArgs) => BubbleChartRepresentation;
37
40
  export {};
@@ -3,7 +3,6 @@ import { QueryAttributes } from '../QueryAttributes/types';
3
3
  import { DataType } from '../Field/types';
4
4
  import { FormattedResult } from '../Result/types';
5
5
  import { Tick } from '../ChartsV2/types';
6
- import { ApproxAxisLabelCount } from '../../../shared-logic/src/Component/types';
7
6
  declare type FormattingFunction = (value: any, nullValueAlias?: string) => string;
8
7
  interface getScaleAndTicksArgs {
9
8
  data: FormattedResult['contentMapped'];
@@ -11,7 +10,7 @@ interface getScaleAndTicksArgs {
11
10
  xScaleDataType: DataType;
12
11
  yKeys: string[];
13
12
  nullValue: string | undefined;
14
- approxYAxisLabelCount: ApproxAxisLabelCount;
13
+ tickCountYAxis: number;
15
14
  formattingFunctionX: FormattingFunction;
16
15
  formattingFunctionY: FormattingFunction;
17
16
  order: QueryAttributes.Order[];
@@ -33,11 +32,11 @@ interface getScaleAndTicksReturn {
33
32
  scale: {
34
33
  max: number;
35
34
  min: number;
36
- key: string | null;
35
+ key: null;
37
36
  ordering: 'asc' | 'desc';
38
37
  dataType: 'number';
39
38
  };
40
39
  };
41
40
  }
42
- export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, approxYAxisLabelCount, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
41
+ export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
43
42
  export {};
@@ -36,12 +36,6 @@ export declare type Key = {
36
36
  keyFormatted: string;
37
37
  dataType: DataType;
38
38
  };
39
- export declare type Legend = {
40
- keys: {
41
- [key: KeyId]: Key;
42
- };
43
- items: LegendItem[];
44
- };
45
39
  export declare type BubbleChartRepresentation = {
46
40
  keys: {
47
41
  [key: KeyId]: Key;
@@ -59,8 +53,6 @@ export declare type BubbleChartRepresentation = {
59
53
  [keyId: string]: DataItem;
60
54
  }[];
61
55
  lines: LegendItem[];
62
- groupByKey: string;
63
- legend: Legend;
64
56
  };
65
57
  export declare type DataItem = {
66
58
  value: number | string | null;
@@ -1,9 +1,9 @@
1
1
  import { Result } from '../Result/types';
2
2
  import { BaseChartRepresentation, Tick } from './types';
3
- export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 7.1;
4
- export declare function howManyTicksFitInWidth(ticks: Tick<string | number | Date>[], maxWidth: number, avgCharWidth?: number): number;
3
+ export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 4;
4
+ export declare function howManyTicksFitInWidth(ticks: Tick<string | Number | Date>[], maxWidth: number, avgCharWidth?: number): number;
5
5
  export declare function howManyTicksFitInHeight(ticks: Tick<string | number | Date>[], height: number): number | undefined;
6
6
  export declare function determineYTicks(ticks: Tick<number>[], height: number): Tick<number>[];
7
7
  export declare function pickEquallySpaced<T>(arr: Tick<T>[], numPicks: number): Tick<T>[];
8
8
  export declare function adjustTicks<T extends BaseChartRepresentation>(representation: T, width: number, height: number, xKeyField?: Result.Field): T;
9
- export declare function getEvenlySpacedTicks<DataType extends string | number | Date>(ticks: Tick<DataType>[], count: number, xKeyField: Result.Field | undefined): Tick<DataType>[];
9
+ export declare function getEvenlySpacedTicks<DataType extends string | number | Date>(ticks: Tick<DataType>[], count: number | undefined, xKeyField: Result.Field | undefined): Tick<DataType>[];
@@ -586,6 +586,7 @@ export declare type MaybeOldComponent<Attrs = Component.Attributes> = Omit<Compo
586
586
  export declare type Component<Attrs = Component.Attributes> = {
587
587
  attributes: Attrs;
588
588
  localFilters: Array<AdditionalFilter>;
589
+ results: (Result | null)[];
589
590
  colSpan: number;
590
591
  /** @deprecated Moved to dashboard level. */
591
592
  reports: Array<Report>;
@@ -8,4 +8,4 @@ import { Params } from '../../../../results-driver/src/types';
8
8
  import { VariableList } from '../../Variables/types';
9
9
  export declare const init: (publicName: string, leftFieldId: string, operator: MathOperator, rightFieldId: string, queryEngineConfig: QueryEngineConfig) => SimpleMathField;
10
10
  export declare const build: (measureAttribute: QueryAttributes.Measure, customField: SimpleMathField, dataSet: DataSet, params: Params) => Query['measure'][number];
11
- export declare const buildSide: (value: string, dataSet: DataSet, variables: VariableList) => QueryNameSpace.FieldDefinition;
11
+ export declare const buildSide: (value: string, dataSet: DataSet, variables: VariableList) => QueryNameSpace.FieldDefinition<string, string, string>;
@@ -4,7 +4,7 @@ import { QueryEngineConfig } from '../QueryEngineConfig/types';
4
4
  import { DataSet } from '../DataSet/types';
5
5
  import { Params } from '../../../results-driver/src/types';
6
6
  export declare const addAndFilters: (filter: QueryAttributes['filter'], filterToAddToAll: QueryAttributes.Filter[]) => QueryAttributes['filter'];
7
- export declare const filterAttributeToQueryFilter: (filterAttrs: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query['filter'];
7
+ export declare const filterAttributeToQueryFilter: (filters: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query['filter'];
8
8
  export declare const takeUsedFields: (filter: QueryAttributes['filter']) => string[];
9
9
  export declare const isAvailable: (filter?: QueryAttributes.Filter[][] | undefined) => boolean | undefined;
10
10
  export declare const isAdditionalFilter: (value: any) => boolean;
@@ -0,0 +1,6 @@
1
+ import { DataSet } from '../DataSet/types';
2
+ import { WhereClause } from './types';
3
+ import { QueryEngineConfig } from '../QueryEngineConfig/types';
4
+ import { Params } from '../../../results-driver/src/types';
5
+ export declare const filterConfigToWhere: (dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => WhereClause | undefined;
6
+ export declare const isWhereClause: (thing: any) => thing is WhereClause;
@@ -1,7 +1,9 @@
1
- import type { Query } from '@vizzly/sqlbuilder-public';
2
1
  export declare enum Clause {
3
2
  AND_WHERE = "andWhere",
4
3
  OR_WHERE = "orWhere",
5
4
  WHERE = "where"
6
5
  }
7
- export declare type WhereClause = Query['filter'];
6
+ export declare type WhereClause = {
7
+ type: Clause;
8
+ value: any;
9
+ };
@@ -2,5 +2,11 @@ import { Query, SubQuery } from '../Query/types';
2
2
  export declare type DataMap = {
3
3
  [key: string]: string | boolean | number | Date | null | string[];
4
4
  };
5
- export declare type JSQueryEngineSubQuery = SubQuery;
6
- export declare type JSQueryEngineQuery = Query;
5
+ declare type JSQueryEngineOperator = '>' | '<' | '=' | '!=' | '>=' | '<=' | 'is_one_of' | 'is_not_one_of' | 'starts_with' | 'ends_with' | 'contains_substring' | 'does_not_contain_substring';
6
+ export declare type JSQueryEngineTimeFunction = 'month' | 'year' | 'quarter' | 'week' | 'day' | 'hour' | 'minute' | 'second';
7
+ export declare type JSQueryEngineAggregateFunction = 'countDistinct' | 'count' | 'mean' | 'sum' | 'min' | 'max' | 'none';
8
+ export declare type JSQueryEngineFunction = JSQueryEngineTimeFunction | JSQueryEngineAggregateFunction;
9
+ export declare type JSQueryEngineMathsOp = '*' | '-' | '/' | '+';
10
+ export declare type JSQueryEngineSubQuery = SubQuery<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
11
+ export declare type JSQueryEngineQuery = Query<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
12
+ export {};
@@ -3,8 +3,8 @@ import { QueryAttributes } from '../QueryAttributes/types';
3
3
  import { QueryEngineConfig, SupportedFeature as SupportedFeatureType } from '../QueryEngineConfig/types';
4
4
  import { DataSet } from '../DataSet/types';
5
5
  import { Result } from '../Result/types';
6
- export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: QueryAttributes.Measure[], filterAttr: QueryAttributes.Filter[][], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: number | undefined, offsetAttr: number | undefined, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../results-driver/src/types").Params) => {
7
- query: Query;
6
+ export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: number | undefined, offsetAttr: number | undefined, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../results-driver/src/types").Params, prebuiltFilters?: QueryAttributes.Filter[][] | undefined) => {
7
+ query: Query<string, string, string>;
8
8
  measureDescription: import("./types").MeasureDescription[];
9
9
  };
10
10
  export declare const hasDimensions: (query: {
@@ -14,13 +14,7 @@ export declare const buildPreAggregatedPreparedQuery: (query: PreAggregatedQuery
14
14
  query: PreAggregatedQuery;
15
15
  resultFields: Result.Field[];
16
16
  };
17
- export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, dataSetField: DataSet['fields'][number], optionsFilters?: {
18
- type: "andWhere" | "orWhere";
19
- value: import("@vizzly/sqlbuilder-public").RecursiveFilter[];
20
- } | {
21
- type: "where";
22
- value: import("@vizzly/sqlbuilder-public/dist/Query/types").QueryNameSpace.Filter<import("@vizzly/sqlbuilder-public/dist/Query/types").QueryNameSpace.FieldDefinition<string, string, import("../CustomField/types").MathOperator, import("@vizzly/sqlbuilder-public").RecursiveFilter>, string>;
23
- } | undefined) => {
17
+ export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, dataSetField: DataSet['fields'][number], optionsFilters?: import("./types").QueryNameSpace.Filter<import("./types").QueryNameSpace.FieldDefinition<string, string, string>, string>[][] | undefined) => {
24
18
  query: PreparedQuery;
25
19
  resultFields: Result.Field[];
26
20
  };
@@ -3,7 +3,7 @@ import { QueryEngineConfig } from '../QueryEngineConfig/types';
3
3
  import { MeasureDescription, Query } from './types';
4
4
  import { DataSet } from '../DataSet/types';
5
5
  import { Params } from '../../../results-driver/src/types';
6
- export declare const buildFromQueryAttributes: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], filterAttr: QueryAttributes.Filter[][], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: QueryAttributes.Limit | undefined, offsetAttr: QueryAttributes.Offset | undefined, queryEngineConfig: QueryEngineConfig, params: Params) => {
6
+ export declare const buildFromQueryAttributes: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: QueryAttributes.Limit | undefined, offsetAttr: QueryAttributes.Offset | undefined, queryEngineConfig: QueryEngineConfig, params: Params, prebuiltFilters?: QueryAttributes.Filter[][] | undefined) => {
7
7
  query: Query;
8
8
  measureDescription: Array<MeasureDescription>;
9
9
  };
@@ -1,15 +1,108 @@
1
1
  import { DataSet } from '../DataSet/types';
2
- import { QueryNameSpace, SQLQuery } from '@vizzly/sqlbuilder-public';
3
- export type { QueryNameSpace } from '@vizzly/sqlbuilder-public';
2
+ export declare namespace QueryNameSpace {
3
+ /**
4
+ * Which direction should the values be sorted in?
5
+ */
6
+ type SortDirection = 'asc' | 'desc';
7
+ /**
8
+ * ID of the field. This is the same ID that is used in
9
+ * the data sets.
10
+ */
11
+ type Field = string;
12
+ /**
13
+ * Index of the measure to group the aggregates on.
14
+ * Index starts from 0.
15
+ */
16
+ type Group = {
17
+ index: number;
18
+ };
19
+ /**
20
+ * Index of the measure to sort the results by.
21
+ * Index starts from 0.
22
+ */
23
+ type Order = {
24
+ index: number;
25
+ direction: SortDirection;
26
+ };
27
+ /**
28
+ * Defines filters to apply on the query. This can be thought of
29
+ * as the WHERE clause in a SQL statement.
30
+ */
31
+ type Filter<Field, ComparisonOperator> = {
32
+ field: Field | BasicType;
33
+ op: ComparisonOperator;
34
+ value: any;
35
+ };
36
+ type SecureFilterGuard<ComparisonOperator> = {
37
+ fieldId: string;
38
+ op: ComparisonOperator;
39
+ };
40
+ /**
41
+ * Limit the number of results returned from the query.
42
+ */
43
+ type Limit = number;
44
+ /**
45
+ * Sets the offset of results to return.
46
+ */
47
+ type Offset = number;
48
+ type Cases<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
49
+ returns: BasicType | {
50
+ type: 'field';
51
+ value: string;
52
+ function: SupportedFunction;
53
+ };
54
+ filter: QueryNameSpace.Filter<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>, ComparisonOperator>[][];
55
+ };
56
+ type BasicType = {
57
+ type: 'number';
58
+ value: number;
59
+ } | {
60
+ type: 'string';
61
+ value: string;
62
+ } | {
63
+ type: 'null';
64
+ } | {
65
+ type: 'boolean';
66
+ value: boolean | null;
67
+ };
68
+ type ComplexType<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
69
+ type: 'field';
70
+ value: string;
71
+ function: SupportedFunction;
72
+ } | {
73
+ type: 'switchField';
74
+ value: {
75
+ cases: Cases<SupportedFunction, ComparisonOperator, MathsOp>[];
76
+ };
77
+ } | {
78
+ type: 'subquery';
79
+ value: SubQuery<SupportedFunction, ComparisonOperator, MathsOp>;
80
+ } | {
81
+ type: 'maths';
82
+ left: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
83
+ op: MathsOp;
84
+ right: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
85
+ } | {
86
+ type: 'date_maths';
87
+ left: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
88
+ op: MathsOp;
89
+ right: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
90
+ } | {
91
+ type: 'function';
92
+ function: SupportedFunction;
93
+ value: FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>;
94
+ };
95
+ type FieldDefinition<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = BasicType | ComplexType<SupportedFunction, ComparisonOperator, MathsOp>;
96
+ }
4
97
  export declare type MeasureDescription = {
5
98
  /** What is the underlying field of the data set? */
6
99
  field: DataSet.Field;
7
100
  /** What function was applied? */
8
101
  functionId: string;
9
102
  };
10
- export declare type SubQuery = {
11
- measure: [QueryNameSpace.FieldDefinition];
12
- filter: Query['filter'];
103
+ export declare type SubQuery<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
104
+ measure: [QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>];
105
+ filter: QueryNameSpace.Filter<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>, ComparisonOperator>[][];
13
106
  };
14
107
  /** For when a query cannot be generalised into the TraditionalQuery format. We can provide a very specific query for a specific purpose. */
15
108
  declare type BasePreparedQuery<PreparedQueryType> = {
@@ -30,6 +123,16 @@ export declare type PreAggregatedQuery = BasePreparedQuery<'preAggregated'> & {
30
123
  };
31
124
  };
32
125
  export declare type PreparedQuery = UniqueArrayValuesQuery | PreAggregatedQuery;
33
- export declare type Query = Omit<SQLQuery, 'timeZone'> & {
126
+ /** Most commonly used query format. */
127
+ export declare type Query<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
128
+ type: 'query';
34
129
  timeZone?: string;
130
+ dataSetId: string;
131
+ measure: Array<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>>;
132
+ filter: QueryNameSpace.Filter<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>, ComparisonOperator>[][];
133
+ order: Array<QueryNameSpace.Order>;
134
+ group: Array<QueryNameSpace.Group>;
135
+ limit?: QueryNameSpace.Limit;
136
+ offset?: QueryNameSpace.Offset;
35
137
  };
138
+ export {};
@@ -3,8 +3,6 @@ import { QueryAttributes } from '../QueryAttributes/types';
3
3
  export declare const id: (metric: QueryAttributes.TimeDimension) => string;
4
4
  export declare const decodeId: (metric: string, supportedTimeTruncFunctions: SupportedTimeTruncFunctions) => QueryAttributes.TimeDimension | null;
5
5
  export declare const vizzlyManagedTimeDimensions: SupportedTimeTruncFunctions;
6
- declare type SupportedTimeFunctions = 'minute' | 'hour' | 'second' | 'week' | 'quarter' | 'year' | 'month' | 'day';
7
- export declare const supportedTimeTruncFunctions: (keys?: SupportedTimeFunctions[] | undefined) => SupportedTimeTruncFunctions;
6
+ export declare const supportedTimeTruncFunctions: (keys?: import("../JSQueryEngine/types").JSQueryEngineTimeFunction[] | undefined) => SupportedTimeTruncFunctions;
8
7
  export declare const isSupportedTimeTruncFunction: (supportedTimeFunctions: SupportedTimeTruncFunctions, proposedFunction: string) => boolean;
9
8
  export declare const getPublicName: (id: keyof typeof vizzlyManagedTimeDimensions) => string;
10
- export {};
@@ -15,7 +15,7 @@ export declare type runQueriesCallback = (queries: Component.Attributes | Additi
15
15
  dataAccessToken?: string;
16
16
  filterConfig?: FilterConfig;
17
17
  }) => Promise<(Result | null)[] | Array<Result['content'] | null> | CallbackError>;
18
- declare const getRunQueriesCallback: (identityConfig: IdentityConfigType, queryEngineConfig: QueryEngineConfigType, timeRangeOptions: TimeRangeOptions, variables: VariableList, runQueries?: ((queries: import("../../../../shared-logic/src/Query/types").Query[], params: {
18
+ declare const getRunQueriesCallback: (identityConfig: IdentityConfigType, queryEngineConfig: QueryEngineConfigType, timeRangeOptions: TimeRangeOptions, variables: VariableList, runQueries?: ((queries: import("../../../../shared-logic/src/Query/types").Query<string, string, string>[], params: {
19
19
  dataSets: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>[];
20
20
  abortSignal?: AbortSignal | undefined;
21
21
  dataAccessToken?: string | undefined;
@@ -4,7 +4,6 @@ import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
4
4
  import { DataSet } from '../../../shared-logic/src/DataSet/types';
5
5
  import { QueryableEntity } from './useQueryEffect/types';
6
6
  import { UseVariableState } from '../contexts/Variables/types';
7
- export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | undefined, variables?: UseVariableState | undefined) => {
8
- results: Array<Result | null>;
7
+ export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | undefined, variables?: UseVariableState | undefined) => {
9
8
  queriesAreChanging: boolean;
10
9
  };