@encatch/schema 1.2.0-beta.8 → 1.2.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/esm/index.js +711 -163
- 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 +274 -0
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +66 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +34 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +222 -0
- package/dist/types/schemas/fields/field-schema.d.ts +257 -7
- package/dist/types/schemas/fields/form-properties-schema.d.ts +272 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +188 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +310 -0
- package/package.json +8 -18
|
@@ -68,6 +68,71 @@ export declare const videoAudioQuestionTranslationSchema: z.ZodObject<{
|
|
|
68
68
|
modeTabLabelAudio: z.ZodOptional<z.ZodString>;
|
|
69
69
|
modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
|
|
70
70
|
modeTabLabelText: z.ZodOptional<z.ZodString>;
|
|
71
|
+
recordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
72
|
+
uploadMediaButtonLabel: z.ZodOptional<z.ZodString>;
|
|
73
|
+
videoIdleHint: z.ZodOptional<z.ZodString>;
|
|
74
|
+
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
75
|
+
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
76
|
+
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const dateQuestionTranslationSchema: z.ZodObject<{
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
description: z.ZodOptional<z.ZodString>;
|
|
81
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
82
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
83
|
+
type: z.ZodLiteral<"date">;
|
|
84
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
85
|
+
segmentLabelDD: z.ZodOptional<z.ZodString>;
|
|
86
|
+
segmentLabelMM: z.ZodOptional<z.ZodString>;
|
|
87
|
+
segmentLabelYYYY: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export declare const signatureQuestionTranslationSchema: z.ZodObject<{
|
|
90
|
+
title: z.ZodString;
|
|
91
|
+
description: z.ZodOptional<z.ZodString>;
|
|
92
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
93
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
94
|
+
type: z.ZodLiteral<"signature">;
|
|
95
|
+
clearButtonLabel: z.ZodOptional<z.ZodString>;
|
|
96
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
97
|
+
modeTabLabelType: z.ZodOptional<z.ZodString>;
|
|
98
|
+
modeTabLabelDraw: z.ZodOptional<z.ZodString>;
|
|
99
|
+
modeTabLabelUpload: z.ZodOptional<z.ZodString>;
|
|
100
|
+
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
101
|
+
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
102
|
+
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export declare const schedulerQuestionTranslationSchema: z.ZodObject<{
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
108
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
109
|
+
type: z.ZodLiteral<"scheduler">;
|
|
110
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
111
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export declare const qnaWithAiQuestionTranslationSchema: z.ZodObject<{
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
description: z.ZodOptional<z.ZodString>;
|
|
116
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
117
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
118
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
119
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
120
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
121
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
122
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
123
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export declare const paymentsUpiQuestionTranslationSchema: z.ZodObject<{
|
|
126
|
+
title: z.ZodString;
|
|
127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
129
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
130
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
131
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
132
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
133
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
134
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
135
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
71
136
|
}, z.core.$strip>;
|
|
72
137
|
export declare const nestedSelectionQuestionTranslationSchema: z.ZodObject<{
|
|
73
138
|
title: z.ZodString;
|
|
@@ -201,6 +266,66 @@ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
201
266
|
modeTabLabelAudio: z.ZodOptional<z.ZodString>;
|
|
202
267
|
modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
|
|
203
268
|
modeTabLabelText: z.ZodOptional<z.ZodString>;
|
|
269
|
+
recordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
270
|
+
uploadMediaButtonLabel: z.ZodOptional<z.ZodString>;
|
|
271
|
+
videoIdleHint: z.ZodOptional<z.ZodString>;
|
|
272
|
+
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
273
|
+
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
274
|
+
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
+
title: z.ZodString;
|
|
277
|
+
description: z.ZodOptional<z.ZodString>;
|
|
278
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
279
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
280
|
+
type: z.ZodLiteral<"date">;
|
|
281
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
282
|
+
segmentLabelDD: z.ZodOptional<z.ZodString>;
|
|
283
|
+
segmentLabelMM: z.ZodOptional<z.ZodString>;
|
|
284
|
+
segmentLabelYYYY: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
286
|
+
title: z.ZodString;
|
|
287
|
+
description: z.ZodOptional<z.ZodString>;
|
|
288
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
289
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
290
|
+
type: z.ZodLiteral<"signature">;
|
|
291
|
+
clearButtonLabel: z.ZodOptional<z.ZodString>;
|
|
292
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
293
|
+
modeTabLabelType: z.ZodOptional<z.ZodString>;
|
|
294
|
+
modeTabLabelDraw: z.ZodOptional<z.ZodString>;
|
|
295
|
+
modeTabLabelUpload: z.ZodOptional<z.ZodString>;
|
|
296
|
+
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
297
|
+
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
298
|
+
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
title: z.ZodString;
|
|
301
|
+
description: z.ZodOptional<z.ZodString>;
|
|
302
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
303
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
304
|
+
type: z.ZodLiteral<"scheduler">;
|
|
305
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
306
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
308
|
+
title: z.ZodString;
|
|
309
|
+
description: z.ZodOptional<z.ZodString>;
|
|
310
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
311
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
312
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
313
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
314
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
315
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
316
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
317
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
+
title: z.ZodString;
|
|
320
|
+
description: z.ZodOptional<z.ZodString>;
|
|
321
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
322
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
323
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
324
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
325
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
326
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
327
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
328
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
204
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
205
330
|
title: z.ZodString;
|
|
206
331
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -335,6 +460,66 @@ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodStri
|
|
|
335
460
|
modeTabLabelAudio: z.ZodOptional<z.ZodString>;
|
|
336
461
|
modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
|
|
337
462
|
modeTabLabelText: z.ZodOptional<z.ZodString>;
|
|
463
|
+
recordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
464
|
+
uploadMediaButtonLabel: z.ZodOptional<z.ZodString>;
|
|
465
|
+
videoIdleHint: z.ZodOptional<z.ZodString>;
|
|
466
|
+
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
467
|
+
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
468
|
+
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
470
|
+
title: z.ZodString;
|
|
471
|
+
description: z.ZodOptional<z.ZodString>;
|
|
472
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
473
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
474
|
+
type: z.ZodLiteral<"date">;
|
|
475
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
476
|
+
segmentLabelDD: z.ZodOptional<z.ZodString>;
|
|
477
|
+
segmentLabelMM: z.ZodOptional<z.ZodString>;
|
|
478
|
+
segmentLabelYYYY: z.ZodOptional<z.ZodString>;
|
|
479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
480
|
+
title: z.ZodString;
|
|
481
|
+
description: z.ZodOptional<z.ZodString>;
|
|
482
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
483
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
484
|
+
type: z.ZodLiteral<"signature">;
|
|
485
|
+
clearButtonLabel: z.ZodOptional<z.ZodString>;
|
|
486
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
487
|
+
modeTabLabelType: z.ZodOptional<z.ZodString>;
|
|
488
|
+
modeTabLabelDraw: z.ZodOptional<z.ZodString>;
|
|
489
|
+
modeTabLabelUpload: z.ZodOptional<z.ZodString>;
|
|
490
|
+
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
491
|
+
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
492
|
+
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
494
|
+
title: z.ZodString;
|
|
495
|
+
description: z.ZodOptional<z.ZodString>;
|
|
496
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
497
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
498
|
+
type: z.ZodLiteral<"scheduler">;
|
|
499
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
500
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
502
|
+
title: z.ZodString;
|
|
503
|
+
description: z.ZodOptional<z.ZodString>;
|
|
504
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
505
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
506
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
507
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
508
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
509
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
510
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
511
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
+
title: z.ZodString;
|
|
514
|
+
description: z.ZodOptional<z.ZodString>;
|
|
515
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
516
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
517
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
518
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
519
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
520
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
521
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
522
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
338
523
|
}, z.core.$strip>, z.ZodObject<{
|
|
339
524
|
title: z.ZodString;
|
|
340
525
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -458,6 +643,66 @@ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString,
|
|
|
458
643
|
modeTabLabelAudio: z.ZodOptional<z.ZodString>;
|
|
459
644
|
modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
|
|
460
645
|
modeTabLabelText: z.ZodOptional<z.ZodString>;
|
|
646
|
+
recordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
647
|
+
uploadMediaButtonLabel: z.ZodOptional<z.ZodString>;
|
|
648
|
+
videoIdleHint: z.ZodOptional<z.ZodString>;
|
|
649
|
+
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
650
|
+
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
651
|
+
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
653
|
+
title: z.ZodString;
|
|
654
|
+
description: z.ZodOptional<z.ZodString>;
|
|
655
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
656
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
657
|
+
type: z.ZodLiteral<"date">;
|
|
658
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
659
|
+
segmentLabelDD: z.ZodOptional<z.ZodString>;
|
|
660
|
+
segmentLabelMM: z.ZodOptional<z.ZodString>;
|
|
661
|
+
segmentLabelYYYY: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
663
|
+
title: z.ZodString;
|
|
664
|
+
description: z.ZodOptional<z.ZodString>;
|
|
665
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
666
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
667
|
+
type: z.ZodLiteral<"signature">;
|
|
668
|
+
clearButtonLabel: z.ZodOptional<z.ZodString>;
|
|
669
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
670
|
+
modeTabLabelType: z.ZodOptional<z.ZodString>;
|
|
671
|
+
modeTabLabelDraw: z.ZodOptional<z.ZodString>;
|
|
672
|
+
modeTabLabelUpload: z.ZodOptional<z.ZodString>;
|
|
673
|
+
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
674
|
+
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
675
|
+
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
677
|
+
title: z.ZodString;
|
|
678
|
+
description: z.ZodOptional<z.ZodString>;
|
|
679
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
680
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
681
|
+
type: z.ZodLiteral<"scheduler">;
|
|
682
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
683
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
685
|
+
title: z.ZodString;
|
|
686
|
+
description: z.ZodOptional<z.ZodString>;
|
|
687
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
688
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
689
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
690
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
691
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
692
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
693
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
694
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
696
|
+
title: z.ZodString;
|
|
697
|
+
description: z.ZodOptional<z.ZodString>;
|
|
698
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
699
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
700
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
701
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
702
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
703
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
704
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
705
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
461
706
|
}, z.core.$strip>, z.ZodObject<{
|
|
462
707
|
title: z.ZodString;
|
|
463
708
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -581,6 +826,66 @@ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
|
|
|
581
826
|
modeTabLabelAudio: z.ZodOptional<z.ZodString>;
|
|
582
827
|
modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
|
|
583
828
|
modeTabLabelText: z.ZodOptional<z.ZodString>;
|
|
829
|
+
recordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
830
|
+
uploadMediaButtonLabel: z.ZodOptional<z.ZodString>;
|
|
831
|
+
videoIdleHint: z.ZodOptional<z.ZodString>;
|
|
832
|
+
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
833
|
+
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
834
|
+
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
836
|
+
title: z.ZodString;
|
|
837
|
+
description: z.ZodOptional<z.ZodString>;
|
|
838
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
839
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
840
|
+
type: z.ZodLiteral<"date">;
|
|
841
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
842
|
+
segmentLabelDD: z.ZodOptional<z.ZodString>;
|
|
843
|
+
segmentLabelMM: z.ZodOptional<z.ZodString>;
|
|
844
|
+
segmentLabelYYYY: z.ZodOptional<z.ZodString>;
|
|
845
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
846
|
+
title: z.ZodString;
|
|
847
|
+
description: z.ZodOptional<z.ZodString>;
|
|
848
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
849
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
850
|
+
type: z.ZodLiteral<"signature">;
|
|
851
|
+
clearButtonLabel: z.ZodOptional<z.ZodString>;
|
|
852
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
853
|
+
modeTabLabelType: z.ZodOptional<z.ZodString>;
|
|
854
|
+
modeTabLabelDraw: z.ZodOptional<z.ZodString>;
|
|
855
|
+
modeTabLabelUpload: z.ZodOptional<z.ZodString>;
|
|
856
|
+
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
857
|
+
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
858
|
+
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
860
|
+
title: z.ZodString;
|
|
861
|
+
description: z.ZodOptional<z.ZodString>;
|
|
862
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
863
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
864
|
+
type: z.ZodLiteral<"scheduler">;
|
|
865
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
866
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
867
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
868
|
+
title: z.ZodString;
|
|
869
|
+
description: z.ZodOptional<z.ZodString>;
|
|
870
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
871
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
872
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
873
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
874
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
875
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
876
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
877
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
+
title: z.ZodString;
|
|
880
|
+
description: z.ZodOptional<z.ZodString>;
|
|
881
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
882
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
883
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
884
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
885
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
886
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
887
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
888
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
584
889
|
}, z.core.$strip>, z.ZodObject<{
|
|
585
890
|
title: z.ZodString;
|
|
586
891
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -657,6 +962,11 @@ export type NpsQuestionTranslation = z.infer<typeof npsQuestionTranslationSchema
|
|
|
657
962
|
export type ShortAnswerQuestionTranslation = z.infer<typeof shortAnswerQuestionTranslationSchema>;
|
|
658
963
|
export type LongAnswerQuestionTranslation = z.infer<typeof longAnswerQuestionTranslationSchema>;
|
|
659
964
|
export type VideoAudioQuestionTranslation = z.infer<typeof videoAudioQuestionTranslationSchema>;
|
|
965
|
+
export type DateQuestionTranslation = z.infer<typeof dateQuestionTranslationSchema>;
|
|
966
|
+
export type SignatureQuestionTranslation = z.infer<typeof signatureQuestionTranslationSchema>;
|
|
967
|
+
export type SchedulerQuestionTranslation = z.infer<typeof schedulerQuestionTranslationSchema>;
|
|
968
|
+
export type QnaWithAiQuestionTranslation = z.infer<typeof qnaWithAiQuestionTranslationSchema>;
|
|
969
|
+
export type PaymentsUpiQuestionTranslation = z.infer<typeof paymentsUpiQuestionTranslationSchema>;
|
|
660
970
|
export type NestedSelectionQuestionTranslation = z.infer<typeof nestedSelectionQuestionTranslationSchema>;
|
|
661
971
|
export type AnnotationQuestionTranslation = z.infer<typeof annotationQuestionTranslationSchema>;
|
|
662
972
|
export type WelcomeQuestionTranslation = z.infer<typeof welcomeQuestionTranslationSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@encatch/schema",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "TypeScript schema definitions using Zod for validation and type inference of encatch product",
|
|
5
5
|
"homepage": "https://encatch.com",
|
|
6
6
|
"type": "module",
|
|
@@ -28,20 +28,18 @@
|
|
|
28
28
|
"author": "",
|
|
29
29
|
"license": "AGPL-3.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@types/node": "^
|
|
32
|
-
"typescript": "^
|
|
33
|
-
"uuid": "^
|
|
31
|
+
"@types/node": "^25.7.0",
|
|
32
|
+
"typescript": "^6.0.3",
|
|
33
|
+
"uuid": "^14.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"zod": ">=3.0.0 <6.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"tsx": "^4.20.5",
|
|
44
|
-
"vitest": "^3.2.4"
|
|
39
|
+
"@vitest/ui": "^4.1.6",
|
|
40
|
+
"esbuild": "^0.28.0",
|
|
41
|
+
"tsx": "^4.21.0",
|
|
42
|
+
"vitest": "^4.1.6"
|
|
45
43
|
},
|
|
46
44
|
"scripts": {
|
|
47
45
|
"build": "pnpm run build:types && pnpm run build:bundle",
|
|
@@ -52,14 +50,6 @@
|
|
|
52
50
|
"clean": "rm -rf dist",
|
|
53
51
|
"generate-json-schemas": "tsx generate-json-schemas.ts",
|
|
54
52
|
"publish:clean": "node scripts/publish-clean.js --generate && cp package.json package.json.backup && mv package.clean.json package.json && npm publish && node scripts/publish-clean.js --restore && node scripts/publish-clean.js --cleanup",
|
|
55
|
-
"release": "release-it --ci",
|
|
56
|
-
"release:minor": "release-it minor --ci",
|
|
57
|
-
"release:major": "release-it major --ci",
|
|
58
|
-
"release:patch": "release-it patch --ci",
|
|
59
|
-
"release:pre": "release-it --preRelease=beta",
|
|
60
|
-
"release:beta": "release-it --preRelease=beta",
|
|
61
|
-
"release:alpha": "release-it --preRelease=alpha",
|
|
62
|
-
"release:rc": "release-it --preRelease=rc",
|
|
63
53
|
"test": "vitest",
|
|
64
54
|
"test:run": "vitest run",
|
|
65
55
|
"test:ui": "vitest --ui",
|