@encatch/schema 0.1.10 → 0.1.12
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/esm/index.js +166 -36
- package/dist/esm/index.js.map +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/schemas/fields/field-schema.d.ts +89 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +30 -30
- package/dist/types/schemas/fields/form-schema.d.ts +21 -0
- package/dist/types/schemas/fields/other-screen-schema.d.ts +8 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +15 -0
- package/package.json +1 -1
|
@@ -9,6 +9,38 @@ export declare const questionTypeSchema: z.ZodEnum<{
|
|
|
9
9
|
long_text: "long_text";
|
|
10
10
|
annotation: "annotation";
|
|
11
11
|
}>;
|
|
12
|
+
export declare const QuestionTypes: {
|
|
13
|
+
readonly RATING: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
14
|
+
readonly SINGLE_CHOICE: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
15
|
+
readonly NPS: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
16
|
+
readonly NESTED_SELECTION: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
17
|
+
readonly MULTIPLE_CHOICE_MULTIPLE: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
18
|
+
readonly SHORT_ANSWER: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
19
|
+
readonly LONG_TEXT: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
20
|
+
readonly ANNOTATION: "rating" | "single_choice" | "nps" | "nested_selection" | "multiple_choice_multiple" | "short_answer" | "long_text" | "annotation";
|
|
21
|
+
};
|
|
22
|
+
export declare const validationRuleTypeSchema: z.ZodEnum<{
|
|
23
|
+
required: "required";
|
|
24
|
+
min: "min";
|
|
25
|
+
max: "max";
|
|
26
|
+
minLength: "minLength";
|
|
27
|
+
maxLength: "maxLength";
|
|
28
|
+
pattern: "pattern";
|
|
29
|
+
email: "email";
|
|
30
|
+
url: "url";
|
|
31
|
+
custom: "custom";
|
|
32
|
+
}>;
|
|
33
|
+
export declare const ValidationRuleTypes: {
|
|
34
|
+
readonly REQUIRED: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
35
|
+
readonly MIN: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
36
|
+
readonly MAX: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
37
|
+
readonly MIN_LENGTH: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
38
|
+
readonly MAX_LENGTH: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
39
|
+
readonly PATTERN: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
40
|
+
readonly EMAIL: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
41
|
+
readonly URL: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
42
|
+
readonly CUSTOM: "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "email" | "url" | "custom";
|
|
43
|
+
};
|
|
12
44
|
export declare const validationRuleSchema: z.ZodObject<{
|
|
13
45
|
type: z.ZodEnum<{
|
|
14
46
|
required: "required";
|
|
@@ -25,6 +57,26 @@ export declare const validationRuleSchema: z.ZodObject<{
|
|
|
25
57
|
message: z.ZodOptional<z.ZodString>;
|
|
26
58
|
describe: z.ZodOptional<z.ZodString>;
|
|
27
59
|
}, z.core.$strip>;
|
|
60
|
+
export declare const visibilityConditionOperatorSchema: z.ZodEnum<{
|
|
61
|
+
equals: "equals";
|
|
62
|
+
not_equals: "not_equals";
|
|
63
|
+
contains: "contains";
|
|
64
|
+
not_contains: "not_contains";
|
|
65
|
+
greater_than: "greater_than";
|
|
66
|
+
less_than: "less_than";
|
|
67
|
+
is_empty: "is_empty";
|
|
68
|
+
is_not_empty: "is_not_empty";
|
|
69
|
+
}>;
|
|
70
|
+
export declare const VisibilityConditionOperators: {
|
|
71
|
+
readonly EQUALS: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
72
|
+
readonly NOT_EQUALS: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
73
|
+
readonly CONTAINS: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
74
|
+
readonly NOT_CONTAINS: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
75
|
+
readonly GREATER_THAN: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
76
|
+
readonly LESS_THAN: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
77
|
+
readonly IS_EMPTY: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
78
|
+
readonly IS_NOT_EMPTY: "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty";
|
|
79
|
+
};
|
|
28
80
|
export declare const visibilityConditionSchema: z.ZodObject<{
|
|
29
81
|
field: z.ZodString;
|
|
30
82
|
operator: z.ZodEnum<{
|
|
@@ -51,6 +103,12 @@ export declare const questionStatusSchema: z.ZodEnum<{
|
|
|
51
103
|
A: "A";
|
|
52
104
|
S: "S";
|
|
53
105
|
}>;
|
|
106
|
+
export declare const QuestionStatuses: {
|
|
107
|
+
readonly DRAFT: "D" | "P" | "A" | "S";
|
|
108
|
+
readonly PUBLISHED: "D" | "P" | "A" | "S";
|
|
109
|
+
readonly ARCHIVED: "D" | "P" | "A" | "S";
|
|
110
|
+
readonly SUSPENDED: "D" | "P" | "A" | "S";
|
|
111
|
+
};
|
|
54
112
|
export declare const ratingDisplayStyleSchema: z.ZodEnum<{
|
|
55
113
|
star: "star";
|
|
56
114
|
heart: "heart";
|
|
@@ -59,22 +117,46 @@ export declare const ratingDisplayStyleSchema: z.ZodEnum<{
|
|
|
59
117
|
emoji: "emoji";
|
|
60
118
|
"emoji-exp": "emoji-exp";
|
|
61
119
|
}>;
|
|
120
|
+
export declare const RatingDisplayStyles: {
|
|
121
|
+
readonly STAR: "star" | "heart" | "thumbs-up" | "diamond" | "emoji" | "emoji-exp";
|
|
122
|
+
readonly HEART: "star" | "heart" | "thumbs-up" | "diamond" | "emoji" | "emoji-exp";
|
|
123
|
+
readonly THUMBS_UP: "star" | "heart" | "thumbs-up" | "diamond" | "emoji" | "emoji-exp";
|
|
124
|
+
readonly DIAMOND: "star" | "heart" | "thumbs-up" | "diamond" | "emoji" | "emoji-exp";
|
|
125
|
+
readonly EMOJI: "star" | "heart" | "thumbs-up" | "diamond" | "emoji" | "emoji-exp";
|
|
126
|
+
readonly EMOJI_EXP: "star" | "heart" | "thumbs-up" | "diamond" | "emoji" | "emoji-exp";
|
|
127
|
+
};
|
|
62
128
|
export declare const ratingRepresentationSizeSchema: z.ZodEnum<{
|
|
63
129
|
small: "small";
|
|
64
130
|
medium: "medium";
|
|
65
131
|
large: "large";
|
|
66
132
|
}>;
|
|
133
|
+
export declare const RatingRepresentationSizes: {
|
|
134
|
+
readonly SMALL: "small" | "medium" | "large";
|
|
135
|
+
readonly MEDIUM: "small" | "medium" | "large";
|
|
136
|
+
readonly LARGE: "small" | "medium" | "large";
|
|
137
|
+
};
|
|
67
138
|
export declare const multipleChoiceDisplayStyleSchema: z.ZodEnum<{
|
|
68
139
|
radio: "radio";
|
|
69
140
|
list: "list";
|
|
70
141
|
chip: "chip";
|
|
71
142
|
dropdown: "dropdown";
|
|
72
143
|
}>;
|
|
144
|
+
export declare const MultipleChoiceDisplayStyles: {
|
|
145
|
+
readonly RADIO: "radio" | "list" | "chip" | "dropdown";
|
|
146
|
+
readonly LIST: "radio" | "list" | "chip" | "dropdown";
|
|
147
|
+
readonly CHIP: "radio" | "list" | "chip" | "dropdown";
|
|
148
|
+
readonly DROPDOWN: "radio" | "list" | "chip" | "dropdown";
|
|
149
|
+
};
|
|
73
150
|
export declare const multipleChoiceMultipleDisplayStyleSchema: z.ZodEnum<{
|
|
74
151
|
list: "list";
|
|
75
152
|
chip: "chip";
|
|
76
153
|
checkbox: "checkbox";
|
|
77
154
|
}>;
|
|
155
|
+
export declare const MultipleChoiceMultipleDisplayStyles: {
|
|
156
|
+
readonly CHECKBOX: "list" | "chip" | "checkbox";
|
|
157
|
+
readonly LIST: "list" | "chip" | "checkbox";
|
|
158
|
+
readonly CHIP: "list" | "chip" | "checkbox";
|
|
159
|
+
};
|
|
78
160
|
export declare const choiceOrderOptionSchema: z.ZodEnum<{
|
|
79
161
|
randomize: "randomize";
|
|
80
162
|
flip: "flip";
|
|
@@ -82,6 +164,13 @@ export declare const choiceOrderOptionSchema: z.ZodEnum<{
|
|
|
82
164
|
ascending: "ascending";
|
|
83
165
|
none: "none";
|
|
84
166
|
}>;
|
|
167
|
+
export declare const ChoiceOrderOptions: {
|
|
168
|
+
readonly RANDOMIZE: "randomize" | "flip" | "rotate" | "ascending" | "none";
|
|
169
|
+
readonly FLIP: "randomize" | "flip" | "rotate" | "ascending" | "none";
|
|
170
|
+
readonly ROTATE: "randomize" | "flip" | "rotate" | "ascending" | "none";
|
|
171
|
+
readonly ASCENDING: "randomize" | "flip" | "rotate" | "ascending" | "none";
|
|
172
|
+
readonly NONE: "randomize" | "flip" | "rotate" | "ascending" | "none";
|
|
173
|
+
};
|
|
85
174
|
export declare const questionSchema: z.ZodObject<{
|
|
86
175
|
id: z.ZodString;
|
|
87
176
|
type: z.ZodEnum<{
|
|
@@ -11,11 +11,11 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
11
11
|
previousButtonLabel: z.ZodString;
|
|
12
12
|
nextButtonLabel: z.ZodString;
|
|
13
13
|
}, z.core.$strip>>;
|
|
14
|
-
translations: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
15
15
|
submitButtonLabel: z.ZodString;
|
|
16
16
|
previousButtonLabel: z.ZodString;
|
|
17
17
|
nextButtonLabel: z.ZodString;
|
|
18
|
-
}, z.core.$strip
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
20
20
|
isEnabled: z.ZodLiteral<true>;
|
|
21
21
|
otherFields: z.ZodObject<{
|
|
@@ -27,11 +27,11 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
27
27
|
previousButtonLabel: z.ZodString;
|
|
28
28
|
nextButtonLabel: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
-
translations: z.ZodObject<{
|
|
30
|
+
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
31
31
|
submitButtonLabel: z.ZodString;
|
|
32
32
|
previousButtonLabel: z.ZodString;
|
|
33
33
|
nextButtonLabel: z.ZodString;
|
|
34
|
-
}, z.core.$strip
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
35
|
}, z.core.$strip>], "isEnabled">;
|
|
36
36
|
export declare const welcomeScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
37
|
isEnabled: z.ZodLiteral<false>;
|
|
@@ -40,11 +40,11 @@ export declare const welcomeScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
40
40
|
description: z.ZodString;
|
|
41
41
|
buttonLabel: z.ZodString;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
|
-
translations: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
44
44
|
title: z.ZodString;
|
|
45
45
|
description: z.ZodString;
|
|
46
46
|
buttonLabel: z.ZodString;
|
|
47
|
-
}, z.core.$strip
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
48
|
}, z.core.$strip>, z.ZodObject<{
|
|
49
49
|
isEnabled: z.ZodLiteral<true>;
|
|
50
50
|
welcomeFields: z.ZodObject<{
|
|
@@ -52,11 +52,11 @@ export declare const welcomeScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
52
52
|
description: z.ZodString;
|
|
53
53
|
buttonLabel: z.ZodString;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
|
-
translations: z.ZodObject<{
|
|
55
|
+
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
56
|
title: z.ZodString;
|
|
57
57
|
description: z.ZodString;
|
|
58
58
|
buttonLabel: z.ZodString;
|
|
59
|
-
}, z.core.$strip
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
60
|
}, z.core.$strip>], "isEnabled">;
|
|
61
61
|
export declare const endScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
62
62
|
isEnabled: z.ZodLiteral<false>;
|
|
@@ -70,11 +70,11 @@ export declare const endScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
70
70
|
}>;
|
|
71
71
|
fadeDuration: z.ZodNumber;
|
|
72
72
|
}, z.core.$strip>>;
|
|
73
|
-
translations: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
74
74
|
buttonLabel: z.ZodString;
|
|
75
75
|
title: z.ZodString;
|
|
76
76
|
message: z.ZodString;
|
|
77
|
-
}, z.core.$strip
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
79
79
|
isEnabled: z.ZodLiteral<true>;
|
|
80
80
|
endFields: z.ZodObject<{
|
|
@@ -87,11 +87,11 @@ export declare const endScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
87
87
|
}>;
|
|
88
88
|
fadeDuration: z.ZodNumber;
|
|
89
89
|
}, z.core.$strip>;
|
|
90
|
-
translations: z.ZodObject<{
|
|
90
|
+
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
91
91
|
buttonLabel: z.ZodString;
|
|
92
92
|
title: z.ZodString;
|
|
93
93
|
message: z.ZodString;
|
|
94
|
-
}, z.core.$strip
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
95
|
}, z.core.$strip>], "isEnabled">;
|
|
96
96
|
export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
97
97
|
themeConfiguration: z.ZodObject<{
|
|
@@ -899,11 +899,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
899
899
|
previousButtonLabel: z.ZodString;
|
|
900
900
|
nextButtonLabel: z.ZodString;
|
|
901
901
|
}, z.core.$strip>>;
|
|
902
|
-
translations: z.ZodOptional<z.ZodObject<{
|
|
902
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
903
903
|
submitButtonLabel: z.ZodString;
|
|
904
904
|
previousButtonLabel: z.ZodString;
|
|
905
905
|
nextButtonLabel: z.ZodString;
|
|
906
|
-
}, z.core.$strip
|
|
906
|
+
}, z.core.$strip>>>;
|
|
907
907
|
}, z.core.$strip>, z.ZodObject<{
|
|
908
908
|
isEnabled: z.ZodLiteral<true>;
|
|
909
909
|
otherFields: z.ZodObject<{
|
|
@@ -915,11 +915,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
915
915
|
previousButtonLabel: z.ZodString;
|
|
916
916
|
nextButtonLabel: z.ZodString;
|
|
917
917
|
}, z.core.$strip>;
|
|
918
|
-
translations: z.ZodObject<{
|
|
918
|
+
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
919
919
|
submitButtonLabel: z.ZodString;
|
|
920
920
|
previousButtonLabel: z.ZodString;
|
|
921
921
|
nextButtonLabel: z.ZodString;
|
|
922
|
-
}, z.core.$strip
|
|
922
|
+
}, z.core.$strip>>;
|
|
923
923
|
}, z.core.$strip>], "isEnabled">;
|
|
924
924
|
welcome_screen_properties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
925
925
|
isEnabled: z.ZodLiteral<false>;
|
|
@@ -928,11 +928,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
928
928
|
description: z.ZodString;
|
|
929
929
|
buttonLabel: z.ZodString;
|
|
930
930
|
}, z.core.$strip>>;
|
|
931
|
-
translations: z.ZodOptional<z.ZodObject<{
|
|
931
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
932
932
|
title: z.ZodString;
|
|
933
933
|
description: z.ZodString;
|
|
934
934
|
buttonLabel: z.ZodString;
|
|
935
|
-
}, z.core.$strip
|
|
935
|
+
}, z.core.$strip>>>;
|
|
936
936
|
}, z.core.$strip>, z.ZodObject<{
|
|
937
937
|
isEnabled: z.ZodLiteral<true>;
|
|
938
938
|
welcomeFields: z.ZodObject<{
|
|
@@ -940,11 +940,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
940
940
|
description: z.ZodString;
|
|
941
941
|
buttonLabel: z.ZodString;
|
|
942
942
|
}, z.core.$strip>;
|
|
943
|
-
translations: z.ZodObject<{
|
|
943
|
+
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
944
944
|
title: z.ZodString;
|
|
945
945
|
description: z.ZodString;
|
|
946
946
|
buttonLabel: z.ZodString;
|
|
947
|
-
}, z.core.$strip
|
|
947
|
+
}, z.core.$strip>>;
|
|
948
948
|
}, z.core.$strip>], "isEnabled">;
|
|
949
949
|
end_screen_properties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
950
950
|
isEnabled: z.ZodLiteral<false>;
|
|
@@ -958,11 +958,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
958
958
|
}>;
|
|
959
959
|
fadeDuration: z.ZodNumber;
|
|
960
960
|
}, z.core.$strip>>;
|
|
961
|
-
translations: z.ZodOptional<z.ZodObject<{
|
|
961
|
+
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
962
962
|
buttonLabel: z.ZodString;
|
|
963
963
|
title: z.ZodString;
|
|
964
964
|
message: z.ZodString;
|
|
965
|
-
}, z.core.$strip
|
|
965
|
+
}, z.core.$strip>>>;
|
|
966
966
|
}, z.core.$strip>, z.ZodObject<{
|
|
967
967
|
isEnabled: z.ZodLiteral<true>;
|
|
968
968
|
endFields: z.ZodObject<{
|
|
@@ -975,11 +975,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
975
975
|
}>;
|
|
976
976
|
fadeDuration: z.ZodNumber;
|
|
977
977
|
}, z.core.$strip>;
|
|
978
|
-
translations: z.ZodObject<{
|
|
978
|
+
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
979
979
|
buttonLabel: z.ZodString;
|
|
980
980
|
title: z.ZodString;
|
|
981
981
|
message: z.ZodString;
|
|
982
|
-
}, z.core.$strip
|
|
982
|
+
}, z.core.$strip>>;
|
|
983
983
|
}, z.core.$strip>], "isEnabled">;
|
|
984
984
|
appearance_properties: z.ZodObject<{
|
|
985
985
|
themeConfiguration: z.ZodObject<{
|
|
@@ -1035,28 +1035,28 @@ export type FormProperties = z.infer<typeof formPropertiesSchema>;
|
|
|
1035
1035
|
export type OtherConfigurationProperties = {
|
|
1036
1036
|
isEnabled: false;
|
|
1037
1037
|
otherFields?: z.infer<typeof OtherFieldsSchema>;
|
|
1038
|
-
translations?: z.infer<typeof OtherFieldsTranslationSchema
|
|
1038
|
+
translations?: Record<string, z.infer<typeof OtherFieldsTranslationSchema>>;
|
|
1039
1039
|
} | {
|
|
1040
1040
|
isEnabled: true;
|
|
1041
1041
|
otherFields: z.infer<typeof OtherFieldsSchema>;
|
|
1042
|
-
translations: z.infer<typeof OtherFieldsTranslationSchema
|
|
1042
|
+
translations: Record<string, z.infer<typeof OtherFieldsTranslationSchema>>;
|
|
1043
1043
|
};
|
|
1044
1044
|
export type WelcomeScreenProperties = {
|
|
1045
1045
|
isEnabled: false;
|
|
1046
1046
|
welcomeFields?: z.infer<typeof WelcomeScreenFieldsSchema>;
|
|
1047
|
-
translations?: z.infer<typeof WelcomeFieldsTranslationSchema
|
|
1047
|
+
translations?: Record<string, z.infer<typeof WelcomeFieldsTranslationSchema>>;
|
|
1048
1048
|
} | {
|
|
1049
1049
|
isEnabled: true;
|
|
1050
1050
|
welcomeFields: z.infer<typeof WelcomeScreenFieldsSchema>;
|
|
1051
|
-
translations: z.infer<typeof WelcomeFieldsTranslationSchema
|
|
1051
|
+
translations: Record<string, z.infer<typeof WelcomeFieldsTranslationSchema>>;
|
|
1052
1052
|
};
|
|
1053
1053
|
export type EndScreenProperties = {
|
|
1054
1054
|
isEnabled: false;
|
|
1055
1055
|
endFields?: z.infer<typeof EndScreenFieldsSchema>;
|
|
1056
|
-
translations?: z.infer<typeof EndFieldsTranslationSchema
|
|
1056
|
+
translations?: Record<string, z.infer<typeof EndFieldsTranslationSchema>>;
|
|
1057
1057
|
} | {
|
|
1058
1058
|
isEnabled: true;
|
|
1059
1059
|
endFields: z.infer<typeof EndScreenFieldsSchema>;
|
|
1060
|
-
translations: z.infer<typeof EndFieldsTranslationSchema
|
|
1060
|
+
translations: Record<string, z.infer<typeof EndFieldsTranslationSchema>>;
|
|
1061
1061
|
};
|
|
1062
1062
|
export type AppearanceProperties = z.infer<typeof appearancePropertiesSchema>;
|
|
@@ -3,10 +3,18 @@ export declare const surveyTypeSchema: z.ZodEnum<{
|
|
|
3
3
|
R: "R";
|
|
4
4
|
O: "O";
|
|
5
5
|
}>;
|
|
6
|
+
export declare const SurveyTypes: {
|
|
7
|
+
readonly RECURRING: "R" | "O";
|
|
8
|
+
readonly ONE_TIME: "R" | "O";
|
|
9
|
+
};
|
|
6
10
|
export declare const yesNoSchema: z.ZodEnum<{
|
|
7
11
|
Y: "Y";
|
|
8
12
|
N: "N";
|
|
9
13
|
}>;
|
|
14
|
+
export declare const YesNoValues: {
|
|
15
|
+
readonly YES: "Y" | "N";
|
|
16
|
+
readonly NO: "Y" | "N";
|
|
17
|
+
};
|
|
10
18
|
export declare const recurringUnitSchema: z.ZodEnum<{
|
|
11
19
|
minutes: "minutes";
|
|
12
20
|
hours: "hours";
|
|
@@ -15,6 +23,14 @@ export declare const recurringUnitSchema: z.ZodEnum<{
|
|
|
15
23
|
months: "months";
|
|
16
24
|
years: "years";
|
|
17
25
|
}>;
|
|
26
|
+
export declare const RecurringUnits: {
|
|
27
|
+
readonly MINUTES: "minutes" | "hours" | "days" | "weeks" | "months" | "years";
|
|
28
|
+
readonly HOURS: "minutes" | "hours" | "days" | "weeks" | "months" | "years";
|
|
29
|
+
readonly DAYS: "minutes" | "hours" | "days" | "weeks" | "months" | "years";
|
|
30
|
+
readonly WEEKS: "minutes" | "hours" | "days" | "weeks" | "months" | "years";
|
|
31
|
+
readonly MONTHS: "minutes" | "hours" | "days" | "weeks" | "months" | "years";
|
|
32
|
+
readonly YEARS: "minutes" | "hours" | "days" | "weeks" | "months" | "years";
|
|
33
|
+
};
|
|
18
34
|
export declare const frequencyAndSchedulingPropertiesSchema: z.ZodObject<{
|
|
19
35
|
surveyType: z.ZodEnum<{
|
|
20
36
|
R: "R";
|
|
@@ -46,6 +62,11 @@ export declare const publicationStatusSchema: z.ZodEnum<{
|
|
|
46
62
|
P: "P";
|
|
47
63
|
A: "A";
|
|
48
64
|
}>;
|
|
65
|
+
export declare const PublicationStatuses: {
|
|
66
|
+
readonly PUBLISHED: "D" | "P" | "A";
|
|
67
|
+
readonly DRAFT: "D" | "P" | "A";
|
|
68
|
+
readonly ARCHIVED: "D" | "P" | "A";
|
|
69
|
+
};
|
|
49
70
|
export declare const feedbackConfigurationSchema: z.ZodObject<{
|
|
50
71
|
form_title: z.ZodString;
|
|
51
72
|
form_description: z.ZodString;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const dismissBehaviorSchema: z.ZodEnum<{
|
|
3
|
+
fade: "fade";
|
|
4
|
+
manual: "manual";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const DismissBehaviors: {
|
|
7
|
+
readonly FADE: "fade" | "manual";
|
|
8
|
+
readonly MANUAL: "fade" | "manual";
|
|
9
|
+
};
|
|
2
10
|
export declare const WelcomeScreenFieldsSchema: z.ZodObject<{
|
|
3
11
|
title: z.ZodString;
|
|
4
12
|
description: z.ZodString;
|
|
@@ -10,10 +10,25 @@ export declare const positionSchema: z.ZodEnum<{
|
|
|
10
10
|
"bottom-center": "bottom-center";
|
|
11
11
|
"bottom-right": "bottom-right";
|
|
12
12
|
}>;
|
|
13
|
+
export declare const Positions: {
|
|
14
|
+
readonly TOP_LEFT: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
15
|
+
readonly TOP_CENTER: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
16
|
+
readonly TOP_RIGHT: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
17
|
+
readonly MIDDLE_LEFT: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
18
|
+
readonly MIDDLE_CENTER: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
19
|
+
readonly MIDDLE_RIGHT: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
20
|
+
readonly BOTTOM_LEFT: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
21
|
+
readonly BOTTOM_CENTER: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
22
|
+
readonly BOTTOM_RIGHT: "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
23
|
+
};
|
|
13
24
|
export declare const themeModeSchema: z.ZodEnum<{
|
|
14
25
|
light: "light";
|
|
15
26
|
dark: "dark";
|
|
16
27
|
}>;
|
|
28
|
+
export declare const ThemeModes: {
|
|
29
|
+
readonly LIGHT: "light" | "dark";
|
|
30
|
+
readonly DARK: "light" | "dark";
|
|
31
|
+
};
|
|
17
32
|
export declare const featureSettingsSchema: z.ZodObject<{
|
|
18
33
|
darkOverlay: z.ZodBoolean;
|
|
19
34
|
closeButton: z.ZodBoolean;
|
package/package.json
CHANGED