@dmptool/types 1.1.3 → 1.2.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.
Files changed (76) hide show
  1. package/README.md +119 -47
  2. package/dist/answers/__tests__/answers.spec.js +27 -28
  3. package/dist/answers/__tests__/usage.spec.d.ts +1 -0
  4. package/dist/answers/__tests__/usage.spec.js +178 -0
  5. package/dist/answers/answer.d.ts +12 -15
  6. package/dist/answers/answer.js +3 -4
  7. package/dist/answers/dateAnswers.d.ts +30 -30
  8. package/dist/answers/dateAnswers.js +6 -5
  9. package/dist/answers/graphQLAnswers.d.ts +41 -26
  10. package/dist/answers/graphQLAnswers.js +7 -4
  11. package/dist/answers/index.d.ts +887 -1088
  12. package/dist/answers/index.js +2 -2
  13. package/dist/answers/numberAnswers.d.ts +41 -41
  14. package/dist/answers/numberAnswers.js +8 -8
  15. package/dist/answers/optionBasedAnswers.d.ts +55 -55
  16. package/dist/answers/optionBasedAnswers.js +10 -10
  17. package/dist/answers/tableAnswers.d.ts +880 -1778
  18. package/dist/answers/tableAnswers.js +12 -8
  19. package/dist/answers/textAnswers.d.ts +44 -44
  20. package/dist/answers/textAnswers.js +8 -8
  21. package/dist/questions/__tests__/graphQLQuestions.spec.js +1 -1
  22. package/dist/questions/__tests__/usage.spec.d.ts +8 -0
  23. package/dist/questions/__tests__/usage.spec.js +312 -0
  24. package/dist/questions/dateQuestions.d.ts +81 -82
  25. package/dist/questions/dateQuestions.js +12 -16
  26. package/dist/questions/graphQLQuestions.d.ts +142 -142
  27. package/dist/questions/graphQLQuestions.js +35 -30
  28. package/dist/questions/index.d.ts +1492 -1672
  29. package/dist/questions/index.js +2 -2
  30. package/dist/questions/numberQuestions.d.ts +97 -98
  31. package/dist/questions/numberQuestions.js +7 -19
  32. package/dist/questions/optionBasedQuestions.d.ts +163 -166
  33. package/dist/questions/optionBasedQuestions.js +20 -36
  34. package/dist/questions/question.d.ts +24 -48
  35. package/dist/questions/question.js +78 -17
  36. package/dist/questions/tableQuestions.d.ts +2215 -2227
  37. package/dist/questions/tableQuestions.js +6 -11
  38. package/dist/questions/textQuestions.d.ts +104 -104
  39. package/dist/questions/textQuestions.js +6 -23
  40. package/dist/schemas/affiliationSearchAnswer.schema.json +20 -12
  41. package/dist/schemas/affiliationSearchQuestion.schema.json +30 -36
  42. package/dist/schemas/anyAnswer.schema.json +235 -233
  43. package/dist/schemas/anyQuestion.schema.json +292 -493
  44. package/dist/schemas/anyTableColumnAnswer.schema.json +104 -106
  45. package/dist/schemas/anyTableColumnQuestion.schema.json +164 -325
  46. package/dist/schemas/booleanAnswer.schema.json +8 -11
  47. package/dist/schemas/booleanQuestion.schema.json +7 -10
  48. package/dist/schemas/checkboxesAnswer.schema.json +13 -14
  49. package/dist/schemas/checkboxesQuestion.schema.json +12 -13
  50. package/dist/schemas/currencyAnswer.schema.json +8 -11
  51. package/dist/schemas/currencyQuestion.schema.json +7 -10
  52. package/dist/schemas/dateAnswer.schema.json +8 -11
  53. package/dist/schemas/dateQuestion.schema.json +7 -10
  54. package/dist/schemas/dateRangeAnswer.schema.json +16 -21
  55. package/dist/schemas/dateRangeQuestion.schema.json +38 -20
  56. package/dist/schemas/emailAnswer.schema.json +8 -11
  57. package/dist/schemas/emailQuestion.schema.json +7 -10
  58. package/dist/schemas/multiselectBoxAnswer.schema.json +13 -14
  59. package/dist/schemas/multiselectBoxQuestion.schema.json +14 -14
  60. package/dist/schemas/numberAnswer.schema.json +8 -11
  61. package/dist/schemas/numberQuestion.schema.json +7 -10
  62. package/dist/schemas/numberRangeAnswer.schema.json +17 -22
  63. package/dist/schemas/numberRangeQuestion.schema.json +18 -19
  64. package/dist/schemas/radioButtonsAnswer.schema.json +8 -11
  65. package/dist/schemas/radioButtonsQuestion.schema.json +12 -13
  66. package/dist/schemas/selectBoxAnswer.schema.json +8 -11
  67. package/dist/schemas/selectBoxQuestion.schema.json +18 -15
  68. package/dist/schemas/tableAnswer.schema.json +343 -338
  69. package/dist/schemas/tableQuestion.schema.json +178 -352
  70. package/dist/schemas/textAnswer.schema.json +8 -11
  71. package/dist/schemas/textAreaAnswer.schema.json +8 -11
  72. package/dist/schemas/textAreaQuestion.schema.json +7 -10
  73. package/dist/schemas/textQuestion.schema.json +7 -10
  74. package/dist/schemas/urlAnswer.schema.json +8 -11
  75. package/dist/schemas/urlQuestion.schema.json +7 -10
  76. package/package.json +1 -1
@@ -1,143 +1,158 @@
1
1
  import { z } from 'zod';
2
2
  export declare const AnyTableColumnAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
