@dmptool/types 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +119 -47
  2. package/dist/answers/__tests__/answers.spec.js +20 -28
  3. package/dist/answers/__tests__/usage.spec.d.ts +1 -0
  4. package/dist/answers/__tests__/usage.spec.js +175 -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 +25 -25
  10. package/dist/answers/graphQLAnswers.js +4 -4
  11. package/dist/answers/index.d.ts +860 -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 +811 -1772
  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 +6 -4
  22. package/dist/questions/__tests__/optionBasedQuestions.spec.js +4 -12
  23. package/dist/questions/__tests__/usage.spec.d.ts +8 -0
  24. package/dist/questions/__tests__/usage.spec.js +312 -0
  25. package/dist/questions/dateQuestions.d.ts +90 -101
  26. package/dist/questions/dateQuestions.js +15 -34
  27. package/dist/questions/graphQLQuestions.d.ts +176 -182
  28. package/dist/questions/graphQLQuestions.js +44 -45
  29. package/dist/questions/index.d.ts +1791 -2170
  30. package/dist/questions/index.js +2 -2
  31. package/dist/questions/numberQuestions.d.ts +126 -142
  32. package/dist/questions/numberQuestions.js +11 -45
  33. package/dist/questions/optionBasedQuestions.d.ts +197 -225
  34. package/dist/questions/optionBasedQuestions.js +24 -88
  35. package/dist/questions/question.d.ts +24 -56
  36. package/dist/questions/question.js +78 -18
  37. package/dist/questions/tableQuestions.d.ts +2637 -2930
  38. package/dist/questions/tableQuestions.js +9 -21
  39. package/dist/questions/textQuestions.d.ts +125 -145
  40. package/dist/questions/textQuestions.js +16 -57
  41. package/dist/schemas/affiliationSearchAnswer.schema.json +9 -12
  42. package/dist/schemas/affiliationSearchQuestion.schema.json +57 -50
  43. package/dist/schemas/anyAnswer.schema.json +228 -237
  44. package/dist/schemas/anyQuestion.schema.json +349 -517
  45. package/dist/schemas/anyTableColumnAnswer.schema.json +93 -106
  46. package/dist/schemas/anyTableColumnQuestion.schema.json +259 -382
  47. package/dist/schemas/booleanAnswer.schema.json +8 -11
  48. package/dist/schemas/booleanQuestion.schema.json +9 -15
  49. package/dist/schemas/checkboxesAnswer.schema.json +13 -14
  50. package/dist/schemas/checkboxesQuestion.schema.json +18 -24
  51. package/dist/schemas/currencyAnswer.schema.json +8 -11
  52. package/dist/schemas/currencyQuestion.schema.json +13 -17
  53. package/dist/schemas/dateAnswer.schema.json +8 -11
  54. package/dist/schemas/dateQuestion.schema.json +9 -15
  55. package/dist/schemas/dateRangeAnswer.schema.json +16 -21
  56. package/dist/schemas/dateRangeQuestion.schema.json +40 -21
  57. package/dist/schemas/emailAnswer.schema.json +8 -11
  58. package/dist/schemas/emailQuestion.schema.json +11 -16
  59. package/dist/schemas/filteredSearchQuestion.schema.json +0 -3
  60. package/dist/schemas/multiselectBoxAnswer.schema.json +13 -14
  61. package/dist/schemas/multiselectBoxQuestion.schema.json +20 -25
  62. package/dist/schemas/numberAnswer.schema.json +8 -11
  63. package/dist/schemas/numberQuestion.schema.json +11 -16
  64. package/dist/schemas/numberRangeAnswer.schema.json +17 -22
  65. package/dist/schemas/numberRangeQuestion.schema.json +22 -21
  66. package/dist/schemas/radioButtonsAnswer.schema.json +8 -11
  67. package/dist/schemas/radioButtonsQuestion.schema.json +18 -24
  68. package/dist/schemas/selectBoxAnswer.schema.json +8 -11
  69. package/dist/schemas/selectBoxQuestion.schema.json +20 -25
  70. package/dist/schemas/tableAnswer.schema.json +337 -343
  71. package/dist/schemas/tableQuestion.schema.json +279 -416
  72. package/dist/schemas/textAnswer.schema.json +8 -11
  73. package/dist/schemas/textAreaAnswer.schema.json +8 -11
  74. package/dist/schemas/textAreaQuestion.schema.json +13 -17
  75. package/dist/schemas/textQuestion.schema.json +9 -15
  76. package/dist/schemas/urlAnswer.schema.json +8 -11
  77. package/dist/schemas/urlQuestion.schema.json +9 -15
  78. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  import { DateAnswerType, DateRangeAnswerType } from './dateAnswers';
3
- import { FilteredSearchAnswerType, AffiliationSearchAnswerType } from './graphQLAnswers';
3
+ import { AffiliationSearchAnswerType } from './graphQLAnswers';
4
4
  import { BooleanAnswerType, CheckboxesAnswerType, RadioButtonsAnswerType, SelectBoxAnswerType, MultiselectBoxAnswerType } from './optionBasedAnswers';
5
5
  import { CurrencyAnswerType, NumberAnswerType, NumberRangeAnswerType } from './numberAnswers';
6
6
  import { TableAnswerType } from './tableAnswers';
7
7
  import { EmailAnswerType, TextAnswerType, TextAreaAnswerType, URLAnswerType } from './textAnswers';
8
- import { QuestionTypesEnum } from '../questions';
8
+ import { QuestionFormatsEnum } from '../questions';
9
9
  export * from './answer';
10
10
  export * from './dateAnswers';
11
11
  export * from './graphQLAnswers';
@@ -14,121 +14,121 @@ export * from './optionBasedAnswers';
14
14
  export * from './tableAnswers';
15
15
  export * from './textAnswers';
16
16
  export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
