@adrekic/zod-fieldsjson 0.0.1 → 0.0.2-schema-improvements.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 +2 -2
- package/dist/conditions/boolean.d.ts +2 -2
- package/dist/conditions/checkbox-list.d.ts +2 -2
- package/dist/conditions/date.d.ts +2 -2
- package/dist/conditions/index.d.ts +34 -34
- package/dist/conditions/multi-select.d.ts +2 -2
- package/dist/conditions/multi-string.d.ts +2 -2
- package/dist/conditions/number.d.ts +2 -2
- package/dist/conditions/otp.d.ts +2 -2
- package/dist/conditions/pass-fail.d.ts +2 -2
- package/dist/conditions/radio.d.ts +2 -2
- package/dist/conditions/rating.d.ts +2 -2
- package/dist/conditions/scan.d.ts +2 -2
- package/dist/conditions/select.d.ts +2 -2
- package/dist/conditions/string.d.ts +2 -2
- package/dist/conditions/text.d.ts +2 -2
- package/dist/conditions/time.d.ts +2 -2
- package/dist/conditions/upload.d.ts +2 -2
- package/dist/conditions/url.d.ts +2 -2
- package/dist/elements/index.d.ts +160 -162
- package/dist/elements/section.d.ts +133 -134
- package/dist/fields/base.d.ts +11 -11
- package/dist/fields/boolean.d.ts +3 -3
- package/dist/fields/checkbox-list.d.ts +3 -3
- package/dist/fields/date.d.ts +3 -3
- package/dist/fields/index.d.ts +61 -62
- package/dist/fields/multi-select.d.ts +3 -3
- package/dist/fields/multi-string.d.ts +5 -5
- package/dist/fields/number.d.ts +3 -3
- package/dist/fields/otp.d.ts +4 -7
- package/dist/fields/pass-fail.d.ts +3 -3
- package/dist/fields/radio.d.ts +3 -3
- package/dist/fields/rating.d.ts +4 -4
- package/dist/fields/scan.d.ts +3 -3
- package/dist/fields/select.d.ts +3 -3
- package/dist/fields/string.d.ts +5 -5
- package/dist/fields/text.d.ts +5 -5
- package/dist/fields/time.d.ts +3 -3
- package/dist/fields/upload.d.ts +5 -5
- package/dist/fields/url.d.ts +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +58 -67
- package/dist/schema.d.ts +99 -100
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ export declare const BaseJSONConditionSchema: <TType extends string, TConditionV
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
type: z.ZodLiteral<TType>;
|
|
5
5
|
fieldId: z.ZodString;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
value: z.ZodType<TConditionValue, unknown, z.core.$ZodTypeInternals<TConditionValue, unknown>>;
|
|
7
|
+
modifier: z.ZodLiteral<TModifier>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type BaseJSONConditionSchemaType<TType extends string, TConditionValue, TModifier extends string> = z.infer<ReturnType<typeof BaseJSONConditionSchema<TType, TConditionValue, TModifier>>>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONBooleanConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"boolean">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONBooleanConditionSchemaType = z.infer<typeof JSONBooleanConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONCheckboxListConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"checkbox-list">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONCheckboxListConditionSchemaType = z.infer<typeof JSONCheckboxListConditionSchema>;
|
|
@@ -7,13 +7,13 @@ export declare const JSONDateConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"date">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
10
|
+
value: z.ZodType<string | {
|
|
11
11
|
from: string | null;
|
|
12
12
|
to: string | null;
|
|
13
13
|
}, unknown, z.core.$ZodTypeInternals<string | {
|
|
14
14
|
from: string | null;
|
|
15
15
|
to: string | null;
|
|
16
16
|
}, unknown>>;
|
|
17
|
-
|
|
17
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type JSONDateConditionSchemaType = z.infer<typeof JSONDateConditionSchema>;
|
|
@@ -23,127 +23,127 @@ export declare const JSONConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
type: z.ZodLiteral<"boolean">;
|
|
25
25
|
fieldId: z.ZodString;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
27
|
+
modifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
28
28
|
}, z.core.$strip>, z.ZodObject<{
|
|
29
29
|
id: z.ZodString;
|
|
30
30
|
type: z.ZodLiteral<"checkbox-list">;
|
|
31
31
|
fieldId: z.ZodString;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
33
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
34
34
|
}, z.core.$strip>, z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
36
36
|
type: z.ZodLiteral<"date">;
|
|
37
37
|
fieldId: z.ZodString;
|
|
38
|
-
|
|
38
|
+
value: z.ZodType<string | {
|
|
39
39
|
from: string | null;
|
|
40
40
|
to: string | null;
|
|
41
41
|
}, unknown, z.core.$ZodTypeInternals<string | {
|
|
42
42
|
from: string | null;
|
|
43
43
|
to: string | null;
|
|
44
44
|
}, unknown>>;
|
|
45
|
-
|
|
45
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
46
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
47
47
|
id: z.ZodString;
|
|
48
48
|
type: z.ZodLiteral<"multi-select">;
|
|
49
49
|
fieldId: z.ZodString;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
51
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
52
52
|
}, z.core.$strip>, z.ZodObject<{
|
|
53
53
|
id: z.ZodString;
|
|
54
54
|
type: z.ZodLiteral<"multi-string">;
|
|
55
55
|
fieldId: z.ZodString;
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
57
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
58
58
|
}, z.core.$strip>, z.ZodObject<{
|
|
59
59
|
id: z.ZodString;
|
|
60
60
|
type: z.ZodLiteral<"number">;
|
|
61
61
|
fieldId: z.ZodString;
|
|
62
|
-
|
|
62
|
+
value: z.ZodType<number | {
|
|
63
63
|
from: number | null;
|
|
64
64
|
to: number | null;
|
|
65
65
|
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
66
66
|
from: number | null;
|
|
67
67
|
to: number | null;
|
|
68
68
|
}, unknown>>;
|
|
69
|
-
|
|
69
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
70
70
|
}, z.core.$strip>, z.ZodObject<{
|
|
71
71
|
id: z.ZodString;
|
|
72
72
|
type: z.ZodLiteral<"otp">;
|
|
73
73
|
fieldId: z.ZodString;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
75
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
76
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
77
|
id: z.ZodString;
|
|
78
78
|
type: z.ZodLiteral<"pass-fail">;
|
|
79
79
|
fieldId: z.ZodString;
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
value: z.ZodType<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown>>;
|
|
81
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
82
82
|
}, z.core.$strip>, z.ZodObject<{
|
|
83
83
|
id: z.ZodString;
|
|
84
84
|
type: z.ZodLiteral<"radio">;
|
|
85
85
|
fieldId: z.ZodString;
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
value: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
|
|
87
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
88
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
89
|
id: z.ZodString;
|
|
90
90
|
type: z.ZodLiteral<"rating">;
|
|
91
91
|
fieldId: z.ZodString;
|
|
92
|
-
|
|
92
|
+
value: z.ZodType<number | {
|
|
93
93
|
from: number | null;
|
|
94
94
|
to: number | null;
|
|
95
95
|
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
96
96
|
from: number | null;
|
|
97
97
|
to: number | null;
|
|
98
98
|
}, unknown>>;
|
|
99
|
-
|
|
99
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
100
100
|
}, z.core.$strip>, z.ZodObject<{
|
|
101
101
|
id: z.ZodString;
|
|
102
102
|
type: z.ZodLiteral<"qr">;
|
|
103
103
|
fieldId: z.ZodString;
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
105
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
106
106
|
}, z.core.$strip>, z.ZodObject<{
|
|
107
107
|
id: z.ZodString;
|
|
108
108
|
type: z.ZodLiteral<"select">;
|
|
109
109
|
fieldId: z.ZodString;
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
value: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
|
|
111
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
112
112
|
}, z.core.$strip>, z.ZodObject<{
|
|
113
113
|
id: z.ZodString;
|
|
114
114
|
type: z.ZodLiteral<"string">;
|
|
115
115
|
fieldId: z.ZodString;
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
117
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
118
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
119
119
|
id: z.ZodString;
|
|
120
120
|
type: z.ZodLiteral<"text">;
|
|
121
121
|
fieldId: z.ZodString;
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
123
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
124
124
|
}, z.core.$strip>, z.ZodObject<{
|
|
125
125
|
id: z.ZodString;
|
|
126
126
|
type: z.ZodLiteral<"time">;
|
|
127
127
|
fieldId: z.ZodString;
|
|
128
|
-
|
|
128
|
+
value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
129
129
|
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
130
130
|
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
131
131
|
}, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
132
132
|
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
133
133
|
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
134
134
|
}, unknown>>;
|
|
135
|
-
|
|
135
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
136
136
|
}, z.core.$strip>, z.ZodObject<{
|
|
137
137
|
id: z.ZodString;
|
|
138
138
|
type: z.ZodLiteral<"upload">;
|
|
139
139
|
fieldId: z.ZodString;
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
141
|
+
modifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
142
142
|
}, z.core.$strip>, z.ZodObject<{
|
|
143
143
|
id: z.ZodString;
|
|
144
144
|
type: z.ZodLiteral<"url">;
|
|
145
145
|
fieldId: z.ZodString;
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
147
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
148
148
|
}, z.core.$strip>], "type">;
|
|
149
149
|
export type JSONConditionSchemaType = z.infer<typeof JSONConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONMultiSelectConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"multi-select">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONMultiSelectConditionSchemaType = z.infer<typeof JSONMultiSelectConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONMultiStringConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"multi-string">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONMultiStringConditionSchemaType = z.infer<typeof JSONMultiStringConditionSchema>;
|
|
@@ -7,13 +7,13 @@ export declare const JSONNumberConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"number">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
10
|
+
value: z.ZodType<number | {
|
|
11
11
|
from: number | null;
|
|
12
12
|
to: number | null;
|
|
13
13
|
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
14
14
|
from: number | null;
|
|
15
15
|
to: number | null;
|
|
16
16
|
}, unknown>>;
|
|
17
|
-
|
|
17
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type JSONNumberConditionSchemaType = z.infer<typeof JSONNumberConditionSchema>;
|
package/dist/conditions/otp.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const JSONOTPConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"otp">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONOTPConditionSchemaType = z.infer<typeof JSONOTPConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONPassFailFieldConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"pass-fail">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONPassFailFieldConditionSchemaType = z.infer<typeof JSONPassFailFieldConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONRadioConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"radio">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONRadioConditionSchemaType = z.infer<typeof JSONRadioConditionSchema>;
|
|
@@ -7,13 +7,13 @@ export declare const JSONRatingConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"rating">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
10
|
+
value: z.ZodType<number | {
|
|
11
11
|
from: number | null;
|
|
12
12
|
to: number | null;
|
|
13
13
|
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
14
14
|
from: number | null;
|
|
15
15
|
to: number | null;
|
|
16
16
|
}, unknown>>;
|
|
17
|
-
|
|
17
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type JSONRatingConditionSchemaType = z.infer<typeof JSONRatingConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONScanConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"qr">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONScanConditionSchemaType = z.infer<typeof JSONScanConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONSelectConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"select">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONSelectConditionSchemaType = z.infer<typeof JSONSelectConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONStringConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"string">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONStringConditionSchemaType = z.infer<typeof JSONStringConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONTextConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"text">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONTextConditionSchemaType = z.infer<typeof JSONTextConditionSchema>;
|
|
@@ -7,13 +7,13 @@ export declare const JSONTimeConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"time">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
10
|
+
value: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
11
11
|
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
12
12
|
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
13
13
|
}, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
14
14
|
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
15
15
|
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
16
16
|
}, unknown>>;
|
|
17
|
-
|
|
17
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type JSONTimeConditionSchemaType = z.infer<typeof JSONTimeConditionSchema>;
|
|
@@ -7,7 +7,7 @@ export declare const JSONUploadConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"upload">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONUploadConditionSchemaType = z.infer<typeof JSONUploadConditionSchema>;
|
package/dist/conditions/url.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const JSONURLConditionSchema: z.ZodObject<{
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"url">;
|
|
9
9
|
fieldId: z.ZodString;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
value: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
modifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type JSONURLConditionSchemaType = z.infer<typeof JSONURLConditionSchema>;
|