@encatch/schema 1.0.1-beta.0 → 1.0.1-beta.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.
@@ -74,6 +74,62 @@ export declare const annotationQuestionTranslationSchema: z.ZodObject<{
74
74
  annotationText: z.ZodOptional<z.ZodString>;
75
75
  noAnnotationText: z.ZodOptional<z.ZodString>;
76
76
  }, z.core.$strip>;
77
+ export declare const welcomeQuestionTranslationSchema: z.ZodObject<{
78
+ title: z.ZodString;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
81
+ errorMessage: z.ZodOptional<z.ZodString>;
82
+ type: z.ZodLiteral<"welcome">;
83
+ buttonLabel: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ export declare const thankYouQuestionTranslationSchema: z.ZodObject<{
86
+ title: z.ZodString;
87
+ description: z.ZodOptional<z.ZodString>;
88
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
89
+ errorMessage: z.ZodOptional<z.ZodString>;
90
+ type: z.ZodLiteral<"thank_you">;
91
+ buttonLabel: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strip>;
93
+ export declare const messagePanelQuestionTranslationSchema: z.ZodObject<{
94
+ title: z.ZodString;
95
+ description: z.ZodOptional<z.ZodString>;
96
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
97
+ errorMessage: z.ZodOptional<z.ZodString>;
98
+ type: z.ZodLiteral<"message_panel">;
99
+ buttonLabel: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>;
101
+ export declare const yesNoQuestionTranslationSchema: z.ZodObject<{
102
+ title: z.ZodString;
103
+ description: z.ZodOptional<z.ZodString>;
104
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
105
+ errorMessage: z.ZodOptional<z.ZodString>;
106
+ type: z.ZodLiteral<"yes_no">;
107
+ yesLabel: z.ZodOptional<z.ZodString>;
108
+ noLabel: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>;
110
+ export declare const ratingMatrixQuestionTranslationSchema: z.ZodObject<{
111
+ title: z.ZodString;
112
+ description: z.ZodOptional<z.ZodString>;
113
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
114
+ errorMessage: z.ZodOptional<z.ZodString>;
115
+ type: z.ZodLiteral<"rating_matrix">;
116
+ minLabel: z.ZodOptional<z.ZodString>;
117
+ maxLabel: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$catchall<z.ZodString>>;
119
+ export declare const matrixSingleChoiceQuestionTranslationSchema: z.ZodObject<{
120
+ title: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
123
+ errorMessage: z.ZodOptional<z.ZodString>;
124
+ type: z.ZodLiteral<"matrix_single_choice">;
125
+ }, z.core.$catchall<z.ZodString>>;
126
+ export declare const matrixMultipleChoiceQuestionTranslationSchema: z.ZodObject<{
127
+ title: z.ZodString;
128
+ description: z.ZodOptional<z.ZodString>;
129
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
130
+ errorMessage: z.ZodOptional<z.ZodString>;
131
+ type: z.ZodLiteral<"matrix_multiple_choice">;
132
+ }, z.core.$catchall<z.ZodString>>;
77
133
  export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject<{
78
134
  title: z.ZodString;
79
135
  description: z.ZodOptional<z.ZodString>;
@@ -133,7 +189,56 @@ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject
133
189
  type: z.ZodLiteral<"annotation">;
134
190
  annotationText: z.ZodOptional<z.ZodString>;
135
191
  noAnnotationText: z.ZodOptional<z.ZodString>;
136
- }, z.core.$strip>]>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ title: z.ZodString;
194
+ description: z.ZodOptional<z.ZodString>;
195
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
196
+ errorMessage: z.ZodOptional<z.ZodString>;
197
+ type: z.ZodLiteral<"welcome">;
198
+ buttonLabel: z.ZodOptional<z.ZodString>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ title: z.ZodString;
201
+ description: z.ZodOptional<z.ZodString>;
202
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
203
+ errorMessage: z.ZodOptional<z.ZodString>;
204
+ type: z.ZodLiteral<"thank_you">;
205
+ buttonLabel: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ title: z.ZodString;
208
+ description: z.ZodOptional<z.ZodString>;
209
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
210
+ errorMessage: z.ZodOptional<z.ZodString>;
211
+ type: z.ZodLiteral<"message_panel">;
212
+ buttonLabel: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ title: z.ZodString;
215
+ description: z.ZodOptional<z.ZodString>;
216
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
217
+ errorMessage: z.ZodOptional<z.ZodString>;
218
+ type: z.ZodLiteral<"yes_no">;
219
+ yesLabel: z.ZodOptional<z.ZodString>;
220
+ noLabel: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ title: z.ZodString;
223
+ description: z.ZodOptional<z.ZodString>;
224
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
225
+ errorMessage: z.ZodOptional<z.ZodString>;
226
+ type: z.ZodLiteral<"rating_matrix">;
227
+ minLabel: z.ZodOptional<z.ZodString>;
228
+ maxLabel: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
230
+ title: z.ZodString;
231
+ description: z.ZodOptional<z.ZodString>;
232
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
233
+ errorMessage: z.ZodOptional<z.ZodString>;
234
+ type: z.ZodLiteral<"matrix_single_choice">;
235
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
236
+ title: z.ZodString;
237
+ description: z.ZodOptional<z.ZodString>;
238
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
239
+ errorMessage: z.ZodOptional<z.ZodString>;
240
+ type: z.ZodLiteral<"matrix_multiple_choice">;
241
+ }, z.core.$catchall<z.ZodString>>]>;
137
242
  export declare const languageCodeSchema: z.ZodString;
138
243
  export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
139
244
  title: z.ZodString;
@@ -194,7 +299,56 @@ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodStri
194
299
  type: z.ZodLiteral<"annotation">;
195
300
  annotationText: z.ZodOptional<z.ZodString>;
196
301
  noAnnotationText: z.ZodOptional<z.ZodString>;
197
- }, z.core.$strip>]>>;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ title: z.ZodString;
304
+ description: z.ZodOptional<z.ZodString>;
305
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
306
+ errorMessage: z.ZodOptional<z.ZodString>;
307
+ type: z.ZodLiteral<"welcome">;
308
+ buttonLabel: z.ZodOptional<z.ZodString>;
309
+ }, z.core.$strip>, z.ZodObject<{
310
+ title: z.ZodString;
311
+ description: z.ZodOptional<z.ZodString>;
312
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
313
+ errorMessage: z.ZodOptional<z.ZodString>;
314
+ type: z.ZodLiteral<"thank_you">;
315
+ buttonLabel: z.ZodOptional<z.ZodString>;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ title: z.ZodString;
318
+ description: z.ZodOptional<z.ZodString>;
319
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
320
+ errorMessage: z.ZodOptional<z.ZodString>;
321
+ type: z.ZodLiteral<"message_panel">;
322
+ buttonLabel: z.ZodOptional<z.ZodString>;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ title: z.ZodString;
325
+ description: z.ZodOptional<z.ZodString>;
326
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
327
+ errorMessage: z.ZodOptional<z.ZodString>;
328
+ type: z.ZodLiteral<"yes_no">;
329
+ yesLabel: z.ZodOptional<z.ZodString>;
330
+ noLabel: z.ZodOptional<z.ZodString>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ title: z.ZodString;
333
+ description: z.ZodOptional<z.ZodString>;
334
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
335
+ errorMessage: z.ZodOptional<z.ZodString>;
336
+ type: z.ZodLiteral<"rating_matrix">;
337
+ minLabel: z.ZodOptional<z.ZodString>;
338
+ maxLabel: z.ZodOptional<z.ZodString>;
339
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
340
+ title: z.ZodString;
341
+ description: z.ZodOptional<z.ZodString>;
342
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
343
+ errorMessage: z.ZodOptional<z.ZodString>;
344
+ type: z.ZodLiteral<"matrix_single_choice">;
345
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
346
+ title: z.ZodString;
347
+ description: z.ZodOptional<z.ZodString>;
348
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
349
+ errorMessage: z.ZodOptional<z.ZodString>;
350
+ type: z.ZodLiteral<"matrix_multiple_choice">;
351
+ }, z.core.$catchall<z.ZodString>>]>>;
198
352
  export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
