@@ -3,48 +3,103 @@ import { z } from 'zod';
3
3
export const ListProjectsSchema = z . object ( { } ) ;
4
4
5
5
export const GetProjectSchema = z . object ( {
6
- projectUuid : z . string ( ) ,
6
+ projectUuid : z
7
+ . string ( )
8
+ . uuid ( )
9
+ . describe (
10
+ 'The UUID of the project. You can obtain it from the project list.'
11
+ ) ,
7
12
} ) ;
8
13
9
14
export const ListSpacesSchema = z . object ( {
10
- projectUuid : z . string ( ) ,
15
+ projectUuid : z
16
+ . string ( )
17
+ . uuid ( )
18
+ . describe (
19
+ 'The UUID of the project. You can obtain it from the project list.'
20
+ ) ,
11
21
} ) ;
12
22
13
23
export const ListChartsSchema = z . object ( {
14
- projectUuid : z . string ( ) ,
24
+ projectUuid : z
25
+ . string ( )
26
+ . uuid ( )
27
+ . describe (
28
+ 'The UUID of the project. You can obtain it from the project list.'
29
+ ) ,
15
30
} ) ;
16
31
17
32
export const ListDashboardsSchema = z . object ( {
18
- projectUuid : z . string ( ) ,
33
+ projectUuid : z
34
+ . string ( )
35
+ . uuid ( )
36
+ . describe (
37
+ 'The UUID of the project. You can obtain it from the project list.'
38
+ ) ,
19
39
} ) ;
20
40
21
41
export const GetCustomMetricsSchema = z . object ( {
22
- projectUuid : z . string ( ) ,
42
+ projectUuid : z
43
+ . string ( )
44
+ . uuid ( )
45
+ . describe (
46
+ 'The UUID of the project. You can obtain it from the project list.'
47
+ ) ,
23
48
} ) ;
24
49
25
50
export const GetCatalogSchema = z . object ( {
26
- projectUuid : z . string ( ) ,
51
+ projectUuid : z
52
+ . string ( )
53
+ . uuid ( )
54
+ . describe (
55
+ 'The UUID of the project. You can obtain it from the project list.'
56
+ ) ,
27
57
} ) ;
28
58
29
59
export const GetMetricsCatalogSchema = z . object ( {
30
- projectUuid : z . string ( ) ,
60
+ projectUuid : z
61
+ . string ( )
62
+ . uuid ( )
63
+ . describe (
64
+ 'The UUID of the project. You can obtain it from the project list.'
65
+ ) ,
31
66
} ) ;
32
67
33
68
export const GetChartsAsCodeSchema = z . object ( {
34
- projectUuid : z . string ( ) ,
69
+ projectUuid : z
70
+ . string ( )
71
+ . uuid ( )
72
+ . describe (
73
+ 'The UUID of the project. You can obtain it from the project list.'
74
+ ) ,
35
75
} ) ;
36
76
37
77
export const GetDashboardsAsCodeSchema = z . object ( {
38
- projectUuid : z . string ( ) ,
78
+ projectUuid : z
79
+ . string ( )
80
+ . uuid ( )
81
+ . describe (
82
+ 'The UUID of the project. You can obtain it from the project list.'
83
+ ) ,
39
84
} ) ;
40
85
41
86
export const GetMetadataSchema = z . object ( {
42
- projectUuid : z . string ( ) ,
43
- table : z . string ( ) ,
87
+ projectUuid : z
88
+ . string ( )
89
+ . uuid ( )
90
+ . describe (
91
+ 'The UUID of the project. You can obtain it from the project list.'
92
+ ) ,
93
+ table : z . string ( ) . min ( 1 , 'Table name cannot be empty' ) ,
44
94
} ) ;
45
95
46
96
export const GetAnalyticsSchema = z . object ( {
47
- projectUuid : z . string ( ) ,
97
+ projectUuid : z
98
+ . string ( )
99
+ . uuid ( )
100
+ . describe (
101
+ 'The UUID of the project. You can obtain it from the project list.'
102
+ ) ,
48
103
table : z . string ( ) ,
49
104
} ) ;
50
105
0 commit comments