@lightdash/common 0.2102.0 → 0.2103.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/followUpTools.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/followUpTools.js +1 -0
- package/dist/cjs/ee/AiAgent/followUpTools.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/parser.d.ts +530 -430
- package/dist/cjs/ee/AiAgent/schemas/parser.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/parser.js +2 -0
- package/dist/cjs/ee/AiAgent/schemas/parser.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +7655 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +53 -0
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -0
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js +3 -0
- package/dist/cjs/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/dist/cjs/ee/AiAgent/types.d.ts +1 -0
- package/dist/cjs/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/types.js +1 -0
- package/dist/cjs/ee/AiAgent/types.js.map +1 -1
- package/dist/esm/ee/AiAgent/followUpTools.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/followUpTools.js +1 -0
- package/dist/esm/ee/AiAgent/followUpTools.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/parser.d.ts +530 -430
- package/dist/esm/ee/AiAgent/schemas/parser.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/parser.js +3 -1
- package/dist/esm/ee/AiAgent/schemas/parser.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/index.js +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +7655 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.js +50 -0
- package/dist/esm/ee/AiAgent/schemas/tools/toolDashboardV2Args.js.map +1 -0
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.js +3 -0
- package/dist/esm/ee/AiAgent/schemas/visualizations/index.js.map +1 -1
- package/dist/esm/ee/AiAgent/types.d.ts +1 -0
- package/dist/esm/ee/AiAgent/types.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/types.js +1 -0
- package/dist/esm/ee/AiAgent/types.js.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/followUpTools.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/parser.d.ts +530 -430
- package/dist/types/ee/AiAgent/schemas/parser.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts +1 -0
- package/dist/types/ee/AiAgent/schemas/tools/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts +7655 -0
- package/dist/types/ee/AiAgent/schemas/tools/toolDashboardV2Args.d.ts.map +1 -0
- package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts +4 -4
- package/dist/types/ee/AiAgent/schemas/visualizations/index.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/types.d.ts +1 -0
- package/dist/types/ee/AiAgent/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,89 @@ import { type ToolName } from './visualizations';
|
|
|
5
5
|
* @param toolArgs - The tool args to parse
|
|
6
6
|
* @returns The parsed tool args
|
|
7
7
|
*/
|
|
8
|
-
export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => import("zod").
|
|
8
|
+
export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => import("zod").SafeParseSuccess<{
|
|
9
|
+
followUpTools: import("..").AiResultType[];
|
|
10
|
+
tableCalculations: ({
|
|
11
|
+
name: string;
|
|
12
|
+
fieldId: string;
|
|
13
|
+
type: "percent_change_from_previous";
|
|
14
|
+
displayName: string;
|
|
15
|
+
orderBy: {
|
|
16
|
+
fieldId: string;
|
|
17
|
+
order: "asc" | "desc" | null;
|
|
18
|
+
}[];
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
fieldId: string;
|
|
22
|
+
type: "percent_of_previous_value";
|
|
23
|
+
displayName: string;
|
|
24
|
+
orderBy: {
|
|
25
|
+
fieldId: string;
|
|
26
|
+
order: "asc" | "desc" | null;
|
|
27
|
+
}[];
|
|
28
|
+
} | {
|
|
29
|
+
name: string;
|
|
30
|
+
fieldId: string;
|
|
31
|
+
type: "percent_of_column_total";
|
|
32
|
+
displayName: string;
|
|
33
|
+
partitionBy: string[] | null;
|
|
34
|
+
} | {
|
|
35
|
+
name: string;
|
|
36
|
+
fieldId: string;
|
|
37
|
+
type: "rank_in_column";
|
|
38
|
+
displayName: string;
|
|
39
|
+
} | {
|
|
40
|
+
name: string;
|
|
41
|
+
fieldId: string;
|
|
42
|
+
type: "running_total";
|
|
43
|
+
displayName: string;
|
|
44
|
+
} | {
|
|
45
|
+
name: string;
|
|
46
|
+
fieldId: string | null;
|
|
47
|
+
type: "window_function";
|
|
48
|
+
displayName: string;
|
|
49
|
+
orderBy: {
|
|
50
|
+
fieldId: string;
|
|
51
|
+
order: "asc" | "desc" | null;
|
|
52
|
+
}[] | null;
|
|
53
|
+
partitionBy: string[] | null;
|
|
54
|
+
windowFunction: import("../../..").WindowFunctionType;
|
|
55
|
+
frame: {
|
|
56
|
+
start: {
|
|
57
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
58
|
+
offset: number | null;
|
|
59
|
+
} | null;
|
|
60
|
+
end: {
|
|
61
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
62
|
+
offset: number | null;
|
|
63
|
+
};
|
|
64
|
+
frameType: "rows" | "range";
|
|
65
|
+
} | null;
|
|
66
|
+
})[] | null;
|
|
67
|
+
type: import("..").AiResultType.TABLE_RESULT;
|
|
68
|
+
description: string;
|
|
69
|
+
filters: import("../../..").Filters;
|
|
70
|
+
customMetrics: {
|
|
71
|
+
name: string;
|
|
72
|
+
label: string;
|
|
73
|
+
table: string;
|
|
74
|
+
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;
|
|
75
|
+
description: string;
|
|
76
|
+
baseDimensionName: string;
|
|
77
|
+
}[] | null;
|
|
78
|
+
title: string;
|
|
79
|
+
vizConfig: {
|
|
80
|
+
dimensions: string[];
|
|
81
|
+
metrics: string[];
|
|
82
|
+
limit: number | null;
|
|
83
|
+
exploreName: string;
|
|
84
|
+
sorts: {
|
|
85
|
+
fieldId: string;
|
|
86
|
+
descending: boolean;
|
|
87
|
+
nullsFirst: boolean | null;
|
|
88
|
+
}[];
|
|
89
|
+
};
|
|
90
|
+
}> | import("zod").SafeParseError<{
|
|
9
91
|
type: import("..").AiResultType.TABLE_RESULT;
|
|
10
92
|
description: string;
|
|
11
93
|
filters: {
|
|
@@ -536,7 +618,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
536
618
|
description: string;
|
|
537
619
|
baseDimensionName: string;
|
|
538
620
|
}[] | null | undefined;
|
|
539
|
-
}
|
|
621
|
+
}> | import("zod").SafeParseSuccess<{
|
|
540
622
|
followUpTools: import("..").AiResultType[];
|
|
541
623
|
tableCalculations: ({
|
|
542
624
|
name: string;
|
|
@@ -595,7 +677,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
595
677
|
frameType: "rows" | "range";
|
|
596
678
|
} | null;
|
|
597
679
|
})[] | null;
|
|
598
|
-
type: import("..").AiResultType.
|
|
680
|
+
type: import("..").AiResultType.TIME_SERIES_RESULT;
|
|
599
681
|
description: string;
|
|
600
682
|
filters: import("../../..").Filters;
|
|
601
683
|
customMetrics: {
|
|
@@ -608,8 +690,6 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
608
690
|
}[] | null;
|
|
609
691
|
title: string;
|
|
610
692
|
vizConfig: {
|
|
611
|
-
dimensions: string[];
|
|
612
|
-
metrics: string[];
|
|
613
693
|
limit: number | null;
|
|
614
694
|
exploreName: string;
|
|
615
695
|
sorts: {
|
|
@@ -617,8 +697,14 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
617
697
|
descending: boolean;
|
|
618
698
|
nullsFirst: boolean | null;
|
|
619
699
|
}[];
|
|
700
|
+
xDimension: string;
|
|
701
|
+
yMetrics: string[];
|
|
702
|
+
breakdownByDimension: string | null;
|
|
703
|
+
xAxisLabel: string;
|
|
704
|
+
yAxisLabel: string;
|
|
705
|
+
lineType: "line" | "area";
|
|
620
706
|
};
|
|
621
|
-
}> | import("zod").
|
|
707
|
+
}> | import("zod").SafeParseError<{
|
|
622
708
|
type: import("..").AiResultType.TIME_SERIES_RESULT;
|
|
623
709
|
description: string;
|
|
624
710
|
filters: {
|
|
@@ -1153,7 +1239,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1153
1239
|
description: string;
|
|
1154
1240
|
baseDimensionName: string;
|
|
1155
1241
|
}[] | null | undefined;
|
|
1156
|
-
}
|
|
1242
|
+
}> | import("zod").SafeParseSuccess<{
|
|
1157
1243
|
followUpTools: import("..").AiResultType[];
|
|
1158
1244
|
tableCalculations: ({
|
|
1159
1245
|
name: string;
|
|
@@ -1212,7 +1298,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1212
1298
|
frameType: "rows" | "range";
|
|
1213
1299
|
} | null;
|
|
1214
1300
|
})[] | null;
|
|
1215
|
-
type: import("..").AiResultType.
|
|
1301
|
+
type: import("..").AiResultType.VERTICAL_BAR_RESULT;
|
|
1216
1302
|
description: string;
|
|
1217
1303
|
filters: import("../../..").Filters;
|
|
1218
1304
|
customMetrics: {
|
|
@@ -1235,11 +1321,12 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1235
1321
|
xDimension: string;
|
|
1236
1322
|
yMetrics: string[];
|
|
1237
1323
|
breakdownByDimension: string | null;
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1324
|
+
stackBars: boolean | null;
|
|
1325
|
+
xAxisType: "time" | "category";
|
|
1326
|
+
xAxisLabel: string | null;
|
|
1327
|
+
yAxisLabel: string | null;
|
|
1241
1328
|
};
|
|
1242
|
-
}> | import("zod").
|
|
1329
|
+
}> | import("zod").SafeParseError<{
|
|
1243
1330
|
type: import("..").AiResultType.VERTICAL_BAR_RESULT;
|
|
1244
1331
|
description: string;
|
|
1245
1332
|
filters: {
|
|
@@ -1775,94 +1862,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
1775
1862
|
description: string;
|
|
1776
1863
|
baseDimensionName: string;
|
|
1777
1864
|
}[] | null | undefined;
|
|
1778
|
-
}
|
|
1779
|
-
followUpTools: import("..").AiResultType[];
|
|
1780
|
-
tableCalculations: ({
|
|
1781
|
-
name: string;
|
|
1782
|
-
fieldId: string;
|
|
1783
|
-
type: "percent_change_from_previous";
|
|
1784
|
-
displayName: string;
|
|
1785
|
-
orderBy: {
|
|
1786
|
-
fieldId: string;
|
|
1787
|
-
order: "asc" | "desc" | null;
|
|
1788
|
-
}[];
|
|
1789
|
-
} | {
|
|
1790
|
-
name: string;
|
|
1791
|
-
fieldId: string;
|
|
1792
|
-
type: "percent_of_previous_value";
|
|
1793
|
-
displayName: string;
|
|
1794
|
-
orderBy: {
|
|
1795
|
-
fieldId: string;
|
|
1796
|
-
order: "asc" | "desc" | null;
|
|
1797
|
-
}[];
|
|
1798
|
-
} | {
|
|
1799
|
-
name: string;
|
|
1800
|
-
fieldId: string;
|
|
1801
|
-
type: "percent_of_column_total";
|
|
1802
|
-
displayName: string;
|
|
1803
|
-
partitionBy: string[] | null;
|
|
1804
|
-
} | {
|
|
1805
|
-
name: string;
|
|
1806
|
-
fieldId: string;
|
|
1807
|
-
type: "rank_in_column";
|
|
1808
|
-
displayName: string;
|
|
1809
|
-
} | {
|
|
1810
|
-
name: string;
|
|
1811
|
-
fieldId: string;
|
|
1812
|
-
type: "running_total";
|
|
1813
|
-
displayName: string;
|
|
1814
|
-
} | {
|
|
1815
|
-
name: string;
|
|
1816
|
-
fieldId: string | null;
|
|
1817
|
-
type: "window_function";
|
|
1818
|
-
displayName: string;
|
|
1819
|
-
orderBy: {
|
|
1820
|
-
fieldId: string;
|
|
1821
|
-
order: "asc" | "desc" | null;
|
|
1822
|
-
}[] | null;
|
|
1823
|
-
partitionBy: string[] | null;
|
|
1824
|
-
windowFunction: import("../../..").WindowFunctionType;
|
|
1825
|
-
frame: {
|
|
1826
|
-
start: {
|
|
1827
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
1828
|
-
offset: number | null;
|
|
1829
|
-
} | null;
|
|
1830
|
-
end: {
|
|
1831
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
1832
|
-
offset: number | null;
|
|
1833
|
-
};
|
|
1834
|
-
frameType: "rows" | "range";
|
|
1835
|
-
} | null;
|
|
1836
|
-
})[] | null;
|
|
1837
|
-
type: import("..").AiResultType.VERTICAL_BAR_RESULT;
|
|
1838
|
-
description: string;
|
|
1839
|
-
filters: import("../../..").Filters;
|
|
1840
|
-
customMetrics: {
|
|
1841
|
-
name: string;
|
|
1842
|
-
label: string;
|
|
1843
|
-
table: string;
|
|
1844
|
-
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;
|
|
1845
|
-
description: string;
|
|
1846
|
-
baseDimensionName: string;
|
|
1847
|
-
}[] | null;
|
|
1848
|
-
title: string;
|
|
1849
|
-
vizConfig: {
|
|
1850
|
-
limit: number | null;
|
|
1851
|
-
exploreName: string;
|
|
1852
|
-
sorts: {
|
|
1853
|
-
fieldId: string;
|
|
1854
|
-
descending: boolean;
|
|
1855
|
-
nullsFirst: boolean | null;
|
|
1856
|
-
}[];
|
|
1857
|
-
xDimension: string;
|
|
1858
|
-
yMetrics: string[];
|
|
1859
|
-
breakdownByDimension: string | null;
|
|
1860
|
-
stackBars: boolean | null;
|
|
1861
|
-
xAxisType: "time" | "category";
|
|
1862
|
-
xAxisLabel: string | null;
|
|
1863
|
-
yAxisLabel: string | null;
|
|
1864
|
-
};
|
|
1865
|
-
}> | import("zod").SafeParseReturnType<{
|
|
1865
|
+
}> | import("zod").SafeParseError<{
|
|
1866
1866
|
type: import("..").AiResultType.DASHBOARD_RESULT;
|
|
1867
1867
|
description: string;
|
|
1868
1868
|
title: string;
|
|
@@ -2731,7 +2731,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
2731
2731
|
yAxisLabel: string | null;
|
|
2732
2732
|
};
|
|
2733
2733
|
})[];
|
|
2734
|
-
}
|
|
2734
|
+
}> | import("zod").SafeParseSuccess<{
|
|
2735
2735
|
visualizations: ({
|
|
2736
2736
|
followUpTools: import("..").AiResultType[];
|
|
2737
2737
|
tableCalculations: ({
|
|
@@ -2991,251 +2991,102 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
2991
2991
|
type: import("..").AiResultType.DASHBOARD_RESULT;
|
|
2992
2992
|
description: string;
|
|
2993
2993
|
title: string;
|
|
2994
|
-
}> | import("zod").
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
2994
|
+
}> | import("zod").SafeParseSuccess<{
|
|
2995
|
+
filters: import("../../..").Filters;
|
|
2996
|
+
tableCalculations: ({
|
|
2997
|
+
name: string;
|
|
2998
|
+
fieldId: string;
|
|
2999
|
+
type: "percent_change_from_previous";
|
|
3000
|
+
displayName: string;
|
|
3001
|
+
orderBy: {
|
|
3002
|
+
fieldId: string;
|
|
3003
|
+
order: "asc" | "desc" | null;
|
|
3004
|
+
}[];
|
|
3005
|
+
} | {
|
|
3006
|
+
name: string;
|
|
3007
|
+
fieldId: string;
|
|
3008
|
+
type: "percent_of_previous_value";
|
|
3009
|
+
displayName: string;
|
|
3010
|
+
orderBy: {
|
|
3011
|
+
fieldId: string;
|
|
3012
|
+
order: "asc" | "desc" | null;
|
|
3013
|
+
}[];
|
|
3014
|
+
} | {
|
|
3015
|
+
name: string;
|
|
3016
|
+
fieldId: string;
|
|
3017
|
+
type: "percent_of_column_total";
|
|
3018
|
+
displayName: string;
|
|
3019
|
+
partitionBy: string[] | null;
|
|
3020
|
+
} | {
|
|
3021
|
+
name: string;
|
|
3022
|
+
fieldId: string;
|
|
3023
|
+
type: "rank_in_column";
|
|
3024
|
+
displayName: string;
|
|
3025
|
+
} | {
|
|
3026
|
+
name: string;
|
|
3027
|
+
fieldId: string;
|
|
3028
|
+
type: "running_total";
|
|
3029
|
+
displayName: string;
|
|
3030
|
+
} | {
|
|
3031
|
+
name: string;
|
|
3032
|
+
fieldId: string | null;
|
|
3033
|
+
type: "window_function";
|
|
3034
|
+
displayName: string;
|
|
3035
|
+
orderBy: {
|
|
3036
|
+
fieldId: string;
|
|
3037
|
+
order: "asc" | "desc" | null;
|
|
3038
|
+
}[] | null;
|
|
3039
|
+
partitionBy: string[] | null;
|
|
3040
|
+
windowFunction: import("../../..").WindowFunctionType;
|
|
3041
|
+
frame: {
|
|
3042
|
+
start: {
|
|
3043
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3044
|
+
offset: number | null;
|
|
3045
|
+
} | null;
|
|
3046
|
+
end: {
|
|
3047
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3048
|
+
offset: number | null;
|
|
3049
|
+
};
|
|
3050
|
+
frameType: "rows" | "range";
|
|
3051
|
+
} | null;
|
|
3052
|
+
})[] | null;
|
|
3053
|
+
type: import("..").AiResultType.QUERY_RESULT;
|
|
3054
|
+
description: string;
|
|
3055
|
+
customMetrics: {
|
|
3056
|
+
name: string;
|
|
3004
3057
|
label: string;
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
}, {
|
|
3036
|
-
type: "find_explores";
|
|
3037
|
-
exploreName: string | null;
|
|
3038
|
-
page: number | null;
|
|
3039
|
-
} | {
|
|
3040
|
-
type: "find_explores_v2";
|
|
3041
|
-
exploreName: string;
|
|
3042
|
-
}> | import("zod").SafeParseReturnType<{
|
|
3043
|
-
table: string;
|
|
3044
|
-
type: "find_fields";
|
|
3045
|
-
page: number | null;
|
|
3046
|
-
fieldSearchQueries: {
|
|
3047
|
-
label: string;
|
|
3048
|
-
}[];
|
|
3049
|
-
}, {
|
|
3050
|
-
table: string;
|
|
3051
|
-
type: "find_fields";
|
|
3052
|
-
page: number | null;
|
|
3053
|
-
fieldSearchQueries: {
|
|
3054
|
-
label: string;
|
|
3055
|
-
}[];
|
|
3056
|
-
}> | import("zod").SafeParseReturnType<{
|
|
3057
|
-
type: import("..").AiResultType.IMPROVE_CONTEXT;
|
|
3058
|
-
category: "explore_selection" | "field_selection" | "filter_logic" | "calculation" | "other";
|
|
3059
|
-
originalQuery: string;
|
|
3060
|
-
incorrectResponse: string;
|
|
3061
|
-
correctResponse: string;
|
|
3062
|
-
confidence: number;
|
|
3063
|
-
suggestedInstruction: string;
|
|
3064
|
-
}, {
|
|
3065
|
-
type: import("..").AiResultType.IMPROVE_CONTEXT;
|
|
3066
|
-
category: "explore_selection" | "field_selection" | "filter_logic" | "calculation" | "other";
|
|
3067
|
-
originalQuery: string;
|
|
3068
|
-
incorrectResponse: string;
|
|
3069
|
-
correctResponse: string;
|
|
3070
|
-
confidence: number;
|
|
3071
|
-
suggestedInstruction: string;
|
|
3072
|
-
}> | import("zod").SafeParseReturnType<{
|
|
3073
|
-
type: import("..").AiResultType.PROPOSE_CHANGE;
|
|
3074
|
-
entityTableName: string;
|
|
3075
|
-
rationale: string;
|
|
3076
|
-
change: {
|
|
3077
|
-
value: {
|
|
3078
|
-
type: "update";
|
|
3079
|
-
patch: {
|
|
3080
|
-
label: {
|
|
3081
|
-
value: string;
|
|
3082
|
-
op: "replace";
|
|
3083
|
-
} | {
|
|
3084
|
-
value: string;
|
|
3085
|
-
op: "add";
|
|
3086
|
-
} | null;
|
|
3087
|
-
description: {
|
|
3088
|
-
value: string;
|
|
3089
|
-
op: "replace";
|
|
3090
|
-
} | {
|
|
3091
|
-
value: string;
|
|
3092
|
-
op: "add";
|
|
3093
|
-
} | null;
|
|
3094
|
-
};
|
|
3095
|
-
};
|
|
3096
|
-
entityType: "table";
|
|
3097
|
-
} | {
|
|
3098
|
-
fieldId: string;
|
|
3099
|
-
value: {
|
|
3100
|
-
type: "update";
|
|
3101
|
-
patch: {
|
|
3102
|
-
label: {
|
|
3103
|
-
value: string;
|
|
3104
|
-
op: "replace";
|
|
3105
|
-
} | {
|
|
3106
|
-
value: string;
|
|
3107
|
-
op: "add";
|
|
3108
|
-
} | null;
|
|
3109
|
-
description: {
|
|
3110
|
-
value: string;
|
|
3111
|
-
op: "replace";
|
|
3112
|
-
} | {
|
|
3113
|
-
value: string;
|
|
3114
|
-
op: "add";
|
|
3115
|
-
} | null;
|
|
3116
|
-
};
|
|
3117
|
-
};
|
|
3118
|
-
entityType: "dimension";
|
|
3119
|
-
} | {
|
|
3120
|
-
fieldId: string;
|
|
3121
|
-
value: {
|
|
3122
|
-
value: {
|
|
3123
|
-
metric: {
|
|
3124
|
-
name: string;
|
|
3125
|
-
label: string;
|
|
3126
|
-
table: string;
|
|
3127
|
-
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;
|
|
3128
|
-
description: string;
|
|
3129
|
-
baseDimensionName: string;
|
|
3130
|
-
};
|
|
3131
|
-
entityType: "metric";
|
|
3132
|
-
};
|
|
3133
|
-
type: "create";
|
|
3134
|
-
} | {
|
|
3135
|
-
type: "update";
|
|
3136
|
-
patch: {
|
|
3137
|
-
label: {
|
|
3138
|
-
value: string;
|
|
3139
|
-
op: "replace";
|
|
3140
|
-
} | {
|
|
3141
|
-
value: string;
|
|
3142
|
-
op: "add";
|
|
3143
|
-
} | null;
|
|
3144
|
-
description: {
|
|
3145
|
-
value: string;
|
|
3146
|
-
op: "replace";
|
|
3147
|
-
} | {
|
|
3148
|
-
value: string;
|
|
3149
|
-
op: "add";
|
|
3150
|
-
} | null;
|
|
3151
|
-
};
|
|
3152
|
-
};
|
|
3153
|
-
entityType: "metric";
|
|
3154
|
-
};
|
|
3155
|
-
}, {
|
|
3156
|
-
type: import("..").AiResultType.PROPOSE_CHANGE;
|
|
3157
|
-
entityTableName: string;
|
|
3158
|
-
rationale: string;
|
|
3159
|
-
change: {
|
|
3160
|
-
value: {
|
|
3161
|
-
type: "update";
|
|
3162
|
-
patch: {
|
|
3163
|
-
label: {
|
|
3164
|
-
value: string;
|
|
3165
|
-
op: "replace";
|
|
3166
|
-
} | {
|
|
3167
|
-
value: string;
|
|
3168
|
-
op: "add";
|
|
3169
|
-
} | null;
|
|
3170
|
-
description: {
|
|
3171
|
-
value: string;
|
|
3172
|
-
op: "replace";
|
|
3173
|
-
} | {
|
|
3174
|
-
value: string;
|
|
3175
|
-
op: "add";
|
|
3176
|
-
} | null;
|
|
3177
|
-
};
|
|
3178
|
-
};
|
|
3179
|
-
entityType: "table";
|
|
3180
|
-
} | {
|
|
3181
|
-
fieldId: string;
|
|
3182
|
-
value: {
|
|
3183
|
-
type: "update";
|
|
3184
|
-
patch: {
|
|
3185
|
-
label: {
|
|
3186
|
-
value: string;
|
|
3187
|
-
op: "replace";
|
|
3188
|
-
} | {
|
|
3189
|
-
value: string;
|
|
3190
|
-
op: "add";
|
|
3191
|
-
} | null;
|
|
3192
|
-
description: {
|
|
3193
|
-
value: string;
|
|
3194
|
-
op: "replace";
|
|
3195
|
-
} | {
|
|
3196
|
-
value: string;
|
|
3197
|
-
op: "add";
|
|
3198
|
-
} | null;
|
|
3199
|
-
};
|
|
3200
|
-
};
|
|
3201
|
-
entityType: "dimension";
|
|
3202
|
-
} | {
|
|
3203
|
-
fieldId: string;
|
|
3204
|
-
value: {
|
|
3205
|
-
value: {
|
|
3206
|
-
metric: {
|
|
3207
|
-
name: string;
|
|
3208
|
-
label: string;
|
|
3209
|
-
table: string;
|
|
3210
|
-
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;
|
|
3211
|
-
description: string;
|
|
3212
|
-
baseDimensionName: string;
|
|
3213
|
-
};
|
|
3214
|
-
entityType: "metric";
|
|
3215
|
-
};
|
|
3216
|
-
type: "create";
|
|
3217
|
-
} | {
|
|
3218
|
-
type: "update";
|
|
3219
|
-
patch: {
|
|
3220
|
-
label: {
|
|
3221
|
-
value: string;
|
|
3222
|
-
op: "replace";
|
|
3223
|
-
} | {
|
|
3224
|
-
value: string;
|
|
3225
|
-
op: "add";
|
|
3226
|
-
} | null;
|
|
3227
|
-
description: {
|
|
3228
|
-
value: string;
|
|
3229
|
-
op: "replace";
|
|
3230
|
-
} | {
|
|
3231
|
-
value: string;
|
|
3232
|
-
op: "add";
|
|
3233
|
-
} | null;
|
|
3234
|
-
};
|
|
3235
|
-
};
|
|
3236
|
-
entityType: "metric";
|
|
3058
|
+
table: string;
|
|
3059
|
+
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;
|
|
3060
|
+
description: string;
|
|
3061
|
+
baseDimensionName: string;
|
|
3062
|
+
}[] | null;
|
|
3063
|
+
chartConfig: {
|
|
3064
|
+
groupBy: string[] | null;
|
|
3065
|
+
stackBars: boolean | null;
|
|
3066
|
+
xAxisType: "time" | "category" | null;
|
|
3067
|
+
xAxisLabel: string | null;
|
|
3068
|
+
yAxisLabel: string | null;
|
|
3069
|
+
lineType: "line" | "area" | null;
|
|
3070
|
+
defaultVizType: "table" | "bar" | "line" | "scatter" | "pie" | "funnel" | "horizontal";
|
|
3071
|
+
xAxisDimension: string | null;
|
|
3072
|
+
yAxisMetrics: string[] | null;
|
|
3073
|
+
funnelDataInput: "row" | "column" | null;
|
|
3074
|
+
secondaryYAxisMetric: string | null;
|
|
3075
|
+
secondaryYAxisLabel: string | null;
|
|
3076
|
+
} | null;
|
|
3077
|
+
title: string;
|
|
3078
|
+
queryConfig: {
|
|
3079
|
+
dimensions: string[];
|
|
3080
|
+
metrics: string[];
|
|
3081
|
+
limit: number | null;
|
|
3082
|
+
exploreName: string;
|
|
3083
|
+
sorts: {
|
|
3084
|
+
fieldId: string;
|
|
3085
|
+
descending: boolean;
|
|
3086
|
+
nullsFirst: boolean | null;
|
|
3087
|
+
}[];
|
|
3237
3088
|
};
|
|
3238
|
-
}> | import("zod").
|
|
3089
|
+
}> | import("zod").SafeParseError<{
|
|
3239
3090
|
type: import("..").AiResultType.QUERY_RESULT;
|
|
3240
3091
|
description: string;
|
|
3241
3092
|
filters: {
|
|
@@ -3534,102 +3385,351 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3534
3385
|
secondaryYAxisMetric: string | null;
|
|
3535
3386
|
secondaryYAxisLabel: string | null;
|
|
3536
3387
|
} | null | undefined;
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
type: "percent_change_from_previous";
|
|
3543
|
-
displayName: string;
|
|
3544
|
-
orderBy: {
|
|
3388
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3389
|
+
visualizations: {
|
|
3390
|
+
filters: import("../../..").Filters;
|
|
3391
|
+
tableCalculations: ({
|
|
3392
|
+
name: string;
|
|
3545
3393
|
fieldId: string;
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3394
|
+
type: "percent_change_from_previous";
|
|
3395
|
+
displayName: string;
|
|
3396
|
+
orderBy: {
|
|
3397
|
+
fieldId: string;
|
|
3398
|
+
order: "asc" | "desc" | null;
|
|
3399
|
+
}[];
|
|
3400
|
+
} | {
|
|
3401
|
+
name: string;
|
|
3554
3402
|
fieldId: string;
|
|
3555
|
-
|
|
3556
|
-
|
|
3403
|
+
type: "percent_of_previous_value";
|
|
3404
|
+
displayName: string;
|
|
3405
|
+
orderBy: {
|
|
3406
|
+
fieldId: string;
|
|
3407
|
+
order: "asc" | "desc" | null;
|
|
3408
|
+
}[];
|
|
3409
|
+
} | {
|
|
3410
|
+
name: string;
|
|
3411
|
+
fieldId: string;
|
|
3412
|
+
type: "percent_of_column_total";
|
|
3413
|
+
displayName: string;
|
|
3414
|
+
partitionBy: string[] | null;
|
|
3415
|
+
} | {
|
|
3416
|
+
name: string;
|
|
3417
|
+
fieldId: string;
|
|
3418
|
+
type: "rank_in_column";
|
|
3419
|
+
displayName: string;
|
|
3420
|
+
} | {
|
|
3421
|
+
name: string;
|
|
3422
|
+
fieldId: string;
|
|
3423
|
+
type: "running_total";
|
|
3424
|
+
displayName: string;
|
|
3425
|
+
} | {
|
|
3426
|
+
name: string;
|
|
3427
|
+
fieldId: string | null;
|
|
3428
|
+
type: "window_function";
|
|
3429
|
+
displayName: string;
|
|
3430
|
+
orderBy: {
|
|
3431
|
+
fieldId: string;
|
|
3432
|
+
order: "asc" | "desc" | null;
|
|
3433
|
+
}[] | null;
|
|
3434
|
+
partitionBy: string[] | null;
|
|
3435
|
+
windowFunction: import("../../..").WindowFunctionType;
|
|
3436
|
+
frame: {
|
|
3437
|
+
start: {
|
|
3438
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3439
|
+
offset: number | null;
|
|
3440
|
+
} | null;
|
|
3441
|
+
end: {
|
|
3442
|
+
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3443
|
+
offset: number | null;
|
|
3444
|
+
};
|
|
3445
|
+
frameType: "rows" | "range";
|
|
3446
|
+
} | null;
|
|
3447
|
+
})[] | null;
|
|
3448
|
+
type: import("..").AiResultType.QUERY_RESULT;
|
|
3449
|
+
description: string;
|
|
3450
|
+
customMetrics: {
|
|
3451
|
+
name: string;
|
|
3452
|
+
label: string;
|
|
3453
|
+
table: string;
|
|
3454
|
+
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;
|
|
3455
|
+
description: string;
|
|
3456
|
+
baseDimensionName: string;
|
|
3457
|
+
}[] | null;
|
|
3458
|
+
chartConfig: {
|
|
3459
|
+
groupBy: string[] | null;
|
|
3460
|
+
stackBars: boolean | null;
|
|
3461
|
+
xAxisType: "time" | "category" | null;
|
|
3462
|
+
xAxisLabel: string | null;
|
|
3463
|
+
yAxisLabel: string | null;
|
|
3464
|
+
lineType: "line" | "area" | null;
|
|
3465
|
+
defaultVizType: "table" | "bar" | "line" | "scatter" | "pie" | "funnel" | "horizontal";
|
|
3466
|
+
xAxisDimension: string | null;
|
|
3467
|
+
yAxisMetrics: string[] | null;
|
|
3468
|
+
funnelDataInput: "row" | "column" | null;
|
|
3469
|
+
secondaryYAxisMetric: string | null;
|
|
3470
|
+
secondaryYAxisLabel: string | null;
|
|
3471
|
+
} | null;
|
|
3472
|
+
title: string;
|
|
3473
|
+
queryConfig: {
|
|
3474
|
+
dimensions: string[];
|
|
3475
|
+
metrics: string[];
|
|
3476
|
+
limit: number | null;
|
|
3477
|
+
exploreName: string;
|
|
3478
|
+
sorts: {
|
|
3479
|
+
fieldId: string;
|
|
3480
|
+
descending: boolean;
|
|
3481
|
+
nullsFirst: boolean | null;
|
|
3482
|
+
}[];
|
|
3483
|
+
};
|
|
3484
|
+
}[];
|
|
3485
|
+
type: import("..").AiResultType.DASHBOARD_V2_RESULT;
|
|
3486
|
+
description: string;
|
|
3487
|
+
title: string;
|
|
3488
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3489
|
+
type: "find_charts";
|
|
3490
|
+
page: number | null;
|
|
3491
|
+
chartSearchQueries: {
|
|
3492
|
+
label: string;
|
|
3493
|
+
}[];
|
|
3494
|
+
}> | import("zod").SafeParseError<{
|
|
3495
|
+
type: "find_charts";
|
|
3496
|
+
page: number | null;
|
|
3497
|
+
chartSearchQueries: {
|
|
3498
|
+
label: string;
|
|
3499
|
+
}[];
|
|
3500
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3501
|
+
type: "find_content";
|
|
3502
|
+
searchQueries: {
|
|
3503
|
+
label: string;
|
|
3504
|
+
}[];
|
|
3505
|
+
}> | import("zod").SafeParseError<{
|
|
3506
|
+
type: "find_content";
|
|
3507
|
+
searchQueries: {
|
|
3508
|
+
label: string;
|
|
3509
|
+
}[];
|
|
3510
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3511
|
+
type: "find_dashboards";
|
|
3512
|
+
page: number | null;
|
|
3513
|
+
dashboardSearchQueries: {
|
|
3514
|
+
label: string;
|
|
3515
|
+
}[];
|
|
3516
|
+
}> | import("zod").SafeParseError<{
|
|
3517
|
+
type: "find_dashboards";
|
|
3518
|
+
page: number | null;
|
|
3519
|
+
dashboardSearchQueries: {
|
|
3520
|
+
label: string;
|
|
3521
|
+
}[];
|
|
3522
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3523
|
+
type: "find_explores";
|
|
3524
|
+
exploreName: string | null;
|
|
3525
|
+
page: number | null;
|
|
3526
|
+
} | {
|
|
3527
|
+
type: "find_explores_v2";
|
|
3528
|
+
exploreName: string;
|
|
3529
|
+
}> | import("zod").SafeParseError<{
|
|
3530
|
+
type: "find_explores";
|
|
3531
|
+
exploreName: string | null;
|
|
3532
|
+
page: number | null;
|
|
3533
|
+
} | {
|
|
3534
|
+
type: "find_explores_v2";
|
|
3535
|
+
exploreName: string;
|
|
3536
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3537
|
+
table: string;
|
|
3538
|
+
type: "find_fields";
|
|
3539
|
+
page: number | null;
|
|
3540
|
+
fieldSearchQueries: {
|
|
3541
|
+
label: string;
|
|
3542
|
+
}[];
|
|
3543
|
+
}> | import("zod").SafeParseError<{
|
|
3544
|
+
table: string;
|
|
3545
|
+
type: "find_fields";
|
|
3546
|
+
page: number | null;
|
|
3547
|
+
fieldSearchQueries: {
|
|
3548
|
+
label: string;
|
|
3549
|
+
}[];
|
|
3550
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3551
|
+
type: import("..").AiResultType.IMPROVE_CONTEXT;
|
|
3552
|
+
category: "explore_selection" | "field_selection" | "filter_logic" | "calculation" | "other";
|
|
3553
|
+
originalQuery: string;
|
|
3554
|
+
incorrectResponse: string;
|
|
3555
|
+
correctResponse: string;
|
|
3556
|
+
confidence: number;
|
|
3557
|
+
suggestedInstruction: string;
|
|
3558
|
+
}> | import("zod").SafeParseError<{
|
|
3559
|
+
type: import("..").AiResultType.IMPROVE_CONTEXT;
|
|
3560
|
+
category: "explore_selection" | "field_selection" | "filter_logic" | "calculation" | "other";
|
|
3561
|
+
originalQuery: string;
|
|
3562
|
+
incorrectResponse: string;
|
|
3563
|
+
correctResponse: string;
|
|
3564
|
+
confidence: number;
|
|
3565
|
+
suggestedInstruction: string;
|
|
3566
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3567
|
+
type: import("..").AiResultType.PROPOSE_CHANGE;
|
|
3568
|
+
entityTableName: string;
|
|
3569
|
+
rationale: string;
|
|
3570
|
+
change: {
|
|
3571
|
+
value: {
|
|
3572
|
+
type: "update";
|
|
3573
|
+
patch: {
|
|
3574
|
+
label: {
|
|
3575
|
+
value: string;
|
|
3576
|
+
op: "replace";
|
|
3577
|
+
} | {
|
|
3578
|
+
value: string;
|
|
3579
|
+
op: "add";
|
|
3580
|
+
} | null;
|
|
3581
|
+
description: {
|
|
3582
|
+
value: string;
|
|
3583
|
+
op: "replace";
|
|
3584
|
+
} | {
|
|
3585
|
+
value: string;
|
|
3586
|
+
op: "add";
|
|
3587
|
+
} | null;
|
|
3588
|
+
};
|
|
3589
|
+
};
|
|
3590
|
+
entityType: "table";
|
|
3557
3591
|
} | {
|
|
3558
|
-
name: string;
|
|
3559
3592
|
fieldId: string;
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3593
|
+
value: {
|
|
3594
|
+
type: "update";
|
|
3595
|
+
patch: {
|
|
3596
|
+
label: {
|
|
3597
|
+
value: string;
|
|
3598
|
+
op: "replace";
|
|
3599
|
+
} | {
|
|
3600
|
+
value: string;
|
|
3601
|
+
op: "add";
|
|
3602
|
+
} | null;
|
|
3603
|
+
description: {
|
|
3604
|
+
value: string;
|
|
3605
|
+
op: "replace";
|
|
3606
|
+
} | {
|
|
3607
|
+
value: string;
|
|
3608
|
+
op: "add";
|
|
3609
|
+
} | null;
|
|
3610
|
+
};
|
|
3611
|
+
};
|
|
3612
|
+
entityType: "dimension";
|
|
3563
3613
|
} | {
|
|
3564
|
-
name: string;
|
|
3565
3614
|
fieldId: string;
|
|
3566
|
-
|
|
3567
|
-
|
|
3615
|
+
value: {
|
|
3616
|
+
value: {
|
|
3617
|
+
metric: {
|
|
3618
|
+
name: string;
|
|
3619
|
+
label: string;
|
|
3620
|
+
table: string;
|
|
3621
|
+
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;
|
|
3622
|
+
description: string;
|
|
3623
|
+
baseDimensionName: string;
|
|
3624
|
+
};
|
|
3625
|
+
entityType: "metric";
|
|
3626
|
+
};
|
|
3627
|
+
type: "create";
|
|
3628
|
+
} | {
|
|
3629
|
+
type: "update";
|
|
3630
|
+
patch: {
|
|
3631
|
+
label: {
|
|
3632
|
+
value: string;
|
|
3633
|
+
op: "replace";
|
|
3634
|
+
} | {
|
|
3635
|
+
value: string;
|
|
3636
|
+
op: "add";
|
|
3637
|
+
} | null;
|
|
3638
|
+
description: {
|
|
3639
|
+
value: string;
|
|
3640
|
+
op: "replace";
|
|
3641
|
+
} | {
|
|
3642
|
+
value: string;
|
|
3643
|
+
op: "add";
|
|
3644
|
+
} | null;
|
|
3645
|
+
};
|
|
3646
|
+
};
|
|
3647
|
+
entityType: "metric";
|
|
3648
|
+
};
|
|
3649
|
+
}> | import("zod").SafeParseError<{
|
|
3650
|
+
type: import("..").AiResultType.PROPOSE_CHANGE;
|
|
3651
|
+
entityTableName: string;
|
|
3652
|
+
rationale: string;
|
|
3653
|
+
change: {
|
|
3654
|
+
value: {
|
|
3655
|
+
type: "update";
|
|
3656
|
+
patch: {
|
|
3657
|
+
label: {
|
|
3658
|
+
value: string;
|
|
3659
|
+
op: "replace";
|
|
3660
|
+
} | {
|
|
3661
|
+
value: string;
|
|
3662
|
+
op: "add";
|
|
3663
|
+
} | null;
|
|
3664
|
+
description: {
|
|
3665
|
+
value: string;
|
|
3666
|
+
op: "replace";
|
|
3667
|
+
} | {
|
|
3668
|
+
value: string;
|
|
3669
|
+
op: "add";
|
|
3670
|
+
} | null;
|
|
3671
|
+
};
|
|
3672
|
+
};
|
|
3673
|
+
entityType: "table";
|
|
3568
3674
|
} | {
|
|
3569
|
-
name: string;
|
|
3570
3675
|
fieldId: string;
|
|
3571
|
-
|
|
3572
|
-
|
|
3676
|
+
value: {
|
|
3677
|
+
type: "update";
|
|
3678
|
+
patch: {
|
|
3679
|
+
label: {
|
|
3680
|
+
value: string;
|
|
3681
|
+
op: "replace";
|
|
3682
|
+
} | {
|
|
3683
|
+
value: string;
|
|
3684
|
+
op: "add";
|
|
3685
|
+
} | null;
|
|
3686
|
+
description: {
|
|
3687
|
+
value: string;
|
|
3688
|
+
op: "replace";
|
|
3689
|
+
} | {
|
|
3690
|
+
value: string;
|
|
3691
|
+
op: "add";
|
|
3692
|
+
} | null;
|
|
3693
|
+
};
|
|
3694
|
+
};
|
|
3695
|
+
entityType: "dimension";
|
|
3573
3696
|
} | {
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3587
|
-
offset: number | null;
|
|
3588
|
-
} | null;
|
|
3589
|
-
end: {
|
|
3590
|
-
type: "unbounded_preceding" | "preceding" | "current_row" | "following" | "unbounded_following";
|
|
3591
|
-
offset: number | null;
|
|
3697
|
+
fieldId: string;
|
|
3698
|
+
value: {
|
|
3699
|
+
value: {
|
|
3700
|
+
metric: {
|
|
3701
|
+
name: string;
|
|
3702
|
+
label: string;
|
|
3703
|
+
table: string;
|
|
3704
|
+
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;
|
|
3705
|
+
description: string;
|
|
3706
|
+
baseDimensionName: string;
|
|
3707
|
+
};
|
|
3708
|
+
entityType: "metric";
|
|
3592
3709
|
};
|
|
3593
|
-
|
|
3594
|
-
} |
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
xAxisDimension: string | null;
|
|
3615
|
-
yAxisMetrics: string[] | null;
|
|
3616
|
-
funnelDataInput: "row" | "column" | null;
|
|
3617
|
-
secondaryYAxisMetric: string | null;
|
|
3618
|
-
secondaryYAxisLabel: string | null;
|
|
3619
|
-
} | null;
|
|
3620
|
-
title: string;
|
|
3621
|
-
queryConfig: {
|
|
3622
|
-
dimensions: string[];
|
|
3623
|
-
metrics: string[];
|
|
3624
|
-
limit: number | null;
|
|
3625
|
-
exploreName: string;
|
|
3626
|
-
sorts: {
|
|
3627
|
-
fieldId: string;
|
|
3628
|
-
descending: boolean;
|
|
3629
|
-
nullsFirst: boolean | null;
|
|
3630
|
-
}[];
|
|
3710
|
+
type: "create";
|
|
3711
|
+
} | {
|
|
3712
|
+
type: "update";
|
|
3713
|
+
patch: {
|
|
3714
|
+
label: {
|
|
3715
|
+
value: string;
|
|
3716
|
+
op: "replace";
|
|
3717
|
+
} | {
|
|
3718
|
+
value: string;
|
|
3719
|
+
op: "add";
|
|
3720
|
+
} | null;
|
|
3721
|
+
description: {
|
|
3722
|
+
value: string;
|
|
3723
|
+
op: "replace";
|
|
3724
|
+
} | {
|
|
3725
|
+
value: string;
|
|
3726
|
+
op: "add";
|
|
3727
|
+
} | null;
|
|
3728
|
+
};
|
|
3729
|
+
};
|
|
3730
|
+
entityType: "metric";
|
|
3631
3731
|
};
|
|
3632
|
-
}> | import("zod").
|
|
3732
|
+
}> | import("zod").SafeParseError<{
|
|
3633
3733
|
fieldId: string;
|
|
3634
3734
|
table: string;
|
|
3635
3735
|
type: "search_field_values";
|
|
@@ -3839,7 +3939,7 @@ export declare const parseToolArgs: (toolName: ToolName, toolArgs: unknown) => i
|
|
|
3839
3939
|
type: "and" | "or";
|
|
3840
3940
|
} | null;
|
|
3841
3941
|
query: string | null;
|
|
3842
|
-
}
|
|
3942
|
+
}> | import("zod").SafeParseSuccess<{
|
|
3843
3943
|
filters: import("../../..").Filters | undefined;
|
|
3844
3944
|
query: string;
|
|
3845
3945
|
fieldId: string;
|