@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
|
@@ -4,84 +4,84 @@ export type JSONMultiSelectConditionTypeSchemaType = z.infer<typeof JSONMultiSel
|
|
|
4
4
|
export declare const JSONMultiSelectConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONMultiSelectConditionEqualsModifierSchemaType = z.infer<typeof JSONMultiSelectConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONMultiSelectEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"multi-select">;
|
|
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<"multi-select">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONMultiSelectEqualsConditionSchemaType = z.infer<typeof JSONMultiSelectEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONMultiSelectConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONMultiSelectConditionNotEqualsModifierSchemaType = z.infer<typeof JSONMultiSelectConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONMultiSelectNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"multi-select">;
|
|
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<"multi-select">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONMultiSelectNotEqualsConditionSchemaType = z.infer<typeof JSONMultiSelectNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONMultiSelectConditionEveryModifierSchema: z.ZodLiteral<"every">;
|
|
25
25
|
export type JSONMultiSelectConditionEveryModifierSchemaType = z.infer<typeof JSONMultiSelectConditionEveryModifierSchema>;
|
|
26
26
|
export declare const JSONMultiSelectEveryConditionSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"multi-select">;
|
|
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<"multi-select">;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type JSONMultiSelectEveryConditionSchemaType = z.infer<typeof JSONMultiSelectEveryConditionSchema>;
|
|
34
34
|
export declare const JSONMultiSelectConditionSomeModifierSchema: z.ZodLiteral<"some">;
|
|
35
35
|
export type JSONMultiSelectConditionSomeModifierSchemaType = z.infer<typeof JSONMultiSelectConditionSomeModifierSchema>;
|
|
36
36
|
export declare const JSONMultiSelectSomeConditionSchema: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
type: z.ZodLiteral<"multi-select">;
|
|
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<"multi-select">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export type JSONMultiSelectSomeConditionSchemaType = z.infer<typeof JSONMultiSelectSomeConditionSchema>;
|
|
44
44
|
export declare const JSONMultiSelectConditionNoneModifierSchema: z.ZodLiteral<"none">;
|
|
45
45
|
export type JSONMultiSelectConditionNoneModifierSchemaType = z.infer<typeof JSONMultiSelectConditionNoneModifierSchema>;
|
|
46
46
|
export declare const JSONMultiSelectNoneConditionSchema: z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
type: z.ZodLiteral<"multi-select">;
|
|
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<"multi-select">;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export type JSONMultiSelectNoneConditionSchemaType = z.infer<typeof JSONMultiSelectNoneConditionSchema>;
|
|
54
54
|
export declare const JSONMultiSelectConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"every">, z.ZodLiteral<"some">, z.ZodLiteral<"none">]>;
|
|
55
55
|
export type JSONMultiSelectConditionModifierSchemaType = z.infer<typeof JSONMultiSelectConditionModifierSchema>;
|
|
56
56
|
export declare const JSONMultiSelectConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
type: z.ZodLiteral<"multi-select">;
|
|
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<"multi-select">;
|
|
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<"multi-select">;
|
|
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<"multi-select">;
|
|
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<"multi-select">;
|
|
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<"multi-select">;
|
|
86
86
|
}, z.core.$strip>], "modifier">;
|
|
87
87
|
export type JSONMultiSelectConditionSchemaType = z.infer<typeof JSONMultiSelectConditionSchema>;
|
|
@@ -4,84 +4,84 @@ export type JSONMultiStringConditionTypeSchemaType = z.infer<typeof JSONMultiStr
|
|
|
4
4
|
export declare const JSONMultiStringConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONMultiStringConditionEqualsModifierSchemaType = z.infer<typeof JSONMultiStringConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONMultiStringEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"multi-string">;
|
|
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<"multi-string">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONMultiStringEqualsConditionSchemaType = z.infer<typeof JSONMultiStringEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONMultiStringConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONMultiStringConditionNotEqualsModifierSchemaType = z.infer<typeof JSONMultiStringConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONMultiStringNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"multi-string">;
|
|
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<"multi-string">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONMultiStringNotEqualsConditionSchemaType = z.infer<typeof JSONMultiStringNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONMultiStringConditionEveryModifierSchema: z.ZodLiteral<"every">;
|
|
25
25
|
export type JSONMultiStringConditionEveryModifierSchemaType = z.infer<typeof JSONMultiStringConditionEveryModifierSchema>;
|
|
26
26
|
export declare const JSONMultiStringEveryConditionSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"multi-string">;
|
|
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<"multi-string">;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type JSONMultiStringEveryConditionSchemaType = z.infer<typeof JSONMultiStringEveryConditionSchema>;
|
|
34
34
|
export declare const JSONMultiStringConditionSomeModifierSchema: z.ZodLiteral<"some">;
|
|
35
35
|
export type JSONMultiStringConditionSomeModifierSchemaType = z.infer<typeof JSONMultiStringConditionSomeModifierSchema>;
|
|
36
36
|
export declare const JSONMultiStringSomeConditionSchema: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
type: z.ZodLiteral<"multi-string">;
|
|
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<"multi-string">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export type JSONMultiStringSomeConditionSchemaType = z.infer<typeof JSONMultiStringSomeConditionSchema>;
|
|
44
44
|
export declare const JSONMultiStringConditionNoneModifierSchema: z.ZodLiteral<"none">;
|
|
45
45
|
export type JSONMultiStringConditionNoneModifierSchemaType = z.infer<typeof JSONMultiStringConditionNoneModifierSchema>;
|
|
46
46
|
export declare const JSONMultiStringNoneConditionSchema: z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
type: z.ZodLiteral<"multi-string">;
|
|
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<"multi-string">;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export type JSONMultiStringNoneConditionSchemaType = z.infer<typeof JSONMultiStringNoneConditionSchema>;
|
|
54
54
|
export declare const JSONMultiStringConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"every">, z.ZodLiteral<"some">, z.ZodLiteral<"none">]>;
|
|
55
55
|
export type JSONMultiStringConditionModifierSchemaType = z.infer<typeof JSONMultiStringConditionModifierSchema>;
|
|
56
56
|
export declare const JSONMultiStringConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
type: z.ZodLiteral<"multi-string">;
|
|
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<"multi-string">;
|
|
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<"multi-string">;
|
|
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<"multi-string">;
|
|
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<"multi-string">;
|
|
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<"multi-string">;
|
|
86
86
|
}, z.core.$strip>], "modifier">;
|
|
87
87
|
export type JSONMultiStringConditionSchemaType = z.infer<typeof JSONMultiStringConditionSchema>;
|
|
@@ -4,68 +4,66 @@ export type JSONNumberConditionTypeSchemaType = z.infer<typeof JSONNumberConditi
|
|
|
4
4
|
export declare const JSONNumberConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONNumberConditionEqualsModifierSchemaType = z.infer<typeof JSONNumberConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONNumberEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"number">;
|
|
9
7
|
field: z.ZodString;
|
|
10
8
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
11
9
|
modifier: z.ZodLiteral<"equals">;
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"number">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONNumberEqualsConditionSchemaType = z.infer<typeof JSONNumberEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONNumberConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONNumberConditionNotEqualsModifierSchemaType = z.infer<typeof JSONNumberConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONNumberNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"number">;
|
|
19
17
|
field: z.ZodString;
|
|
20
18
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
21
19
|
modifier: z.ZodLiteral<"notEquals">;
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
type: z.ZodLiteral<"number">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONNumberNotEqualsConditionSchemaType = z.infer<typeof JSONNumberNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONNumberConditionLessThanModifierSchema: z.ZodLiteral<"lessThan">;
|
|
25
25
|
export type JSONNumberConditionLessThanModifierSchemaType = z.infer<typeof JSONNumberConditionLessThanModifierSchema>;
|
|
26
26
|
export declare const JSONNumberLessThanConditionSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"number">;
|
|
29
27
|
field: z.ZodString;
|
|
30
28
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
31
29
|
modifier: z.ZodLiteral<"lessThan">;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
type: z.ZodLiteral<"number">;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type JSONNumberLessThanConditionSchemaType = z.infer<typeof JSONNumberLessThanConditionSchema>;
|
|
34
34
|
export declare const JSONNumberConditionLessThanOrEqualsModifierSchema: z.ZodLiteral<"lessThanOrEquals">;
|
|
35
35
|
export type JSONNumberConditionLessThanOrEqualsModifierSchemaType = z.infer<typeof JSONNumberConditionLessThanOrEqualsModifierSchema>;
|
|
36
36
|
export declare const JSONNumberLessThanOrEqualsConditionSchema: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
type: z.ZodLiteral<"number">;
|
|
39
37
|
field: z.ZodString;
|
|
40
38
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
41
39
|
modifier: z.ZodLiteral<"lessThanOrEquals">;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodLiteral<"number">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export type JSONNumberLessThanOrEqualsConditionSchemaType = z.infer<typeof JSONNumberLessThanOrEqualsConditionSchema>;
|
|
44
44
|
export declare const JSONNumberConditionGreaterThanModifierSchema: z.ZodLiteral<"greaterThan">;
|
|
45
45
|
export type JSONNumberConditionGreaterThanModifierSchemaType = z.infer<typeof JSONNumberConditionGreaterThanModifierSchema>;
|
|
46
46
|
export declare const JSONNumberGreaterThanConditionSchema: z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
type: z.ZodLiteral<"number">;
|
|
49
47
|
field: z.ZodString;
|
|
50
48
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
51
49
|
modifier: z.ZodLiteral<"greaterThan">;
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
type: z.ZodLiteral<"number">;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export type JSONNumberGreaterThanConditionSchemaType = z.infer<typeof JSONNumberGreaterThanConditionSchema>;
|
|
54
54
|
export declare const JSONNumberConditionGreaterThanOrEqualsModifierSchema: z.ZodLiteral<"greaterThanOrEquals">;
|
|
55
55
|
export type JSONNumberConditionGreaterThanOrEqualsModifierSchemaType = z.infer<typeof JSONNumberConditionGreaterThanOrEqualsModifierSchema>;
|
|
56
56
|
export declare const JSONNumberGreaterThanOrEqualsConditionSchema: z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
type: z.ZodLiteral<"number">;
|
|
59
57
|
field: z.ZodString;
|
|
60
58
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
61
59
|
modifier: z.ZodLiteral<"greaterThanOrEquals">;
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
type: z.ZodLiteral<"number">;
|
|
62
62
|
}, z.core.$strip>;
|
|
63
63
|
export type JSONNumberGreaterThanOrEqualsConditionSchemaType = z.infer<typeof JSONNumberGreaterThanOrEqualsConditionSchema>;
|
|
64
64
|
export declare const JSONNumberConditionInRangeModifierSchema: z.ZodLiteral<"inRange">;
|
|
65
65
|
export type JSONNumberConditionInRangeModifierSchemaType = z.infer<typeof JSONNumberConditionInRangeModifierSchema>;
|
|
66
66
|
export declare const JSONNumberInRangeConditionSchema: z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
type: z.ZodLiteral<"number">;
|
|
69
67
|
field: z.ZodString;
|
|
70
68
|
value: z.ZodType<{
|
|
71
69
|
from: number | null;
|
|
@@ -75,13 +73,13 @@ export declare const JSONNumberInRangeConditionSchema: z.ZodObject<{
|
|
|
75
73
|
to: number | null;
|
|
76
74
|
}, unknown>>;
|
|
77
75
|
modifier: z.ZodLiteral<"inRange">;
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
type: z.ZodLiteral<"number">;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
79
|
export type JSONNumberInRangeConditionSchemaType = z.infer<typeof JSONNumberInRangeConditionSchema>;
|
|
80
80
|
export declare const JSONNumberConditionNotInRangeModifierSchema: z.ZodLiteral<"notInRange">;
|
|
81
81
|
export type JSONNumberConditionNotInRangeModifierSchemaType = z.infer<typeof JSONNumberConditionNotInRangeModifierSchema>;
|
|
82
82
|
export declare const JSONNumberNotInRangeConditionSchema: z.ZodObject<{
|
|
83
|
-
id: z.ZodString;
|
|
84
|
-
type: z.ZodLiteral<"number">;
|
|
85
83
|
field: z.ZodString;
|
|
86
84
|
value: z.ZodType<{
|
|
87
85
|
from: number | null;
|
|
@@ -91,49 +89,49 @@ export declare const JSONNumberNotInRangeConditionSchema: z.ZodObject<{
|
|
|
91
89
|
to: number | null;
|
|
92
90
|
}, unknown>>;
|
|
93
91
|
modifier: z.ZodLiteral<"notInRange">;
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
type: z.ZodLiteral<"number">;
|
|
94
94
|
}, z.core.$strip>;
|
|
95
95
|
export type JSONNumberNotInRangeConditionSchemaType = z.infer<typeof JSONNumberNotInRangeConditionSchema>;
|
|
96
96
|
export declare const JSONNumberConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"lessThan">, z.ZodLiteral<"lessThanOrEquals">, z.ZodLiteral<"greaterThan">, z.ZodLiteral<"greaterThanOrEquals">, z.ZodLiteral<"inRange">, z.ZodLiteral<"notInRange">]>;
|
|
97
97
|
export type JSONNumberConditionModifierSchemaType = z.infer<typeof JSONNumberConditionModifierSchema>;
|
|
98
98
|
export declare const JSONNumberConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
99
|
-
id: z.ZodString;
|
|
100
|
-
type: z.ZodLiteral<"number">;
|
|
101
99
|
field: z.ZodString;
|
|
102
100
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
103
101
|
modifier: z.ZodLiteral<"equals">;
|
|
104
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
105
102
|
id: z.ZodString;
|
|
106
103
|
type: z.ZodLiteral<"number">;
|
|
104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
105
|
field: z.ZodString;
|
|
108
106
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
109
107
|
modifier: z.ZodLiteral<"notEquals">;
|
|
110
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
111
108
|
id: z.ZodString;
|
|
112
109
|
type: z.ZodLiteral<"number">;
|
|
110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
113
111
|
field: z.ZodString;
|
|
114
112
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
115
113
|
modifier: z.ZodLiteral<"lessThan">;
|
|
116
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
117
114
|
id: z.ZodString;
|
|
118
115
|
type: z.ZodLiteral<"number">;
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
117
|
field: z.ZodString;
|
|
120
118
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
121
119
|
modifier: z.ZodLiteral<"lessThanOrEquals">;
|
|
122
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
123
120
|
id: z.ZodString;
|
|
124
121
|
type: z.ZodLiteral<"number">;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
123
|
field: z.ZodString;
|
|
126
124
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
127
125
|
modifier: z.ZodLiteral<"greaterThan">;
|
|
128
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
129
126
|
id: z.ZodString;
|
|
130
127
|
type: z.ZodLiteral<"number">;
|
|
128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
129
|
field: z.ZodString;
|
|
132
130
|
value: z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
|
|
133
131
|
modifier: z.ZodLiteral<"greaterThanOrEquals">;
|
|
134
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
135
132
|
id: z.ZodString;
|
|
136
133
|
type: z.ZodLiteral<"number">;
|
|
134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
135
|
field: z.ZodString;
|
|
138
136
|
value: z.ZodType<{
|
|
139
137
|
from: number | null;
|
|
@@ -143,9 +141,9 @@ export declare const JSONNumberConditionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
143
141
|
to: number | null;
|
|
144
142
|
}, unknown>>;
|
|
145
143
|
modifier: z.ZodLiteral<"inRange">;
|
|
146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
147
144
|
id: z.ZodString;
|
|
148
145
|
type: z.ZodLiteral<"number">;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
147
|
field: z.ZodString;
|
|
150
148
|
value: z.ZodType<{
|
|
151
149
|
from: number | null;
|
|
@@ -155,5 +153,7 @@ export declare const JSONNumberConditionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
155
153
|
to: number | null;
|
|
156
154
|
}, unknown>>;
|
|
157
155
|
modifier: z.ZodLiteral<"notInRange">;
|
|
156
|
+
id: z.ZodString;
|
|
157
|
+
type: z.ZodLiteral<"number">;
|
|
158
158
|
}, z.core.$strip>], "modifier">;
|
|
159
159
|
export type JSONNumberConditionSchemaType = z.infer<typeof JSONNumberConditionSchema>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { JSONAtomicConditionSchemaType } from './index';
|
|
2
|
+
import * as z from "zod/v4";
|
|
3
|
+
export declare const JSONCompoundConditionTypeSchema: z.ZodLiteral<"compound">;
|
|
4
|
+
export type JSONCompoundConditionTypeSchemaType = z.infer<typeof JSONCompoundConditionTypeSchema>;
|
|
5
|
+
export declare const JSONAndConditionOperatorSchema: z.ZodLiteral<"and">;
|
|
6
|
+
export type JSONAndConditionOperatorSchemaType = z.infer<typeof JSONAndConditionOperatorSchema>;
|
|
7
|
+
export declare const JSONAndConditionSchema: z.ZodObject<{
|
|
8
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
9
|
+
operator: z.ZodLiteral<"and">;
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"compound">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const JSONOrConditionOperatorSchema: z.ZodLiteral<"or">;
|
|
14
|
+
export type JSONOrConditionOperatorSchemaType = z.infer<typeof JSONOrConditionOperatorSchema>;
|
|
15
|
+
export declare const JSONOrConditionSchema: z.ZodObject<{
|
|
16
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
17
|
+
operator: z.ZodLiteral<"or">;
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
type: z.ZodLiteral<"compound">;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const JSONNandConditionOperatorSchema: z.ZodLiteral<"nand">;
|
|
22
|
+
export type JSONNandConditionOperatorSchemaType = z.infer<typeof JSONNandConditionOperatorSchema>;
|
|
23
|
+
export declare const JSONNandConditionSchema: z.ZodObject<{
|
|
24
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
25
|
+
operator: z.ZodLiteral<"nand">;
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
type: z.ZodLiteral<"compound">;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const JSONNorConditionOperatorSchema: z.ZodLiteral<"nor">;
|
|
30
|
+
export type JSONNorConditionOperatorSchemaType = z.infer<typeof JSONNorConditionOperatorSchema>;
|
|
31
|
+
export declare const JSONNorConditionSchema: z.ZodObject<{
|
|
32
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
33
|
+
operator: z.ZodLiteral<"nor">;
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
type: z.ZodLiteral<"compound">;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const JSONXorConditionOperatorSchema: z.ZodLiteral<"xor">;
|
|
38
|
+
export type JSONXorConditionOperatorSchemaType = z.infer<typeof JSONXorConditionOperatorSchema>;
|
|
39
|
+
export declare const JSONXorConditionSchema: z.ZodObject<{
|
|
40
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
41
|
+
operator: z.ZodLiteral<"xor">;
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
type: z.ZodLiteral<"compound">;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const JSONXnorConditionOperatorSchema: z.ZodLiteral<"xnor">;
|
|
46
|
+
export type JSONXnorConditionOperatorSchemaType = z.infer<typeof JSONXnorConditionOperatorSchema>;
|
|
47
|
+
export declare const JSONXnorConditionSchema: z.ZodObject<{
|
|
48
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
49
|
+
operator: z.ZodLiteral<"xnor">;
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
type: z.ZodLiteral<"compound">;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const JSONCompoundConditionOperator: z.ZodUnion<readonly [z.ZodLiteral<"and">, z.ZodLiteral<"or">, z.ZodLiteral<"nand">, z.ZodLiteral<"nor">, z.ZodLiteral<"xor">, z.ZodLiteral<"xnor">]>;
|
|
54
|
+
export type JSONCompoundConditionOperatorType = z.infer<typeof JSONCompoundConditionOperator>;
|
|
55
|
+
export declare const JSONCompoundConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
57
|
+
operator: z.ZodLiteral<"and">;
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
type: z.ZodLiteral<"compound">;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
62
|
+
operator: z.ZodLiteral<"or">;
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
type: z.ZodLiteral<"compound">;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
67
|
+
operator: z.ZodLiteral<"nand">;
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
type: z.ZodLiteral<"compound">;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
72
|
+
operator: z.ZodLiteral<"nor">;
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
type: z.ZodLiteral<"compound">;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
77
|
+
operator: z.ZodLiteral<"xor">;
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
type: z.ZodLiteral<"compound">;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
conditions: z.ZodArray<z.ZodType<_JSONCondition>>;
|
|
82
|
+
operator: z.ZodLiteral<"xnor">;
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
type: z.ZodLiteral<"compound">;
|
|
85
|
+
}, z.core.$strip>], "operator">;
|
|
86
|
+
export type JSONCompoundConditionSchemaType = z.infer<typeof JSONCompoundConditionSchema>;
|
|
87
|
+
type _JSONCondition = JSONAtomicConditionSchemaType | {
|
|
88
|
+
[Operator in JSONCompoundConditionOperatorType]: {
|
|
89
|
+
id: string;
|
|
90
|
+
type: JSONCompoundConditionTypeSchemaType;
|
|
91
|
+
operator: Operator;
|
|
92
|
+
conditions: _JSONCondition[];
|
|
93
|
+
};
|
|
94
|
+
}[JSONCompoundConditionOperatorType];
|
|
95
|
+
export {};
|
package/dist/conditions/otp.d.ts
CHANGED
|
@@ -4,68 +4,68 @@ export type JSONOTPConditionTypeSchemaType = z.infer<typeof JSONOTPConditionType
|
|
|
4
4
|
export declare const JSONOTPConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONOTPConditionEqualsModifierSchemaType = z.infer<typeof JSONOTPConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONOTPEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"otp">;
|
|
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<"otp">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONOTPEqualsConditionSchemaType = z.infer<typeof JSONOTPEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONOTPConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONOTPConditionNotEqualsModifierSchemaType = z.infer<typeof JSONOTPConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONOTPNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"otp">;
|
|
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<"otp">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONOTPNotEqualsConditionSchemaType = z.infer<typeof JSONOTPNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONOTPConditionIncludesModifierSchema: z.ZodLiteral<"includes">;
|
|
25
25
|
export type JSONOTPConditionIncludesModifierSchemaType = z.infer<typeof JSONOTPConditionIncludesModifierSchema>;
|
|
26
26
|
export declare const JSONOTPIncludesConditionSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"otp">;
|
|
29
27
|
field: z.ZodString;
|
|
30
28
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
31
29
|
modifier: z.ZodLiteral<"includes">;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
type: z.ZodLiteral<"otp">;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type JSONOTPIncludesConditionSchemaType = z.infer<typeof JSONOTPIncludesConditionSchema>;
|
|
34
34
|
export declare const JSONOTPConditionExcludesModifierSchema: z.ZodLiteral<"excludes">;
|
|
35
35
|
export type JSONOTPConditionExcludesModifierSchemaType = z.infer<typeof JSONOTPConditionExcludesModifierSchema>;
|
|
36
36
|
export declare const JSONOTPExcludesConditionSchema: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
type: z.ZodLiteral<"otp">;
|
|
39
37
|
field: z.ZodString;
|
|
40
38
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
41
39
|
modifier: z.ZodLiteral<"excludes">;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodLiteral<"otp">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export type JSONOTPExcludesConditionSchemaType = z.infer<typeof JSONOTPExcludesConditionSchema>;
|
|
44
44
|
export declare const JSONOTPConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"includes">, z.ZodLiteral<"excludes">]>;
|
|
45
45
|
export type JSONOTPConditionModifierSchemaType = z.infer<typeof JSONOTPConditionModifierSchema>;
|
|
46
46
|
export declare const JSONOTPConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
type: z.ZodLiteral<"otp">;
|
|
49
47
|
field: z.ZodString;
|
|
50
48
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
51
49
|
modifier: z.ZodLiteral<"equals">;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
50
|
id: z.ZodString;
|
|
54
51
|
type: z.ZodLiteral<"otp">;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
53
|
field: z.ZodString;
|
|
56
54
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
57
55
|
modifier: z.ZodLiteral<"notEquals">;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
56
|
id: z.ZodString;
|
|
60
57
|
type: z.ZodLiteral<"otp">;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
59
|
field: z.ZodString;
|
|
62
60
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
63
61
|
modifier: z.ZodLiteral<"includes">;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
62
|
id: z.ZodString;
|
|
66
63
|
type: z.ZodLiteral<"otp">;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
65
|
field: z.ZodString;
|
|
68
66
|
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
69
67
|
modifier: z.ZodLiteral<"excludes">;
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
type: z.ZodLiteral<"otp">;
|
|
70
70
|
}, z.core.$strip>], "modifier">;
|
|
71
71
|
export type JSONOTPConditionSchemaType = z.infer<typeof JSONOTPConditionSchema>;
|
|
@@ -4,68 +4,68 @@ export type JSONPassFailConditionTypeSchemaType = z.infer<typeof JSONPassFailCon
|
|
|
4
4
|
export declare const JSONPassFailFieldConditionEqualsModifierSchema: z.ZodLiteral<"equals">;
|
|
5
5
|
export type JSONPassFailFieldConditionEqualsModifierSchemaType = z.infer<typeof JSONPassFailFieldConditionEqualsModifierSchema>;
|
|
6
6
|
export declare const JSONPassFailFieldEqualsConditionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"pass-fail">;
|
|
9
7
|
field: z.ZodString;
|
|
10
8
|
value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
|
|
11
9
|
modifier: z.ZodLiteral<"equals">;
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONPassFailFieldEqualsConditionSchemaType = z.infer<typeof JSONPassFailFieldEqualsConditionSchema>;
|
|
14
14
|
export declare const JSONPassFailFieldConditionNotEqualsModifierSchema: z.ZodLiteral<"notEquals">;
|
|
15
15
|
export type JSONPassFailFieldConditionNotEqualsModifierSchemaType = z.infer<typeof JSONPassFailFieldConditionNotEqualsModifierSchema>;
|
|
16
16
|
export declare const JSONPassFailFieldNotEqualsConditionSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
type: z.ZodLiteral<"pass-fail">;
|
|
19
17
|
field: z.ZodString;
|
|
20
18
|
value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
|
|
21
19
|
modifier: z.ZodLiteral<"notEquals">;
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type JSONPassFailFieldNotEqualsConditionSchemaType = z.infer<typeof JSONPassFailFieldNotEqualsConditionSchema>;
|
|
24
24
|
export declare const JSONPassFailFieldConditionIncludesModifierSchema: z.ZodLiteral<"includes">;
|
|
25
25
|
export type JSONPassFailFieldConditionIncludesModifierSchemaType = z.infer<typeof JSONPassFailFieldConditionIncludesModifierSchema>;
|
|
26
26
|
export declare const JSONPassFailFieldIncludesConditionSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<"pass-fail">;
|
|
29
27
|
field: z.ZodString;
|
|
30
28
|
value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
|
|
31
29
|
modifier: z.ZodLiteral<"includes">;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type JSONPassFailFieldIncludesConditionSchemaType = z.infer<typeof JSONPassFailFieldIncludesConditionSchema>;
|
|
34
34
|
export declare const JSONPassFailFieldConditionExcludesModifierSchema: z.ZodLiteral<"excludes">;
|
|
35
35
|
export type JSONPassFailFieldConditionExcludesModifierSchemaType = z.infer<typeof JSONPassFailFieldConditionExcludesModifierSchema>;
|
|
36
36
|
export declare const JSONPassFailFieldExcludesConditionSchema: z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
type: z.ZodLiteral<"pass-fail">;
|
|
39
37
|
field: z.ZodString;
|
|
40
38
|
value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
|
|
41
39
|
modifier: z.ZodLiteral<"excludes">;
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
export type JSONPassFailFieldExcludesConditionSchemaType = z.infer<typeof JSONPassFailFieldExcludesConditionSchema>;
|
|
44
44
|
export declare const JSONPassFailFieldConditionModifierSchema: z.ZodUnion<readonly [z.ZodLiteral<"equals">, z.ZodLiteral<"notEquals">, z.ZodLiteral<"includes">, z.ZodLiteral<"excludes">]>;
|
|
45
45
|
export type JSONPassFailFieldConditionModifierSchemaType = z.infer<typeof JSONPassFailFieldConditionModifierSchema>;
|
|
46
46
|
export declare const JSONPassFailFieldConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
type: z.ZodLiteral<"pass-fail">;
|
|
49
47
|
field: z.ZodString;
|
|
50
48
|
value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
|
|
51
49
|
modifier: z.ZodLiteral<"equals">;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
50
|
id: z.ZodString;
|
|
54
51
|
type: z.ZodLiteral<"pass-fail">;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
53
|
field: z.ZodString;
|
|
56
54
|
value: z.ZodType<"pass" | "fail" | "na", unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na", unknown>>;
|
|
57
55
|
modifier: z.ZodLiteral<"notEquals">;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
56
|
id: z.ZodString;
|
|
60
57
|
type: z.ZodLiteral<"pass-fail">;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
59
|
field: z.ZodString;
|
|
62
60
|
value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
|
|
63
61
|
modifier: z.ZodLiteral<"includes">;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
62
|
id: z.ZodString;
|
|
66
63
|
type: z.ZodLiteral<"pass-fail">;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
65
|
field: z.ZodString;
|
|
68
66
|
value: z.ZodType<("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<("pass" | "fail" | "na")[], unknown>>;
|
|
69
67
|
modifier: z.ZodLiteral<"excludes">;
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
70
70
|
}, z.core.$strip>], "modifier">;
|
|
71
71
|
export type JSONPassFailFieldConditionSchemaType = z.infer<typeof JSONPassFailFieldConditionSchema>;
|