@lightdash/common 0.1969.1 → 0.1970.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.
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.js +50 -0
- package/dist/cjs/ee/AiAgent/schemas/customMetrics.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts +106 -6
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/index.js +1 -0
- package/dist/cjs/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js +8 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +4 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +8 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.js +2 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +2 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.js +2 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -1
- package/dist/cjs/ee/AiAgent/types.d.ts +4 -2
- package/dist/cjs/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.d.ts +24 -3
- package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/utils.js +18 -3
- package/dist/cjs/ee/AiAgent/utils.js.map +1 -1
- package/dist/cjs/utils/additionalMetrics.d.ts +7 -1
- package/dist/cjs/utils/additionalMetrics.d.ts.map +1 -1
- package/dist/cjs/utils/additionalMetrics.js +36 -1
- package/dist/cjs/utils/additionalMetrics.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
- package/dist/esm/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/customMetrics.js +47 -0
- package/dist/esm/ee/AiAgent/schemas/customMetrics.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +106 -6
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.js +1 -0
- package/dist/esm/ee/AiAgent/schemas/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js +8 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTableVizArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +4 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js +8 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.js +2 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/tableViz.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +2 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.js +2 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.js.map +1 -1
- package/dist/esm/ee/AiAgent/types.d.ts +4 -2
- package/dist/esm/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/utils.d.ts +24 -3
- package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/utils.js +18 -3
- package/dist/esm/ee/AiAgent/utils.js.map +1 -1
- package/dist/esm/utils/additionalMetrics.d.ts +7 -1
- package/dist/esm/utils/additionalMetrics.d.ts.map +1 -1
- package/dist/esm/utils/additionalMetrics.js +34 -0
- package/dist/esm/utils/additionalMetrics.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts +42 -0
- package/dist/types/ee/AiAgent/schemas/customMetrics.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/index.d.ts +106 -6
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts +87 -7
- package/dist/types/ee/AiAgent/schemas/tools/toolTableVizArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +86 -6
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +87 -7
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.d.ts +7 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/tableViz.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +7 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +7 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/types.d.ts +4 -2
- package/dist/types/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/utils.d.ts +24 -3
- package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/types/utils/additionalMetrics.d.ts +7 -1
- package/dist/types/utils/additionalMetrics.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolTimeSeriesArgs.d.ts","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;
|
|
1
|
+
{"version":3,"file":"toolTimeSeriesArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAazC,CAAC;AAER,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC7C,CAAC"}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const followUpTools_1 = require("../../followUpTools");
|
|
7
7
|
const types_1 = require("../../types");
|
|
8
|
+
const customMetrics_1 = require("../customMetrics");
|
|
8
9
|
const filters_1 = require("../filters");
|
|
9
10
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
10
11
|
const visualizationMetadata_1 = tslib_1.__importDefault(require("../visualizationMetadata"));
|
|
@@ -13,6 +14,7 @@ exports.TOOL_TIME_SERIES_VIZ_DESCRIPTION = `Use this tool to generate a Time Ser
|
|
|
13
14
|
exports.toolTimeSeriesArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(types_1.AiResultType.TIME_SERIES_RESULT, exports.TOOL_TIME_SERIES_VIZ_DESCRIPTION)
|
|
14
15
|
.extend({
|
|
15
16
|
...visualizationMetadata_1.default.shape,
|
|
17
|
+
customMetrics: customMetrics_1.customMetricsSchema,
|
|
16
18
|
vizConfig: timeSeriesViz_1.timeSeriesMetricVizConfigSchema,
|
|
17
19
|
filters: filters_1.filtersSchema
|
|
18
20
|
.nullable()
|
|
@@ -32,6 +34,8 @@ exports.toolTimeSeriesArgsSchemaTransformed = exports.toolTimeSeriesArgsSchema
|
|
|
32
34
|
xAxisLabel: zod_1.z.string().default(''),
|
|
33
35
|
yAxisLabel: zod_1.z.string().default(''),
|
|
34
36
|
}),
|
|
37
|
+
// backwards compatibility for old viz configs without customMetrics
|
|
38
|
+
customMetrics: customMetrics_1.customMetricsSchema.default(null),
|
|
35
39
|
})
|
|
36
40
|
.transform((data) => ({
|
|
37
41
|
...data,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolTimeSeriesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,mEAAkF;AAErE,QAAA,gCAAgC,GAAG,gDAAgD,CAAC;AAEpF,QAAA,wBAAwB,GAAG,IAAA,oCAAgB,EACpD,oBAAY,CAAC,kBAAkB,EAC/B,wCAAgC,CACnC;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,SAAS,EAAE,+CAA+B;IAC1C,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;IACL,aAAa,EAAE,OAAC;SACX,KAAK,CACF,OAAC,CAAC,KAAK,CAAC;QACJ,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,gBAAgB,CAAC;QACzC,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wFAAwF,6BAAa,CAAC,wBAAwB,gBAAgB,CACjJ;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,mCAAmC,GAAG,gCAAwB;KACtE,MAAM,CAAC;IACJ,8CAA8C;IAC9C,SAAS,EAAE,+CAA+B,CAAC,MAAM,CAAC;QAC9C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;KACrC,CAAC;
|
|
1
|
+
{"version":3,"file":"toolTimeSeriesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,oDAAuD;AACvD,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,mEAAkF;AAErE,QAAA,gCAAgC,GAAG,gDAAgD,CAAC;AAEpF,QAAA,wBAAwB,GAAG,IAAA,oCAAgB,EACpD,oBAAY,CAAC,kBAAkB,EAC/B,wCAAgC,CACnC;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,aAAa,EAAE,mCAAmB;IAClC,SAAS,EAAE,+CAA+B;IAC1C,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;IACL,aAAa,EAAE,OAAC;SACX,KAAK,CACF,OAAC,CAAC,KAAK,CAAC;QACJ,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,gBAAgB,CAAC;QACzC,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wFAAwF,6BAAa,CAAC,wBAAwB,gBAAgB,CACjJ;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,mCAAmC,GAAG,gCAAwB;KACtE,MAAM,CAAC;IACJ,8CAA8C;IAC9C,SAAS,EAAE,+CAA+B,CAAC,MAAM,CAAC;QAC9C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;KACrC,CAAC;IACF,oEAAoE;IACpE,aAAa,EAAE,mCAAmB,CAAC,OAAO,CAAC,IAAI,CAAC;CACnD,CAAC;KACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAClB,GAAG,IAAI;IACP,OAAO,EAAE,kCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;CACxD,CAAC,CAAC,CAAC"}
|
|
@@ -5,6 +5,25 @@ export declare const TOOL_VERTICAL_BAR_VIZ_DESCRIPTION = "Use this tool to gener
|
|
|
5
5
|
export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
6
6
|
type: z.ZodLiteral<AiResultType.VERTICAL_BAR_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;
|
|
@@ -1191,6 +1210,14 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
1191
1210
|
})[] | null;
|
|
1192
1211
|
type: "and" | "or";
|
|
1193
1212
|
} | null;
|
|
1213
|
+
customMetrics: {
|
|
1214
|
+
name: string;
|
|
1215
|
+
label: string;
|
|
1216
|
+
table: string;
|
|
1217
|
+
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;
|
|
1218
|
+
baseDimensionName: string;
|
|
1219
|
+
}[] | null;
|
|
1220
|
+
title: string;
|
|
1194
1221
|
vizConfig: {
|
|
1195
1222
|
limit: number | null;
|
|
1196
1223
|
exploreName: string;
|
|
@@ -1207,7 +1234,6 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
1207
1234
|
stackBars: boolean | null;
|
|
1208
1235
|
xAxisType: "time" | "category";
|
|
1209
1236
|
};
|
|
1210
|
-
title: string;
|
|
1211
1237
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
1212
1238
|
}, {
|
|
1213
1239
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
|
@@ -1393,6 +1419,14 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
1393
1419
|
})[] | null;
|
|
1394
1420
|
type: "and" | "or";
|
|
1395
1421
|
} | null;
|
|
1422
|
+
customMetrics: {
|
|
1423
|
+
name: string;
|
|
1424
|
+
label: string;
|
|
1425
|
+
table: string;
|
|
1426
|
+
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;
|
|
1427
|
+
baseDimensionName: string;
|
|
1428
|
+
}[] | null;
|
|
1429
|
+
title: string;
|
|
1396
1430
|
vizConfig: {
|
|
1397
1431
|
limit: number | null;
|
|
1398
1432
|
exploreName: string;
|
|
@@ -1409,13 +1443,11 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
1409
1443
|
stackBars: boolean | null;
|
|
1410
1444
|
xAxisType: "time" | "category";
|
|
1411
1445
|
};
|
|
1412
|
-
title: string;
|
|
1413
1446
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
1414
1447
|
}>;
|
|
1415
1448
|
export type ToolVerticalBarArgs = z.infer<typeof toolVerticalBarArgsSchema>;
|
|
1416
1449
|
export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObject<{
|
|
1417
1450
|
type: z.ZodLiteral<AiResultType.VERTICAL_BAR_RESULT>;
|
|
1418
|
-
} & {
|
|
1419
1451
|
vizConfig: z.ZodObject<{
|
|
1420
1452
|
exploreName: z.ZodString;
|
|
1421
1453
|
xDimension: z.ZodString;
|
|
@@ -2418,6 +2450,26 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2418
2450
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
|
2419
2451
|
title: z.ZodString;
|
|
2420
2452
|
description: z.ZodString;
|
|
2453
|
+
} & {
|
|
2454
|
+
customMetrics: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2455
|
+
name: z.ZodString;
|
|
2456
|
+
label: z.ZodString;
|
|
2457
|
+
baseDimensionName: z.ZodString;
|
|
2458
|
+
table: z.ZodString;
|
|
2459
|
+
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]>;
|
|
2460
|
+
}, "strip", z.ZodTypeAny, {
|
|
2461
|
+
name: string;
|
|
2462
|
+
label: string;
|
|
2463
|
+
table: string;
|
|
2464
|
+
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;
|
|
2465
|
+
baseDimensionName: string;
|
|
2466
|
+
}, {
|
|
2467
|
+
name: string;
|
|
2468
|
+
label: string;
|
|
2469
|
+
table: string;
|
|
2470
|
+
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;
|
|
2471
|
+
baseDimensionName: string;
|
|
2472
|
+
}>, "many">>>;
|
|
2421
2473
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2422
2474
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
|
2423
2475
|
description: string;
|
|
@@ -2602,6 +2654,14 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2602
2654
|
})[] | null;
|
|
2603
2655
|
type: "and" | "or";
|
|
2604
2656
|
} | null;
|
|
2657
|
+
customMetrics: {
|
|
2658
|
+
name: string;
|
|
2659
|
+
label: string;
|
|
2660
|
+
table: string;
|
|
2661
|
+
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;
|
|
2662
|
+
baseDimensionName: string;
|
|
2663
|
+
}[] | null;
|
|
2664
|
+
title: string;
|
|
2605
2665
|
vizConfig: {
|
|
2606
2666
|
limit: number | null;
|
|
2607
2667
|
exploreName: string;
|
|
@@ -2618,7 +2678,6 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2618
2678
|
stackBars: boolean | null;
|
|
2619
2679
|
xAxisType: "time" | "category";
|
|
2620
2680
|
};
|
|
2621
|
-
title: string;
|
|
2622
2681
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2623
2682
|
}, {
|
|
2624
2683
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
|
@@ -2804,6 +2863,7 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2804
2863
|
})[] | null;
|
|
2805
2864
|
type: "and" | "or";
|
|
2806
2865
|
} | null;
|
|
2866
|
+
title: string;
|
|
2807
2867
|
vizConfig: {
|
|
2808
2868
|
limit: number | null;
|
|
2809
2869
|
exploreName: string;
|
|
@@ -2820,12 +2880,26 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2820
2880
|
stackBars: boolean | null;
|
|
2821
2881
|
xAxisType: "time" | "category";
|
|
2822
2882
|
};
|
|
2823
|
-
title: string;
|
|
2824
2883
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2884
|
+
customMetrics?: {
|
|
2885
|
+
name: string;
|
|
2886
|
+
label: string;
|
|
2887
|
+
table: string;
|
|
2888
|
+
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;
|
|
2889
|
+
baseDimensionName: string;
|
|
2890
|
+
}[] | null | undefined;
|
|
2825
2891
|
}>, {
|
|
2826
2892
|
filters: import("../../../..").Filters;
|
|
2827
2893
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
|
2828
2894
|
description: string;
|
|
2895
|
+
customMetrics: {
|
|
2896
|
+
name: string;
|
|
2897
|
+
label: string;
|
|
2898
|
+
table: string;
|
|
2899
|
+
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;
|
|
2900
|
+
baseDimensionName: string;
|
|
2901
|
+
}[] | null;
|
|
2902
|
+
title: string;
|
|
2829
2903
|
vizConfig: {
|
|
2830
2904
|
limit: number | null;
|
|
2831
2905
|
exploreName: string;
|
|
@@ -2842,7 +2916,6 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2842
2916
|
stackBars: boolean | null;
|
|
2843
2917
|
xAxisType: "time" | "category";
|
|
2844
2918
|
};
|
|
2845
|
-
title: string;
|
|
2846
2919
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2847
2920
|
}, {
|
|
2848
2921
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
|
@@ -3028,6 +3101,7 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
3028
3101
|
})[] | null;
|
|
3029
3102
|
type: "and" | "or";
|
|
3030
3103
|
} | null;
|
|
3104
|
+
title: string;
|
|
3031
3105
|
vizConfig: {
|
|
3032
3106
|
limit: number | null;
|
|
3033
3107
|
exploreName: string;
|
|
@@ -3044,8 +3118,14 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
3044
3118
|
stackBars: boolean | null;
|
|
3045
3119
|
xAxisType: "time" | "category";
|
|
3046
3120
|
};
|
|
3047
|
-
title: string;
|
|
3048
3121
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
3122
|
+
customMetrics?: {
|
|
3123
|
+
name: string;
|
|
3124
|
+
label: string;
|
|
3125
|
+
table: string;
|
|
3126
|
+
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;
|
|
3127
|
+
baseDimensionName: string;
|
|
3128
|
+
}[] | null | undefined;
|
|
3049
3129
|
}>;
|
|
3050
3130
|
export type ToolVerticalBarArgsTransformed = z.infer<typeof toolVerticalBarArgsSchemaTransformed>;
|
|
3051
3131
|
//# sourceMappingURL=toolVerticalBarArgs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolVerticalBarArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolVerticalBarArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ1C,CAAC;AAER,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,oCAAoC,CAC9C,CAAC"}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const followUpTools_1 = require("../../followUpTools");
|
|
7
7
|
const types_1 = require("../../types");
|
|
8
|
+
const customMetrics_1 = require("../customMetrics");
|
|
8
9
|
const filters_1 = require("../filters");
|
|
9
10
|
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
|
|
10
11
|
const visualizationMetadata_1 = tslib_1.__importDefault(require("../visualizationMetadata"));
|
|
@@ -13,6 +14,7 @@ exports.TOOL_VERTICAL_BAR_VIZ_DESCRIPTION = `Use this tool to generate a Bar Cha
|
|
|
13
14
|
exports.toolVerticalBarArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(types_1.AiResultType.VERTICAL_BAR_RESULT, exports.TOOL_VERTICAL_BAR_VIZ_DESCRIPTION)
|
|
14
15
|
.extend({
|
|
15
16
|
...visualizationMetadata_1.default.shape,
|
|
17
|
+
customMetrics: customMetrics_1.customMetricsSchema,
|
|
16
18
|
vizConfig: visualizations_1.verticalBarMetricVizConfigSchema,
|
|
17
19
|
filters: filters_1.filtersSchema
|
|
18
20
|
.nullable()
|
|
@@ -25,7 +27,12 @@ exports.toolVerticalBarArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)(ty
|
|
|
25
27
|
.describe(`The actions the User can ask for after the AI has generated the chart. NEVER include ${followUpTools_1.FollowUpTools.GENERATE_BAR_VIZ} in this list.`),
|
|
26
28
|
})
|
|
27
29
|
.build();
|
|
28
|
-
exports.toolVerticalBarArgsSchemaTransformed = exports.toolVerticalBarArgsSchema
|
|
30
|
+
exports.toolVerticalBarArgsSchemaTransformed = exports.toolVerticalBarArgsSchema
|
|
31
|
+
.extend({
|
|
32
|
+
// backwards compatibility for old viz configs without customMetrics
|
|
33
|
+
customMetrics: customMetrics_1.customMetricsSchema.default(null),
|
|
34
|
+
})
|
|
35
|
+
.transform((data) => ({
|
|
29
36
|
...data,
|
|
30
37
|
filters: filters_1.filtersSchemaTransformed.parse(data.filters),
|
|
31
38
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolVerticalBarArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolVerticalBarArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,sDAAqE;AAExD,QAAA,iCAAiC,GAAG,sDAAsD,CAAC;AAE3F,QAAA,yBAAyB,GAAG,IAAA,oCAAgB,EACrD,oBAAY,CAAC,mBAAmB,EAChC,yCAAiC,CACpC;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,SAAS,EAAE,iDAAgC;IAC3C,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;IACL,aAAa,EAAE,OAAC;SACX,KAAK,CACF,OAAC,CAAC,KAAK,CAAC;QACJ,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,gBAAgB,CAAC;QACzC,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wFAAwF,6BAAa,CAAC,gBAAgB,gBAAgB,CACzI;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,oCAAoC,
|
|
1
|
+
{"version":3,"file":"toolVerticalBarArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolVerticalBarArgs.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AACxB,uDAAoD;AACpD,uCAA2C;AAC3C,oDAAuD;AACvD,wCAAqE;AACrE,4DAAwD;AACxD,6FAAmE;AACnE,sDAAqE;AAExD,QAAA,iCAAiC,GAAG,sDAAsD,CAAC;AAE3F,QAAA,yBAAyB,GAAG,IAAA,oCAAgB,EACrD,oBAAY,CAAC,mBAAmB,EAChC,yCAAiC,CACpC;KACI,MAAM,CAAC;IACJ,GAAG,+BAA2B,CAAC,KAAK;IACpC,aAAa,EAAE,mCAAmB;IAClC,SAAS,EAAE,iDAAgC;IAC3C,OAAO,EAAE,uBAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CACL,oFAAoF,CACvF;IACL,aAAa,EAAE,OAAC;SACX,KAAK,CACF,OAAC,CAAC,KAAK,CAAC;QACJ,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,gBAAgB,CAAC;QACzC,OAAC,CAAC,OAAO,CAAC,6BAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wFAAwF,6BAAa,CAAC,gBAAgB,gBAAgB,CACzI;CACR,CAAC;KACD,KAAK,EAAE,CAAC;AAIA,QAAA,oCAAoC,GAAG,iCAAyB;KACxE,MAAM,CAAC;IACJ,oEAAoE;IACpE,aAAa,EAAE,mCAAmB,CAAC,OAAO,CAAC,IAAI,CAAC;CACnD,CAAC;KACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAClB,GAAG,IAAI;IACP,OAAO,EAAE,kCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;CACxD,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { Filters } from '../../../../types/filter';
|
|
3
3
|
import type { AiMetricQueryWithFilters } from '../../types';
|
|
4
|
+
import type { ToolTableVizArgsTransformed } from '../tools';
|
|
4
5
|
export declare const tableVizConfigSchema: z.ZodObject<{
|
|
5
6
|
exploreName: z.ZodString;
|
|
6
7
|
metrics: z.ZodArray<z.ZodString, "many">;
|
|
@@ -41,5 +42,10 @@ export declare const tableVizConfigSchema: z.ZodObject<{
|
|
|
41
42
|
}[];
|
|
42
43
|
}>;
|
|
43
44
|
export type TableVizConfigSchemaType = z.infer<typeof tableVizConfigSchema>;
|
|
44
|
-
export declare const metricQueryTableViz: (vizConfig
|
|
45
|
+
export declare const metricQueryTableViz: ({ vizConfig, filters, maxLimit, customMetrics, }: {
|
|
46
|
+
vizConfig: TableVizConfigSchemaType;
|
|
47
|
+
filters: Filters;
|
|
48
|
+
maxLimit: number;
|
|
49
|
+
customMetrics: ToolTableVizArgsTransformed["customMetrics"] | null;
|
|
50
|
+
}) => AiMetricQueryWithFilters;
|
|
45
51
|
//# sourceMappingURL=tableViz.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableViz.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/tableViz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tableViz.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/tableViz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAI5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8B5B,CAAC;AAEN,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,qDAK7B;IACC,SAAS,EAAE,wBAAwB,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,2BAA2B,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;CACtE,KAAG,wBAWF,CAAC"}
|
|
@@ -26,7 +26,7 @@ exports.tableVizConfigSchema = zod_1.z
|
|
|
26
26
|
.describe('The maximum number of rows in the table.'),
|
|
27
27
|
})
|
|
28
28
|
.describe('Configuration file for generating a table from a query with metrics and dimensions');
|
|
29
|
-
const metricQueryTableViz = (vizConfig, filters, maxLimit) => ({
|
|
29
|
+
const metricQueryTableViz = ({ vizConfig, filters, maxLimit, customMetrics, }) => ({
|
|
30
30
|
exploreName: vizConfig.exploreName,
|
|
31
31
|
metrics: vizConfig.metrics,
|
|
32
32
|
dimensions: vizConfig.dimensions || [],
|
|
@@ -36,6 +36,7 @@ const metricQueryTableViz = (vizConfig, filters, maxLimit) => ({
|
|
|
36
36
|
})),
|
|
37
37
|
limit: (0, validators_1.getValidAiQueryLimit)(vizConfig.limit, maxLimit),
|
|
38
38
|
filters,
|
|
39
|
+
additionalMetrics: customMetrics ?? [],
|
|
39
40
|
});
|
|
40
41
|
exports.metricQueryTableViz = metricQueryTableViz;
|
|
41
42
|
//# sourceMappingURL=tableViz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableViz.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/tableViz.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AAGxB,iDAAwD;AACxD,wCAA8C;AAC9C,qEAA2C;
|
|
1
|
+
{"version":3,"file":"tableViz.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/tableViz.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AAGxB,iDAAwD;AACxD,wCAA8C;AAC9C,qEAA2C;AAG9B,QAAA,oBAAoB,GAAG,OAAC;KAChC,MAAM,CAAC;IACJ,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,CACL,oFAAoF,CACvF;IACL,OAAO,EAAE,OAAC;SACL,KAAK,CAAC,IAAA,0BAAgB,EAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;SACxD,QAAQ,CACL,sGAAsG,CACzG;IACL,UAAU,EAAE,OAAC;SACR,KAAK,CAAC,IAAA,0BAAgB,EAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;SACxD,QAAQ,CACL,yDAAyD,CAC5D;IACL,KAAK,EAAE,OAAC;SACH,KAAK,CAAC,mBAAe,CAAC;SACtB,QAAQ,CACL,uFAAuF,CAC1F;IAEL,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0CAA0C,CAAC;CAC5D,CAAC;KACD,QAAQ,CACL,oFAAoF,CACvF,CAAC;AAIC,MAAM,mBAAmB,GAAG,CAAC,EAChC,SAAS,EACT,OAAO,EACP,QAAQ,EACR,aAAa,GAMhB,EAA4B,EAAE,CAAC,CAAC;IAC7B,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,UAAU,EAAE,SAAS,CAAC,UAAU,IAAI,EAAE;IACtC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAClC,GAAG,IAAI;QACP,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;KAC3C,CAAC,CAAC;IACH,KAAK,EAAE,IAAA,iCAAoB,EAAC,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC;IACtD,OAAO;IACP,iBAAiB,EAAE,aAAa,IAAI,EAAE;CACzC,CAAC,CAAC;AArBU,QAAA,mBAAmB,uBAqB7B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { Filters } from '../../../../types/filter';
|
|
3
3
|
import type { AiMetricQueryWithFilters } from '../../types';
|
|
4
|
+
import type { ToolTimeSeriesArgsTransformed } from '../tools';
|
|
4
5
|
export declare const timeSeriesMetricVizConfigSchema: z.ZodObject<{
|
|
5
6
|
exploreName: z.ZodString;
|
|
6
7
|
xDimension: z.ZodString;
|
|
@@ -53,5 +54,10 @@ export declare const timeSeriesMetricVizConfigSchema: z.ZodObject<{
|
|
|
53
54
|
yAxisLabel: string | null;
|
|
54
55
|
}>;
|
|
55
56
|
export type TimeSeriesMetricVizConfigSchemaType = z.infer<typeof timeSeriesMetricVizConfigSchema>;
|
|
56
|
-
export declare const metricQueryTimeSeriesViz: (vizConfig
|
|
57
|
+
export declare const metricQueryTimeSeriesViz: ({ vizConfig, filters, maxLimit, customMetrics, }: {
|
|
58
|
+
vizConfig: TimeSeriesMetricVizConfigSchemaType;
|
|
59
|
+
filters: Filters;
|
|
60
|
+
maxLimit: number;
|
|
61
|
+
customMetrics: ToolTimeSeriesArgsTransformed["customMetrics"] | null;
|
|
62
|
+
}) => AiMetricQueryWithFilters;
|
|
57
63
|
//# sourceMappingURL=timeSeriesViz.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeSeriesViz.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/timeSeriesViz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"timeSeriesViz.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/timeSeriesViz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAI5D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAE9D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2C1C,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,+BAA+B,CACzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,qDAKlC;IACC,SAAS,EAAE,mCAAmC,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,6BAA6B,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;CACxE,KAAG,wBAsBH,CAAC"}
|
|
@@ -41,7 +41,7 @@ exports.timeSeriesMetricVizConfigSchema = zod_1.z.object({
|
|
|
41
41
|
.nullable()
|
|
42
42
|
.describe('A helpful label to explain the y-axis'),
|
|
43
43
|
});
|
|
44
|
-
const metricQueryTimeSeriesViz = (vizConfig, filters, maxLimit) => {
|
|
44
|
+
const metricQueryTimeSeriesViz = ({ vizConfig, filters, maxLimit, customMetrics, }) => {
|
|
45
45
|
const metrics = vizConfig.yMetrics;
|
|
46
46
|
const dimensions = [
|
|
47
47
|
vizConfig.xDimension,
|
|
@@ -60,6 +60,7 @@ const metricQueryTimeSeriesViz = (vizConfig, filters, maxLimit) => {
|
|
|
60
60
|
})),
|
|
61
61
|
exploreName: vizConfig.exploreName,
|
|
62
62
|
filters,
|
|
63
|
+
additionalMetrics: customMetrics ?? [],
|
|
63
64
|
};
|
|
64
65
|
};
|
|
65
66
|
exports.metricQueryTimeSeriesViz = metricQueryTimeSeriesViz;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeSeriesViz.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/timeSeriesViz.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AAExB,+CAA6D;AAE7D,iDAAwD;AACxD,wCAA8C;AAC9C,qEAA2C;
|
|
1
|
+
{"version":3,"file":"timeSeriesViz.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/timeSeriesViz.ts"],"names":[],"mappings":";;;;AAAA,6BAAwB;AAExB,+CAA6D;AAE7D,iDAAwD;AACxD,wCAA8C;AAC9C,qEAA2C;AAG9B,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,CACL,mFAAmF,CACtF;IACL,UAAU,EAAE,IAAA,0BAAgB,EAAC;QACzB,qBAAqB,EACjB,mEAAmE;KAC1E,CAAC;IACF,QAAQ,EAAE,OAAC;SACN,KAAK,CAAC,IAAA,0BAAgB,EAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;SACxD,G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K,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACxB,GAAG,IAAI;YACP,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;SAC3C,CAAC,CAAC;QACH,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,OAAO;QACP,iBAAiB,EAAE,aAAa,IAAI,EAAE;KACzC,CAAC;AACN,CAAC,CAAC;AAhCW,QAAA,wBAAwB,4BAgCnC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { Filters } from '../../../../types/filter';
|
|
3
3
|
import type { AiMetricQueryWithFilters } from '../../types';
|
|
4
|
+
import type { ToolVerticalBarArgsTransformed } from '../tools';
|
|
4
5
|
export declare const verticalBarMetricVizConfigSchema: z.ZodObject<{
|
|
5
6
|
exploreName: z.ZodString;
|
|
6
7
|
xDimension: z.ZodString;
|
|
@@ -56,5 +57,10 @@ export declare const verticalBarMetricVizConfigSchema: z.ZodObject<{
|
|
|
56
57
|
xAxisType: "time" | "category";
|
|
57
58
|
}>;
|
|
58
59
|
export type VerticalBarMetricVizConfigSchemaType = z.infer<typeof verticalBarMetricVizConfigSchema>;
|
|
59
|
-
export declare const metricQueryVerticalBarViz: (vizConfig
|
|
60
|
+
export declare const metricQueryVerticalBarViz: ({ vizConfig, filters, maxLimit, customMetrics, }: {
|
|
61
|
+
vizConfig: VerticalBarMetricVizConfigSchemaType;
|
|
62
|
+
filters: Filters;
|
|
63
|
+
maxLimit: number;
|
|
64
|
+
customMetrics: ToolVerticalBarArgsTransformed["customMetrics"] | null;
|
|
65
|
+
}) => AiMetricQueryWithFilters;
|
|
60
66
|
//# sourceMappingURL=verticalBarViz.d.ts.map
|