17
- meta: z.ZodObject<{
18
- schemaVersion: z.ZodLiteral<"1.0">;
17
+ meta: z.ZodDefault<z.ZodObject<{
18
+ schemaVersion: z.ZodDefault<z.ZodString>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- schemaVersion: "1.0";
20
+ schemaVersion: string;
21
21
  }, {
22
- schemaVersion: "1.0";
23
- }>;
22
+ schemaVersion?: string | undefined;
23
+ }>>;
24
24
  } & {
25
25
  type: z.ZodLiteral<"boolean">;
26
- answer: z.ZodBoolean;
26
+ answer: z.ZodDefault<z.ZodBoolean>;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  type: "boolean";
29
29
  meta: {
30
- schemaVersion: "1.0";
30
+ schemaVersion: string;
31
31
  };
32
32
  answer: boolean;
33
33
  }, {
34
34
  type: "boolean";
35
- meta: {
36
- schemaVersion: "1.0";
37
- };
38
- answer: boolean;
35
+ meta?: {
36
+ schemaVersion?: string | undefined;
37
+ } | undefined;
38
+ answer?: boolean | undefined;
39
39
  }>, z.ZodObject<{
40
- meta: z.ZodObject<{
41
- schemaVersion: z.ZodLiteral<"1.0">;
40
+ meta: z.ZodDefault<z.ZodObject<{
41
+ schemaVersion: z.ZodDefault<z.ZodString>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- schemaVersion: "1.0";
43
+ schemaVersion: string;
44
44
  }, {
45
- schemaVersion: "1.0";
46
- }>;
45
+ schemaVersion?: string | undefined;
46
+ }>>;
47
47
  } & {
48
48
  type: z.ZodLiteral<"checkBoxes">;
49
- answer: z.ZodArray<z.ZodString, "many">;
49
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
50
50
  }, "strip", z.ZodTypeAny, {
51
51
  type: "checkBoxes";
52
52
  meta: {
53
- schemaVersion: "1.0";
53
+ schemaVersion: string;
54
54
  };
55
55
  answer: string[];
56
56
  }, {
57
57
  type: "checkBoxes";
58
- meta: {
59
- schemaVersion: "1.0";
60
- };
61
- answer: string[];
58
+ meta?: {
59
+ schemaVersion?: string | undefined;
60
+ } | undefined;
61
+ answer?: string[] | undefined;
62
62
  }>, z.ZodObject<{
63
- meta: z.ZodObject<{
64
- schemaVersion: z.ZodLiteral<"1.0">;
63
+ meta: z.ZodDefault<z.ZodObject<{
64
+ schemaVersion: z.ZodDefault<z.ZodString>;
65
65
  }, "strip", z.ZodTypeAny, {
66
- schemaVersion: "1.0";
66
+ schemaVersion: string;
67
67
  }, {
68
- schemaVersion: "1.0";
69
- }>;
68
+ schemaVersion?: string | undefined;
69
+ }>>;
70
70
  } & {
71
71
  type: z.ZodLiteral<"currency">;
72
- answer: z.ZodNumber;
72
+ answer: z.ZodDefault<z.ZodNumber>;
73
73
  }, "strip", z.ZodTypeAny, {
74
74
  type: "currency";
75
75
  meta: {
76
- schemaVersion: "1.0";
76
+ schemaVersion: string;
77
77
  };
78
78
  answer: number;
79
79
  }, {
80
80
  type: "currency";
81
- meta: {
82
- schemaVersion: "1.0";
83
- };
84
- answer: number;
81
+ meta?: {
82
+ schemaVersion?: string | undefined;
83
+ } | undefined;
84
+ answer?: number | undefined;
85
85
  }>, z.ZodObject<{
86
- answer: z.ZodString;
87
- meta: z.ZodObject<{
88
- schemaVersion: z.ZodLiteral<"1.0">;
86
+ meta: z.ZodDefault<z.ZodObject<{
87
+ schemaVersion: z.ZodDefault<z.ZodString>;
89
88
  }, "strip", z.ZodTypeAny, {
90
- schemaVersion: "1.0";
89
+ schemaVersion: string;
91
90
  }, {
92
- schemaVersion: "1.0";
93
- }>;
91
+ schemaVersion?: string | undefined;
92
+ }>>;
94
93
  } & {
95
94
  type: z.ZodLiteral<"date">;
95
+ answer: z.ZodDefault<z.ZodString>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  type: "date";
98
98
  meta: {
99
- schemaVersion: "1.0";
99
+ schemaVersion: string;
100
100
  };
101
101
  answer: string;
102
102
  }, {
103
103
  type: "date";
104
- meta: {
105
- schemaVersion: "1.0";
106
- };
107
- answer: string;
104
+ meta?: {
105
+ schemaVersion?: string | undefined;
106
+ } | undefined;
107
+ answer?: string | undefined;
108
108
  }>, z.ZodObject<{
109
- meta: z.ZodObject<{
110
- schemaVersion: z.ZodLiteral<"1.0">;
109
+ meta: z.ZodDefault<z.ZodObject<{
110
+ schemaVersion: z.ZodDefault<z.ZodString>;
111
111
  }, "strip", z.ZodTypeAny, {
112
- schemaVersion: "1.0";
112
+ schemaVersion: string;
113
113
  }, {
114
- schemaVersion: "1.0";
115
- }>;
114
+ schemaVersion?: string | undefined;
115
+ }>>;
116
116
  } & {
117
117
  type: z.ZodLiteral<"dateRange">;
118
- answer: z.ZodObject<{
119
- start: z.ZodString;
120
- end: z.ZodString;
118
+ answer: z.ZodDefault<z.ZodObject<{
119
+ start: z.ZodDefault<z.ZodString>;
120
+ end: z.ZodDefault<z.ZodString>;
121
121
  }, "strip", z.ZodTypeAny, {
122
122
  start: string;
123
123
  end: string;
124
124
  }, {
125
- start: string;
126
- end: string;
127
- }>;
125
+ start?: string | undefined;
126
+ end?: string | undefined;
127
+ }>>;
128
128
  }, "strip", z.ZodTypeAny, {
129
129
  type: "dateRange";
130
130
  meta: {
131
- schemaVersion: "1.0";
131
+ schemaVersion: string;
132
132
  };
133
133
  answer: {
134
134
  start: string;
@@ -136,1171 +136,944 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
136
136
  };
137
137
  }, {
138
138
  type: "dateRange";
139
- meta: {
140
- schemaVersion: "1.0";
141
- };
142
- answer: {
143
- start: string;
144
- end: string;
145
- };
139
+ meta?: {
140
+ schemaVersion?: string | undefined;
141
+ } | undefined;
142
+ answer?: {
143
+ start?: string | undefined;
144
+ end?: string | undefined;
145
+ } | undefined;
146
146
  }>, z.ZodObject<{
147
- meta: z.ZodObject<{
148
- schemaVersion: z.ZodLiteral<"1.0">;
147
+ meta: z.ZodDefault<z.ZodObject<{
148
+ schemaVersion: z.ZodDefault<z.ZodString>;
149
149
  }, "strip", z.ZodTypeAny, {
150
- schemaVersion: "1.0";
150
+ schemaVersion: string;
151
151
  }, {
152
- schemaVersion: "1.0";
153
- }>;
152
+ schemaVersion?: string | undefined;
153
+ }>>;
154
154
  } & {
155
155
  type: z.ZodLiteral<"email">;
156
- answer: z.ZodString;
156
+ answer: z.ZodDefault<z.ZodString>;
157
157
  }, "strip", z.ZodTypeAny, {
158
158
  type: "email";
159
159
  meta: {
160
- schemaVersion: "1.0";
160
+ schemaVersion: string;
161
161
  };
162
162
  answer: string;
163
163
  }, {
164
164
  type: "email";
165
- meta: {
166
- schemaVersion: "1.0";
167
- };
168
- answer: string;
165
+ meta?: {
166
+ schemaVersion?: string | undefined;
167
+ } | undefined;
168
+ answer?: string | undefined;
169
169
  }>, z.ZodObject<{
170
- meta: z.ZodObject<{
171
- schemaVersion: z.ZodLiteral<"1.0">;
170
+ meta: z.ZodDefault<z.ZodObject<{
171
+ schemaVersion: z.ZodDefault<z.ZodString>;
172
172
  }, "strip", z.ZodTypeAny, {
173
- schemaVersion: "1.0";
173
+ schemaVersion: string;
174
174
  }, {
175
- schemaVersion: "1.0";
176
- }>;
177
- } & {
178
- type: z.ZodLiteral<"filteredSearch">;
179
- answer: z.ZodArray<z.ZodString, "many">;
180
- }, "strip", z.ZodTypeAny, {
181
- type: "filteredSearch";
182
- meta: {
183
- schemaVersion: "1.0";
184
- };
185
- answer: string[];
186
- }, {
187
- type: "filteredSearch";
188
- meta: {
189
- schemaVersion: "1.0";
190
- };
191
- answer: string[];
192
- }>, z.ZodObject<{
193
- meta: z.ZodObject<{
194
- schemaVersion: z.ZodLiteral<"1.0">;
195
- }, "strip", z.ZodTypeAny, {
196
- schemaVersion: "1.0";
197
- }, {
198
- schemaVersion: "1.0";
199
- }>;
175
+ schemaVersion?: string | undefined;
176
+ }>>;
200
177
  } & {
201
178
  type: z.ZodLiteral<"number">;
202
- answer: z.ZodNumber;
179
+ answer: z.ZodDefault<z.ZodNumber>;
203
180
  }, "strip", z.ZodTypeAny, {
204
181
  type: "number";
205
182
  meta: {
206
- schemaVersion: "1.0";
183
+ schemaVersion: string;
207
184
  };
208
185
  answer: number;
209
186
  }, {
210
187
  type: "number";
211
- meta: {
212
- schemaVersion: "1.0";
213
- };
214
- answer: number;
188
+ meta?: {
189
+ schemaVersion?: string | undefined;
190
+ } | undefined;
191
+ answer?: number | undefined;
215
192
  }>, z.ZodObject<{
216
- meta: z.ZodObject<{
217
- schemaVersion: z.ZodLiteral<"1.0">;
193
+ meta: z.ZodDefault<z.ZodObject<{
194
+ schemaVersion: z.ZodDefault<z.ZodString>;
218
195
  }, "strip", z.ZodTypeAny, {
219
- schemaVersion: "1.0";
196
+ schemaVersion: string;
220
197
  }, {
221
- schemaVersion: "1.0";
222
- }>;
198
+ schemaVersion?: string | undefined;
199
+ }>>;
223
200
  } & {
224
201
  type: z.ZodLiteral<"radioButtons">;
225
- answer: z.ZodString;
202
+ answer: z.ZodDefault<z.ZodString>;
226
203
  }, "strip", z.ZodTypeAny, {
227
204
  type: "radioButtons";
228
205
  meta: {
229
- schemaVersion: "1.0";
206
+ schemaVersion: string;
230
207
  };
231
208
  answer: string;
232
209
  }, {
233
210
  type: "radioButtons";
234
- meta: {
235
- schemaVersion: "1.0";
236
- };
237
- answer: string;
211
+ meta?: {
212
+ schemaVersion?: string | undefined;
213
+ } | undefined;
214
+ answer?: string | undefined;
238
215
  }>, z.ZodObject<{
239
- meta: z.ZodObject<{
240
- schemaVersion: z.ZodLiteral<"1.0">;
216
+ meta: z.ZodDefault<z.ZodObject<{
217
+ schemaVersion: z.ZodDefault<z.ZodString>;
241
218
  }, "strip", z.ZodTypeAny, {
242
- schemaVersion: "1.0";
219
+ schemaVersion: string;
243
220
  }, {
244
- schemaVersion: "1.0";
245
- }>;
221
+ schemaVersion?: string | undefined;
222
+ }>>;
246
223
  } & {
247
224
  type: z.ZodLiteral<"selectBox">;
248
- answer: z.ZodString;
225
+ answer: z.ZodDefault<z.ZodString>;
249
226
  }, "strip", z.ZodTypeAny, {
250
227
  type: "selectBox";
251
228
  meta: {
252
- schemaVersion: "1.0";
229
+ schemaVersion: string;
253
230
  };
254
231
  answer: string;
255
232
  }, {
256
233
  type: "selectBox";
257
- meta: {
258
- schemaVersion: "1.0";
259
- };
260
- answer: string;
234
+ meta?: {
235
+ schemaVersion?: string | undefined;
236
+ } | undefined;
237
+ answer?: string | undefined;
261
238
  }>, z.ZodObject<{
262
- meta: z.ZodObject<{
263
- schemaVersion: z.ZodLiteral<"1.0">;
239
+ meta: z.ZodDefault<z.ZodObject<{
240
+ schemaVersion: z.ZodDefault<z.ZodString>;
264
241
  }, "strip", z.ZodTypeAny, {
265
- schemaVersion: "1.0";
242
+ schemaVersion: string;
266
243
  }, {
267
- schemaVersion: "1.0";
268
- }>;
244
+ schemaVersion?: string | undefined;
245
+ }>>;
269
246
  } & {
270
247
  type: z.ZodLiteral<"table">;
271
- answer: z.ZodArray<z.ZodObject<{
272
- columns: z.ZodArray<z.ZodObject<{
273
- heading: z.ZodString;
274
- content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
275
- meta: z.ZodObject<{
276
- schemaVersion: z.ZodLiteral<"1.0">;
277
- }, "strip", z.ZodTypeAny, {
278
- schemaVersion: "1.0";
279
- }, {
280
- schemaVersion: "1.0";
281
- }>;
282
- } & {
283
- type: z.ZodLiteral<"typeaheadSearch">;
284
- answer: z.ZodString;
248
+ columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
249
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
250
+ columns: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
251
+ meta: z.ZodDefault<z.ZodObject<{
252
+ schemaVersion: z.ZodDefault<z.ZodString>;
285
253
  }, "strip", z.ZodTypeAny, {
286
- type: "typeaheadSearch";
287
- meta: {
288
- schemaVersion: "1.0";
289
- };
290
- answer: string;
254
+ schemaVersion: string;
291
255
  }, {
292
- type: "typeaheadSearch";
293
- meta: {
294
- schemaVersion: "1.0";
295
- };
296
- answer: string;
297
- }>, z.ZodObject<{
298
- meta: z.ZodObject<{
299
- schemaVersion: z.ZodLiteral<"1.0">;
300
- }, "strip", z.ZodTypeAny, {
301
- schemaVersion: "1.0";
302
- }, {
303
- schemaVersion: "1.0";
304
- }>;
305
- } & {
306
- type: z.ZodLiteral<"boolean">;
307
- answer: z.ZodBoolean;
256
+ schemaVersion?: string | undefined;
257
+ }>>;
258
+ } & {
259
+ type: z.ZodLiteral<"affiliationSearch">;
260
+ answer: z.ZodDefault<z.ZodString>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ type: "affiliationSearch";
263
+ meta: {
264
+ schemaVersion: string;
265
+ };
266
+ answer: string;
267
+ }, {
268
+ type: "affiliationSearch";
269
+ meta?: {
270
+ schemaVersion?: string | undefined;
271
+ } | undefined;
272
+ answer?: string | undefined;
273
+ }>, z.ZodObject<{
274
+ meta: z.ZodDefault<z.ZodObject<{
275
+ schemaVersion: z.ZodDefault<z.ZodString>;
308
276
  }, "strip", z.ZodTypeAny, {
309
- type: "boolean";
310
- meta: {
311
- schemaVersion: "1.0";
312
- };
313
- answer: boolean;
277
+ schemaVersion: string;
314
278
  }, {
315
- type: "boolean";
316
- meta: {
317
- schemaVersion: "1.0";
318
- };
319
- answer: boolean;
320
- }>, z.ZodObject<{
321
- meta: z.ZodObject<{
322
- schemaVersion: z.ZodLiteral<"1.0">;
323
- }, "strip", z.ZodTypeAny, {
324
- schemaVersion: "1.0";
325
- }, {
326
- schemaVersion: "1.0";
327
- }>;
328
- } & {
329
- type: z.ZodLiteral<"checkBoxes">;
330
- answer: z.ZodArray<z.ZodString, "many">;
279
+ schemaVersion?: string | undefined;
280
+ }>>;
281
+ } & {
282
+ type: z.ZodLiteral<"boolean">;
283
+ answer: z.ZodDefault<z.ZodBoolean>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ type: "boolean";
286
+ meta: {
287
+ schemaVersion: string;
288
+ };
289
+ answer: boolean;
290
+ }, {
291
+ type: "boolean";
292
+ meta?: {
293
+ schemaVersion?: string | undefined;
294
+ } | undefined;
295
+ answer?: boolean | undefined;
296
+ }>, z.ZodObject<{
297
+ meta: z.ZodDefault<z.ZodObject<{
298
+ schemaVersion: z.ZodDefault<z.ZodString>;
331
299
  }, "strip", z.ZodTypeAny, {
332
- type: "checkBoxes";
333
- meta: {
334
- schemaVersion: "1.0";
335
- };
336
- answer: string[];
300
+ schemaVersion: string;
337
301
  }, {
338
- type: "checkBoxes";
339
- meta: {
340
- schemaVersion: "1.0";
341
- };
342
- answer: string[];
343
- }>, z.ZodObject<{
344
- meta: z.ZodObject<{
345
- schemaVersion: z.ZodLiteral<"1.0">;
346
- }, "strip", z.ZodTypeAny, {
347
- schemaVersion: "1.0";
348
- }, {
349
- schemaVersion: "1.0";
350
- }>;
351
- } & {
352
- type: z.ZodLiteral<"currency">;
353
- answer: z.ZodNumber;
302
+ schemaVersion?: string | undefined;
303
+ }>>;
304
+ } & {
305
+ type: z.ZodLiteral<"checkBoxes">;
306
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ type: "checkBoxes";
309
+ meta: {
310
+ schemaVersion: string;
311
+ };
312
+ answer: string[];
313
+ }, {
314
+ type: "checkBoxes";
315
+ meta?: {
316
+ schemaVersion?: string | undefined;
317
+ } | undefined;
318
+ answer?: string[] | undefined;
319
+ }>, z.ZodObject<{
320
+ meta: z.ZodDefault<z.ZodObject<{
321
+ schemaVersion: z.ZodDefault<z.ZodString>;
354
322
  }, "strip", z.ZodTypeAny, {
355
- type: "currency";
356
- meta: {
357
- schemaVersion: "1.0";
358
- };
359
- answer: number;
323
+ schemaVersion: string;
360
324
  }, {
361
- type: "currency";
362
- meta: {
363
- schemaVersion: "1.0";
364
- };
365
- answer: number;
366
- }>, z.ZodObject<{
367
- answer: z.ZodString;
368
- meta: z.ZodObject<{
369
- schemaVersion: z.ZodLiteral<"1.0">;
370
- }, "strip", z.ZodTypeAny, {
371
- schemaVersion: "1.0";
372
- }, {
373
- schemaVersion: "1.0";
374
- }>;
375
- } & {
376
- type: z.ZodLiteral<"date">;
325
+ schemaVersion?: string | undefined;
326
+ }>>;
327
+ } & {
328
+ type: z.ZodLiteral<"currency">;
329
+ answer: z.ZodDefault<z.ZodNumber>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ type: "currency";
332
+ meta: {
333
+ schemaVersion: string;
334
+ };
335
+ answer: number;
336
+ }, {
337
+ type: "currency";
338
+ meta?: {
339
+ schemaVersion?: string | undefined;
340
+ } | undefined;
341
+ answer?: number | undefined;
342
+ }>, z.ZodObject<{
343
+ meta: z.ZodDefault<z.ZodObject<{
344
+ schemaVersion: z.ZodDefault<z.ZodString>;
377
345
  }, "strip", z.ZodTypeAny, {
378
- type: "date";
379
- meta: {
380
- schemaVersion: "1.0";
381
- };
382
- answer: string;
346
+ schemaVersion: string;
383
347
  }, {
384
- type: "date";
385
- meta: {
386
- schemaVersion: "1.0";
387
- };
388
- answer: string;
389
- }>, z.ZodObject<{
390
- meta: z.ZodObject<{
391
- schemaVersion: z.ZodLiteral<"1.0">;
392
- }, "strip", z.ZodTypeAny, {
393
- schemaVersion: "1.0";
394
- }, {
395
- schemaVersion: "1.0";
396
- }>;
397
- } & {
398
- type: z.ZodLiteral<"dateRange">;
399
- answer: z.ZodObject<{
400
- start: z.ZodString;
401
- end: z.ZodString;
402
- }, "strip", z.ZodTypeAny, {
403
- start: string;
404
- end: string;
405
- }, {
406
- start: string;
407
- end: string;
408
- }>;
348
+ schemaVersion?: string | undefined;
349
+ }>>;
350
+ } & {
351
+ type: z.ZodLiteral<"date">;
352
+ answer: z.ZodDefault<z.ZodString>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ type: "date";
355
+ meta: {
356
+ schemaVersion: string;
357
+ };
358
+ answer: string;
359
+ }, {
360
+ type: "date";
361
+ meta?: {
362
+ schemaVersion?: string | undefined;
363
+ } | undefined;
364
+ answer?: string | undefined;
365
+ }>, z.ZodObject<{
366
+ meta: z.ZodDefault<z.ZodObject<{
367
+ schemaVersion: z.ZodDefault<z.ZodString>;
409
368
  }, "strip", z.ZodTypeAny, {
410
- type: "dateRange";
411
- meta: {
412
- schemaVersion: "1.0";
413
- };
414
- answer: {
415
- start: string;
416
- end: string;
417
- };
369
+ schemaVersion: string;
418
370
  }, {
419
- type: "dateRange";
420
- meta: {
421
- schemaVersion: "1.0";
422
- };
423
- answer: {
424
- start: string;
425
- end: string;
426
- };
427
- }>, z.ZodObject<{
428
- meta: z.ZodObject<{
429
- schemaVersion: z.ZodLiteral<"1.0">;
430
- }, "strip", z.ZodTypeAny, {
431
- schemaVersion: "1.0";
432
- }, {
433
- schemaVersion: "1.0";
434
- }>;
435
- } & {
436
- type: z.ZodLiteral<"email">;
437
- answer: z.ZodString;
371
+ schemaVersion?: string | undefined;
372
+ }>>;
373
+ } & {
374
+ type: z.ZodLiteral<"dateRange">;
375
+ answer: z.ZodDefault<z.ZodObject<{
376
+ start: z.ZodDefault<z.ZodString>;
377
+ end: z.ZodDefault<z.ZodString>;
438
378
  }, "strip", z.ZodTypeAny, {
439
- type: "email";
440
- meta: {
441
- schemaVersion: "1.0";
442
- };
443
- answer: string;
379
+ start: string;
380
+ end: string;
444
381
  }, {
445
- type: "email";
446
- meta: {
447
- schemaVersion: "1.0";
448
- };
449
- answer: string;
450
- }>, z.ZodObject<{
451
- meta: z.ZodObject<{
452
- schemaVersion: z.ZodLiteral<"1.0">;
453
- }, "strip", z.ZodTypeAny, {
454
- schemaVersion: "1.0";
455
- }, {
456
- schemaVersion: "1.0";
457
- }>;
458
- } & {
459
- type: z.ZodLiteral<"filteredSearch">;
460
- answer: z.ZodArray<z.ZodString, "many">;
382
+ start?: string | undefined;
383
+ end?: string | undefined;
384
+ }>>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ type: "dateRange";
387
+ meta: {
388
+ schemaVersion: string;
389
+ };
390
+ answer: {
391
+ start: string;
392
+ end: string;
393
+ };
394
+ }, {
395
+ type: "dateRange";
396
+ meta?: {
397
+ schemaVersion?: string | undefined;
398
+ } | undefined;
399
+ answer?: {
400
+ start?: string | undefined;
401
+ end?: string | undefined;
402
+ } | undefined;
403
+ }>, z.ZodObject<{
404
+ meta: z.ZodDefault<z.ZodObject<{
405
+ schemaVersion: z.ZodDefault<z.ZodString>;
461
406
  }, "strip", z.ZodTypeAny, {
462
- type: "filteredSearch";
463
- meta: {
464
- schemaVersion: "1.0";
465
- };
466
- answer: string[];
407
+ schemaVersion: string;
467
408
  }, {
468
- type: "filteredSearch";
469
- meta: {
470
- schemaVersion: "1.0";
471
- };
472
- answer: string[];
473
- }>, z.ZodObject<{
474
- meta: z.ZodObject<{
475
- schemaVersion: z.ZodLiteral<"1.0">;
476
- }, "strip", z.ZodTypeAny, {
477
- schemaVersion: "1.0";
478
- }, {
479
- schemaVersion: "1.0";
480
- }>;
481
- } & {
482
- type: z.ZodLiteral<"multiselectBox">;
483
- answer: z.ZodArray<z.ZodString, "many">;
409
+ schemaVersion?: string | undefined;
410
+ }>>;
411
+ } & {
412
+ type: z.ZodLiteral<"email">;
413
+ answer: z.ZodDefault<z.ZodString>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ type: "email";
416
+ meta: {
417
+ schemaVersion: string;
418
+ };
419
+ answer: string;
420
+ }, {
421
+ type: "email";
422
+ meta?: {
423
+ schemaVersion?: string | undefined;
424
+ } | undefined;
425
+ answer?: string | undefined;
426
+ }>, z.ZodObject<{
427
+ meta: z.ZodDefault<z.ZodObject<{
428
+ schemaVersion: z.ZodDefault<z.ZodString>;
484
429
  }, "strip", z.ZodTypeAny, {
485
- type: "multiselectBox";
486
- meta: {
487
- schemaVersion: "1.0";
488
- };
489
- answer: string[];
430
+ schemaVersion: string;
490
431
  }, {
491
- type: "multiselectBox";
492
- meta: {
493
- schemaVersion: "1.0";
494
- };
495
- answer: string[];
496
- }>, z.ZodObject<{
497
- meta: z.ZodObject<{
498
- schemaVersion: z.ZodLiteral<"1.0">;
499
- }, "strip", z.ZodTypeAny, {
500
- schemaVersion: "1.0";
501
- }, {
502
- schemaVersion: "1.0";
503
- }>;
504
- } & {
505
- type: z.ZodLiteral<"number">;
506
- answer: z.ZodNumber;
432
+ schemaVersion?: string | undefined;
433
+ }>>;
434
+ } & {
435
+ type: z.ZodLiteral<"filteredSearch">;
436
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ type: "filteredSearch";
439
+ meta: {
440
+ schemaVersion: string;
441
+ };
442
+ answer: string[];
443
+ }, {
444
+ type: "filteredSearch";
445
+ meta?: {
446
+ schemaVersion?: string | undefined;
447
+ } | undefined;
448
+ answer?: string[] | undefined;
449
+ }>, z.ZodObject<{
450
+ meta: z.ZodDefault<z.ZodObject<{
451
+ schemaVersion: z.ZodDefault<z.ZodString>;
507
452
  }, "strip", z.ZodTypeAny, {
508
- type: "number";
509
- meta: {
510
- schemaVersion: "1.0";
511
- };
512
- answer: number;
453
+ schemaVersion: string;
513
454
  }, {
514
- type: "number";
515
- meta: {
516
- schemaVersion: "1.0";
517
- };
518
- answer: number;
519
- }>, z.ZodObject<{
520
- meta: z.ZodObject<{
521
- schemaVersion: z.ZodLiteral<"1.0">;
522
- }, "strip", z.ZodTypeAny, {
523
- schemaVersion: "1.0";
524
- }, {
525
- schemaVersion: "1.0";
526
- }>;
527
- } & {
528
- type: z.ZodLiteral<"radioButtons">;
529
- answer: z.ZodString;
455
+ schemaVersion?: string | undefined;
456
+ }>>;
457
+ } & {
458
+ type: z.ZodLiteral<"multiselectBox">;
459
+ answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: "multiselectBox";
462
+ meta: {
463
+ schemaVersion: string;
464
+ };
465
+ answer: string[];
466
+ }, {
467
+ type: "multiselectBox";
468
+ meta?: {
469
+ schemaVersion?: string | undefined;
470
+ } | undefined;
471
+ answer?: string[] | undefined;
472
+ }>, z.ZodObject<{
473
+ meta: z.ZodDefault<z.ZodObject<{
474
+ schemaVersion: z.ZodDefault<z.ZodString>;
530
475
  }, "strip", z.ZodTypeAny, {
531
- type: "radioButtons";
532
- meta: {
533
- schemaVersion: "1.0";
534
- };
535
- answer: string;
476
+ schemaVersion: string;
536
477
  }, {
537
- type: "radioButtons";
538
- meta: {
539
- schemaVersion: "1.0";
540
- };
541
- answer: string;
542
- }>, z.ZodObject<{
543
- meta: z.ZodObject<{
544
- schemaVersion: z.ZodLiteral<"1.0">;
545
- }, "strip", z.ZodTypeAny, {
546
- schemaVersion: "1.0";
547
- }, {
548
- schemaVersion: "1.0";
549
- }>;
550
- } & {
551
- type: z.ZodLiteral<"selectBox">;
552
- answer: z.ZodString;
478
+ schemaVersion?: string | undefined;
479
+ }>>;
480
+ } & {
481
+ type: z.ZodLiteral<"number">;
482
+ answer: z.ZodDefault<z.ZodNumber>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ type: "number";
485
+ meta: {
486
+ schemaVersion: string;
487
+ };
488
+ answer: number;
489
+ }, {
490
+ type: "number";
491
+ meta?: {
492
+ schemaVersion?: string | undefined;
493
+ } | undefined;
494
+ answer?: number | undefined;
495
+ }>, z.ZodObject<{
496
+ meta: z.ZodDefault<z.ZodObject<{
497
+ schemaVersion: z.ZodDefault<z.ZodString>;
553
498
  }, "strip", z.ZodTypeAny, {
554
- type: "selectBox";
555
- meta: {
556
- schemaVersion: "1.0";
557
- };
558
- answer: string;
499
+ schemaVersion: string;
559
500
  }, {
560
- type: "selectBox";
561
- meta: {
562
- schemaVersion: "1.0";
563
- };
564
- answer: string;
565
- }>, z.ZodObject<{
566
- meta: z.ZodObject<{
567
- schemaVersion: z.ZodLiteral<"1.0">;
568
- }, "strip", z.ZodTypeAny, {
569
- schemaVersion: "1.0";
570
- }, {
571
- schemaVersion: "1.0";
572
- }>;
573
- } & {
574
- type: z.ZodLiteral<"text">;
575
- answer: z.ZodString;
501
+ schemaVersion?: string | undefined;
502
+ }>>;
503
+ } & {
504
+ type: z.ZodLiteral<"radioButtons">;
505
+ answer: z.ZodDefault<z.ZodString>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ type: "radioButtons";
508
+ meta: {
509
+ schemaVersion: string;
510
+ };
511
+ answer: string;
512
+ }, {
513
+ type: "radioButtons";
514
+ meta?: {
515
+ schemaVersion?: string | undefined;
516
+ } | undefined;
517
+ answer?: string | undefined;
518
+ }>, z.ZodObject<{
519
+ meta: z.ZodDefault<z.ZodObject<{
520
+ schemaVersion: z.ZodDefault<z.ZodString>;
576
521
  }, "strip", z.ZodTypeAny, {
577
- type: "text";
578
- meta: {
579
- schemaVersion: "1.0";
580
- };
581
- answer: string;
522
+ schemaVersion: string;
582
523
  }, {
583
- type: "text";
584
- meta: {
585
- schemaVersion: "1.0";
586
- };
587
- answer: string;
588
- }>, z.ZodObject<{
589
- meta: z.ZodObject<{
590
- schemaVersion: z.ZodLiteral<"1.0">;
591
- }, "strip", z.ZodTypeAny, {
592
- schemaVersion: "1.0";
593
- }, {
594
- schemaVersion: "1.0";
595
- }>;
596
- } & {
597
- type: z.ZodLiteral<"textArea">;
598
- answer: z.ZodString;
524
+ schemaVersion?: string | undefined;
525
+ }>>;
526
+ } & {
527
+ type: z.ZodLiteral<"selectBox">;
528
+ answer: z.ZodDefault<z.ZodString>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: "selectBox";
531
+ meta: {
532
+ schemaVersion: string;
533
+ };
534
+ answer: string;
535
+ }, {
536
+ type: "selectBox";
537
+ meta?: {
538
+ schemaVersion?: string | undefined;
539
+ } | undefined;
540
+ answer?: string | undefined;
541
+ }>, z.ZodObject<{
542
+ meta: z.ZodDefault<z.ZodObject<{
543
+ schemaVersion: z.ZodDefault<z.ZodString>;
599
544
  }, "strip", z.ZodTypeAny, {
600
- type: "textArea";
601
- meta: {
602
- schemaVersion: "1.0";
603
- };
604
- answer: string;
545
+ schemaVersion: string;
605
546
  }, {
606
- type: "textArea";
607
- meta: {
608
- schemaVersion: "1.0";
609
- };
610
- answer: string;
611
- }>, z.ZodObject<{
612
- meta: z.ZodObject<{
613
- schemaVersion: z.ZodLiteral<"1.0">;
614
- }, "strip", z.ZodTypeAny, {
615
- schemaVersion: "1.0";
616
- }, {
617
- schemaVersion: "1.0";
618
- }>;
619
- } & {
620
- type: z.ZodLiteral<"url">;
621
- answer: z.ZodString;
547
+ schemaVersion?: string | undefined;
548
+ }>>;
549
+ } & {
550
+ type: z.ZodLiteral<"text">;
551
+ answer: z.ZodDefault<z.ZodString>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ type: "text";
554
+ meta: {
555
+ schemaVersion: string;
556
+ };
557
+ answer: string;
558
+ }, {
559
+ type: "text";
560
+ meta?: {
561
+ schemaVersion?: string | undefined;
562
+ } | undefined;
563
+ answer?: string | undefined;
564
+ }>, z.ZodObject<{
565
+ meta: z.ZodDefault<z.ZodObject<{
566
+ schemaVersion: z.ZodDefault<z.ZodString>;
622
567
  }, "strip", z.ZodTypeAny, {
623
- type: "url";
624
- meta: {
625
- schemaVersion: "1.0";
626
- };
627
- answer: string;
568
+ schemaVersion: string;
628
569
  }, {
629
- type: "url";
630
- meta: {
631
- schemaVersion: "1.0";
632
- };
633
- answer: string;
634
- }>]>;
570
+ schemaVersion?: string | undefined;
571
+ }>>;
572
+ } & {
573
+ type: z.ZodLiteral<"textArea">;
574
+ answer: z.ZodDefault<z.ZodString>;
635
575
  }, "strip", z.ZodTypeAny, {
636
- heading: string;
637
- content: {
638
- type: "date";
639
- meta: {
640
- schemaVersion: "1.0";
641
- };
642
- answer: string;
643
- } | {
644
- type: "dateRange";
645
- meta: {
646
- schemaVersion: "1.0";
647
- };
648
- answer: {
649
- start: string;
650
- end: string;
651
- };
652
- } | {
653
- type: "filteredSearch";
654
- meta: {
655
- schemaVersion: "1.0";
656
- };
657
- answer: string[];
658
- } | {
659
- type: "typeaheadSearch";
660
- meta: {
661
- schemaVersion: "1.0";
662
- };
663
- answer: string;
664
- } | {
665
- type: "boolean";
666
- meta: {
667
- schemaVersion: "1.0";
668
- };
669
- answer: boolean;
670
- } | {
671
- type: "checkBoxes";
672
- meta: {
673
- schemaVersion: "1.0";
674
- };
675
- answer: string[];
676
- } | {
677
- type: "radioButtons";
678
- meta: {
679
- schemaVersion: "1.0";
680
- };
681
- answer: string;
682
- } | {
683
- type: "selectBox";
684
- meta: {
685
- schemaVersion: "1.0";
686
- };
687
- answer: string;
688
- } | {
689
- type: "multiselectBox";
690
- meta: {
691
- schemaVersion: "1.0";
692
- };
693
- answer: string[];
694
- } | {
695
- type: "currency";
696
- meta: {
697
- schemaVersion: "1.0";
698
- };
699
- answer: number;
700
- } | {
701
- type: "number";
702
- meta: {
703
- schemaVersion: "1.0";
704
- };
705
- answer: number;
706
- } | {
707
- type: "email";
708
- meta: {
709
- schemaVersion: "1.0";
710
- };
711
- answer: string;
712
- } | {
713
- type: "text";
714
- meta: {
715
- schemaVersion: "1.0";
716
- };
717
- answer: string;
718
- } | {
719
- type: "textArea";
720
- meta: {
721
- schemaVersion: "1.0";
722
- };
723
- answer: string;
724
- } | {
725
- type: "url";
726
- meta: {
727
- schemaVersion: "1.0";
728
- };
729
- answer: string;
576
+ type: "textArea";
577
+ meta: {
578
+ schemaVersion: string;
730
579
  };
580
+ answer: string;
731
581
  }, {
732
- heading: string;
733
- content: {
734
- type: "date";
735
- meta: {
736
- schemaVersion: "1.0";
737
- };
738
- answer: string;
739
- } | {
740
- type: "dateRange";
741
- meta: {
742
- schemaVersion: "1.0";
743
- };
744
- answer: {
745
- start: string;
746
- end: string;
747
- };
748
- } | {
749
- type: "filteredSearch";
750
- meta: {
751
- schemaVersion: "1.0";
752
- };
753
- answer: string[];
754
- } | {
755
- type: "typeaheadSearch";
756
- meta: {
757
- schemaVersion: "1.0";
758
- };
759
- answer: string;
760
- } | {
761
- type: "boolean";
762
- meta: {
763
- schemaVersion: "1.0";
764
- };
765
- answer: boolean;
766
- } | {
767
- type: "checkBoxes";
768
- meta: {
769
- schemaVersion: "1.0";
770
- };
771
- answer: string[];
772
- } | {
773
- type: "radioButtons";
774
- meta: {
775
- schemaVersion: "1.0";
776
- };
777
- answer: string;
778
- } | {
779
- type: "selectBox";
780
- meta: {
781
- schemaVersion: "1.0";
782
- };
783
- answer: string;
784
- } | {
785
- type: "multiselectBox";
786
- meta: {
787
- schemaVersion: "1.0";
788
- };
789
- answer: string[];
790
- } | {
791
- type: "currency";
792
- meta: {
793
- schemaVersion: "1.0";
794
- };
795
- answer: number;
796
- } | {
797
- type: "number";
798
- meta: {
799
- schemaVersion: "1.0";
800
- };
801
- answer: number;
802
- } | {
803
- type: "email";
804
- meta: {
805
- schemaVersion: "1.0";
806
- };
807
- answer: string;
808
- } | {
809
- type: "text";
810
- meta: {
811
- schemaVersion: "1.0";
812
- };
813
- answer: string;
814
- } | {
815
- type: "textArea";
816
- meta: {
817
- schemaVersion: "1.0";
818
- };
819
- answer: string;
820
- } | {
821
- type: "url";
822
- meta: {
823
- schemaVersion: "1.0";
824
- };
825
- answer: string;
582
+ type: "textArea";
583
+ meta?: {
584
+ schemaVersion?: string | undefined;
585
+ } | undefined;
586
+ answer?: string | undefined;
587
+ }>, z.ZodObject<{
588
+ meta: z.ZodDefault<z.ZodObject<{
589
+ schemaVersion: z.ZodDefault<z.ZodString>;
590
+ }, "strip", z.ZodTypeAny, {
591
+ schemaVersion: string;
592
+ }, {
593
+ schemaVersion?: string | undefined;
594
+ }>>;
595
+ } & {
596
+ type: z.ZodLiteral<"url">;
597
+ answer: z.ZodDefault<z.ZodString>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ type: "url";
600
+ meta: {
601
+ schemaVersion: string;
826
602
  };
827
- }>, "many">;
603
+ answer: string;
604
+ }, {
605
+ type: "url";
606
+ meta?: {
607
+ schemaVersion?: string | undefined;
608
+ } | undefined;
609
+ answer?: string | undefined;
610
+ }>]>, "many">;
828
611
  }, "strip", z.ZodTypeAny, {
829
- columns: {
830
- heading: string;
831
- content: {
832
- type: "date";
833
- meta: {
834
- schemaVersion: "1.0";
835
- };
836
- answer: string;
837
- } | {
838
- type: "dateRange";
839
- meta: {
840
- schemaVersion: "1.0";
841
- };
842
- answer: {
843
- start: string;
844
- end: string;
845
- };
846
- } | {
847
- type: "filteredSearch";
848
- meta: {
849
- schemaVersion: "1.0";
850
- };
851
- answer: string[];
852
- } | {
853
- type: "typeaheadSearch";
854
- meta: {
855
- schemaVersion: "1.0";
856
- };
857
- answer: string;
858
- } | {
859
- type: "boolean";
860
- meta: {
861
- schemaVersion: "1.0";
862
- };
863
- answer: boolean;
864
- } | {
865
- type: "checkBoxes";
866
- meta: {
867
- schemaVersion: "1.0";
868
- };
869
- answer: string[];
870
- } | {
871
- type: "radioButtons";
872
- meta: {
873
- schemaVersion: "1.0";
874
- };
875
- answer: string;
876
- } | {
877
- type: "selectBox";
878
- meta: {
879
- schemaVersion: "1.0";
880
- };
881
- answer: string;
882
- } | {
883
- type: "multiselectBox";
884
- meta: {
885
- schemaVersion: "1.0";
886
- };
887
- answer: string[];
888
- } | {
889
- type: "currency";
890
- meta: {
891
- schemaVersion: "1.0";
892
- };
893
- answer: number;
894
- } | {
895
- type: "number";
896
- meta: {
897
- schemaVersion: "1.0";
898
- };
899
- answer: number;
900
- } | {
901
- type: "email";
902
- meta: {
903
- schemaVersion: "1.0";
904
- };
905
- answer: string;
906
- } | {
907
- type: "text";
908
- meta: {
909
- schemaVersion: "1.0";
910
- };
911
- answer: string;
912
- } | {
913
- type: "textArea";
914
- meta: {
915
- schemaVersion: "1.0";
916
- };
917
- answer: string;
918
- } | {
919
- type: "url";
920
- meta: {
921
- schemaVersion: "1.0";
922
- };
923
- answer: string;
612
+ columns: ({
613
+ type: "date";
614
+ meta: {
615
+ schemaVersion: string;
924
616
  };
925
- }[];
926
- }, {
927
- columns: {
928
- heading: string;
929
- content: {
930
- type: "date";
931
- meta: {
932
- schemaVersion: "1.0";
933
- };
934
- answer: string;
935
- } | {
936
- type: "dateRange";
937
- meta: {
938
- schemaVersion: "1.0";
939
- };
940
- answer: {
941
- start: string;
942
- end: string;
943
- };
944
- } | {
945
- type: "filteredSearch";
946
- meta: {
947
- schemaVersion: "1.0";
948
- };
949
- answer: string[];
950
- } | {
951
- type: "typeaheadSearch";
952
- meta: {
953
- schemaVersion: "1.0";
954
- };
955
- answer: string;
956
- } | {
957
- type: "boolean";
958
- meta: {
959
- schemaVersion: "1.0";
960
- };
961
- answer: boolean;
962
- } | {
963
- type: "checkBoxes";
964
- meta: {
965
- schemaVersion: "1.0";
966
- };
967
- answer: string[];
968
- } | {
969
- type: "radioButtons";
970
- meta: {
971
- schemaVersion: "1.0";
972
- };
973
- answer: string;
974
- } | {
975
- type: "selectBox";
976
- meta: {
977
- schemaVersion: "1.0";
978
- };
979
- answer: string;
980
- } | {
981
- type: "multiselectBox";
982
- meta: {
983
- schemaVersion: "1.0";
984
- };
985
- answer: string[];
986
- } | {
987
- type: "currency";
988
- meta: {
989
- schemaVersion: "1.0";
990
- };
991
- answer: number;
992
- } | {
993
- type: "number";
994
- meta: {
995
- schemaVersion: "1.0";
996
- };
997
- answer: number;
998
- } | {
999
- type: "email";
1000
- meta: {
1001
- schemaVersion: "1.0";
1002
- };
1003
- answer: string;
1004
- } | {
1005
- type: "text";
1006
- meta: {
1007
- schemaVersion: "1.0";
1008
- };
1009
- answer: string;
1010
- } | {
1011
- type: "textArea";
1012
- meta: {
1013
- schemaVersion: "1.0";
1014
- };
1015
- answer: string;
1016
- } | {
1017
- type: "url";
1018
- meta: {
1019
- schemaVersion: "1.0";
1020
- };
1021
- answer: string;
617
+ answer: string;
618
+ } | {
619
+ type: "dateRange";
620
+ meta: {
621
+ schemaVersion: string;
622
+ };
623
+ answer: {
624
+ start: string;
625
+ end: string;
626
+ };
627
+ } | {
628
+ type: "filteredSearch";
629
+ meta: {
630
+ schemaVersion: string;
631
+ };
632
+ answer: string[];
633
+ } | {
634
+ type: "affiliationSearch";
635
+ meta: {
636
+ schemaVersion: string;
637
+ };
638
+ answer: string;
639
+ } | {
640
+ type: "boolean";
641
+ meta: {
642
+ schemaVersion: string;
643
+ };
644
+ answer: boolean;
645
+ } | {
646
+ type: "checkBoxes";
647
+ meta: {
648
+ schemaVersion: string;
649
+ };
650
+ answer: string[];
651
+ } | {
652
+ type: "radioButtons";
653
+ meta: {
654
+ schemaVersion: string;
655
+ };
656
+ answer: string;
657
+ } | {
658
+ type: "selectBox";
659
+ meta: {
660
+ schemaVersion: string;
661
+ };
662
+ answer: string;
663
+ } | {
664
+ type: "multiselectBox";
665
+ meta: {
666
+ schemaVersion: string;
667
+ };
668
+ answer: string[];
669
+ } | {
670
+ type: "currency";
671
+ meta: {
672
+ schemaVersion: string;
673
+ };
674
+ answer: number;
675
+ } | {
676
+ type: "number";
677
+ meta: {
678
+ schemaVersion: string;
679
+ };
680
+ answer: number;
681
+ } | {
682
+ type: "email";
683
+ meta: {
684
+ schemaVersion: string;
1022
685
  };
1023
- }[];
1024
- }>, "many">;
686
+ answer: string;
687
+ } | {
688
+ type: "text";
689
+ meta: {
690
+ schemaVersion: string;
691
+ };
692
+ answer: string;
693
+ } | {
694
+ type: "textArea";
695
+ meta: {
696
+ schemaVersion: string;
697
+ };
698
+ answer: string;
699
+ } | {
700
+ type: "url";
701
+ meta: {
702
+ schemaVersion: string;
703
+ };
704
+ answer: string;
705
+ })[];
706
+ }, {
707
+ columns: ({
708
+ type: "date";
709
+ meta?: {
710
+ schemaVersion?: string | undefined;
711
+ } | undefined;
712
+ answer?: string | undefined;
713
+ } | {
714
+ type: "dateRange";
715
+ meta?: {
716
+ schemaVersion?: string | undefined;
717
+ } | undefined;
718
+ answer?: {
719
+ start?: string | undefined;
720
+ end?: string | undefined;
721
+ } | undefined;
722
+ } | {
723
+ type: "filteredSearch";
724
+ meta?: {
725
+ schemaVersion?: string | undefined;
726
+ } | undefined;
727
+ answer?: string[] | undefined;
728
+ } | {
729
+ type: "affiliationSearch";
730
+ meta?: {
731
+ schemaVersion?: string | undefined;
732
+ } | undefined;
733
+ answer?: string | undefined;
734
+ } | {
735
+ type: "boolean";
736
+ meta?: {
737
+ schemaVersion?: string | undefined;
738
+ } | undefined;
739
+ answer?: boolean | undefined;
740
+ } | {
741
+ type: "checkBoxes";
742
+ meta?: {
743
+ schemaVersion?: string | undefined;
744
+ } | undefined;
745
+ answer?: string[] | undefined;
746
+ } | {
747
+ type: "radioButtons";
748
+ meta?: {
749
+ schemaVersion?: string | undefined;
750
+ } | undefined;
751
+ answer?: string | undefined;
752
+ } | {
753
+ type: "selectBox";
754
+ meta?: {
755
+ schemaVersion?: string | undefined;
756
+ } | undefined;
757
+ answer?: string | undefined;
758
+ } | {
759
+ type: "multiselectBox";
760
+ meta?: {
761
+ schemaVersion?: string | undefined;
762
+ } | undefined;
763
+ answer?: string[] | undefined;
764
+ } | {
765
+ type: "currency";
766
+ meta?: {
767
+ schemaVersion?: string | undefined;
768
+ } | undefined;
769
+ answer?: number | undefined;
770
+ } | {
771
+ type: "number";
772
+ meta?: {
773
+ schemaVersion?: string | undefined;
774
+ } | undefined;
775
+ answer?: number | undefined;
776
+ } | {
777
+ type: "email";
778
+ meta?: {
779
+ schemaVersion?: string | undefined;
780
+ } | undefined;
781
+ answer?: string | undefined;
782
+ } | {
783
+ type: "text";
784
+ meta?: {
785
+ schemaVersion?: string | undefined;
786
+ } | undefined;
787
+ answer?: string | undefined;
788
+ } | {
789
+ type: "textArea";
790
+ meta?: {
791
+ schemaVersion?: string | undefined;
792
+ } | undefined;
793
+ answer?: string | undefined;
794
+ } | {
795
+ type: "url";
796
+ meta?: {
797
+ schemaVersion?: string | undefined;
798
+ } | undefined;
799
+ answer?: string | undefined;
800
+ })[];
801
+ }>, "many">>;
1025
802
  }, "strip", z.ZodTypeAny, {
1026
803
  type: "table";
1027
804
  meta: {
1028
- schemaVersion: "1.0";
805
+ schemaVersion: string;
1029
806
  };
1030
807
  answer: {
1031
- columns: {
1032
- heading: string;
1033
- content: {
1034
- type: "date";
1035
- meta: {
1036
- schemaVersion: "1.0";
1037
- };
1038
- answer: string;
1039
- } | {
1040
- type: "dateRange";
1041
- meta: {
1042
- schemaVersion: "1.0";
1043
- };
1044
- answer: {
1045
- start: string;
1046
- end: string;
1047
- };
1048
- } | {
1049
- type: "filteredSearch";
1050
- meta: {
1051
- schemaVersion: "1.0";
1052
- };
1053
- answer: string[];
1054
- } | {
1055
- type: "typeaheadSearch";
1056
- meta: {
1057
- schemaVersion: "1.0";
1058
- };
1059
- answer: string;
1060
- } | {
1061
- type: "boolean";
1062
- meta: {
1063
- schemaVersion: "1.0";
1064
- };
1065
- answer: boolean;
1066
- } | {
1067
- type: "checkBoxes";
1068
- meta: {
1069
- schemaVersion: "1.0";
1070
- };
1071
- answer: string[];
1072
- } | {
1073
- type: "radioButtons";
1074
- meta: {
1075
- schemaVersion: "1.0";
1076
- };
1077
- answer: string;
1078
- } | {
1079
- type: "selectBox";
1080
- meta: {
1081
- schemaVersion: "1.0";
1082
- };
1083
- answer: string;
1084
- } | {
1085
- type: "multiselectBox";
1086
- meta: {
1087
- schemaVersion: "1.0";
1088
- };
1089
- answer: string[];
1090
- } | {
1091
- type: "currency";
1092
- meta: {
1093
- schemaVersion: "1.0";
1094
- };
1095
- answer: number;
1096
- } | {
1097
- type: "number";
1098
- meta: {
1099
- schemaVersion: "1.0";
1100
- };
1101
- answer: number;
1102
- } | {
1103
- type: "email";
1104
- meta: {
1105
- schemaVersion: "1.0";
1106
- };
1107
- answer: string;
1108
- } | {
1109
- type: "text";
1110
- meta: {
1111
- schemaVersion: "1.0";
1112
- };
1113
- answer: string;
1114
- } | {
1115
- type: "textArea";
1116
- meta: {
1117
- schemaVersion: "1.0";
1118
- };
1119
- answer: string;
1120
- } | {
1121
- type: "url";
1122
- meta: {
1123
- schemaVersion: "1.0";
1124
- };
1125
- answer: string;
808
+ columns: ({
809
+ type: "date";
810
+ meta: {
811
+ schemaVersion: string;
812
+ };
813
+ answer: string;
814
+ } | {
815
+ type: "dateRange";
816
+ meta: {
817
+ schemaVersion: string;
818
+ };
819
+ answer: {
820
+ start: string;
821
+ end: string;
822
+ };
823
+ } | {
824
+ type: "filteredSearch";
825
+ meta: {
826
+ schemaVersion: string;
827
+ };
828
+ answer: string[];
829
+ } | {
830
+ type: "affiliationSearch";
831
+ meta: {
832
+ schemaVersion: string;
833
+ };
834
+ answer: string;
835
+ } | {
836
+ type: "boolean";
837
+ meta: {
838
+ schemaVersion: string;
839
+ };
840
+ answer: boolean;
841
+ } | {
842
+ type: "checkBoxes";
843
+ meta: {
844
+ schemaVersion: string;
845
+ };
846
+ answer: string[];
847
+ } | {
848
+ type: "radioButtons";
849
+ meta: {
850
+ schemaVersion: string;
851
+ };
852
+ answer: string;
853
+ } | {
854
+ type: "selectBox";
855
+ meta: {
856
+ schemaVersion: string;
857
+ };
858
+ answer: string;
859
+ } | {
860
+ type: "multiselectBox";
861
+ meta: {
862
+ schemaVersion: string;
863
+ };
864
+ answer: string[];
865
+ } | {
866
+ type: "currency";
867
+ meta: {
868
+ schemaVersion: string;
869
+ };
870
+ answer: number;
871
+ } | {
872
+ type: "number";
873
+ meta: {
874
+ schemaVersion: string;
875
+ };
876
+ answer: number;
877
+ } | {
878
+ type: "email";
879
+ meta: {
880
+ schemaVersion: string;
881
+ };
882
+ answer: string;
883
+ } | {
884
+ type: "text";
885
+ meta: {
886
+ schemaVersion: string;
1126
887
  };
1127
- }[];
888
+ answer: string;
889
+ } | {
890
+ type: "textArea";
891
+ meta: {
892
+ schemaVersion: string;
893
+ };
894
+ answer: string;
895
+ } | {
896
+ type: "url";
897
+ meta: {
898
+ schemaVersion: string;
899
+ };
900
+ answer: string;
901
+ })[];
1128
902
  }[];
903
+ columnHeadings: string[];
1129
904
  }, {
1130
905
  type: "table";
1131
- meta: {
1132
- schemaVersion: "1.0";
1133
- };
1134
- answer: {
1135
- columns: {
1136
- heading: string;
1137
- content: {
1138
- type: "date";
1139
- meta: {
1140
- schemaVersion: "1.0";
1141
- };
1142
- answer: string;
1143
- } | {
1144
- type: "dateRange";
1145
- meta: {
1146
- schemaVersion: "1.0";
1147
- };
1148
- answer: {
1149
- start: string;
1150
- end: string;
1151
- };
1152
- } | {
1153
- type: "filteredSearch";
1154
- meta: {
1155
- schemaVersion: "1.0";
1156
- };
1157
- answer: string[];
1158
- } | {
1159
- type: "typeaheadSearch";
1160
- meta: {
1161
- schemaVersion: "1.0";
1162
- };
1163
- answer: string;
1164
- } | {
1165
- type: "boolean";
1166
- meta: {
1167
- schemaVersion: "1.0";
1168
- };
1169
- answer: boolean;
1170
- } | {
1171
- type: "checkBoxes";
1172
- meta: {
1173
- schemaVersion: "1.0";
1174
- };
1175
- answer: string[];
1176
- } | {
1177
- type: "radioButtons";
1178
- meta: {
1179
- schemaVersion: "1.0";
1180
- };
1181
- answer: string;
1182
- } | {
1183
- type: "selectBox";
1184
- meta: {
1185
- schemaVersion: "1.0";
1186
- };
1187
- answer: string;
1188
- } | {
1189
- type: "multiselectBox";
1190
- meta: {
1191
- schemaVersion: "1.0";
1192
- };
1193
- answer: string[];
1194
- } | {
1195
- type: "currency";
1196
- meta: {
1197
- schemaVersion: "1.0";
1198
- };
1199
- answer: number;
1200
- } | {
1201
- type: "number";
1202
- meta: {
1203
- schemaVersion: "1.0";
1204
- };
1205
- answer: number;
1206
- } | {
1207
- type: "email";
1208
- meta: {
1209
- schemaVersion: "1.0";
1210
- };
1211
- answer: string;
1212
- } | {
1213
- type: "text";
1214
- meta: {
1215
- schemaVersion: "1.0";
1216
- };
1217
- answer: string;
1218
- } | {
1219
- type: "textArea";
1220
- meta: {
1221
- schemaVersion: "1.0";
1222
- };
1223
- answer: string;
1224
- } | {
1225
- type: "url";
1226
- meta: {
1227
- schemaVersion: "1.0";
1228
- };
1229
- answer: string;
1230
- };
1231
- }[];
1232
- }[];
906
+ meta?: {
907
+ schemaVersion?: string | undefined;
908
+ } | undefined;
909
+ answer?: {
910
+ columns: ({
911
+ type: "date";
912
+ meta?: {
913
+ schemaVersion?: string | undefined;
914
+ } | undefined;
915
+ answer?: string | undefined;
916
+ } | {
917
+ type: "dateRange";
918
+ meta?: {
919
+ schemaVersion?: string | undefined;
920
+ } | undefined;
921
+ answer?: {
922
+ start?: string | undefined;
923
+ end?: string | undefined;
924
+ } | undefined;
925
+ } | {
926
+ type: "filteredSearch";
927
+ meta?: {
928
+ schemaVersion?: string | undefined;
929
+ } | undefined;
930
+ answer?: string[] | undefined;
931
+ } | {
932
+ type: "affiliationSearch";
933
+ meta?: {
934
+ schemaVersion?: string | undefined;
935
+ } | undefined;
936
+ answer?: string | undefined;
937
+ } | {
938
+ type: "boolean";
939
+ meta?: {
940
+ schemaVersion?: string | undefined;
941
+ } | undefined;
942
+ answer?: boolean | undefined;
943
+ } | {
944
+ type: "checkBoxes";
945
+ meta?: {
946
+ schemaVersion?: string | undefined;
947
+ } | undefined;
948
+ answer?: string[] | undefined;
949
+ } | {
950
+ type: "radioButtons";
951
+ meta?: {
952
+ schemaVersion?: string | undefined;
953
+ } | undefined;
954
+ answer?: string | undefined;
955
+ } | {
956
+ type: "selectBox";
957
+ meta?: {
958
+ schemaVersion?: string | undefined;
959
+ } | undefined;
960
+ answer?: string | undefined;
961
+ } | {
962
+ type: "multiselectBox";
963
+ meta?: {
964
+ schemaVersion?: string | undefined;
965
+ } | undefined;
966
+ answer?: string[] | undefined;
967
+ } | {
968
+ type: "currency";
969
+ meta?: {
970
+ schemaVersion?: string | undefined;
971
+ } | undefined;
972
+ answer?: number | undefined;
973
+ } | {
974
+ type: "number";
975
+ meta?: {
976
+ schemaVersion?: string | undefined;
977
+ } | undefined;
978
+ answer?: number | undefined;
979
+ } | {
980
+ type: "email";
981
+ meta?: {
982
+ schemaVersion?: string | undefined;
983
+ } | undefined;
984
+ answer?: string | undefined;
985
+ } | {
986
+ type: "text";
987
+ meta?: {
988
+ schemaVersion?: string | undefined;
989
+ } | undefined;
990
+ answer?: string | undefined;
991
+ } | {
992
+ type: "textArea";
993
+ meta?: {
994
+ schemaVersion?: string | undefined;
995
+ } | undefined;
996
+ answer?: string | undefined;
997
+ } | {
998
+ type: "url";
999
+ meta?: {
1000
+ schemaVersion?: string | undefined;
1001
+ } | undefined;
1002
+ answer?: string | undefined;
1003
+ })[];
1004
+ }[] | undefined;
1005
+ columnHeadings?: string[] | undefined;
1233
1006
  }>, z.ZodObject<{
1234
- meta: z.ZodObject<{
1235
- schemaVersion: z.ZodLiteral<"1.0">;
1007
+ meta: z.ZodDefault<z.ZodObject<{
1008
+ schemaVersion: z.ZodDefault<z.ZodString>;
1236
1009
  }, "strip", z.ZodTypeAny, {
1237
- schemaVersion: "1.0";
1010
+ schemaVersion: string;
1238
1011
  }, {
1239
- schemaVersion: "1.0";
1240
- }>;
1012
+ schemaVersion?: string | undefined;
1013
+ }>>;
1241
1014
  } & {
1242
1015
  type: z.ZodLiteral<"text">;
1243
- answer: z.ZodString;
1016
+ answer: z.ZodDefault<z.ZodString>;
1244
1017
  }, "strip", z.ZodTypeAny, {
1245
1018
  type: "text";
1246
1019
  meta: {
1247
- schemaVersion: "1.0";
1020
+ schemaVersion: string;
1248
1021
  };
1249
1022
  answer: string;
1250
1023
  }, {
1251
1024
  type: "text";
1252
- meta: {
1253
- schemaVersion: "1.0";
1254
- };
1255
- answer: string;
1025
+ meta?: {
1026
+ schemaVersion?: string | undefined;
1027
+ } | undefined;
1028
+ answer?: string | undefined;
1256
1029
  }>, z.ZodObject<{
1257
- meta: z.ZodObject<{
1258
- schemaVersion: z.ZodLiteral<"1.0">;
1030
+ meta: z.ZodDefault<z.ZodObject<{
1031
+ schemaVersion: z.ZodDefault<z.ZodString>;
1259
1032
  }, "strip", z.ZodTypeAny, {
1260
- schemaVersion: "1.0";
1033
+ schemaVersion: string;
1261
1034
  }, {
1262
- schemaVersion: "1.0";
1263
- }>;
1035
+ schemaVersion?: string | undefined;
1036
+ }>>;
1264
1037
  } & {
1265
1038
  type: z.ZodLiteral<"textArea">;
1266
- answer: z.ZodString;
1039
+ answer: z.ZodDefault<z.ZodString>;
1267
1040
  }, "strip", z.ZodTypeAny, {
1268
1041
  type: "textArea";
1269
1042
  meta: {
1270
- schemaVersion: "1.0";
1043
+ schemaVersion: string;
1271
1044
  };
1272
1045
  answer: string;
1273
1046
  }, {
1274
1047
  type: "textArea";
1275
- meta: {
1276
- schemaVersion: "1.0";
1277
- };
1278
- answer: string;
1048
+ meta?: {
1049
+ schemaVersion?: string | undefined;
1050
+ } | undefined;
1051
+ answer?: string | undefined;
1279
1052
  }>, z.ZodObject<{
1280
- meta: z.ZodObject<{
1281
- schemaVersion: z.ZodLiteral<"1.0">;
1053
+ meta: z.ZodDefault<z.ZodObject<{
1054
+ schemaVersion: z.ZodDefault<z.ZodString>;
1282
1055
  }, "strip", z.ZodTypeAny, {
1283
- schemaVersion: "1.0";
1056
+ schemaVersion: string;
1284
1057
  }, {
1285
- schemaVersion: "1.0";
1286
- }>;
1058
+ schemaVersion?: string | undefined;
1059
+ }>>;
1287
1060
  } & {
1288
1061
  type: z.ZodLiteral<"url">;
1289
- answer: z.ZodString;
1062
+ answer: z.ZodDefault<z.ZodString>;
1290
1063
  }, "strip", z.ZodTypeAny, {
1291
1064
  type: "url";
1292
1065
  meta: {
1293
- schemaVersion: "1.0";
1066
+ schemaVersion: string;
1294
1067
  };
1295
1068
  answer: string;
1296
1069
  }, {
1297
1070
  type: "url";
1298
- meta: {
1299
- schemaVersion: "1.0";
1300
- };
1301
- answer: string;
1071
+ meta?: {
1072
+ schemaVersion?: string | undefined;
1073
+ } | undefined;
1074
+ answer?: string | undefined;
1302
1075
  }>]>;
1303
- export declare const AnswerSchemaMap: Record<z.infer<typeof QuestionTypesEnum>, z.ZodTypeAny>;
1076
+ export declare const AnswerSchemaMap: Record<z.infer<typeof QuestionFormatsEnum>, z.ZodTypeAny>;
1304
1077
  export type AnyAnswerType = z.infer<typeof AnyAnswerSchema>;
1305
1078
  export interface AnswerTypeMap {
1306
1079
  affiliationSearch: AffiliationSearchAnswerType;
@@ -1310,7 +1083,6 @@ export interface AnswerTypeMap {
1310
1083
  date: DateAnswerType;
1311
1084
  dateRange: DateRangeAnswerType;
1312
1085
  email: EmailAnswerType;
1313
- filteredSearch: FilteredSearchAnswerType;
1314
1086
  multiselectBox: MultiselectBoxAnswerType;
1315
1087
  number: NumberAnswerType;
1316
1088
  numberRange: NumberRangeAnswerType;