@lightdash/common 0.1969.1 → 0.1971.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 (108) hide show
  1. package/dist/cjs/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
  2. package/dist/cjs/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
  3. package/dist/cjs/ee/AiAgent/schemas/customMetrics.js +50 -0
  4. package/dist/cjs/ee/AiAgent/schemas/customMetrics.js.map +1 -0
  5. package/dist/cjs/ee/AiAgent/schemas/index.d.ts +106 -6
  6. package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
  7. package/dist/cjs/ee/AiAgent/schemas/index.js +1 -0
  8. package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
  9. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
  10. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  11. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js +8 -1
  12. package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
  13. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
  14. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  15. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +4 -0
  16. package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
  17. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
  18. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  19. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +8 -1
  20. package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
  21. package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
  22. package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
  23. package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.js +2 -1
  24. package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -1
  25. package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
  26. package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
  27. package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +2 -1
  28. package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
  29. package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
  30. package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
  31. package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.js +2 -1
  32. package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -1
  33. package/dist/cjs/ee/AiAgent/types.d.ts +4 -2
  34. package/dist/cjs/ee/AiAgent/types.d.ts.map +1 -1
  35. package/dist/cjs/ee/AiAgent/utils.d.ts +24 -3
  36. package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
  37. package/dist/cjs/ee/AiAgent/utils.js +18 -3
  38. package/dist/cjs/ee/AiAgent/utils.js.map +1 -1
  39. package/dist/cjs/utils/additionalMetrics.d.ts +7 -1
  40. package/dist/cjs/utils/additionalMetrics.d.ts.map +1 -1
  41. package/dist/cjs/utils/additionalMetrics.js +36 -1
  42. package/dist/cjs/utils/additionalMetrics.js.map +1 -1
  43. package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
  44. package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
  45. package/dist/esm/ee/AiAgent/schemas/customMetrics.js +47 -0
  46. package/dist/esm/ee/AiAgent/schemas/customMetrics.js.map +1 -0
  47. package/dist/esm/ee/AiAgent/schemas/index.d.ts +106 -6
  48. package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
  49. package/dist/esm/ee/AiAgent/schemas/index.js +1 -0
  50. package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
  51. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
  52. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  53. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js +8 -1
  54. package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
  55. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
  56. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  57. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +4 -0
  58. package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
  59. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
  60. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  61. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +8 -1
  62. package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
  63. package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
  64. package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
  65. package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.js +2 -1
  66. package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -1
  67. package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
  68. package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
  69. package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +2 -1
  70. package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
  71. package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
  72. package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
  73. package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.js +2 -1
  74. package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -1
  75. package/dist/esm/ee/AiAgent/types.d.ts +4 -2
  76. package/dist/esm/ee/AiAgent/types.d.ts.map +1 -1
  77. package/dist/esm/ee/AiAgent/utils.d.ts +24 -3
  78. package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
  79. package/dist/esm/ee/AiAgent/utils.js +18 -3
  80. package/dist/esm/ee/AiAgent/utils.js.map +1 -1
  81. package/dist/esm/utils/additionalMetrics.d.ts +7 -1
  82. package/dist/esm/utils/additionalMetrics.d.ts.map +1 -1
  83. package/dist/esm/utils/additionalMetrics.js +34 -0
  84. package/dist/esm/utils/additionalMetrics.js.map +1 -1
  85. package/dist/tsconfig.types.tsbuildinfo +1 -1
  86. package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
  87. package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
  88. package/dist/types/ee/AiAgent/schemas/index.d.ts +106 -6
  89. package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
  90. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
  91. package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
  92. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
  93. package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
  94. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
  95. package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
  96. package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
  97. package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
  98. package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
  99. package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
  100. package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
  101. package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
  102. package/dist/types/ee/AiAgent/types.d.ts +4 -2
  103. package/dist/types/ee/AiAgent/types.d.ts.map +1 -1
  104. package/dist/types/ee/AiAgent/utils.d.ts +24 -3
  105. package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
  106. package/dist/types/utils/additionalMetrics.d.ts +7 -1
  107. package/dist/types/utils/additionalMetrics.d.ts.map +1 -1
  108. package/package.json +1 -1
