@encatch/schema 0.1.18 → 0.1.20

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.
@@ -1,887 +1,326 @@
1
1
  import { z } from "zod";
2
- export declare const translationEntrySchema: z.ZodObject<{
3
- text: z.ZodString;
4
- context: z.ZodOptional<z.ZodString>;
5
- }, z.core.$strip>;
6
- export declare const ratingTranslationsSchema: z.ZodObject<{
7
- title: z.ZodObject<{
8
- text: z.ZodString;
9
- context: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>;
11
- description: z.ZodOptional<z.ZodObject<{
12
- text: z.ZodString;
13
- context: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>>;
15
- errorMessage: z.ZodOptional<z.ZodObject<{
16
- text: z.ZodString;
17
- context: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>>;
19
- minLabel: z.ZodOptional<z.ZodObject<{
20
- text: z.ZodString;
21
- context: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>>;
23
- maxLabel: z.ZodOptional<z.ZodObject<{
24
- text: z.ZodString;
25
- context: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>>;
27
- }, z.core.$strip>;
28
- export declare const singleChoiceTranslationsSchema: z.ZodObject<{
29
- title: z.ZodObject<{
30
- text: z.ZodString;
31
- context: z.ZodOptional<z.ZodString>;
32
- }, z.core.$strip>;
33
- description: z.ZodOptional<z.ZodObject<{
34
- text: z.ZodString;
35
- context: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strip>>;
37
- errorMessage: z.ZodOptional<z.ZodObject<{
38
- text: z.ZodString;
39
- context: z.ZodOptional<z.ZodString>;
40
- }, z.core.$strip>>;
41
- placeholder: z.ZodOptional<z.ZodObject<{
42
- text: z.ZodString;
43
- context: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>>;
45
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
46
- label: z.ZodObject<{
47
- text: z.ZodString;
48
- context: z.ZodOptional<z.ZodString>;
49
- }, z.core.$strip>;
50
- hint: z.ZodOptional<z.ZodObject<{
51
- text: z.ZodString;
52
- context: z.ZodOptional<z.ZodString>;
53
- }, z.core.$strip>>;
54
- }, z.core.$strip>>;
55
- }, z.core.$strip>;
56
- export declare const multipleChoiceTranslationsSchema: z.ZodObject<{
57
- title: z.ZodObject<{
58
- text: z.ZodString;
59
- context: z.ZodOptional<z.ZodString>;
60
- }, z.core.$strip>;
61
- description: z.ZodOptional<z.ZodObject<{
62
- text: z.ZodString;
63
- context: z.ZodOptional<z.ZodString>;
64
- }, z.core.$strip>>;
65
- errorMessage: z.ZodOptional<z.ZodObject<{
66
- text: z.ZodString;
67
- context: z.ZodOptional<z.ZodString>;
68
- }, z.core.$strip>>;
69
- placeholder: z.ZodOptional<z.ZodObject<{
70
- text: z.ZodString;
71
- context: z.ZodOptional<z.ZodString>;
72
- }, z.core.$strip>>;
73
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
74
- label: z.ZodObject<{
75
- text: z.ZodString;
76
- context: z.ZodOptional<z.ZodString>;
77
- }, z.core.$strip>;
78
- hint: z.ZodOptional<z.ZodObject<{
79
- text: z.ZodString;
80
- context: z.ZodOptional<z.ZodString>;
81
- }, z.core.$strip>>;
82
- }, z.core.$strip>>;
83
- }, z.core.$strip>;
84
- export declare const npsTranslationsSchema: z.ZodObject<{
85
- title: z.ZodObject<{
86
- text: z.ZodString;
87
- context: z.ZodOptional<z.ZodString>;
88
- }, z.core.$strip>;
89
- description: z.ZodOptional<z.ZodObject<{
90
- text: z.ZodString;
91
- context: z.ZodOptional<z.ZodString>;
92
- }, z.core.$strip>>;
93
- errorMessage: z.ZodOptional<z.ZodObject<{
94
- text: z.ZodString;
95
- context: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strip>>;
97
- minLabel: z.ZodOptional<z.ZodObject<{
98
- text: z.ZodString;
99
- context: z.ZodOptional<z.ZodString>;
100
- }, z.core.$strip>>;
101
- maxLabel: z.ZodOptional<z.ZodObject<{
102
- text: z.ZodString;
103
- context: z.ZodOptional<z.ZodString>;
104
- }, z.core.$strip>>;
105
- scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{
106
- text: z.ZodString;
107
- context: z.ZodOptional<z.ZodString>;
108
- }, z.core.$strip>>>;
109
- }, z.core.$strip>;
110
- export declare const shortAnswerTranslationsSchema: z.ZodObject<{
111
- title: z.ZodObject<{
112
- text: z.ZodString;
113
- context: z.ZodOptional<z.ZodString>;
114
- }, z.core.$strip>;
115
- description: z.ZodOptional<z.ZodObject<{
116
- text: z.ZodString;
117
- context: z.ZodOptional<z.ZodString>;
118
- }, z.core.$strip>>;
119
- errorMessage: z.ZodOptional<z.ZodObject<{
120
- text: z.ZodString;
121
- context: z.ZodOptional<z.ZodString>;
122
- }, z.core.$strip>>;
123
- placeholder: z.ZodOptional<z.ZodObject<{
124
- text: z.ZodString;
125
- context: z.ZodOptional<z.ZodString>;
126
- }, z.core.$strip>>;
2
+ export declare const translationEntrySchema: z.ZodString;
3
+ export declare const ratingQuestionTranslationSchema: z.ZodObject<{
4
+ type: z.ZodLiteral<"rating">;
5
+ title: z.ZodString;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ errorMessage: z.ZodOptional<z.ZodString>;
8
+ minLabel: z.ZodOptional<z.ZodString>;
9
+ maxLabel: z.ZodOptional<z.ZodString>;
127
10
  }, z.core.$strip>;
128
- export declare const longAnswerTranslationsSchema: z.ZodObject<{
129
- title: z.ZodObject<{
130
- text: z.ZodString;
131
- context: z.ZodOptional<z.ZodString>;
132
- }, z.core.$strip>;
133
- description: z.ZodOptional<z.ZodObject<{
134
- text: z.ZodString;
135
- context: z.ZodOptional<z.ZodString>;
136
- }, z.core.$strip>>;
137
- errorMessage: z.ZodOptional<z.ZodObject<{
138
- text: z.ZodString;
139
- context: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strip>>;
141
- placeholder: z.ZodOptional<z.ZodObject<{
142
- text: z.ZodString;
143
- context: z.ZodOptional<z.ZodString>;
144
- }, z.core.$strip>>;
11
+ export declare const singleChoiceQuestionTranslationSchema: z.ZodObject<{
12
+ type: z.ZodLiteral<"single_choice">;
13
+ title: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ errorMessage: z.ZodOptional<z.ZodString>;
16
+ placeholder: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$catchall<z.ZodString>>;
18
+ export declare const multipleChoiceQuestionTranslationSchema: z.ZodObject<{
19
+ type: z.ZodLiteral<"multiple_choice_multiple">;
20
+ title: z.ZodString;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ errorMessage: z.ZodOptional<z.ZodString>;
23
+ placeholder: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$catchall<z.ZodString>>;
25
+ export declare const npsQuestionTranslationSchema: z.ZodObject<{
26
+ type: z.ZodLiteral<"nps">;
27
+ title: z.ZodString;
28
+ description: z.ZodOptional<z.ZodString>;
29
+ errorMessage: z.ZodOptional<z.ZodString>;
30
+ minLabel: z.ZodOptional<z.ZodString>;
31
+ maxLabel: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$catchall<z.ZodString>>;
33
+ export declare const shortAnswerQuestionTranslationSchema: z.ZodObject<{
34
+ type: z.ZodLiteral<"short_answer">;
35
+ title: z.ZodString;
36
+ description: z.ZodOptional<z.ZodString>;
37
+ errorMessage: z.ZodOptional<z.ZodString>;
38
+ placeholder: z.ZodOptional<z.ZodString>;
145
39
  }, z.core.$strip>;
146
- export declare const nestedSelectionTranslationsSchema: z.ZodObject<{
147
- title: z.ZodObject<{
148
- text: z.ZodString;
149
- context: z.ZodOptional<z.ZodString>;
150
- }, z.core.$strip>;
151
- description: z.ZodOptional<z.ZodObject<{
152
- text: z.ZodString;
153
- context: z.ZodOptional<z.ZodString>;
154
- }, z.core.$strip>>;
155
- errorMessage: z.ZodOptional<z.ZodObject<{
156
- text: z.ZodString;
157
- context: z.ZodOptional<z.ZodString>;
158
- }, z.core.$strip>>;
159
- placeholder: z.ZodOptional<z.ZodObject<{
160
- text: z.ZodString;
161
- context: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strip>>;
163
- nestedOptions: z.ZodRecord<z.ZodString, z.ZodObject<{
164
- label: z.ZodObject<{
165
- text: z.ZodString;
166
- context: z.ZodOptional<z.ZodString>;
167
- }, z.core.$strip>;
168
- hint: z.ZodOptional<z.ZodObject<{
169
- text: z.ZodString;
170
- context: z.ZodOptional<z.ZodString>;
171
- }, z.core.$strip>>;
172
- }, z.core.$strip>>;
40
+ export declare const longAnswerQuestionTranslationSchema: z.ZodObject<{
41
+ type: z.ZodLiteral<"long_text">;
42
+ title: z.ZodString;
43
+ description: z.ZodOptional<z.ZodString>;
44
+ errorMessage: z.ZodOptional<z.ZodString>;
45
+ placeholder: z.ZodOptional<z.ZodString>;
173
46
  }, z.core.$strip>;
174
- export declare const annotationTranslationsSchema: z.ZodObject<{
175
- title: z.ZodObject<{
176
- text: z.ZodString;
177
- context: z.ZodOptional<z.ZodString>;
178
- }, z.core.$strip>;
179
- description: z.ZodOptional<z.ZodObject<{
180
- text: z.ZodString;
181
- context: z.ZodOptional<z.ZodString>;
182
- }, z.core.$strip>>;
183
- errorMessage: z.ZodOptional<z.ZodObject<{
184
- text: z.ZodString;
185
- context: z.ZodOptional<z.ZodString>;
186
- }, z.core.$strip>>;
187
- annotationText: z.ZodOptional<z.ZodObject<{
188
- text: z.ZodString;
189
- context: z.ZodOptional<z.ZodString>;
190
- }, z.core.$strip>>;
191
- noAnnotationText: z.ZodOptional<z.ZodObject<{
192
- text: z.ZodString;
193
- context: z.ZodOptional<z.ZodString>;
194
- }, z.core.$strip>>;
47
+ export declare const nestedSelectionQuestionTranslationSchema: z.ZodObject<{
48
+ type: z.ZodLiteral<"nested_selection">;
49
+ title: z.ZodString;
50
+ description: z.ZodOptional<z.ZodString>;
51
+ errorMessage: z.ZodOptional<z.ZodString>;
52
+ placeholder: z.ZodOptional<z.ZodString>;
53
+ }, z.core.$catchall<z.ZodString>>;
54
+ export declare const annotationQuestionTranslationSchema: z.ZodObject<{
55
+ type: z.ZodLiteral<"annotation">;
56
+ title: z.ZodString;
57
+ description: z.ZodOptional<z.ZodString>;
58
+ errorMessage: z.ZodOptional<z.ZodString>;
59
+ annotationText: z.ZodOptional<z.ZodString>;
60
+ noAnnotationText: z.ZodOptional<z.ZodString>;
195
61
  }, z.core.$strip>;
196
- export declare const questionTranslationsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject<{
197
63
  type: z.ZodLiteral<"rating">;
198
- translations: z.ZodObject<{
199
- title: z.ZodObject<{
200
- text: z.ZodString;
201
- context: z.ZodOptional<z.ZodString>;
202
- }, z.core.$strip>;
203
- description: z.ZodOptional<z.ZodObject<{
204
- text: z.ZodString;
205
- context: z.ZodOptional<z.ZodString>;
206
- }, z.core.$strip>>;
207
- errorMessage: z.ZodOptional<z.ZodObject<{
208
- text: z.ZodString;
209
- context: z.ZodOptional<z.ZodString>;
210
- }, z.core.$strip>>;
211
- minLabel: z.ZodOptional<z.ZodObject<{
212
- text: z.ZodString;
213
- context: z.ZodOptional<z.ZodString>;
214
- }, z.core.$strip>>;
215
- maxLabel: z.ZodOptional<z.ZodObject<{
216
- text: z.ZodString;
217
- context: z.ZodOptional<z.ZodString>;
218
- }, z.core.$strip>>;
219
- }, z.core.$strip>;
64
+ title: z.ZodString;
65
+ description: z.ZodOptional<z.ZodString>;
66
+ errorMessage: z.ZodOptional<z.ZodString>;
67
+ minLabel: z.ZodOptional<z.ZodString>;
68
+ maxLabel: z.ZodOptional<z.ZodString>;
220
69
  }, z.core.$strip>, z.ZodObject<{
221
70
  type: z.ZodLiteral<"single_choice">;
222
- translations: z.ZodObject<{
223
- title: z.ZodObject<{
224
- text: z.ZodString;
225
- context: z.ZodOptional<z.ZodString>;
226
- }, z.core.$strip>;
227
- description: z.ZodOptional<z.ZodObject<{
228
- text: z.ZodString;
229
- context: z.ZodOptional<z.ZodString>;
230
- }, z.core.$strip>>;
231
- errorMessage: z.ZodOptional<z.ZodObject<{
232
- text: z.ZodString;
233
- context: z.ZodOptional<z.ZodString>;
234
- }, z.core.$strip>>;
235
- placeholder: z.ZodOptional<z.ZodObject<{
236
- text: z.ZodString;
237
- context: z.ZodOptional<z.ZodString>;
238
- }, z.core.$strip>>;
239
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
240
- label: z.ZodObject<{
241
- text: z.ZodString;
242
- context: z.ZodOptional<z.ZodString>;
243
- }, z.core.$strip>;
244
- hint: z.ZodOptional<z.ZodObject<{
245
- text: z.ZodString;
246
- context: z.ZodOptional<z.ZodString>;
247
- }, z.core.$strip>>;
248
- }, z.core.$strip>>;
249
- }, z.core.$strip>;
250
- }, z.core.$strip>, z.ZodObject<{
71
+ title: z.ZodString;
72
+ description: z.ZodOptional<z.ZodString>;
73
+ errorMessage: z.ZodOptional<z.ZodString>;
74
+ placeholder: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
251
76
  type: z.ZodLiteral<"multiple_choice_multiple">;
252
- translations: z.ZodObject<{
253
- title: z.ZodObject<{
254
- text: z.ZodString;
255
- context: z.ZodOptional<z.ZodString>;
256
- }, z.core.$strip>;
257
- description: z.ZodOptional<z.ZodObject<{
258
- text: z.ZodString;
259
- context: z.ZodOptional<z.ZodString>;
260
- }, z.core.$strip>>;
261
- errorMessage: z.ZodOptional<z.ZodObject<{
262
- text: z.ZodString;
263
- context: z.ZodOptional<z.ZodString>;
264
- }, z.core.$strip>>;
265
- placeholder: z.ZodOptional<z.ZodObject<{
266
- text: z.ZodString;
267
- context: z.ZodOptional<z.ZodString>;
268
- }, z.core.$strip>>;
269
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
270
- label: z.ZodObject<{
271
- text: z.ZodString;
272
- context: z.ZodOptional<z.ZodString>;
273
- }, z.core.$strip>;
274
- hint: z.ZodOptional<z.ZodObject<{
275
- text: z.ZodString;
276
- context: z.ZodOptional<z.ZodString>;
277
- }, z.core.$strip>>;
278
- }, z.core.$strip>>;
279
- }, z.core.$strip>;
77
+ title: z.ZodString;
78
+ description: z.ZodOptional<z.ZodString>;
79
+ errorMessage: z.ZodOptional<z.ZodString>;
80
+ placeholder: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
82
+ type: z.ZodLiteral<"nps">;
83
+ title: z.ZodString;
84
+ description: z.ZodOptional<z.ZodString>;
85
+ errorMessage: z.ZodOptional<z.ZodString>;
86
+ minLabel: z.ZodOptional<z.ZodString>;
87
+ maxLabel: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
89
+ type: z.ZodLiteral<"short_answer">;
90
+ title: z.ZodString;
91
+ description: z.ZodOptional<z.ZodString>;
92
+ errorMessage: z.ZodOptional<z.ZodString>;
93
+ placeholder: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<"long_text">;
96
+ title: z.ZodString;
97
+ description: z.ZodOptional<z.ZodString>;
98
+ errorMessage: z.ZodOptional<z.ZodString>;
99
+ placeholder: z.ZodOptional<z.ZodString>;
280
100
  }, z.core.$strip>, z.ZodObject<{
101
+ type: z.ZodLiteral<"nested_selection">;
102
+ title: z.ZodString;
103
+ description: z.ZodOptional<z.ZodString>;
104
+ errorMessage: z.ZodOptional<z.ZodString>;
105
+ placeholder: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
107
+ type: z.ZodLiteral<"annotation">;
108
+ title: z.ZodString;
109
+ description: z.ZodOptional<z.ZodString>;
110
+ errorMessage: z.ZodOptional<z.ZodString>;
111
+ annotationText: z.ZodOptional<z.ZodString>;
112
+ noAnnotationText: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>]>;
114
+ export declare const languageCodeSchema: z.ZodString;
115
+ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
116
+ type: z.ZodLiteral<"rating">;
117
+ title: z.ZodString;
118
+ description: z.ZodOptional<z.ZodString>;
119
+ errorMessage: z.ZodOptional<z.ZodString>;
120
+ minLabel: z.ZodOptional<z.ZodString>;
121
+ maxLabel: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ type: z.ZodLiteral<"single_choice">;
124
+ title: z.ZodString;
125
+ description: z.ZodOptional<z.ZodString>;
126
+ errorMessage: z.ZodOptional<z.ZodString>;
127
+ placeholder: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
129
+ type: z.ZodLiteral<"multiple_choice_multiple">;
130
+ title: z.ZodString;
131
+ description: z.ZodOptional<z.ZodString>;
132
+ errorMessage: z.ZodOptional<z.ZodString>;
133
+ placeholder: z.ZodOptional<z.ZodString>;
134
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
281
135
  type: z.ZodLiteral<"nps">;
282
- translations: z.ZodObject<{
283
- title: z.ZodObject<{
284
- text: z.ZodString;
285
- context: z.ZodOptional<z.ZodString>;
286
- }, z.core.$strip>;
287
- description: z.ZodOptional<z.ZodObject<{
288
- text: z.ZodString;
289
- context: z.ZodOptional<z.ZodString>;
290
- }, z.core.$strip>>;
291
- errorMessage: z.ZodOptional<z.ZodObject<{
292
- text: z.ZodString;
293
- context: z.ZodOptional<z.ZodString>;
294
- }, z.core.$strip>>;
295
- minLabel: z.ZodOptional<z.ZodObject<{
296
- text: z.ZodString;
297
- context: z.ZodOptional<z.ZodString>;
298
- }, z.core.$strip>>;
299
- maxLabel: z.ZodOptional<z.ZodObject<{
300
- text: z.ZodString;
301
- context: z.ZodOptional<z.ZodString>;
302
- }, z.core.$strip>>;
303
- scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{
304
- text: z.ZodString;
305
- context: z.ZodOptional<z.ZodString>;
306
- }, z.core.$strip>>>;
307
- }, z.core.$strip>;
136
+ title: z.ZodString;
137
+ description: z.ZodOptional<z.ZodString>;
138
+ errorMessage: z.ZodOptional<z.ZodString>;
139
+ minLabel: z.ZodOptional<z.ZodString>;
140
+ maxLabel: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
142
+ type: z.ZodLiteral<"short_answer">;
143
+ title: z.ZodString;
144
+ description: z.ZodOptional<z.ZodString>;
145
+ errorMessage: z.ZodOptional<z.ZodString>;
146
+ placeholder: z.ZodOptional<z.ZodString>;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ type: z.ZodLiteral<"long_text">;
149
+ title: z.ZodString;
150
+ description: z.ZodOptional<z.ZodString>;
151
+ errorMessage: z.ZodOptional<z.ZodString>;
152
+ placeholder: z.ZodOptional<z.ZodString>;
308
153
  }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"nested_selection">;
155
+ title: z.ZodString;
156
+ description: z.ZodOptional<z.ZodString>;
157
+ errorMessage: z.ZodOptional<z.ZodString>;
158
+ placeholder: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
160
+ type: z.ZodLiteral<"annotation">;
161
+ title: z.ZodString;
162
+ description: z.ZodOptional<z.ZodString>;
163
+ errorMessage: z.ZodOptional<z.ZodString>;
164
+ annotationText: z.ZodOptional<z.ZodString>;
165
+ noAnnotationText: z.ZodOptional<z.ZodString>;
166
+ }, z.core.$strip>]>>;
167
+ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
168
+ type: z.ZodLiteral<"rating">;
169
+ title: z.ZodString;
170
+ description: z.ZodOptional<z.ZodString>;
171
+ errorMessage: z.ZodOptional<z.ZodString>;
172
+ minLabel: z.ZodOptional<z.ZodString>;
173
+ maxLabel: z.ZodOptional<z.ZodString>;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ type: z.ZodLiteral<"single_choice">;
176
+ title: z.ZodString;
177
+ description: z.ZodOptional<z.ZodString>;
178
+ errorMessage: z.ZodOptional<z.ZodString>;
179
+ placeholder: z.ZodOptional<z.ZodString>;
180
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
181
+ type: z.ZodLiteral<"multiple_choice_multiple">;
182
+ title: z.ZodString;
183
+ description: z.ZodOptional<z.ZodString>;
184
+ errorMessage: z.ZodOptional<z.ZodString>;
185
+ placeholder: z.ZodOptional<z.ZodString>;
186
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
187
+ type: z.ZodLiteral<"nps">;
188
+ title: z.ZodString;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ errorMessage: z.ZodOptional<z.ZodString>;
191
+ minLabel: z.ZodOptional<z.ZodString>;
192
+ maxLabel: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
309
194
  type: z.ZodLiteral<"short_answer">;
310
- translations: z.ZodObject<{
311
- title: z.ZodObject<{
312
- text: z.ZodString;
313
- context: z.ZodOptional<z.ZodString>;
314
- }, z.core.$strip>;
315
- description: z.ZodOptional<z.ZodObject<{
316
- text: z.ZodString;
317
- context: z.ZodOptional<z.ZodString>;
318
- }, z.core.$strip>>;
319
- errorMessage: z.ZodOptional<z.ZodObject<{
320
- text: z.ZodString;
321
- context: z.ZodOptional<z.ZodString>;
322
- }, z.core.$strip>>;
323
- placeholder: z.ZodOptional<z.ZodObject<{
324
- text: z.ZodString;
325
- context: z.ZodOptional<z.ZodString>;
326
- }, z.core.$strip>>;
327
- }, z.core.$strip>;
195
+ title: z.ZodString;
196
+ description: z.ZodOptional<z.ZodString>;
197
+ errorMessage: z.ZodOptional<z.ZodString>;
198
+ placeholder: z.ZodOptional<z.ZodString>;
328
199
  }, z.core.$strip>, z.ZodObject<{
329
200
  type: z.ZodLiteral<"long_text">;
330
- translations: z.ZodObject<{
331
- title: z.ZodObject<{
332
- text: z.ZodString;
333
- context: z.ZodOptional<z.ZodString>;
334
- }, z.core.$strip>;
335
- description: z.ZodOptional<z.ZodObject<{
336
- text: z.ZodString;
337
- context: z.ZodOptional<z.ZodString>;
338
- }, z.core.$strip>>;
339
- errorMessage: z.ZodOptional<z.ZodObject<{
340
- text: z.ZodString;
341
- context: z.ZodOptional<z.ZodString>;
342
- }, z.core.$strip>>;
343
- placeholder: z.ZodOptional<z.ZodObject<{
344
- text: z.ZodString;
345
- context: z.ZodOptional<z.ZodString>;
346
- }, z.core.$strip>>;
347
- }, z.core.$strip>;
201
+ title: z.ZodString;
202
+ description: z.ZodOptional<z.ZodString>;
203
+ errorMessage: z.ZodOptional<z.ZodString>;
204
+ placeholder: z.ZodOptional<z.ZodString>;
348
205
  }, z.core.$strip>, z.ZodObject<{
349
206
  type: z.ZodLiteral<"nested_selection">;
350
- translations: z.ZodObject<{
351
- title: z.ZodObject<{
352
- text: z.ZodString;
353
- context: z.ZodOptional<z.ZodString>;
354
- }, z.core.$strip>;
355
- description: z.ZodOptional<z.ZodObject<{
356
- text: z.ZodString;
357
- context: z.ZodOptional<z.ZodString>;
358
- }, z.core.$strip>>;
359
- errorMessage: z.ZodOptional<z.ZodObject<{
360
- text: z.ZodString;
361
- context: z.ZodOptional<z.ZodString>;
362
- }, z.core.$strip>>;
363
- placeholder: z.ZodOptional<z.ZodObject<{
364
- text: z.ZodString;
365
- context: z.ZodOptional<z.ZodString>;
366
- }, z.core.$strip>>;
367
- nestedOptions: z.ZodRecord<z.ZodString, z.ZodObject<{
368
- label: z.ZodObject<{
369
- text: z.ZodString;
370
- context: z.ZodOptional<z.ZodString>;
371
- }, z.core.$strip>;
372
- hint: z.ZodOptional<z.ZodObject<{
373
- text: z.ZodString;
374
- context: z.ZodOptional<z.ZodString>;
375
- }, z.core.$strip>>;
376
- }, z.core.$strip>>;
377
- }, z.core.$strip>;
207
+ title: z.ZodString;
208
+ description: z.ZodOptional<z.ZodString>;
209
+ errorMessage: z.ZodOptional<z.ZodString>;
210
+ placeholder: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
212
+ type: z.ZodLiteral<"annotation">;
213
+ title: z.ZodString;
214
+ description: z.ZodOptional<z.ZodString>;
215
+ errorMessage: z.ZodOptional<z.ZodString>;
216
+ annotationText: z.ZodOptional<z.ZodString>;
217
+ noAnnotationText: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>]>>>;
219
+ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
220
+ type: z.ZodLiteral<"rating">;
221
+ title: z.ZodString;
222
+ description: z.ZodOptional<z.ZodString>;
223
+ errorMessage: z.ZodOptional<z.ZodString>;
224
+ minLabel: z.ZodOptional<z.ZodString>;
225
+ maxLabel: z.ZodOptional<z.ZodString>;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ type: z.ZodLiteral<"single_choice">;
228
+ title: z.ZodString;
229
+ description: z.ZodOptional<z.ZodString>;
230
+ errorMessage: z.ZodOptional<z.ZodString>;
231
+ placeholder: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
233
+ type: z.ZodLiteral<"multiple_choice_multiple">;
234
+ title: z.ZodString;
235
+ description: z.ZodOptional<z.ZodString>;
236
+ errorMessage: z.ZodOptional<z.ZodString>;
237
+ placeholder: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
239
+ type: z.ZodLiteral<"nps">;
240
+ title: z.ZodString;
241
+ description: z.ZodOptional<z.ZodString>;
242
+ errorMessage: z.ZodOptional<z.ZodString>;
243
+ minLabel: z.ZodOptional<z.ZodString>;
244
+ maxLabel: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
246
+ type: z.ZodLiteral<"short_answer">;
247
+ title: z.ZodString;
248
+ description: z.ZodOptional<z.ZodString>;
249
+ errorMessage: z.ZodOptional<z.ZodString>;
250
+ placeholder: z.ZodOptional<z.ZodString>;
378
251
  }, z.core.$strip>, z.ZodObject<{
252
+ type: z.ZodLiteral<"long_text">;
253
+ title: z.ZodString;
254
+ description: z.ZodOptional<z.ZodString>;
255
+ errorMessage: z.ZodOptional<z.ZodString>;
256
+ placeholder: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ type: z.ZodLiteral<"nested_selection">;
259
+ title: z.ZodString;
260
+ description: z.ZodOptional<z.ZodString>;
261
+ errorMessage: z.ZodOptional<z.ZodString>;
262
+ placeholder: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$catchall<z.ZodString>>, z.ZodObject<{
379
264
  type: z.ZodLiteral<"annotation">;
380
- translations: z.ZodObject<{
381
- title: z.ZodObject<{
382
- text: z.ZodString;
383
- context: z.ZodOptional<z.ZodString>;
384
- }, z.core.$strip>;
385
- description: z.ZodOptional<z.ZodObject<{
386
- text: z.ZodString;
387
- context: z.ZodOptional<z.ZodString>;
388
- }, z.core.$strip>>;
389
- errorMessage: z.ZodOptional<z.ZodObject<{
390
- text: z.ZodString;
391
- context: z.ZodOptional<z.ZodString>;
392
- }, z.core.$strip>>;
393
- annotationText: z.ZodOptional<z.ZodObject<{
394
- text: z.ZodString;
395
- context: z.ZodOptional<z.ZodString>;
396
- }, z.core.$strip>>;
397
- noAnnotationText: z.ZodOptional<z.ZodObject<{
398
- text: z.ZodString;
399
- context: z.ZodOptional<z.ZodString>;
400
- }, z.core.$strip>>;
401
- }, z.core.$strip>;
402
- }, z.core.$strip>], "type">;
403
- export declare const languageTranslationsSchema: z.ZodObject<{
404
- languageCode: z.ZodString;
405
- questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
406
- type: z.ZodLiteral<"rating">;
407
- translations: z.ZodObject<{
408
- title: z.ZodObject<{
409
- text: z.ZodString;
410
- context: z.ZodOptional<z.ZodString>;
411
- }, z.core.$strip>;
412
- description: z.ZodOptional<z.ZodObject<{
413
- text: z.ZodString;
414
- context: z.ZodOptional<z.ZodString>;
415
- }, z.core.$strip>>;
416
- errorMessage: z.ZodOptional<z.ZodObject<{
417
- text: z.ZodString;
418
- context: z.ZodOptional<z.ZodString>;
419
- }, z.core.$strip>>;
420
- minLabel: z.ZodOptional<z.ZodObject<{
421
- text: z.ZodString;
422
- context: z.ZodOptional<z.ZodString>;
423
- }, z.core.$strip>>;
424
- maxLabel: z.ZodOptional<z.ZodObject<{
425
- text: z.ZodString;
426
- context: z.ZodOptional<z.ZodString>;
427
- }, z.core.$strip>>;
428
- }, z.core.$strip>;
429
- }, z.core.$strip>, z.ZodObject<{
430
- type: z.ZodLiteral<"single_choice">;
431
- translations: z.ZodObject<{
432
- title: z.ZodObject<{
433
- text: z.ZodString;
434
- context: z.ZodOptional<z.ZodString>;
435
- }, z.core.$strip>;
436
- description: z.ZodOptional<z.ZodObject<{
437
- text: z.ZodString;
438
- context: z.ZodOptional<z.ZodString>;
439
- }, z.core.$strip>>;
440
- errorMessage: z.ZodOptional<z.ZodObject<{
441
- text: z.ZodString;
442
- context: z.ZodOptional<z.ZodString>;
443
- }, z.core.$strip>>;
444
- placeholder: z.ZodOptional<z.ZodObject<{
445
- text: z.ZodString;
446
- context: z.ZodOptional<z.ZodString>;
447
- }, z.core.$strip>>;
448
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
449
- label: z.ZodObject<{
450
- text: z.ZodString;
451
- context: z.ZodOptional<z.ZodString>;
452
- }, z.core.$strip>;
453
- hint: z.ZodOptional<z.ZodObject<{
454
- text: z.ZodString;
455
- context: z.ZodOptional<z.ZodString>;
456
- }, z.core.$strip>>;
457
- }, z.core.$strip>>;
458
- }, z.core.$strip>;
459
- }, z.core.$strip>, z.ZodObject<{
460
- type: z.ZodLiteral<"multiple_choice_multiple">;
461
- translations: z.ZodObject<{
462
- title: z.ZodObject<{
463
- text: z.ZodString;
464
- context: z.ZodOptional<z.ZodString>;
465
- }, z.core.$strip>;
466
- description: z.ZodOptional<z.ZodObject<{
467
- text: z.ZodString;
468
- context: z.ZodOptional<z.ZodString>;
469
- }, z.core.$strip>>;
470
- errorMessage: z.ZodOptional<z.ZodObject<{
471
- text: z.ZodString;
472
- context: z.ZodOptional<z.ZodString>;
473
- }, z.core.$strip>>;
474
- placeholder: z.ZodOptional<z.ZodObject<{
475
- text: z.ZodString;
476
- context: z.ZodOptional<z.ZodString>;
477
- }, z.core.$strip>>;
478
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
479
- label: z.ZodObject<{
480
- text: z.ZodString;
481
- context: z.ZodOptional<z.ZodString>;
482
- }, z.core.$strip>;
483
- hint: z.ZodOptional<z.ZodObject<{
484
- text: z.ZodString;
485
- context: z.ZodOptional<z.ZodString>;
486
- }, z.core.$strip>>;
487
- }, z.core.$strip>>;
488
- }, z.core.$strip>;
489
- }, z.core.$strip>, z.ZodObject<{
490
- type: z.ZodLiteral<"nps">;
491
- translations: z.ZodObject<{
492
- title: z.ZodObject<{
493
- text: z.ZodString;
494
- context: z.ZodOptional<z.ZodString>;
495
- }, z.core.$strip>;
496
- description: z.ZodOptional<z.ZodObject<{
497
- text: z.ZodString;
498
- context: z.ZodOptional<z.ZodString>;
499
- }, z.core.$strip>>;
500
- errorMessage: z.ZodOptional<z.ZodObject<{
501
- text: z.ZodString;
502
- context: z.ZodOptional<z.ZodString>;
503
- }, z.core.$strip>>;
504
- minLabel: z.ZodOptional<z.ZodObject<{
505
- text: z.ZodString;
506
- context: z.ZodOptional<z.ZodString>;
507
- }, z.core.$strip>>;
508
- maxLabel: z.ZodOptional<z.ZodObject<{
509
- text: z.ZodString;
510
- context: z.ZodOptional<z.ZodString>;
511
- }, z.core.$strip>>;
512
- scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{
513
- text: z.ZodString;
514
- context: z.ZodOptional<z.ZodString>;
515
- }, z.core.$strip>>>;
516
- }, z.core.$strip>;
517
- }, z.core.$strip>, z.ZodObject<{
518
- type: z.ZodLiteral<"short_answer">;
519
- translations: z.ZodObject<{
520
- title: z.ZodObject<{
521
- text: z.ZodString;
522
- context: z.ZodOptional<z.ZodString>;
523
- }, z.core.$strip>;
524
- description: z.ZodOptional<z.ZodObject<{
525
- text: z.ZodString;
526
- context: z.ZodOptional<z.ZodString>;
527
- }, z.core.$strip>>;
528
- errorMessage: z.ZodOptional<z.ZodObject<{
529
- text: z.ZodString;
530
- context: z.ZodOptional<z.ZodString>;
531
- }, z.core.$strip>>;
532
- placeholder: z.ZodOptional<z.ZodObject<{
533
- text: z.ZodString;
534
- context: z.ZodOptional<z.ZodString>;
535
- }, z.core.$strip>>;
536
- }, z.core.$strip>;
537
- }, z.core.$strip>, z.ZodObject<{
538
- type: z.ZodLiteral<"long_text">;
539
- translations: z.ZodObject<{
540
- title: z.ZodObject<{
541
- text: z.ZodString;
542
- context: z.ZodOptional<z.ZodString>;
543
- }, z.core.$strip>;
544
- description: z.ZodOptional<z.ZodObject<{
545
- text: z.ZodString;
546
- context: z.ZodOptional<z.ZodString>;
547
- }, z.core.$strip>>;
548
- errorMessage: z.ZodOptional<z.ZodObject<{
549
- text: z.ZodString;
550
- context: z.ZodOptional<z.ZodString>;
551
- }, z.core.$strip>>;
552
- placeholder: z.ZodOptional<z.ZodObject<{
553
- text: z.ZodString;
554
- context: z.ZodOptional<z.ZodString>;
555
- }, z.core.$strip>>;
556
- }, z.core.$strip>;
557
- }, z.core.$strip>, z.ZodObject<{
558
- type: z.ZodLiteral<"nested_selection">;
559
- translations: z.ZodObject<{
560
- title: z.ZodObject<{
561
- text: z.ZodString;
562
- context: z.ZodOptional<z.ZodString>;
563
- }, z.core.$strip>;
564
- description: z.ZodOptional<z.ZodObject<{
565
- text: z.ZodString;
566
- context: z.ZodOptional<z.ZodString>;
567
- }, z.core.$strip>>;
568
- errorMessage: z.ZodOptional<z.ZodObject<{
569
- text: z.ZodString;
570
- context: z.ZodOptional<z.ZodString>;
571
- }, z.core.$strip>>;
572
- placeholder: z.ZodOptional<z.ZodObject<{
573
- text: z.ZodString;
574
- context: z.ZodOptional<z.ZodString>;
575
- }, z.core.$strip>>;
576
- nestedOptions: z.ZodRecord<z.ZodString, z.ZodObject<{
577
- label: z.ZodObject<{
578
- text: z.ZodString;
579
- context: z.ZodOptional<z.ZodString>;
580
- }, z.core.$strip>;
581
- hint: z.ZodOptional<z.ZodObject<{
582
- text: z.ZodString;
583
- context: z.ZodOptional<z.ZodString>;
584
- }, z.core.$strip>>;
585
- }, z.core.$strip>>;
586
- }, z.core.$strip>;
587
- }, z.core.$strip>, z.ZodObject<{
588
- type: z.ZodLiteral<"annotation">;
589
- translations: z.ZodObject<{
590
- title: z.ZodObject<{
591
- text: z.ZodString;
592
- context: z.ZodOptional<z.ZodString>;
593
- }, z.core.$strip>;
594
- description: z.ZodOptional<z.ZodObject<{
595
- text: z.ZodString;
596
- context: z.ZodOptional<z.ZodString>;
597
- }, z.core.$strip>>;
598
- errorMessage: z.ZodOptional<z.ZodObject<{
599
- text: z.ZodString;
600
- context: z.ZodOptional<z.ZodString>;
601
- }, z.core.$strip>>;
602
- annotationText: z.ZodOptional<z.ZodObject<{
603
- text: z.ZodString;
604
- context: z.ZodOptional<z.ZodString>;
605
- }, z.core.$strip>>;
606
- noAnnotationText: z.ZodOptional<z.ZodObject<{
607
- text: z.ZodString;
608
- context: z.ZodOptional<z.ZodString>;
609
- }, z.core.$strip>>;
610
- }, z.core.$strip>;
611
- }, z.core.$strip>], "type">>;
612
- }, z.core.$strip>;
613
- export declare const translationsSchema: z.ZodObject<{
614
- defaultLanguage: z.ZodString;
615
- languages: z.ZodArray<z.ZodObject<{
616
- languageCode: z.ZodString;
617
- questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
618
- type: z.ZodLiteral<"rating">;
619
- translations: z.ZodObject<{
620
- title: z.ZodObject<{
621
- text: z.ZodString;
622
- context: z.ZodOptional<z.ZodString>;
623
- }, z.core.$strip>;
624
- description: z.ZodOptional<z.ZodObject<{
625
- text: z.ZodString;
626
- context: z.ZodOptional<z.ZodString>;
627
- }, z.core.$strip>>;
628
- errorMessage: z.ZodOptional<z.ZodObject<{
629
- text: z.ZodString;
630
- context: z.ZodOptional<z.ZodString>;
631
- }, z.core.$strip>>;
632
- minLabel: z.ZodOptional<z.ZodObject<{
633
- text: z.ZodString;
634
- context: z.ZodOptional<z.ZodString>;
635
- }, z.core.$strip>>;
636
- maxLabel: z.ZodOptional<z.ZodObject<{
637
- text: z.ZodString;
638
- context: z.ZodOptional<z.ZodString>;
639
- }, z.core.$strip>>;
640
- }, z.core.$strip>;
641
- }, z.core.$strip>, z.ZodObject<{
642
- type: z.ZodLiteral<"single_choice">;
643
- translations: z.ZodObject<{
644
- title: z.ZodObject<{
645
- text: z.ZodString;
646
- context: z.ZodOptional<z.ZodString>;
647
- }, z.core.$strip>;
648
- description: z.ZodOptional<z.ZodObject<{
649
- text: z.ZodString;
650
- context: z.ZodOptional<z.ZodString>;
651
- }, z.core.$strip>>;
652
- errorMessage: z.ZodOptional<z.ZodObject<{
653
- text: z.ZodString;
654
- context: z.ZodOptional<z.ZodString>;
655
- }, z.core.$strip>>;
656
- placeholder: z.ZodOptional<z.ZodObject<{
657
- text: z.ZodString;
658
- context: z.ZodOptional<z.ZodString>;
659
- }, z.core.$strip>>;
660
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
661
- label: z.ZodObject<{
662
- text: z.ZodString;
663
- context: z.ZodOptional<z.ZodString>;
664
- }, z.core.$strip>;
665
- hint: z.ZodOptional<z.ZodObject<{
666
- text: z.ZodString;
667
- context: z.ZodOptional<z.ZodString>;
668
- }, z.core.$strip>>;
669
- }, z.core.$strip>>;
670
- }, z.core.$strip>;
671
- }, z.core.$strip>, z.ZodObject<{
672
- type: z.ZodLiteral<"multiple_choice_multiple">;
673
- translations: z.ZodObject<{
674
- title: z.ZodObject<{
675
- text: z.ZodString;
676
- context: z.ZodOptional<z.ZodString>;
677
- }, z.core.$strip>;
678
- description: z.ZodOptional<z.ZodObject<{
679
- text: z.ZodString;
680
- context: z.ZodOptional<z.ZodString>;
681
- }, z.core.$strip>>;
682
- errorMessage: z.ZodOptional<z.ZodObject<{
683
- text: z.ZodString;
684
- context: z.ZodOptional<z.ZodString>;
685
- }, z.core.$strip>>;
686
- placeholder: z.ZodOptional<z.ZodObject<{
687
- text: z.ZodString;
688
- context: z.ZodOptional<z.ZodString>;
689
- }, z.core.$strip>>;
690
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
691
- label: z.ZodObject<{
692
- text: z.ZodString;
693
- context: z.ZodOptional<z.ZodString>;
694
- }, z.core.$strip>;
695
- hint: z.ZodOptional<z.ZodObject<{
696
- text: z.ZodString;
697
- context: z.ZodOptional<z.ZodString>;
698
- }, z.core.$strip>>;
699
- }, z.core.$strip>>;
700
- }, z.core.$strip>;
701
- }, z.core.$strip>, z.ZodObject<{
702
- type: z.ZodLiteral<"nps">;
703
- translations: z.ZodObject<{
704
- title: z.ZodObject<{
705
- text: z.ZodString;
706
- context: z.ZodOptional<z.ZodString>;
707
- }, z.core.$strip>;
708
- description: z.ZodOptional<z.ZodObject<{
709
- text: z.ZodString;
710
- context: z.ZodOptional<z.ZodString>;
711
- }, z.core.$strip>>;
712
- errorMessage: z.ZodOptional<z.ZodObject<{
713
- text: z.ZodString;
714
- context: z.ZodOptional<z.ZodString>;
715
- }, z.core.$strip>>;
716
- minLabel: z.ZodOptional<z.ZodObject<{
717
- text: z.ZodString;
718
- context: z.ZodOptional<z.ZodString>;
719
- }, z.core.$strip>>;
720
- maxLabel: z.ZodOptional<z.ZodObject<{
721
- text: z.ZodString;
722
- context: z.ZodOptional<z.ZodString>;
723
- }, z.core.$strip>>;
724
- scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{
725
- text: z.ZodString;
726
- context: z.ZodOptional<z.ZodString>;
727
- }, z.core.$strip>>>;
728
- }, z.core.$strip>;
729
- }, z.core.$strip>, z.ZodObject<{
730
- type: z.ZodLiteral<"short_answer">;
731
- translations: z.ZodObject<{
732
- title: z.ZodObject<{
733
- text: z.ZodString;
734
- context: z.ZodOptional<z.ZodString>;
735
- }, z.core.$strip>;
736
- description: z.ZodOptional<z.ZodObject<{
737
- text: z.ZodString;
738
- context: z.ZodOptional<z.ZodString>;
739
- }, z.core.$strip>>;
740
- errorMessage: z.ZodOptional<z.ZodObject<{
741
- text: z.ZodString;
742
- context: z.ZodOptional<z.ZodString>;
743
- }, z.core.$strip>>;
744
- placeholder: z.ZodOptional<z.ZodObject<{
745
- text: z.ZodString;
746
- context: z.ZodOptional<z.ZodString>;
747
- }, z.core.$strip>>;
748
- }, z.core.$strip>;
749
- }, z.core.$strip>, z.ZodObject<{
750
- type: z.ZodLiteral<"long_text">;
751
- translations: z.ZodObject<{
752
- title: z.ZodObject<{
753
- text: z.ZodString;
754
- context: z.ZodOptional<z.ZodString>;
755
- }, z.core.$strip>;
756
- description: z.ZodOptional<z.ZodObject<{
757
- text: z.ZodString;
758
- context: z.ZodOptional<z.ZodString>;
759
- }, z.core.$strip>>;
760
- errorMessage: z.ZodOptional<z.ZodObject<{
761
- text: z.ZodString;
762
- context: z.ZodOptional<z.ZodString>;
763
- }, z.core.$strip>>;
764
- placeholder: z.ZodOptional<z.ZodObject<{
765
- text: z.ZodString;
766
- context: z.ZodOptional<z.ZodString>;
767
- }, z.core.$strip>>;
768
- }, z.core.$strip>;
769
- }, z.core.$strip>, z.ZodObject<{
770
- type: z.ZodLiteral<"nested_selection">;
771
- translations: z.ZodObject<{
772
- title: z.ZodObject<{
773
- text: z.ZodString;
774
- context: z.ZodOptional<z.ZodString>;
775
- }, z.core.$strip>;
776
- description: z.ZodOptional<z.ZodObject<{
777
- text: z.ZodString;
778
- context: z.ZodOptional<z.ZodString>;
779
- }, z.core.$strip>>;
780
- errorMessage: z.ZodOptional<z.ZodObject<{
781
- text: z.ZodString;
782
- context: z.ZodOptional<z.ZodString>;
783
- }, z.core.$strip>>;
784
- placeholder: z.ZodOptional<z.ZodObject<{
785
- text: z.ZodString;
786
- context: z.ZodOptional<z.ZodString>;
787
- }, z.core.$strip>>;
788
- nestedOptions: z.ZodRecord<z.ZodString, z.ZodObject<{
789
- label: z.ZodObject<{
790
- text: z.ZodString;
791
- context: z.ZodOptional<z.ZodString>;
792
- }, z.core.$strip>;
793
- hint: z.ZodOptional<z.ZodObject<{
794
- text: z.ZodString;
795
- context: z.ZodOptional<z.ZodString>;
796
- }, z.core.$strip>>;
797
- }, z.core.$strip>>;
798
- }, z.core.$strip>;
799
- }, z.core.$strip>, z.ZodObject<{
800
- type: z.ZodLiteral<"annotation">;
801
- translations: z.ZodObject<{
802
- title: z.ZodObject<{
803
- text: z.ZodString;
804
- context: z.ZodOptional<z.ZodString>;
805
- }, z.core.$strip>;
806
- description: z.ZodOptional<z.ZodObject<{
807
- text: z.ZodString;
808
- context: z.ZodOptional<z.ZodString>;
809
- }, z.core.$strip>>;
810
- errorMessage: z.ZodOptional<z.ZodObject<{
811
- text: z.ZodString;
812
- context: z.ZodOptional<z.ZodString>;
813
- }, z.core.$strip>>;
814
- annotationText: z.ZodOptional<z.ZodObject<{
815
- text: z.ZodString;
816
- context: z.ZodOptional<z.ZodString>;
817
- }, z.core.$strip>>;
818
- noAnnotationText: z.ZodOptional<z.ZodObject<{
819
- text: z.ZodString;
820
- context: z.ZodOptional<z.ZodString>;
821
- }, z.core.$strip>>;
822
- }, z.core.$strip>;
823
- }, z.core.$strip>], "type">>;
824
- }, z.core.$strip>>;
825
- version: z.ZodOptional<z.ZodString>;
826
- }, z.core.$strip>;
265
+ title: z.ZodString;
266
+ description: z.ZodOptional<z.ZodString>;
267
+ errorMessage: z.ZodOptional<z.ZodString>;
268
+ annotationText: z.ZodOptional<z.ZodString>;
269
+ noAnnotationText: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strip>]>>>;
827
271
  export type TranslationEntry = z.infer<typeof translationEntrySchema>;
