@encatch/schema 1.0.1-beta.0 → 1.0.1-beta.2
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 +292 -87
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +4 -4
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +1225 -240
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +24 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +8 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +579 -87
- package/dist/types/schemas/fields/field-schema.d.ts +1339 -192
- package/dist/types/schemas/fields/form-properties-schema.d.ts +587 -165
- package/dist/types/schemas/fields/other-screen-schema.d.ts +0 -39
- package/dist/types/schemas/fields/theme-schema.d.ts +25 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +229 -46
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { OtherFieldsSchema, OtherFieldsTranslationSchema
|
|
2
|
+
import { OtherFieldsSchema, OtherFieldsTranslationSchema } from "./other-screen-schema";
|
|
3
3
|
export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
4
|
isEnabled: z.ZodLiteral<false>;
|
|
5
5
|
otherFields: z.ZodObject<{
|
|
@@ -45,66 +45,6 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
45
45
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
47
|
}, z.core.$strip>], "isEnabled">;
|
|
48
|
-
export declare const welcomeScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
-
isEnabled: z.ZodLiteral<false>;
|
|
50
|
-
welcomeFields: z.ZodOptional<z.ZodObject<{
|
|
51
|
-
title: z.ZodString;
|
|
52
|
-
description: z.ZodString;
|
|
53
|
-
buttonLabel: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
|
-
title: z.ZodString;
|
|
57
|
-
description: z.ZodString;
|
|
58
|
-
buttonLabel: z.ZodString;
|
|
59
|
-
}, z.core.$strip>>>;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
isEnabled: z.ZodLiteral<true>;
|
|
62
|
-
welcomeFields: z.ZodObject<{
|
|
63
|
-
title: z.ZodString;
|
|
64
|
-
description: z.ZodString;
|
|
65
|
-
buttonLabel: z.ZodString;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
68
|
-
title: z.ZodString;
|
|
69
|
-
description: z.ZodString;
|
|
70
|
-
buttonLabel: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>;
|
|
72
|
-
}, z.core.$strip>], "isEnabled">;
|
|
73
|
-
export declare const endScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
74
|
-
isEnabled: z.ZodLiteral<false>;
|
|
75
|
-
endFields: z.ZodOptional<z.ZodObject<{
|
|
76
|
-
title: z.ZodString;
|
|
77
|
-
message: z.ZodString;
|
|
78
|
-
buttonLabel: z.ZodString;
|
|
79
|
-
dismissBehavior: z.ZodEnum<{
|
|
80
|
-
fade: "fade";
|
|
81
|
-
manual: "manual";
|
|
82
|
-
}>;
|
|
83
|
-
fadeDuration: z.ZodNumber;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
86
|
-
buttonLabel: z.ZodString;
|
|
87
|
-
title: z.ZodString;
|
|
88
|
-
message: z.ZodString;
|
|
89
|
-
}, z.core.$strip>>>;
|
|
90
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
-
isEnabled: z.ZodLiteral<true>;
|
|
92
|
-
endFields: z.ZodObject<{
|
|
93
|
-
title: z.ZodString;
|
|
94
|
-
message: z.ZodString;
|
|
95
|
-
buttonLabel: z.ZodString;
|
|
96
|
-
dismissBehavior: z.ZodEnum<{
|
|
97
|
-
fade: "fade";
|
|
98
|
-
manual: "manual";
|
|
99
|
-
}>;
|
|
100
|
-
fadeDuration: z.ZodNumber;
|
|
101
|
-
}, z.core.$strip>;
|
|
102
|
-
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
103
|
-
buttonLabel: z.ZodString;
|
|
104
|
-
title: z.ZodString;
|
|
105
|
-
message: z.ZodString;
|
|
106
|
-
}, z.core.$strip>>;
|
|
107
|
-
}, z.core.$strip>], "isEnabled">;
|
|
108
48
|
export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
109
49
|
themeConfiguration: z.ZodObject<{
|
|
110
50
|
themes: z.ZodObject<{
|
|
@@ -128,6 +68,13 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
128
68
|
dark: "dark";
|
|
129
69
|
system: "system";
|
|
130
70
|
}>>;
|
|
71
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
72
|
+
rtl: z.ZodBoolean;
|
|
73
|
+
previousButton: z.ZodEnum<{
|
|
74
|
+
never: "never";
|
|
75
|
+
always: "always";
|
|
76
|
+
auto: "auto";
|
|
77
|
+
}>;
|
|
131
78
|
}, z.core.$strip>;
|
|
132
79
|
selectedPosition: z.ZodEnum<{
|
|
133
80
|
"top-left": "top-left";
|
|
@@ -170,9 +117,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
170
117
|
id: z.ZodString;
|
|
171
118
|
title: z.ZodString;
|
|
172
119
|
description: z.ZodOptional<z.ZodString>;
|
|
173
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
174
120
|
describe: z.ZodOptional<z.ZodString>;
|
|
175
121
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
122
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
176
123
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
177
124
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
125
|
type: z.ZodEnum<{
|
|
@@ -205,7 +152,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
205
152
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
206
153
|
describe: z.ZodOptional<z.ZodString>;
|
|
207
154
|
}, z.core.$strip>>>>;
|
|
208
|
-
isFixed: z.ZodBoolean;
|
|
209
155
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
210
156
|
status: z.ZodEnum<{
|
|
211
157
|
D: "D";
|
|
@@ -213,6 +159,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
213
159
|
A: "A";
|
|
214
160
|
S: "S";
|
|
215
161
|
}>;
|
|
162
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
left: "left";
|
|
164
|
+
center: "center";
|
|
165
|
+
}>>>;
|
|
216
166
|
type: z.ZodLiteral<"rating">;
|
|
217
167
|
showLabels: z.ZodOptional<z.ZodBoolean>;
|
|
218
168
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -236,9 +186,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
236
186
|
id: z.ZodString;
|
|
237
187
|
title: z.ZodString;
|
|
238
188
|
description: z.ZodOptional<z.ZodString>;
|
|
239
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
240
189
|
describe: z.ZodOptional<z.ZodString>;
|
|
241
190
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
191
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
242
192
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
243
193
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
244
194
|
type: z.ZodEnum<{
|
|
@@ -271,7 +221,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
271
221
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
272
222
|
describe: z.ZodOptional<z.ZodString>;
|
|
273
223
|
}, z.core.$strip>>>>;
|
|
274
|
-
isFixed: z.ZodBoolean;
|
|
275
224
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
276
225
|
status: z.ZodEnum<{
|
|
277
226
|
D: "D";
|
|
@@ -279,16 +228,287 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
279
228
|
A: "A";
|
|
280
229
|
S: "S";
|
|
281
230
|
}>;
|
|
231
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
232
|
+
left: "left";
|
|
233
|
+
center: "center";
|
|
234
|
+
}>>>;
|
|
282
235
|
type: z.ZodLiteral<"annotation">;
|
|
283
236
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
284
237
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
id: z.ZodString;
|
|
240
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
241
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
242
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
243
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
244
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
245
|
+
type: z.ZodEnum<{
|
|
246
|
+
required: "required";
|
|
247
|
+
min: "min";
|
|
248
|
+
max: "max";
|
|
249
|
+
minLength: "minLength";
|
|
250
|
+
maxLength: "maxLength";
|
|
251
|
+
pattern: "pattern";
|
|
252
|
+
email: "email";
|
|
253
|
+
url: "url";
|
|
254
|
+
custom: "custom";
|
|
255
|
+
}>;
|
|
256
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
257
|
+
message: z.ZodOptional<z.ZodString>;
|
|
258
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>>>>;
|
|
260
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
261
|
+
field: z.ZodString;
|
|
262
|
+
operator: z.ZodEnum<{
|
|
263
|
+
equals: "equals";
|
|
264
|
+
not_equals: "not_equals";
|
|
265
|
+
contains: "contains";
|
|
266
|
+
not_contains: "not_contains";
|
|
267
|
+
greater_than: "greater_than";
|
|
268
|
+
less_than: "less_than";
|
|
269
|
+
is_empty: "is_empty";
|
|
270
|
+
is_not_empty: "is_not_empty";
|
|
271
|
+
}>;
|
|
272
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
273
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.core.$strip>>>>;
|
|
275
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
276
|
+
status: z.ZodEnum<{
|
|
277
|
+
D: "D";
|
|
278
|
+
P: "P";
|
|
279
|
+
A: "A";
|
|
280
|
+
S: "S";
|
|
281
|
+
}>;
|
|
282
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
283
|
+
left: "left";
|
|
284
|
+
center: "center";
|
|
285
|
+
}>>>;
|
|
286
|
+
type: z.ZodLiteral<"welcome">;
|
|
287
|
+
title: z.ZodString;
|
|
288
|
+
description: z.ZodOptional<z.ZodString>;
|
|
289
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
290
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
294
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
295
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
296
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
297
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
|
+
type: z.ZodEnum<{
|
|
299
|
+
required: "required";
|
|
300
|
+
min: "min";
|
|
301
|
+
max: "max";
|
|
302
|
+
minLength: "minLength";
|
|
303
|
+
maxLength: "maxLength";
|
|
304
|
+
pattern: "pattern";
|
|
305
|
+
email: "email";
|
|
306
|
+
url: "url";
|
|
307
|
+
custom: "custom";
|
|
308
|
+
}>;
|
|
309
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
310
|
+
message: z.ZodOptional<z.ZodString>;
|
|
311
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, z.core.$strip>>>>;
|
|
313
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
314
|
+
field: z.ZodString;
|
|
315
|
+
operator: z.ZodEnum<{
|
|
316
|
+
equals: "equals";
|
|
317
|
+
not_equals: "not_equals";
|
|
318
|
+
contains: "contains";
|
|
319
|
+
not_contains: "not_contains";
|
|
320
|
+
greater_than: "greater_than";
|
|
321
|
+
less_than: "less_than";
|
|
322
|
+
is_empty: "is_empty";
|
|
323
|
+
is_not_empty: "is_not_empty";
|
|
324
|
+
}>;
|
|
325
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
326
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>>>>;
|
|
328
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
329
|
+
status: z.ZodEnum<{
|
|
330
|
+
D: "D";
|
|
331
|
+
P: "P";
|
|
332
|
+
A: "A";
|
|
333
|
+
S: "S";
|
|
334
|
+
}>;
|
|
335
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
336
|
+
left: "left";
|
|
337
|
+
center: "center";
|
|
338
|
+
}>>>;
|
|
339
|
+
type: z.ZodLiteral<"thank_you">;
|
|
340
|
+
title: z.ZodString;
|
|
341
|
+
description: z.ZodOptional<z.ZodString>;
|
|
342
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
343
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
347
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
348
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
349
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
350
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
351
|
+
type: z.ZodEnum<{
|
|
352
|
+
required: "required";
|
|
353
|
+
min: "min";
|
|
354
|
+
max: "max";
|
|
355
|
+
minLength: "minLength";
|
|
356
|
+
maxLength: "maxLength";
|
|
357
|
+
pattern: "pattern";
|
|
358
|
+
email: "email";
|
|
359
|
+
url: "url";
|
|
360
|
+
custom: "custom";
|
|
361
|
+
}>;
|
|
362
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
363
|
+
message: z.ZodOptional<z.ZodString>;
|
|
364
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.core.$strip>>>>;
|
|
366
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
367
|
+
field: z.ZodString;
|
|
368
|
+
operator: z.ZodEnum<{
|
|
369
|
+
equals: "equals";
|
|
370
|
+
not_equals: "not_equals";
|
|
371
|
+
contains: "contains";
|
|
372
|
+
not_contains: "not_contains";
|
|
373
|
+
greater_than: "greater_than";
|
|
374
|
+
less_than: "less_than";
|
|
375
|
+
is_empty: "is_empty";
|
|
376
|
+
is_not_empty: "is_not_empty";
|
|
377
|
+
}>;
|
|
378
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
379
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
380
|
+
}, z.core.$strip>>>>;
|
|
381
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
382
|
+
status: z.ZodEnum<{
|
|
383
|
+
D: "D";
|
|
384
|
+
P: "P";
|
|
385
|
+
A: "A";
|
|
386
|
+
S: "S";
|
|
387
|
+
}>;
|
|
388
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
389
|
+
left: "left";
|
|
390
|
+
center: "center";
|
|
391
|
+
}>>>;
|
|
392
|
+
type: z.ZodLiteral<"message_panel">;
|
|
393
|
+
title: z.ZodString;
|
|
394
|
+
description: z.ZodOptional<z.ZodString>;
|
|
395
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
396
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
title: z.ZodString;
|
|
400
|
+
description: z.ZodOptional<z.ZodString>;
|
|
401
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
402
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
403
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
404
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
405
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
406
|
+
type: z.ZodEnum<{
|
|
407
|
+
required: "required";
|
|
408
|
+
min: "min";
|
|
409
|
+
max: "max";
|
|
410
|
+
minLength: "minLength";
|
|
411
|
+
maxLength: "maxLength";
|
|
412
|
+
pattern: "pattern";
|
|
413
|
+
email: "email";
|
|
414
|
+
url: "url";
|
|
415
|
+
custom: "custom";
|
|
416
|
+
}>;
|
|
417
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
418
|
+
message: z.ZodOptional<z.ZodString>;
|
|
419
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, z.core.$strip>>>>;
|
|
421
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
|
+
field: z.ZodString;
|
|
423
|
+
operator: z.ZodEnum<{
|
|
424
|
+
equals: "equals";
|
|
425
|
+
not_equals: "not_equals";
|
|
426
|
+
contains: "contains";
|
|
427
|
+
not_contains: "not_contains";
|
|
428
|
+
greater_than: "greater_than";
|
|
429
|
+
less_than: "less_than";
|
|
430
|
+
is_empty: "is_empty";
|
|
431
|
+
is_not_empty: "is_not_empty";
|
|
432
|
+
}>;
|
|
433
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
434
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strip>>>>;
|
|
436
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
437
|
+
status: z.ZodEnum<{
|
|
438
|
+
D: "D";
|
|
439
|
+
P: "P";
|
|
440
|
+
A: "A";
|
|
441
|
+
S: "S";
|
|
442
|
+
}>;
|
|
443
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
444
|
+
left: "left";
|
|
445
|
+
center: "center";
|
|
446
|
+
}>>>;
|
|
447
|
+
type: z.ZodLiteral<"exit_form">;
|
|
448
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
449
|
+
id: z.ZodString;
|
|
450
|
+
title: z.ZodString;
|
|
451
|
+
description: z.ZodOptional<z.ZodString>;
|
|
452
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
453
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
454
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
455
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
456
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
457
|
+
type: z.ZodEnum<{
|
|
458
|
+
required: "required";
|
|
459
|
+
min: "min";
|
|
460
|
+
max: "max";
|
|
461
|
+
minLength: "minLength";
|
|
462
|
+
maxLength: "maxLength";
|
|
463
|
+
pattern: "pattern";
|
|
464
|
+
email: "email";
|
|
465
|
+
url: "url";
|
|
466
|
+
custom: "custom";
|
|
467
|
+
}>;
|
|
468
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
469
|
+
message: z.ZodOptional<z.ZodString>;
|
|
470
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
471
|
+
}, z.core.$strip>>>>;
|
|
472
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
473
|
+
field: z.ZodString;
|
|
474
|
+
operator: z.ZodEnum<{
|
|
475
|
+
equals: "equals";
|
|
476
|
+
not_equals: "not_equals";
|
|
477
|
+
contains: "contains";
|
|
478
|
+
not_contains: "not_contains";
|
|
479
|
+
greater_than: "greater_than";
|
|
480
|
+
less_than: "less_than";
|
|
481
|
+
is_empty: "is_empty";
|
|
482
|
+
is_not_empty: "is_not_empty";
|
|
483
|
+
}>;
|
|
484
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
485
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, z.core.$strip>>>>;
|
|
487
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
488
|
+
status: z.ZodEnum<{
|
|
489
|
+
D: "D";
|
|
490
|
+
P: "P";
|
|
491
|
+
A: "A";
|
|
492
|
+
S: "S";
|
|
493
|
+
}>;
|
|
494
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
left: "left";
|
|
496
|
+
center: "center";
|
|
497
|
+
}>>>;
|
|
498
|
+
type: z.ZodLiteral<"yes_no">;
|
|
499
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
500
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
501
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
502
|
+
horizontal: "horizontal";
|
|
503
|
+
vertical: "vertical";
|
|
504
|
+
}>>;
|
|
285
505
|
}, z.core.$strip>, z.ZodObject<{
|
|
286
506
|
id: z.ZodString;
|
|
287
507
|
title: z.ZodString;
|
|
288
508
|
description: z.ZodOptional<z.ZodString>;
|
|
289
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
290
509
|
describe: z.ZodOptional<z.ZodString>;
|
|
291
510
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
511
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
292
512
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
293
513
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
514
|
type: z.ZodEnum<{
|
|
@@ -321,7 +541,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
321
541
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
322
542
|
describe: z.ZodOptional<z.ZodString>;
|
|
323
543
|
}, z.core.$strip>>>>;
|
|
324
|
-
isFixed: z.ZodBoolean;
|
|
325
544
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
326
545
|
status: z.ZodEnum<{
|
|
327
546
|
D: "D";
|
|
@@ -329,6 +548,232 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
329
548
|
A: "A";
|
|
330
549
|
S: "S";
|
|
331
550
|
}>;
|
|
551
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
552
|
+
left: "left";
|
|
553
|
+
center: "center";
|
|
554
|
+
}>>>;
|
|
555
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
556
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
557
|
+
id: z.ZodString;
|
|
558
|
+
value: z.ZodString;
|
|
559
|
+
label: z.ZodString;
|
|
560
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, z.core.$strip>>;
|
|
562
|
+
scale: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
563
|
+
kind: z.ZodLiteral<"likert">;
|
|
564
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
565
|
+
id: z.ZodString;
|
|
566
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
567
|
+
label: z.ZodString;
|
|
568
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.core.$strip>>;
|
|
570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
571
|
+
kind: z.ZodLiteral<"numerical">;
|
|
572
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
573
|
+
id: z.ZodString;
|
|
574
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
575
|
+
label: z.ZodString;
|
|
576
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
577
|
+
}, z.core.$strip>>;
|
|
578
|
+
pointCount: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
579
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
580
|
+
kind: z.ZodLiteral<"custom">;
|
|
581
|
+
scalePoints: z.ZodArray<z.ZodObject<{
|
|
582
|
+
id: z.ZodString;
|
|
583
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
584
|
+
label: z.ZodString;
|
|
585
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
586
|
+
}, z.core.$strip>>;
|
|
587
|
+
}, z.core.$strip>], "kind">;
|
|
588
|
+
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
589
|
+
star: "star";
|
|
590
|
+
emoji: "emoji";
|
|
591
|
+
radio: "radio";
|
|
592
|
+
button: "button";
|
|
593
|
+
}>>;
|
|
594
|
+
randomizeStatements: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
596
|
+
id: z.ZodString;
|
|
597
|
+
title: z.ZodString;
|
|
598
|
+
description: z.ZodOptional<z.ZodString>;
|
|
599
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
600
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
601
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
602
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
603
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
604
|
+
type: z.ZodEnum<{
|
|
605
|
+
required: "required";
|
|
606
|
+
min: "min";
|
|
607
|
+
max: "max";
|
|
608
|
+
minLength: "minLength";
|
|
609
|
+
maxLength: "maxLength";
|
|
610
|
+
pattern: "pattern";
|
|
611
|
+
email: "email";
|
|
612
|
+
url: "url";
|
|
613
|
+
custom: "custom";
|
|
614
|
+
}>;
|
|
615
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
616
|
+
message: z.ZodOptional<z.ZodString>;
|
|
617
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
618
|
+
}, z.core.$strip>>>>;
|
|
619
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
620
|
+
field: z.ZodString;
|
|
621
|
+
operator: z.ZodEnum<{
|
|
622
|
+
equals: "equals";
|
|
623
|
+
not_equals: "not_equals";
|
|
624
|
+
contains: "contains";
|
|
625
|
+
not_contains: "not_contains";
|
|
626
|
+
greater_than: "greater_than";
|
|
627
|
+
less_than: "less_than";
|
|
628
|
+
is_empty: "is_empty";
|
|
629
|
+
is_not_empty: "is_not_empty";
|
|
630
|
+
}>;
|
|
631
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
632
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
633
|
+
}, z.core.$strip>>>>;
|
|
634
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
635
|
+
status: z.ZodEnum<{
|
|
636
|
+
D: "D";
|
|
637
|
+
P: "P";
|
|
638
|
+
A: "A";
|
|
639
|
+
S: "S";
|
|
640
|
+
}>;
|
|
641
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
642
|
+
left: "left";
|
|
643
|
+
center: "center";
|
|
644
|
+
}>>>;
|
|
645
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
646
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
647
|
+
id: z.ZodString;
|
|
648
|
+
value: z.ZodString;
|
|
649
|
+
label: z.ZodString;
|
|
650
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
651
|
+
}, z.core.$strip>>;
|
|
652
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
653
|
+
id: z.ZodString;
|
|
654
|
+
value: z.ZodString;
|
|
655
|
+
label: z.ZodString;
|
|
656
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
657
|
+
}, z.core.$strip>>;
|
|
658
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
659
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
661
|
+
id: z.ZodString;
|
|
662
|
+
title: z.ZodString;
|
|
663
|
+
description: z.ZodOptional<z.ZodString>;
|
|
664
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
665
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
666
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
667
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
668
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
669
|
+
type: z.ZodEnum<{
|
|
670
|
+
required: "required";
|
|
671
|
+
min: "min";
|
|
672
|
+
max: "max";
|
|
673
|
+
minLength: "minLength";
|
|
674
|
+
maxLength: "maxLength";
|
|
675
|
+
pattern: "pattern";
|
|
676
|
+
email: "email";
|
|
677
|
+
url: "url";
|
|
678
|
+
custom: "custom";
|
|
679
|
+
}>;
|
|
680
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
681
|
+
message: z.ZodOptional<z.ZodString>;
|
|
682
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
683
|
+
}, z.core.$strip>>>>;
|
|
684
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
685
|
+
field: z.ZodString;
|
|
686
|
+
operator: z.ZodEnum<{
|
|
687
|
+
equals: "equals";
|
|
688
|
+
not_equals: "not_equals";
|
|
689
|
+
contains: "contains";
|
|
690
|
+
not_contains: "not_contains";
|
|
691
|
+
greater_than: "greater_than";
|
|
692
|
+
less_than: "less_than";
|
|
693
|
+
is_empty: "is_empty";
|
|
694
|
+
is_not_empty: "is_not_empty";
|
|
695
|
+
}>;
|
|
696
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
697
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
698
|
+
}, z.core.$strip>>>>;
|
|
699
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
700
|
+
status: z.ZodEnum<{
|
|
701
|
+
D: "D";
|
|
702
|
+
P: "P";
|
|
703
|
+
A: "A";
|
|
704
|
+
S: "S";
|
|
705
|
+
}>;
|
|
706
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
707
|
+
left: "left";
|
|
708
|
+
center: "center";
|
|
709
|
+
}>>>;
|
|
710
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
711
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
712
|
+
id: z.ZodString;
|
|
713
|
+
value: z.ZodString;
|
|
714
|
+
label: z.ZodString;
|
|
715
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, z.core.$strip>>;
|
|
717
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
718
|
+
id: z.ZodString;
|
|
719
|
+
value: z.ZodString;
|
|
720
|
+
label: z.ZodString;
|
|
721
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
722
|
+
}, z.core.$strip>>;
|
|
723
|
+
minSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
724
|
+
maxSelectionsPerRow: z.ZodOptional<z.ZodNumber>;
|
|
725
|
+
randomizeRows: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
726
|
+
randomizeColumns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
+
id: z.ZodString;
|
|
729
|
+
title: z.ZodString;
|
|
730
|
+
description: z.ZodOptional<z.ZodString>;
|
|
731
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
732
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
733
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
734
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
735
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
736
|
+
type: z.ZodEnum<{
|
|
737
|
+
required: "required";
|
|
738
|
+
min: "min";
|
|
739
|
+
max: "max";
|
|
740
|
+
minLength: "minLength";
|
|
741
|
+
maxLength: "maxLength";
|
|
742
|
+
pattern: "pattern";
|
|
743
|
+
email: "email";
|
|
744
|
+
url: "url";
|
|
745
|
+
custom: "custom";
|
|
746
|
+
}>;
|
|
747
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
748
|
+
message: z.ZodOptional<z.ZodString>;
|
|
749
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
750
|
+
}, z.core.$strip>>>>;
|
|
751
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
752
|
+
field: z.ZodString;
|
|
753
|
+
operator: z.ZodEnum<{
|
|
754
|
+
equals: "equals";
|
|
755
|
+
not_equals: "not_equals";
|
|
756
|
+
contains: "contains";
|
|
757
|
+
not_contains: "not_contains";
|
|
758
|
+
greater_than: "greater_than";
|
|
759
|
+
less_than: "less_than";
|
|
760
|
+
is_empty: "is_empty";
|
|
761
|
+
is_not_empty: "is_not_empty";
|
|
762
|
+
}>;
|
|
763
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
764
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
765
|
+
}, z.core.$strip>>>>;
|
|
766
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
767
|
+
status: z.ZodEnum<{
|
|
768
|
+
D: "D";
|
|
769
|
+
P: "P";
|
|
770
|
+
A: "A";
|
|
771
|
+
S: "S";
|
|
772
|
+
}>;
|
|
773
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
774
|
+
left: "left";
|
|
775
|
+
center: "center";
|
|
776
|
+
}>>>;
|
|
332
777
|
type: z.ZodLiteral<"single_choice">;
|
|
333
778
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
334
779
|
radio: "radio";
|
|
@@ -354,9 +799,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
354
799
|
id: z.ZodString;
|
|
355
800
|
title: z.ZodString;
|
|
356
801
|
description: z.ZodOptional<z.ZodString>;
|
|
357
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
358
802
|
describe: z.ZodOptional<z.ZodString>;
|
|
359
803
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
804
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
360
805
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
361
806
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
362
807
|
type: z.ZodEnum<{
|
|
@@ -389,7 +834,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
389
834
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
390
835
|
describe: z.ZodOptional<z.ZodString>;
|
|
391
836
|
}, z.core.$strip>>>>;
|
|
392
|
-
isFixed: z.ZodBoolean;
|
|
393
837
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
394
838
|
status: z.ZodEnum<{
|
|
395
839
|
D: "D";
|
|
@@ -397,6 +841,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
397
841
|
A: "A";
|
|
398
842
|
S: "S";
|
|
399
843
|
}>;
|
|
844
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
845
|
+
left: "left";
|
|
846
|
+
center: "center";
|
|
847
|
+
}>>>;
|
|
400
848
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
401
849
|
displayStyle: z.ZodOptional<z.ZodEnum<{
|
|
402
850
|
list: "list";
|
|
@@ -423,9 +871,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
423
871
|
id: z.ZodString;
|
|
424
872
|
title: z.ZodString;
|
|
425
873
|
description: z.ZodOptional<z.ZodString>;
|
|
426
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
427
874
|
describe: z.ZodOptional<z.ZodString>;
|
|
428
875
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
876
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
429
877
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
430
878
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
431
879
|
type: z.ZodEnum<{
|
|
@@ -458,7 +906,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
458
906
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
459
907
|
describe: z.ZodOptional<z.ZodString>;
|
|
460
908
|
}, z.core.$strip>>>>;
|
|
461
|
-
isFixed: z.ZodBoolean;
|
|
462
909
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
463
910
|
status: z.ZodEnum<{
|
|
464
911
|
D: "D";
|
|
@@ -466,6 +913,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
466
913
|
A: "A";
|
|
467
914
|
S: "S";
|
|
468
915
|
}>;
|
|
916
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
917
|
+
left: "left";
|
|
918
|
+
center: "center";
|
|
919
|
+
}>>>;
|
|
469
920
|
type: z.ZodLiteral<"nps">;
|
|
470
921
|
min: z.ZodLiteral<0>;
|
|
471
922
|
max: z.ZodLiteral<10>;
|
|
@@ -477,9 +928,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
477
928
|
id: z.ZodString;
|
|
478
929
|
title: z.ZodString;
|
|
479
930
|
description: z.ZodOptional<z.ZodString>;
|
|
480
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
481
931
|
describe: z.ZodOptional<z.ZodString>;
|
|
482
932
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
933
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
483
934
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
484
935
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
485
936
|
type: z.ZodEnum<{
|
|
@@ -512,7 +963,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
512
963
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
513
964
|
describe: z.ZodOptional<z.ZodString>;
|
|
514
965
|
}, z.core.$strip>>>>;
|
|
515
|
-
isFixed: z.ZodBoolean;
|
|
516
966
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
517
967
|
status: z.ZodEnum<{
|
|
518
968
|
D: "D";
|
|
@@ -520,6 +970,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
520
970
|
A: "A";
|
|
521
971
|
S: "S";
|
|
522
972
|
}>;
|
|
973
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
974
|
+
left: "left";
|
|
975
|
+
center: "center";
|
|
976
|
+
}>>>;
|
|
523
977
|
type: z.ZodLiteral<"short_answer">;
|
|
524
978
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
525
979
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -534,9 +988,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
534
988
|
id: z.ZodString;
|
|
535
989
|
title: z.ZodString;
|
|
536
990
|
description: z.ZodOptional<z.ZodString>;
|
|
537
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
538
991
|
describe: z.ZodOptional<z.ZodString>;
|
|
539
992
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
993
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
540
994
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
541
995
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
542
996
|
type: z.ZodEnum<{
|
|
@@ -569,7 +1023,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
569
1023
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
570
1024
|
describe: z.ZodOptional<z.ZodString>;
|
|
571
1025
|
}, z.core.$strip>>>>;
|
|
572
|
-
isFixed: z.ZodBoolean;
|
|
573
1026
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
574
1027
|
status: z.ZodEnum<{
|
|
575
1028
|
D: "D";
|
|
@@ -577,6 +1030,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
577
1030
|
A: "A";
|
|
578
1031
|
S: "S";
|
|
579
1032
|
}>;
|
|
1033
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1034
|
+
left: "left";
|
|
1035
|
+
center: "center";
|
|
1036
|
+
}>>>;
|
|
580
1037
|
type: z.ZodLiteral<"long_text">;
|
|
581
1038
|
maxCharacters: z.ZodOptional<z.ZodNumber>;
|
|
582
1039
|
minCharacters: z.ZodOptional<z.ZodNumber>;
|
|
@@ -590,9 +1047,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
590
1047
|
id: z.ZodString;
|
|
591
1048
|
title: z.ZodString;
|
|
592
1049
|
description: z.ZodOptional<z.ZodString>;
|
|
593
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
594
1050
|
describe: z.ZodOptional<z.ZodString>;
|
|
595
1051
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1052
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
596
1053
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
597
1054
|
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
598
1055
|
type: z.ZodEnum<{
|
|
@@ -625,7 +1082,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
625
1082
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
626
1083
|
describe: z.ZodOptional<z.ZodString>;
|
|
627
1084
|
}, z.core.$strip>>>>;
|
|
628
|
-
isFixed: z.ZodBoolean;
|
|
629
1085
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
630
1086
|
status: z.ZodEnum<{
|
|
631
1087
|
D: "D";
|
|
@@ -633,6 +1089,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
633
1089
|
A: "A";
|
|
634
1090
|
S: "S";
|
|
635
1091
|
}>;
|
|
1092
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1093
|
+
left: "left";
|
|
1094
|
+
center: "center";
|
|
1095
|
+
}>>>;
|
|
636
1096
|
type: z.ZodLiteral<"nested_selection">;
|
|
637
1097
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
638
1098
|
options: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
@@ -659,12 +1119,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
659
1119
|
selectedLanguages: z.ZodArray<z.ZodObject<{
|
|
660
1120
|
value: z.ZodString;
|
|
661
1121
|
label: z.ZodString;
|
|
662
|
-
isFixed: z.ZodDefault<z.ZodBoolean>;
|
|
663
1122
|
}, z.core.$strip>>;
|
|
664
1123
|
translations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
665
1124
|
title: z.ZodString;
|
|
666
1125
|
description: z.ZodOptional<z.ZodString>;
|
|
667
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
668
1126
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
669
1127
|
type: z.ZodLiteral<"rating">;
|
|
670
1128
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -672,21 +1130,18 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
672
1130
|
}, z.core.$strip>, z.ZodObject<{
|
|
673
1131
|
title: z.ZodString;
|
|
674
1132
|
description: z.ZodOptional<z.ZodString>;
|
|
675
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
676
1133
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
677
1134
|
type: z.ZodLiteral<"single_choice">;
|
|
678
1135
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
679
1136
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
680
1137
|
title: z.ZodString;
|
|
681
1138
|
description: z.ZodOptional<z.ZodString>;
|
|
682
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
683
1139
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
684
1140
|
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
685
1141
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
686
1142
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
687
1143
|
title: z.ZodString;
|
|
688
1144
|
description: z.ZodOptional<z.ZodString>;
|
|
689
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
690
1145
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
691
1146
|
type: z.ZodLiteral<"nps">;
|
|
692
1147
|
minLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -694,33 +1149,71 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
694
1149
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
695
1150
|
title: z.ZodString;
|
|
696
1151
|
description: z.ZodOptional<z.ZodString>;
|
|
697
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
698
1152
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
699
1153
|
type: z.ZodLiteral<"short_answer">;
|
|
700
1154
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
701
1155
|
}, z.core.$strip>, z.ZodObject<{
|
|
702
1156
|
title: z.ZodString;
|
|
703
1157
|
description: z.ZodOptional<z.ZodString>;
|
|
704
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
705
1158
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
706
1159
|
type: z.ZodLiteral<"long_text">;
|
|
707
1160
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
708
1161
|
}, z.core.$strip>, z.ZodObject<{
|
|
709
1162
|
title: z.ZodString;
|
|
710
1163
|
description: z.ZodOptional<z.ZodString>;
|
|
711
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
712
1164
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
713
1165
|
type: z.ZodLiteral<"nested_selection">;
|
|
714
1166
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
715
1167
|
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
716
1168
|
title: z.ZodString;
|
|
717
1169
|
description: z.ZodOptional<z.ZodString>;
|
|
718
|
-
descriptionMarkdown: z.ZodOptional<z.ZodString>;
|
|
719
1170
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
720
1171
|
type: z.ZodLiteral<"annotation">;
|
|
721
1172
|
annotationText: z.ZodOptional<z.ZodString>;
|
|
722
1173
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
723
|
-
}, z.core.$strip
|
|
1174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1175
|
+
title: z.ZodString;
|
|
1176
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1177
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
type: z.ZodLiteral<"welcome">;
|
|
1179
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1181
|
+
title: z.ZodString;
|
|
1182
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1183
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1184
|
+
type: z.ZodLiteral<"thank_you">;
|
|
1185
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1187
|
+
title: z.ZodString;
|
|
1188
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
type: z.ZodLiteral<"message_panel">;
|
|
1191
|
+
buttonLabel: z.ZodOptional<z.ZodString>;
|
|
1192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1193
|
+
title: z.ZodString;
|
|
1194
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
type: z.ZodLiteral<"yes_no">;
|
|
1197
|
+
yesLabel: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
noLabel: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1200
|
+
title: z.ZodString;
|
|
1201
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
type: z.ZodLiteral<"rating_matrix">;
|
|
1204
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
1206
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1207
|
+
title: z.ZodString;
|
|
1208
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
type: z.ZodLiteral<"matrix_single_choice">;
|
|
1211
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
1212
|
+
title: z.ZodString;
|
|
1213
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1214
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
type: z.ZodLiteral<"matrix_multiple_choice">;
|
|
1216
|
+
}, z.core.$catchall<z.ZodString>>]>>>;
|
|
724
1217
|
}, z.core.$strip>;
|
|
725
1218
|
frequencyAndSchedulingProperties: z.ZodObject<{
|
|
726
1219
|
surveyType: z.ZodEnum<{
|
|
@@ -860,66 +1353,6 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
860
1353
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
861
1354
|
}, z.core.$strip>>;
|
|
862
1355
|
}, z.core.$strip>], "isEnabled">;
|
|
863
|
-
welcomeScreenProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
864
|
-
isEnabled: z.ZodLiteral<false>;
|
|
865
|
-
welcomeFields: z.ZodOptional<z.ZodObject<{
|
|
866
|
-
title: z.ZodString;
|
|
867
|
-
description: z.ZodString;
|
|
868
|
-
buttonLabel: z.ZodString;
|
|
869
|
-
}, z.core.$strip>>;
|
|
870
|
-
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
871
|
-
title: z.ZodString;
|
|
872
|
-
description: z.ZodString;
|
|
873
|
-
buttonLabel: z.ZodString;
|
|
874
|
-
}, z.core.$strip>>>;
|
|
875
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
876
|
-
isEnabled: z.ZodLiteral<true>;
|
|
877
|
-
welcomeFields: z.ZodObject<{
|
|
878
|
-
title: z.ZodString;
|
|
879
|
-
description: z.ZodString;
|
|
880
|
-
buttonLabel: z.ZodString;
|
|
881
|
-
}, z.core.$strip>;
|
|
882
|
-
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
883
|
-
title: z.ZodString;
|
|
884
|
-
description: z.ZodString;
|
|
885
|
-
buttonLabel: z.ZodString;
|
|
886
|
-
}, z.core.$strip>>;
|
|
887
|
-
}, z.core.$strip>], "isEnabled">;
|
|
888
|
-
endScreenProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
889
|
-
isEnabled: z.ZodLiteral<false>;
|
|
890
|
-
endFields: z.ZodOptional<z.ZodObject<{
|
|
891
|
-
title: z.ZodString;
|
|
892
|
-
message: z.ZodString;
|
|
893
|
-
buttonLabel: z.ZodString;
|
|
894
|
-
dismissBehavior: z.ZodEnum<{
|
|
895
|
-
fade: "fade";
|
|
896
|
-
manual: "manual";
|
|
897
|
-
}>;
|
|
898
|
-
fadeDuration: z.ZodNumber;
|
|
899
|
-
}, z.core.$strip>>;
|
|
900
|
-
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
901
|
-
buttonLabel: z.ZodString;
|
|
902
|
-
title: z.ZodString;
|
|
903
|
-
message: z.ZodString;
|
|
904
|
-
}, z.core.$strip>>>;
|
|
905
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
906
|
-
isEnabled: z.ZodLiteral<true>;
|
|
907
|
-
endFields: z.ZodObject<{
|
|
908
|
-
title: z.ZodString;
|
|
909
|
-
message: z.ZodString;
|
|
910
|
-
buttonLabel: z.ZodString;
|
|
911
|
-
dismissBehavior: z.ZodEnum<{
|
|
912
|
-
fade: "fade";
|
|
913
|
-
manual: "manual";
|
|
914
|
-
}>;
|
|
915
|
-
fadeDuration: z.ZodNumber;
|
|
916
|
-
}, z.core.$strip>;
|
|
917
|
-
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
918
|
-
buttonLabel: z.ZodString;
|
|
919
|
-
title: z.ZodString;
|
|
920
|
-
message: z.ZodString;
|
|
921
|
-
}, z.core.$strip>>;
|
|
922
|
-
}, z.core.$strip>], "isEnabled">;
|
|
923
1356
|
appearanceProperties: z.ZodObject<{
|
|
924
1357
|
themeConfiguration: z.ZodObject<{
|
|
925
1358
|
themes: z.ZodObject<{
|
|
@@ -943,6 +1376,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
943
1376
|
dark: "dark";
|
|
944
1377
|
system: "system";
|
|
945
1378
|
}>>;
|
|
1379
|
+
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
1380
|
+
rtl: z.ZodBoolean;
|
|
1381
|
+
previousButton: z.ZodEnum<{
|
|
1382
|
+
never: "never";
|
|
1383
|
+
always: "always";
|
|
1384
|
+
auto: "auto";
|
|
1385
|
+
}>;
|
|
946
1386
|
}, z.core.$strip>;
|
|
947
1387
|
selectedPosition: z.ZodEnum<{
|
|
948
1388
|
"top-left": "top-left";
|
|
@@ -979,22 +1419,4 @@ export type OtherConfigurationProperties = {
|
|
|
979
1419
|
otherFields: z.infer<typeof OtherFieldsSchema>;
|
|
980
1420
|
translations: Record<string, z.infer<typeof OtherFieldsTranslationSchema>>;
|
|
981
1421
|
};
|
|
982
|
-
export type WelcomeScreenProperties = {
|
|
983
|
-
isEnabled: false;
|
|
984
|
-
welcomeFields?: z.infer<typeof WelcomeScreenFieldsSchema>;
|
|
985
|
-
translations?: Record<string, z.infer<typeof WelcomeFieldsTranslationSchema>>;
|
|
986
|
-
} | {
|
|
987
|
-
isEnabled: true;
|
|
988
|
-
welcomeFields: z.infer<typeof WelcomeScreenFieldsSchema>;
|
|
989
|
-
translations: Record<string, z.infer<typeof WelcomeFieldsTranslationSchema>>;
|
|
990
|
-
};
|
|
991
|
-
export type EndScreenProperties = {
|
|
992
|
-
isEnabled: false;
|
|
993
|
-
endFields?: z.infer<typeof EndScreenFieldsSchema>;
|
|
994
|
-
translations?: Record<string, z.infer<typeof EndFieldsTranslationSchema>>;
|
|
995
|
-
} | {
|
|
996
|
-
isEnabled: true;
|
|
997
|
-
endFields: z.infer<typeof EndScreenFieldsSchema>;
|
|
998
|
-
translations: Record<string, z.infer<typeof EndFieldsTranslationSchema>>;
|
|
999
|
-
};
|
|
1000
1422
|
export type AppearanceProperties = z.infer<typeof appearancePropertiesSchema>;
|