@@ -5,6 +5,25 @@ export declare const TOOL_TABLE_VIZ_DESCRIPTION = "Use this tool to query data t
5
5
  export declare const toolTableVizArgsSchema: z.ZodObject<{
6
6
  type: z.ZodLiteral<AiResultType.TABLE_RESULT>;
7
7
  } & {
8
+ customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
9
+ name: z.ZodString;
10
+ label: z.ZodString;
11
+ baseDimensionName: z.ZodString;
12
+ table: z.ZodString;
13
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ label: string;
17
+ table: string;
18
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
19
+ baseDimensionName: string;
20
+ }, {
21
+ name: string;
22
+ label: string;
23
+ table: string;
24
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
25
+ baseDimensionName: string;
26
+ }>, "many">>;
8
27
  vizConfig: z.ZodObject<{
9
28
  exploreName: z.ZodString;
10
29
  metrics: z.ZodArray<z.ZodString, "many">;
@@ -1176,6 +1195,14 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
1176
1195
  })[] | null;
1177
1196
  type: "and" | "or";
1178
1197
  } | null;
1198
+ customMetrics: {
1199
+ name: string;
1200
+ label: string;
1201
+ table: string;
1202
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1203
+ baseDimensionName: string;
1204
+ }[] | null;
1205
+ title: string;
1179
1206
  vizConfig: {
1180
1207
  dimensions: string[];
1181
1208
  metrics: string[];
@@ -1187,7 +1214,6 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
1187
1214
  nullsFirst: boolean | null;
1188
1215
  }[];
1189
1216
  };
1190
- title: string;
1191
1217
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
1192
1218
  }, {
1193
1219
  type: AiResultType.TABLE_RESULT;
@@ -1373,6 +1399,14 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
1373
1399
  })[] | null;
1374
1400
  type: "and" | "or";
1375
1401
  } | null;
1402
+ customMetrics: {
1403
+ name: string;
1404
+ label: string;
1405
+ table: string;
1406
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1407
+ baseDimensionName: string;
1408
+ }[] | null;
1409
+ title: string;
1376
1410
  vizConfig: {
1377
1411
  dimensions: string[];
1378
1412
  metrics: string[];
@@ -1384,13 +1418,11 @@ export declare const toolTableVizArgsSchema: z.ZodObject<{
1384
1418
  nullsFirst: boolean | null;
1385
1419
  }[];
1386
1420
  };
1387
- title: string;
1388
1421
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
1389
1422
  }>;
1390
1423
  export type ToolTableVizArgs = z.infer<typeof toolTableVizArgsSchema>;
1391
1424
  export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject<{
1392
1425
  type: z.ZodLiteral<AiResultType.TABLE_RESULT>;
1393
- } & {
1394
1426
  vizConfig: z.ZodObject<{
1395
1427
  exploreName: z.ZodString;
1396
1428
  metrics: z.ZodArray<z.ZodString, "many">;
@@ -2378,6 +2410,26 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2378
2410
  followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
2379
2411
  title: z.ZodString;
2380
2412
  description: z.ZodString;
2413
+ } & {
2414
+ customMetrics: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
2415
+ name: z.ZodString;
2416
+ label: z.ZodString;
2417
+ baseDimensionName: z.ZodString;
2418
+ table: z.ZodString;
2419
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
2420
+ }, "strip", z.ZodTypeAny, {
2421
+ name: string;
2422
+ label: string;
2423
+ table: string;
2424
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2425
+ baseDimensionName: string;
2426
+ }, {
2427
+ name: string;
2428
+ label: string;
2429
+ table: string;
2430
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2431
+ baseDimensionName: string;
2432
+ }>, "many">>>;
2381
2433
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2382
2434
  type: AiResultType.TABLE_RESULT;
2383
2435
  description: string;
@@ -2562,6 +2614,14 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2562
2614
  })[] | null;