199
353
  title: z.ZodString;
200
354
  description: z.ZodOptional<z.ZodString>;
@@ -254,7 +408,56 @@ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString,
254
408
  type: z.ZodLiteral<"annotation">;
255
409
  annotationText: z.ZodOptional<z.ZodString>;
256
410
  noAnnotationText: z.ZodOptional<z.ZodString>;
257
- }, z.core.$strip>]>>>;
411
+ }, z.core.$strip>, z.ZodObject<{
412
+ title: z.ZodString;
413
+ description: z.ZodOptional<z.ZodString>;
414
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
415
+ errorMessage: z.ZodOptional<z.ZodString>;
416
+ type: z.ZodLiteral<"welcome">;
417
+ buttonLabel: z.ZodOptional<z.ZodString>;
418
+ }, z.core.$strip>, z.ZodObject<{
419
+ title: z.ZodString;
420
+ description: z.ZodOptional<z.ZodString>;
421
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
422
+ errorMessage: z.ZodOptional<z.ZodString>;
423
+ type: z.ZodLiteral<"thank_you">;
424
+ buttonLabel: z.ZodOptional<z.ZodString>;
425
+ }, z.core.$strip>, z.ZodObject<{
426
+ title: z.ZodString;
427
+ description: z.ZodOptional<z.ZodString>;
428
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
429
+ errorMessage: z.ZodOptional<z.ZodString>;
430
+ type: z.ZodLiteral<"message_panel">;
431
+ buttonLabel: z.ZodOptional<z.ZodString>;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ title: z.ZodString;
434
+ description: z.ZodOptional<z.ZodString>;
435
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
436
+ errorMessage: z.ZodOptional<z.ZodString>;
437
+ type: z.ZodLiteral<"yes_no">;
438
+ yesLabel: z.ZodOptional<z.ZodString>;
439
+ noLabel: z.ZodOptional<z.ZodString>;
440
+ }, z.core.$strip>, z.ZodObject<{
441
+ title: z.ZodString;
442
+ description: z.ZodOptional<z.ZodString>;
443
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
444
+ errorMessage: z.ZodOptional<z.ZodString>;
445
+ type: z.ZodLiteral<"rating_matrix">;
446
+ minLabel: z.ZodOptional<z.ZodString>;
447
+ maxLabel: z.ZodOptional<z.ZodString>;
448
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
449
+ title: z.ZodString;
450
+ description: z.ZodOptional<z.ZodString>;
451
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
452
+ errorMessage: z.ZodOptional<z.ZodString>;
453
+ type: z.ZodLiteral<"matrix_single_choice">;
454
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
455
+ title: z.ZodString;
456
+ description: z.ZodOptional<z.ZodString>;
457
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
458
+ errorMessage: z.ZodOptional<z.ZodString>;
459
+ type: z.ZodLiteral<"matrix_multiple_choice">;
460
+ }, z.core.$catchall<z.ZodString>>]>>>;
258
461
  export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
