@adrekic/zod-fieldsjson 1.0.0 → 1.0.1-compound-conditions.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/conditions/base.d.ts +13 -2
- package/dist/conditions/boolean.d.ts +7 -7
- package/dist/conditions/checkbox-list.d.ts +16 -16
- package/dist/conditions/date.d.ts +19 -19
- package/dist/conditions/index.d.ts +108 -99
- package/dist/conditions/multi-select.d.ts +16 -16
- package/dist/conditions/multi-string.d.ts +16 -16
- package/dist/conditions/number.d.ts +25 -25
- package/dist/conditions/operator.d.ts +95 -0
- package/dist/conditions/otp.d.ts +13 -13
- package/dist/conditions/pass-fail.d.ts +13 -13
- package/dist/conditions/radio.d.ts +13 -13
- package/dist/conditions/rating.d.ts +25 -25
- package/dist/conditions/scan.d.ts +13 -13
- package/dist/conditions/select.d.ts +13 -13
- package/dist/conditions/string.d.ts +13 -13
- package/dist/conditions/text.d.ts +13 -13
- package/dist/conditions/time.d.ts +19 -19
- package/dist/conditions/upload.d.ts +7 -7
- package/dist/conditions/url.d.ts +13 -13
- package/dist/elements/index.d.ts +6 -810
- package/dist/elements/section.d.ts +8 -1190
- package/dist/index.cjs +1 -1
- package/dist/index.js +325 -276
- package/dist/schema.d.ts +2 -670
- package/package.json +2 -2
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
export declare const BaseJSONConditionSchema: <TType extends string
|
|
2
|
+
export declare const BaseJSONConditionSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
type: z.ZodLiteral<TType>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type BaseJSONConditionSchemaType<TType extends string> = z.infer<ReturnType<typeof BaseJSONConditionSchema<TType>>>;
|
|
7
|
+
export declare const BaseJSONAtomicConditionSchema: <TType extends string, TConditionValue, TModifier extends string>(typeSchema: z.ZodLiteral<TType>, valueSchema: z.ZodType<TConditionValue>, modifierSchema: z.ZodLiteral<TModifier>) => z.ZodObject<{
|
|
5
8
|
field: z.ZodString;
|
|
6
9
|
value: z.ZodType<TConditionValue, unknown, z.core.$ZodTypeInternals<TConditionValue, unknown>>;
|
|
7
10
|
modifier: z.ZodLiteral<TModifier>;
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
type: z.ZodLiteral<TType>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type BaseJSONAtomicConditionSchemaType<TType extends string, TConditionValue, TModifier extends string> = z.infer<ReturnType<typeof BaseJSONAtomicConditionSchema<TType, TConditionValue, TModifier>>>;
|
|
15
|
+
export declare const BaseJSONCompoundConditionSchema: <TType extends string, TOperator extends string>(typeSchema: z.ZodLiteral<TType>, operatorSchema: z.ZodLiteral<TOperator>) => z.ZodObject<{
|
|
16
|
+
operator: z.ZodLiteral<TOperator>;
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
type: z.ZodLiteral<TType>;
|
|
8
19
|
}, z.core.$strip>;
|
|
9
|
-
export type
|
|
20
|
+
export type BaseJSONCompoundConditionSchemaType<TType extends string, TOperator extends string> = z.infer<ReturnType<typeof BaseJSONCompoundConditionSchema<TType, TOperator>>>;
|
|
@@ -4,36 +4,36 @@ export type JSONBooleanConditionTypeSchemaType = z.infer<typeof JSONBooleanCondi
|
|
|
4
4
|
export declare const JSONBooleanConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONBooleanConditionEqualsModifierSchemaType = z.infer<typeof JSONBooleanConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONBooleanEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"boolean">;
|
|
9
7
|
field: z.ZodString;
|
|
10
8
|
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
11
9
|
modifier: z.ZodLiteral<"equals">;
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"boolean">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONBooleanEqualsConditionSchemaType = z.infer<typeof JSONBooleanEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONBooleanConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONBooleanConditionNotEqualsModifierSchemaType = z.infer<typeof JSONBooleanConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONBooleanNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"boolean">;
|
|
19
17
|
field: z.ZodString;
|
|
20
18
|
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
21
19
|
modifier: z.ZodLiteral<"notEquals">;
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
type: z.ZodLiteral<"boolean">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONBooleanNotEqualsConditionSchemaType = z.infer<typeof JSONBooleanNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONBooleanConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">]>;
|
|
25
25
|
export type JSONBooleanConditionModifierSchemaType = z.infer<typeof JSONBooleanConditionModifierSchema>;
|
|
26
26
|
export declare const JSONBooleanConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"boolean">;
|
|
29
27
|
field: z.ZodString;
|
|
30
28
|
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
31
29
|
modifier: z.ZodLiteral<"equals">;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
30
|
id: z.ZodString;
|
|
34
31
|
type: z.ZodLiteral<"boolean">;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
33
|
field: z.ZodString;
|
|
36
34
|
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
37
35
|
modifier: z.ZodLiteral<"notEquals">;
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
type: z.ZodLiteral<"boolean">;
|
|
38
38
|
}, z.core.$strip>], "modifier">;
|
|
39
39
|
export type JSONBooleanConditionSchemaType = z.infer<typeof JSONBooleanConditionSchema>;
|
|
@@ -4,84 +4,84 @@ export type JSONCheckboxListConditionTypeSchemaType = z.infer<typeof JSONCheckbo
|
|
|
4
4
|
export declare const JSONCheckboxListConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONCheckboxListConditionEqualsModifierSchemaType = z.infer<typeof JSONCheckboxListConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONCheckboxListEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"checkbox-list">;
|
|
9
7
|
field: z.ZodString;
|
|
10
8
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
9
|
modifier: z.ZodLiteral<"equals">;
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONCheckboxListEqualsConditionSchemaType = z.infer<typeof JSONCheckboxListEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONCheckboxListConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONCheckboxListConditionNotEqualsModifierSchemaType = z.infer<typeof JSONCheckboxListConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONCheckboxListNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"checkbox-list">;
|
|
19
17
|
field: z.ZodString;
|
|
20
18
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
21
19
|
modifier: z.ZodLiteral<"notEquals">;
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONCheckboxListNotEqualsConditionSchemaType = z.infer<typeof JSONCheckboxListNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONCheckboxListConditionEveryModifierSchema: z.ZodLiteral<"every">;
|
|
25
25
|
export type JSONCheckboxListConditionEveryModifierSchemaType = z.infer<typeof JSONCheckboxListConditionEveryModifierSchema>;
|
|
26
26
|
export declare const JSONCheckboxListEveryConditionSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"checkbox-list">;
|
|
29
27
|
field: z.ZodString;
|
|
30
28
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
31
29
|
modifier: z.ZodLiteral<"every">;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type JSONCheckboxListEveryConditionSchemaType = z.infer<typeof JSONCheckboxListEveryConditionSchema>;
|
|
34
34
|
export declare const JSONCheckboxListConditionSomeModifierSchema: z.ZodLiteral<"some">;
|
|
35
35
|
export type JSONCheckboxListConditionSomeModifierSchemaType = z.infer<typeof JSONCheckboxListConditionSomeModifierSchema>;
|
|
36
36
|
export declare const JSONCheckboxListSomeConditionSchema: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
type: z.ZodLiteral<"checkbox-list">;
|
|
39
37
|
field: z.ZodString;
|
|
40
38
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
41
39
|
modifier: z.ZodLiteral<"some">;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export type JSONCheckboxListSomeConditionSchemaType = z.infer<typeof JSONCheckboxListSomeConditionSchema>;
|
|
44
44
|
export declare const JSONCheckboxListConditionNoneModifierSchema: z.ZodLiteral<"none">;
|
|
45
45
|
export type JSONCheckboxListConditionNoneModifierSchemaType = z.infer<typeof JSONCheckboxListConditionNoneModifierSchema>;
|
|
46
46
|
export declare const JSONCheckboxListNoneConditionSchema: z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
type: z.ZodLiteral<"checkbox-list">;
|
|
49
47
|
field: z.ZodString;
|
|
50
48
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
51
49
|
modifier: z.ZodLiteral<"none">;
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export type JSONCheckboxListNoneConditionSchemaType = z.infer<typeof JSONCheckboxListNoneConditionSchema>;
|
|
54
54
|
export declare const JSONCheckboxListConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"every">, z.ZodLiteral<"some">, z.ZodLiteral<"none">]>;
|
|
55
55
|
export type JSONCheckboxListConditionModifierSchemaType = z.infer<typeof JSONCheckboxListConditionModifierSchema>;
|
|
56
56
|
export declare const JSONCheckboxListConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
type: z.ZodLiteral<"checkbox-list">;
|
|
59
57
|
field: z.ZodString;
|
|
60
58
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
61
59
|
modifier: z.ZodLiteral<"equals">;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
60
|
id: z.ZodString;
|
|
64
61
|
type: z.ZodLiteral<"checkbox-list">;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
63
|
field: z.ZodString;
|
|
66
64
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
67
65
|
modifier: z.ZodLiteral<"notEquals">;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
66
|
id: z.ZodString;
|
|
70
67
|
type: z.ZodLiteral<"checkbox-list">;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
69
|
field: z.ZodString;
|
|
72
70
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
73
71
|
modifier: z.ZodLiteral<"every">;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
72
|
id: z.ZodString;
|
|
76
73
|
type: z.ZodLiteral<"checkbox-list">;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
75
|
field: z.ZodString;
|
|
78
76
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
79
77
|
modifier: z.ZodLiteral<"some">;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
78
|
id: z.ZodString;
|
|
82
79
|
type: z.ZodLiteral<"checkbox-list">;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
81
|
field: z.ZodString;
|
|
84
82
|
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
85
83
|
modifier: z.ZodLiteral<"none">;
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
86
86
|
}, z.core.$strip>], "modifier">;
|
|
87
87
|
export type JSONCheckboxListConditionSchemaType = z.infer<typeof JSONCheckboxListConditionSchema>;
|
|
@@ -4,48 +4,46 @@ export type JSONDateConditionTypeSchemaType = z.infer<typeof JSONDateConditionTy
|
|
|
4
4
|
export declare const JSONDateConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONDateConditionEqualsModifierSchemaType = z.infer<typeof JSONDateConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONDateEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"date">;
|
|
9
7
|
field: z.ZodString;
|
|
10
8
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
9
|
modifier: z.ZodLiteral<"equals">;
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"date">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONDateEqualsConditionSchemaType = z.infer<typeof JSONDateEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONDateConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONDateConditionNotEqualsModifierSchemaType = z.infer<typeof JSONDateConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONDateNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"date">;
|
|
19
17
|
field: z.ZodString;
|
|
20
18
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
21
19
|
modifier: z.ZodLiteral<"notEquals">;
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
type: z.ZodLiteral<"date">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONDateNotEqualsConditionSchemaType = z.infer<typeof JSONDateNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONDateConditionBeforeModifierSchema: z.ZodLiteral<"before">;
|
|
25
25
|
export type JSONDateConditionBeforeModifierSchemaType = z.infer<typeof JSONDateConditionBeforeModifierSchema>;
|
|
26
26
|
export declare const JSONDateBeforeConditionSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"date">;
|
|
29
27
|
field: z.ZodString;
|
|
30
28
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
31
29
|
modifier: z.ZodLiteral<"before">;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
type: z.ZodLiteral<"date">;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type JSONDateBeforeConditionSchemaType = z.infer<typeof JSONDateBeforeConditionSchema>;
|
|
34
34
|
export declare const JSONDateConditionAfterModifierSchema: z.ZodLiteral<"after">;
|
|
35
35
|
export type JSONDateConditionAfterModifierSchemaType = z.infer<typeof JSONDateConditionAfterModifierSchema>;
|
|
36
36
|
export declare const JSONDateAfterConditionSchema: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
type: z.ZodLiteral<"date">;
|
|
39
37
|
field: z.ZodString;
|
|
40
38
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
41
39
|
modifier: z.ZodLiteral<"after">;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodLiteral<"date">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export type JSONDateAfterConditionSchemaType = z.infer<typeof JSONDateAfterConditionSchema>;
|
|
44
44
|
export declare const JSONDateConditionInModifierSchema: z.ZodLiteral<"in">;
|
|
45
45
|
export type JSONDateConditionInModifierSchemaType = z.infer<typeof JSONDateConditionInModifierSchema>;
|
|
46
46
|
export declare const JSONDateInConditionSchema: z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
type: z.ZodLiteral<"date">;
|
|
49
47
|
field: z.ZodString;
|
|
50
48
|
value: z.ZodType<{
|
|
51
49
|
from: string | null;
|
|
@@ -55,13 +53,13 @@ export declare const JSONDateInConditionSchema: z.ZodObject<{
|
|
|
55
53
|
to: string | null;
|
|
56
54
|
}, unknown>>;
|
|
57
55
|
modifier: z.ZodLiteral<"in">;
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
type: z.ZodLiteral<"date">;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
export type JSONDateInConditionSchemaType = z.infer<typeof JSONDateInConditionSchema>;
|
|
60
60
|
export declare const JSONDateConditionNotInModifierSchema: z.ZodLiteral<"notIn">;
|
|
61
61
|
export type JSONDateConditionNotInModifierSchemaType = z.infer<typeof JSONDateConditionNotInModifierSchema>;
|
|
62
62
|
export declare const JSONDateNotInConditionSchema: z.ZodObject<{
|
|
63
|
-
id: z.ZodString;
|
|
64
|
-
type: z.ZodLiteral<"date">;
|
|
65
63
|
field: z.ZodString;
|
|
66
64
|
value: z.ZodType<{
|
|
67
65
|
from: string | null;
|
|
@@ -71,37 +69,37 @@ export declare const JSONDateNotInConditionSchema: z.ZodObject<{
|
|
|
71
69
|
to: string | null;
|
|
72
70
|
}, unknown>>;
|
|
73
71
|
modifier: z.ZodLiteral<"notIn">;
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
type: z.ZodLiteral<"date">;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
export type JSONDateNotInConditionSchemaType = z.infer<typeof JSONDateNotInConditionSchema>;
|
|
76
76
|
export declare const JSONDateConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"before">, z.ZodLiteral<"after">, z.ZodLiteral<"in">, z.ZodLiteral<"notIn">]>;
|
|
77
77
|
export type JSONDateConditionModifierSchemaType = z.infer<typeof JSONDateConditionModifierSchema>;
|
|
78
78
|
export declare const JSONDateConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
|
-
id: z.ZodString;
|
|
80
|
-
type: z.ZodLiteral<"date">;
|
|
81
79
|
field: z.ZodString;
|
|
82
80
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
83
81
|
modifier: z.ZodLiteral<"equals">;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
82
|
id: z.ZodString;
|
|
86
83
|
type: z.ZodLiteral<"date">;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
85
|
field: z.ZodString;
|
|
88
86
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
89
87
|
modifier: z.ZodLiteral<"notEquals">;
|
|
90
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
91
88
|
id: z.ZodString;
|
|
92
89
|
type: z.ZodLiteral<"date">;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
91
|
field: z.ZodString;
|
|
94
92
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
95
93
|
modifier: z.ZodLiteral<"before">;
|
|
96
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
97
94
|
id: z.ZodString;
|
|
98
95
|
type: z.ZodLiteral<"date">;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
97
|
field: z.ZodString;
|
|
100
98
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
101
99
|
modifier: z.ZodLiteral<"after">;
|
|
102
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
103
100
|
id: z.ZodString;
|
|
104
101
|
type: z.ZodLiteral<"date">;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
105
103
|
field: z.ZodString;
|
|
106
104
|
value: z.ZodType<{
|
|
107
105
|
from: string | null;
|
|
@@ -111,9 +109,9 @@ export declare const JSONDateConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
111
109
|
to: string | null;
|
|
112
110
|
}, unknown>>;
|
|
113
111
|
modifier: z.ZodLiteral<"in">;
|
|
114
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
115
112
|
id: z.ZodString;
|
|
116
113
|
type: z.ZodLiteral<"date">;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
117
115
|
field: z.ZodString;
|
|
118
116
|
value: z.ZodType<{
|
|
119
117
|
from: string | null;
|
|
@@ -123,5 +121,7 @@ export declare const JSONDateConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
123
121
|
to: string | null;
|
|
124
122
|
}, unknown>>;
|
|
125
123
|
modifier: z.ZodLiteral<"notIn">;
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
type: z.ZodLiteral<"date">;
|
|
126
126
|
}, z.core.$strip>], "modifier">;
|
|
127
127
|
export type JSONDateConditionSchemaType = z.infer<typeof JSONDateConditionSchema>;
|