- meta: z.ZodObject<{
4
- schemaVersion: z.ZodLiteral<"1.0">;
3
+ meta: z.ZodDefault<z.ZodObject<{
4
+ schemaVersion: z.ZodDefault<z.ZodString>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- schemaVersion: "1.0";
6
+ schemaVersion: string;
7
7
  }, {
8
- schemaVersion: "1.0";
9
- }>;
8
+ schemaVersion?: string | undefined;
9
+ }>>;
10
10
  } & {
11
- type: z.ZodLiteral<"typeaheadSearch">;
12
- answer: z.ZodString;
11
+ type: z.ZodLiteral<"affiliationSearch">;
12
+ answer: z.ZodDefault<z.ZodObject<{
13
+ affiliationId: z.ZodDefault<z.ZodString>;
14
+ affiliationName: z.ZodDefault<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ affiliationId: string;
17
+ affiliationName: string;
18
+ }, {
19
+ affiliationId?: string | undefined;
20
+ affiliationName?: string | undefined;
21
+ }>>;
13
22
  }, "strip", z.ZodTypeAny, {
14
- type: "typeaheadSearch";
23
+ type: "affiliationSearch";
15
24
  meta: {
16
- schemaVersion: "1.0";
25
+ schemaVersion: string;
17
26
  };
18
- answer: string;
19
- }, {
20
- type: "typeaheadSearch";
21
- meta: {
22
- schemaVersion: "1.0";
27
+ answer: {
28
+ affiliationId: string;
29
+ affiliationName: string;
23
30
  };
24
- answer: string;
31
+ }, {
32
+ type: "affiliationSearch";
33
+ meta?: {
34
+ schemaVersion?: string | undefined;
35
+ } | undefined;
36
+ answer?: {
37
+ affiliationId?: string | undefined;
38
+ affiliationName?: string | undefined;
39
+ } | undefined;
25
40
  }>, z.ZodObject<{
26
- meta: z.ZodObject<{
27
- schemaVersion: z.ZodLiteral<"1.0">;
41
+ meta: z.ZodDefault<z.ZodObject<{
42
+ schemaVersion: z.ZodDefault<z.ZodString>;
28
43
  }, "strip", z.ZodTypeAny, {
29
- schemaVersion: "1.0";
44
+ schemaVersion: string;
30
45
  }, {
31
- schemaVersion: "1.0";
32
- }>;
46
+ schemaVersion?: string | undefined;
47
+ }>>;
33
48
  } & {
34
49
  type: z.ZodLiteral<"boolean">;
35
- answer: z.ZodBoolean;
50
+ answer: z.ZodDefault<z.ZodBoolean>;
36
51
  }, "strip", z.ZodTypeAny, {
37
52
  type: "boolean";
38
53
  meta: {
39
- schemaVersion: "1.0";
54
+ schemaVersion: string;
40
55
  };
41
56
  answer: boolean;
42
57
  }, {
43
58
  type: "boolean";
44
- meta: {
45
- schemaVersion: "1.0";
46
- };
47
- answer: boolean;
59
+ meta?: {
60
+ schemaVersion?: string | undefined;
61
+ } | undefined;
62
+ answer?: boolean | undefined;
48
63
  }>, z.ZodObject<{
49
- meta: z.ZodObject<{
50
- schemaVersion: z.ZodLiteral<"1.0">;
64
+ meta: z.ZodDefault<z.ZodObject<{
65
+ schemaVersion: z.ZodDefault<z.ZodString>;
51
66
  }, "strip", z.ZodTypeAny, {
52
- schemaVersion: "1.0";
67
+ schemaVersion: string;
53
68
  }, {
54
- schemaVersion: "1.0";
55
- }>;
69
+ schemaVersion?: string | undefined;
70
+ }>>;
56
71
  } & {
57
72
  type: z.ZodLiteral<"checkBoxes">;
58
- answer: z.ZodArray<z.ZodString, "many">;
73
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
59
74
  }, "strip", z.ZodTypeAny, {
60
75
  type: "checkBoxes";
61
76
  meta: {
62
- schemaVersion: "1.0";
77
+ schemaVersion: string;
63
78
  };
64
79
  answer: string[];
65
80
  }, {
66
81
  type: "checkBoxes";
67
- meta: {
68
- schemaVersion: "1.0";
69
- };
70
- answer: string[];
82
+ meta?: {
83
+ schemaVersion?: string | undefined;
84
+ } | undefined;
85
+ answer?: string[] | undefined;
71
86
  }>, z.ZodObject<{
72
- meta: z.ZodObject<{
73
- schemaVersion: z.ZodLiteral<"1.0">;
87
+ meta: z.ZodDefault<z.ZodObject<{
88
+ schemaVersion: z.ZodDefault<z.ZodString>;
74
89
  }, "strip", z.ZodTypeAny, {
75
- schemaVersion: "1.0";
90
+ schemaVersion: string;
76
91
  }, {
77
- schemaVersion: "1.0";
78
- }>;
92
+ schemaVersion?: string | undefined;
93
+ }>>;
79
94
  } & {
80
95
  type: z.ZodLiteral<"currency">;
81
- answer: z.ZodNumber;
96
+ answer: z.ZodDefault<z.ZodNumber>;
82
97
  }, "strip", z.ZodTypeAny, {
83
98
  type: "currency";
84
99
  meta: {
85
- schemaVersion: "1.0";
100
+ schemaVersion: string;
86
101
  };
87
102
  answer: number;
88
103
  }, {
89
104
  type: "currency";
90
- meta: {
91
- schemaVersion: "1.0";
92
- };
93
- answer: number;
105
+ meta?: {
106
+ schemaVersion?: string | undefined;
107
+ } | undefined;
108
+ answer?: number | undefined;
94
109
  }>, z.ZodObject<{
95
- answer: z.ZodString;
96
- meta: z.ZodObject<{
97
- schemaVersion: z.ZodLiteral<"1.0">;
110
+ meta: z.ZodDefault<z.ZodObject<{
111
+ schemaVersion: z.ZodDefault<z.ZodString>;
98
112
  }, "strip", z.ZodTypeAny, {
99
- schemaVersion: "1.0";
113
+ schemaVersion: string;
100
114
  }, {
101
- schemaVersion: "1.0";
102
- }>;
115
+ schemaVersion?: string | undefined;
116
+ }>>;
103
117
  } & {
104
118
  type: z.ZodLiteral<"date">;
119
+ answer: z.ZodDefault<z.ZodString>;
105
120
  }, "strip", z.ZodTypeAny, {
106
121
  type: "date";
107
122
  meta: {
108
- schemaVersion: "1.0";
123
+ schemaVersion: string;
109
124
  };
110
125
  answer: string;
111
126
  }, {
112
127
  type: "date";
113
- meta: {
114
- schemaVersion: "1.0";
115
- };
116
- answer: string;
128
+ meta?: {
129
+ schemaVersion?: string | undefined;
130
+ } | undefined;
131
+ answer?: string | undefined;
117
132
  }>, z.ZodObject<{
118
- meta: z.ZodObject<{
119
- schemaVersion: z.ZodLiteral<"1.0">;
133
+ meta: z.ZodDefault<z.ZodObject<{
134
+ schemaVersion: z.ZodDefault<z.ZodString>;
120
135
  }, "strip", z.ZodTypeAny, {
121
- schemaVersion: "1.0";
136
+ schemaVersion: string;
122
137
  }, {
123
- schemaVersion: "1.0";
124
- }>;
138
+ schemaVersion?: string | undefined;
139
+ }>>;
125
140
  } & {
126
141
  type: z.ZodLiteral<"dateRange">;
127
- answer: z.ZodObject<{
128
- start: z.ZodString;
129
- end: z.ZodString;
142
+ answer: z.ZodDefault<z.ZodObject<{
143
+ start: z.ZodDefault<z.ZodString>;
144
+ end: z.ZodDefault<z.ZodString>;
130
145
  }, "strip", z.ZodTypeAny, {
131
146
  start: string;
132
147
  end: string;
133
148
  }, {
134
- start: string;
135
- end: string;
136
- }>;
149
+ start?: string | undefined;
150
+ end?: string | undefined;
151
+ }>>;
137
152
  }, "strip", z.ZodTypeAny, {
138
153
  type: "dateRange";
139
154
  meta: {
140
- schemaVersion: "1.0";
155
+ schemaVersion: string;
141
156
  };
142
157
  answer: {
143
158
  start: string;
@@ -145,362 +160,376 @@ export declare const AnyTableColumnAnswerSchema: z.ZodDiscriminatedUnion<"type",
145
160
  };
146
161
  }, {
147
162
  type: "dateRange";
148
- meta: {
149
- schemaVersion: "1.0";
150
- };
151
- answer: {
152
- start: string;
153
- end: string;
154
- };
163
+ meta?: {
164
+ schemaVersion?: string | undefined;
165
+ } | undefined;
166
+ answer?: {
167
+ start?: string | undefined;
168
+ end?: string | undefined;
169
+ } | undefined;
155
170
  }>, z.ZodObject<{
156
- meta: z.ZodObject<{
157
- schemaVersion: z.ZodLiteral<"1.0">;
171
+ meta: z.ZodDefault<z.ZodObject<{
172
+ schemaVersion: z.ZodDefault<z.ZodString>;
158
173
  }, "strip", z.ZodTypeAny, {
159
- schemaVersion: "1.0";
174
+ schemaVersion: string;
160
175
  }, {
161
- schemaVersion: "1.0";
162
- }>;
176
+ schemaVersion?: string | undefined;
177
+ }>>;
163
178
  } & {
164
179
  type: z.ZodLiteral<"email">;
165
- answer: z.ZodString;
180
+ answer: z.ZodDefault<z.ZodString>;
166
181
  }, "strip", z.ZodTypeAny, {
167
182
  type: "email";
168
183
  meta: {
169
- schemaVersion: "1.0";
184
+ schemaVersion: string;
170
185
  };
171
186
  answer: string;
172
187
  }, {
173
188
  type: "email";
174
- meta: {
175
- schemaVersion: "1.0";
176
- };
177
- answer: string;
189
+ meta?: {
190
+ schemaVersion?: string | undefined;
191
+ } | undefined;
192
+ answer?: string | undefined;
178
193
  }>, z.ZodObject<{
179
- meta: z.ZodObject<{
180
- schemaVersion: z.ZodLiteral<"1.0">;
194
+ meta: z.ZodDefault<z.ZodObject<{
195
+ schemaVersion: z.ZodDefault<z.ZodString>;
181
196
  }, "strip", z.ZodTypeAny, {
182
- schemaVersion: "1.0";
197
+ schemaVersion: string;
183
198
  }, {
184
- schemaVersion: "1.0";
185
- }>;
199
+ schemaVersion?: string | undefined;
200
+ }>>;
186
201
  } & {
187
202
  type: z.ZodLiteral<"filteredSearch">;
188
- answer: z.ZodArray<z.ZodString, "many">;
203
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
189
204
  }, "strip", z.ZodTypeAny, {
190
205
  type: "filteredSearch";
191
206
  meta: {
192
- schemaVersion: "1.0";
207
+ schemaVersion: string;
193
208
  };
194
209
  answer: string[];
195
210
  }, {
196
211
  type: "filteredSearch";
197
- meta: {
198
- schemaVersion: "1.0";
199
- };
200
- answer: string[];
212
+ meta?: {
213
+ schemaVersion?: string | undefined;
214
+ } | undefined;
215
+ answer?: string[] | undefined;
201
216
  }>, z.ZodObject<{
202
- meta: z.ZodObject<{
203
- schemaVersion: z.ZodLiteral<"1.0">;
217
+ meta: z.ZodDefault<z.ZodObject<{
218
+ schemaVersion: z.ZodDefault<z.ZodString>;
204
219
  }, "strip", z.ZodTypeAny, {
205
- schemaVersion: "1.0";
220
+ schemaVersion: string;
206
221
  }, {
207
- schemaVersion: "1.0";
208
- }>;
222
+ schemaVersion?: string | undefined;
223
+ }>>;
209
224
  } & {
210
225
  type: z.ZodLiteral<"multiselectBox">;
211
- answer: z.ZodArray<z.ZodString, "many">;
226
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
212
227
  }, "strip", z.ZodTypeAny, {
213
228
  type: "multiselectBox";
214
229
  meta: {
215
- schemaVersion: "1.0";
230
+ schemaVersion: string;
216
231
  };
217
232
  answer: string[];
218
233
  }, {
219
234
  type: "multiselectBox";
220
- meta: {
221
- schemaVersion: "1.0";
222
- };
223
- answer: string[];
235
+ meta?: {
236
+ schemaVersion?: string | undefined;
237
+ } | undefined;
238
+ answer?: string[] | undefined;
224
239
  }>, z.ZodObject<{
225
- meta: z.ZodObject<{
226
- schemaVersion: z.ZodLiteral<"1.0">;
240
+ meta: z.ZodDefault<z.ZodObject<{
241
+ schemaVersion: z.ZodDefault<z.ZodString>;
227
242
  }, "strip", z.ZodTypeAny, {
228
- schemaVersion: "1.0";
243
+ schemaVersion: string;
229
244
  }, {
230
- schemaVersion: "1.0";
231
- }>;
245
+ schemaVersion?: string | undefined;
246
+ }>>;
232
247
  } & {
233
248
  type: z.ZodLiteral<"number">;
234
- answer: z.ZodNumber;
249
+ answer: z.ZodDefault<z.ZodNumber>;
235
250
  }, "strip", z.ZodTypeAny, {
236
251
  type: "number";
237
252
  meta: {
238
- schemaVersion: "1.0";
253
+ schemaVersion: string;
239
254
  };
240
255
  answer: number;
241
256
  }, {
242
257
  type: "number";
243
- meta: {
244
- schemaVersion: "1.0";
245
- };
246
- answer: number;
258
+ meta?: {
259
+ schemaVersion?: string | undefined;
260
+ } | undefined;
261
+ answer?: number | undefined;
247
262
  }>, z.ZodObject<{
248
- meta: z.ZodObject<{
249
- schemaVersion: z.ZodLiteral<"1.0">;
263
+ meta: z.ZodDefault<z.ZodObject<{
264
+ schemaVersion: z.ZodDefault<z.ZodString>;
250
265
  }, "strip", z.ZodTypeAny, {
251
- schemaVersion: "1.0";
266
+ schemaVersion: string;
252
267
  }, {
253
- schemaVersion: "1.0";
254
- }>;
268
+ schemaVersion?: string | undefined;
269
+ }>>;
255
270
  } & {
256
271
  type: z.ZodLiteral<"radioButtons">;
257
- answer: z.ZodString;
272
+ answer: z.ZodDefault<z.ZodString>;
258
273
  }, "strip", z.ZodTypeAny, {
259
274
  type: "radioButtons";
260
275
  meta: {
261
- schemaVersion: "1.0";
276
+ schemaVersion: string;
262
277
  };
263
278
  answer: string;
264
279
  }, {
265
280
  type: "radioButtons";
266
- meta: {
267
- schemaVersion: "1.0";
268
- };
269
- answer: string;
281
+ meta?: {
282
+ schemaVersion?: string | undefined;
283
+ } | undefined;
284
+ answer?: string | undefined;
270
285
  }>, z.ZodObject<{
271
- meta: z.ZodObject<{
272
- schemaVersion: z.ZodLiteral<"1.0">;
286
+ meta: z.ZodDefault<z.ZodObject<{
287
+ schemaVersion: z.ZodDefault<z.ZodString>;
273
288
  }, "strip", z.ZodTypeAny, {
274
- schemaVersion: "1.0";
289
+ schemaVersion: string;
275
290
  }, {
276
- schemaVersion: "1.0";
277
- }>;
291
+ schemaVersion?: string | undefined;
292
+ }>>;
278
293
  } & {
279
294
  type: z.ZodLiteral<"selectBox">;
280
- answer: z.ZodString;
295
+ answer: z.ZodDefault<z.ZodString>;
281
296
  }, "strip", z.ZodTypeAny, {
282
297
  type: "selectBox";
283
298
  meta: {
284
- schemaVersion: "1.0";
299
+ schemaVersion: string;
285
300
  };
286
301
  answer: string;
287
302
  }, {
288
303
  type: "selectBox";
289
- meta: {
290
- schemaVersion: "1.0";
291
- };
292
- answer: string;
304
+ meta?: {
305
+ schemaVersion?: string | undefined;
306
+ } | undefined;
307
+ answer?: string | undefined;
293
308
  }>, z.ZodObject<{
294
- meta: z.ZodObject<{
295
- schemaVersion: z.ZodLiteral<"1.0">;
309
+ meta: z.ZodDefault<z.ZodObject<{
310
+ schemaVersion: z.ZodDefault<z.ZodString>;
296
311
  }, "strip", z.ZodTypeAny, {
297
- schemaVersion: "1.0";
312
+ schemaVersion: string;
298
313
  }, {
299
- schemaVersion: "1.0";
300
- }>;
314
+ schemaVersion?: string | undefined;
315
+ }>>;
301
316
  } & {
302
317
  type: z.ZodLiteral<"text">;
303
- answer: z.ZodString;
318
+ answer: z.ZodDefault<z.ZodString>;
304
319
  }, "strip", z.ZodTypeAny, {
305
320
  type: "text";
306
321
  meta: {
307
- schemaVersion: "1.0";
322
+ schemaVersion: string;
308
323
  };
309
324
  answer: string;
310
325
  }, {
311
326
  type: "text";
312
- meta: {
313
- schemaVersion: "1.0";
314
- };
315
- answer: string;
327
+ meta?: {
328
+ schemaVersion?: string | undefined;
329
+ } | undefined;
330
+ answer?: string | undefined;
316
331
  }>, z.ZodObject<{
317
- meta: z.ZodObject<{
318
- schemaVersion: z.ZodLiteral<"1.0">;
332
+ meta: z.ZodDefault<z.ZodObject<{
333
+ schemaVersion: z.ZodDefault<z.ZodString>;
319
334
  }, "strip", z.ZodTypeAny, {
320
- schemaVersion: "1.0";
335
+ schemaVersion: string;
321
336
  }, {
322
- schemaVersion: "1.0";
323
- }>;
337
+ schemaVersion?: string | undefined;
338
+ }>>;
324
339
  } & {
325
340
  type: z.ZodLiteral<"textArea">;
326
- answer: z.ZodString;
341
+ answer: z.ZodDefault<z.ZodString>;
327
342
  }, "strip", z.ZodTypeAny, {
328
343
  type: "textArea";
329
344
  meta: {
330
- schemaVersion: "1.0";
345
+ schemaVersion: string;
331
346
  };
332
347
  answer: string;
333
348
  }, {
334
349
  type: "textArea";
335
- meta: {
336
- schemaVersion: "1.0";
337
- };
338
- answer: string;
350
+ meta?: {
351
+ schemaVersion?: string | undefined;
352
+ } | undefined;
353
+ answer?: string | undefined;
339
354
  }>, z.ZodObject<{
340
- meta: z.ZodObject<{
341
- schemaVersion: z.ZodLiteral<"1.0">;
355
+ meta: z.ZodDefault<z.ZodObject<{
356
+ schemaVersion: z.ZodDefault<z.ZodString>;
342
357
  }, "strip", z.ZodTypeAny, {
343
- schemaVersion: "1.0";
358
+ schemaVersion: string;
344
359
  }, {
345
- schemaVersion: "1.0";
346
- }>;
360
+ schemaVersion?: string | undefined;
361
+ }>>;
347
362
  } & {
348
363
  type: z.ZodLiteral<"url">;
349
- answer: z.ZodString;
364
+ answer: z.ZodDefault<z.ZodString>;
350
365
  }, "strip", z.ZodTypeAny, {
351
366
  type: "url";
352
367
  meta: {
353
- schemaVersion: "1.0";
368
+ schemaVersion: string;
354
369
  };
355
370
  answer: string;
356
371
  }, {
357
372
  type: "url";
358
- meta: {
359
- schemaVersion: "1.0";
360
- };
361
- answer: string;
373
+ meta?: {
374
+ schemaVersion?: string | undefined;
375
+ } | undefined;
376
+ answer?: string | undefined;
362
377
  }>]>;
