@encatch/schema 1.1.0-beta.8 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,6 +36,9 @@ export declare const questionResponseSchema: z.ZodObject<{
36
36
  }, z.core.$strip>;
37
37
  type: z.ZodString;
38
38
  error: z.ZodOptional<z.ZodString>;
39
+ isOnPath: z.ZodOptional<z.ZodBoolean>;
40
+ timeSpentMs: z.ZodOptional<z.ZodNumber>;
41
+ isPathTraversed: z.ZodOptional<z.ZodBoolean>;
39
42
  }, z.core.$strip>;
40
43
  export declare const responseSchema: z.ZodObject<{
41
44
  questions: z.ZodArray<z.ZodObject<{
@@ -68,6 +71,9 @@ export declare const responseSchema: z.ZodObject<{
68
71
  }, z.core.$strip>;
69
72
  type: z.ZodString;
70
73
  error: z.ZodOptional<z.ZodString>;
74
+ isOnPath: z.ZodOptional<z.ZodBoolean>;
75
+ timeSpentMs: z.ZodOptional<z.ZodNumber>;
76
+ isPathTraversed: z.ZodOptional<z.ZodBoolean>;
71
77
  }, z.core.$strip>>;
72
78
  }, z.core.$strip>;
73
79
  export declare const matchedTriggerPropertiesSchema: z.ZodObject<{
@@ -191,6 +197,9 @@ export declare const partialFeedbackSchema: z.ZodObject<{
191
197
  }, z.core.$strip>;
192
198
  type: z.ZodString;
193
199
  error: z.ZodOptional<z.ZodString>;
200
+ isOnPath: z.ZodOptional<z.ZodBoolean>;
201
+ timeSpentMs: z.ZodOptional<z.ZodNumber>;
202
+ isPathTraversed: z.ZodOptional<z.ZodBoolean>;
194
203
  }, z.core.$strip>>;
195
204
  }, z.core.$strip>>;
196
205
  }, z.core.$strip>;
@@ -267,6 +276,9 @@ export declare const submitFeedbackSchema: z.ZodObject<{
267
276
  }, z.core.$strip>;
268
277
  type: z.ZodString;
269
278
  error: z.ZodOptional<z.ZodString>;
279
+ isOnPath: z.ZodOptional<z.ZodBoolean>;
280
+ timeSpentMs: z.ZodOptional<z.ZodNumber>;
281
+ isPathTraversed: z.ZodOptional<z.ZodBoolean>;
270
282
  }, z.core.$strip>>;
271
283
  }, z.core.$strip>;
272
284
  }, z.core.$strip>;
@@ -343,6 +355,9 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
343
355
  }, z.core.$strip>;
344
356
  type: z.ZodString;
345
357
  error: z.ZodOptional<z.ZodString>;
358
+ isOnPath: z.ZodOptional<z.ZodBoolean>;
359
+ timeSpentMs: z.ZodOptional<z.ZodNumber>;
360
+ isPathTraversed: z.ZodOptional<z.ZodBoolean>;
346
361
  }, z.core.$strip>>;
347
362
  }, z.core.$strip>>;
348
363
  }, z.core.$strip>, z.ZodObject<{
@@ -418,6 +433,9 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
418
433
  }, z.core.$strip>;
419
434
  type: z.ZodString;
420
435
  error: z.ZodOptional<z.ZodString>;
436
+ isOnPath: z.ZodOptional<z.ZodBoolean>;
437
+ timeSpentMs: z.ZodOptional<z.ZodNumber>;
438
+ isPathTraversed: z.ZodOptional<z.ZodBoolean>;
421
439
  }, z.core.$strip>>;
422
440
  }, z.core.$strip>;
423
441
  }, z.core.$strip>]>;
@@ -74,8 +74,9 @@ export declare const appPropsSchema: z.ZodObject<{
74
74
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
75
75
  left: "left";
76
76
  center: "center";
77
+ justify: "justify";
77
78
  }>>>;
78
- nextButtonLabel: z.ZodOptional<z.ZodString>;
79
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
79
80
  type: z.ZodLiteral<"rating">;
80
81
  showLabels: z.ZodOptional<z.ZodBoolean>;
81
82
  minLabel: z.ZodOptional<z.ZodString>;
@@ -145,8 +146,9 @@ export declare const appPropsSchema: z.ZodObject<{
145
146
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
146
147
  left: "left";
147
148
  center: "center";
149
+ justify: "justify";
148
150
  }>>>;
149
- nextButtonLabel: z.ZodOptional<z.ZodString>;
151
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
150
152
  type: z.ZodLiteral<"annotation">;
151
153
  annotationText: z.ZodOptional<z.ZodString>;
152
154
  noAnnotationText: z.ZodOptional<z.ZodString>;
@@ -198,8 +200,9 @@ export declare const appPropsSchema: z.ZodObject<{
198
200
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
199
201
  left: "left";
200
202
  center: "center";
203
+ justify: "justify";
201
204
  }>>>;
