@@ -12,7 +12,7 @@ export const isDefinedNonNullAny = (v: any): v is definedNonNullAny => v !== und
12
12
export const definedNonNullAnySchema = z . any ( ) . refine ( ( v ) => isDefinedNonNullAny ( v ) ) ;
13
13
14
14
export function AttributeInputSchema ( ) : z . ZodObject < Properties < AttributeInput > > {
15
- return z . object ( {
15
+ return z . object < Properties < AttributeInput > > ( {
16
16
key : z . string ( ) . nullish ( ) ,
17
17
val : z . string ( ) . nullish ( )
18
18
} )
@@ -21,7 +21,7 @@ export function AttributeInputSchema(): z.ZodObject<Properties<AttributeInput>>
21
21
export const ButtonComponentTypeSchema = z . nativeEnum ( ButtonComponentType ) ;
22
22
23
23
export function ComponentInputSchema ( ) : z . ZodObject < Properties < ComponentInput > > {
24
- return z . object ( {
24
+ return z . object < Properties < ComponentInput > > ( {
25
25
child : z . lazy ( ( ) => ComponentInputSchema ( ) . nullish ( ) ) ,
26
26
childrens : z . array ( z . lazy ( ( ) => ComponentInputSchema ( ) . nullable ( ) ) ) . nullish ( ) ,
27
27
event : z . lazy ( ( ) => EventInputSchema ( ) . nullish ( ) ) ,
@@ -31,21 +31,21 @@ export function ComponentInputSchema(): z.ZodObject<Properties<ComponentInput>>
31
31
}
32
32
33
33
export function DropDownComponentInputSchema ( ) : z . ZodObject < Properties < DropDownComponentInput > > {
34
- return z . object ( {
34
+ return z . object < Properties < DropDownComponentInput > > ( {
35
35
dropdownComponent : z . lazy ( ( ) => ComponentInputSchema ( ) . nullish ( ) ) ,
36
36
getEvent : z . lazy ( ( ) => EventInputSchema ( ) )
37
37
} )
38
38
}
39
39
40
40
export function EventArgumentInputSchema ( ) : z . ZodObject < Properties < EventArgumentInput > > {
41
- return z . object ( {
41
+ return z . object < Properties < EventArgumentInput > > ( {
42
42
name : z . string ( ) . min ( 5 ) ,
43
43
value : z . string ( ) . regex ( / ^ f o o / , "message" )
44
44
} )
45
45
}
46
46
47
47
export function EventInputSchema ( ) : z . ZodObject < Properties < EventInput > > {
48
- return z . object ( {
48
+ return z . object < Properties < EventInput > > ( {
49
49
arguments : z . array ( z . lazy ( ( ) => EventArgumentInputSchema ( ) ) ) ,
50
50
options : z . array ( EventOptionTypeSchema ) . nullish ( )
51
51
} )
@@ -54,7 +54,7 @@ export function EventInputSchema(): z.ZodObject<Properties<EventInput>> {
54
54
export const EventOptionTypeSchema = z . nativeEnum ( EventOptionType ) ;
55
55
56
56
export function HttpInputSchema ( ) : z . ZodObject < Properties < HttpInput > > {
57
- return z . object ( {
57
+ return z . object < Properties < HttpInput > > ( {
58
58
method : HttpMethodSchema . nullish ( ) ,
59
59
url : definedNonNullAnySchema
60
60
} )
@@ -63,13 +63,13 @@ export function HttpInputSchema(): z.ZodObject<Properties<HttpInput>> {
63
63
export const HttpMethodSchema = z . nativeEnum ( HttpMethod ) ;
64
64
65
65
export function LayoutInputSchema ( ) : z . ZodObject < Properties < LayoutInput > > {
66
- return z . object ( {
66
+ return z . object < Properties < LayoutInput > > ( {
67
67
dropdown : z . lazy ( ( ) => DropDownComponentInputSchema ( ) . nullish ( ) )
68
68
} )
69
69
}
70
70
71
71
export function PageInputSchema ( ) : z . ZodObject < Properties < PageInput > > {
72
- return z . object ( {
72
+ return z . object < Properties < PageInput > > ( {
73
73
attributes : z . array ( z . lazy ( ( ) => AttributeInputSchema ( ) ) ) . nullish ( ) ,
74
74
date : definedNonNullAnySchema . nullish ( ) ,
75
75
height : z . number ( ) ,
@@ -87,7 +87,7 @@ export function PageInputSchema(): z.ZodObject<Properties<PageInput>> {
87
87
export const PageTypeSchema = z . nativeEnum ( PageType ) ;
88
88
89
89
export function UserSchema ( ) : z . ZodObject < Properties < User > > {
90
- return z . object ( {
90
+ return z . object < Properties < User > > ( {
91
91
__typename : z . literal ( 'User' ) . optional ( ) ,
92
92
createdAt : definedNonNullAnySchema . nullish ( ) ,
93
93
email : z . string ( ) . nullish ( ) ,
0 commit comments