363
- export declare const TableColumnAnswerSchema: z.ZodObject<{
364
- heading: z.ZodString;
365
- content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
366
- meta: z.ZodObject<{
367
- schemaVersion: z.ZodLiteral<"1.0">;
378
+ export declare const TableRowAnswerSchema: z.ZodObject<{
379
+ columns: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
380
+ meta: z.ZodDefault<z.ZodObject<{
381
+ schemaVersion: z.ZodDefault<z.ZodString>;
368
382
  }, "strip", z.ZodTypeAny, {
369
- schemaVersion: "1.0";
383
+ schemaVersion: string;
370
384
  }, {
371
- schemaVersion: "1.0";
372
- }>;
385
+ schemaVersion?: string | undefined;
386
+ }>>;
373
387
  } & {
374
- type: z.ZodLiteral<"typeaheadSearch">;
375
- answer: z.ZodString;
388
+ type: z.ZodLiteral<"affiliationSearch">;
389
+ answer: z.ZodDefault<z.ZodObject<{
390
+ affiliationId: z.ZodDefault<z.ZodString>;
391
+ affiliationName: z.ZodDefault<z.ZodString>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ affiliationId: string;
394
+ affiliationName: string;
395
+ }, {
396
+ affiliationId?: string | undefined;
397
+ affiliationName?: string | undefined;
398
+ }>>;
376
399
  }, "strip", z.ZodTypeAny, {
377
- type: "typeaheadSearch";
400
+ type: "affiliationSearch";
378
401
  meta: {
379
- schemaVersion: "1.0";
402
+ schemaVersion: string;
380
403
  };
381
- answer: string;
382
- }, {
383
- type: "typeaheadSearch";
384
- meta: {
385
- schemaVersion: "1.0";
404
+ answer: {
405
+ affiliationId: string;
406
+ affiliationName: string;
386
407
  };
387
- answer: string;
408
+ }, {
409
+ type: "affiliationSearch";
410
+ meta?: {
411
+ schemaVersion?: string | undefined;
412
+ } | undefined;
413
+ answer?: {
414
+ affiliationId?: string | undefined;
415
+ affiliationName?: string | undefined;
416
+ } | undefined;
388
417
  }>, z.ZodObject<{
389
- meta: z.ZodObject<{
390
- schemaVersion: z.ZodLiteral<"1.0">;
418
+ meta: z.ZodDefault<z.ZodObject<{
419
+ schemaVersion: z.ZodDefault<z.ZodString>;
391
420
  }, "strip", z.ZodTypeAny, {
392
- schemaVersion: "1.0";
421
+ schemaVersion: string;
393
422
  }, {
394
- schemaVersion: "1.0";
395
- }>;
423
+ schemaVersion?: string | undefined;
424
+ }>>;
396
425
  } & {
397
426
  type: z.ZodLiteral<"boolean">;
398
- answer: z.ZodBoolean;
427
+ answer: z.ZodDefault<z.ZodBoolean>;
399
428
  }, "strip", z.ZodTypeAny, {
400
429
  type: "boolean";
401
430
  meta: {
402
- schemaVersion: "1.0";
431
+ schemaVersion: string;
403
432
  };
404
433
  answer: boolean;
405
434
  }, {
406
435
  type: "boolean";
407
- meta: {
408
- schemaVersion: "1.0";
409
- };
410
- answer: boolean;
436
+ meta?: {
437
+ schemaVersion?: string | undefined;
438
+ } | undefined;
439
+ answer?: boolean | undefined;
411
440
  }>, z.ZodObject<{
412
- meta: z.ZodObject<{
413
- schemaVersion: z.ZodLiteral<"1.0">;
441
+ meta: z.ZodDefault<z.ZodObject<{
442
+ schemaVersion: z.ZodDefault<z.ZodString>;
414
443
  }, "strip", z.ZodTypeAny, {
415
- schemaVersion: "1.0";
444
+ schemaVersion: string;
416
445
  }, {
417
- schemaVersion: "1.0";
418
- }>;
446
+ schemaVersion?: string | undefined;
447
+ }>>;
419
448
  } & {
420
449
  type: z.ZodLiteral<"checkBoxes">;
421
- answer: z.ZodArray<z.ZodString, "many">;
450
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
422
451
  }, "strip", z.ZodTypeAny, {
423
452
  type: "checkBoxes";
424
453
  meta: {
425
- schemaVersion: "1.0";
454
+ schemaVersion: string;
426
455
  };
427
456
  answer: string[];
428
457
  }, {
429
458
  type: "checkBoxes";
430
- meta: {
431
- schemaVersion: "1.0";
432
- };
433
- answer: string[];
459
+ meta?: {
460
+ schemaVersion?: string | undefined;
461
+ } | undefined;
462
+ answer?: string[] | undefined;
434
463
  }>, z.ZodObject<{
435
- meta: z.ZodObject<{
436
- schemaVersion: z.ZodLiteral<"1.0">;
464
+ meta: z.ZodDefault<z.ZodObject<{
465
+ schemaVersion: z.ZodDefault<z.ZodString>;
437
466
  }, "strip", z.ZodTypeAny, {
438
- schemaVersion: "1.0";
467
+ schemaVersion: string;
439
468
  }, {
440
- schemaVersion: "1.0";
441
- }>;
469
+ schemaVersion?: string | undefined;
470
+ }>>;
442
471
  } & {
443
472
  type: z.ZodLiteral<"currency">;
444
- answer: z.ZodNumber;
473
+ answer: z.ZodDefault<z.ZodNumber>;
445
474
  }, "strip", z.ZodTypeAny, {
446
475
  type: "currency";
447
476
  meta: {
448
- schemaVersion: "1.0";
477
+ schemaVersion: string;
449
478
  };
450
479
  answer: number;
451
480
  }, {
452
481
  type: "currency";
453
- meta: {
454
- schemaVersion: "1.0";
455
- };
456
- answer: number;
482
+ meta?: {
483
+ schemaVersion?: string | undefined;
484
+ } | undefined;
485
+ answer?: number | undefined;
457
486
  }>, z.ZodObject<{
458
- answer: z.ZodString;
459
- meta: z.ZodObject<{
460
- schemaVersion: z.ZodLiteral<"1.0">;
487
+ meta: z.ZodDefault<z.ZodObject<{
488
+ schemaVersion: z.ZodDefault<z.ZodString>;
461
489
  }, "strip", z.ZodTypeAny, {
462
- schemaVersion: "1.0";
490
+ schemaVersion: string;
463
491
  }, {
464
- schemaVersion: "1.0";
465
- }>;
492
+ schemaVersion?: string | undefined;
493
+ }>>;
466
494
  } & {
467
495
  type: z.ZodLiteral<"date">;
496
+ answer: z.ZodDefault<z.ZodString>;
468
497
  }, "strip", z.ZodTypeAny, {
469
498
  type: "date";
470
499
  meta: {
471
- schemaVersion: "1.0";
500
+ schemaVersion: string;
472
501
  };
473
502
  answer: string;
474
503
  }, {
475
504
  type: "date";
476
- meta: {
477
- schemaVersion: "1.0";
478
- };
479
- answer: string;
505
+ meta?: {
506
+ schemaVersion?: string | undefined;
507
+ } | undefined;
508
+ answer?: string | undefined;
480
509
  }>, z.ZodObject<{
481
- meta: z.ZodObject<{
482
- schemaVersion: z.ZodLiteral<"1.0">;
510
+ meta: z.ZodDefault<z.ZodObject<{
511
+ schemaVersion: z.ZodDefault<z.ZodString>;
483
512
  }, "strip", z.ZodTypeAny, {
484
- schemaVersion: "1.0";
513
+ schemaVersion: string;
485
514
  }, {
486
- schemaVersion: "1.0";
487
- }>;
515
+ schemaVersion?: string | undefined;
516
+ }>>;
488
517
  } & {
489
518
  type: z.ZodLiteral<"dateRange">;
490
- answer: z.ZodObject<{
491
- start: z.ZodString;
492
- end: z.ZodString;
519
+ answer: z.ZodDefault<z.ZodObject<{
520
+ start: z.ZodDefault<z.ZodString>;
521
+ end: z.ZodDefault<z.ZodString>;
493
522
  }, "strip", z.ZodTypeAny, {
494
523
  start: string;
495
524
  end: string;
496
525
  }, {
497
- start: string;
498
- end: string;
499
- }>;
526
+ start?: string | undefined;
527
+ end?: string | undefined;
528
+ }>>;
500
529
  }, "strip", z.ZodTypeAny, {
501
530
  type: "dateRange";
502
531
  meta: {
503
- schemaVersion: "1.0";
532
+ schemaVersion: string;
504
533
  };
505
534
  answer: {
506
535
  start: string;
@@ -508,233 +537,232 @@ export declare const TableColumnAnswerSchema: z.ZodObject<{
508
537
  };
509
538
  }, {
510
539
  type: "dateRange";
511
- meta: {
512
- schemaVersion: "1.0";
513
- };
514
- answer: {
515
- start: string;
516
- end: string;
517
- };
540
+ meta?: {
541
+ schemaVersion?: string | undefined;
542
+ } | undefined;
543
+ answer?: {
544
+ start?: string | undefined;
545
+ end?: string | undefined;
546
+ } | undefined;
518
547
  }>, z.ZodObject<{
519
- meta: z.ZodObject<{
520
- schemaVersion: z.ZodLiteral<"1.0">;
548
+ meta: z.ZodDefault<z.ZodObject<{
549
+ schemaVersion: z.ZodDefault<z.ZodString>;
521
550
  }, "strip", z.ZodTypeAny, {
522
- schemaVersion: "1.0";
551
+ schemaVersion: string;
523
552
  }, {
524
- schemaVersion: "1.0";
525
- }>;
553
+ schemaVersion?: string | undefined;
554
+ }>>;
526
555
  } & {
527
556
  type: z.ZodLiteral<"email">;
528
- answer: z.ZodString;
557
+ answer: z.ZodDefault<z.ZodString>;
529
558
  }, "strip", z.ZodTypeAny, {
530
559
  type: "email";
531
560
  meta: {
532
- schemaVersion: "1.0";
561
+ schemaVersion: string;
533
562
  };
534
563
  answer: string;
535
564
  }, {
536
565
  type: "email";
537
- meta: {
538
- schemaVersion: "1.0";
539
- };
540
- answer: string;
566
+ meta?: {
567
+ schemaVersion?: string | undefined;
568
+ } | undefined;
569
+ answer?: string | undefined;
541
570
  }>, z.ZodObject<{
542
- meta: z.ZodObject<{
543
- schemaVersion: z.ZodLiteral<"1.0">;
571
+ meta: z.ZodDefault<z.ZodObject<{
572
+ schemaVersion: z.ZodDefault<z.ZodString>;
544
573
  }, "strip", z.ZodTypeAny, {
545
- schemaVersion: "1.0";
574
+ schemaVersion: string;
546
575
  }, {
547
- schemaVersion: "1.0";
548
- }>;
576
+ schemaVersion?: string | undefined;
577
+ }>>;
549
578
  } & {
550
579
  type: z.ZodLiteral<"filteredSearch">;
551
- answer: z.ZodArray<z.ZodString, "many">;
580
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
552
581
  }, "strip", z.ZodTypeAny, {
553
582
  type: "filteredSearch";
554
583
  meta: {
555
- schemaVersion: "1.0";
584
+ schemaVersion: string;
556
585
  };
557
586
  answer: string[];
558
587
  }, {
559
588
  type: "filteredSearch";
560
- meta: {
561
- schemaVersion: "1.0";
562
- };
563
- answer: string[];
589
+ meta?: {
590
+ schemaVersion?: string | undefined;
591
+ } | undefined;
592
+ answer?: string[] | undefined;
564
593
  }>, z.ZodObject<{
565
- meta: z.ZodObject<{
566
- schemaVersion: z.ZodLiteral<"1.0">;
594
+ meta: z.ZodDefault<z.ZodObject<{
595
+ schemaVersion: z.ZodDefault<z.ZodString>;
567
596
  }, "strip", z.ZodTypeAny, {
568
- schemaVersion: "1.0";
597
+ schemaVersion: string;
569
598
  }, {
570
- schemaVersion: "1.0";
571
- }>;
599
+ schemaVersion?: string | undefined;
600
+ }>>;
572
601
  } & {
573
602
  type: z.ZodLiteral<"multiselectBox">;
574
- answer: z.ZodArray<z.ZodString, "many">;
603
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
575
604
  }, "strip", z.ZodTypeAny, {
576
605
  type: "multiselectBox";
577
606
  meta: {
578
- schemaVersion: "1.0";
607
+ schemaVersion: string;
579
608
  };
580
609
  answer: string[];
581
610
  }, {
582
611
  type: "multiselectBox";
583
- meta: {
584
- schemaVersion: "1.0";
585
- };
586
- answer: string[];
612
+ meta?: {
613
+ schemaVersion?: string | undefined;
614
+ } | undefined;
615
+ answer?: string[] | undefined;
587
616
  }>, z.ZodObject<{
588
- meta: z.ZodObject<{
589
- schemaVersion: z.ZodLiteral<"1.0">;
617
+ meta: z.ZodDefault<z.ZodObject<{
618
+ schemaVersion: z.ZodDefault<z.ZodString>;
590
619
  }, "strip", z.ZodTypeAny, {
591
- schemaVersion: "1.0";
620
+ schemaVersion: string;
592
621
  }, {
593
- schemaVersion: "1.0";
594
- }>;
622
+ schemaVersion?: string | undefined;
623
+ }>>;
595
624
  } & {
596
625
  type: z.ZodLiteral<"number">;
597
- answer: z.ZodNumber;
626
+ answer: z.ZodDefault<z.ZodNumber>;
598
627
  }, "strip", z.ZodTypeAny, {
599
628
  type: "number";
600
629
  meta: {
601
- schemaVersion: "1.0";
630
+ schemaVersion: string;
602
631
  };
603
632
  answer: number;
604
633
  }, {
605
634
  type: "number";
606
- meta: {
607
- schemaVersion: "1.0";
608
- };
609
- answer: number;
635
+ meta?: {
636
+ schemaVersion?: string | undefined;
637
+ } | undefined;
638
+ answer?: number | undefined;
610
639
  }>, z.ZodObject<{
611
- meta: z.ZodObject<{
612
- schemaVersion: z.ZodLiteral<"1.0">;
640
+ meta: z.ZodDefault<z.ZodObject<{
641
+ schemaVersion: z.ZodDefault<z.ZodString>;
613
642
  }, "strip", z.ZodTypeAny, {
614
- schemaVersion: "1.0";
643
+ schemaVersion: string;
615
644
  }, {
616
- schemaVersion: "1.0";
617
- }>;
645
+ schemaVersion?: string | undefined;
646
+ }>>;
618
647
  } & {
619
648
  type: z.ZodLiteral<"radioButtons">;
620
- answer: z.ZodString;
649
+ answer: z.ZodDefault<z.ZodString>;
621
650
  }, "strip", z.ZodTypeAny, {
622
651
  type: "radioButtons";
623
652
  meta: {
624
- schemaVersion: "1.0";
653
+ schemaVersion: string;
625
654
  };
626
655
  answer: string;
627
656
  }, {
628
657
  type: "radioButtons";
629
- meta: {
630
- schemaVersion: "1.0";
631
- };
632
- answer: string;
658
+ meta?: {
659
+ schemaVersion?: string | undefined;
660
+ } | undefined;
661
+ answer?: string | undefined;
633
662
  }>, z.ZodObject<{
634
- meta: z.ZodObject<{
635
- schemaVersion: z.ZodLiteral<"1.0">;
663
+ meta: z.ZodDefault<z.ZodObject<{
664
+ schemaVersion: z.ZodDefault<z.ZodString>;
636
665
  }, "strip", z.ZodTypeAny, {
637
- schemaVersion: "1.0";
666
+ schemaVersion: string;
638
667
  }, {
639
- schemaVersion: "1.0";
640
- }>;
668
+ schemaVersion?: string | undefined;
669
+ }>>;
641
670
  } & {
642
671
  type: z.ZodLiteral<"selectBox">;
643
- answer: z.ZodString;
672
+ answer: z.ZodDefault<z.ZodString>;
644
673
  }, "strip", z.ZodTypeAny, {
645
674
  type: "selectBox";
646
675
  meta: {
647
- schemaVersion: "1.0";
676
+ schemaVersion: string;
648
677
  };
649
678
  answer: string;
650
679
  }, {
651
680
  type: "selectBox";
652
- meta: {
653
- schemaVersion: "1.0";
654
- };
655
- answer: string;
681
+ meta?: {
682
+ schemaVersion?: string | undefined;
683
+ } | undefined;
684
+ answer?: string | undefined;
656
685
  }>, z.ZodObject<{
657
- meta: z.ZodObject<{
658
- schemaVersion: z.ZodLiteral<"1.0">;
686
+ meta: z.ZodDefault<z.ZodObject<{
687
+ schemaVersion: z.ZodDefault<z.ZodString>;
659
688
  }, "strip", z.ZodTypeAny, {
660
- schemaVersion: "1.0";
689
+ schemaVersion: string;
661
690
  }, {
662
- schemaVersion: "1.0";
663
- }>;
691
+ schemaVersion?: string | undefined;
692
+ }>>;
664
693
  } & {
665
694
  type: z.ZodLiteral<"text">;
666
- answer: z.ZodString;
695
+ answer: z.ZodDefault<z.ZodString>;
667
696
  }, "strip", z.ZodTypeAny, {
668
697
  type: "text";
669
698
  meta: {
670
- schemaVersion: "1.0";
699
+ schemaVersion: string;
671
700
  };
672
701
  answer: string;
673
702
  }, {
674
703
  type: "text";
675
- meta: {
676
- schemaVersion: "1.0";
677
- };
678
- answer: string;
704
+ meta?: {
705
+ schemaVersion?: string | undefined;
706
+ } | undefined;
707
+ answer?: string | undefined;
679
708
  }>, z.ZodObject<{
680
- meta: z.ZodObject<{
681
- schemaVersion: z.ZodLiteral<"1.0">;
709
+ meta: z.ZodDefault<z.ZodObject<{
710
+ schemaVersion: z.ZodDefault<z.ZodString>;
682
711
  }, "strip", z.ZodTypeAny, {
683
- schemaVersion: "1.0";
712
+ schemaVersion: string;
684
713
  }, {
685
- schemaVersion: "1.0";
686
- }>;
714
+ schemaVersion?: string | undefined;
715
+ }>>;
687
716
  } & {
688
717
  type: z.ZodLiteral<"textArea">;
689
- answer: z.ZodString;
718
+ answer: z.ZodDefault<z.ZodString>;
690
719
  }, "strip", z.ZodTypeAny, {
691
720
  type: "textArea";
692
721
  meta: {
693
- schemaVersion: "1.0";
722
+ schemaVersion: string;
694
723
  };
695
724
  answer: string;
696
725
  }, {
697
726
  type: "textArea";
698
- meta: {
699
- schemaVersion: "1.0";
700
- };
701
- answer: string;
727
+ meta?: {
728
+ schemaVersion?: string | undefined;
729
+ } | undefined;
730
+ answer?: string | undefined;
702
731
  }>, z.ZodObject<{
703
- meta: z.ZodObject<{
704
- schemaVersion: z.ZodLiteral<"1.0">;
732
+ meta: z.ZodDefault<z.ZodObject<{
733
+ schemaVersion: z.ZodDefault<z.ZodString>;
705
734
  }, "strip", z.ZodTypeAny, {
706
- schemaVersion: "1.0";
735
+ schemaVersion: string;
707
736
  }, {
708
- schemaVersion: "1.0";
709
- }>;
737
+ schemaVersion?: string | undefined;
738
+ }>>;
710
739
  } & {
711
740
  type: z.ZodLiteral<"url">;
712
- answer: z.ZodString;
741
+ answer: z.ZodDefault<z.ZodString>;
713
742
  }, "strip", z.ZodTypeAny, {
714
743
  type: "url";
715
744
  meta: {
716
- schemaVersion: "1.0";
745
+ schemaVersion: string;
717
746
  };
718
747
  answer: string;
719
748
  }, {
720
749
  type: "url";
721
- meta: {
722
- schemaVersion: "1.0";
723
- };
724
- answer: string;
725
- }>]>;
750
+ meta?: {
751
+ schemaVersion?: string | undefined;
752
+ } | undefined;
753
+ answer?: string | undefined;
754
+ }>]>, "many">;
726
755
  }, "strip", z.ZodTypeAny, {
727
- heading: string;
728
- content: {
756
+ columns: ({
729
757
  type: "date";
730
758
  meta: {
731
- schemaVersion: "1.0";
759
+ schemaVersion: string;
732
760
  };
733
761
  answer: string;
734
762
  } | {
735
763
  type: "dateRange";
736
764
  meta: {
737
- schemaVersion: "1.0";
765
+ schemaVersion: string;
738
766
  };
739
767
  answer: {
740
768
  start: string;
@@ -743,321 +771,350 @@ export declare const TableColumnAnswerSchema: z.ZodObject<{
743
771
  } | {
744
772
  type: "filteredSearch";
745
773
  meta: {
746
- schemaVersion: "1.0";
774
+ schemaVersion: string;
747
775
  };
748
776
  answer: string[];
749
777
  } | {
750
- type: "typeaheadSearch";
778
+ type: "affiliationSearch";
751
779
  meta: {
752
- schemaVersion: "1.0";
780
+ schemaVersion: string;
781
+ };
782
+ answer: {
783
+ affiliationId: string;
784
+ affiliationName: string;
753
785
  };
754
- answer: string;
755
786
  } | {
756
787
  type: "boolean";
757
788
  meta: {
758
- schemaVersion: "1.0";
789
+ schemaVersion: string;
759
790
  };
760
791
  answer: boolean;
761
792
  } | {
762
793
  type: "checkBoxes";
763
794
  meta: {
764
- schemaVersion: "1.0";
795
+ schemaVersion: string;
765
796
  };
766
797
  answer: string[];
767
798
  } | {
768
799
  type: "radioButtons";
769
800
  meta: {
770
- schemaVersion: "1.0";
801
+ schemaVersion: string;
771
802
  };
772
803
  answer: string;
773
804
  } | {
774
805
  type: "selectBox";
775
806
  meta: {
776
- schemaVersion: "1.0";
807
+ schemaVersion: string;
777
808
  };
778
809
  answer: string;
779
810
  } | {
780
811
  type: "multiselectBox";
781
812
  meta: {
782
- schemaVersion: "1.0";
813
+ schemaVersion: string;
783
814
  };
784
815
  answer: string[];
785
816
  } | {
786
817
  type: "currency";
787
818
  meta: {
788
- schemaVersion: "1.0";
819
+ schemaVersion: string;
789
820
  };
790
821
  answer: number;
791
822
  } | {
792
823
  type: "number";
793
824
  meta: {
794
- schemaVersion: "1.0";
825
+ schemaVersion: string;
795
826
  };
796
827
  answer: number;
797
828
  } | {
798
829
  type: "email";
799
830
  meta: {
800
- schemaVersion: "1.0";
831
+ schemaVersion: string;
801
832
  };
802
833
  answer: string;
803
834
  } | {
804
835
  type: "text";
805
836
  meta: {
806
- schemaVersion: "1.0";
837
+ schemaVersion: string;
807
838
  };
808
839
  answer: string;
809
840
  } | {
810
841
  type: "textArea";
811
842
  meta: {
812
- schemaVersion: "1.0";
843
+ schemaVersion: string;
813
844
  };
814
845
  answer: string;
815
846
  } | {
816
847
  type: "url";
817
848
  meta: {
818
- schemaVersion: "1.0";
849
+ schemaVersion: string;
819
850
  };
820
851
  answer: string;
821
- };
852
+ })[];
822
853
  }, {
823
- heading: string;
824
- content: {
854
+ columns: ({
825
855
  type: "date";
826
- meta: {
827
- schemaVersion: "1.0";
828
- };
829
- answer: string;
856
+ meta?: {
857
+ schemaVersion?: string | undefined;
858
+ } | undefined;
859
+ answer?: string | undefined;
830
860
  } | {
831
861
  type: "dateRange";
832
- meta: {
833
- schemaVersion: "1.0";
834
- };
835
- answer: {
836
- start: string;
837
- end: string;
838
- };
862
+ meta?: {
863
+ schemaVersion?: string | undefined;
864
+ } | undefined;
865
+ answer?: {
866
+ start?: string | undefined;
867
+ end?: string | undefined;
868
+ } | undefined;
839
869
  } | {
840
870
  type: "filteredSearch";
841
- meta: {
842
- schemaVersion: "1.0";
843
- };
844
- answer: string[];
871
+ meta?: {
872
+ schemaVersion?: string | undefined;
873
+ } | undefined;
874
+ answer?: string[] | undefined;
845
875
  } | {
846
- type: "typeaheadSearch";
847
- meta: {
848
- schemaVersion: "1.0";
849
- };
850
- answer: string;
876
+ type: "affiliationSearch";
877
+ meta?: {
878
+ schemaVersion?: string | undefined;
879
+ } | undefined;
880
+ answer?: {
881
+ affiliationId?: string | undefined;
882
+ affiliationName?: string | undefined;
883
+ } | undefined;
851
884
  } | {
852
885
  type: "boolean";
853
- meta: {
854
- schemaVersion: "1.0";
855
- };
856
- answer: boolean;
886
+ meta?: {
887
+ schemaVersion?: string | undefined;
888
+ } | undefined;
889
+ answer?: boolean | undefined;
857
890
  } | {
858
891
  type: "checkBoxes";
859
- meta: {
860
- schemaVersion: "1.0";
861
- };
862
- answer: string[];
892
+ meta?: {
893
+ schemaVersion?: string | undefined;
894
+ } | undefined;
895
+ answer?: string[] | undefined;
863
896
  } | {
864
897
  type: "radioButtons";
865
- meta: {
866
- schemaVersion: "1.0";
867
- };
868
- answer: string;
898
+ meta?: {
899
+ schemaVersion?: string | undefined;
900
+ } | undefined;
901
+ answer?: string | undefined;
869
902
  } | {
870
903
  type: "selectBox";
871
- meta: {
872
- schemaVersion: "1.0";
873
- };
874
- answer: string;
904
+ meta?: {
905
+ schemaVersion?: string | undefined;
906
+ } | undefined;
907
+ answer?: string | undefined;
875
908
  } | {
876
909
  type: "multiselectBox";
877
- meta: {
878
- schemaVersion: "1.0";
879
- };
880
- answer: string[];
910
+ meta?: {
911
+ schemaVersion?: string | undefined;
912
+ } | undefined;
913
+ answer?: string[] | undefined;
881
914
  } | {
882
915
  type: "currency";
883
- meta: {
884
- schemaVersion: "1.0";
885
- };
886
- answer: number;
916
+ meta?: {
917
+ schemaVersion?: string | undefined;
918
+ } | undefined;
919
+ answer?: number | undefined;
887
920
  } | {
888
921
  type: "number";
889
- meta: {
890
- schemaVersion: "1.0";
891
- };
892
- answer: number;
922
+ meta?: {
923
+ schemaVersion?: string | undefined;
924
+ } | undefined;
925
+ answer?: number | undefined;
893
926
  } | {
894
927
  type: "email";
895
- meta: {
896
- schemaVersion: "1.0";
897
- };
898
- answer: string;
928
+ meta?: {
929
+ schemaVersion?: string | undefined;
930
+ } | undefined;
931
+ answer?: string | undefined;
899
932
  } | {
900
933
  type: "text";
901
- meta: {
902
- schemaVersion: "1.0";
903
- };
904
- answer: string;
934
+ meta?: {
935
+ schemaVersion?: string | undefined;
936
+ } | undefined;
937
+ answer?: string | undefined;
905
938
  } | {
906
939
  type: "textArea";
907
- meta: {
908
- schemaVersion: "1.0";
909
- };
910
- answer: string;
940
+ meta?: {
941
+ schemaVersion?: string | undefined;
942
+ } | undefined;
943
+ answer?: string | undefined;
911
944
  } | {
912
945
  type: "url";
913
- meta: {
914
- schemaVersion: "1.0";
915
- };
916
- answer: string;
917
- };
946
+ meta?: {
947
+ schemaVersion?: string | undefined;
948
+ } | undefined;
949
+ answer?: string | undefined;
950
+ })[];
918
951
  }>;
919
- export declare const TableRowAnswerSchema: z.ZodObject<{
920
- columns: z.ZodArray<z.ZodObject<{
921
- heading: z.ZodString;
922
- content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
923
- meta: z.ZodObject<{
924
- schemaVersion: z.ZodLiteral<"1.0">;
952
+ export declare const TableAnswerSchema: z.ZodObject<{
953
+ meta: z.ZodDefault<z.ZodObject<{
954
+ schemaVersion: z.ZodDefault<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ schemaVersion: string;
957
+ }, {
958
+ schemaVersion?: string | undefined;
959
+ }>>;
960
+ } & {
961
+ type: z.ZodLiteral<"table">;
962
+ columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
963
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
964
+ columns: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
965
+ meta: z.ZodDefault<z.ZodObject<{
966
+ schemaVersion: z.ZodDefault<z.ZodString>;
925
967
  }, "strip", z.ZodTypeAny, {
926
- schemaVersion: "1.0";
968
+ schemaVersion: string;
927
969
  }, {
928
- schemaVersion: "1.0";
929
- }>;
970
+ schemaVersion?: string | undefined;
971
+ }>>;
930
972
  } & {
931
- type: z.ZodLiteral<"typeaheadSearch">;
932
- answer: z.ZodString;
973
+ type: z.ZodLiteral<"affiliationSearch">;
974
+ answer: z.ZodDefault<z.ZodObject<{
975
+ affiliationId: z.ZodDefault<z.ZodString>;
976
+ affiliationName: z.ZodDefault<z.ZodString>;
977
+ }, "strip", z.ZodTypeAny, {
978
+ affiliationId: string;
979
+ affiliationName: string;
980
+ }, {
981
+ affiliationId?: string | undefined;
982
+ affiliationName?: string | undefined;
983
+ }>>;
933
984
  }, "strip", z.ZodTypeAny, {
934
- type: "typeaheadSearch";
985
+ type: "affiliationSearch";
935
986
  meta: {
936
- schemaVersion: "1.0";
987
+ schemaVersion: string;
937
988
  };
938
- answer: string;
939
- }, {
940
- type: "typeaheadSearch";
941
- meta: {
942
- schemaVersion: "1.0";
989
+ answer: {
990
+ affiliationId: string;
991
+ affiliationName: string;
943
992
  };
944
- answer: string;
993
+ }, {
994
+ type: "affiliationSearch";
995
+ meta?: {
996
+ schemaVersion?: string | undefined;
997
+ } | undefined;
998
+ answer?: {
999
+ affiliationId?: string | undefined;
1000
+ affiliationName?: string | undefined;
1001
+ } | undefined;
945
1002
  }>, z.ZodObject<{
946
- meta: z.ZodObject<{
947
- schemaVersion: z.ZodLiteral<"1.0">;
1003
+ meta: z.ZodDefault<z.ZodObject<{
1004
+ schemaVersion: z.ZodDefault<z.ZodString>;
948
1005
  }, "strip", z.ZodTypeAny, {
949
- schemaVersion: "1.0";
1006
+ schemaVersion: string;
950
1007
  }, {
951
- schemaVersion: "1.0";
952
- }>;
1008
+ schemaVersion?: string | undefined;
1009
+ }>>;
953
1010
  } & {
954
1011
  type: z.ZodLiteral<"boolean">;
955
- answer: z.ZodBoolean;
1012
+ answer: z.ZodDefault<z.ZodBoolean>;
956
1013
  }, "strip", z.ZodTypeAny, {
957
1014
  type: "boolean";
958
1015
  meta: {
959
- schemaVersion: "1.0";
1016
+ schemaVersion: string;
960
1017
  };
961
1018
  answer: boolean;
962
1019
  }, {
963
1020
  type: "boolean";
964
- meta: {
965
- schemaVersion: "1.0";
966
- };
967
- answer: boolean;
1021
+ meta?: {
1022
+ schemaVersion?: string | undefined;
1023
+ } | undefined;
1024
+ answer?: boolean | undefined;
968
1025
  }>, z.ZodObject<{
969
- meta: z.ZodObject<{
970
- schemaVersion: z.ZodLiteral<"1.0">;
1026
+ meta: z.ZodDefault<z.ZodObject<{
1027
+ schemaVersion: z.ZodDefault<z.ZodString>;
971
1028
  }, "strip", z.ZodTypeAny, {
972
- schemaVersion: "1.0";
1029
+ schemaVersion: string;
973
1030
  }, {
974
- schemaVersion: "1.0";
975
- }>;
1031
+ schemaVersion?: string | undefined;
1032
+ }>>;
976
1033
  } & {
977
1034
  type: z.ZodLiteral<"checkBoxes">;
978
- answer: z.ZodArray<z.ZodString, "many">;
1035
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
979
1036
  }, "strip", z.ZodTypeAny, {
980
1037
  type: "checkBoxes";
981
1038
  meta: {
982
- schemaVersion: "1.0";
1039
+ schemaVersion: string;
983
1040
  };
984
1041
  answer: string[];
985
1042
  }, {
986
1043
  type: "checkBoxes";
987
- meta: {
988
- schemaVersion: "1.0";
989
- };
990
- answer: string[];
1044
+ meta?: {
1045
+ schemaVersion?: string | undefined;
1046
+ } | undefined;
1047
+ answer?: string[] | undefined;
991
1048
  }>, z.ZodObject<{
992
- meta: z.ZodObject<{
993
- schemaVersion: z.ZodLiteral<"1.0">;
1049
+ meta: z.ZodDefault<z.ZodObject<{
1050
+ schemaVersion: z.ZodDefault<z.ZodString>;
994
1051
  }, "strip", z.ZodTypeAny, {
995
- schemaVersion: "1.0";
1052
+ schemaVersion: string;
996
1053
  }, {
997
- schemaVersion: "1.0";
998
- }>;
1054
+ schemaVersion?: string | undefined;
1055
+ }>>;
999
1056
  } & {
1000
1057
  type: z.ZodLiteral<"currency">;
1001
- answer: z.ZodNumber;
1058
+ answer: z.ZodDefault<z.ZodNumber>;
1002
1059
  }, "strip", z.ZodTypeAny, {
1003
1060
  type: "currency";
1004
1061
  meta: {
1005
- schemaVersion: "1.0";
1062
+ schemaVersion: string;
1006
1063
  };
1007
1064
  answer: number;
1008
1065
  }, {
1009
1066
  type: "currency";
1010
- meta: {
1011
- schemaVersion: "1.0";
1012
- };
1013
- answer: number;
1067
+ meta?: {
1068
+ schemaVersion?: string | undefined;
1069
+ } | undefined;
1070
+ answer?: number | undefined;
1014
1071
  }>, z.ZodObject<{
1015
- answer: z.ZodString;
1016
- meta: z.ZodObject<{
1017
- schemaVersion: z.ZodLiteral<"1.0">;
1072
+ meta: z.ZodDefault<z.ZodObject<{
1073
+ schemaVersion: z.ZodDefault<z.ZodString>;
1018
1074
  }, "strip", z.ZodTypeAny, {
1019
- schemaVersion: "1.0";
1075
+ schemaVersion: string;
1020
1076
  }, {
1021
- schemaVersion: "1.0";
1022
- }>;
1077
+ schemaVersion?: string | undefined;
1078
+ }>>;
1023
1079
  } & {
1024
1080
  type: z.ZodLiteral<"date">;
1081
+ answer: z.ZodDefault<z.ZodString>;
1025
1082
  }, "strip", z.ZodTypeAny, {
1026
1083
  type: "date";
1027
1084
  meta: {
1028
- schemaVersion: "1.0";
1085
+ schemaVersion: string;
1029
1086
  };
1030
1087
  answer: string;
1031
1088
  }, {
1032
1089
  type: "date";
1033
- meta: {
1034
- schemaVersion: "1.0";
1035
- };
1036
- answer: string;
1090
+ meta?: {
1091
+ schemaVersion?: string | undefined;
1092
+ } | undefined;
1093
+ answer?: string | undefined;
1037
1094
  }>, z.ZodObject<{
1038
- meta: z.ZodObject<{
1039
- schemaVersion: z.ZodLiteral<"1.0">;
1095
+ meta: z.ZodDefault<z.ZodObject<{
1096
+ schemaVersion: z.ZodDefault<z.ZodString>;
1040
1097
  }, "strip", z.ZodTypeAny, {
1041
- schemaVersion: "1.0";
1098
+ schemaVersion: string;
1042
1099
  }, {
1043
- schemaVersion: "1.0";
1044
- }>;
1100
+ schemaVersion?: string | undefined;
1101
+ }>>;
1045
1102
  } & {
1046
1103
  type: z.ZodLiteral<"dateRange">;
1047
- answer: z.ZodObject<{
1048
- start: z.ZodString;
1049
- end: z.ZodString;
1104
+ answer: z.ZodDefault<z.ZodObject<{
1105
+ start: z.ZodDefault<z.ZodString>;
1106
+ end: z.ZodDefault<z.ZodString>;
1050
1107
  }, "strip", z.ZodTypeAny, {
1051
1108
  start: string;
1052
1109
  end: string;
1053
1110
  }, {
1054
- start: string;
1055
- end: string;
1056
- }>;
1111
+ start?: string | undefined;
1112
+ end?: string | undefined;
1113
+ }>>;
1057
1114
  }, "strip", z.ZodTypeAny, {
1058
1115
  type: "dateRange";
1059
1116
  meta: {
1060
- schemaVersion: "1.0";
1117
+ schemaVersion: string;
1061
1118
  };
1062
1119
  answer: {
1063
1120
  start: string;
@@ -1065,233 +1122,232 @@ export declare const TableRowAnswerSchema: z.ZodObject<{
1065
1122
  };
1066
1123
  }, {
1067
1124
  type: "dateRange";
1068
- meta: {
1069
- schemaVersion: "1.0";
1070
- };
1071
- answer: {
1072
- start: string;
1073
- end: string;
1074
- };
1125
+ meta?: {
1126
+ schemaVersion?: string | undefined;
1127
+ } | undefined;
1128
+ answer?: {
1129
+ start?: string | undefined;
1130
+ end?: string | undefined;
1131
+ } | undefined;
1075
1132
  }>, z.ZodObject<{
1076
- meta: z.ZodObject<{
1077
- schemaVersion: z.ZodLiteral<"1.0">;
1133
+ meta: z.ZodDefault<z.ZodObject<{
1134
+ schemaVersion: z.ZodDefault<z.ZodString>;
1078
1135
  }, "strip", z.ZodTypeAny, {
1079
- schemaVersion: "1.0";
1136
+ schemaVersion: string;
1080
1137
  }, {
1081
- schemaVersion: "1.0";
1082
- }>;
1138
+ schemaVersion?: string | undefined;
1139
+ }>>;
1083
1140
  } & {
1084
1141
  type: z.ZodLiteral<"email">;
1085
- answer: z.ZodString;
1142
+ answer: z.ZodDefault<z.ZodString>;
1086
1143
  }, "strip", z.ZodTypeAny, {
1087
1144
  type: "email";
1088
1145
  meta: {
1089
- schemaVersion: "1.0";
1146
+ schemaVersion: string;
1090
1147
  };
1091
1148
  answer: string;
1092
1149
  }, {
1093
1150
  type: "email";
1094
- meta: {
1095
- schemaVersion: "1.0";
1096
- };
1097
- answer: string;
1151
+ meta?: {
1152
+ schemaVersion?: string | undefined;
1153
+ } | undefined;
1154
+ answer?: string | undefined;
1098
1155
  }>, z.ZodObject<{
1099
- meta: z.ZodObject<{
1100
- schemaVersion: z.ZodLiteral<"1.0">;
1156
+ meta: z.ZodDefault<z.ZodObject<{
1157
+ schemaVersion: z.ZodDefault<z.ZodString>;
1101
1158
  }, "strip", z.ZodTypeAny, {
1102
- schemaVersion: "1.0";
1159
+ schemaVersion: string;
1103
1160
  }, {
1104
- schemaVersion: "1.0";
1105
- }>;
1161
+ schemaVersion?: string | undefined;
1162
+ }>>;
1106
1163
  } & {
1107
1164
  type: z.ZodLiteral<"filteredSearch">;
1108
- answer: z.ZodArray<z.ZodString, "many">;
1165
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1109
1166
  }, "strip", z.ZodTypeAny, {
1110
1167
  type: "filteredSearch";
1111
1168
  meta: {
1112
- schemaVersion: "1.0";
1169
+ schemaVersion: string;
1113
1170
  };
1114
1171
  answer: string[];
1115
1172
  }, {
1116
1173
  type: "filteredSearch";
1117
- meta: {
1118
- schemaVersion: "1.0";
1119
- };
1120
- answer: string[];
1174
+ meta?: {
1175
+ schemaVersion?: string | undefined;
1176
+ } | undefined;
1177
+ answer?: string[] | undefined;
1121
1178
  }>, z.ZodObject<{
1122
- meta: z.ZodObject<{
1123
- schemaVersion: z.ZodLiteral<"1.0">;
1179
+ meta: z.ZodDefault<z.ZodObject<{
1180
+ schemaVersion: z.ZodDefault<z.ZodString>;
1124
1181
  }, "strip", z.ZodTypeAny, {
1125
- schemaVersion: "1.0";
1182
+ schemaVersion: string;
1126
1183
  }, {
1127
- schemaVersion: "1.0";
1128
- }>;
1184
+ schemaVersion?: string | undefined;
1185
+ }>>;
1129
1186
  } & {
1130
1187
  type: z.ZodLiteral<"multiselectBox">;
1131
- answer: z.ZodArray<z.ZodString, "many">;
1188
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1132
1189
  }, "strip", z.ZodTypeAny, {
1133
1190
  type: "multiselectBox";
1134
1191
  meta: {
1135
- schemaVersion: "1.0";
1192
+ schemaVersion: string;
1136
1193
  };
1137
1194
  answer: string[];
1138
1195
  }, {
1139
1196
  type: "multiselectBox";
1140
- meta: {
1141
- schemaVersion: "1.0";
1142
- };
1143
- answer: string[];
1197
+ meta?: {
1198
+ schemaVersion?: string | undefined;
1199
+ } | undefined;
1200
+ answer?: string[] | undefined;
1144
1201
  }>, z.ZodObject<{
1145
- meta: z.ZodObject<{
1146
- schemaVersion: z.ZodLiteral<"1.0">;
1202
+ meta: z.ZodDefault<z.ZodObject<{
1203
+ schemaVersion: z.ZodDefault<z.ZodString>;
1147
1204
  }, "strip", z.ZodTypeAny, {
1148
- schemaVersion: "1.0";
1205
+ schemaVersion: string;
1149
1206
  }, {
1150
- schemaVersion: "1.0";
1151
- }>;
1207
+ schemaVersion?: string | undefined;
1208
+ }>>;
1152
1209
  } & {
1153
1210
  type: z.ZodLiteral<"number">;
1154
- answer: z.ZodNumber;
1211
+ answer: z.ZodDefault<z.ZodNumber>;
1155
1212
  }, "strip", z.ZodTypeAny, {
1156
1213
  type: "number";
1157
1214
  meta: {
1158
- schemaVersion: "1.0";
1215
+ schemaVersion: string;
1159
1216
  };
1160
1217
  answer: number;
1161
1218
  }, {
1162
1219
  type: "number";
1163
- meta: {
1164
- schemaVersion: "1.0";
1165
- };
1166
- answer: number;
1220
+ meta?: {
1221
+ schemaVersion?: string | undefined;
1222
+ } | undefined;
1223
+ answer?: number | undefined;
1167
1224
  }>, z.ZodObject<{
1168
- meta: z.ZodObject<{
1169
- schemaVersion: z.ZodLiteral<"1.0">;
1225
+ meta: z.ZodDefault<z.ZodObject<{
1226
+ schemaVersion: z.ZodDefault<z.ZodString>;
1170
1227
  }, "strip", z.ZodTypeAny, {
1171
- schemaVersion: "1.0";
1228
+ schemaVersion: string;
1172
1229
  }, {
1173
- schemaVersion: "1.0";
1174
- }>;
1230
+ schemaVersion?: string | undefined;
1231
+ }>>;
1175
1232
  } & {
1176
1233
  type: z.ZodLiteral<"radioButtons">;
1177
- answer: z.ZodString;
1234
+ answer: z.ZodDefault<z.ZodString>;
1178
1235
  }, "strip", z.ZodTypeAny, {
1179
1236
  type: "radioButtons";
1180
1237
  meta: {
1181
- schemaVersion: "1.0";
1238
+ schemaVersion: string;
1182
1239
  };
1183
1240
  answer: string;
1184
1241
  }, {
1185
1242
  type: "radioButtons";
1186
- meta: {
1187
- schemaVersion: "1.0";
1188
- };
1189
- answer: string;
1243
+ meta?: {
1244
+ schemaVersion?: string | undefined;
1245
+ } | undefined;
1246
+ answer?: string | undefined;
1190
1247
  }>, z.ZodObject<{
1191
- meta: z.ZodObject<{
1192
- schemaVersion: z.ZodLiteral<"1.0">;
1248
+ meta: z.ZodDefault<z.ZodObject<{
1249
+ schemaVersion: z.ZodDefault<z.ZodString>;
1193
1250
  }, "strip", z.ZodTypeAny, {
1194
- schemaVersion: "1.0";
1251
+ schemaVersion: string;
1195
1252
  }, {
1196
- schemaVersion: "1.0";
1197
- }>;
1253
+ schemaVersion?: string | undefined;
1254
+ }>>;
1198
1255
  } & {
1199
1256
  type: z.ZodLiteral<"selectBox">;
1200
- answer: z.ZodString;
1257
+ answer: z.ZodDefault<z.ZodString>;
1201
1258
  }, "strip", z.ZodTypeAny, {
1202
1259
  type: "selectBox";
1203
1260
  meta: {
1204
- schemaVersion: "1.0";
1261
+ schemaVersion: string;
1205
1262
  };
1206
1263
  answer: string;
1207
1264
  }, {
1208
1265
  type: "selectBox";
1209
- meta: {
1210
- schemaVersion: "1.0";
1211
- };
1212
- answer: string;
1266
+ meta?: {
1267
+ schemaVersion?: string | undefined;
1268
+ } | undefined;
1269
+ answer?: string | undefined;
1213
1270
  }>, z.ZodObject<{
1214
- meta: z.ZodObject<{
1215
- schemaVersion: z.ZodLiteral<"1.0">;
1271
+ meta: z.ZodDefault<z.ZodObject<{
1272
+ schemaVersion: z.ZodDefault<z.ZodString>;
1216
1273
  }, "strip", z.ZodTypeAny, {
1217
- schemaVersion: "1.0";
1274
+ schemaVersion: string;
1218
1275
  }, {
1219
- schemaVersion: "1.0";
1220
- }>;
1276
+ schemaVersion?: string | undefined;
1277
+ }>>;
1221
1278
  } & {
1222
1279
  type: z.ZodLiteral<"text">;
1223
- answer: z.ZodString;
1280
+ answer: z.ZodDefault<z.ZodString>;
1224
1281
  }, "strip", z.ZodTypeAny, {
1225
1282
  type: "text";
1226
1283
  meta: {
1227
- schemaVersion: "1.0";
1284
+ schemaVersion: string;
1228
1285
  };
1229
1286
  answer: string;
1230
1287
  }, {
1231
1288
  type: "text";
1232
- meta: {
1233
- schemaVersion: "1.0";
1234
- };
1235
- answer: string;
1289
+ meta?: {
1290
+ schemaVersion?: string | undefined;
1291
+ } | undefined;
1292
+ answer?: string | undefined;
1236
1293
  }>, z.ZodObject<{
1237
- meta: z.ZodObject<{
1238
- schemaVersion: z.ZodLiteral<"1.0">;
1294
+ meta: z.ZodDefault<z.ZodObject<{
1295
+ schemaVersion: z.ZodDefault<z.ZodString>;
1239
1296
  }, "strip", z.ZodTypeAny, {
1240
- schemaVersion: "1.0";
1297
+ schemaVersion: string;
1241
1298
  }, {
1242
- schemaVersion: "1.0";
1243
- }>;
1299
+ schemaVersion?: string | undefined;
1300
+ }>>;
1244
1301
  } & {
1245
1302
  type: z.ZodLiteral<"textArea">;
1246
- answer: z.ZodString;
1303
+ answer: z.ZodDefault<z.ZodString>;
1247
1304
  }, "strip", z.ZodTypeAny, {
1248
1305
  type: "textArea";
1249
1306
  meta: {
1250
- schemaVersion: "1.0";
1307
+ schemaVersion: string;
1251
1308
  };
1252
1309
  answer: string;
1253
1310
  }, {
1254
1311
  type: "textArea";
1255
- meta: {
1256
- schemaVersion: "1.0";
1257
- };
1258
- answer: string;
1312
+ meta?: {
1313
+ schemaVersion?: string | undefined;
1314
+ } | undefined;
1315
+ answer?: string | undefined;
1259
1316
  }>, z.ZodObject<{
1260
- meta: z.ZodObject<{
1261
- schemaVersion: z.ZodLiteral<"1.0">;
1317
+ meta: z.ZodDefault<z.ZodObject<{
1318
+ schemaVersion: z.ZodDefault<z.ZodString>;
1262
1319
  }, "strip", z.ZodTypeAny, {
1263
- schemaVersion: "1.0";
1320
+ schemaVersion: string;
1264
1321
  }, {
1265
- schemaVersion: "1.0";
1266
- }>;
1322
+ schemaVersion?: string | undefined;
1323
+ }>>;
1267
1324
  } & {
1268
1325
  type: z.ZodLiteral<"url">;
1269
- answer: z.ZodString;
1326
+ answer: z.ZodDefault<z.ZodString>;
1270
1327
  }, "strip", z.ZodTypeAny, {
1271
1328
  type: "url";
1272
1329
  meta: {
1273
- schemaVersion: "1.0";
1330
+ schemaVersion: string;
1274
1331
  };
1275
1332
  answer: string;
1276
1333
  }, {
1277
1334
  type: "url";
1278
- meta: {
1279
- schemaVersion: "1.0";
1280
- };
1281
- answer: string;
1282
- }>]>;
1335
+ meta?: {
1336
+ schemaVersion?: string | undefined;
1337
+ } | undefined;
1338
+ answer?: string | undefined;
1339
+ }>]>, "many">;
1283
1340
  }, "strip", z.ZodTypeAny, {
1284
- heading: string;
1285
- content: {
1341
+ columns: ({
1286
1342
  type: "date";
1287
1343
  meta: {
1288
- schemaVersion: "1.0";
1344
+ schemaVersion: string;
1289
1345
  };
1290
1346
  answer: string;
1291
1347
  } | {
1292
1348
  type: "dateRange";
1293
1349
  meta: {
1294
- schemaVersion: "1.0";
1350
+ schemaVersion: string;
1295
1351
  };
1296
1352
  answer: {
1297
1353
  start: string;
@@ -1300,192 +1356,200 @@ export declare const TableRowAnswerSchema: z.ZodObject<{
1300
1356
  } | {
1301
1357
  type: "filteredSearch";
1302
1358
  meta: {
1303
- schemaVersion: "1.0";
1359
+ schemaVersion: string;
1304
1360
  };
1305
1361
  answer: string[];
1306
1362
  } | {
1307
- type: "typeaheadSearch";
1363
+ type: "affiliationSearch";
1308
1364
  meta: {
1309
- schemaVersion: "1.0";
1365
+ schemaVersion: string;
1366
+ };
1367
+ answer: {
1368
+ affiliationId: string;
1369
+ affiliationName: string;
1310
1370
  };
1311
- answer: string;
1312
1371
  } | {
1313
1372
  type: "boolean";
1314
1373
  meta: {
1315
- schemaVersion: "1.0";
1374
+ schemaVersion: string;
1316
1375
  };
1317
1376
  answer: boolean;
1318
1377
  } | {
1319
1378
  type: "checkBoxes";
1320
1379
  meta: {
1321
- schemaVersion: "1.0";
1380
+ schemaVersion: string;
1322
1381
  };
1323
1382
  answer: string[];
1324
1383
  } | {
1325
1384
  type: "radioButtons";
1326
1385
  meta: {
1327
- schemaVersion: "1.0";
1386
+ schemaVersion: string;
1328
1387
  };
1329
1388
  answer: string;
1330
1389
  } | {
1331
1390
  type: "selectBox";
1332
1391
  meta: {
1333
- schemaVersion: "1.0";
1392
+ schemaVersion: string;
1334
1393
  };
1335
1394
  answer: string;
1336
1395
  } | {
1337
1396
  type: "multiselectBox";
1338
1397
  meta: {
1339
- schemaVersion: "1.0";
1398
+ schemaVersion: string;
1340
1399
  };
1341
1400
  answer: string[];
1342
1401
  } | {
1343
1402
  type: "currency";
1344
1403
  meta: {
1345
- schemaVersion: "1.0";
1404
+ schemaVersion: string;
1346
1405
  };
1347
1406
  answer: number;
1348
1407
  } | {
1349
1408
  type: "number";
1350
1409
  meta: {
1351
- schemaVersion: "1.0";
1410
+ schemaVersion: string;
1352
1411
  };
1353
1412
  answer: number;
1354
1413
  } | {
1355
1414
  type: "email";
1356
1415
  meta: {
1357
- schemaVersion: "1.0";
1416
+ schemaVersion: string;
1358
1417
  };
1359
1418
  answer: string;
1360
1419
  } | {
1361
1420
  type: "text";
1362
1421
  meta: {
1363
- schemaVersion: "1.0";
1422
+ schemaVersion: string;
1364
1423
  };
1365
1424
  answer: string;
1366
1425
  } | {
1367
1426
  type: "textArea";
1368
1427
  meta: {
1369
- schemaVersion: "1.0";
1428
+ schemaVersion: string;
1370
1429
  };
1371
1430
  answer: string;
1372
1431
  } | {
1373
1432
  type: "url";
1374
1433
  meta: {
1375
- schemaVersion: "1.0";
1434
+ schemaVersion: string;
1376
1435
  };
1377
1436
  answer: string;
1378
- };
1437
+ })[];
1379
1438
  }, {
1380
- heading: string;
1381
- content: {
1439
+ columns: ({
1382
1440
  type: "date";
1383
- meta: {
1384
- schemaVersion: "1.0";
1385
- };
1386
- answer: string;
1441
+ meta?: {
1442
+ schemaVersion?: string | undefined;
1443
+ } | undefined;
1444
+ answer?: string | undefined;
1387
1445
  } | {
1388
1446
  type: "dateRange";
1389
- meta: {
1390
- schemaVersion: "1.0";
1391
- };
1392
- answer: {
1393
- start: string;
1394
- end: string;
1395
- };
1447
+ meta?: {
1448
+ schemaVersion?: string | undefined;
1449
+ } | undefined;
1450
+ answer?: {
1451
+ start?: string | undefined;
1452
+ end?: string | undefined;
1453
+ } | undefined;
1396
1454
  } | {
1397
1455
  type: "filteredSearch";
1398
- meta: {
1399
- schemaVersion: "1.0";
1400
- };
1401
- answer: string[];
1456
+ meta?: {
1457
+ schemaVersion?: string | undefined;
1458
+ } | undefined;
1459
+ answer?: string[] | undefined;
1402
1460
  } | {
1403
- type: "typeaheadSearch";
1404
- meta: {
1405
- schemaVersion: "1.0";
1406
- };
1407
- answer: string;
1461
+ type: "affiliationSearch";
1462
+ meta?: {
1463
+ schemaVersion?: string | undefined;
1464
+ } | undefined;
1465
+ answer?: {
1466
+ affiliationId?: string | undefined;
1467
+ affiliationName?: string | undefined;
1468
+ } | undefined;
1408
1469
  } | {
1409
1470
  type: "boolean";
1410
- meta: {
1411
- schemaVersion: "1.0";
1412
- };
1413
- answer: boolean;
1471
+ meta?: {
1472
+ schemaVersion?: string | undefined;
1473
+ } | undefined;
1474
+ answer?: boolean | undefined;
1414
1475
  } | {
1415
1476
  type: "checkBoxes";
1416
- meta: {
1417
- schemaVersion: "1.0";
1418
- };
1419
- answer: string[];
1477
+ meta?: {
1478
+ schemaVersion?: string | undefined;
1479
+ } | undefined;
1480
+ answer?: string[] | undefined;
1420
1481
  } | {
1421
1482
  type: "radioButtons";
1422
- meta: {
1423
- schemaVersion: "1.0";
1424
- };
1425
- answer: string;
1483
+ meta?: {
1484
+ schemaVersion?: string | undefined;
1485
+ } | undefined;
1486
+ answer?: string | undefined;
1426
1487
  } | {
1427
1488
  type: "selectBox";
1428
- meta: {
1429
- schemaVersion: "1.0";
1430
- };
1431
- answer: string;
1489
+ meta?: {
1490
+ schemaVersion?: string | undefined;
1491
+ } | undefined;
1492
+ answer?: string | undefined;
1432
1493
  } | {
1433
1494
  type: "multiselectBox";
1434
- meta: {
1435
- schemaVersion: "1.0";
1436
- };
1437
- answer: string[];
1495
+ meta?: {
1496
+ schemaVersion?: string | undefined;
1497
+ } | undefined;
1498
+ answer?: string[] | undefined;
1438
1499
  } | {
1439
1500
  type: "currency";
1440
- meta: {
1441
- schemaVersion: "1.0";
1442
- };
1443
- answer: number;
1501
+ meta?: {
1502
+ schemaVersion?: string | undefined;
1503
+ } | undefined;
1504
+ answer?: number | undefined;
1444
1505
  } | {
1445
1506
  type: "number";
1446
- meta: {
1447
- schemaVersion: "1.0";
1448
- };
1449
- answer: number;
1507
+ meta?: {
1508
+ schemaVersion?: string | undefined;
1509
+ } | undefined;
1510
+ answer?: number | undefined;
1450
1511
  } | {
1451
1512
  type: "email";
1452
- meta: {
1453
- schemaVersion: "1.0";
1454
- };
1455
- answer: string;
1513
+ meta?: {
1514
+ schemaVersion?: string | undefined;
1515
+ } | undefined;
1516
+ answer?: string | undefined;
1456
1517
  } | {
1457
1518
  type: "text";
1458
- meta: {
1459
- schemaVersion: "1.0";
1460
- };
1461
- answer: string;
1519
+ meta?: {
1520
+ schemaVersion?: string | undefined;
1521
+ } | undefined;
1522
+ answer?: string | undefined;
1462
1523
  } | {
1463
1524
  type: "textArea";
1464
- meta: {
1465
- schemaVersion: "1.0";
1466
- };
1467
- answer: string;
1525
+ meta?: {
1526
+ schemaVersion?: string | undefined;
1527
+ } | undefined;
1528
+ answer?: string | undefined;
1468
1529
  } | {
1469
1530
  type: "url";
1470
- meta: {
1471
- schemaVersion: "1.0";
1472
- };
1473
- answer: string;
1474
- };
1475
- }>, "many">;
1531
+ meta?: {
1532
+ schemaVersion?: string | undefined;
1533
+ } | undefined;
1534
+ answer?: string | undefined;
1535
+ })[];
1536
+ }>, "many">>;
1476
1537
  }, "strip", z.ZodTypeAny, {
1477
- columns: {
1478
- heading: string;
1479
- content: {
1538
+ type: "table";
1539
+ meta: {
1540
+ schemaVersion: string;
1541
+ };
1542
+ answer: {
1543
+ columns: ({
1480
1544
  type: "date";
1481
1545
  meta: {
1482
- schemaVersion: "1.0";
1546
+ schemaVersion: string;
1483
1547
  };
1484
1548
  answer: string;
1485
1549
  } | {
1486
1550
  type: "dateRange";
1487
1551
  meta: {
1488
- schemaVersion: "1.0";
1552
+ schemaVersion: string;
1489
1553
  };
1490
1554
  answer: {
1491
1555
  start: string;
@@ -1494,1154 +1558,192 @@ export declare const TableRowAnswerSchema: z.ZodObject<{
1494
1558
  } | {
1495
1559
  type: "filteredSearch";
1496
1560
  meta: {
1497
- schemaVersion: "1.0";
1561
+ schemaVersion: string;
1498
1562
  };
1499
1563
  answer: string[];
1500
1564
  } | {
1501
- type: "typeaheadSearch";
1565
+ type: "affiliationSearch";
1502
1566
  meta: {
1503
- schemaVersion: "1.0";
1567
+ schemaVersion: string;
1568
+ };
1569
+ answer: {
1570
+ affiliationId: string;
1571
+ affiliationName: string;
1504
1572
  };
1505
- answer: string;
1506
1573
  } | {
1507
1574
  type: "boolean";
1508
1575
  meta: {
1509
- schemaVersion: "1.0";
1576
+ schemaVersion: string;
1510
1577
  };
1511
1578
  answer: boolean;
1512
1579
  } | {
1513
1580
  type: "checkBoxes";
1514
1581
  meta: {
1515
- schemaVersion: "1.0";
1582
+ schemaVersion: string;
1516
1583
  };
1517
1584
  answer: string[];
1518
1585
  } | {
1519
1586
  type: "radioButtons";
1520
1587
  meta: {
1521
- schemaVersion: "1.0";
1588
+ schemaVersion: string;
1522
1589
  };
1523
1590
  answer: string;
1524
1591
  } | {
1525
1592
  type: "selectBox";
1526
1593
  meta: {
1527
- schemaVersion: "1.0";
1594
+ schemaVersion: string;
1528
1595
  };
1529
1596
  answer: string;
1530
1597
  } | {
1531
1598
  type: "multiselectBox";
1532
1599
  meta: {
1533
- schemaVersion: "1.0";
1600
+ schemaVersion: string;
1534
1601
  };
1535
1602
  answer: string[];
1536
1603
  } | {
1537
1604
  type: "currency";
1538
1605
  meta: {
1539
- schemaVersion: "1.0";
1606
+ schemaVersion: string;
1540
1607
  };
1541
1608
  answer: number;
1542
1609
  } | {
1543
1610
  type: "number";
1544
1611
  meta: {
1545
- schemaVersion: "1.0";
1612
+ schemaVersion: string;
1546
1613
  };
1547
1614
  answer: number;
1548
1615
  } | {
1549
1616
  type: "email";
1550
1617
  meta: {
1551
- schemaVersion: "1.0";
1618
+ schemaVersion: string;
1552
1619
  };
1553
1620
  answer: string;
1554
1621
  } | {
1555
1622
  type: "text";
1556
1623
  meta: {
1557
- schemaVersion: "1.0";
1624
+ schemaVersion: string;
1558
1625
  };
1559
1626
  answer: string;
1560
1627
  } | {
1561
1628
  type: "textArea";
1562
1629
  meta: {
1563
- schemaVersion: "1.0";
1630
+ schemaVersion: string;
1564
1631
  };
1565
1632
  answer: string;
1566
1633
  } | {
1567
1634
  type: "url";
1568
1635
  meta: {
1569
- schemaVersion: "1.0";
1636
+ schemaVersion: string;
1570
1637
  };
1571
1638
  answer: string;
1572
- };
1639
+ })[];
1573
1640
  }[];
1641
+ columnHeadings: string[];
1574
1642
  }, {
1575
- columns: {
1576
- heading: string;
1577
- content: {
1643
+ type: "table";
1644
+ meta?: {
1645
+ schemaVersion?: string | undefined;
1646
+ } | undefined;
1647
+ answer?: {
1648
+ columns: ({
1578
1649
  type: "date";
1579
- meta: {
1580
- schemaVersion: "1.0";
1581
- };
1582
- answer: string;
1650
+ meta?: {
1651
+ schemaVersion?: string | undefined;
1652
+ } | undefined;
1653
+ answer?: string | undefined;
1583
1654
  } | {
1584
1655
  type: "dateRange";
1585
- meta: {
1586
- schemaVersion: "1.0";
1587
- };
1588
- answer: {
1589
- start: string;
1590
- end: string;
1591
- };
1656
+ meta?: {
1657
+ schemaVersion?: string | undefined;
1658
+ } | undefined;
1659
+ answer?: {
1660
+ start?: string | undefined;
1661
+ end?: string | undefined;
1662
+ } | undefined;
1592
1663
  } | {
1593
1664
  type: "filteredSearch";
1594
- meta: {
1595
- schemaVersion: "1.0";
1596
- };
1597
- answer: string[];
1665
+ meta?: {
1666
+ schemaVersion?: string | undefined;
1667
+ } | undefined;
1668
+ answer?: string[] | undefined;
1598
1669
  } | {
1599
- type: "typeaheadSearch";
1600
- meta: {
1601
- schemaVersion: "1.0";
1602
- };
1603
- answer: string;
1670
+ type: "affiliationSearch";
1671
+ meta?: {
1672
+ schemaVersion?: string | undefined;
1673
+ } | undefined;
1674
+ answer?: {
1675
+ affiliationId?: string | undefined;
1676
+ affiliationName?: string | undefined;
1677
+ } | undefined;
1604
1678
  } | {
1605
1679
  type: "boolean";
1606
- meta: {
1607
- schemaVersion: "1.0";
1608
- };
1609
- answer: boolean;
1680
+ meta?: {
1681
+ schemaVersion?: string | undefined;
1682
+ } | undefined;
1683
+ answer?: boolean | undefined;
1610
1684
  } | {
1611
1685
  type: "checkBoxes";
1612
- meta: {
1613
- schemaVersion: "1.0";
1614
- };
1615
- answer: string[];
1686
+ meta?: {
1687
+ schemaVersion?: string | undefined;
1688
+ } | undefined;
1689
+ answer?: string[] | undefined;
1616
1690
  } | {
1617
1691
  type: "radioButtons";
1618
- meta: {
1619
- schemaVersion: "1.0";
1620
- };
1621
- answer: string;
1692
+ meta?: {
1693
+ schemaVersion?: string | undefined;
1694
+ } | undefined;
1695
+ answer?: string | undefined;
1622
1696
  } | {
1623
1697
  type: "selectBox";
1624
- meta: {
1625
- schemaVersion: "1.0";
1626
- };
1627
- answer: string;
1698
+ meta?: {
1699
+ schemaVersion?: string | undefined;
1700
+ } | undefined;
1701
+ answer?: string | undefined;
1628
1702
  } | {
1629
1703
  type: "multiselectBox";
1630
- meta: {
1631
- schemaVersion: "1.0";
1632
- };
1633
- answer: string[];
1704
+ meta?: {
1705
+ schemaVersion?: string | undefined;
1706
+ } | undefined;
1707
+ answer?: string[] | undefined;
1634
1708
  } | {
1635
1709
  type: "currency";
1636
- meta: {
1637
- schemaVersion: "1.0";
1638
- };
1639
- answer: number;
1710
+ meta?: {
1711
+ schemaVersion?: string | undefined;
1712
+ } | undefined;
1713
+ answer?: number | undefined;
1640
1714
  } | {
1641
1715
  type: "number";
1642
- meta: {
1643
- schemaVersion: "1.0";
1644
- };
1645
- answer: number;
1716
+ meta?: {
1717
+ schemaVersion?: string | undefined;
1718
+ } | undefined;
1719
+ answer?: number | undefined;
1646
1720
  } | {
1647
1721
  type: "email";
1648
- meta: {
1649
- schemaVersion: "1.0";
1650
- };
1651
- answer: string;
1722
+ meta?: {
1723
+ schemaVersion?: string | undefined;
1724
+ } | undefined;
1725
+ answer?: string | undefined;
1652
1726
  } | {
1653
1727
  type: "text";
1654
- meta: {
1655
- schemaVersion: "1.0";
1656
- };
1657
- answer: string;
1728
+ meta?: {
1729
+ schemaVersion?: string | undefined;
1730
+ } | undefined;
1731
+ answer?: string | undefined;
1658
1732
  } | {
1659
1733
  type: "textArea";
1660
- meta: {
1661
- schemaVersion: "1.0";
1662
- };
1663
- answer: string;
1734
+ meta?: {
1735
+ schemaVersion?: string | undefined;
1736
+ } | undefined;
1737
+ answer?: string | undefined;
1664
1738
  } | {
1665
1739
  type: "url";
1666
- meta: {
1667
- schemaVersion: "1.0";
1668
- };
1669
- answer: string;
1670
- };
1671
- }[];
1672
- }>;
1673
- export declare const TableAnswerSchema: z.ZodObject<{
1674
- meta: z.ZodObject<{
1675
- schemaVersion: z.ZodLiteral<"1.0">;
1676
- }, "strip", z.ZodTypeAny, {
1677
- schemaVersion: "1.0";
1678
- }, {
1679
- schemaVersion: "1.0";
1680
- }>;
1681
- } & {
1682
- type: z.ZodLiteral<"table">;
1683
- answer: z.ZodArray<z.ZodObject<{
1684
- columns: z.ZodArray<z.ZodObject<{
1685
- heading: z.ZodString;
1686
- content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1687
- meta: z.ZodObject<{
1688
- schemaVersion: z.ZodLiteral<"1.0">;
1689
- }, "strip", z.ZodTypeAny, {
1690
- schemaVersion: "1.0";
1691
- }, {
1692
- schemaVersion: "1.0";
1693
- }>;
1694
- } & {
1695
- type: z.ZodLiteral<"typeaheadSearch">;
1696
- answer: z.ZodString;
1697
- }, "strip", z.ZodTypeAny, {
1698
- type: "typeaheadSearch";
1699
- meta: {
1700
- schemaVersion: "1.0";
1701
- };
1702
- answer: string;
1703
- }, {
1704
- type: "typeaheadSearch";
1705
- meta: {
1706
- schemaVersion: "1.0";
1707
- };
1708
- answer: string;
1709
- }>, z.ZodObject<{
1710
- meta: z.ZodObject<{
1711
- schemaVersion: z.ZodLiteral<"1.0">;
1712
- }, "strip", z.ZodTypeAny, {
1713
- schemaVersion: "1.0";
1714
- }, {
1715
- schemaVersion: "1.0";
1716
- }>;
1717
- } & {
1718
- type: z.ZodLiteral<"boolean">;
1719
- answer: z.ZodBoolean;
1720
- }, "strip", z.ZodTypeAny, {
1721
- type: "boolean";
1722
- meta: {
1723
- schemaVersion: "1.0";
1724
- };
1725
- answer: boolean;
1726
- }, {
1727
- type: "boolean";
1728
- meta: {
1729
- schemaVersion: "1.0";
1730
- };
1731
- answer: boolean;
1732
- }>, z.ZodObject<{
1733
- meta: z.ZodObject<{
1734
- schemaVersion: z.ZodLiteral<"1.0">;
1735
- }, "strip", z.ZodTypeAny, {
1736
- schemaVersion: "1.0";
1737
- }, {
1738
- schemaVersion: "1.0";
1739
- }>;
1740
- } & {
1741
- type: z.ZodLiteral<"checkBoxes">;
1742
- answer: z.ZodArray<z.ZodString, "many">;
1743
- }, "strip", z.ZodTypeAny, {
1744
- type: "checkBoxes";
1745
- meta: {
1746
- schemaVersion: "1.0";
1747
- };
1748
- answer: string[];
1749
- }, {
1750
- type: "checkBoxes";
1751
- meta: {
1752
- schemaVersion: "1.0";
1753
- };
1754
- answer: string[];
1755
- }>, z.ZodObject<{
1756
- meta: z.ZodObject<{
1757
- schemaVersion: z.ZodLiteral<"1.0">;
1758
- }, "strip", z.ZodTypeAny, {
1759
- schemaVersion: "1.0";
1760
- }, {
1761
- schemaVersion: "1.0";
1762
- }>;
1763
- } & {
1764
- type: z.ZodLiteral<"currency">;
1765
- answer: z.ZodNumber;
1766
- }, "strip", z.ZodTypeAny, {
1767
- type: "currency";
1768
- meta: {
1769
- schemaVersion: "1.0";
1770
- };
1771
- answer: number;
1772
- }, {
1773
- type: "currency";
1774
- meta: {
1775
- schemaVersion: "1.0";
1776
- };
1777
- answer: number;
1778
- }>, z.ZodObject<{
1779
- answer: z.ZodString;
1780
- meta: z.ZodObject<{
1781
- schemaVersion: z.ZodLiteral<"1.0">;
1782
- }, "strip", z.ZodTypeAny, {
1783
- schemaVersion: "1.0";
1784
- }, {
1785
- schemaVersion: "1.0";
1786
- }>;
1787
- } & {
1788
- type: z.ZodLiteral<"date">;
1789
- }, "strip", z.ZodTypeAny, {
1790
- type: "date";
1791
- meta: {
1792
- schemaVersion: "1.0";
1793
- };
1794
- answer: string;
1795
- }, {
1796
- type: "date";
1797
- meta: {
1798
- schemaVersion: "1.0";
1799
- };
1800
- answer: string;
1801
- }>, z.ZodObject<{
1802
- meta: z.ZodObject<{
1803
- schemaVersion: z.ZodLiteral<"1.0">;
1804
- }, "strip", z.ZodTypeAny, {
1805
- schemaVersion: "1.0";
1806
- }, {
1807
- schemaVersion: "1.0";
1808
- }>;
1809
- } & {
1810
- type: z.ZodLiteral<"dateRange">;
1811
- answer: z.ZodObject<{
1812
- start: z.ZodString;
1813
- end: z.ZodString;
1814
- }, "strip", z.ZodTypeAny, {
1815
- start: string;
1816
- end: string;
1817
- }, {
1818
- start: string;
1819
- end: string;
1820
- }>;
1821
- }, "strip", z.ZodTypeAny, {
1822
- type: "dateRange";
1823
- meta: {
1824
- schemaVersion: "1.0";
1825
- };
1826
- answer: {
1827
- start: string;
1828
- end: string;
1829
- };
1830
- }, {
1831
- type: "dateRange";
1832
- meta: {
1833
- schemaVersion: "1.0";
1834
- };
1835
- answer: {
1836
- start: string;
1837
- end: string;
1838
- };
1839
- }>, z.ZodObject<{
1840
- meta: z.ZodObject<{
1841
- schemaVersion: z.ZodLiteral<"1.0">;
1842
- }, "strip", z.ZodTypeAny, {
1843
- schemaVersion: "1.0";
1844
- }, {
1845
- schemaVersion: "1.0";
1846
- }>;
1847
- } & {
1848
- type: z.ZodLiteral<"email">;
1849
- answer: z.ZodString;
1850
- }, "strip", z.ZodTypeAny, {
1851
- type: "email";
1852
- meta: {
1853
- schemaVersion: "1.0";
1854
- };
1855
- answer: string;
1856
- }, {
1857
- type: "email";
1858
- meta: {
1859
- schemaVersion: "1.0";
1860
- };
1861
- answer: string;
1862
- }>, z.ZodObject<{
1863
- meta: z.ZodObject<{
1864
- schemaVersion: z.ZodLiteral<"1.0">;
1865
- }, "strip", z.ZodTypeAny, {
1866
- schemaVersion: "1.0";
1867
- }, {
1868
- schemaVersion: "1.0";
1869
- }>;
1870
- } & {
1871
- type: z.ZodLiteral<"filteredSearch">;
1872
- answer: z.ZodArray<z.ZodString, "many">;
1873
- }, "strip", z.ZodTypeAny, {
1874
- type: "filteredSearch";
1875
- meta: {
1876
- schemaVersion: "1.0";
1877
- };
1878
- answer: string[];
1879
- }, {
1880
- type: "filteredSearch";
1881
- meta: {
1882
- schemaVersion: "1.0";
1883
- };
1884
- answer: string[];
1885
- }>, z.ZodObject<{
1886
- meta: z.ZodObject<{
1887
- schemaVersion: z.ZodLiteral<"1.0">;
1888
- }, "strip", z.ZodTypeAny, {
1889
- schemaVersion: "1.0";
1890
- }, {
1891
- schemaVersion: "1.0";
1892
- }>;
1893
- } & {
1894
- type: z.ZodLiteral<"multiselectBox">;
1895
- answer: z.ZodArray<z.ZodString, "many">;
1896
- }, "strip", z.ZodTypeAny, {
1897
- type: "multiselectBox";
1898
- meta: {
1899
- schemaVersion: "1.0";
1900
- };
1901
- answer: string[];
1902
- }, {
1903
- type: "multiselectBox";
1904
- meta: {
1905
- schemaVersion: "1.0";
1906
- };
1907
- answer: string[];
1908
- }>, z.ZodObject<{
1909
- meta: z.ZodObject<{
1910
- schemaVersion: z.ZodLiteral<"1.0">;
1911
- }, "strip", z.ZodTypeAny, {
1912
- schemaVersion: "1.0";
1913
- }, {
1914
- schemaVersion: "1.0";
1915
- }>;
1916
- } & {
1917
- type: z.ZodLiteral<"number">;
1918
- answer: z.ZodNumber;
1919
- }, "strip", z.ZodTypeAny, {
1920
- type: "number";
1921
- meta: {
1922
- schemaVersion: "1.0";
1923
- };
1924
- answer: number;
1925
- }, {
1926
- type: "number";
1927
- meta: {
1928
- schemaVersion: "1.0";
1929
- };
1930
- answer: number;
1931
- }>, z.ZodObject<{
1932
- meta: z.ZodObject<{
1933
- schemaVersion: z.ZodLiteral<"1.0">;
1934
- }, "strip", z.ZodTypeAny, {
1935
- schemaVersion: "1.0";
1936
- }, {
1937
- schemaVersion: "1.0";
1938
- }>;
1939
- } & {
1940
- type: z.ZodLiteral<"radioButtons">;
1941
- answer: z.ZodString;
1942
- }, "strip", z.ZodTypeAny, {
1943
- type: "radioButtons";
1944
- meta: {
1945
- schemaVersion: "1.0";
1946
- };
1947
- answer: string;
1948
- }, {
1949
- type: "radioButtons";
1950
- meta: {
1951
- schemaVersion: "1.0";
1952
- };
1953
- answer: string;
1954
- }>, z.ZodObject<{
1955
- meta: z.ZodObject<{
1956
- schemaVersion: z.ZodLiteral<"1.0">;
1957
- }, "strip", z.ZodTypeAny, {
1958
- schemaVersion: "1.0";
1959
- }, {
1960
- schemaVersion: "1.0";
1961
- }>;
1962
- } & {
1963
- type: z.ZodLiteral<"selectBox">;
1964
- answer: z.ZodString;
1965
- }, "strip", z.ZodTypeAny, {
1966
- type: "selectBox";
1967
- meta: {
1968
- schemaVersion: "1.0";
1969
- };
1970
- answer: string;
1971
- }, {
1972
- type: "selectBox";
1973
- meta: {
1974
- schemaVersion: "1.0";
1975
- };
1976
- answer: string;
1977
- }>, z.ZodObject<{
1978
- meta: z.ZodObject<{
1979
- schemaVersion: z.ZodLiteral<"1.0">;
1980
- }, "strip", z.ZodTypeAny, {
1981
- schemaVersion: "1.0";
1982
- }, {
1983
- schemaVersion: "1.0";
1984
- }>;
1985
- } & {
1986
- type: z.ZodLiteral<"text">;
1987
- answer: z.ZodString;
1988
- }, "strip", z.ZodTypeAny, {
1989
- type: "text";
1990
- meta: {
1991
- schemaVersion: "1.0";
1992
- };
1993
- answer: string;
1994
- }, {
1995
- type: "text";
1996
- meta: {
1997
- schemaVersion: "1.0";
1998
- };
1999
- answer: string;
2000
- }>, z.ZodObject<{
2001
- meta: z.ZodObject<{
2002
- schemaVersion: z.ZodLiteral<"1.0">;
2003
- }, "strip", z.ZodTypeAny, {
2004
- schemaVersion: "1.0";
2005
- }, {
2006
- schemaVersion: "1.0";
2007
- }>;
2008
- } & {
2009
- type: z.ZodLiteral<"textArea">;
2010
- answer: z.ZodString;
2011
- }, "strip", z.ZodTypeAny, {
2012
- type: "textArea";
2013
- meta: {
2014
- schemaVersion: "1.0";
2015
- };
2016
- answer: string;
2017
- }, {
2018
- type: "textArea";
2019
- meta: {
2020
- schemaVersion: "1.0";
2021
- };
2022
- answer: string;
2023
- }>, z.ZodObject<{
2024
- meta: z.ZodObject<{
2025
- schemaVersion: z.ZodLiteral<"1.0">;
2026
- }, "strip", z.ZodTypeAny, {
2027
- schemaVersion: "1.0";
2028
- }, {
2029
- schemaVersion: "1.0";
2030
- }>;
2031
- } & {
2032
- type: z.ZodLiteral<"url">;
2033
- answer: z.ZodString;
2034
- }, "strip", z.ZodTypeAny, {
2035
- type: "url";
2036
- meta: {
2037
- schemaVersion: "1.0";
2038
- };
2039
- answer: string;
2040
- }, {
2041
- type: "url";
2042
- meta: {
2043
- schemaVersion: "1.0";
2044
- };
2045
- answer: string;
2046
- }>]>;
2047
- }, "strip", z.ZodTypeAny, {
2048
- heading: string;
2049
- content: {
2050
- type: "date";
2051
- meta: {
2052
- schemaVersion: "1.0";
2053
- };
2054
- answer: string;
2055
- } | {
2056
- type: "dateRange";
2057
- meta: {
2058
- schemaVersion: "1.0";
2059
- };
2060
- answer: {
2061
- start: string;
2062
- end: string;
2063
- };
2064
- } | {
2065
- type: "filteredSearch";
2066
- meta: {
2067
- schemaVersion: "1.0";
2068
- };
2069
- answer: string[];
2070
- } | {
2071
- type: "typeaheadSearch";
2072
- meta: {
2073
- schemaVersion: "1.0";
2074
- };
2075
- answer: string;
2076
- } | {
2077
- type: "boolean";
2078
- meta: {
2079
- schemaVersion: "1.0";
2080
- };
2081
- answer: boolean;
2082
- } | {
2083
- type: "checkBoxes";
2084
- meta: {
2085
- schemaVersion: "1.0";
2086
- };
2087
- answer: string[];
2088
- } | {
2089
- type: "radioButtons";
2090
- meta: {
2091
- schemaVersion: "1.0";
2092
- };
2093
- answer: string;
2094
- } | {
2095
- type: "selectBox";
2096
- meta: {
2097
- schemaVersion: "1.0";
2098
- };
2099
- answer: string;
2100
- } | {
2101
- type: "multiselectBox";
2102
- meta: {
2103
- schemaVersion: "1.0";
2104
- };
2105
- answer: string[];
2106
- } | {
2107
- type: "currency";
2108
- meta: {
2109
- schemaVersion: "1.0";
2110
- };
2111
- answer: number;
2112
- } | {
2113
- type: "number";
2114
- meta: {
2115
- schemaVersion: "1.0";
2116
- };
2117
- answer: number;
2118
- } | {
2119
- type: "email";
2120
- meta: {
2121
- schemaVersion: "1.0";
2122
- };
2123
- answer: string;
2124
- } | {
2125
- type: "text";
2126
- meta: {
2127
- schemaVersion: "1.0";
2128
- };
2129
- answer: string;
2130
- } | {
2131
- type: "textArea";
2132
- meta: {
2133
- schemaVersion: "1.0";
2134
- };
2135
- answer: string;
2136
- } | {
2137
- type: "url";
2138
- meta: {
2139
- schemaVersion: "1.0";
2140
- };
2141
- answer: string;
2142
- };
2143
- }, {
2144
- heading: string;
2145
- content: {
2146
- type: "date";
2147
- meta: {
2148
- schemaVersion: "1.0";
2149
- };
2150
- answer: string;
2151
- } | {
2152
- type: "dateRange";
2153
- meta: {
2154
- schemaVersion: "1.0";
2155
- };
2156
- answer: {
2157
- start: string;
2158
- end: string;
2159
- };
2160
- } | {
2161
- type: "filteredSearch";
2162
- meta: {
2163
- schemaVersion: "1.0";
2164
- };
2165
- answer: string[];
2166
- } | {
2167
- type: "typeaheadSearch";
2168
- meta: {
2169
- schemaVersion: "1.0";
2170
- };
2171
- answer: string;
2172
- } | {
2173
- type: "boolean";
2174
- meta: {
2175
- schemaVersion: "1.0";
2176
- };
2177
- answer: boolean;
2178
- } | {
2179
- type: "checkBoxes";
2180
- meta: {
2181
- schemaVersion: "1.0";
2182
- };
2183
- answer: string[];
2184
- } | {
2185
- type: "radioButtons";
2186
- meta: {
2187
- schemaVersion: "1.0";
2188
- };
2189
- answer: string;
2190
- } | {
2191
- type: "selectBox";
2192
- meta: {
2193
- schemaVersion: "1.0";
2194
- };
2195
- answer: string;
2196
- } | {
2197
- type: "multiselectBox";
2198
- meta: {
2199
- schemaVersion: "1.0";
2200
- };
2201
- answer: string[];
2202
- } | {
2203
- type: "currency";
2204
- meta: {
2205
- schemaVersion: "1.0";
2206
- };
2207
- answer: number;
2208
- } | {
2209
- type: "number";
2210
- meta: {
2211
- schemaVersion: "1.0";
2212
- };
2213
- answer: number;
2214
- } | {
2215
- type: "email";
2216
- meta: {
2217
- schemaVersion: "1.0";
2218
- };
2219
- answer: string;
2220
- } | {
2221
- type: "text";
2222
- meta: {
2223
- schemaVersion: "1.0";
2224
- };
2225
- answer: string;
2226
- } | {
2227
- type: "textArea";
2228
- meta: {
2229
- schemaVersion: "1.0";
2230
- };
2231
- answer: string;
2232
- } | {
2233
- type: "url";
2234
- meta: {
2235
- schemaVersion: "1.0";
2236
- };
2237
- answer: string;
2238
- };
2239
- }>, "many">;
2240
- }, "strip", z.ZodTypeAny, {
2241
- columns: {
2242
- heading: string;
2243
- content: {
2244
- type: "date";
2245
- meta: {
2246
- schemaVersion: "1.0";
2247
- };
2248
- answer: string;
2249
- } | {
2250
- type: "dateRange";
2251
- meta: {
2252
- schemaVersion: "1.0";
2253
- };
2254
- answer: {
2255
- start: string;
2256
- end: string;
2257
- };
2258
- } | {
2259
- type: "filteredSearch";
2260
- meta: {
2261
- schemaVersion: "1.0";
2262
- };
2263
- answer: string[];
2264
- } | {
2265
- type: "typeaheadSearch";
2266
- meta: {
2267
- schemaVersion: "1.0";
2268
- };
2269
- answer: string;
2270
- } | {
2271
- type: "boolean";
2272
- meta: {
2273
- schemaVersion: "1.0";
2274
- };
2275
- answer: boolean;
2276
- } | {
2277
- type: "checkBoxes";
2278
- meta: {
2279
- schemaVersion: "1.0";
2280
- };
2281
- answer: string[];
2282
- } | {
2283
- type: "radioButtons";
2284
- meta: {
2285
- schemaVersion: "1.0";
2286
- };
2287
- answer: string;
2288
- } | {
2289
- type: "selectBox";
2290
- meta: {
2291
- schemaVersion: "1.0";
2292
- };
2293
- answer: string;
2294
- } | {
2295
- type: "multiselectBox";
2296
- meta: {
2297
- schemaVersion: "1.0";
2298
- };
2299
- answer: string[];
2300
- } | {
2301
- type: "currency";
2302
- meta: {
2303
- schemaVersion: "1.0";
2304
- };
2305
- answer: number;
2306
- } | {
2307
- type: "number";
2308
- meta: {
2309
- schemaVersion: "1.0";
2310
- };
2311
- answer: number;
2312
- } | {
2313
- type: "email";
2314
- meta: {
2315
- schemaVersion: "1.0";
2316
- };
2317
- answer: string;
2318
- } | {
2319
- type: "text";
2320
- meta: {
2321
- schemaVersion: "1.0";
2322
- };
2323
- answer: string;
2324
- } | {
2325
- type: "textArea";
2326
- meta: {
2327
- schemaVersion: "1.0";
2328
- };
2329
- answer: string;
2330
- } | {
2331
- type: "url";
2332
- meta: {
2333
- schemaVersion: "1.0";
2334
- };
2335
- answer: string;
2336
- };
2337
- }[];
2338
- }, {
2339
- columns: {
2340
- heading: string;
2341
- content: {
2342
- type: "date";
2343
- meta: {
2344
- schemaVersion: "1.0";
2345
- };
2346
- answer: string;
2347
- } | {
2348
- type: "dateRange";
2349
- meta: {
2350
- schemaVersion: "1.0";
2351
- };
2352
- answer: {
2353
- start: string;
2354
- end: string;
2355
- };
2356
- } | {
2357
- type: "filteredSearch";
2358
- meta: {
2359
- schemaVersion: "1.0";
2360
- };
2361
- answer: string[];
2362
- } | {
2363
- type: "typeaheadSearch";
2364
- meta: {
2365
- schemaVersion: "1.0";
2366
- };
2367
- answer: string;
2368
- } | {
2369
- type: "boolean";
2370
- meta: {
2371
- schemaVersion: "1.0";
2372
- };
2373
- answer: boolean;
2374
- } | {
2375
- type: "checkBoxes";
2376
- meta: {
2377
- schemaVersion: "1.0";
2378
- };
2379
- answer: string[];
2380
- } | {
2381
- type: "radioButtons";
2382
- meta: {
2383
- schemaVersion: "1.0";
2384
- };
2385
- answer: string;
2386
- } | {
2387
- type: "selectBox";
2388
- meta: {
2389
- schemaVersion: "1.0";
2390
- };
2391
- answer: string;
2392
- } | {
2393
- type: "multiselectBox";
2394
- meta: {
2395
- schemaVersion: "1.0";
2396
- };
2397
- answer: string[];
2398
- } | {
2399
- type: "currency";
2400
- meta: {
2401
- schemaVersion: "1.0";
2402
- };
2403
- answer: number;
2404
- } | {
2405
- type: "number";
2406
- meta: {
2407
- schemaVersion: "1.0";
2408
- };
2409
- answer: number;
2410
- } | {
2411
- type: "email";
2412
- meta: {
2413
- schemaVersion: "1.0";
2414
- };
2415
- answer: string;
2416
- } | {
2417
- type: "text";
2418
- meta: {
2419
- schemaVersion: "1.0";
2420
- };
2421
- answer: string;
2422
- } | {
2423
- type: "textArea";
2424
- meta: {
2425
- schemaVersion: "1.0";
2426
- };
2427
- answer: string;
2428
- } | {
2429
- type: "url";
2430
- meta: {
2431
- schemaVersion: "1.0";
2432
- };
2433
- answer: string;
2434
- };
2435
- }[];
2436
- }>, "many">;
2437
- }, "strip", z.ZodTypeAny, {
2438
- type: "table";
2439
- meta: {
2440
- schemaVersion: "1.0";
2441
- };
2442
- answer: {
2443
- columns: {
2444
- heading: string;
2445
- content: {
2446
- type: "date";
2447
- meta: {
2448
- schemaVersion: "1.0";
2449
- };
2450
- answer: string;
2451
- } | {
2452
- type: "dateRange";
2453
- meta: {
2454
- schemaVersion: "1.0";
2455
- };
2456
- answer: {
2457
- start: string;
2458
- end: string;
2459
- };
2460
- } | {
2461
- type: "filteredSearch";
2462
- meta: {
2463
- schemaVersion: "1.0";
2464
- };
2465
- answer: string[];
2466
- } | {
2467
- type: "typeaheadSearch";
2468
- meta: {
2469
- schemaVersion: "1.0";
2470
- };
2471
- answer: string;
2472
- } | {
2473
- type: "boolean";
2474
- meta: {
2475
- schemaVersion: "1.0";
2476
- };
2477
- answer: boolean;
2478
- } | {
2479
- type: "checkBoxes";
2480
- meta: {
2481
- schemaVersion: "1.0";
2482
- };
2483
- answer: string[];
2484
- } | {
2485
- type: "radioButtons";
2486
- meta: {
2487
- schemaVersion: "1.0";
2488
- };
2489
- answer: string;
2490
- } | {
2491
- type: "selectBox";
2492
- meta: {
2493
- schemaVersion: "1.0";
2494
- };
2495
- answer: string;
2496
- } | {
2497
- type: "multiselectBox";
2498
- meta: {
2499
- schemaVersion: "1.0";
2500
- };
2501
- answer: string[];
2502
- } | {
2503
- type: "currency";
2504
- meta: {
2505
- schemaVersion: "1.0";
2506
- };
2507
- answer: number;
2508
- } | {
2509
- type: "number";
2510
- meta: {
2511
- schemaVersion: "1.0";
2512
- };
2513
- answer: number;
2514
- } | {
2515
- type: "email";
2516
- meta: {
2517
- schemaVersion: "1.0";
2518
- };
2519
- answer: string;
2520
- } | {
2521
- type: "text";
2522
- meta: {
2523
- schemaVersion: "1.0";
2524
- };
2525
- answer: string;
2526
- } | {
2527
- type: "textArea";
2528
- meta: {
2529
- schemaVersion: "1.0";
2530
- };
2531
- answer: string;
2532
- } | {
2533
- type: "url";
2534
- meta: {
2535
- schemaVersion: "1.0";
2536
- };
2537
- answer: string;
2538
- };
2539
- }[];
2540
- }[];
2541
- }, {
2542
- type: "table";
2543
- meta: {
2544
- schemaVersion: "1.0";
2545
- };
2546
- answer: {
2547
- columns: {
2548
- heading: string;
2549
- content: {
2550
- type: "date";
2551
- meta: {
2552
- schemaVersion: "1.0";
2553
- };
2554
- answer: string;
2555
- } | {
2556
- type: "dateRange";
2557
- meta: {
2558
- schemaVersion: "1.0";
2559
- };
2560
- answer: {
2561
- start: string;
2562
- end: string;
2563
- };
2564
- } | {
2565
- type: "filteredSearch";
2566
- meta: {
2567
- schemaVersion: "1.0";
2568
- };
2569
- answer: string[];
2570
- } | {
2571
- type: "typeaheadSearch";
2572
- meta: {
2573
- schemaVersion: "1.0";
2574
- };
2575
- answer: string;
2576
- } | {
2577
- type: "boolean";
2578
- meta: {
2579
- schemaVersion: "1.0";
2580
- };
2581
- answer: boolean;
2582
- } | {
2583
- type: "checkBoxes";
2584
- meta: {
2585
- schemaVersion: "1.0";
2586
- };
2587
- answer: string[];
2588
- } | {
2589
- type: "radioButtons";
2590
- meta: {
2591
- schemaVersion: "1.0";
2592
- };
2593
- answer: string;
2594
- } | {
2595
- type: "selectBox";
2596
- meta: {
2597
- schemaVersion: "1.0";
2598
- };
2599
- answer: string;
2600
- } | {
2601
- type: "multiselectBox";
2602
- meta: {
2603
- schemaVersion: "1.0";
2604
- };
2605
- answer: string[];
2606
- } | {
2607
- type: "currency";
2608
- meta: {
2609
- schemaVersion: "1.0";
2610
- };
2611
- answer: number;
2612
- } | {
2613
- type: "number";
2614
- meta: {
2615
- schemaVersion: "1.0";
2616
- };
2617
- answer: number;
2618
- } | {
2619
- type: "email";
2620
- meta: {
2621
- schemaVersion: "1.0";
2622
- };
2623
- answer: string;
2624
- } | {
2625
- type: "text";
2626
- meta: {
2627
- schemaVersion: "1.0";
2628
- };
2629
- answer: string;
2630
- } | {
2631
- type: "textArea";
2632
- meta: {
2633
- schemaVersion: "1.0";
2634
- };
2635
- answer: string;
2636
- } | {
2637
- type: "url";
2638
- meta: {
2639
- schemaVersion: "1.0";
2640
- };
2641
- answer: string;
2642
- };
2643
- }[];
2644
- }[];
1740
+ meta?: {
1741
+ schemaVersion?: string | undefined;
1742
+ } | undefined;
1743
+ answer?: string | undefined;
1744
+ })[];
1745
+ }[] | undefined;
1746
+ columnHeadings?: string[] | undefined;
2645
1747
  }>;
2646
1748
  export type TableAnswerType = z.infer<typeof TableAnswerSchema>;
2647
1749
  export type AnyTableColumnAnswerType = z.infer<typeof AnyTableColumnAnswerSchema>;