828
- export type RatingTranslations = z.infer<typeof ratingTranslationsSchema>;
829
- export type SingleChoiceTranslations = z.infer<typeof singleChoiceTranslationsSchema>;
830
- export type MultipleChoiceTranslations = z.infer<typeof multipleChoiceTranslationsSchema>;
831
- export type NpsTranslations = z.infer<typeof npsTranslationsSchema>;
832
- export type ShortAnswerTranslations = z.infer<typeof shortAnswerTranslationsSchema>;
833
- export type LongAnswerTranslations = z.infer<typeof longAnswerTranslationsSchema>;
834
- export type NestedSelectionTranslations = z.infer<typeof nestedSelectionTranslationsSchema>;
835
- export type AnnotationTranslations = z.infer<typeof annotationTranslationsSchema>;
836
- export type QuestionTranslations = {
837
- type: "rating";
838
- translations: z.infer<typeof ratingTranslationsSchema>;
839
- } | {
840
- type: "single_choice";
841
- translations: z.infer<typeof singleChoiceTranslationsSchema>;
842
- } | {
843
- type: "multiple_choice_multiple";
844
- translations: z.infer<typeof multipleChoiceTranslationsSchema>;
845
- } | {
846
- type: "nps";
847
- translations: z.infer<typeof npsTranslationsSchema>;
848
- } | {
849
- type: "short_answer";
850
- translations: z.infer<typeof shortAnswerTranslationsSchema>;
851
- } | {
852
- type: "long_text";
853
- translations: z.infer<typeof longAnswerTranslationsSchema>;
854
- } | {
855
- type: "nested_selection";
856
- translations: z.infer<typeof nestedSelectionTranslationsSchema>;
857
- } | {
858
- type: "annotation";
859
- translations: z.infer<typeof annotationTranslationsSchema>;
860
- };
861
- export type LanguageTranslations = z.infer<typeof languageTranslationsSchema>;
272
+ export type RatingQuestionTranslation = z.infer<typeof ratingQuestionTranslationSchema>;
273
+ export type SingleChoiceQuestionTranslation = z.infer<typeof singleChoiceQuestionTranslationSchema>;
274
+ export type MultipleChoiceQuestionTranslation = z.infer<typeof multipleChoiceQuestionTranslationSchema>;
275
+ export type NpsQuestionTranslation = z.infer<typeof npsQuestionTranslationSchema>;
276
+ export type ShortAnswerQuestionTranslation = z.infer<typeof shortAnswerQuestionTranslationSchema>;
277
+ export type LongAnswerQuestionTranslation = z.infer<typeof longAnswerQuestionTranslationSchema>;
278
+ export type NestedSelectionQuestionTranslation = z.infer<typeof nestedSelectionQuestionTranslationSchema>;
279
+ export type AnnotationQuestionTranslation = z.infer<typeof annotationQuestionTranslationSchema>;
280
+ export type QuestionTranslation = z.infer<typeof questionTranslationSchema>;
281
+ export type LanguageCode = z.infer<typeof languageCodeSchema>;
282
+ export type QuestionTranslationsByLanguage = z.infer<typeof questionTranslationsByLanguageSchema>;
283
+ export type QuestionCentricTranslations = z.infer<typeof questionCentricTranslationsSchema>;
862
284
  export type Translations = z.infer<typeof translationsSchema>;