259
462
  title: z.ZodString;
260
463
  description: z.ZodOptional<z.ZodString>;
@@ -314,7 +517,56 @@ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
314
517
  type: z.ZodLiteral<"annotation">;
315
518
  annotationText: z.ZodOptional<z.ZodString>;
316
519
  noAnnotationText: z.ZodOptional<z.ZodString>;
317
- }, z.core.$strip>]>>>;
520
+ }, z.core.$strip>, z.ZodObject<{
521
+ title: z.ZodString;
522
+ description: z.ZodOptional<z.ZodString>;
523
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
524
+ errorMessage: z.ZodOptional<z.ZodString>;
525
+ type: z.ZodLiteral<"welcome">;
526
+ buttonLabel: z.ZodOptional<z.ZodString>;
527
+ }, z.core.$strip>, z.ZodObject<{
528
+ title: z.ZodString;
529
+ description: z.ZodOptional<z.ZodString>;
530
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
531
+ errorMessage: z.ZodOptional<z.ZodString>;
532
+ type: z.ZodLiteral<"thank_you">;
533
+ buttonLabel: z.ZodOptional<z.ZodString>;
534
+ }, z.core.$strip>, z.ZodObject<{
535
+ title: z.ZodString;
536
+ description: z.ZodOptional<z.ZodString>;
537
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
538
+ errorMessage: z.ZodOptional<z.ZodString>;
539
+ type: z.ZodLiteral<"message_panel">;
540
+ buttonLabel: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$strip>, z.ZodObject<{
542
+ title: z.ZodString;
543
+ description: z.ZodOptional<z.ZodString>;
544
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
545
+ errorMessage: z.ZodOptional<z.ZodString>;
546
+ type: z.ZodLiteral<"yes_no">;
547
+ yesLabel: z.ZodOptional<z.ZodString>;
548
+ noLabel: z.ZodOptional<z.ZodString>;
549
+ }, z.core.$strip>, z.ZodObject<{
550
+ title: z.ZodString;
551
+ description: z.ZodOptional<z.ZodString>;
552
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
553
+ errorMessage: z.ZodOptional<z.ZodString>;
554
+ type: z.ZodLiteral<"rating_matrix">;
555
+ minLabel: z.ZodOptional<z.ZodString>;
556
+ maxLabel: z.ZodOptional<z.ZodString>;
557
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
558
+ title: z.ZodString;
559
+ description: z.ZodOptional<z.ZodString>;
560
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
561
+ errorMessage: z.ZodOptional<z.ZodString>;
562
+ type: z.ZodLiteral<"matrix_single_choice">;
563
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
564
+ title: z.ZodString;
565
+ description: z.ZodOptional<z.ZodString>;
566
+ descriptionMarkdown: z.ZodOptional<z.ZodString>;
567
+ errorMessage: z.ZodOptional<z.ZodString>;
568
+ type: z.ZodLiteral<"matrix_multiple_choice">;
569
+ }, z.core.$catchall<z.ZodString>>]>>>;
318
570
  export type TranslationEntry = z.infer<typeof translationEntrySchema>;
