@lightdash/common 0.1795.0 → 0.1796.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/index.d.ts +18 -8
- package/dist/cjs/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +66 -41
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +9 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +20 -20
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +6 -0
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +8 -0
- package/dist/cjs/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +4 -4
- package/dist/cjs/ee/AiAgent/utils.d.ts +4 -2
- package/dist/cjs/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/index.d.ts +18 -8
- package/dist/esm/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +66 -41
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js +9 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +20 -20
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +6 -0
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js +8 -0
- package/dist/esm/ee/AiAgent/schemas/visualizations/timeSeriesViz.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +4 -4
- package/dist/esm/ee/AiAgent/utils.d.ts +4 -2
- package/dist/esm/ee/AiAgent/utils.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/index.d.ts +18 -8
- package/dist/types/ee/AiAgent/schemas/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts +66 -41
- package/dist/types/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolVerticalBarArgs.d.ts +20 -20
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts +6 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/timeSeriesViz.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/visualizations/verticalBarViz.d.ts +4 -4
- package/dist/types/ee/AiAgent/utils.d.ts +4 -2
- package/dist/types/ee/AiAgent/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -46,10 +46,10 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
46
46
|
xDimension: string;
|
|
47
47
|
yMetrics: string[];
|
|
48
48
|
breakdownByDimension: string | null;
|
|
49
|
-
stackBars: boolean | null;
|
|
50
|
-
xAxisType: "time" | "category";
|
|
51
49
|
xAxisLabel: string | null;
|
|
52
50
|
yAxisLabel: string | null;
|
|
51
|
+
stackBars: boolean | null;
|
|
52
|
+
xAxisType: "time" | "category";
|
|
53
53
|
}, {
|
|
54
54
|
limit: number | null;
|
|
55
55
|
exploreName: string;
|
|
@@ -60,10 +60,10 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
60
60
|
xDimension: string;
|
|
61
61
|
yMetrics: string[];
|
|
62
62
|
breakdownByDimension: string | null;
|
|
63
|
-
stackBars: boolean | null;
|
|
64
|
-
xAxisType: "time" | "category";
|
|
65
63
|
xAxisLabel: string | null;
|
|
66
64
|
yAxisLabel: string | null;
|
|
65
|
+
stackBars: boolean | null;
|
|
66
|
+
xAxisType: "time" | "category";
|
|
67
67
|
}>;
|
|
68
68
|
filters: z.ZodNullable<z.ZodObject<{
|
|
69
69
|
type: z.ZodEnum<["and", "or"]>;
|
|
@@ -954,10 +954,10 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
954
954
|
xDimension: string;
|
|
955
955
|
yMetrics: string[];
|
|
956
956
|
breakdownByDimension: string | null;
|
|
957
|
-
stackBars: boolean | null;
|
|
958
|
-
xAxisType: "time" | "category";
|
|
959
957
|
xAxisLabel: string | null;
|
|
960
958
|
yAxisLabel: string | null;
|
|
959
|
+
stackBars: boolean | null;
|
|
960
|
+
xAxisType: "time" | "category";
|
|
961
961
|
};
|
|
962
962
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
963
963
|
}, {
|
|
@@ -1085,10 +1085,10 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
1085
1085
|
xDimension: string;
|
|
1086
1086
|
yMetrics: string[];
|
|
1087
1087
|
breakdownByDimension: string | null;
|
|
1088
|
-
stackBars: boolean | null;
|
|
1089
|
-
xAxisType: "time" | "category";
|
|
1090
1088
|
xAxisLabel: string | null;
|
|
1091
1089
|
yAxisLabel: string | null;
|
|
1090
|
+
stackBars: boolean | null;
|
|
1091
|
+
xAxisType: "time" | "category";
|
|
1092
1092
|
};
|
|
1093
1093
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
1094
1094
|
}>, z.ZodObject<{
|
|
@@ -2168,6 +2168,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
2168
2168
|
breakdownByDimension: z.ZodNullable<z.ZodString>;
|
|
2169
2169
|
lineType: z.ZodUnion<[z.ZodLiteral<"line">, z.ZodLiteral<"area">]>;
|
|
2170
2170
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
2171
|
+
xAxisLabel: z.ZodNullable<z.ZodString>;
|
|
2172
|
+
yAxisLabel: z.ZodNullable<z.ZodString>;
|
|
2171
2173
|
}, "strip", z.ZodTypeAny, {
|
|
2172
2174
|
limit: number | null;
|
|
2173
2175
|
exploreName: string;
|
|
@@ -2179,6 +2181,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
2179
2181
|
yMetrics: string[];
|
|
2180
2182
|
breakdownByDimension: string | null;
|
|
2181
2183
|
lineType: "line" | "area";
|
|
2184
|
+
xAxisLabel: string | null;
|
|
2185
|
+
yAxisLabel: string | null;
|
|
2182
2186
|
}, {
|
|
2183
2187
|
limit: number | null;
|
|
2184
2188
|
exploreName: string;
|
|
@@ -2190,6 +2194,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
2190
2194
|
yMetrics: string[];
|
|
2191
2195
|
breakdownByDimension: string | null;
|
|
2192
2196
|
lineType: "line" | "area";
|
|
2197
|
+
xAxisLabel: string | null;
|
|
2198
|
+
yAxisLabel: string | null;
|
|
2193
2199
|
}>;
|
|
2194
2200
|
filters: z.ZodNullable<z.ZodObject<{
|
|
2195
2201
|
type: z.ZodEnum<["and", "or"]>;
|
|
@@ -3081,6 +3087,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
3081
3087
|
yMetrics: string[];
|
|
3082
3088
|
breakdownByDimension: string | null;
|
|
3083
3089
|
lineType: "line" | "area";
|
|
3090
|
+
xAxisLabel: string | null;
|
|
3091
|
+
yAxisLabel: string | null;
|
|
3084
3092
|
};
|
|
3085
3093
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
3086
3094
|
}, {
|
|
@@ -3209,6 +3217,8 @@ export declare const AgentToolCallArgsSchema: z.ZodDiscriminatedUnion<"type", [z
|
|
|
3209
3217
|
yMetrics: string[];
|
|
3210
3218
|
breakdownByDimension: string | null;
|
|
3211
3219
|
lineType: "line" | "area";
|
|
3220
|
+
xAxisLabel: string | null;
|
|
3221
|
+
yAxisLabel: string | null;
|
|
3212
3222
|
};
|
|
3213
3223
|
followUpTools: (import("..").FollowUpTools.GENERATE_BAR_VIZ | import("..").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
3214
3224
|
}>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AAEjC,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ee/AiAgent/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AAEjC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -23,6 +23,8 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
|
|
|
23
23
|
breakdownByDimension: z.ZodNullable<z.ZodString>;
|
|
24
24
|
lineType: z.ZodUnion<[z.ZodLiteral<"line">, z.ZodLiteral<"area">]>;
|
|
25
25
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
xAxisLabel: z.ZodNullable<z.ZodString>;
|
|
27
|
+
yAxisLabel: z.ZodNullable<z.ZodString>;
|
|
26
28
|
}, "strip", z.ZodTypeAny, {
|
|
27
29
|
limit: number | null;
|
|
28
30
|
exploreName: string;
|
|
@@ -34,6 +36,8 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
|
|
|
34
36
|
yMetrics: string[];
|
|
35
37
|
breakdownByDimension: string | null;
|
|
36
38
|
lineType: "line" | "area";
|
|
39
|
+
xAxisLabel: string | null;
|
|
40
|
+
yAxisLabel: string | null;
|
|
37
41
|
}, {
|
|
38
42
|
limit: number | null;
|
|
39
43
|
exploreName: string;
|
|
@@ -45,6 +49,8 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
|
|
|
45
49
|
yMetrics: string[];
|
|
46
50
|
breakdownByDimension: string | null;
|
|
47
51
|
lineType: "line" | "area";
|
|
52
|
+
xAxisLabel: string | null;
|
|
53
|
+
yAxisLabel: string | null;
|
|
48
54
|
}>;
|
|
49
55
|
filters: z.ZodNullable<z.ZodObject<{
|
|
50
56
|
type: z.ZodEnum<["and", "or"]>;
|
|
@@ -936,6 +942,8 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
|
|
|
936
942
|
yMetrics: string[];
|
|
937
943
|
breakdownByDimension: string | null;
|
|
938
944
|
lineType: "line" | "area";
|
|
945
|
+
xAxisLabel: string | null;
|
|
946
|
+
yAxisLabel: string | null;
|
|
939
947
|
};
|
|
940
948
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
941
949
|
}, {
|
|
@@ -1064,6 +1072,8 @@ export declare const toolTimeSeriesArgsSchema: z.ZodObject<{
|
|
|
1064
1072
|
yMetrics: string[];
|
|
1065
1073
|
breakdownByDimension: string | null;
|
|
1066
1074
|
lineType: "line" | "area";
|
|
1075
|
+
xAxisLabel: string | null;
|
|
1076
|
+
yAxisLabel: string | null;
|
|
1067
1077
|
};
|
|
1068
1078
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
1069
1079
|
}>;
|
|
@@ -1071,48 +1081,7 @@ export type ToolTimeSeriesArgs = z.infer<typeof toolTimeSeriesArgsSchema>;
|
|
|
1071
1081
|
export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObject<{
|
|
1072
1082
|
title: z.ZodString;
|
|
1073
1083
|
description: z.ZodString;
|
|
1074
|
-
} & {
|
|
1075
1084
|
type: z.ZodLiteral<AiResultType.TIME_SERIES_RESULT>;
|
|
1076
|
-
vizConfig: z.ZodObject<{
|
|
1077
|
-
exploreName: z.ZodString;
|
|
1078
|
-
xDimension: z.ZodString;
|
|
1079
|
-
yMetrics: z.ZodArray<z.ZodString, "many">;
|
|
1080
|
-
sorts: z.ZodArray<z.ZodObject<{
|
|
1081
|
-
fieldId: z.ZodString;
|
|
1082
|
-
descending: z.ZodBoolean;
|
|
1083
|
-
}, "strip", z.ZodTypeAny, {
|
|
1084
|
-
descending: boolean;
|
|
1085
|
-
fieldId: string;
|
|
1086
|
-
}, {
|
|
1087
|
-
descending: boolean;
|
|
1088
|
-
fieldId: string;
|
|
1089
|
-
}>, "many">;
|
|
1090
|
-
breakdownByDimension: z.ZodNullable<z.ZodString>;
|
|
1091
|
-
lineType: z.ZodUnion<[z.ZodLiteral<"line">, z.ZodLiteral<"area">]>;
|
|
1092
|
-
limit: z.ZodNullable<z.ZodNumber>;
|
|
1093
|
-
}, "strip", z.ZodTypeAny, {
|
|
1094
|
-
limit: number | null;
|
|
1095
|
-
exploreName: string;
|
|
1096
|
-
sorts: {
|
|
1097
|
-
descending: boolean;
|
|
1098
|
-
fieldId: string;
|
|
1099
|
-
}[];
|
|
1100
|
-
xDimension: string;
|
|
1101
|
-
yMetrics: string[];
|
|
1102
|
-
breakdownByDimension: string | null;
|
|
1103
|
-
lineType: "line" | "area";
|
|
1104
|
-
}, {
|
|
1105
|
-
limit: number | null;
|
|
1106
|
-
exploreName: string;
|
|
1107
|
-
sorts: {
|
|
1108
|
-
descending: boolean;
|
|
1109
|
-
fieldId: string;
|
|
1110
|
-
}[];
|
|
1111
|
-
xDimension: string;
|
|
1112
|
-
yMetrics: string[];
|
|
1113
|
-
breakdownByDimension: string | null;
|
|
1114
|
-
lineType: "line" | "area";
|
|
1115
|
-
}>;
|
|
1116
1085
|
filters: z.ZodNullable<z.ZodObject<{
|
|
1117
1086
|
type: z.ZodEnum<["and", "or"]>;
|
|
1118
1087
|
dimensions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -1877,6 +1846,54 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
|
|
|
1877
1846
|
}[] | null;
|
|
1878
1847
|
}>>;
|
|
1879
1848
|
followUpTools: z.ZodArray<z.ZodUnion<[z.ZodLiteral<FollowUpTools.GENERATE_BAR_VIZ>, z.ZodLiteral<FollowUpTools.GENERATE_TIME_SERIES_VIZ>]>, "many">;
|
|
1849
|
+
} & {
|
|
1850
|
+
vizConfig: z.ZodObject<{
|
|
1851
|
+
exploreName: z.ZodString;
|
|
1852
|
+
xDimension: z.ZodString;
|
|
1853
|
+
yMetrics: z.ZodArray<z.ZodString, "many">;
|
|
1854
|
+
sorts: z.ZodArray<z.ZodObject<{
|
|
1855
|
+
fieldId: z.ZodString;
|
|
1856
|
+
descending: z.ZodBoolean;
|
|
1857
|
+
}, "strip", z.ZodTypeAny, {
|
|
1858
|
+
descending: boolean;
|
|
1859
|
+
fieldId: string;
|
|
1860
|
+
}, {
|
|
1861
|
+
descending: boolean;
|
|
1862
|
+
fieldId: string;
|
|
1863
|
+
}>, "many">;
|
|
1864
|
+
breakdownByDimension: z.ZodNullable<z.ZodString>;
|
|
1865
|
+
lineType: z.ZodUnion<[z.ZodLiteral<"line">, z.ZodLiteral<"area">]>;
|
|
1866
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1867
|
+
} & {
|
|
1868
|
+
xAxisLabel: z.ZodDefault<z.ZodString>;
|
|
1869
|
+
yAxisLabel: z.ZodDefault<z.ZodString>;
|
|
1870
|
+
}, "strip", z.ZodTypeAny, {
|
|
1871
|
+
limit: number | null;
|
|
1872
|
+
exploreName: string;
|
|
1873
|
+
sorts: {
|
|
1874
|
+
descending: boolean;
|
|
1875
|
+
fieldId: string;
|
|
1876
|
+
}[];
|
|
1877
|
+
xDimension: string;
|
|
1878
|
+
yMetrics: string[];
|
|
1879
|
+
breakdownByDimension: string | null;
|
|
1880
|
+
lineType: "line" | "area";
|
|
1881
|
+
xAxisLabel: string;
|
|
1882
|
+
yAxisLabel: string;
|
|
1883
|
+
}, {
|
|
1884
|
+
limit: number | null;
|
|
1885
|
+
exploreName: string;
|
|
1886
|
+
sorts: {
|
|
1887
|
+
descending: boolean;
|
|
1888
|
+
fieldId: string;
|
|
1889
|
+
}[];
|
|
1890
|
+
xDimension: string;
|
|
1891
|
+
yMetrics: string[];
|
|
1892
|
+
breakdownByDimension: string | null;
|
|
1893
|
+
lineType: "line" | "area";
|
|
1894
|
+
xAxisLabel?: string | undefined;
|
|
1895
|
+
yAxisLabel?: string | undefined;
|
|
1896
|
+
}>;
|
|
1880
1897
|
}, "strip", z.ZodTypeAny, {
|
|
1881
1898
|
type: AiResultType.TIME_SERIES_RESULT;
|
|
1882
1899
|
filters: {
|
|
@@ -2003,6 +2020,8 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
|
|
|
2003
2020
|
yMetrics: string[];
|
|
2004
2021
|
breakdownByDimension: string | null;
|
|
2005
2022
|
lineType: "line" | "area";
|
|
2023
|
+
xAxisLabel: string;
|
|
2024
|
+
yAxisLabel: string;
|
|
2006
2025
|
};
|
|
2007
2026
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2008
2027
|
}, {
|
|
@@ -2131,6 +2150,8 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
|
|
|
2131
2150
|
yMetrics: string[];
|
|
2132
2151
|
breakdownByDimension: string | null;
|
|
2133
2152
|
lineType: "line" | "area";
|
|
2153
|
+
xAxisLabel?: string | undefined;
|
|
2154
|
+
yAxisLabel?: string | undefined;
|
|
2134
2155
|
};
|
|
2135
2156
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2136
2157
|
}>, {
|
|
@@ -2149,6 +2170,8 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
|
|
|
2149
2170
|
yMetrics: string[];
|
|
2150
2171
|
breakdownByDimension: string | null;
|
|
2151
2172
|
lineType: "line" | "area";
|
|
2173
|
+
xAxisLabel: string;
|
|
2174
|
+
yAxisLabel: string;
|
|
2152
2175
|
};
|
|
2153
2176
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2154
2177
|
}, {
|
|
@@ -2277,6 +2300,8 @@ export declare const toolTimeSeriesArgsSchemaTransformed: z.ZodEffects<z.ZodObje
|
|
|
2277
2300
|
yMetrics: string[];
|
|
2278
2301
|
breakdownByDimension: string | null;
|
|
2279
2302
|
lineType: "line" | "area";
|
|
2303
|
+
xAxisLabel?: string | undefined;
|
|
2304
|
+
yAxisLabel?: string | undefined;
|
|
2280
2305
|
};
|
|
2281
2306
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2282
2307
|
}>;
|
|
@@ -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;AAK3C,eAAO,MAAM,wBAAwB
|
|
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;AAK3C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;EAWzC,CAAC;AAER,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC7C,CAAC"}
|
|
@@ -17,7 +17,15 @@ export const toolTimeSeriesArgsSchema = visualizationMetadataSchema.extend({
|
|
|
17
17
|
]))
|
|
18
18
|
.describe(`The actions the User can ask for after the AI has generated the chart. NEVER include ${FollowUpTools.GENERATE_TIME_SERIES_VIZ} in this list.`),
|
|
19
19
|
});
|
|
20
|
-
export const toolTimeSeriesArgsSchemaTransformed = toolTimeSeriesArgsSchema
|
|
20
|
+
export const toolTimeSeriesArgsSchemaTransformed = toolTimeSeriesArgsSchema
|
|
21
|
+
.extend({
|
|
22
|
+
// backwards compatibility for old viz configs
|
|
23
|
+
vizConfig: timeSeriesMetricVizConfigSchema.extend({
|
|
24
|
+
xAxisLabel: z.string().default(''),
|
|
25
|
+
yAxisLabel: z.string().default(''),
|
|
26
|
+
}),
|
|
27
|
+
})
|
|
28
|
+
.transform((data) => ({
|
|
21
29
|
...data,
|
|
22
30
|
filters: filtersSchemaTransformed.parse(data.filters),
|
|
23
31
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolTimeSeriesArgs.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/toolTimeSeriesArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,2BAA2B,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAElF,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAC,MAAM,CAAC;IACvE,IAAI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AAgB,CAAC;QACzC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC;KACpD,CAAC,CACL;SACA,QAAQ,CACL,wFAAwF,aAAa,CAAC,wBAAwB,gBAAgB,CACjJ;CACR,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,mCAAmC,GAAG,wBAAwB;KACtE,MAAM,CAAC;IACJ,8CAA8C;IAC9C,SAAS,EAAE,+BAA+B,CAAC,MAAM,CAAC;QAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;KACrC,CAAC;CACL,CAAC;KACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAClB,GAAG,IAAI;IACP,OAAO,EAAE,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;CACxD,CAAC,CAAC,CAAC"}
|
|
@@ -36,10 +36,10 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
36
36
|
xDimension: string;
|
|
37
37
|
yMetrics: string[];
|
|
38
38
|
breakdownByDimension: string | null;
|
|
39
|
-
stackBars: boolean | null;
|
|
40
|
-
xAxisType: "time" | "category";
|
|
41
39
|
xAxisLabel: string | null;
|
|
42
40
|
yAxisLabel: string | null;
|
|
41
|
+
stackBars: boolean | null;
|
|
42
|
+
xAxisType: "time" | "category";
|
|
43
43
|
}, {
|
|
44
44
|
limit: number | null;
|
|
45
45
|
exploreName: string;
|
|
@@ -50,10 +50,10 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
50
50
|
xDimension: string;
|
|
51
51
|
yMetrics: string[];
|
|
52
52
|
breakdownByDimension: string | null;
|
|
53
|
-
stackBars: boolean | null;
|
|
54
|
-
xAxisType: "time" | "category";
|
|
55
53
|
xAxisLabel: string | null;
|
|
56
54
|
yAxisLabel: string | null;
|
|
55
|
+
stackBars: boolean | null;
|
|
56
|
+
xAxisType: "time" | "category";
|
|
57
57
|
}>;
|
|
58
58
|
filters: z.ZodNullable<z.ZodObject<{
|
|
59
59
|
type: z.ZodEnum<["and", "or"]>;
|
|
@@ -944,10 +944,10 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
944
944
|
xDimension: string;
|
|
945
945
|
yMetrics: string[];
|
|
946
946
|
breakdownByDimension: string | null;
|
|
947
|
-
stackBars: boolean | null;
|
|
948
|
-
xAxisType: "time" | "category";
|
|
949
947
|
xAxisLabel: string | null;
|
|
950
948
|
yAxisLabel: string | null;
|
|
949
|
+
stackBars: boolean | null;
|
|
950
|
+
xAxisType: "time" | "category";
|
|
951
951
|
};
|
|
952
952
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
953
953
|
}, {
|
|
@@ -1075,10 +1075,10 @@ export declare const toolVerticalBarArgsSchema: z.ZodObject<{
|
|
|
1075
1075
|
xDimension: string;
|
|
1076
1076
|
yMetrics: string[];
|
|
1077
1077
|
breakdownByDimension: string | null;
|
|
1078
|
-
stackBars: boolean | null;
|
|
1079
|
-
xAxisType: "time" | "category";
|
|
1080
1078
|
xAxisLabel: string | null;
|
|
1081
1079
|
yAxisLabel: string | null;
|
|
1080
|
+
stackBars: boolean | null;
|
|
1081
|
+
xAxisType: "time" | "category";
|
|
1082
1082
|
};
|
|
1083
1083
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
1084
1084
|
}>;
|
|
@@ -1118,10 +1118,10 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
1118
1118
|
xDimension: string;
|
|
1119
1119
|
yMetrics: string[];
|
|
1120
1120
|
breakdownByDimension: string | null;
|
|
1121
|
-
stackBars: boolean | null;
|
|
1122
|
-
xAxisType: "time" | "category";
|
|
1123
1121
|
xAxisLabel: string | null;
|
|
1124
1122
|
yAxisLabel: string | null;
|
|
1123
|
+
stackBars: boolean | null;
|
|
1124
|
+
xAxisType: "time" | "category";
|
|
1125
1125
|
}, {
|
|
1126
1126
|
limit: number | null;
|
|
1127
1127
|
exploreName: string;
|
|
@@ -1132,10 +1132,10 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
1132
1132
|
xDimension: string;
|
|
1133
1133
|
yMetrics: string[];
|
|
1134
1134
|
breakdownByDimension: string | null;
|
|
1135
|
-
stackBars: boolean | null;
|
|
1136
|
-
xAxisType: "time" | "category";
|
|
1137
1135
|
xAxisLabel: string | null;
|
|
1138
1136
|
yAxisLabel: string | null;
|
|
1137
|
+
stackBars: boolean | null;
|
|
1138
|
+
xAxisType: "time" | "category";
|
|
1139
1139
|
}>;
|
|
1140
1140
|
filters: z.ZodNullable<z.ZodObject<{
|
|
1141
1141
|
type: z.ZodEnum<["and", "or"]>;
|
|
@@ -2026,10 +2026,10 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2026
2026
|
xDimension: string;
|
|
2027
2027
|
yMetrics: string[];
|
|
2028
2028
|
breakdownByDimension: string | null;
|
|
2029
|
-
stackBars: boolean | null;
|
|
2030
|
-
xAxisType: "time" | "category";
|
|
2031
2029
|
xAxisLabel: string | null;
|
|
2032
2030
|
yAxisLabel: string | null;
|
|
2031
|
+
stackBars: boolean | null;
|
|
2032
|
+
xAxisType: "time" | "category";
|
|
2033
2033
|
};
|
|
2034
2034
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2035
2035
|
}, {
|
|
@@ -2157,10 +2157,10 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2157
2157
|
xDimension: string;
|
|
2158
2158
|
yMetrics: string[];
|
|
2159
2159
|
breakdownByDimension: string | null;
|
|
2160
|
-
stackBars: boolean | null;
|
|
2161
|
-
xAxisType: "time" | "category";
|
|
2162
2160
|
xAxisLabel: string | null;
|
|
2163
2161
|
yAxisLabel: string | null;
|
|
2162
|
+
stackBars: boolean | null;
|
|
2163
|
+
xAxisType: "time" | "category";
|
|
2164
2164
|
};
|
|
2165
2165
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2166
2166
|
}>, {
|
|
@@ -2178,10 +2178,10 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2178
2178
|
xDimension: string;
|
|
2179
2179
|
yMetrics: string[];
|
|
2180
2180
|
breakdownByDimension: string | null;
|
|
2181
|
-
stackBars: boolean | null;
|
|
2182
|
-
xAxisType: "time" | "category";
|
|
2183
2181
|
xAxisLabel: string | null;
|
|
2184
2182
|
yAxisLabel: string | null;
|
|
2183
|
+
stackBars: boolean | null;
|
|
2184
|
+
xAxisType: "time" | "category";
|
|
2185
2185
|
};
|
|
2186
2186
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2187
2187
|
}, {
|
|
@@ -2309,10 +2309,10 @@ export declare const toolVerticalBarArgsSchemaTransformed: z.ZodEffects<z.ZodObj
|
|
|
2309
2309
|
xDimension: string;
|
|
2310
2310
|
yMetrics: string[];
|
|
2311
2311
|
breakdownByDimension: string | null;
|
|
2312
|
-
stackBars: boolean | null;
|
|
2313
|
-
xAxisType: "time" | "category";
|
|
2314
2312
|
xAxisLabel: string | null;
|
|
2315
2313
|
yAxisLabel: string | null;
|
|
2314
|
+
stackBars: boolean | null;
|
|
2315
|
+
xAxisType: "time" | "category";
|
|
2316
2316
|
};
|
|
2317
2317
|
followUpTools: (FollowUpTools.GENERATE_BAR_VIZ | FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
2318
2318
|
}>;
|
|
@@ -18,6 +18,8 @@ export declare const timeSeriesMetricVizConfigSchema: z.ZodObject<{
|
|
|
18
18
|
breakdownByDimension: z.ZodNullable<z.ZodString>;
|
|
19
19
|
lineType: z.ZodUnion<[z.ZodLiteral<"line">, z.ZodLiteral<"area">]>;
|
|
20
20
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
xAxisLabel: z.ZodNullable<z.ZodString>;
|
|
22
|
+
yAxisLabel: z.ZodNullable<z.ZodString>;
|
|
21
23
|
}, "strip", z.ZodTypeAny, {
|
|
22
24
|
limit: number | null;
|
|
23
25
|
exploreName: string;
|
|
@@ -29,6 +31,8 @@ export declare const timeSeriesMetricVizConfigSchema: z.ZodObject<{
|
|
|
29
31
|
yMetrics: string[];
|
|
30
32
|
breakdownByDimension: string | null;
|
|
31
33
|
lineType: "line" | "area";
|
|
34
|
+
xAxisLabel: string | null;
|
|
35
|
+
yAxisLabel: string | null;
|
|
32
36
|
}, {
|
|
33
37
|
limit: number | null;
|
|
34
38
|
exploreName: string;
|
|
@@ -40,6 +44,8 @@ export declare const timeSeriesMetricVizConfigSchema: z.ZodObject<{
|
|
|
40
44
|
yMetrics: string[];
|
|
41
45
|
breakdownByDimension: string | null;
|
|
42
46
|
lineType: "line" | "area";
|
|
47
|
+
xAxisLabel: string | null;
|
|
48
|
+
yAxisLabel: string | null;
|
|
43
49
|
}>;
|
|
44
50
|
export type TimeSeriesMetricVizConfigSchemaType = z.infer<typeof timeSeriesMetricVizConfigSchema>;
|
|
45
51
|
export declare const metricQueryTimeSeriesViz: (vizConfig: TimeSeriesMetricVizConfigSchemaType, filters: Filters, maxLimit: number) => AiMetricQueryWithFilters;
|
|
@@ -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;AAI5D,eAAO,MAAM,+BAA+B
|
|
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,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8C1C,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,+BAA+B,CACzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,cACtB,mCAAmC,WACrC,OAAO,YACN,MAAM,KACjB,wBAkBF,CAAC"}
|
|
@@ -28,6 +28,14 @@ export const timeSeriesMetricVizConfigSchema = z.object({
|
|
|
28
28
|
.max(AI_DEFAULT_MAX_QUERY_LIMIT)
|
|
29
29
|
.nullable()
|
|
30
30
|
.describe(`The total number of data points allowed on the chart.`),
|
|
31
|
+
xAxisLabel: z
|
|
32
|
+
.string()
|
|
33
|
+
.nullable()
|
|
34
|
+
.describe('A helpful label to explain the x-axis'),
|
|
35
|
+
yAxisLabel: z
|
|
36
|
+
.string()
|
|
37
|
+
.nullable()
|
|
38
|
+
.describe('A helpful label to explain the y-axis'),
|
|
31
39
|
});
|
|
32
40
|
export const metricQueryTimeSeriesViz = (vizConfig, filters, maxLimit) => {
|
|
33
41
|
const metrics = vizConfig.yMetrics;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeSeriesViz.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/timeSeriesViz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,eAAe,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,WAAW,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CACL,mFAAmF,CACtF;IACL,UAAU,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,CACL,mEAAmE,CACtE;IACL,QAAQ,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACL,8JAA8J,CACjK;IACL,KAAK,EAAE,CAAC;SACH,KAAK,CAAC,eAAe,CAAC;SACtB,QAAQ,CACL,uFAAuF,CAC1F;IACL,oBAAoB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,4SAA4S,CAC/S;IACL,QAAQ,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7C,QAAQ,CACL,oGAAoG,CACvG;IACL,KAAK,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,0BAA0B,CAAC;SAC/B,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"timeSeriesViz.js","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/visualizations/timeSeriesViz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,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AG,SAAS,CAAC,QAAQ,CAAC;IACnC,MAAM,UAAU,GAAG;QACf,SAAS,CAAC,UAAU;QACpB,GAAG,CAAC,SAAS,CAAC,oBAAoB;YAC9B,CAAC,CAAC,CAAC,SAAS,CAAC,oBAAoB,CAAC;YAClC,CAAC,CAAC,EAAE,CAAC;KACZ,CAAC;IACF,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC;IAEnC,OAAO;QACH,OAAO;QACP,UAAU;QACV,KAAK,EAAE,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC;QAC5C,KAAK;QACL,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,OAAO;KACV,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -31,10 +31,10 @@ export declare const verticalBarMetricVizConfigSchema: z.ZodObject<{
|
|
|
31
31
|
xDimension: string;
|
|
32
32
|
yMetrics: string[];
|
|
33
33
|
breakdownByDimension: string | null;
|
|
34
|
-
stackBars: boolean | null;
|
|
35
|
-
xAxisType: "time" | "category";
|
|
36
34
|
xAxisLabel: string | null;
|
|
37
35
|
yAxisLabel: string | null;
|
|
36
|
+
stackBars: boolean | null;
|
|
37
|
+
xAxisType: "time" | "category";
|
|
38
38
|
}, {
|
|
39
39
|
limit: number | null;
|
|
40
40
|
exploreName: string;
|
|
@@ -45,10 +45,10 @@ export declare const verticalBarMetricVizConfigSchema: z.ZodObject<{
|
|
|
45
45
|
xDimension: string;
|
|
46
46
|
yMetrics: string[];
|
|
47
47
|
breakdownByDimension: string | null;
|
|
48
|
-
stackBars: boolean | null;
|
|
49
|
-
xAxisType: "time" | "category";
|
|
50
48
|
xAxisLabel: string | null;
|
|
51
49
|
yAxisLabel: string | null;
|
|
50
|
+
stackBars: boolean | null;
|
|
51
|
+
xAxisType: "time" | "category";
|
|
52
52
|
}>;
|
|
53
53
|
export type VerticalBarMetricVizConfigSchemaType = z.infer<typeof verticalBarMetricVizConfigSchema>;
|
|
54
54
|
export declare const metricQueryVerticalBarViz: (vizConfig: VerticalBarMetricVizConfigSchemaType, filters: Filters, maxLimit: number) => AiMetricQueryWithFilters;
|
|
@@ -16,10 +16,10 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
16
16
|
xDimension: string;
|
|
17
17
|
yMetrics: string[];
|
|
18
18
|
breakdownByDimension: string | null;
|
|
19
|
-
stackBars: boolean | null;
|
|
20
|
-
xAxisType: "time" | "category";
|
|
21
19
|
xAxisLabel: string | null;
|
|
22
20
|
yAxisLabel: string | null;
|
|
21
|
+
stackBars: boolean | null;
|
|
22
|
+
xAxisType: "time" | "category";
|
|
23
23
|
};
|
|
24
24
|
followUpTools: (import("./followUpTools").FollowUpTools.GENERATE_BAR_VIZ | import("./followUpTools").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
25
25
|
};
|
|
@@ -42,6 +42,8 @@ export declare const parseVizConfig: (vizConfigUnknown: object | null, maxLimit?
|
|
|
42
42
|
yMetrics: string[];
|
|
43
43
|
breakdownByDimension: string | null;
|
|
44
44
|
lineType: "line" | "area";
|
|
45
|
+
xAxisLabel: string;
|
|
46
|
+
yAxisLabel: string;
|
|
45
47
|
};
|
|
46
48
|
followUpTools: (import("./followUpTools").FollowUpTools.GENERATE_BAR_VIZ | import("./followUpTools").FollowUpTools.GENERATE_TIME_SERIES_VIZ)[];
|
|
47
49
|
};
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwDhC,CAAC"}
|