202
- nextButtonLabel: z.ZodOptional<z.ZodString>;
205
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
203
206
  type: z.ZodLiteral<"welcome">;
204
207
  title: z.ZodString;
205
208
  description: z.ZodOptional<z.ZodString>;
@@ -252,8 +255,9 @@ export declare const appPropsSchema: z.ZodObject<{
252
255
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
253
256
  left: "left";
254
257
  center: "center";
258
+ justify: "justify";
255
259
  }>>>;
256
- nextButtonLabel: z.ZodOptional<z.ZodString>;
260
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
257
261
  type: z.ZodLiteral<"thank_you">;
258
262
  title: z.ZodString;
259
263
  description: z.ZodOptional<z.ZodString>;
@@ -306,8 +310,9 @@ export declare const appPropsSchema: z.ZodObject<{
306
310
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
307
311
  left: "left";
308
312
  center: "center";
313
+ justify: "justify";
309
314
  }>>>;
310
- nextButtonLabel: z.ZodOptional<z.ZodString>;
315
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
311
316
  type: z.ZodLiteral<"message_panel">;
312
317
  title: z.ZodString;
313
318
  description: z.ZodOptional<z.ZodString>;
@@ -362,8 +367,9 @@ export declare const appPropsSchema: z.ZodObject<{
362
367
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
363
368
  left: "left";
364
369
  center: "center";
370
+ justify: "justify";
365
371
  }>>>;
366
- nextButtonLabel: z.ZodOptional<z.ZodString>;
372
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
367
373
  type: z.ZodLiteral<"exit_form">;