2563
2615
  type: "and" | "or";
2564
2616
  } | null;
2617
+ customMetrics: {
2618
+ name: string;
2619
+ label: string;
2620
+ table: string;
2621
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2622
+ baseDimensionName: string;
2623
+ }[] | null;
2624
+ title: string;
2565
2625
  vizConfig: {
2566
2626
  dimensions: string[];
2567
2627
  metrics: string[];
@@ -2573,7 +2633,6 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2573
2633
  nullsFirst: boolean | null;
2574
2634
  }[];
2575
2635
  };
2576
- title: string;
2577
2636
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
2578
2637
  }, {
2579
2638
  type: AiResultType.TABLE_RESULT;
@@ -2759,6 +2818,7 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2759
2818
  })[] | null;
2760
2819
  type: "and" | "or";
2761
2820
  } | null;
2821
+ title: string;
2762
2822
  vizConfig: {
2763
2823
  dimensions: string[];
2764
2824
  metrics: string[];
@@ -2770,12 +2830,26 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2770
2830
  nullsFirst: boolean | null;
2771
2831
  }[];
2772
2832
  };
2773
- title: string;
2774
2833
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
2834
+ customMetrics?: {
2835
+ name: string;
2836
+ label: string;
2837
+ table: string;
2838
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2839
+ baseDimensionName: string;
2840
+ }[] | null | undefined;
2775
2841
  }>, {
2776
2842
  filters: import("../../../..").Filters;
2777
2843
  type: AiResultType.TABLE_RESULT;
2778
2844
  description: string;
2845
+ customMetrics: {
2846
+ name: string;
2847
+ label: string;
2848
+ table: string;
2849
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2850
+ baseDimensionName: string;
2851
+ }[] | null;
2852
+ title: string;
2779
2853
  vizConfig: {
2780
2854
  dimensions: string[];
2781
2855
  metrics: string[];
@@ -2787,7 +2861,6 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2787
2861
  nullsFirst: boolean | null;
2788
2862
  }[];
2789
2863
  };
2790
- title: string;
2791
2864
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
2792
2865
  }, {
2793
2866
  type: AiResultType.TABLE_RESULT;
@@ -2973,6 +3046,7 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2973
3046
  })[] | null;
2974
3047
  type: "and" | "or";
2975
3048
  } | null;
3049
+ title: string;
2976
3050
  vizConfig: {
2977
3051
  dimensions: string[];
2978
3052
  metrics: string[];
@@ -2984,8 +3058,14 @@ export declare const toolTableVizArgsSchemaTransformed: z.ZodEffects<z.ZodObject
2984
3058
  nullsFirst: boolean | null;
2985
3059
  }[];
2986
3060
  };
2987
- title: string;
2988
3061
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
3062
+ customMetrics?: {
3063
+ name: string;
3064
+ label: string;
3065
+ table: string;
3066
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
3067
+ baseDimensionName: string;
3068
+ }[] | null | undefined;
2989
3069
  }>;
2990
3070
  export type ToolTableVizArgsTransformed = z.infer<typeof toolTableVizArgsSchemaTransformed>;
2991
3071
  //# sourceMappingURL=toolTableVizArgs.d.ts.map
@@ -1 +1 @@
1
-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvC,CAAC;AAER,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,iCAAiC,CAC3C,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { FollowUpTools } from '../../followUpTools';
3
3
  import { AiResultType } from '../../types';
4
+ import { customMetricsSchema } from '../customMetrics';
4
5
  import { filtersSchema, filtersSchemaTransformed } from '../filters';
5
6
  import { createToolSchema } from '../toolSchemaBuilder';
6
7
  import visualizationMetadataSchema from '../visualizationMetadata';