319
571
  export type RatingQuestionTranslation = z.infer<typeof ratingQuestionTranslationSchema>;
320
572
  export type SingleChoiceQuestionTranslation = z.infer<typeof singleChoiceQuestionTranslationSchema>;
@@ -324,6 +576,13 @@ export type ShortAnswerQuestionTranslation = z.infer<typeof shortAnswerQuestionT
324
576
  export type LongAnswerQuestionTranslation = z.infer<typeof longAnswerQuestionTranslationSchema>;
325
577
  export type NestedSelectionQuestionTranslation = z.infer<typeof nestedSelectionQuestionTranslationSchema>;
326
578
  export type AnnotationQuestionTranslation = z.infer<typeof annotationQuestionTranslationSchema>;
579
+ export type WelcomeQuestionTranslation = z.infer<typeof welcomeQuestionTranslationSchema>;
580
+ export type ThankYouQuestionTranslation = z.infer<typeof thankYouQuestionTranslationSchema>;
581
+ export type MessagePanelQuestionTranslation = z.infer<typeof messagePanelQuestionTranslationSchema>;
582
+ export type YesNoQuestionTranslation = z.infer<typeof yesNoQuestionTranslationSchema>;
583
+ export type RatingMatrixQuestionTranslation = z.infer<typeof ratingMatrixQuestionTranslationSchema>;
584
+ export type MatrixSingleChoiceQuestionTranslation = z.infer<typeof matrixSingleChoiceQuestionTranslationSchema>;
585
+ export type MatrixMultipleChoiceQuestionTranslation = z.infer<typeof matrixMultipleChoiceQuestionTranslationSchema>;
327
586
  export type QuestionTranslation = z.infer<typeof questionTranslationSchema>;
328
587
  export type LanguageCode = z.infer<typeof languageCodeSchema>;
329
588
  export type QuestionTranslationsByLanguage = z.infer<typeof questionTranslationsByLanguageSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/schema",
3
- "version": "1.0.1-beta.0",
3
+ "version": "1.0.1-beta.1",
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",