863
285
  export declare class TranslationProvider {
864
286
  private translations;
865
- constructor(translations: Translations);
287
+ private defaultLanguage;
288
+ constructor(translations: Translations, defaultLanguage?: string);
866
289
  /**
867
290
  * Get translations for a specific question in a specific language
868
291
  */
869
- getQuestionTranslations(questionId: string, languageCode: string): QuestionTranslations | null;
292
+ getQuestionTranslations(questionId: string, languageCode: string): QuestionTranslation | null;
293
+ /**
294
+ * Get a specific translation text by field path
295
+ */
296
+ getTranslationText(questionId: string, languageCode: string, fieldPath: string): string | null;
870
297
  /**
871
- * Get a specific translation text
298
+ * Get all available languages for a specific question
872
299
  */
873
- getTranslationText(questionId: string, languageCode: string, path: string[]): string | null;
300
+ getQuestionLanguages(questionId: string): string[];
874
301
  /**
875
- * Get all available languages
302
+ * Get all available languages across all questions
876
303
  */
877
304
  getAvailableLanguages(): string[];
878
305
  /**
879
- * Check if a language is supported
306
+ * Check if a language is supported for a specific question
307
+ */
308
+ isLanguageSupportedForQuestion(questionId: string, languageCode: string): boolean;
309
+ /**
310
+ * Check if a language is supported across all questions
880
311
  */
881
312
  isLanguageSupported(languageCode: string): boolean;
882
313
  /**
883
314
  * Get the default language
884
315
  */
885
316
  getDefaultLanguage(): string;
317
+ /**
318
+ * Get all questions that have translations
319
+ */
320
+ getQuestionIds(): string[];
321
+ /**
322
+ * Get question type for a specific question
323
+ */
324
+ getQuestionType(questionId: string, languageCode?: string): string | null;
886
325
  }
887
- export declare function createTranslationProvider(translations: Translations): TranslationProvider;
326
+ export declare function createTranslationProvider(translations: Translations, defaultLanguage?: string): TranslationProvider;