@@ -9,6 +10,7 @@ export const TOOL_TABLE_VIZ_DESCRIPTION = `Use this tool to query data to displa
9
10
  export const toolTableVizArgsSchema = createToolSchema(AiResultType.TABLE_RESULT, TOOL_TABLE_VIZ_DESCRIPTION)
10
11
  .extend({
11
12
  ...visualizationMetadataSchema.shape,
13
+ customMetrics: customMetricsSchema,
12
14
  vizConfig: tableVizConfigSchema,
13
15
  filters: filtersSchema
14
16
  .nullable()
@@ -21,7 +23,12 @@ export const toolTableVizArgsSchema = createToolSchema(AiResultType.TABLE_RESULT
21
23
  .describe('The actions the User can ask for after the AI has generated the table.'),
22
24
  })
23
25
  .build();
24
- export const toolTableVizArgsSchemaTransformed = toolTableVizArgsSchema.transform((data) => ({
26
+ export const toolTableVizArgsSchemaTransformed = toolTableVizArgsSchema
27
+ .extend({
28
+ // backwards compatibility for old viz configs without customMetrics
29
+ customMetrics: customMetricsSchema.default(null),
30
+ })
31
+ .transform((data) => ({
25
32
  ...data,
26
33
  filters: filtersSchemaTransformed.parse(data.filters),
27
34
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"toolTableVizArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTableVizArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,2BAA2B,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,CAAC,MAAM,0BAA0B,GAAG,uFAAuF,CAAC;AAElI,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAClD,YAAY,CAAC,YAAY,EACzB,0BAA0B,CA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GAAG,gBAAgB,CAClD,YAAY,CAAC,YAAY,EACzB,0BAA0B,CAC7B;KACI,MAAM,CAAC;IACJ,GAAG,2BAA2B,CAAC,KAAK;IACpC,aAAa,EAAE,mBAAmB;IAClC,SAAS,EAAE,oBAAoB;IAC/B,OAAO,EAAE,aAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;IACL,aAAa,EAAE,CAAC;SACX,KAAK,CACF,CAAC,CAAC,KAAK,CAAC;QACJ,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC;QACzC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wEAAwE,CAC3E;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIb,MAAM,CAAC,MAAM,iCAAiC,GAAG,sBAAsB;KAClE,MAAM,CAAC;IACJ,oEAAoE;IACpE,aAAa,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC;CACnD,CAAC;KACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAClB,GAAG,IAAI;IACP,OAAO,EAAE,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;CACxD,CAAC,CAAC,CAAC"}
@@ -5,6 +5,25 @@ export declare const TOOL_TIME_SERIES_VIZ_DESCRIPTION = "Use this tool to genera
5
5
  export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
6
6
  type: z.ZodLiteral<AiResultType.TIME_SERIES_RESULT>;
7
7
  } & {
8
+ customMetrics: z.ZodNullable<z.ZodArray<z.ZodObject<{
9
+ name: z.ZodString;
10
+ label: z.ZodString;
11
+ baseDimensionName: z.ZodString;
12
+ table: z.ZodString;
13
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ label: string;
17
+ table: string;
18
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
19
+ baseDimensionName: string;
20
+ }, {
21
+ name: string;
22
+ label: string;
23
+ table: string;
24
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
25
+ baseDimensionName: string;
26
+ }>, "many">>;
8
27
  vizConfig: z.ZodObject<{
9
28
  exploreName: z.ZodString;
10
29
  xDimension: z.ZodString;
@@ -1188,6 +1207,14 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
1188
1207
  })[] | null;
1189
1208
  type: "and" | "or";
1190
1209
  } | null;
1210
+ customMetrics: {
1211
+ name: string;
1212
+ label: string;
1213
+ table: string;
1214
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1215
+ baseDimensionName: string;
1216
+ }[] | null;
1217
+ title: string;
1191
1218
  vizConfig: {
1192
1219
  limit: number | null;
1193
1220
  exploreName: string;
@@ -1203,7 +1230,6 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
1203
1230
  xAxisLabel: string | null;
1204
1231
  yAxisLabel: string | null;
1205
1232
  };
1206
- title: string;
1207
1233
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
1208
1234
  }, {
1209
1235
  type: AiResultType.TIME_SERIES_RESULT;
@@ -1389,6 +1415,14 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
1389
1415
  })[] | null;
1390
1416
  type: "and" | "or";
1391
1417
  } | null;
1418
+ customMetrics: {
1419
+ name: string;
1420
+ label: string;
1421
+ table: string;
1422
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
1423
+ baseDimensionName: string;
1424
+ }[] | null;
1425
+ title: string;
1392
1426
  vizConfig: {
1393
1427
  limit: number | null;
1394
1428
  exploreName: string;
@@ -1404,7 +1438,6 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
1404
1438
  xAxisLabel: string | null;
1405
1439
  yAxisLabel: string | null;
1406
1440
  };
1407
- title: string;
1408
1441
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
1409
1442
  }>;
1410
1443
  export type ToolTimeSeriesArgs = z.infer<typeof toolTimeSeriesArgsSchema>;
@@ -2411,6 +2444,25 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
2411
2444
  xAxisLabel?: string | undefined;
2412
2445
  yAxisLabel?: string | undefined;
2413
2446
  }>;
2447
+ customMetrics: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
2448
+ name: z.ZodString;
2449
+ label: z.ZodString;
2450
+ baseDimensionName: z.ZodString;
2451
+ table: z.ZodString;
2452
+ type: z.ZodEnum<[import("../../../..").MetricType.AVERAGE, import("../../../..").MetricType.COUNT, import("../../../..").MetricType.COUNT_DISTINCT, import("../../../..").MetricType.MAX, import("../../../..").MetricType.MIN, import("../../../..").MetricType.SUM, import("../../../..").MetricType.PERCENTILE, import("../../../..").MetricType.MEDIAN]>;
2453
+ }, "strip", z.ZodTypeAny, {
2454
+ name: string;
2455
+ label: string;
2456
+ table: string;
2457
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2458
+ baseDimensionName: string;
2459
+ }, {
2460
+ name: string;
2461
+ label: string;
2462
+ table: string;
2463
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2464
+ baseDimensionName: string;
2465
+ }>, "many">>>;
2414
2466
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2415
2467
  type: AiResultType.TIME_SERIES_RESULT;
2416
2468
  description: string;
@@ -2595,6 +2647,14 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
2595
2647
  })[] | null;
2596
2648
  type: "and" | "or";
2597
2649
  } | null;
2650
+ customMetrics: {
2651
+ name: string;
2652
+ label: string;
2653
+ table: string;
2654
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2655
+ baseDimensionName: string;
2656
+ }[] | null;
2657
+ title: string;
2598
2658
  vizConfig: {
2599
2659
  limit: number | null;
2600
2660
  exploreName: string;
@@ -2610,7 +2670,6 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
2610
2670
  xAxisLabel: string;
2611
2671
  yAxisLabel: string;
2612
2672
  };
2613
- title: string;
2614
2673
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
2615
2674
  }, {
2616
2675
  type: AiResultType.TIME_SERIES_RESULT;
@@ -2796,6 +2855,7 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
2796
2855
  })[] | null;
2797
2856
  type: "and" | "or";
2798
2857
  } | null;
2858
+ title: string;
2799
2859
  vizConfig: {
2800
2860
  limit: number | null;
2801
2861
  exploreName: string;
@@ -2811,12 +2871,26 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
2811
2871
  xAxisLabel?: string | undefined;
2812
2872
  yAxisLabel?: string | undefined;
2813
2873
  };
2814
- title: string;
2815
2874
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
2875
+ customMetrics?: {
2876
+ name: string;
2877
+ label: string;
2878
+ table: string;
2879
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2880
+ baseDimensionName: string;
2881
+ }[] | null | undefined;
2816
2882
  }>, {
2817
2883
  filters: import("../../../..").Filters;
2818
2884
  type: AiResultType.TIME_SERIES_RESULT;
2819
2885
  description: string;
2886
+ customMetrics: {
2887
+ name: string;
2888
+ label: string;
2889
+ table: string;
2890
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
2891
+ baseDimensionName: string;
2892
+ }[] | null;
2893
+ title: string;
2820
2894
  vizConfig: {
2821
2895
  limit: number | null;
2822
2896
  exploreName: string;
@@ -2832,7 +2906,6 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
2832
2906
  xAxisLabel: string;
2833
2907
  yAxisLabel: string;
2834
2908
  };
2835
- title: string;
2836
2909
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
2837
2910
  }, {
2838
2911
  type: AiResultType.TIME_SERIES_RESULT;
@@ -3018,6 +3091,7 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
3018
3091
  })[] | null;
3019
3092
  type: "and" | "or";
3020
3093
  } | null;
3094
+ title: string;
3021
3095
  vizConfig: {
3022
3096
  limit: number | null;
3023
3097
  exploreName: string;
@@ -3033,8 +3107,14 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
3033
3107
  xAxisLabel?: string | undefined;
3034
3108
  yAxisLabel?: string | undefined;
3035
3109
  };
3036
- title: string;
3037
3110
  followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
3111
+ customMetrics?: {
3112
+ name: string;
3113
+ label: string;
3114
+ table: string;
3115
+ type: import("../../../..").MetricType.PERCENTILE | import("../../../..").MetricType.AVERAGE | import("../../../..").MetricType.COUNT | import("../../../..").MetricType.COUNT_DISTINCT | import("../../../..").MetricType.SUM | import("../../../..").MetricType.MIN | import("../../../..").MetricType.MAX | import("../../../..").MetricType.MEDIAN;
3116
+ baseDimensionName: string;
3117
+ }[] | null | undefined;
3038
3118
  }>;
3039
3119
  export type ToolTimeSeriesArgsTransformed = z.infer<typeof toolTimeSeriesArgsSchemaTransformed>;
3040
3120
  //# sourceMappingURL=toolTimeSeriesArgs.d.ts.map
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} from '../customMetrics';
4
5
  import { filtersSchema, filtersSchemaTransformed } from '../filters';
5
6
  import { createToolSchema } from '../toolSchemaBuilder';
6
7
  import visualizationMetadataSchema from '../visualizationMetadata';
@@ -9,6 +10,7 @@ export const TOOL_TIME_SERIES_VIZ_DESCRIPTION = `Use this tool to generate a Tim
9
10
  export const toolTimeSeriesArgsSchema = createToolSchema(AiResultType.TIME_SERIES_RESULT, TOOL_TIME_SERIES_VIZ_DESCRIPTION)
10
11
  .extend({
11
12
  ...visualizationMetadataSchema.shape,
13
+ customMetrics: customMetricsSchema,
12
14
  vizConfig: timeSeriesMetricVizConfigSchema,
13
15
  filters: filtersSchema
14
16
  .nullable()
@@ -28,6 +30,8 @@ export const toolTimeSeriesArgsSchemaTransformed = toolTimeSeriesArgsSchema
28
30
  xAxisLabel: z.string().default(''),
29
31
  yAxisLabel: z.string().default(''),
30
32
  }),
33
+ // backwards compatibility for old viz configs without customMetrics
34
+ customMetrics: customMetricsSchema.default(null),
31
35
  })
32
36
  .transform((data) => ({
33
37
  ...data,
@@ -1 +1 @@
1
- {"version":3,"file":"toolTimeSeriesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,2BAA2B,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAElF,MAAM,CAAC,MAAM,gCAAgC,GAAG,gDAAgD,CAAC;AAEjG,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB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