@adrekic/zod-fieldsjson 0.0.1 → 0.0.2-schema-improvements.1
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 +3 -3
- package/dist/conditions/boolean.d.ts +3 -3
- package/dist/conditions/checkbox-list.d.ts +3 -3
- package/dist/conditions/date.d.ts +3 -3
- package/dist/conditions/index.d.ts +51 -51
- package/dist/conditions/multi-select.d.ts +3 -3
- package/dist/conditions/multi-string.d.ts +3 -3
- package/dist/conditions/number.d.ts +3 -3
- package/dist/conditions/otp.d.ts +3 -3
- package/dist/conditions/pass-fail.d.ts +3 -3
- package/dist/conditions/radio.d.ts +3 -3
- package/dist/conditions/rating.d.ts +3 -3
- package/dist/conditions/scan.d.ts +3 -3
- package/dist/conditions/select.d.ts +3 -3
- package/dist/conditions/string.d.ts +3 -3
- package/dist/conditions/text.d.ts +3 -3
- package/dist/conditions/time.d.ts +3 -3
- package/dist/conditions/upload.d.ts +3 -3
- package/dist/conditions/url.d.ts +3 -3
- package/dist/elements/base.d.ts +1 -1
- package/dist/elements/index.d.ts +212 -214
- package/dist/elements/section.d.ts +185 -186
- package/dist/fields/base.d.ts +14 -14
- package/dist/fields/boolean.d.ts +4 -4
- package/dist/fields/checkbox-list.d.ts +4 -4
- package/dist/fields/date.d.ts +4 -4
- package/dist/fields/index.d.ts +78 -79
- package/dist/fields/multi-select.d.ts +4 -4
- package/dist/fields/multi-string.d.ts +6 -6
- package/dist/fields/number.d.ts +4 -4
- package/dist/fields/otp.d.ts +5 -8
- package/dist/fields/pass-fail.d.ts +4 -4
- package/dist/fields/radio.d.ts +4 -4
- package/dist/fields/rating.d.ts +5 -5
- package/dist/fields/scan.d.ts +4 -4
- package/dist/fields/select.d.ts +4 -4
- package/dist/fields/string.d.ts +6 -6
- package/dist/fields/text.d.ts +6 -6
- package/dist/fields/time.d.ts +4 -4
- package/dist/fields/upload.d.ts +6 -6
- package/dist/fields/url.d.ts +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +60 -69
- package/dist/schema.d.ts +134 -135
- package/package.json +3 -3
|
@@ -2,8 +2,8 @@ import * as z from "zod/v4";
|
|
|
2
2
|
export declare const BaseJSONConditionSchema: <TType extends string, TConditionValue, TModifier extends string>(typeSchema: z.ZodLiteral<TType>, valueSchema: z.ZodType<TConditionValue>, modifierSchema: z.ZodLiteral<TModifier>) => z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
type: z.ZodLiteral<TType>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
field: z.ZodString;
|
|
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>>>;
|
|
@@ -6,8 +6,8 @@ export type JSONBooleanConditionModifierSchemaType = z.infer<typeof JSONBooleanC
|
|
|
6
6
|
export declare const JSONBooleanConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"boolean">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONCheckboxListConditionModifierSchemaType = z.infer<typeof JSONChe
|
|
|
6
6
|
export declare const JSONCheckboxListConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"checkbox-list">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,14 +6,14 @@ export type JSONDateConditionModifierSchemaType = z.infer<typeof JSONDateConditi
|
|
|
6
6
|
export declare const JSONDateConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"date">;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -22,128 +22,128 @@ export type JSONConditionTypeSchemaType = z.infer<typeof JSONConditionTypeSchema
|
|
|
22
22
|
export declare const JSONConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
type: z.ZodLiteral<"boolean">;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
field: z.ZodString;
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
field: z.ZodString;
|
|
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
|
-
|
|
38
|
-
|
|
37
|
+
field: z.ZodString;
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
field: z.ZodString;
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
field: z.ZodString;
|
|
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
|
-
|
|
62
|
-
|
|
61
|
+
field: z.ZodString;
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
field: z.ZodString;
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
field: z.ZodString;
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
field: z.ZodString;
|
|
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
|
-
|
|
92
|
-
|
|
91
|
+
field: z.ZodString;
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
field: z.ZodString;
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
field: z.ZodString;
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
field: z.ZodString;
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
field: z.ZodString;
|
|
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
|
-
|
|
128
|
-
|
|
127
|
+
field: z.ZodString;
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
field: z.ZodString;
|
|
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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONMultiSelectConditionModifierSchemaType = z.infer<typeof JSONMult
|
|
|
6
6
|
export declare const JSONMultiSelectConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"multi-select">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONMultiStringConditionModifierSchemaType = z.infer<typeof JSONMult
|
|
|
6
6
|
export declare const JSONMultiStringConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"multi-string">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,14 +6,14 @@ export type JSONNumberConditionModifierSchemaType = z.infer<typeof JSONNumberCon
|
|
|
6
6
|
export declare const JSONNumberConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"number">;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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
|
@@ -6,8 +6,8 @@ export type JSONOTPConditionModifierSchemaType = z.infer<typeof JSONOTPCondition
|
|
|
6
6
|
export declare const JSONOTPConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"otp">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONPassFailFieldConditionModifierSchemaType = z.infer<typeof JSONPa
|
|
|
6
6
|
export declare const JSONPassFailFieldConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"pass-fail">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONRadioConditionModifierSchemaType = z.infer<typeof JSONRadioCondi
|
|
|
6
6
|
export declare const JSONRadioConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"radio">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,14 +6,14 @@ export type JSONRatingConditionModifierSchemaType = z.infer<typeof JSONRatingCon
|
|
|
6
6
|
export declare const JSONRatingConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"rating">;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONScanConditionModifierSchemaType = z.infer<typeof JSONScanConditi
|
|
|
6
6
|
export declare const JSONScanConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"qr">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONSelectConditionModifierSchemaType = z.infer<typeof JSONSelectCon
|
|
|
6
6
|
export declare const JSONSelectConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"select">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONStringConditionModifierSchemaType = z.infer<typeof JSONStringCon
|
|
|
6
6
|
export declare const JSONStringConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"string">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONTextConditionModifierSchemaType = z.infer<typeof JSONTextConditi
|
|
|
6
6
|
export declare const JSONTextConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"text">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,14 +6,14 @@ export type JSONTimeConditionModifierSchemaType = z.infer<typeof JSONTimeConditi
|
|
|
6
6
|
export declare const JSONTimeConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"time">;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
|
@@ -6,8 +6,8 @@ export type JSONUploadConditionModifierSchemaType = z.infer<typeof JSONUploadCon
|
|
|
6
6
|
export declare const JSONUploadConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"upload">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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
|
@@ -6,8 +6,8 @@ export type JSONURLConditionModifierSchemaType = z.infer<typeof JSONURLCondition
|
|
|
6
6
|
export declare const JSONURLConditionSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
type: z.ZodLiteral<"url">;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
field: z.ZodString;
|
|
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>;
|
package/dist/elements/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
export declare const BaseJSONFieldElementSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
|
|
3
|
-
|
|
3
|
+
id: z.ZodString;
|
|
4
4
|
type: z.ZodLiteral<TType>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export type BaseJSONFieldElementSchemaType<TType extends string> = z.infer<ReturnType<typeof BaseJSONFieldElementSchema<TType>>>;
|