368
374
  }, z.core.$strip>, z.ZodObject<{
369
375
  id: z.ZodString;
@@ -415,8 +421,9 @@ export declare const appPropsSchema: z.ZodObject<{
415
421
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
416
422
  left: "left";
417
423
  center: "center";
424
+ justify: "justify";
418
425
  }>>>;
419
- nextButtonLabel: z.ZodOptional<z.ZodString>;
426
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
420
427
  type: z.ZodLiteral<"yes_no">;
421
428
  yesLabel: z.ZodOptional<z.ZodString>;
422
429
  noLabel: z.ZodOptional<z.ZodString>;
@@ -474,8 +481,9 @@ export declare const appPropsSchema: z.ZodObject<{
474
481
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
475
482
  left: "left";
476
483
  center: "center";
484
+ justify: "justify";
477
485
  }>>>;
478
- nextButtonLabel: z.ZodOptional<z.ZodString>;
486
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
479
487
  type: z.ZodLiteral<"consent">;
480
488
  }, z.core.$strip>, z.ZodObject<{
481
489
  id: z.ZodString;
@@ -527,8 +535,9 @@ export declare const appPropsSchema: z.ZodObject<{
527
535
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
528
536
  left: "left";
529
537
  center: "center";
538
+ justify: "justify";
530
539
  }>>>;
531
- nextButtonLabel: z.ZodOptional<z.ZodString>;
540
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
532
541
  type: z.ZodLiteral<"rating_matrix">;
533
542
  statements: z.ZodArray<z.ZodObject<{
534
543
  id: z.ZodString;
@@ -619,8 +628,9 @@ export declare const appPropsSchema: z.ZodObject<{
619
628
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
620
629
  left: "left";
621
630
  center: "center";
631
+ justify: "justify";
622
632
  }>>>;
623
- nextButtonLabel: z.ZodOptional<z.ZodString>;
633
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
624
634
  type: z.ZodLiteral<"matrix_single_choice">;
625
635
  rows: z.ZodArray<z.ZodObject<{
626
636
  id: z.ZodString;
@@ -686,8 +696,9 @@ export declare const appPropsSchema: z.ZodObject<{
686
696
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
687
697
  left: "left";
688
698
  center: "center";
699
+ justify: "justify";
689
700
  }>>>;
690
- nextButtonLabel: z.ZodOptional<z.ZodString>;
701
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
691
702
  type: z.ZodLiteral<"matrix_multiple_choice">;
692
703
  rows: z.ZodArray<z.ZodObject<{
693
704
  id: z.ZodString;
@@ -755,8 +766,9 @@ export declare const appPropsSchema: z.ZodObject<{
755
766
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
756
767
  left: "left";
757
768
  center: "center";
769
+ justify: "justify";
758
770
  }>>>;
759
- nextButtonLabel: z.ZodOptional<z.ZodString>;
771
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
760
772
  type: z.ZodLiteral<"single_choice">;
761
773
  displayStyle: z.ZodOptional<z.ZodEnum<{
762
774
  radio: "radio";
@@ -828,8 +840,9 @@ export declare const appPropsSchema: z.ZodObject<{
828
840
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
829
841
  left: "left";
830
842
  center: "center";
843
+ justify: "justify";
831
844
  }>>>;
832
- nextButtonLabel: z.ZodOptional<z.ZodString>;
845
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
833
846
  type: z.ZodLiteral<"multiple_choice_multiple">;
834
847
  displayStyle: z.ZodOptional<z.ZodEnum<{
835
848
  list: "list";
@@ -902,8 +915,9 @@ export declare const appPropsSchema: z.ZodObject<{
902
915
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
903
916
  left: "left";
904
917
  center: "center";
918
+ justify: "justify";
905
919
  }>>>;
906
- nextButtonLabel: z.ZodOptional<z.ZodString>;
920
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
907
921
  type: z.ZodLiteral<"nps">;
908
922
  min: z.ZodLiteral<0>;
909
923
  max: z.ZodLiteral<10>;
@@ -961,8 +975,9 @@ export declare const appPropsSchema: z.ZodObject<{
961
975
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
962
976
  left: "left";
963
977
  center: "center";
978
+ justify: "justify";
964
979
  }>>>;
965
- nextButtonLabel: z.ZodOptional<z.ZodString>;
980
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
966
981
  type: z.ZodLiteral<"short_answer">;
967
982
  maxCharacters: z.ZodOptional<z.ZodNumber>;
968
983
  minCharacters: z.ZodOptional<z.ZodNumber>;
@@ -1023,8 +1038,9 @@ export declare const appPropsSchema: z.ZodObject<{
1023
1038
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1024
1039
  left: "left";
1025
1040
  center: "center";
1041
+ justify: "justify";
1026
1042
  }>>>;
1027
- nextButtonLabel: z.ZodOptional<z.ZodString>;
1043
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
1028
1044
  type: z.ZodLiteral<"long_text">;
1029
1045
  maxCharacters: z.ZodOptional<z.ZodNumber>;
1030
1046
  minCharacters: z.ZodOptional<z.ZodNumber>;
@@ -1084,8 +1100,9 @@ export declare const appPropsSchema: z.ZodObject<{
1084
1100
  textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1085
1101
  left: "left";
1086
1102
  center: "center";
1103
+ justify: "justify";
1087
1104
  }>>>;
1088
- nextButtonLabel: z.ZodOptional<z.ZodString>;
1105
+ nextButtonLabel: z.ZodDefault<z.ZodString>;
1089
1106
  type: z.ZodLiteral<"nested_selection">;
1090
1107
  placeholder: z.ZodOptional<z.ZodString>;
1091
1108
  options: z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
@@ -1228,6 +1245,12 @@ export declare const appPropsSchema: z.ZodObject<{
1228
1245
  type: z.ZodLiteral<"yes_no">;
1229
1246
  yesLabel: z.ZodOptional<z.ZodString>;
1230
1247
  noLabel: z.ZodOptional<z.ZodString>;
1248
+ }, z.core.$strip>, z.ZodObject<{
1249
+ title: z.ZodString;
1250
+ description: z.ZodOptional<z.ZodString>;
1251
+ errorMessage: z.ZodOptional<z.ZodString>;
1252
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
1253
+ type: z.ZodLiteral<"consent">;
1231
1254
  }, z.core.$strip>, z.ZodObject<{
1232
1255
  title: z.ZodString;
1233
1256
  description: z.ZodOptional<z.ZodString>;
@@ -1249,7 +1272,7 @@ export declare const appPropsSchema: z.ZodObject<{
1249
1272
  nextButtonLabel: z.ZodOptional<z.ZodString>;
1250
1273
  type: z.ZodLiteral<"matrix_multiple_choice">;
1251
1274
  }, z.core.$catchall<z.ZodString>>]>>>>;
1252
- onSectionChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodNumber], null>, z.ZodVoid>>;
1275
+ onSectionChange: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [z.ZodNumber, z.ZodString], null>, z.ZodVoid>>;
1253
1276
  onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodVoid>>;
1254
1277
  sections: z.ZodArray<z.ZodObject<{
1255
1278
  id: z.ZodString;
@@ -1264,6 +1287,7 @@ export declare const appPropsSchema: z.ZodObject<{
1264
1287
  nextButtonLabel: z.ZodOptional<z.ZodString>;
1265
1288
  }, z.core.$strip>>>;
1266
1289
  inAppSingleQuestion: z.ZodDefault<z.ZodBoolean>;
1290
+ isPreviousAllowed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1267
1291
  questionIds: z.ZodArray<z.ZodString>;
1268
1292
  }, z.core.$strip>>;
1269
1293
  themeSettings: z.ZodObject<{
@@ -1282,6 +1306,7 @@ export declare const appPropsSchema: z.ZodObject<{
1282
1306
  showBranding: z.ZodDefault<z.ZodBoolean>;
1283
1307
  customPosition: z.ZodBoolean;
1284
1308
  customCss: z.ZodOptional<z.ZodString>;
1309
+ fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1285
1310
  shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1286
1311
  light: "light";
1287
1312
  dark: "dark";