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