@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.
- 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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAO3C,eAAO,MAAM,gCAAgC,mDAAmD,CAAC;AAEjG,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC"}
|
@@ -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,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":"toolVerticalBarArgs.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolVerticalBarArgs.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;AAO3C,eAAO,MAAM,iCAAiC,yDAAyD,CAAC;AAExG,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,CAC9C,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"}
|
@@ -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"}
|
@@ -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
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"verticalBarViz.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/verticalBarViz.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":"verticalBarViz.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/verticalBarViz.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,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAE/D,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmD3C,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,gCAAgC,CAC1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,qDAKnC;IACC,SAAS,EAAE,oCAAoC,CAAC;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,8BAA8B,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;CACzE,KAAG,wBAqBH,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Filters } from '../../types/filter';
|
2
|
-
import type { MetricQuery } from '../../types/metricQuery';
|
2
|
+
import type { AdditionalMetric, MetricQuery } from '../../types/metricQuery';
|
3
3
|
import type { ToolTableVizArgs, ToolTimeSeriesArgs, ToolVerticalBarArgs } from './schemas/tools';
|
4
4
|
export declare enum AiResultType {
|
5
5
|
TIME_SERIES_RESULT = "time_series_chart",
|
@@ -7,7 +7,9 @@ export declare enum AiResultType {
|
|
7
7
|
ONE_LINE_RESULT = "one_line_result",
|
8
8
|
TABLE_RESULT = "table"
|
9
9
|
}
|
10
|
-
export type AiMetricQuery = Pick<MetricQuery, 'metrics' | 'dimensions' | 'sorts' | 'limit' | 'exploreName'
|
10
|
+
export type AiMetricQuery = Pick<MetricQuery, 'metrics' | 'dimensions' | 'sorts' | 'limit' | 'exploreName'> & {
|
11
|
+
additionalMetrics: Omit<AdditionalMetric, 'sql'>[];
|
12
|
+
};
|
11
13
|
export type AiMetricQueryWithFilters = AiMetricQuery & {
|
12
14
|
filters: Filters;
|
13
15
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ee/AiAgent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ee/AiAgent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EACR,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,YAAY;IACpB,kBAAkB,sBAAsB;IACxC,mBAAmB,uBAAuB;IAC1C,eAAe,oBAAoB;IACnC,YAAY,UAAU;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,WAAW,EACX,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAC/D,GAAG;IACA,iBAAiB,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG;IACnD,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACtB;IACI,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,mBAAmB,CAAC;CAC/B,GACD;IACI,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,kBAAkB,CAAC;CAC9B,GACD;IACI,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;CAC5B,CAAC"}
|
@@ -5,6 +5,14 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
5
5
|
filters: import("../..").Filters;
|
6
6
|
type: AiResultType.VERTICAL_BAR_RESULT;
|
7
7
|
description: string;
|
8
|
+
customMetrics: {
|
9
|
+
name: string;
|
10
|
+
label: string;
|
11
|
+
table: string;
|
12
|
+
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;
|
13
|
+
baseDimensionName: string;
|
14
|
+
}[] | null;
|
15
|
+
title: string;
|
8
16
|
vizConfig: {
|
9
17
|
limit: number | null;
|
10
18
|
exploreName: string;
|
@@ -21,7 +29,6 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
21
29
|
stackBars: boolean | null;
|
22
30
|
xAxisType: "time" | "category";
|
23
31
|
};
|
24
|
-
title: string;
|
25
32
|
followUpTools: (import("./followUpTools").FollowUpTools.GENERATE_BAR_VIZ | import("./followUpTools").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
26
33
|
};
|
27
34
|
readonly metricQuery: import("./types").AiMetricQueryWithFilters;
|
@@ -31,6 +38,14 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
31
38
|
filters: import("../..").Filters;
|
32
39
|
type: AiResultType.TIME_SERIES_RESULT;
|
33
40
|
description: string;
|
41
|
+
customMetrics: {
|
42
|
+
name: string;
|
43
|
+
label: string;
|
44
|
+
table: string;
|
45
|
+
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;
|
46
|
+
baseDimensionName: string;
|
47
|
+
}[] | null;
|
48
|
+
title: string;
|
34
49
|
vizConfig: {
|
35
50
|
limit: number | null;
|
36
51
|
exploreName: string;
|
@@ -46,7 +61,6 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
46
61
|
xAxisLabel: string;
|
47
62
|
yAxisLabel: string;
|
48
63
|
};
|
49
|
-
title: string;
|
50
64
|
followUpTools: (import("./followUpTools").FollowUpTools.GENERATE_BAR_VIZ | import("./followUpTools").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
51
65
|
};
|
52
66
|
readonly metricQuery: import("./types").AiMetricQueryWithFilters;
|
@@ -56,6 +70,14 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
56
70
|
filters: import("../..").Filters;
|
57
71
|
type: AiResultType.TABLE_RESULT;
|
58
72
|
description: string;
|
73
|
+
customMetrics: {
|
74
|
+
name: string;
|
75
|
+
label: string;
|
76
|
+
table: string;
|
77
|
+
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;
|
78
|
+
baseDimensionName: string;
|
79
|
+
}[] | null;
|
80
|
+
title: string;
|
59
81
|
vizConfig: {
|
60
82
|
dimensions: string[];
|
61
83
|
metrics: string[];
|
@@ -67,7 +89,6 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
67
89
|
nullsFirst: boolean | null;
|
68
90
|
}[];
|
69
91
|
};
|
70
|
-
title: string;
|
71
92
|
followUpTools: (import("./followUpTools").FollowUpTools.GENERATE_BAR_VIZ | import("./followUpTools").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
72
93
|
};
|
73
94
|
readonly metricQuery: import("./types").AiMetricQueryWithFilters;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ee/AiAgent/utils.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,qBACL,MAAM,GAAG,IAAI,aACpB,MAAM,GAAG,SAAS
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ee/AiAgent/utils.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,qBACL,MAAM,GAAG,IAAI,aACpB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2DhC,CAAC"}
|
@@ -1,10 +1,16 @@
|
|
1
1
|
import { type CompiledTable } from '../types/explore';
|
2
|
-
import { type Metric } from '../types/field';
|
2
|
+
import { DimensionType, MetricType, type Metric } from '../types/field';
|
3
3
|
import { type AdditionalMetric } from '../types/metricQuery';
|
4
4
|
type ConvertAdditionalMetricArgs = {
|
5
5
|
additionalMetric: AdditionalMetric;
|
6
6
|
table: CompiledTable;
|
7
7
|
};
|
8
8
|
export declare const convertAdditionalMetric: ({ additionalMetric, table, }: ConvertAdditionalMetricArgs) => Metric;
|
9
|
+
/**
|
10
|
+
* Get the custom metric types for a given dimension type
|
11
|
+
* @param type
|
12
|
+
* @returns
|
13
|
+
*/
|
14
|
+
export declare const getCustomMetricType: (type: DimensionType) => MetricType[];
|
9
15
|
export {};
|
10
16
|
//# sourceMappingURL=additionalMetrics.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"additionalMetrics.d.ts","sourceRoot":"","sources":["../../../src/utils/additionalMetrics.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"additionalMetrics.d.ts","sourceRoot":"","sources":["../../../src/utils/additionalMetrics.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,KAAK,2BAA2B,GAAG;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,uBAAuB,iCAGjC,2BAA2B,KAAG,MAkBhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,SAAU,aAAa,KAAG,UAAU,EA2BnE,CAAC"}
|