@adrekic/zod-fieldsjson 0.0.1-schemas.3 → 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.
Files changed (44) hide show
  1. package/dist/conditions/base.d.ts +2 -2
  2. package/dist/conditions/boolean.d.ts +2 -2
  3. package/dist/conditions/checkbox-list.d.ts +2 -2
  4. package/dist/conditions/date.d.ts +2 -2
  5. package/dist/conditions/index.d.ts +34 -34
  6. package/dist/conditions/multi-select.d.ts +2 -2
  7. package/dist/conditions/multi-string.d.ts +2 -2
  8. package/dist/conditions/number.d.ts +2 -2
  9. package/dist/conditions/otp.d.ts +2 -2
  10. package/dist/conditions/pass-fail.d.ts +2 -2
  11. package/dist/conditions/radio.d.ts +2 -2
  12. package/dist/conditions/rating.d.ts +2 -2
  13. package/dist/conditions/scan.d.ts +2 -2
  14. package/dist/conditions/select.d.ts +2 -2
  15. package/dist/conditions/string.d.ts +2 -2
  16. package/dist/conditions/text.d.ts +2 -2
  17. package/dist/conditions/time.d.ts +2 -2
  18. package/dist/conditions/upload.d.ts +2 -2
  19. package/dist/conditions/url.d.ts +2 -2
  20. package/dist/elements/index.d.ts +160 -162
  21. package/dist/elements/section.d.ts +133 -134
  22. package/dist/fields/base.d.ts +11 -11
  23. package/dist/fields/boolean.d.ts +3 -3
  24. package/dist/fields/checkbox-list.d.ts +3 -3
  25. package/dist/fields/date.d.ts +3 -3
  26. package/dist/fields/index.d.ts +61 -62
  27. package/dist/fields/multi-select.d.ts +3 -3
  28. package/dist/fields/multi-string.d.ts +5 -5
  29. package/dist/fields/number.d.ts +3 -3
  30. package/dist/fields/otp.d.ts +4 -7
  31. package/dist/fields/pass-fail.d.ts +3 -3
  32. package/dist/fields/radio.d.ts +3 -3
  33. package/dist/fields/rating.d.ts +4 -4
  34. package/dist/fields/scan.d.ts +3 -3
  35. package/dist/fields/select.d.ts +3 -3
  36. package/dist/fields/string.d.ts +5 -5
  37. package/dist/fields/text.d.ts +5 -5
  38. package/dist/fields/time.d.ts +3 -3
  39. package/dist/fields/upload.d.ts +5 -5
  40. package/dist/fields/url.d.ts +3 -3
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.js +58 -67
  43. package/dist/schema.d.ts +99 -100
  44. 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
- conditionValue: z.ZodType<TConditionValue, unknown, z.core.$ZodTypeInternals<TConditionValue, unknown>>;
7
- conditionModifier: z.ZodLiteral<TModifier>;
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
- conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
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
- conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
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
- conditionValue: z.ZodType<string | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
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
- conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
27
- conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
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
- conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
33
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
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
- conditionValue: z.ZodType<string | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
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
- conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
51
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
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
- conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
57
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
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
- conditionValue: z.ZodType<number | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
75
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown>>;
81
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
87
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<number | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
105
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
111
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
117
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
123
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
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
- conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
141
- conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
147
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
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
- conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
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
- conditionValue: z.ZodType<number | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
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>;
@@ -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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown, z.core.$ZodTypeInternals<"pass" | "fail" | "na" | ("pass" | "fail" | "na")[], unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<number | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string | string[], unknown, z.core.$ZodTypeInternals<string | string[], unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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
- conditionValue: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
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
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
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
- conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
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>;
@@ -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
- conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
11
- conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
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>;