@adrekic/zod-fieldsjson 0.0.1-schemas.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 +9 -0
- package/dist/conditions/boolean.d.ts +13 -0
- package/dist/conditions/checkbox-list.d.ts +13 -0
- package/dist/conditions/date.d.ts +19 -0
- package/dist/conditions/index.d.ts +149 -0
- package/dist/conditions/multi-select.d.ts +13 -0
- package/dist/conditions/multi-string.d.ts +13 -0
- package/dist/conditions/number.d.ts +19 -0
- package/dist/conditions/otp.d.ts +13 -0
- package/dist/conditions/pass-fail.d.ts +13 -0
- package/dist/conditions/radio.d.ts +13 -0
- package/dist/conditions/rating.d.ts +19 -0
- package/dist/conditions/scan.d.ts +13 -0
- package/dist/conditions/select.d.ts +13 -0
- package/dist/conditions/string.d.ts +13 -0
- package/dist/conditions/text.d.ts +13 -0
- package/dist/conditions/time.d.ts +19 -0
- package/dist/conditions/upload.d.ts +13 -0
- package/dist/conditions/url.d.ts +13 -0
- package/dist/elements/base.d.ts +6 -0
- package/dist/elements/index.d.ts +422 -0
- package/dist/elements/section.d.ts +407 -0
- package/dist/fields/base.d.ts +32 -0
- package/dist/fields/boolean.d.ts +13 -0
- package/dist/fields/checkbox-list.d.ts +17 -0
- package/dist/fields/date.d.ts +13 -0
- package/dist/fields/index.d.ts +176 -0
- package/dist/fields/multi-select.d.ts +18 -0
- package/dist/fields/multi-string.d.ts +16 -0
- package/dist/fields/number.d.ts +17 -0
- package/dist/fields/otp.d.ts +17 -0
- package/dist/fields/pass-fail.d.ts +20 -0
- package/dist/fields/radio.d.ts +17 -0
- package/dist/fields/rating.d.ts +14 -0
- package/dist/fields/scan.d.ts +13 -0
- package/dist/fields/select.d.ts +18 -0
- package/dist/fields/string.d.ts +16 -0
- package/dist/fields/text.d.ts +16 -0
- package/dist/fields/time.d.ts +13 -0
- package/dist/fields/upload.d.ts +16 -0
- package/dist/fields/url.d.ts +14 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +277 -0
- package/dist/misc.d.ts +29 -0
- package/dist/schema.d.ts +277 -0
- package/package.json +52 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
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
|
+
id: z.ZodString;
|
|
4
|
+
type: z.ZodLiteral<TType>;
|
|
5
|
+
fieldId: z.ZodString;
|
|
6
|
+
conditionValue: z.ZodType<TConditionValue, unknown, z.core.$ZodTypeInternals<TConditionValue, unknown>>;
|
|
7
|
+
conditionModifier: z.ZodLiteral<TModifier>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type BaseJSONConditionSchemaType<TType extends string, TConditionValue, TModifier extends string> = z.infer<ReturnType<typeof BaseJSONConditionSchema<TType, TConditionValue, TModifier>>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONBooleanConditionTypeSchema: z.ZodLiteral<"boolean">;
|
|
3
|
+
export type JSONBooleanConditionTypeSchemaType = z.infer<typeof JSONBooleanConditionTypeSchema>;
|
|
4
|
+
export declare const JSONBooleanConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals">;
|
|
5
|
+
export type JSONBooleanConditionModifierSchemaType = z.infer<typeof JSONBooleanConditionModifierSchema>;
|
|
6
|
+
export declare const JSONBooleanConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"boolean">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONBooleanConditionSchemaType = z.infer<typeof JSONBooleanConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONCheckboxListConditionTypeSchema: z.ZodLiteral<"checkbox-list">;
|
|
3
|
+
export type JSONCheckboxListConditionTypeSchemaType = z.infer<typeof JSONCheckboxListConditionTypeSchema>;
|
|
4
|
+
export declare const JSONCheckboxListConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
5
|
+
export type JSONCheckboxListConditionModifierSchemaType = z.infer<typeof JSONCheckboxListConditionModifierSchema>;
|
|
6
|
+
export declare const JSONCheckboxListConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONCheckboxListConditionSchemaType = z.infer<typeof JSONCheckboxListConditionSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONDateConditionTypeSchema: z.ZodLiteral<"date">;
|
|
3
|
+
export type JSONDateConditionTypeSchemaType = z.infer<typeof JSONDateConditionTypeSchema>;
|
|
4
|
+
export declare const JSONDateConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
5
|
+
export type JSONDateConditionModifierSchemaType = z.infer<typeof JSONDateConditionModifierSchema>;
|
|
6
|
+
export declare const JSONDateConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"date">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string | {
|
|
11
|
+
from: string | null;
|
|
12
|
+
to: string | null;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<string | {
|
|
14
|
+
from: string | null;
|
|
15
|
+
to: string | null;
|
|
16
|
+
}, unknown>>;
|
|
17
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type JSONDateConditionSchemaType = z.infer<typeof JSONDateConditionSchema>;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export * from './base';
|
|
3
|
+
export * from './boolean';
|
|
4
|
+
export * from './checkbox-list';
|
|
5
|
+
export * from './date';
|
|
6
|
+
export * from './multi-select';
|
|
7
|
+
export * from './multi-string';
|
|
8
|
+
export * from './number';
|
|
9
|
+
export * from './otp';
|
|
10
|
+
export * from './pass-fail';
|
|
11
|
+
export * from './radio';
|
|
12
|
+
export * from './rating';
|
|
13
|
+
export * from './scan';
|
|
14
|
+
export * from './select';
|
|
15
|
+
export * from './string';
|
|
16
|
+
export * from './text';
|
|
17
|
+
export * from './time';
|
|
18
|
+
export * from './upload';
|
|
19
|
+
export * from './url';
|
|
20
|
+
export declare const JSONConditionTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"boolean">, z.ZodLiteral<"checkbox-list">, z.ZodLiteral<"date">, z.ZodLiteral<"multi-select">, z.ZodLiteral<"multi-string">, z.ZodLiteral<"number">, z.ZodLiteral<"otp">, z.ZodLiteral<"pass-fail">, z.ZodLiteral<"radio">, z.ZodLiteral<"rating">, z.ZodLiteral<"qr">, z.ZodLiteral<"select">, z.ZodLiteral<"string">, z.ZodLiteral<"text">, z.ZodLiteral<"time">, z.ZodLiteral<"upload">, z.ZodLiteral<"url">]>;
|
|
21
|
+
export type JSONConditionTypeSchemaType = z.infer<typeof JSONConditionTypeSchema>;
|
|
22
|
+
export declare const JSONConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
type: z.ZodLiteral<"boolean">;
|
|
25
|
+
fieldId: z.ZodString;
|
|
26
|
+
conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
27
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
type: z.ZodLiteral<"checkbox-list">;
|
|
31
|
+
fieldId: z.ZodString;
|
|
32
|
+
conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
33
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
type: z.ZodLiteral<"date">;
|
|
37
|
+
fieldId: z.ZodString;
|
|
38
|
+
conditionValue: z.ZodType<string | {
|
|
39
|
+
from: string | null;
|
|
40
|
+
to: string | null;
|
|
41
|
+
}, unknown, z.core.$ZodTypeInternals<string | {
|
|
42
|
+
from: string | null;
|
|
43
|
+
to: string | null;
|
|
44
|
+
}, unknown>>;
|
|
45
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
type: z.ZodLiteral<"multi-select">;
|
|
49
|
+
fieldId: z.ZodString;
|
|
50
|
+
conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
51
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
type: z.ZodLiteral<"multi-string">;
|
|
55
|
+
fieldId: z.ZodString;
|
|
56
|
+
conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
57
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
type: z.ZodLiteral<"number">;
|
|
61
|
+
fieldId: z.ZodString;
|
|
62
|
+
conditionValue: z.ZodType<number | {
|
|
63
|
+
from: number | null;
|
|
64
|
+
to: number | null;
|
|
65
|
+
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
66
|
+
from: number | null;
|
|
67
|
+
to: number | null;
|
|
68
|
+
}, unknown>>;
|
|
69
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
type: z.ZodLiteral<"otp">;
|
|
73
|
+
fieldId: z.ZodString;
|
|
74
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
75
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
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">;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
type: z.ZodLiteral<"radio">;
|
|
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">;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
type: z.ZodLiteral<"rating">;
|
|
91
|
+
fieldId: z.ZodString;
|
|
92
|
+
conditionValue: z.ZodType<number | {
|
|
93
|
+
from: number | null;
|
|
94
|
+
to: number | null;
|
|
95
|
+
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
96
|
+
from: number | null;
|
|
97
|
+
to: number | null;
|
|
98
|
+
}, unknown>>;
|
|
99
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
type: z.ZodLiteral<"qr">;
|
|
103
|
+
fieldId: z.ZodString;
|
|
104
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
105
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
type: z.ZodLiteral<"select">;
|
|
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">;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
type: z.ZodLiteral<"string">;
|
|
115
|
+
fieldId: z.ZodString;
|
|
116
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
117
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
type: z.ZodLiteral<"text">;
|
|
121
|
+
fieldId: z.ZodString;
|
|
122
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
123
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
type: z.ZodLiteral<"time">;
|
|
127
|
+
fieldId: z.ZodString;
|
|
128
|
+
conditionValue: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
129
|
+
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
130
|
+
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
131
|
+
}, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
132
|
+
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
133
|
+
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
134
|
+
}, unknown>>;
|
|
135
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
type: z.ZodLiteral<"upload">;
|
|
139
|
+
fieldId: z.ZodString;
|
|
140
|
+
conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
141
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
type: z.ZodLiteral<"url">;
|
|
145
|
+
fieldId: z.ZodString;
|
|
146
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
147
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
148
|
+
}, z.core.$strip>], "type">;
|
|
149
|
+
export type JSONConditionSchemaType = z.infer<typeof JSONConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONMultiSelectConditionTypeSchema: z.ZodLiteral<"multi-select">;
|
|
3
|
+
export type JSONMultiSelectConditionTypeSchemaType = z.infer<typeof JSONMultiSelectConditionTypeSchema>;
|
|
4
|
+
export declare const JSONMultiSelectConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
5
|
+
export type JSONMultiSelectConditionModifierSchemaType = z.infer<typeof JSONMultiSelectConditionModifierSchema>;
|
|
6
|
+
export declare const JSONMultiSelectConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"multi-select">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONMultiSelectConditionSchemaType = z.infer<typeof JSONMultiSelectConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONMultiStringConditionTypeSchema: z.ZodLiteral<"multi-string">;
|
|
3
|
+
export type JSONMultiStringConditionTypeSchemaType = z.infer<typeof JSONMultiStringConditionTypeSchema>;
|
|
4
|
+
export declare const JSONMultiStringConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
5
|
+
export type JSONMultiStringConditionModifierSchemaType = z.infer<typeof JSONMultiStringConditionModifierSchema>;
|
|
6
|
+
export declare const JSONMultiStringConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"multi-string">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "every" | "some" | "none">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONMultiStringConditionSchemaType = z.infer<typeof JSONMultiStringConditionSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONNumberConditionTypeSchema: z.ZodLiteral<"number">;
|
|
3
|
+
export type JSONNumberConditionTypeSchemaType = z.infer<typeof JSONNumberConditionTypeSchema>;
|
|
4
|
+
export declare const JSONNumberConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
5
|
+
export type JSONNumberConditionModifierSchemaType = z.infer<typeof JSONNumberConditionModifierSchema>;
|
|
6
|
+
export declare const JSONNumberConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"number">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<number | {
|
|
11
|
+
from: number | null;
|
|
12
|
+
to: number | null;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
14
|
+
from: number | null;
|
|
15
|
+
to: number | null;
|
|
16
|
+
}, unknown>>;
|
|
17
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type JSONNumberConditionSchemaType = z.infer<typeof JSONNumberConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONOTPConditionTypeSchema: z.ZodLiteral<"otp">;
|
|
3
|
+
export type JSONOTPConditionTypeSchemaType = z.infer<typeof JSONOTPConditionTypeSchema>;
|
|
4
|
+
export declare const JSONOTPConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONOTPConditionModifierSchemaType = z.infer<typeof JSONOTPConditionModifierSchema>;
|
|
6
|
+
export declare const JSONOTPConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"otp">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONOTPConditionSchemaType = z.infer<typeof JSONOTPConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONPassFailConditionTypeSchema: z.ZodLiteral<"pass-fail">;
|
|
3
|
+
export type JSONPassFailConditionTypeSchemaType = z.infer<typeof JSONPassFailConditionTypeSchema>;
|
|
4
|
+
export declare const JSONPassFailFieldConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONPassFailFieldConditionModifierSchemaType = z.infer<typeof JSONPassFailFieldConditionModifierSchema>;
|
|
6
|
+
export declare const JSONPassFailFieldConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"pass-fail">;
|
|
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">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONPassFailFieldConditionSchemaType = z.infer<typeof JSONPassFailFieldConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONRadioConditionTypeSchema: z.ZodLiteral<"radio">;
|
|
3
|
+
export type JSONRadioConditionTypeSchemaType = z.infer<typeof JSONRadioConditionTypeSchema>;
|
|
4
|
+
export declare const JSONRadioConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONRadioConditionModifierSchemaType = z.infer<typeof JSONRadioConditionModifierSchema>;
|
|
6
|
+
export declare const JSONRadioConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"radio">;
|
|
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">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONRadioConditionSchemaType = z.infer<typeof JSONRadioConditionSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONRatingConditionTypeSchema: z.ZodLiteral<"rating">;
|
|
3
|
+
export type JSONRatingConditionTypeSchemaType = z.infer<typeof JSONRatingConditionTypeSchema>;
|
|
4
|
+
export declare const JSONRatingConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
5
|
+
export type JSONRatingConditionModifierSchemaType = z.infer<typeof JSONRatingConditionModifierSchema>;
|
|
6
|
+
export declare const JSONRatingConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"rating">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<number | {
|
|
11
|
+
from: number | null;
|
|
12
|
+
to: number | null;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<number | {
|
|
14
|
+
from: number | null;
|
|
15
|
+
to: number | null;
|
|
16
|
+
}, unknown>>;
|
|
17
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "lessThan" | "lessThanOrEquals" | "greaterThan" | "greaterThanOrEquals" | "inRange" | "notInRange">;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type JSONRatingConditionSchemaType = z.infer<typeof JSONRatingConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONScanConditionTypeSchema: z.ZodLiteral<"qr">;
|
|
3
|
+
export type JSONScanConditionTypeSchemaType = z.infer<typeof JSONScanConditionTypeSchema>;
|
|
4
|
+
export declare const JSONScanConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONScanConditionModifierSchemaType = z.infer<typeof JSONScanConditionModifierSchema>;
|
|
6
|
+
export declare const JSONScanConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"qr">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONScanConditionSchemaType = z.infer<typeof JSONScanConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONSelectConditionTypeSchema: z.ZodLiteral<"select">;
|
|
3
|
+
export type JSONSelectConditionTypeSchemaType = z.infer<typeof JSONSelectConditionTypeSchema>;
|
|
4
|
+
export declare const JSONSelectConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONSelectConditionModifierSchemaType = z.infer<typeof JSONSelectConditionModifierSchema>;
|
|
6
|
+
export declare const JSONSelectConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"select">;
|
|
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">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONSelectConditionSchemaType = z.infer<typeof JSONSelectConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONStringConditionTypeSchema: z.ZodLiteral<"string">;
|
|
3
|
+
export type JSONStringConditionTypeSchemaType = z.infer<typeof JSONStringConditionTypeSchema>;
|
|
4
|
+
export declare const JSONStringConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONStringConditionModifierSchemaType = z.infer<typeof JSONStringConditionModifierSchema>;
|
|
6
|
+
export declare const JSONStringConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"string">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONStringConditionSchemaType = z.infer<typeof JSONStringConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONTextConditionTypeSchema: z.ZodLiteral<"text">;
|
|
3
|
+
export type JSONTextConditionTypeSchemaType = z.infer<typeof JSONTextConditionTypeSchema>;
|
|
4
|
+
export declare const JSONTextConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONTextConditionModifierSchemaType = z.infer<typeof JSONTextConditionModifierSchema>;
|
|
6
|
+
export declare const JSONTextConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"text">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONTextConditionSchemaType = z.infer<typeof JSONTextConditionSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONTimeConditionTypeSchema: z.ZodLiteral<"time">;
|
|
3
|
+
export type JSONTimeConditionTypeSchemaType = z.infer<typeof JSONTimeConditionTypeSchema>;
|
|
4
|
+
export declare const JSONTimeConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
5
|
+
export type JSONTimeConditionModifierSchemaType = z.infer<typeof JSONTimeConditionModifierSchema>;
|
|
6
|
+
export declare const JSONTimeConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"time">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
11
|
+
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
12
|
+
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<`T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | {
|
|
14
|
+
from: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
15
|
+
to: `T${string}:${string}:00+${string}:${string}` | `T${string}:${string}:00-${string}:${string}` | null;
|
|
16
|
+
}, unknown>>;
|
|
17
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "in" | "before" | "after" | "notIn">;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type JSONTimeConditionSchemaType = z.infer<typeof JSONTimeConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONUploadConditionTypeSchema: z.ZodLiteral<"upload">;
|
|
3
|
+
export type JSONUploadConditionTypeSchemaType = z.infer<typeof JSONUploadConditionTypeSchema>;
|
|
4
|
+
export declare const JSONUploadConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals">;
|
|
5
|
+
export type JSONUploadConditionModifierSchemaType = z.infer<typeof JSONUploadConditionModifierSchema>;
|
|
6
|
+
export declare const JSONUploadConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"upload">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONUploadConditionSchemaType = z.infer<typeof JSONUploadConditionSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const JSONURLConditionTypeSchema: z.ZodLiteral<"url">;
|
|
3
|
+
export type JSONURLConditionTypeSchemaType = z.infer<typeof JSONURLConditionTypeSchema>;
|
|
4
|
+
export declare const JSONURLConditionModifierSchema: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
5
|
+
export type JSONURLConditionModifierSchemaType = z.infer<typeof JSONURLConditionModifierSchema>;
|
|
6
|
+
export declare const JSONURLConditionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodLiteral<"url">;
|
|
9
|
+
fieldId: z.ZodString;
|
|
10
|
+
conditionValue: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
11
|
+
conditionModifier: z.ZodLiteral<"equals" | "notEquals" | "includes" | "excludes">;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type JSONURLConditionSchemaType = z.infer<typeof JSONURLConditionSchema>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const BaseJSONFieldElementSchema: <TType extends string>(typeSchema: z.ZodLiteral<TType>) => z.ZodObject<{
|
|
3
|
+
identifier: z.ZodString;
|
|
4
|
+
type: z.ZodLiteral<TType>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type BaseJSONFieldElementSchemaType<TType extends string> = z.infer<ReturnType<typeof BaseJSONFieldElementSchema<TType>>>;
|