@dmptool/types 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/answers/__tests__/answers.spec.js +11 -5
  2. package/dist/answers/answer.d.ts +3 -3
  3. package/dist/answers/graphQLAnswers.d.ts +2 -2
  4. package/dist/answers/graphQLAnswers.js +2 -2
  5. package/dist/answers/index.d.ts +92 -55
  6. package/dist/answers/index.js +2 -2
  7. package/dist/answers/optionBasedAnswers.d.ts +27 -2
  8. package/dist/answers/optionBasedAnswers.js +5 -1
  9. package/dist/answers/tableAnswers.d.ts +268 -104
  10. package/dist/answers/tableAnswers.js +2 -1
  11. package/dist/questions/__tests__/graphQLQuestions.spec.js +13 -11
  12. package/dist/questions/__tests__/optionBasedQuestions.spec.js +52 -13
  13. package/dist/questions/dateQuestions.d.ts +68 -47
  14. package/dist/questions/dateQuestions.js +15 -6
  15. package/dist/questions/graphQLQuestions.d.ts +121 -96
  16. package/dist/questions/graphQLQuestions.js +34 -3
  17. package/dist/questions/index.d.ts +1524 -1006
  18. package/dist/questions/index.js +4 -2
  19. package/dist/questions/numberQuestions.d.ts +107 -76
  20. package/dist/questions/numberQuestions.js +20 -7
  21. package/dist/questions/optionBasedQuestions.d.ts +202 -74
  22. package/dist/questions/optionBasedQuestions.js +41 -11
  23. package/dist/questions/question.d.ts +43 -4
  24. package/dist/questions/question.js +13 -2
  25. package/dist/questions/tableQuestions.d.ts +2056 -1428
  26. package/dist/questions/tableQuestions.js +9 -4
  27. package/dist/questions/textQuestions.d.ts +98 -58
  28. package/dist/questions/textQuestions.js +29 -15
  29. package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
  30. package/dist/schemas/affiliationSearchQuestion.schema.json +146 -0
  31. package/dist/schemas/anyAnswer.schema.json +41 -23
  32. package/dist/schemas/anyQuestion.schema.json +525 -108
  33. package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
  34. package/dist/schemas/anyTableColumnQuestion.schema.json +396 -80
  35. package/dist/schemas/booleanQuestion.schema.json +11 -3
  36. package/dist/schemas/checkboxesQuestion.schema.json +14 -7
  37. package/dist/schemas/currencyQuestion.schema.json +14 -3
  38. package/dist/schemas/dateQuestion.schema.json +10 -1
  39. package/dist/schemas/dateRangeQuestion.schema.json +14 -1
  40. package/dist/schemas/emailQuestion.schema.json +12 -2
  41. package/dist/schemas/filteredSearchQuestion.schema.json +7 -0
  42. package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
  43. package/dist/schemas/multiselectBoxQuestion.schema.json +85 -0
  44. package/dist/schemas/numberQuestion.schema.json +12 -2
  45. package/dist/schemas/numberRangeQuestion.schema.json +16 -2
  46. package/dist/schemas/radioButtonsQuestion.schema.json +14 -7
  47. package/dist/schemas/selectBoxAnswer.schema.json +1 -4
  48. package/dist/schemas/selectBoxQuestion.schema.json +17 -8
  49. package/dist/schemas/tableAnswer.schema.json +35 -14
  50. package/dist/schemas/tableQuestion.schema.json +420 -84
  51. package/dist/schemas/textAreaQuestion.schema.json +16 -6
  52. package/dist/schemas/textQuestion.schema.json +10 -1
  53. package/dist/schemas/urlQuestion.schema.json +10 -1
  54. package/package.json +1 -1
@@ -3,8 +3,8 @@ import { QuestionTypesEnum } from './question';
3
3
  import { CurrencyQuestionType, NumberQuestionType, NumberRangeQuestionType } from "./numberQuestions";
4
4
  import { EmailQuestionType, TextAreaQuestionType, TextQuestionType, URLQuestionType } from "./textQuestions";
5
5
  import { DateQuestionType, DateRangeQuestionType } from "./dateQuestions";
6
- import { BooleanQuestionType, CheckboxesQuestionType, RadioButtonsQuestionType, SelectBoxQuestionType } from './optionBasedQuestions';
7
- import { FilteredSearchQuestionType, TypeaheadSearchQuestionType } from './graphQLQuestions';
6
+ import { BooleanQuestionType, CheckboxesQuestionType, RadioButtonsQuestionType, SelectBoxQuestionType, MultiselectBoxQuestionType } from './optionBasedQuestions';
7
+ import { FilteredSearchQuestionType, AffiliationSearchQuestionType } from './graphQLQuestions';
8
8
  import { TableQuestionType } from './tableQuestions';
9
9
  export * from './question';
10
10
  export * from './dateQuestions';
@@ -14,53 +14,231 @@ export * from './optionBasedQuestions';
14
14
  export * from './tableQuestions';
15
15
  export * from './textQuestions';
16
16
  export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
17
- meta: z.ZodOptional<z.ZodObject<{
17
+ attributes: z.ZodOptional<z.ZodObject<{
18
+ label: z.ZodOptional<z.ZodString>;
19
+ help: z.ZodOptional<z.ZodString>;
20
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ label?: string | undefined;
23
+ help?: string | undefined;
24
+ labelTranslationKey?: string | undefined;
25
+ }, {
26
+ label?: string | undefined;
27
+ help?: string | undefined;
28
+ labelTranslationKey?: string | undefined;
29
+ }>>;
30
+ } & {
31
+ type: z.ZodLiteral<"affiliationSearch">;
32
+ graphQL: z.ZodObject<{
33
+ localQueryId: z.ZodOptional<z.ZodString>;
34
+ } & {
35
+ query: z.ZodLiteral<"query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}">;
36
+ queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
37
+ variables: z.ZodArray<z.ZodObject<{
38
+ name: z.ZodLiteral<"name">;
39
+ type: z.ZodDefault<z.ZodString>;
40
+ label: z.ZodDefault<z.ZodString>;
41
+ minLength: z.ZodLiteral<3>;
42
+ labelTranslationKey: z.ZodOptional<z.ZodDefault<z.ZodString>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ type: string;
45
+ label: string;
46
+ minLength: 3;
47
+ name: "name";
48
+ labelTranslationKey?: string | undefined;
49
+ }, {
50
+ minLength: 3;
51
+ name: "name";
52
+ type?: string | undefined;
53
+ label?: string | undefined;
54
+ labelTranslationKey?: string | undefined;
55
+ }>, "many">;
56
+ answerField: z.ZodLiteral<"uri">;
57
+ displayFields: z.ZodArray<z.ZodObject<{
58
+ propertyName: z.ZodLiteral<"displayName">;
59
+ label: z.ZodDefault<z.ZodString>;
60
+ labelTranslationKey: z.ZodOptional<z.ZodDefault<z.ZodString>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ label: string;
63
+ propertyName: "displayName";
64
+ labelTranslationKey?: string | undefined;
65
+ }, {
66
+ propertyName: "displayName";
67
+ label?: string | undefined;
68
+ labelTranslationKey?: string | undefined;
69
+ }>, "many">;
70
+ responseField: z.ZodLiteral<"affiliations.items">;
71
+ }, "strip", z.ZodTypeAny, {
72
+ displayFields: {
73
+ label: string;
74
+ propertyName: "displayName";
75
+ labelTranslationKey?: string | undefined;
76
+ }[];
77
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
78
+ responseField: "affiliations.items";
79
+ variables: {
80
+ type: string;
81
+ label: string;
82
+ minLength: 3;
83
+ name: "name";
84
+ labelTranslationKey?: string | undefined;
85
+ }[];
86
+ answerField: "uri";
87
+ localQueryId?: string | undefined;
88
+ queryId?: string | undefined;
89
+ }, {
90
+ displayFields: {
91
+ propertyName: "displayName";
92
+ label?: string | undefined;
93
+ labelTranslationKey?: string | undefined;
94
+ }[];
95
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
96
+ responseField: "affiliations.items";
97
+ variables: {
98
+ minLength: 3;
99
+ name: "name";
100
+ type?: string | undefined;
101
+ label?: string | undefined;
102
+ labelTranslationKey?: string | undefined;
103
+ }[];
104
+ answerField: "uri";
105
+ localQueryId?: string | undefined;
106
+ queryId?: string | undefined;
107
+ }>;
108
+ meta: z.ZodObject<{
18
109
  schemaVersion: z.ZodLiteral<"1.0">;
110
+ } & {
111
+ title: z.ZodOptional<z.ZodLiteral<"Affiliation Search">>;
112
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require the user to select from a controlled list of institutions.">>;
19
113
  }, "strip", z.ZodTypeAny, {
20
114
  schemaVersion: "1.0";
115
+ title?: "Affiliation Search" | undefined;
116
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
21
117
  }, {
22
118
  schemaVersion: "1.0";
23
- }>>;
24
- } & {
119
+ title?: "Affiliation Search" | undefined;
120
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
121
+ }>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: "affiliationSearch";
124
+ meta: {
125
+ schemaVersion: "1.0";
126
+ title?: "Affiliation Search" | undefined;
127
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
128
+ };
129
+ graphQL: {
130
+ displayFields: {
131
+ label: string;
132
+ propertyName: "displayName";
133
+ labelTranslationKey?: string | undefined;
134
+ }[];
135
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
136
+ responseField: "affiliations.items";
137
+ variables: {
138
+ type: string;
139
+ label: string;
140
+ minLength: 3;
141
+ name: "name";
142
+ labelTranslationKey?: string | undefined;
143
+ }[];
144
+ answerField: "uri";
145
+ localQueryId?: string | undefined;
146
+ queryId?: string | undefined;
147
+ };
148
+ attributes?: {
149
+ label?: string | undefined;
150
+ help?: string | undefined;
151
+ labelTranslationKey?: string | undefined;
152
+ } | undefined;
153
+ }, {
154
+ type: "affiliationSearch";
155
+ meta: {
156
+ schemaVersion: "1.0";
157
+ title?: "Affiliation Search" | undefined;
158
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
159
+ };
160
+ graphQL: {
161
+ displayFields: {
162
+ propertyName: "displayName";
163
+ label?: string | undefined;
164
+ labelTranslationKey?: string | undefined;
165
+ }[];
166
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
167
+ responseField: "affiliations.items";
168
+ variables: {
169
+ minLength: 3;
170
+ name: "name";
171
+ type?: string | undefined;
172
+ label?: string | undefined;
173
+ labelTranslationKey?: string | undefined;
174
+ }[];
175
+ answerField: "uri";
176
+ localQueryId?: string | undefined;
177
+ queryId?: string | undefined;
178
+ };
179
+ attributes?: {
180
+ label?: string | undefined;
181
+ help?: string | undefined;
182
+ labelTranslationKey?: string | undefined;
183
+ } | undefined;
184
+ }>, z.ZodObject<{} & {
25
185
  type: z.ZodLiteral<"boolean">;
26
- attributes: z.ZodObject<{
186
+ attributes: z.ZodOptional<z.ZodObject<{
27
187
  label: z.ZodOptional<z.ZodString>;
28
188
  help: z.ZodOptional<z.ZodString>;
29
189
  labelTranslationKey: z.ZodOptional<z.ZodString>;
30
190
  } & {
31
- checked: z.ZodOptional<z.ZodBoolean>;
191
+ checked: z.ZodDefault<z.ZodBoolean>;
32
192
  }, "strip", z.ZodTypeAny, {
193
+ checked: boolean;
33
194
  label?: string | undefined;
34
195
  help?: string | undefined;
35
196
  labelTranslationKey?: string | undefined;
36
- checked?: boolean | undefined;
37
197
  }, {
38
198
  label?: string | undefined;
39
199
  help?: string | undefined;
40
200
  labelTranslationKey?: string | undefined;
41
201
  checked?: boolean | undefined;
42
- }>;
202
+ }>>;
203
+ meta: z.ZodOptional<z.ZodObject<{
204
+ schemaVersion: z.ZodLiteral<"1.0">;
205
+ } & {
206
+ title: z.ZodOptional<z.ZodLiteral<"Yes/No Field">>;
207
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a simple Yes/No response.">>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ schemaVersion: "1.0";
210
+ title?: "Yes/No Field" | undefined;
211
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
212
+ }, {
213
+ schemaVersion: "1.0";
214
+ title?: "Yes/No Field" | undefined;
215
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
216
+ }>>;
43
217
  }, "strip", z.ZodTypeAny, {
44
218
  type: "boolean";
45
- attributes: {
219
+ attributes?: {
220
+ checked: boolean;
46
221
  label?: string | undefined;
47
222
  help?: string | undefined;
48
223
  labelTranslationKey?: string | undefined;
49
- checked?: boolean | undefined;
50
- };
224
+ } | undefined;
51
225
  meta?: {
52
226
  schemaVersion: "1.0";
227
+ title?: "Yes/No Field" | undefined;
228
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
53
229
  } | undefined;
54
230
  }, {
55
231
  type: "boolean";
56
- attributes: {
232
+ attributes?: {
57
233
  label?: string | undefined;
58
234
  help?: string | undefined;
59
235
  labelTranslationKey?: string | undefined;
60
236
  checked?: boolean | undefined;
61
- };
237
+ } | undefined;
62
238
  meta?: {
63
239
  schemaVersion: "1.0";
240
+ title?: "Yes/No Field" | undefined;
241
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
64
242
  } | undefined;
65
243
  }>, z.ZodObject<{
66
244
  attributes: z.ZodOptional<z.ZodObject<{
@@ -76,34 +254,41 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
76
254
  help?: string | undefined;
77
255
  labelTranslationKey?: string | undefined;
78
256
  }>>;
79
- meta: z.ZodOptional<z.ZodObject<{
80
- schemaVersion: z.ZodLiteral<"1.0">;
81
- }, "strip", z.ZodTypeAny, {
82
- schemaVersion: "1.0";
83
- }, {
84
- schemaVersion: "1.0";
85
- }>>;
86
257
  } & {
87
258
  type: z.ZodLiteral<"checkBoxes">;
88
259
  options: z.ZodArray<z.ZodObject<{
89
- label: z.ZodString;
90
- value: z.ZodString;
260
+ label: z.ZodDefault<z.ZodString>;
261
+ value: z.ZodDefault<z.ZodString>;
91
262
  } & {
92
- checked: z.ZodOptional<z.ZodBoolean>;
263
+ checked: z.ZodDefault<z.ZodBoolean>;
93
264
  }, "strip", z.ZodTypeAny, {
94
265
  value: string;
95
266
  label: string;
96
- checked?: boolean | undefined;
267
+ checked: boolean;
97
268
  }, {
98
- value: string;
99
- label: string;
269
+ value?: string | undefined;
270
+ label?: string | undefined;
100
271
  checked?: boolean | undefined;
101
272
  }>, "many">;
273
+ meta: z.ZodOptional<z.ZodObject<{
274
+ schemaVersion: z.ZodLiteral<"1.0">;
275
+ } & {
276
+ title: z.ZodOptional<z.ZodLiteral<"Check Boxes">>;
277
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users can select multiple options.">>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ schemaVersion: "1.0";
280
+ title?: "Check Boxes" | undefined;
281
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
282
+ }, {
283
+ schemaVersion: "1.0";
284
+ title?: "Check Boxes" | undefined;
285
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
286
+ }>>;
102
287
  }, "strip", z.ZodTypeAny, {
103
288
  options: {
104
289
  value: string;
105
290
  label: string;
106
- checked?: boolean | undefined;
291
+ checked: boolean;
107
292
  }[];
108
293
  type: "checkBoxes";
109
294
  attributes?: {
@@ -113,11 +298,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
113
298
  } | undefined;
114
299
  meta?: {
115
300
  schemaVersion: "1.0";
301
+ title?: "Check Boxes" | undefined;
302
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
116
303
  } | undefined;
117
304
  }, {
118
305
  options: {
119
- value: string;
120
- label: string;
306
+ value?: string | undefined;
307
+ label?: string | undefined;
121
308
  checked?: boolean | undefined;
122
309
  }[];
123
310
  type: "checkBoxes";
@@ -128,16 +315,10 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
128
315
  } | undefined;
129
316
  meta?: {
130
317
  schemaVersion: "1.0";
318
+ title?: "Check Boxes" | undefined;
319
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
131
320
  } | undefined;
132
- }>, z.ZodObject<{
133
- meta: z.ZodOptional<z.ZodObject<{
134
- schemaVersion: z.ZodLiteral<"1.0">;
135
- }, "strip", z.ZodTypeAny, {
136
- schemaVersion: "1.0";
137
- }, {
138
- schemaVersion: "1.0";
139
- }>>;
140
- } & {
321
+ }>, z.ZodObject<{} & {
141
322
  type: z.ZodLiteral<"currency">;
142
323
  attributes: z.ZodOptional<z.ZodObject<{
143
324
  label: z.ZodOptional<z.ZodString>;
@@ -145,18 +326,18 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
145
326
  labelTranslationKey: z.ZodOptional<z.ZodString>;
146
327
  } & {
147
328
  max: z.ZodOptional<z.ZodNumber>;
148
- min: z.ZodOptional<z.ZodNumber>;
149
- step: z.ZodOptional<z.ZodNumber>;
329
+ min: z.ZodDefault<z.ZodNumber>;
330
+ step: z.ZodDefault<z.ZodNumber>;
150
331
  } & {
151
- denomination: z.ZodOptional<z.ZodString>;
332
+ denomination: z.ZodDefault<z.ZodString>;
152
333
  }, "strip", z.ZodTypeAny, {
334
+ min: number;
335
+ step: number;
336
+ denomination: string;
153
337
  label?: string | undefined;
154
338
  help?: string | undefined;
155
339
  labelTranslationKey?: string | undefined;
156
340
  max?: number | undefined;
157
- min?: number | undefined;
158
- step?: number | undefined;
159
- denomination?: string | undefined;
160
341
  }, {
161
342
  label?: string | undefined;
162
343
  help?: string | undefined;
@@ -166,19 +347,35 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
166
347
  step?: number | undefined;
167
348
  denomination?: string | undefined;
168
349
  }>>;
350
+ meta: z.ZodOptional<z.ZodObject<{
351
+ schemaVersion: z.ZodLiteral<"1.0">;
352
+ } & {
353
+ title: z.ZodOptional<z.ZodLiteral<"Currency Field">>;
354
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a monetary amount (e.g. Cost or Budget).">>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ schemaVersion: "1.0";
357
+ title?: "Currency Field" | undefined;
358
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
359
+ }, {
360
+ schemaVersion: "1.0";
361
+ title?: "Currency Field" | undefined;
362
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
363
+ }>>;
169
364
  }, "strip", z.ZodTypeAny, {
170
365
  type: "currency";
171
366
  attributes?: {
367
+ min: number;
368
+ step: number;
369
+ denomination: string;
172
370
  label?: string | undefined;
173
371
  help?: string | undefined;
174
372
  labelTranslationKey?: string | undefined;
175
373
  max?: number | undefined;
176
- min?: number | undefined;
177
- step?: number | undefined;
178
- denomination?: string | undefined;
179
374
  } | undefined;
180
375
  meta?: {
181
376
  schemaVersion: "1.0";
377
+ title?: "Currency Field" | undefined;
378
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
182
379
  } | undefined;
183
380
  }, {
184
381
  type: "currency";
@@ -193,16 +390,10 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
193
390
  } | undefined;
194
391
  meta?: {
195
392
  schemaVersion: "1.0";
393
+ title?: "Currency Field" | undefined;
394
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
196
395
  } | undefined;
197
- }>, z.ZodObject<{
198
- meta: z.ZodOptional<z.ZodObject<{
199
- schemaVersion: z.ZodLiteral<"1.0">;
200
- }, "strip", z.ZodTypeAny, {
201
- schemaVersion: "1.0";
202
- }, {
203
- schemaVersion: "1.0";
204
- }>>;
205
- } & {
396
+ }>, z.ZodObject<{} & {
206
397
  type: z.ZodLiteral<"date">;
207
398
  attributes: z.ZodOptional<z.ZodObject<{
208
399
  label: z.ZodOptional<z.ZodString>;
@@ -211,14 +402,14 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
211
402
  } & {
212
403
  max: z.ZodOptional<z.ZodString>;
213
404
  min: z.ZodOptional<z.ZodString>;
214
- step: z.ZodOptional<z.ZodNumber>;
405
+ step: z.ZodDefault<z.ZodNumber>;
215
406
  }, "strip", z.ZodTypeAny, {
407
+ step: number;
216
408
  label?: string | undefined;
217
409
  help?: string | undefined;
218
410
  labelTranslationKey?: string | undefined;
219
411
  max?: string | undefined;
220
412
  min?: string | undefined;
221
- step?: number | undefined;
222
413
  }, {
223
414
  label?: string | undefined;
224
415
  help?: string | undefined;
@@ -227,18 +418,34 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
227
418
  min?: string | undefined;
228
419
  step?: number | undefined;
229
420
  }>>;
421
+ meta: z.ZodOptional<z.ZodObject<{
422
+ schemaVersion: z.ZodLiteral<"1.0">;
423
+ } & {
424
+ title: z.ZodOptional<z.ZodLiteral<"Date Field">>;
425
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date.">>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ schemaVersion: "1.0";
428
+ title?: "Date Field" | undefined;
429
+ usageDescription?: "For questions that require a date." | undefined;
430
+ }, {
431
+ schemaVersion: "1.0";
432
+ title?: "Date Field" | undefined;
433
+ usageDescription?: "For questions that require a date." | undefined;
434
+ }>>;
230
435
  }, "strip", z.ZodTypeAny, {
231
436
  type: "date";
232
437
  attributes?: {
438
+ step: number;
233
439
  label?: string | undefined;
234
440
  help?: string | undefined;
235
441
  labelTranslationKey?: string | undefined;
236
442
  max?: string | undefined;
237
443
  min?: string | undefined;
238
- step?: number | undefined;
239
444
  } | undefined;
240
445
  meta?: {
241
446
  schemaVersion: "1.0";
447
+ title?: "Date Field" | undefined;
448
+ usageDescription?: "For questions that require a date." | undefined;
242
449
  } | undefined;
243
450
  }, {
244
451
  type: "date";
@@ -252,6 +459,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
252
459
  } | undefined;
253
460
  meta?: {
254
461
  schemaVersion: "1.0";
462
+ title?: "Date Field" | undefined;
463
+ usageDescription?: "For questions that require a date." | undefined;
255
464
  } | undefined;
256
465
  }>, z.ZodObject<{
257
466
  attributes: z.ZodOptional<z.ZodObject<{
@@ -267,31 +476,24 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
267
476
  help?: string | undefined;
268
477
  labelTranslationKey?: string | undefined;
269
478
  }>>;
270
- meta: z.ZodOptional<z.ZodObject<{
271
- schemaVersion: z.ZodLiteral<"1.0">;
272
- }, "strip", z.ZodTypeAny, {
273
- schemaVersion: "1.0";
274
- }, {
275
- schemaVersion: "1.0";
276
- }>>;
277
479
  } & {
278
480
  type: z.ZodLiteral<"dateRange">;
279
481
  columns: z.ZodObject<{
280
- start: z.ZodOptional<z.ZodObject<{
482
+ start: z.ZodObject<{
281
483
  label: z.ZodOptional<z.ZodString>;
282
484
  help: z.ZodOptional<z.ZodString>;
283
485
  labelTranslationKey: z.ZodOptional<z.ZodString>;
284
486
  } & {
285
487
  max: z.ZodOptional<z.ZodString>;
286
488
  min: z.ZodOptional<z.ZodString>;
287
- step: z.ZodOptional<z.ZodNumber>;
489
+ step: z.ZodDefault<z.ZodNumber>;
288
490
  }, "strip", z.ZodTypeAny, {
491
+ step: number;
289
492
  label?: string | undefined;
290
493
  help?: string | undefined;
291
494
  labelTranslationKey?: string | undefined;
292
495
  max?: string | undefined;
293
496
  min?: string | undefined;
294
- step?: number | undefined;
295
497
  }, {
296
498
  label?: string | undefined;
297
499
  help?: string | undefined;
@@ -299,22 +501,22 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
299
501
  max?: string | undefined;
300
502
  min?: string | undefined;
301
503
  step?: number | undefined;
302
- }>>;
303
- end: z.ZodOptional<z.ZodObject<{
504
+ }>;
505
+ end: z.ZodObject<{
304
506
  label: z.ZodOptional<z.ZodString>;
305
507
  help: z.ZodOptional<z.ZodString>;
306
508
  labelTranslationKey: z.ZodOptional<z.ZodString>;
307
509
  } & {
308
510
  max: z.ZodOptional<z.ZodString>;
309
511
  min: z.ZodOptional<z.ZodString>;
310
- step: z.ZodOptional<z.ZodNumber>;
512
+ step: z.ZodDefault<z.ZodNumber>;
311
513
  }, "strip", z.ZodTypeAny, {
514
+ step: number;
312
515
  label?: string | undefined;
313
516
  help?: string | undefined;
314
517
  labelTranslationKey?: string | undefined;
315
518
  max?: string | undefined;
316
519
  min?: string | undefined;
317
- step?: number | undefined;
318
520
  }, {
319
521
  label?: string | undefined;
320
522
  help?: string | undefined;
@@ -322,61 +524,75 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
322
524
  max?: string | undefined;
323
525
  min?: string | undefined;
324
526
  step?: number | undefined;
325
- }>>;
527
+ }>;
326
528
  }, "strip", z.ZodTypeAny, {
327
- start?: {
529
+ start: {
530
+ step: number;
328
531
  label?: string | undefined;
329
532
  help?: string | undefined;
330
533
  labelTranslationKey?: string | undefined;
331
534
  max?: string | undefined;
332
535
  min?: string | undefined;
333
- step?: number | undefined;
334
- } | undefined;
335
- end?: {
536
+ };
537
+ end: {
538
+ step: number;
336
539
  label?: string | undefined;
337
540
  help?: string | undefined;
338
541
  labelTranslationKey?: string | undefined;
339
542
  max?: string | undefined;
340
543
  min?: string | undefined;
341
- step?: number | undefined;
342
- } | undefined;
544
+ };
343
545
  }, {
344
- start?: {
546
+ start: {
345
547
  label?: string | undefined;
346
548
  help?: string | undefined;
347
549
  labelTranslationKey?: string | undefined;
348
550
  max?: string | undefined;
349
551
  min?: string | undefined;
350
552
  step?: number | undefined;
351
- } | undefined;
352
- end?: {
553
+ };
554
+ end: {
353
555
  label?: string | undefined;
354
556
  help?: string | undefined;
355
557
  labelTranslationKey?: string | undefined;
356
558
  max?: string | undefined;
357
559
  min?: string | undefined;
358
560
  step?: number | undefined;
359
- } | undefined;
561
+ };
360
562
  }>;
563
+ meta: z.ZodOptional<z.ZodObject<{
564
+ schemaVersion: z.ZodLiteral<"1.0">;
565
+ } & {
566
+ title: z.ZodOptional<z.ZodLiteral<"Date Range">>;
567
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date range (e.g. From/To, Start/End)">>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ schemaVersion: "1.0";
570
+ title?: "Date Range" | undefined;
571
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
572
+ }, {
573
+ schemaVersion: "1.0";
574
+ title?: "Date Range" | undefined;
575
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
576
+ }>>;
361
577
  }, "strip", z.ZodTypeAny, {
362
578
  type: "dateRange";
363
579
  columns: {
364
- start?: {
580
+ start: {
581
+ step: number;
365
582
  label?: string | undefined;
366
583
  help?: string | undefined;
367
584
  labelTranslationKey?: string | undefined;
368
585
  max?: string | undefined;
369
586
  min?: string | undefined;
370
- step?: number | undefined;
371
- } | undefined;
372
- end?: {
587
+ };
588
+ end: {
589
+ step: number;
373
590
  label?: string | undefined;
374
591
  help?: string | undefined;
375
592
  labelTranslationKey?: string | undefined;
376
593
  max?: string | undefined;
377
594
  min?: string | undefined;
378
- step?: number | undefined;
379
- } | undefined;
595
+ };
380
596
  };
381
597
  attributes?: {
382
598
  label?: string | undefined;
@@ -385,26 +601,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
385
601
  } | undefined;
386
602
  meta?: {
387
603
  schemaVersion: "1.0";
604
+ title?: "Date Range" | undefined;
605
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
388
606
  } | undefined;
389
607
  }, {
390
608
  type: "dateRange";
391
609
  columns: {
392
- start?: {
610
+ start: {
393
611
  label?: string | undefined;
394
612
  help?: string | undefined;
395
613
  labelTranslationKey?: string | undefined;
396
614
  max?: string | undefined;
397
615
  min?: string | undefined;
398
616
  step?: number | undefined;
399
- } | undefined;
400
- end?: {
617
+ };
618
+ end: {
401
619
  label?: string | undefined;
402
620
  help?: string | undefined;
403
621
  labelTranslationKey?: string | undefined;
404
622
  max?: string | undefined;
405
623
  min?: string | undefined;
406
624
  step?: number | undefined;
407
- } | undefined;
625
+ };
408
626
  };
409
627
  attributes?: {
410
628
  label?: string | undefined;
@@ -413,35 +631,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
413
631
  } | undefined;
414
632
  meta?: {
415
633
  schemaVersion: "1.0";
634
+ title?: "Date Range" | undefined;
635
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
416
636
  } | undefined;
417
- }>, z.ZodObject<{
418
- meta: z.ZodOptional<z.ZodObject<{
419
- schemaVersion: z.ZodLiteral<"1.0">;
420
- }, "strip", z.ZodTypeAny, {
421
- schemaVersion: "1.0";
422
- }, {
423
- schemaVersion: "1.0";
424
- }>>;
425
- } & {
637
+ }>, z.ZodObject<{} & {
426
638
  type: z.ZodLiteral<"email">;
427
639
  attributes: z.ZodOptional<z.ZodObject<{
428
640
  label: z.ZodOptional<z.ZodString>;
429
641
  help: z.ZodOptional<z.ZodString>;
430
642
  labelTranslationKey: z.ZodOptional<z.ZodString>;
431
643
  } & {
432
- maxLength: z.ZodOptional<z.ZodNumber>;
644
+ maxLength: z.ZodDefault<z.ZodNumber>;
433
645
  minLength: z.ZodOptional<z.ZodNumber>;
434
646
  pattern: z.ZodOptional<z.ZodString>;
435
647
  } & {
436
- multiple: z.ZodOptional<z.ZodBoolean>;
648
+ multiple: z.ZodDefault<z.ZodBoolean>;
437
649
  }, "strip", z.ZodTypeAny, {
650
+ maxLength: number;
651
+ multiple: boolean;
438
652
  label?: string | undefined;
439
653
  help?: string | undefined;
440
654
  labelTranslationKey?: string | undefined;
441
- maxLength?: number | undefined;
442
655
  minLength?: number | undefined;
443
656
  pattern?: string | undefined;
444
- multiple?: boolean | undefined;
445
657
  }, {
446
658
  label?: string | undefined;
447
659
  help?: string | undefined;
@@ -451,19 +663,35 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
451
663
  pattern?: string | undefined;
452
664
  multiple?: boolean | undefined;
453
665
  }>>;
666
+ meta: z.ZodOptional<z.ZodObject<{
667
+ schemaVersion: z.ZodLiteral<"1.0">;
668
+ } & {
669
+ title: z.ZodOptional<z.ZodLiteral<"Email Field">>;
670
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require require email address(es).">>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ schemaVersion: "1.0";
673
+ title?: "Email Field" | undefined;
674
+ usageDescription?: "For questions that require require email address(es)." | undefined;
675
+ }, {
676
+ schemaVersion: "1.0";
677
+ title?: "Email Field" | undefined;
678
+ usageDescription?: "For questions that require require email address(es)." | undefined;
679
+ }>>;
454
680
  }, "strip", z.ZodTypeAny, {
455
681
  type: "email";
456
682
  attributes?: {
683
+ maxLength: number;
684
+ multiple: boolean;
457
685
  label?: string | undefined;
458
686
  help?: string | undefined;
459
687
  labelTranslationKey?: string | undefined;
460
- maxLength?: number | undefined;
461
688
  minLength?: number | undefined;
462
689
  pattern?: string | undefined;
463
- multiple?: boolean | undefined;
464
690
  } | undefined;
465
691
  meta?: {
466
692
  schemaVersion: "1.0";
693
+ title?: "Email Field" | undefined;
694
+ usageDescription?: "For questions that require require email address(es)." | undefined;
467
695
  } | undefined;
468
696
  }, {
469
697
  type: "email";
@@ -478,16 +706,10 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
478
706
  } | undefined;
479
707
  meta?: {
480
708
  schemaVersion: "1.0";
709
+ title?: "Email Field" | undefined;
710
+ usageDescription?: "For questions that require require email address(es)." | undefined;
481
711
  } | undefined;
482
- }>, z.ZodObject<{
483
- meta: z.ZodOptional<z.ZodObject<{
484
- schemaVersion: z.ZodLiteral<"1.0">;
485
- }, "strip", z.ZodTypeAny, {
486
- schemaVersion: "1.0";
487
- }, {
488
- schemaVersion: "1.0";
489
- }>>;
490
- } & {
712
+ }>, z.ZodObject<{} & {
491
713
  type: z.ZodLiteral<"filteredSearch">;
492
714
  graphQL: z.ZodObject<{
493
715
  displayFields: z.ZodArray<z.ZodObject<{
@@ -580,11 +802,25 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
580
802
  labelTranslationKey?: string | undefined;
581
803
  multiple?: boolean | undefined;
582
804
  }>>;
583
- }, "strip", z.ZodTypeAny, {
584
- type: "filteredSearch";
585
- graphQL: {
586
- displayFields: {
587
- label: string;
805
+ meta: z.ZodOptional<z.ZodObject<{
806
+ schemaVersion: z.ZodLiteral<"1.0">;
807
+ usageDescription: z.ZodOptional<z.ZodString>;
808
+ } & {
809
+ title: z.ZodOptional<z.ZodLiteral<"Not yet implemented">>;
810
+ }, "strip", z.ZodTypeAny, {
811
+ schemaVersion: "1.0";
812
+ title?: "Not yet implemented" | undefined;
813
+ usageDescription?: string | undefined;
814
+ }, {
815
+ schemaVersion: "1.0";
816
+ title?: "Not yet implemented" | undefined;
817
+ usageDescription?: string | undefined;
818
+ }>>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ type: "filteredSearch";
821
+ graphQL: {
822
+ displayFields: {
823
+ label: string;
588
824
  propertyName: string;
589
825
  labelTranslationKey?: string | undefined;
590
826
  }[];
@@ -608,6 +844,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
608
844
  } | undefined;
609
845
  meta?: {
610
846
  schemaVersion: "1.0";
847
+ title?: "Not yet implemented" | undefined;
848
+ usageDescription?: string | undefined;
611
849
  } | undefined;
612
850
  }, {
613
851
  type: "filteredSearch";
@@ -637,16 +875,94 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
637
875
  } | undefined;
638
876
  meta?: {
639
877
  schemaVersion: "1.0";
878
+ title?: "Not yet implemented" | undefined;
879
+ usageDescription?: string | undefined;
640
880
  } | undefined;
641
881
  }>, z.ZodObject<{
882
+ options: z.ZodArray<z.ZodObject<{
883
+ label: z.ZodDefault<z.ZodString>;
884
+ value: z.ZodDefault<z.ZodString>;
885
+ } & {
886
+ selected: z.ZodDefault<z.ZodBoolean>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ value: string;
889
+ label: string;
890
+ selected: boolean;
891
+ }, {
892
+ value?: string | undefined;
893
+ label?: string | undefined;
894
+ selected?: boolean | undefined;
895
+ }>, "many">;
896
+ } & {
897
+ type: z.ZodLiteral<"multiselectBox">;
898
+ attributes: z.ZodObject<{
899
+ label: z.ZodOptional<z.ZodString>;
900
+ help: z.ZodOptional<z.ZodString>;
901
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
902
+ } & {
903
+ multiple: z.ZodLiteral<true>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ multiple: true;
906
+ label?: string | undefined;
907
+ help?: string | undefined;
908
+ labelTranslationKey?: string | undefined;
909
+ }, {
910
+ multiple: true;
911
+ label?: string | undefined;
912
+ help?: string | undefined;
913
+ labelTranslationKey?: string | undefined;
914
+ }>;
642
915
  meta: z.ZodOptional<z.ZodObject<{
643
916
  schemaVersion: z.ZodLiteral<"1.0">;
917
+ } & {
918
+ title: z.ZodOptional<z.ZodLiteral<"Multi-select Box">>;
919
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses.">>;
644
920
  }, "strip", z.ZodTypeAny, {
645
921
  schemaVersion: "1.0";
922
+ title?: "Multi-select Box" | undefined;
923
+ usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
646
924
  }, {
647
925
  schemaVersion: "1.0";
926
+ title?: "Multi-select Box" | undefined;
927
+ usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
648
928
  }>>;
649
- } & {
929
+ }, "strip", z.ZodTypeAny, {
930
+ options: {
931
+ value: string;
932
+ label: string;
933
+ selected: boolean;
934
+ }[];
935
+ type: "multiselectBox";
936
+ attributes: {
937
+ multiple: true;
938
+ label?: string | undefined;
939
+ help?: string | undefined;
940
+ labelTranslationKey?: string | undefined;
941
+ };
942
+ meta?: {
943
+ schemaVersion: "1.0";
944
+ title?: "Multi-select Box" | undefined;
945
+ usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
946
+ } | undefined;
947
+ }, {
948
+ options: {
949
+ value?: string | undefined;
950
+ label?: string | undefined;
951
+ selected?: boolean | undefined;
952
+ }[];
953
+ type: "multiselectBox";
954
+ attributes: {
955
+ multiple: true;
956
+ label?: string | undefined;
957
+ help?: string | undefined;
958
+ labelTranslationKey?: string | undefined;
959
+ };
960
+ meta?: {
961
+ schemaVersion: "1.0";
962
+ title?: "Multi-select Box" | undefined;
963
+ usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
964
+ } | undefined;
965
+ }>, z.ZodObject<{} & {
650
966
  type: z.ZodLiteral<"number">;
651
967
  attributes: z.ZodOptional<z.ZodObject<{
652
968
  label: z.ZodOptional<z.ZodString>;
@@ -654,15 +970,15 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
654
970
  labelTranslationKey: z.ZodOptional<z.ZodString>;
655
971
  } & {
656
972
  max: z.ZodOptional<z.ZodNumber>;
657
- min: z.ZodOptional<z.ZodNumber>;
658
- step: z.ZodOptional<z.ZodNumber>;
973
+ min: z.ZodDefault<z.ZodNumber>;
974
+ step: z.ZodDefault<z.ZodNumber>;
659
975
  }, "strip", z.ZodTypeAny, {
976
+ min: number;
977
+ step: number;
660
978
  label?: string | undefined;
661
979
  help?: string | undefined;
662
980
  labelTranslationKey?: string | undefined;
663
981
  max?: number | undefined;
664
- min?: number | undefined;
665
- step?: number | undefined;
666
982
  }, {
667
983
  label?: string | undefined;
668
984
  help?: string | undefined;
@@ -671,18 +987,34 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
671
987
  min?: number | undefined;
672
988
  step?: number | undefined;
673
989
  }>>;
990
+ meta: z.ZodOptional<z.ZodObject<{
991
+ schemaVersion: z.ZodLiteral<"1.0">;
992
+ } & {
993
+ title: z.ZodOptional<z.ZodLiteral<"Number Field">>;
994
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a single numeric value.">>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ schemaVersion: "1.0";
997
+ title?: "Number Field" | undefined;
998
+ usageDescription?: "For questions that require a single numeric value." | undefined;
999
+ }, {
1000
+ schemaVersion: "1.0";
1001
+ title?: "Number Field" | undefined;
1002
+ usageDescription?: "For questions that require a single numeric value." | undefined;
1003
+ }>>;
674
1004
  }, "strip", z.ZodTypeAny, {
675
1005
  type: "number";
676
1006
  attributes?: {
1007
+ min: number;
1008
+ step: number;
677
1009
  label?: string | undefined;
678
1010
  help?: string | undefined;
679
1011
  labelTranslationKey?: string | undefined;
680
1012
  max?: number | undefined;
681
- min?: number | undefined;
682
- step?: number | undefined;
683
1013
  } | undefined;
684
1014
  meta?: {
685
1015
  schemaVersion: "1.0";
1016
+ title?: "Number Field" | undefined;
1017
+ usageDescription?: "For questions that require a single numeric value." | undefined;
686
1018
  } | undefined;
687
1019
  }, {
688
1020
  type: "number";
@@ -696,6 +1028,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
696
1028
  } | undefined;
697
1029
  meta?: {
698
1030
  schemaVersion: "1.0";
1031
+ title?: "Number Field" | undefined;
1032
+ usageDescription?: "For questions that require a single numeric value." | undefined;
699
1033
  } | undefined;
700
1034
  }>, z.ZodObject<{
701
1035
  attributes: z.ZodOptional<z.ZodObject<{
@@ -711,31 +1045,24 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
711
1045
  help?: string | undefined;
712
1046
  labelTranslationKey?: string | undefined;
713
1047
  }>>;
714
- meta: z.ZodOptional<z.ZodObject<{
715
- schemaVersion: z.ZodLiteral<"1.0">;
716
- }, "strip", z.ZodTypeAny, {
717
- schemaVersion: "1.0";
718
- }, {
719
- schemaVersion: "1.0";
720
- }>>;
721
1048
  } & {
722
1049
  type: z.ZodLiteral<"numberRange">;
723
1050
  columns: z.ZodObject<{
724
- start: z.ZodOptional<z.ZodObject<{
1051
+ start: z.ZodObject<{
725
1052
  label: z.ZodOptional<z.ZodString>;
726
1053
  help: z.ZodOptional<z.ZodString>;
727
1054
  labelTranslationKey: z.ZodOptional<z.ZodString>;
728
1055
  } & {
729
1056
  max: z.ZodOptional<z.ZodNumber>;
730
- min: z.ZodOptional<z.ZodNumber>;
731
- step: z.ZodOptional<z.ZodNumber>;
1057
+ min: z.ZodDefault<z.ZodNumber>;
1058
+ step: z.ZodDefault<z.ZodNumber>;
732
1059
  }, "strip", z.ZodTypeAny, {
1060
+ min: number;
1061
+ step: number;
733
1062
  label?: string | undefined;
734
1063
  help?: string | undefined;
735
1064
  labelTranslationKey?: string | undefined;
736
1065
  max?: number | undefined;
737
- min?: number | undefined;
738
- step?: number | undefined;
739
1066
  }, {
740
1067
  label?: string | undefined;
741
1068
  help?: string | undefined;
@@ -743,22 +1070,22 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
743
1070
  max?: number | undefined;
744
1071
  min?: number | undefined;
745
1072
  step?: number | undefined;
746
- }>>;
747
- end: z.ZodOptional<z.ZodObject<{
1073
+ }>;
1074
+ end: z.ZodObject<{
748
1075
  label: z.ZodOptional<z.ZodString>;
749
1076
  help: z.ZodOptional<z.ZodString>;
750
1077
  labelTranslationKey: z.ZodOptional<z.ZodString>;
751
1078
  } & {
752
1079
  max: z.ZodOptional<z.ZodNumber>;
753
- min: z.ZodOptional<z.ZodNumber>;
754
- step: z.ZodOptional<z.ZodNumber>;
1080
+ min: z.ZodDefault<z.ZodNumber>;
1081
+ step: z.ZodDefault<z.ZodNumber>;
755
1082
  }, "strip", z.ZodTypeAny, {
1083
+ min: number;
1084
+ step: number;
756
1085
  label?: string | undefined;
757
1086
  help?: string | undefined;
758
1087
  labelTranslationKey?: string | undefined;
759
1088
  max?: number | undefined;
760
- min?: number | undefined;
761
- step?: number | undefined;
762
1089
  }, {
763
1090
  label?: string | undefined;
764
1091
  help?: string | undefined;
@@ -766,61 +1093,75 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
766
1093
  max?: number | undefined;
767
1094
  min?: number | undefined;
768
1095
  step?: number | undefined;
769
- }>>;
1096
+ }>;
770
1097
  }, "strip", z.ZodTypeAny, {
771
- start?: {
1098
+ start: {
1099
+ min: number;
1100
+ step: number;
772
1101
  label?: string | undefined;
773
1102
  help?: string | undefined;
774
1103
  labelTranslationKey?: string | undefined;
775
1104
  max?: number | undefined;
776
- min?: number | undefined;
777
- step?: number | undefined;
778
- } | undefined;
779
- end?: {
1105
+ };
1106
+ end: {
1107
+ min: number;
1108
+ step: number;
780
1109
  label?: string | undefined;
781
1110
  help?: string | undefined;
782
1111
  labelTranslationKey?: string | undefined;
783
1112
  max?: number | undefined;
784
- min?: number | undefined;
785
- step?: number | undefined;
786
- } | undefined;
1113
+ };
787
1114
  }, {
788
- start?: {
1115
+ start: {
789
1116
  label?: string | undefined;
790
1117
  help?: string | undefined;
791
1118
  labelTranslationKey?: string | undefined;
792
1119
  max?: number | undefined;
793
1120
  min?: number | undefined;
794
1121
  step?: number | undefined;
795
- } | undefined;
796
- end?: {
1122
+ };
1123
+ end: {
797
1124
  label?: string | undefined;
798
1125
  help?: string | undefined;
799
1126
  labelTranslationKey?: string | undefined;
800
1127
  max?: number | undefined;
801
1128
  min?: number | undefined;
802
1129
  step?: number | undefined;
803
- } | undefined;
1130
+ };
804
1131
  }>;
1132
+ meta: z.ZodOptional<z.ZodObject<{
1133
+ schemaVersion: z.ZodLiteral<"1.0">;
1134
+ } & {
1135
+ title: z.ZodOptional<z.ZodLiteral<"Number Range">>;
1136
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a numerical range (e.g. From/To, Min/Max).">>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ schemaVersion: "1.0";
1139
+ title?: "Number Range" | undefined;
1140
+ usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
1141
+ }, {
1142
+ schemaVersion: "1.0";
1143
+ title?: "Number Range" | undefined;
1144
+ usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
1145
+ }>>;
805
1146
  }, "strip", z.ZodTypeAny, {
806
1147
  type: "numberRange";
807
1148
  columns: {
808
- start?: {
1149
+ start: {
1150
+ min: number;
1151
+ step: number;
809
1152
  label?: string | undefined;
810
1153
  help?: string | undefined;
811
1154
  labelTranslationKey?: string | undefined;
812
1155
  max?: number | undefined;
813
- min?: number | undefined;
814
- step?: number | undefined;
815
- } | undefined;
816
- end?: {
1156
+ };
1157
+ end: {
1158
+ min: number;
1159
+ step: number;
817
1160
  label?: string | undefined;
818
1161
  help?: string | undefined;
819
1162
  labelTranslationKey?: string | undefined;
820
1163
  max?: number | undefined;
821
- min?: number | undefined;
822
- step?: number | undefined;
823
- } | undefined;
1164
+ };
824
1165
  };
825
1166
  attributes?: {
826
1167
  label?: string | undefined;
@@ -829,26 +1170,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
829
1170
  } | undefined;
830
1171
  meta?: {
831
1172
  schemaVersion: "1.0";
1173
+ title?: "Number Range" | undefined;
1174
+ usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
832
1175
  } | undefined;
833
1176
  }, {
834
1177
  type: "numberRange";
835
1178
  columns: {
836
- start?: {
1179
+ start: {
837
1180
  label?: string | undefined;
838
1181
  help?: string | undefined;
839
1182
  labelTranslationKey?: string | undefined;
840
1183
  max?: number | undefined;
841
1184
  min?: number | undefined;
842
1185
  step?: number | undefined;
843
- } | undefined;
844
- end?: {
1186
+ };
1187
+ end: {
845
1188
  label?: string | undefined;
846
1189
  help?: string | undefined;
847
1190
  labelTranslationKey?: string | undefined;
848
1191
  max?: number | undefined;
849
1192
  min?: number | undefined;
850
1193
  step?: number | undefined;
851
- } | undefined;
1194
+ };
852
1195
  };
853
1196
  attributes?: {
854
1197
  label?: string | undefined;
@@ -857,6 +1200,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
857
1200
  } | undefined;
858
1201
  meta?: {
859
1202
  schemaVersion: "1.0";
1203
+ title?: "Number Range" | undefined;
1204
+ usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
860
1205
  } | undefined;
861
1206
  }>, z.ZodObject<{
862
1207
  attributes: z.ZodOptional<z.ZodObject<{
@@ -872,34 +1217,41 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
872
1217
  help?: string | undefined;
873
1218
  labelTranslationKey?: string | undefined;
874
1219
  }>>;
875
- meta: z.ZodOptional<z.ZodObject<{
876
- schemaVersion: z.ZodLiteral<"1.0">;
877
- }, "strip", z.ZodTypeAny, {
878
- schemaVersion: "1.0";
879
- }, {
880
- schemaVersion: "1.0";
881
- }>>;
882
1220
  } & {
883
1221
  type: z.ZodLiteral<"radioButtons">;
884
1222
  options: z.ZodArray<z.ZodObject<{
885
- label: z.ZodString;
886
- value: z.ZodString;
1223
+ label: z.ZodDefault<z.ZodString>;
1224
+ value: z.ZodDefault<z.ZodString>;
887
1225
  } & {
888
- selected: z.ZodOptional<z.ZodBoolean>;
1226
+ selected: z.ZodDefault<z.ZodBoolean>;
889
1227
  }, "strip", z.ZodTypeAny, {
890
1228
  value: string;
891
1229
  label: string;
892
- selected?: boolean | undefined;
1230
+ selected: boolean;
893
1231
  }, {
894
- value: string;
895
- label: string;
1232
+ value?: string | undefined;
1233
+ label?: string | undefined;
896
1234
  selected?: boolean | undefined;
897
1235
  }>, "many">;
1236
+ meta: z.ZodOptional<z.ZodObject<{
1237
+ schemaVersion: z.ZodLiteral<"1.0">;
1238
+ } & {
1239
+ title: z.ZodOptional<z.ZodLiteral<"Radio Buttons">>;
1240
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users select just one option.">>;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ schemaVersion: "1.0";
1243
+ title?: "Radio Buttons" | undefined;
1244
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
1245
+ }, {
1246
+ schemaVersion: "1.0";
1247
+ title?: "Radio Buttons" | undefined;
1248
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
1249
+ }>>;
898
1250
  }, "strip", z.ZodTypeAny, {
899
1251
  options: {
900
1252
  value: string;
901
1253
  label: string;
902
- selected?: boolean | undefined;
1254
+ selected: boolean;
903
1255
  }[];
904
1256
  type: "radioButtons";
905
1257
  attributes?: {
@@ -909,11 +1261,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
909
1261
  } | undefined;
910
1262
  meta?: {
911
1263
  schemaVersion: "1.0";
1264
+ title?: "Radio Buttons" | undefined;
1265
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
912
1266
  } | undefined;
913
1267
  }, {
914
1268
  options: {
915
- value: string;
916
- label: string;
1269
+ value?: string | undefined;
1270
+ label?: string | undefined;
917
1271
  selected?: boolean | undefined;
918
1272
  }[];
919
1273
  type: "radioButtons";
@@ -924,142 +1278,97 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
924
1278
  } | undefined;
925
1279
  meta?: {
926
1280
  schemaVersion: "1.0";
1281
+ title?: "Radio Buttons" | undefined;
1282
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
927
1283
  } | undefined;
928
- }>, z.ZodObject<{
929
- meta: z.ZodOptional<z.ZodObject<{
930
- schemaVersion: z.ZodLiteral<"1.0">;
931
- }, "strip", z.ZodTypeAny, {
932
- schemaVersion: "1.0";
933
- }, {
934
- schemaVersion: "1.0";
935
- }>>;
936
- } & {
1284
+ }>, z.ZodObject<{} & {
937
1285
  type: z.ZodLiteral<"selectBox">;
938
1286
  options: z.ZodArray<z.ZodObject<{
939
- label: z.ZodString;
940
- value: z.ZodString;
1287
+ label: z.ZodDefault<z.ZodString>;
1288
+ value: z.ZodDefault<z.ZodString>;
941
1289
  } & {
942
- selected: z.ZodOptional<z.ZodBoolean>;
1290
+ selected: z.ZodDefault<z.ZodBoolean>;
943
1291
  }, "strip", z.ZodTypeAny, {
944
1292
  value: string;
945
1293
  label: string;
946
- selected?: boolean | undefined;
1294
+ selected: boolean;
947
1295
  }, {
948
- value: string;
949
- label: string;
1296
+ value?: string | undefined;
1297
+ label?: string | undefined;
950
1298
  selected?: boolean | undefined;
951
1299
  }>, "many">;
952
- attributes: z.ZodOptional<z.ZodObject<{
1300
+ attributes: z.ZodObject<{
953
1301
  label: z.ZodOptional<z.ZodString>;
954
1302
  help: z.ZodOptional<z.ZodString>;
955
1303
  labelTranslationKey: z.ZodOptional<z.ZodString>;
956
1304
  } & {
957
- multiple: z.ZodOptional<z.ZodBoolean>;
1305
+ multiple: z.ZodDefault<z.ZodBoolean>;
958
1306
  }, "strip", z.ZodTypeAny, {
1307
+ multiple: boolean;
959
1308
  label?: string | undefined;
960
1309
  help?: string | undefined;
961
1310
  labelTranslationKey?: string | undefined;
962
- multiple?: boolean | undefined;
963
1311
  }, {
964
1312
  label?: string | undefined;
965
1313
  help?: string | undefined;
966
1314
  labelTranslationKey?: string | undefined;
967
1315
  multiple?: boolean | undefined;
1316
+ }>;
1317
+ meta: z.ZodOptional<z.ZodObject<{
1318
+ schemaVersion: z.ZodLiteral<"1.0">;
1319
+ } & {
1320
+ title: z.ZodOptional<z.ZodLiteral<"Select Box">>;
1321
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions where users select one option from a list.">>;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ schemaVersion: "1.0";
1324
+ title?: "Select Box" | undefined;
1325
+ usageDescription?: "For questions where users select one option from a list." | undefined;
1326
+ }, {
1327
+ schemaVersion: "1.0";
1328
+ title?: "Select Box" | undefined;
1329
+ usageDescription?: "For questions where users select one option from a list." | undefined;
968
1330
  }>>;
969
1331
  }, "strip", z.ZodTypeAny, {
970
1332
  options: {
971
1333
  value: string;
972
1334
  label: string;
973
- selected?: boolean | undefined;
1335
+ selected: boolean;
974
1336
  }[];
975
1337
  type: "selectBox";
976
- attributes?: {
1338
+ attributes: {
1339
+ multiple: boolean;
977
1340
  label?: string | undefined;
978
1341
  help?: string | undefined;
979
1342
  labelTranslationKey?: string | undefined;
980
- multiple?: boolean | undefined;
981
- } | undefined;
1343
+ };
982
1344
  meta?: {
983
1345
  schemaVersion: "1.0";
1346
+ title?: "Select Box" | undefined;
1347
+ usageDescription?: "For questions where users select one option from a list." | undefined;
984
1348
  } | undefined;
985
1349
  }, {
986
1350
  options: {
987
- value: string;
988
- label: string;
1351
+ value?: string | undefined;
1352
+ label?: string | undefined;
989
1353
  selected?: boolean | undefined;
990
1354
  }[];
991
1355
  type: "selectBox";
992
- attributes?: {
1356
+ attributes: {
993
1357
  label?: string | undefined;
994
1358
  help?: string | undefined;
995
1359
  labelTranslationKey?: string | undefined;
996
1360
  multiple?: boolean | undefined;
997
- } | undefined;
1361
+ };
998
1362
  meta?: {
999
1363
  schemaVersion: "1.0";
1364
+ title?: "Select Box" | undefined;
1365
+ usageDescription?: "For questions where users select one option from a list." | undefined;
1000
1366
  } | undefined;
1001
- }>, z.ZodObject<{
1002
- meta: z.ZodOptional<z.ZodObject<{
1003
- schemaVersion: z.ZodLiteral<"1.0">;
1004
- }, "strip", z.ZodTypeAny, {
1005
- schemaVersion: "1.0";
1006
- }, {
1007
- schemaVersion: "1.0";
1008
- }>>;
1009
- } & {
1367
+ }>, z.ZodObject<{} & {
1010
1368
  type: z.ZodLiteral<"table">;
1011
1369
  columns: z.ZodArray<z.ZodObject<{
1012
1370
  heading: z.ZodOptional<z.ZodString>;
1013
1371
  content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1014
- meta: z.ZodOptional<z.ZodObject<{
1015
- schemaVersion: z.ZodLiteral<"1.0">;
1016
- }, "strip", z.ZodTypeAny, {
1017
- schemaVersion: "1.0";
1018
- }, {
1019
- schemaVersion: "1.0";
1020
- }>>;
1021
- } & {
1022
- type: z.ZodLiteral<"boolean">;
1023
- attributes: z.ZodObject<{
1024
- label: z.ZodOptional<z.ZodString>;
1025
- help: z.ZodOptional<z.ZodString>;
1026
- labelTranslationKey: z.ZodOptional<z.ZodString>;
1027
- } & {
1028
- checked: z.ZodOptional<z.ZodBoolean>;
1029
- }, "strip", z.ZodTypeAny, {
1030
- label?: string | undefined;
1031
- help?: string | undefined;
1032
- labelTranslationKey?: string | undefined;
1033
- checked?: boolean | undefined;
1034
- }, {
1035
- label?: string | undefined;
1036
- help?: string | undefined;
1037
- labelTranslationKey?: string | undefined;
1038
- checked?: boolean | undefined;
1039
- }>;
1040
- }, "strip", z.ZodTypeAny, {
1041
- type: "boolean";
1042
- attributes: {
1043
- label?: string | undefined;
1044
- help?: string | undefined;
1045
- labelTranslationKey?: string | undefined;
1046
- checked?: boolean | undefined;
1047
- };
1048
- meta?: {
1049
- schemaVersion: "1.0";
1050
- } | undefined;
1051
- }, {
1052
- type: "boolean";
1053
- attributes: {
1054
- label?: string | undefined;
1055
- help?: string | undefined;
1056
- labelTranslationKey?: string | undefined;
1057
- checked?: boolean | undefined;
1058
- };
1059
- meta?: {
1060
- schemaVersion: "1.0";
1061
- } | undefined;
1062
- }>, z.ZodObject<{
1063
1372
  attributes: z.ZodOptional<z.ZodObject<{
1064
1373
  label: z.ZodOptional<z.ZodString>;
1065
1374
  help: z.ZodOptional<z.ZodString>;
@@ -1073,68 +1382,298 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1073
1382
  help?: string | undefined;
1074
1383
  labelTranslationKey?: string | undefined;
1075
1384
  }>>;
1076
- meta: z.ZodOptional<z.ZodObject<{
1077
- schemaVersion: z.ZodLiteral<"1.0">;
1078
- }, "strip", z.ZodTypeAny, {
1079
- schemaVersion: "1.0";
1080
- }, {
1081
- schemaVersion: "1.0";
1082
- }>>;
1083
1385
  } & {
1084
- type: z.ZodLiteral<"checkBoxes">;
1085
- options: z.ZodArray<z.ZodObject<{
1086
- label: z.ZodString;
1087
- value: z.ZodString;
1386
+ type: z.ZodLiteral<"affiliationSearch">;
1387
+ graphQL: z.ZodObject<{
1388
+ localQueryId: z.ZodOptional<z.ZodString>;
1088
1389
  } & {
1089
- checked: z.ZodOptional<z.ZodBoolean>;
1090
- }, "strip", z.ZodTypeAny, {
1091
- value: string;
1092
- label: string;
1093
- checked?: boolean | undefined;
1094
- }, {
1095
- value: string;
1096
- label: string;
1097
- checked?: boolean | undefined;
1098
- }>, "many">;
1099
- }, "strip", z.ZodTypeAny, {
1100
- options: {
1101
- value: string;
1102
- label: string;
1390
+ query: z.ZodLiteral<"query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}">;
1391
+ queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1392
+ variables: z.ZodArray<z.ZodObject<{
1393
+ name: z.ZodLiteral<"name">;
1394
+ type: z.ZodDefault<z.ZodString>;
1395
+ label: z.ZodDefault<z.ZodString>;
1396
+ minLength: z.ZodLiteral<3>;
1397
+ labelTranslationKey: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ type: string;
1400
+ label: string;
1401
+ minLength: 3;
1402
+ name: "name";
1403
+ labelTranslationKey?: string | undefined;
1404
+ }, {
1405
+ minLength: 3;
1406
+ name: "name";
1407
+ type?: string | undefined;
1408
+ label?: string | undefined;
1409
+ labelTranslationKey?: string | undefined;
1410
+ }>, "many">;
1411
+ answerField: z.ZodLiteral<"uri">;
1412
+ displayFields: z.ZodArray<z.ZodObject<{
1413
+ propertyName: z.ZodLiteral<"displayName">;
1414
+ label: z.ZodDefault<z.ZodString>;
1415
+ labelTranslationKey: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ label: string;
1418
+ propertyName: "displayName";
1419
+ labelTranslationKey?: string | undefined;
1420
+ }, {
1421
+ propertyName: "displayName";
1422
+ label?: string | undefined;
1423
+ labelTranslationKey?: string | undefined;
1424
+ }>, "many">;
1425
+ responseField: z.ZodLiteral<"affiliations.items">;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ displayFields: {
1428
+ label: string;
1429
+ propertyName: "displayName";
1430
+ labelTranslationKey?: string | undefined;
1431
+ }[];
1432
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
1433
+ responseField: "affiliations.items";
1434
+ variables: {
1435
+ type: string;
1436
+ label: string;
1437
+ minLength: 3;
1438
+ name: "name";
1439
+ labelTranslationKey?: string | undefined;
1440
+ }[];
1441
+ answerField: "uri";
1442
+ localQueryId?: string | undefined;
1443
+ queryId?: string | undefined;
1444
+ }, {
1445
+ displayFields: {
1446
+ propertyName: "displayName";
1447
+ label?: string | undefined;
1448
+ labelTranslationKey?: string | undefined;
1449
+ }[];
1450
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
1451
+ responseField: "affiliations.items";
1452
+ variables: {
1453
+ minLength: 3;
1454
+ name: "name";
1455
+ type?: string | undefined;
1456
+ label?: string | undefined;
1457
+ labelTranslationKey?: string | undefined;
1458
+ }[];
1459
+ answerField: "uri";
1460
+ localQueryId?: string | undefined;
1461
+ queryId?: string | undefined;
1462
+ }>;
1463
+ meta: z.ZodObject<{
1464
+ schemaVersion: z.ZodLiteral<"1.0">;
1465
+ } & {
1466
+ title: z.ZodOptional<z.ZodLiteral<"Affiliation Search">>;
1467
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require the user to select from a controlled list of institutions.">>;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ schemaVersion: "1.0";
1470
+ title?: "Affiliation Search" | undefined;
1471
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
1472
+ }, {
1473
+ schemaVersion: "1.0";
1474
+ title?: "Affiliation Search" | undefined;
1475
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
1476
+ }>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ type: "affiliationSearch";
1479
+ meta: {
1480
+ schemaVersion: "1.0";
1481
+ title?: "Affiliation Search" | undefined;
1482
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
1483
+ };
1484
+ graphQL: {
1485
+ displayFields: {
1486
+ label: string;
1487
+ propertyName: "displayName";
1488
+ labelTranslationKey?: string | undefined;
1489
+ }[];
1490
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
1491
+ responseField: "affiliations.items";
1492
+ variables: {
1493
+ type: string;
1494
+ label: string;
1495
+ minLength: 3;
1496
+ name: "name";
1497
+ labelTranslationKey?: string | undefined;
1498
+ }[];
1499
+ answerField: "uri";
1500
+ localQueryId?: string | undefined;
1501
+ queryId?: string | undefined;
1502
+ };
1503
+ attributes?: {
1504
+ label?: string | undefined;
1505
+ help?: string | undefined;
1506
+ labelTranslationKey?: string | undefined;
1507
+ } | undefined;
1508
+ }, {
1509
+ type: "affiliationSearch";
1510
+ meta: {
1511
+ schemaVersion: "1.0";
1512
+ title?: "Affiliation Search" | undefined;
1513
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
1514
+ };
1515
+ graphQL: {
1516
+ displayFields: {
1517
+ propertyName: "displayName";
1518
+ label?: string | undefined;
1519
+ labelTranslationKey?: string | undefined;
1520
+ }[];
1521
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
1522
+ responseField: "affiliations.items";
1523
+ variables: {
1524
+ minLength: 3;
1525
+ name: "name";
1526
+ type?: string | undefined;
1527
+ label?: string | undefined;
1528
+ labelTranslationKey?: string | undefined;
1529
+ }[];
1530
+ answerField: "uri";
1531
+ localQueryId?: string | undefined;
1532
+ queryId?: string | undefined;
1533
+ };
1534
+ attributes?: {
1535
+ label?: string | undefined;
1536
+ help?: string | undefined;
1537
+ labelTranslationKey?: string | undefined;
1538
+ } | undefined;
1539
+ }>, z.ZodObject<{} & {
1540
+ type: z.ZodLiteral<"boolean">;
1541
+ attributes: z.ZodOptional<z.ZodObject<{
1542
+ label: z.ZodOptional<z.ZodString>;
1543
+ help: z.ZodOptional<z.ZodString>;
1544
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1545
+ } & {
1546
+ checked: z.ZodDefault<z.ZodBoolean>;
1547
+ }, "strip", z.ZodTypeAny, {
1548
+ checked: boolean;
1549
+ label?: string | undefined;
1550
+ help?: string | undefined;
1551
+ labelTranslationKey?: string | undefined;
1552
+ }, {
1553
+ label?: string | undefined;
1554
+ help?: string | undefined;
1555
+ labelTranslationKey?: string | undefined;
1103
1556
  checked?: boolean | undefined;
1104
- }[];
1105
- type: "checkBoxes";
1557
+ }>>;
1558
+ meta: z.ZodOptional<z.ZodObject<{
1559
+ schemaVersion: z.ZodLiteral<"1.0">;
1560
+ } & {
1561
+ title: z.ZodOptional<z.ZodLiteral<"Yes/No Field">>;
1562
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a simple Yes/No response.">>;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ schemaVersion: "1.0";
1565
+ title?: "Yes/No Field" | undefined;
1566
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
1567
+ }, {
1568
+ schemaVersion: "1.0";
1569
+ title?: "Yes/No Field" | undefined;
1570
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
1571
+ }>>;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ type: "boolean";
1106
1574
  attributes?: {
1575
+ checked: boolean;
1107
1576
  label?: string | undefined;
1108
1577
  help?: string | undefined;
1109
1578
  labelTranslationKey?: string | undefined;
1110
1579
  } | undefined;
1111
1580
  meta?: {
1112
1581
  schemaVersion: "1.0";
1582
+ title?: "Yes/No Field" | undefined;
1583
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
1113
1584
  } | undefined;
1114
1585
  }, {
1115
- options: {
1116
- value: string;
1117
- label: string;
1118
- checked?: boolean | undefined;
1119
- }[];
1120
- type: "checkBoxes";
1586
+ type: "boolean";
1121
1587
  attributes?: {
1122
1588
  label?: string | undefined;
1123
1589
  help?: string | undefined;
1124
1590
  labelTranslationKey?: string | undefined;
1591
+ checked?: boolean | undefined;
1125
1592
  } | undefined;
1126
1593
  meta?: {
1127
1594
  schemaVersion: "1.0";
1595
+ title?: "Yes/No Field" | undefined;
1596
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
1128
1597
  } | undefined;
1129
1598
  }>, z.ZodObject<{
1599
+ attributes: z.ZodOptional<z.ZodObject<{
1600
+ label: z.ZodOptional<z.ZodString>;
1601
+ help: z.ZodOptional<z.ZodString>;
1602
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ label?: string | undefined;
1605
+ help?: string | undefined;
1606
+ labelTranslationKey?: string | undefined;
1607
+ }, {
1608
+ label?: string | undefined;
1609
+ help?: string | undefined;
1610
+ labelTranslationKey?: string | undefined;
1611
+ }>>;
1612
+ } & {
1613
+ type: z.ZodLiteral<"checkBoxes">;
1614
+ options: z.ZodArray<z.ZodObject<{
1615
+ label: z.ZodDefault<z.ZodString>;
1616
+ value: z.ZodDefault<z.ZodString>;
1617
+ } & {
1618
+ checked: z.ZodDefault<z.ZodBoolean>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ value: string;
1621
+ label: string;
1622
+ checked: boolean;
1623
+ }, {
1624
+ value?: string | undefined;
1625
+ label?: string | undefined;
1626
+ checked?: boolean | undefined;
1627
+ }>, "many">;
1130
1628
  meta: z.ZodOptional<z.ZodObject<{
1131
1629
  schemaVersion: z.ZodLiteral<"1.0">;
1630
+ } & {
1631
+ title: z.ZodOptional<z.ZodLiteral<"Check Boxes">>;
1632
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users can select multiple options.">>;
1132
1633
  }, "strip", z.ZodTypeAny, {
1133
1634
  schemaVersion: "1.0";
1635
+ title?: "Check Boxes" | undefined;
1636
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
1134
1637
  }, {
1135
1638
  schemaVersion: "1.0";
1639
+ title?: "Check Boxes" | undefined;
1640
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
1136
1641
  }>>;
1137
- } & {
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ options: {
1644
+ value: string;
1645
+ label: string;
1646
+ checked: boolean;
1647
+ }[];
1648
+ type: "checkBoxes";
1649
+ attributes?: {
1650
+ label?: string | undefined;
1651
+ help?: string | undefined;
1652
+ labelTranslationKey?: string | undefined;
1653
+ } | undefined;
1654
+ meta?: {
1655
+ schemaVersion: "1.0";
1656
+ title?: "Check Boxes" | undefined;
1657
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
1658
+ } | undefined;
1659
+ }, {
1660
+ options: {
1661
+ value?: string | undefined;
1662
+ label?: string | undefined;
1663
+ checked?: boolean | undefined;
1664
+ }[];
1665
+ type: "checkBoxes";
1666
+ attributes?: {
1667
+ label?: string | undefined;
1668
+ help?: string | undefined;
1669
+ labelTranslationKey?: string | undefined;
1670
+ } | undefined;
1671
+ meta?: {
1672
+ schemaVersion: "1.0";
1673
+ title?: "Check Boxes" | undefined;
1674
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
1675
+ } | undefined;
1676
+ }>, z.ZodObject<{} & {
1138
1677
  type: z.ZodLiteral<"currency">;
1139
1678
  attributes: z.ZodOptional<z.ZodObject<{
1140
1679
  label: z.ZodOptional<z.ZodString>;
@@ -1142,18 +1681,18 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1142
1681
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1143
1682
  } & {
1144
1683
  max: z.ZodOptional<z.ZodNumber>;
1145
- min: z.ZodOptional<z.ZodNumber>;
1146
- step: z.ZodOptional<z.ZodNumber>;
1684
+ min: z.ZodDefault<z.ZodNumber>;
1685
+ step: z.ZodDefault<z.ZodNumber>;
1147
1686
  } & {
1148
- denomination: z.ZodOptional<z.ZodString>;
1687
+ denomination: z.ZodDefault<z.ZodString>;
1149
1688
  }, "strip", z.ZodTypeAny, {
1689
+ min: number;
1690
+ step: number;
1691
+ denomination: string;
1150
1692
  label?: string | undefined;
1151
1693
  help?: string | undefined;
1152
1694
  labelTranslationKey?: string | undefined;
1153
1695
  max?: number | undefined;
1154
- min?: number | undefined;
1155
- step?: number | undefined;
1156
- denomination?: string | undefined;
1157
1696
  }, {
1158
1697
  label?: string | undefined;
1159
1698
  help?: string | undefined;
@@ -1163,19 +1702,35 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1163
1702
  step?: number | undefined;
1164
1703
  denomination?: string | undefined;
1165
1704
  }>>;
1705
+ meta: z.ZodOptional<z.ZodObject<{
1706
+ schemaVersion: z.ZodLiteral<"1.0">;
1707
+ } & {
1708
+ title: z.ZodOptional<z.ZodLiteral<"Currency Field">>;
1709
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a monetary amount (e.g. Cost or Budget).">>;
1710
+ }, "strip", z.ZodTypeAny, {
1711
+ schemaVersion: "1.0";
1712
+ title?: "Currency Field" | undefined;
1713
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
1714
+ }, {
1715
+ schemaVersion: "1.0";
1716
+ title?: "Currency Field" | undefined;
1717
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
1718
+ }>>;
1166
1719
  }, "strip", z.ZodTypeAny, {
1167
1720
  type: "currency";
1168
1721
  attributes?: {
1722
+ min: number;
1723
+ step: number;
1724
+ denomination: string;
1169
1725
  label?: string | undefined;
1170
1726
  help?: string | undefined;
1171
1727
  labelTranslationKey?: string | undefined;
1172
1728
  max?: number | undefined;
1173
- min?: number | undefined;
1174
- step?: number | undefined;
1175
- denomination?: string | undefined;
1176
1729
  } | undefined;
1177
1730
  meta?: {
1178
1731
  schemaVersion: "1.0";
1732
+ title?: "Currency Field" | undefined;
1733
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
1179
1734
  } | undefined;
1180
1735
  }, {
1181
1736
  type: "currency";
@@ -1190,16 +1745,10 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1190
1745
  } | undefined;
1191
1746
  meta?: {
1192
1747
  schemaVersion: "1.0";
1748
+ title?: "Currency Field" | undefined;
1749
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
1193
1750
  } | undefined;
1194
- }>, z.ZodObject<{
1195
- meta: z.ZodOptional<z.ZodObject<{
1196
- schemaVersion: z.ZodLiteral<"1.0">;
1197
- }, "strip", z.ZodTypeAny, {
1198
- schemaVersion: "1.0";
1199
- }, {
1200
- schemaVersion: "1.0";
1201
- }>>;
1202
- } & {
1751
+ }>, z.ZodObject<{} & {
1203
1752
  type: z.ZodLiteral<"date">;
1204
1753
  attributes: z.ZodOptional<z.ZodObject<{
1205
1754
  label: z.ZodOptional<z.ZodString>;
@@ -1208,14 +1757,14 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1208
1757
  } & {
1209
1758
  max: z.ZodOptional<z.ZodString>;
1210
1759
  min: z.ZodOptional<z.ZodString>;
1211
- step: z.ZodOptional<z.ZodNumber>;
1760
+ step: z.ZodDefault<z.ZodNumber>;
1212
1761
  }, "strip", z.ZodTypeAny, {
1762
+ step: number;
1213
1763
  label?: string | undefined;
1214
1764
  help?: string | undefined;
1215
1765
  labelTranslationKey?: string | undefined;
1216
1766
  max?: string | undefined;
1217
1767
  min?: string | undefined;
1218
- step?: number | undefined;
1219
1768
  }, {
1220
1769
  label?: string | undefined;
1221
1770
  help?: string | undefined;
@@ -1224,18 +1773,34 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1224
1773
  min?: string | undefined;
1225
1774
  step?: number | undefined;
1226
1775
  }>>;
1776
+ meta: z.ZodOptional<z.ZodObject<{
1777
+ schemaVersion: z.ZodLiteral<"1.0">;
1778
+ } & {
1779
+ title: z.ZodOptional<z.ZodLiteral<"Date Field">>;
1780
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date.">>;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ schemaVersion: "1.0";
1783
+ title?: "Date Field" | undefined;
1784
+ usageDescription?: "For questions that require a date." | undefined;
1785
+ }, {
1786
+ schemaVersion: "1.0";
1787
+ title?: "Date Field" | undefined;
1788
+ usageDescription?: "For questions that require a date." | undefined;
1789
+ }>>;
1227
1790
  }, "strip", z.ZodTypeAny, {
1228
1791
  type: "date";
1229
1792
  attributes?: {
1793
+ step: number;
1230
1794
  label?: string | undefined;
1231
1795
  help?: string | undefined;
1232
1796
  labelTranslationKey?: string | undefined;
1233
1797
  max?: string | undefined;
1234
1798
  min?: string | undefined;
1235
- step?: number | undefined;
1236
1799
  } | undefined;
1237
1800
  meta?: {
1238
1801
  schemaVersion: "1.0";
1802
+ title?: "Date Field" | undefined;
1803
+ usageDescription?: "For questions that require a date." | undefined;
1239
1804
  } | undefined;
1240
1805
  }, {
1241
1806
  type: "date";
@@ -1249,6 +1814,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1249
1814
  } | undefined;
1250
1815
  meta?: {
1251
1816
  schemaVersion: "1.0";
1817
+ title?: "Date Field" | undefined;
1818
+ usageDescription?: "For questions that require a date." | undefined;
1252
1819
  } | undefined;
1253
1820
  }>, z.ZodObject<{
1254
1821
  attributes: z.ZodOptional<z.ZodObject<{
@@ -1264,31 +1831,24 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1264
1831
  help?: string | undefined;
1265
1832
  labelTranslationKey?: string | undefined;
1266
1833
  }>>;
1267
- meta: z.ZodOptional<z.ZodObject<{
1268
- schemaVersion: z.ZodLiteral<"1.0">;
1269
- }, "strip", z.ZodTypeAny, {
1270
- schemaVersion: "1.0";
1271
- }, {
1272
- schemaVersion: "1.0";
1273
- }>>;
1274
1834
  } & {
1275
1835
  type: z.ZodLiteral<"dateRange">;
1276
1836
  columns: z.ZodObject<{
1277
- start: z.ZodOptional<z.ZodObject<{
1837
+ start: z.ZodObject<{
1278
1838
  label: z.ZodOptional<z.ZodString>;
1279
1839
  help: z.ZodOptional<z.ZodString>;
1280
1840
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1281
1841
  } & {
1282
1842
  max: z.ZodOptional<z.ZodString>;
1283
1843
  min: z.ZodOptional<z.ZodString>;
1284
- step: z.ZodOptional<z.ZodNumber>;
1844
+ step: z.ZodDefault<z.ZodNumber>;
1285
1845
  }, "strip", z.ZodTypeAny, {
1846
+ step: number;
1286
1847
  label?: string | undefined;
1287
1848
  help?: string | undefined;
1288
1849
  labelTranslationKey?: string | undefined;
1289
1850
  max?: string | undefined;
1290
1851
  min?: string | undefined;
1291
- step?: number | undefined;
1292
1852
  }, {
1293
1853
  label?: string | undefined;
1294
1854
  help?: string | undefined;
@@ -1296,22 +1856,22 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1296
1856
  max?: string | undefined;
1297
1857
  min?: string | undefined;
1298
1858
  step?: number | undefined;
1299
- }>>;
1300
- end: z.ZodOptional<z.ZodObject<{
1859
+ }>;
1860
+ end: z.ZodObject<{
1301
1861
  label: z.ZodOptional<z.ZodString>;
1302
1862
  help: z.ZodOptional<z.ZodString>;
1303
1863
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1304
1864
  } & {
1305
1865
  max: z.ZodOptional<z.ZodString>;
1306
1866
  min: z.ZodOptional<z.ZodString>;
1307
- step: z.ZodOptional<z.ZodNumber>;
1867
+ step: z.ZodDefault<z.ZodNumber>;
1308
1868
  }, "strip", z.ZodTypeAny, {
1869
+ step: number;
1309
1870
  label?: string | undefined;
1310
1871
  help?: string | undefined;
1311
1872
  labelTranslationKey?: string | undefined;
1312
1873
  max?: string | undefined;
1313
1874
  min?: string | undefined;
1314
- step?: number | undefined;
1315
1875
  }, {
1316
1876
  label?: string | undefined;
1317
1877
  help?: string | undefined;
@@ -1319,61 +1879,75 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1319
1879
  max?: string | undefined;
1320
1880
  min?: string | undefined;
1321
1881
  step?: number | undefined;
1322
- }>>;
1882
+ }>;
1323
1883
  }, "strip", z.ZodTypeAny, {
1324
- start?: {
1884
+ start: {
1885
+ step: number;
1325
1886
  label?: string | undefined;
1326
1887
  help?: string | undefined;
1327
1888
  labelTranslationKey?: string | undefined;
1328
1889
  max?: string | undefined;
1329
1890
  min?: string | undefined;
1330
- step?: number | undefined;
1331
- } | undefined;
1332
- end?: {
1891
+ };
1892
+ end: {
1893
+ step: number;
1333
1894
  label?: string | undefined;
1334
1895
  help?: string | undefined;
1335
1896
  labelTranslationKey?: string | undefined;
1336
1897
  max?: string | undefined;
1337
1898
  min?: string | undefined;
1338
- step?: number | undefined;
1339
- } | undefined;
1899
+ };
1340
1900
  }, {
1341
- start?: {
1901
+ start: {
1342
1902
  label?: string | undefined;
1343
1903
  help?: string | undefined;
1344
1904
  labelTranslationKey?: string | undefined;
1345
1905
  max?: string | undefined;
1346
1906
  min?: string | undefined;
1347
1907
  step?: number | undefined;
1348
- } | undefined;
1349
- end?: {
1908
+ };
1909
+ end: {
1350
1910
  label?: string | undefined;
1351
1911
  help?: string | undefined;
1352
1912
  labelTranslationKey?: string | undefined;
1353
1913
  max?: string | undefined;
1354
1914
  min?: string | undefined;
1355
1915
  step?: number | undefined;
1356
- } | undefined;
1916
+ };
1357
1917
  }>;
1918
+ meta: z.ZodOptional<z.ZodObject<{
1919
+ schemaVersion: z.ZodLiteral<"1.0">;
1920
+ } & {
1921
+ title: z.ZodOptional<z.ZodLiteral<"Date Range">>;
1922
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date range (e.g. From/To, Start/End)">>;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ schemaVersion: "1.0";
1925
+ title?: "Date Range" | undefined;
1926
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
1927
+ }, {
1928
+ schemaVersion: "1.0";
1929
+ title?: "Date Range" | undefined;
1930
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
1931
+ }>>;
1358
1932
  }, "strip", z.ZodTypeAny, {
1359
1933
  type: "dateRange";
1360
1934
  columns: {
1361
- start?: {
1935
+ start: {
1936
+ step: number;
1362
1937
  label?: string | undefined;
1363
1938
  help?: string | undefined;
1364
1939
  labelTranslationKey?: string | undefined;
1365
1940
  max?: string | undefined;
1366
1941
  min?: string | undefined;
1367
- step?: number | undefined;
1368
- } | undefined;
1369
- end?: {
1942
+ };
1943
+ end: {
1944
+ step: number;
1370
1945
  label?: string | undefined;
1371
1946
  help?: string | undefined;
1372
1947
  labelTranslationKey?: string | undefined;
1373
1948
  max?: string | undefined;
1374
1949
  min?: string | undefined;
1375
- step?: number | undefined;
1376
- } | undefined;
1950
+ };
1377
1951
  };
1378
1952
  attributes?: {
1379
1953
  label?: string | undefined;
@@ -1382,26 +1956,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1382
1956
  } | undefined;
1383
1957
  meta?: {
1384
1958
  schemaVersion: "1.0";
1959
+ title?: "Date Range" | undefined;
1960
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
1385
1961
  } | undefined;
1386
1962
  }, {
1387
1963
  type: "dateRange";
1388
1964
  columns: {
1389
- start?: {
1965
+ start: {
1390
1966
  label?: string | undefined;
1391
1967
  help?: string | undefined;
1392
1968
  labelTranslationKey?: string | undefined;
1393
1969
  max?: string | undefined;
1394
1970
  min?: string | undefined;
1395
1971
  step?: number | undefined;
1396
- } | undefined;
1397
- end?: {
1972
+ };
1973
+ end: {
1398
1974
  label?: string | undefined;
1399
1975
  help?: string | undefined;
1400
1976
  labelTranslationKey?: string | undefined;
1401
1977
  max?: string | undefined;
1402
1978
  min?: string | undefined;
1403
1979
  step?: number | undefined;
1404
- } | undefined;
1980
+ };
1405
1981
  };
1406
1982
  attributes?: {
1407
1983
  label?: string | undefined;
@@ -1410,35 +1986,29 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1410
1986
  } | undefined;
1411
1987
  meta?: {
1412
1988
  schemaVersion: "1.0";
1989
+ title?: "Date Range" | undefined;
1990
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
1413
1991
  } | undefined;
1414
- }>, z.ZodObject<{
1415
- meta: z.ZodOptional<z.ZodObject<{
1416
- schemaVersion: z.ZodLiteral<"1.0">;
1417
- }, "strip", z.ZodTypeAny, {
1418
- schemaVersion: "1.0";
1419
- }, {
1420
- schemaVersion: "1.0";
1421
- }>>;
1422
- } & {
1992
+ }>, z.ZodObject<{} & {
1423
1993
  type: z.ZodLiteral<"email">;
1424
1994
  attributes: z.ZodOptional<z.ZodObject<{
1425
1995
  label: z.ZodOptional<z.ZodString>;
1426
1996
  help: z.ZodOptional<z.ZodString>;
1427
1997
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1428
1998
  } & {
1429
- maxLength: z.ZodOptional<z.ZodNumber>;
1999
+ maxLength: z.ZodDefault<z.ZodNumber>;
1430
2000
  minLength: z.ZodOptional<z.ZodNumber>;
1431
2001
  pattern: z.ZodOptional<z.ZodString>;
1432
2002
  } & {
1433
- multiple: z.ZodOptional<z.ZodBoolean>;
2003
+ multiple: z.ZodDefault<z.ZodBoolean>;
1434
2004
  }, "strip", z.ZodTypeAny, {
2005
+ maxLength: number;
2006
+ multiple: boolean;
1435
2007
  label?: string | undefined;
1436
2008
  help?: string | undefined;
1437
2009
  labelTranslationKey?: string | undefined;
1438
- maxLength?: number | undefined;
1439
2010
  minLength?: number | undefined;
1440
2011
  pattern?: string | undefined;
1441
- multiple?: boolean | undefined;
1442
2012
  }, {
1443
2013
  label?: string | undefined;
1444
2014
  help?: string | undefined;
@@ -1448,19 +2018,35 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1448
2018
  pattern?: string | undefined;
1449
2019
  multiple?: boolean | undefined;
1450
2020
  }>>;
2021
+ meta: z.ZodOptional<z.ZodObject<{
2022
+ schemaVersion: z.ZodLiteral<"1.0">;
2023
+ } & {
2024
+ title: z.ZodOptional<z.ZodLiteral<"Email Field">>;
2025
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require require email address(es).">>;
2026
+ }, "strip", z.ZodTypeAny, {
2027
+ schemaVersion: "1.0";
2028
+ title?: "Email Field" | undefined;
2029
+ usageDescription?: "For questions that require require email address(es)." | undefined;
2030
+ }, {
2031
+ schemaVersion: "1.0";
2032
+ title?: "Email Field" | undefined;
2033
+ usageDescription?: "For questions that require require email address(es)." | undefined;
2034
+ }>>;
1451
2035
  }, "strip", z.ZodTypeAny, {
1452
2036
  type: "email";
1453
2037
  attributes?: {
2038
+ maxLength: number;
2039
+ multiple: boolean;
1454
2040
  label?: string | undefined;
1455
2041
  help?: string | undefined;
1456
2042
  labelTranslationKey?: string | undefined;
1457
- maxLength?: number | undefined;
1458
2043
  minLength?: number | undefined;
1459
2044
  pattern?: string | undefined;
1460
- multiple?: boolean | undefined;
1461
2045
  } | undefined;
1462
2046
  meta?: {
1463
2047
  schemaVersion: "1.0";
2048
+ title?: "Email Field" | undefined;
2049
+ usageDescription?: "For questions that require require email address(es)." | undefined;
1464
2050
  } | undefined;
1465
2051
  }, {
1466
2052
  type: "email";
@@ -1475,16 +2061,10 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1475
2061
  } | undefined;
1476
2062
  meta?: {
1477
2063
  schemaVersion: "1.0";
2064
+ title?: "Email Field" | undefined;
2065
+ usageDescription?: "For questions that require require email address(es)." | undefined;
1478
2066
  } | undefined;
1479
- }>, z.ZodObject<{
1480
- meta: z.ZodOptional<z.ZodObject<{
1481
- schemaVersion: z.ZodLiteral<"1.0">;
1482
- }, "strip", z.ZodTypeAny, {
1483
- schemaVersion: "1.0";
1484
- }, {
1485
- schemaVersion: "1.0";
1486
- }>>;
1487
- } & {
2067
+ }>, z.ZodObject<{} & {
1488
2068
  type: z.ZodLiteral<"filteredSearch">;
1489
2069
  graphQL: z.ZodObject<{
1490
2070
  displayFields: z.ZodArray<z.ZodObject<{
@@ -1577,6 +2157,20 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1577
2157
  labelTranslationKey?: string | undefined;
1578
2158
  multiple?: boolean | undefined;
1579
2159
  }>>;
2160
+ meta: z.ZodOptional<z.ZodObject<{
2161
+ schemaVersion: z.ZodLiteral<"1.0">;
2162
+ usageDescription: z.ZodOptional<z.ZodString>;
2163
+ } & {
2164
+ title: z.ZodOptional<z.ZodLiteral<"Not yet implemented">>;
2165
+ }, "strip", z.ZodTypeAny, {
2166
+ schemaVersion: "1.0";
2167
+ title?: "Not yet implemented" | undefined;
2168
+ usageDescription?: string | undefined;
2169
+ }, {
2170
+ schemaVersion: "1.0";
2171
+ title?: "Not yet implemented" | undefined;
2172
+ usageDescription?: string | undefined;
2173
+ }>>;
1580
2174
  }, "strip", z.ZodTypeAny, {
1581
2175
  type: "filteredSearch";
1582
2176
  graphQL: {
@@ -1605,6 +2199,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1605
2199
  } | undefined;
1606
2200
  meta?: {
1607
2201
  schemaVersion: "1.0";
2202
+ title?: "Not yet implemented" | undefined;
2203
+ usageDescription?: string | undefined;
1608
2204
  } | undefined;
1609
2205
  }, {
1610
2206
  type: "filteredSearch";
@@ -1634,16 +2230,10 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1634
2230
  } | undefined;
1635
2231
  meta?: {
1636
2232
  schemaVersion: "1.0";
2233
+ title?: "Not yet implemented" | undefined;
2234
+ usageDescription?: string | undefined;
1637
2235
  } | undefined;
1638
- }>, z.ZodObject<{
1639
- meta: z.ZodOptional<z.ZodObject<{
1640
- schemaVersion: z.ZodLiteral<"1.0">;
1641
- }, "strip", z.ZodTypeAny, {
1642
- schemaVersion: "1.0";
1643
- }, {
1644
- schemaVersion: "1.0";
1645
- }>>;
1646
- } & {
2236
+ }>, z.ZodObject<{} & {
1647
2237
  type: z.ZodLiteral<"number">;
1648
2238
  attributes: z.ZodOptional<z.ZodObject<{
1649
2239
  label: z.ZodOptional<z.ZodString>;
@@ -1651,15 +2241,15 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1651
2241
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1652
2242
  } & {
1653
2243
  max: z.ZodOptional<z.ZodNumber>;
1654
- min: z.ZodOptional<z.ZodNumber>;
1655
- step: z.ZodOptional<z.ZodNumber>;
2244
+ min: z.ZodDefault<z.ZodNumber>;
2245
+ step: z.ZodDefault<z.ZodNumber>;
1656
2246
  }, "strip", z.ZodTypeAny, {
2247
+ min: number;
2248
+ step: number;
1657
2249
  label?: string | undefined;
1658
2250
  help?: string | undefined;
1659
2251
  labelTranslationKey?: string | undefined;
1660
2252
  max?: number | undefined;
1661
- min?: number | undefined;
1662
- step?: number | undefined;
1663
2253
  }, {
1664
2254
  label?: string | undefined;
1665
2255
  help?: string | undefined;
@@ -1668,18 +2258,34 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1668
2258
  min?: number | undefined;
1669
2259
  step?: number | undefined;
1670
2260
  }>>;
2261
+ meta: z.ZodOptional<z.ZodObject<{
2262
+ schemaVersion: z.ZodLiteral<"1.0">;
2263
+ } & {
2264
+ title: z.ZodOptional<z.ZodLiteral<"Number Field">>;
2265
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a single numeric value.">>;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ schemaVersion: "1.0";
2268
+ title?: "Number Field" | undefined;
2269
+ usageDescription?: "For questions that require a single numeric value." | undefined;
2270
+ }, {
2271
+ schemaVersion: "1.0";
2272
+ title?: "Number Field" | undefined;
2273
+ usageDescription?: "For questions that require a single numeric value." | undefined;
2274
+ }>>;
1671
2275
  }, "strip", z.ZodTypeAny, {
1672
2276
  type: "number";
1673
2277
  attributes?: {
2278
+ min: number;
2279
+ step: number;
1674
2280
  label?: string | undefined;
1675
2281
  help?: string | undefined;
1676
2282
  labelTranslationKey?: string | undefined;
1677
2283
  max?: number | undefined;
1678
- min?: number | undefined;
1679
- step?: number | undefined;
1680
2284
  } | undefined;
1681
2285
  meta?: {
1682
2286
  schemaVersion: "1.0";
2287
+ title?: "Number Field" | undefined;
2288
+ usageDescription?: "For questions that require a single numeric value." | undefined;
1683
2289
  } | undefined;
1684
2290
  }, {
1685
2291
  type: "number";
@@ -1693,6 +2299,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1693
2299
  } | undefined;
1694
2300
  meta?: {
1695
2301
  schemaVersion: "1.0";
2302
+ title?: "Number Field" | undefined;
2303
+ usageDescription?: "For questions that require a single numeric value." | undefined;
1696
2304
  } | undefined;
1697
2305
  }>, z.ZodObject<{
1698
2306
  attributes: z.ZodOptional<z.ZodObject<{
@@ -1708,34 +2316,41 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1708
2316
  help?: string | undefined;
1709
2317
  labelTranslationKey?: string | undefined;
1710
2318
  }>>;
1711
- meta: z.ZodOptional<z.ZodObject<{
1712
- schemaVersion: z.ZodLiteral<"1.0">;
1713
- }, "strip", z.ZodTypeAny, {
1714
- schemaVersion: "1.0";
1715
- }, {
1716
- schemaVersion: "1.0";
1717
- }>>;
1718
2319
  } & {
1719
2320
  type: z.ZodLiteral<"radioButtons">;
1720
2321
  options: z.ZodArray<z.ZodObject<{
1721
- label: z.ZodString;
1722
- value: z.ZodString;
2322
+ label: z.ZodDefault<z.ZodString>;
2323
+ value: z.ZodDefault<z.ZodString>;
1723
2324
  } & {
1724
- selected: z.ZodOptional<z.ZodBoolean>;
2325
+ selected: z.ZodDefault<z.ZodBoolean>;
1725
2326
  }, "strip", z.ZodTypeAny, {
1726
2327
  value: string;
1727
2328
  label: string;
1728
- selected?: boolean | undefined;
2329
+ selected: boolean;
1729
2330
  }, {
1730
- value: string;
1731
- label: string;
2331
+ value?: string | undefined;
2332
+ label?: string | undefined;
1732
2333
  selected?: boolean | undefined;
1733
2334
  }>, "many">;
2335
+ meta: z.ZodOptional<z.ZodObject<{
2336
+ schemaVersion: z.ZodLiteral<"1.0">;
2337
+ } & {
2338
+ title: z.ZodOptional<z.ZodLiteral<"Radio Buttons">>;
2339
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users select just one option.">>;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ schemaVersion: "1.0";
2342
+ title?: "Radio Buttons" | undefined;
2343
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
2344
+ }, {
2345
+ schemaVersion: "1.0";
2346
+ title?: "Radio Buttons" | undefined;
2347
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
2348
+ }>>;
1734
2349
  }, "strip", z.ZodTypeAny, {
1735
2350
  options: {
1736
2351
  value: string;
1737
2352
  label: string;
1738
- selected?: boolean | undefined;
2353
+ selected: boolean;
1739
2354
  }[];
1740
2355
  type: "radioButtons";
1741
2356
  attributes?: {
@@ -1745,11 +2360,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1745
2360
  } | undefined;
1746
2361
  meta?: {
1747
2362
  schemaVersion: "1.0";
2363
+ title?: "Radio Buttons" | undefined;
2364
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
1748
2365
  } | undefined;
1749
2366
  }, {
1750
2367
  options: {
1751
- value: string;
1752
- label: string;
2368
+ value?: string | undefined;
2369
+ label?: string | undefined;
1753
2370
  selected?: boolean | undefined;
1754
2371
  }[];
1755
2372
  type: "radioButtons";
@@ -1760,79 +2377,91 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1760
2377
  } | undefined;
1761
2378
  meta?: {
1762
2379
  schemaVersion: "1.0";
2380
+ title?: "Radio Buttons" | undefined;
2381
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
1763
2382
  } | undefined;
1764
- }>, z.ZodObject<{
1765
- meta: z.ZodOptional<z.ZodObject<{
1766
- schemaVersion: z.ZodLiteral<"1.0">;
1767
- }, "strip", z.ZodTypeAny, {
1768
- schemaVersion: "1.0";
1769
- }, {
1770
- schemaVersion: "1.0";
1771
- }>>;
1772
- } & {
2383
+ }>, z.ZodObject<{} & {
1773
2384
  type: z.ZodLiteral<"selectBox">;
1774
2385
  options: z.ZodArray<z.ZodObject<{
1775
- label: z.ZodString;
1776
- value: z.ZodString;
2386
+ label: z.ZodDefault<z.ZodString>;
2387
+ value: z.ZodDefault<z.ZodString>;
1777
2388
  } & {
1778
- selected: z.ZodOptional<z.ZodBoolean>;
2389
+ selected: z.ZodDefault<z.ZodBoolean>;
1779
2390
  }, "strip", z.ZodTypeAny, {
1780
2391
  value: string;
1781
2392
  label: string;
1782
- selected?: boolean | undefined;
2393
+ selected: boolean;
1783
2394
  }, {
1784
- value: string;
1785
- label: string;
2395
+ value?: string | undefined;
2396
+ label?: string | undefined;
1786
2397
  selected?: boolean | undefined;
1787
2398
  }>, "many">;
1788
- attributes: z.ZodOptional<z.ZodObject<{
2399
+ attributes: z.ZodObject<{
1789
2400
  label: z.ZodOptional<z.ZodString>;
1790
2401
  help: z.ZodOptional<z.ZodString>;
1791
2402
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1792
2403
  } & {
1793
- multiple: z.ZodOptional<z.ZodBoolean>;
2404
+ multiple: z.ZodDefault<z.ZodBoolean>;
1794
2405
  }, "strip", z.ZodTypeAny, {
2406
+ multiple: boolean;
1795
2407
  label?: string | undefined;
1796
2408
  help?: string | undefined;
1797
2409
  labelTranslationKey?: string | undefined;
1798
- multiple?: boolean | undefined;
1799
2410
  }, {
1800
2411
  label?: string | undefined;
1801
2412
  help?: string | undefined;
1802
2413
  labelTranslationKey?: string | undefined;
1803
2414
  multiple?: boolean | undefined;
2415
+ }>;
2416
+ meta: z.ZodOptional<z.ZodObject<{
2417
+ schemaVersion: z.ZodLiteral<"1.0">;
2418
+ } & {
2419
+ title: z.ZodOptional<z.ZodLiteral<"Select Box">>;
2420
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions where users select one option from a list.">>;
2421
+ }, "strip", z.ZodTypeAny, {
2422
+ schemaVersion: "1.0";
2423
+ title?: "Select Box" | undefined;
2424
+ usageDescription?: "For questions where users select one option from a list." | undefined;
2425
+ }, {
2426
+ schemaVersion: "1.0";
2427
+ title?: "Select Box" | undefined;
2428
+ usageDescription?: "For questions where users select one option from a list." | undefined;
1804
2429
  }>>;
1805
2430
  }, "strip", z.ZodTypeAny, {
1806
2431
  options: {
1807
2432
  value: string;
1808
2433
  label: string;
1809
- selected?: boolean | undefined;
2434
+ selected: boolean;
1810
2435
  }[];
1811
2436
  type: "selectBox";
1812
- attributes?: {
2437
+ attributes: {
2438
+ multiple: boolean;
1813
2439
  label?: string | undefined;
1814
2440
  help?: string | undefined;
1815
2441
  labelTranslationKey?: string | undefined;
1816
- multiple?: boolean | undefined;
1817
- } | undefined;
2442
+ };
1818
2443
  meta?: {
1819
2444
  schemaVersion: "1.0";
2445
+ title?: "Select Box" | undefined;
2446
+ usageDescription?: "For questions where users select one option from a list." | undefined;
1820
2447
  } | undefined;
1821
2448
  }, {
1822
2449
  options: {
1823
- value: string;
1824
- label: string;
2450
+ value?: string | undefined;
2451
+ label?: string | undefined;
1825
2452
  selected?: boolean | undefined;
1826
2453
  }[];
1827
2454
  type: "selectBox";
1828
- attributes?: {
2455
+ attributes: {
1829
2456
  label?: string | undefined;
1830
2457
  help?: string | undefined;
1831
2458
  labelTranslationKey?: string | undefined;
1832
2459
  multiple?: boolean | undefined;
1833
- } | undefined;
2460
+ };
1834
2461
  meta?: {
1835
2462
  schemaVersion: "1.0";
2463
+ title?: "Select Box" | undefined;
2464
+ usageDescription?: "For questions where users select one option from a list." | undefined;
1836
2465
  } | undefined;
1837
2466
  }>, z.ZodObject<{} & {
1838
2467
  type: z.ZodLiteral<"textArea">;
@@ -1841,18 +2470,20 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1841
2470
  help: z.ZodOptional<z.ZodString>;
1842
2471
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1843
2472
  } & {
1844
- cols: z.ZodOptional<z.ZodNumber>;
2473
+ cols: z.ZodDefault<z.ZodNumber>;
1845
2474
  maxLength: z.ZodOptional<z.ZodNumber>;
1846
2475
  minLength: z.ZodOptional<z.ZodNumber>;
1847
- rows: z.ZodOptional<z.ZodNumber>;
2476
+ rows: z.ZodDefault<z.ZodNumber>;
2477
+ asRichText: z.ZodDefault<z.ZodBoolean>;
1848
2478
  }, "strip", z.ZodTypeAny, {
2479
+ cols: number;
2480
+ rows: number;
2481
+ asRichText: boolean;
1849
2482
  label?: string | undefined;
1850
2483
  help?: string | undefined;
1851
2484
  labelTranslationKey?: string | undefined;
1852
2485
  maxLength?: number | undefined;
1853
2486
  minLength?: number | undefined;
1854
- cols?: number | undefined;
1855
- rows?: number | undefined;
1856
2487
  }, {
1857
2488
  label?: string | undefined;
1858
2489
  help?: string | undefined;
@@ -1861,39 +2492,41 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1861
2492
  minLength?: number | undefined;
1862
2493
  cols?: number | undefined;
1863
2494
  rows?: number | undefined;
2495
+ asRichText?: boolean | undefined;
1864
2496
  }>>;
1865
- meta: z.ZodObject<{
2497
+ meta: z.ZodOptional<z.ZodObject<{
1866
2498
  schemaVersion: z.ZodLiteral<"1.0">;
1867
2499
  } & {
1868
- asRichText: z.ZodOptional<z.ZodBoolean>;
2500
+ title: z.ZodOptional<z.ZodLiteral<"Text Area">>;
2501
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require longer answers, you can select formatting options too.">>;
1869
2502
  }, "strip", z.ZodTypeAny, {
1870
2503
  schemaVersion: "1.0";
1871
- asRichText?: boolean | undefined;
2504
+ title?: "Text Area" | undefined;
2505
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
1872
2506
  }, {
1873
2507
  schemaVersion: "1.0";
1874
- asRichText?: boolean | undefined;
1875
- }>;
2508
+ title?: "Text Area" | undefined;
2509
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
2510
+ }>>;
1876
2511
  }, "strip", z.ZodTypeAny, {
1877
2512
  type: "textArea";
1878
- meta: {
1879
- schemaVersion: "1.0";
1880
- asRichText?: boolean | undefined;
1881
- };
1882
2513
  attributes?: {
2514
+ cols: number;
2515
+ rows: number;
2516
+ asRichText: boolean;
1883
2517
  label?: string | undefined;
1884
2518
  help?: string | undefined;
1885
2519
  labelTranslationKey?: string | undefined;
1886
2520
  maxLength?: number | undefined;
1887
2521
  minLength?: number | undefined;
1888
- cols?: number | undefined;
1889
- rows?: number | undefined;
2522
+ } | undefined;
2523
+ meta?: {
2524
+ schemaVersion: "1.0";
2525
+ title?: "Text Area" | undefined;
2526
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
1890
2527
  } | undefined;
1891
2528
  }, {
1892
2529
  type: "textArea";
1893
- meta: {
1894
- schemaVersion: "1.0";
1895
- asRichText?: boolean | undefined;
1896
- };
1897
2530
  attributes?: {
1898
2531
  label?: string | undefined;
1899
2532
  help?: string | undefined;
@@ -1902,30 +2535,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1902
2535
  minLength?: number | undefined;
1903
2536
  cols?: number | undefined;
1904
2537
  rows?: number | undefined;
2538
+ asRichText?: boolean | undefined;
1905
2539
  } | undefined;
1906
- }>, z.ZodObject<{
1907
- meta: z.ZodOptional<z.ZodObject<{
1908
- schemaVersion: z.ZodLiteral<"1.0">;
1909
- }, "strip", z.ZodTypeAny, {
1910
- schemaVersion: "1.0";
1911
- }, {
2540
+ meta?: {
1912
2541
  schemaVersion: "1.0";
1913
- }>>;
1914
- } & {
2542
+ title?: "Text Area" | undefined;
2543
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
2544
+ } | undefined;
2545
+ }>, z.ZodObject<{} & {
1915
2546
  type: z.ZodLiteral<"text">;
1916
2547
  attributes: z.ZodOptional<z.ZodObject<{
1917
2548
  label: z.ZodOptional<z.ZodString>;
1918
2549
  help: z.ZodOptional<z.ZodString>;
1919
2550
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1920
2551
  } & {
1921
- maxLength: z.ZodOptional<z.ZodNumber>;
2552
+ maxLength: z.ZodDefault<z.ZodNumber>;
1922
2553
  minLength: z.ZodOptional<z.ZodNumber>;
1923
2554
  pattern: z.ZodOptional<z.ZodString>;
1924
2555
  }, "strip", z.ZodTypeAny, {
2556
+ maxLength: number;
1925
2557
  label?: string | undefined;
1926
2558
  help?: string | undefined;
1927
2559
  labelTranslationKey?: string | undefined;
1928
- maxLength?: number | undefined;
1929
2560
  minLength?: number | undefined;
1930
2561
  pattern?: string | undefined;
1931
2562
  }, {
@@ -1936,18 +2567,34 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1936
2567
  minLength?: number | undefined;
1937
2568
  pattern?: string | undefined;
1938
2569
  }>>;
2570
+ meta: z.ZodOptional<z.ZodObject<{
2571
+ schemaVersion: z.ZodLiteral<"1.0">;
2572
+ } & {
2573
+ title: z.ZodOptional<z.ZodLiteral<"Text Field">>;
2574
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require short, simple answers.">>;
2575
+ }, "strip", z.ZodTypeAny, {
2576
+ schemaVersion: "1.0";
2577
+ title?: "Text Field" | undefined;
2578
+ usageDescription?: "For questions that require short, simple answers." | undefined;
2579
+ }, {
2580
+ schemaVersion: "1.0";
2581
+ title?: "Text Field" | undefined;
2582
+ usageDescription?: "For questions that require short, simple answers." | undefined;
2583
+ }>>;
1939
2584
  }, "strip", z.ZodTypeAny, {
1940
2585
  type: "text";
1941
2586
  attributes?: {
2587
+ maxLength: number;
1942
2588
  label?: string | undefined;
1943
2589
  help?: string | undefined;
1944
2590
  labelTranslationKey?: string | undefined;
1945
- maxLength?: number | undefined;
1946
2591
  minLength?: number | undefined;
1947
2592
  pattern?: string | undefined;
1948
2593
  } | undefined;
1949
2594
  meta?: {
1950
2595
  schemaVersion: "1.0";
2596
+ title?: "Text Field" | undefined;
2597
+ usageDescription?: "For questions that require short, simple answers." | undefined;
1951
2598
  } | undefined;
1952
2599
  }, {
1953
2600
  type: "text";
@@ -1961,205 +2608,62 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1961
2608
  } | undefined;
1962
2609
  meta?: {
1963
2610
  schemaVersion: "1.0";
2611
+ title?: "Text Field" | undefined;
2612
+ usageDescription?: "For questions that require short, simple answers." | undefined;
1964
2613
  } | undefined;
1965
- }>, z.ZodObject<{
2614
+ }>, z.ZodObject<{} & {
2615
+ type: z.ZodLiteral<"url">;
1966
2616
  attributes: z.ZodOptional<z.ZodObject<{
1967
2617
  label: z.ZodOptional<z.ZodString>;
1968
2618
  help: z.ZodOptional<z.ZodString>;
1969
2619
  labelTranslationKey: z.ZodOptional<z.ZodString>;
2620
+ } & {
2621
+ maxLength: z.ZodDefault<z.ZodNumber>;
2622
+ minLength: z.ZodOptional<z.ZodNumber>;
2623
+ pattern: z.ZodOptional<z.ZodString>;
1970
2624
  }, "strip", z.ZodTypeAny, {
2625
+ maxLength: number;
1971
2626
  label?: string | undefined;
1972
2627
  help?: string | undefined;
1973
2628
  labelTranslationKey?: string | undefined;
2629
+ minLength?: number | undefined;
2630
+ pattern?: string | undefined;
1974
2631
  }, {
1975
2632
  label?: string | undefined;
1976
2633
  help?: string | undefined;
1977
2634
  labelTranslationKey?: string | undefined;
2635
+ maxLength?: number | undefined;
2636
+ minLength?: number | undefined;
2637
+ pattern?: string | undefined;
1978
2638
  }>>;
1979
2639
  meta: z.ZodOptional<z.ZodObject<{
1980
2640
  schemaVersion: z.ZodLiteral<"1.0">;
2641
+ } & {
2642
+ title: z.ZodOptional<z.ZodLiteral<"URL Field">>;
2643
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a website, DOI or other URL.">>;
1981
2644
  }, "strip", z.ZodTypeAny, {
1982
2645
  schemaVersion: "1.0";
2646
+ title?: "URL Field" | undefined;
2647
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
1983
2648
  }, {
1984
2649
  schemaVersion: "1.0";
2650
+ title?: "URL Field" | undefined;
2651
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
1985
2652
  }>>;
1986
- } & {
1987
- type: z.ZodLiteral<"typeaheadSearch">;
1988
- graphQL: z.ZodObject<{
1989
- displayFields: z.ZodArray<z.ZodObject<{
1990
- propertyName: z.ZodString;
1991
- label: z.ZodString;
1992
- labelTranslationKey: z.ZodOptional<z.ZodString>;
1993
- }, "strip", z.ZodTypeAny, {
1994
- label: string;
1995
- propertyName: string;
1996
- labelTranslationKey?: string | undefined;
1997
- }, {
1998
- label: string;
1999
- propertyName: string;
2000
- labelTranslationKey?: string | undefined;
2001
- }>, "many">;
2002
- localQueryId: z.ZodOptional<z.ZodString>;
2003
- query: z.ZodOptional<z.ZodString>;
2004
- responseField: z.ZodString;
2005
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
2006
- minLength: z.ZodOptional<z.ZodNumber>;
2007
- label: z.ZodOptional<z.ZodString>;
2008
- labelTranslationKey: z.ZodOptional<z.ZodString>;
2009
- name: z.ZodString;
2010
- type: z.ZodString;
2011
- defaultValue: z.ZodOptional<z.ZodString>;
2012
- }, "strip", z.ZodTypeAny, {
2013
- type: string;
2014
- name: string;
2015
- label?: string | undefined;
2016
- labelTranslationKey?: string | undefined;
2017
- minLength?: number | undefined;
2018
- defaultValue?: string | undefined;
2019
- }, {
2020
- type: string;
2021
- name: string;
2022
- label?: string | undefined;
2023
- labelTranslationKey?: string | undefined;
2024
- minLength?: number | undefined;
2025
- defaultValue?: string | undefined;
2026
- }>, "many">>;
2027
- }, "strip", z.ZodTypeAny, {
2028
- displayFields: {
2029
- label: string;
2030
- propertyName: string;
2031
- labelTranslationKey?: string | undefined;
2032
- }[];
2033
- responseField: string;
2034
- localQueryId?: string | undefined;
2035
- query?: string | undefined;
2036
- variables?: {
2037
- type: string;
2038
- name: string;
2039
- label?: string | undefined;
2040
- labelTranslationKey?: string | undefined;
2041
- minLength?: number | undefined;
2042
- defaultValue?: string | undefined;
2043
- }[] | undefined;
2044
- }, {
2045
- displayFields: {
2046
- label: string;
2047
- propertyName: string;
2048
- labelTranslationKey?: string | undefined;
2049
- }[];
2050
- responseField: string;
2051
- localQueryId?: string | undefined;
2052
- query?: string | undefined;
2053
- variables?: {
2054
- type: string;
2055
- name: string;
2056
- label?: string | undefined;
2057
- labelTranslationKey?: string | undefined;
2058
- minLength?: number | undefined;
2059
- defaultValue?: string | undefined;
2060
- }[] | undefined;
2061
- }>;
2062
2653
  }, "strip", z.ZodTypeAny, {
2063
- type: "typeaheadSearch";
2064
- graphQL: {
2065
- displayFields: {
2066
- label: string;
2067
- propertyName: string;
2068
- labelTranslationKey?: string | undefined;
2069
- }[];
2070
- responseField: string;
2071
- localQueryId?: string | undefined;
2072
- query?: string | undefined;
2073
- variables?: {
2074
- type: string;
2075
- name: string;
2076
- label?: string | undefined;
2077
- labelTranslationKey?: string | undefined;
2078
- minLength?: number | undefined;
2079
- defaultValue?: string | undefined;
2080
- }[] | undefined;
2081
- };
2654
+ type: "url";
2082
2655
  attributes?: {
2656
+ maxLength: number;
2083
2657
  label?: string | undefined;
2084
2658
  help?: string | undefined;
2085
2659
  labelTranslationKey?: string | undefined;
2660
+ minLength?: number | undefined;
2661
+ pattern?: string | undefined;
2086
2662
  } | undefined;
2087
2663
  meta?: {
2088
2664
  schemaVersion: "1.0";
2089
- } | undefined;
2090
- }, {
2091
- type: "typeaheadSearch";
2092
- graphQL: {
2093
- displayFields: {
2094
- label: string;
2095
- propertyName: string;
2096
- labelTranslationKey?: string | undefined;
2097
- }[];
2098
- responseField: string;
2099
- localQueryId?: string | undefined;
2100
- query?: string | undefined;
2101
- variables?: {
2102
- type: string;
2103
- name: string;
2104
- label?: string | undefined;
2105
- labelTranslationKey?: string | undefined;
2106
- minLength?: number | undefined;
2107
- defaultValue?: string | undefined;
2108
- }[] | undefined;
2109
- };
2110
- attributes?: {
2111
- label?: string | undefined;
2112
- help?: string | undefined;
2113
- labelTranslationKey?: string | undefined;
2114
- } | undefined;
2115
- meta?: {
2116
- schemaVersion: "1.0";
2117
- } | undefined;
2118
- }>, z.ZodObject<{
2119
- meta: z.ZodOptional<z.ZodObject<{
2120
- schemaVersion: z.ZodLiteral<"1.0">;
2121
- }, "strip", z.ZodTypeAny, {
2122
- schemaVersion: "1.0";
2123
- }, {
2124
- schemaVersion: "1.0";
2125
- }>>;
2126
- } & {
2127
- type: z.ZodLiteral<"url">;
2128
- attributes: z.ZodOptional<z.ZodObject<{
2129
- label: z.ZodOptional<z.ZodString>;
2130
- help: z.ZodOptional<z.ZodString>;
2131
- labelTranslationKey: z.ZodOptional<z.ZodString>;
2132
- } & {
2133
- maxLength: z.ZodOptional<z.ZodNumber>;
2134
- minLength: z.ZodOptional<z.ZodNumber>;
2135
- pattern: z.ZodOptional<z.ZodString>;
2136
- }, "strip", z.ZodTypeAny, {
2137
- label?: string | undefined;
2138
- help?: string | undefined;
2139
- labelTranslationKey?: string | undefined;
2140
- maxLength?: number | undefined;
2141
- minLength?: number | undefined;
2142
- pattern?: string | undefined;
2143
- }, {
2144
- label?: string | undefined;
2145
- help?: string | undefined;
2146
- labelTranslationKey?: string | undefined;
2147
- maxLength?: number | undefined;
2148
- minLength?: number | undefined;
2149
- pattern?: string | undefined;
2150
- }>>;
2151
- }, "strip", z.ZodTypeAny, {
2152
- type: "url";
2153
- attributes?: {
2154
- label?: string | undefined;
2155
- help?: string | undefined;
2156
- labelTranslationKey?: string | undefined;
2157
- maxLength?: number | undefined;
2158
- minLength?: number | undefined;
2159
- pattern?: string | undefined;
2160
- } | undefined;
2161
- meta?: {
2162
- schemaVersion: "1.0";
2665
+ title?: "URL Field" | undefined;
2666
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
2163
2667
  } | undefined;
2164
2668
  }, {
2165
2669
  type: "url";
@@ -2173,123 +2677,139 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2173
2677
  } | undefined;
2174
2678
  meta?: {
2175
2679
  schemaVersion: "1.0";
2680
+ title?: "URL Field" | undefined;
2681
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
2176
2682
  } | undefined;
2177
2683
  }>]>;
2178
2684
  }, "strip", z.ZodTypeAny, {
2179
2685
  content: {
2180
2686
  type: "currency";
2181
2687
  attributes?: {
2688
+ min: number;
2689
+ step: number;
2690
+ denomination: string;
2182
2691
  label?: string | undefined;
2183
2692
  help?: string | undefined;
2184
2693
  labelTranslationKey?: string | undefined;
2185
2694
  max?: number | undefined;
2186
- min?: number | undefined;
2187
- step?: number | undefined;
2188
- denomination?: string | undefined;
2189
2695
  } | undefined;
2190
2696
  meta?: {
2191
2697
  schemaVersion: "1.0";
2698
+ title?: "Currency Field" | undefined;
2699
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
2192
2700
  } | undefined;
2193
2701
  } | {
2194
2702
  type: "number";
2195
2703
  attributes?: {
2704
+ min: number;
2705
+ step: number;
2196
2706
  label?: string | undefined;
2197
2707
  help?: string | undefined;
2198
2708
  labelTranslationKey?: string | undefined;
2199
2709
  max?: number | undefined;
2200
- min?: number | undefined;
2201
- step?: number | undefined;
2202
2710
  } | undefined;
2203
2711
  meta?: {
2204
2712
  schemaVersion: "1.0";
2713
+ title?: "Number Field" | undefined;
2714
+ usageDescription?: "For questions that require a single numeric value." | undefined;
2205
2715
  } | undefined;
2206
2716
  } | {
2207
2717
  type: "email";
2208
2718
  attributes?: {
2719
+ maxLength: number;
2720
+ multiple: boolean;
2209
2721
  label?: string | undefined;
2210
2722
  help?: string | undefined;
2211
2723
  labelTranslationKey?: string | undefined;
2212
- maxLength?: number | undefined;
2213
2724
  minLength?: number | undefined;
2214
2725
  pattern?: string | undefined;
2215
- multiple?: boolean | undefined;
2216
2726
  } | undefined;
2217
2727
  meta?: {
2218
2728
  schemaVersion: "1.0";
2729
+ title?: "Email Field" | undefined;
2730
+ usageDescription?: "For questions that require require email address(es)." | undefined;
2219
2731
  } | undefined;
2220
2732
  } | {
2221
2733
  type: "textArea";
2222
- meta: {
2223
- schemaVersion: "1.0";
2224
- asRichText?: boolean | undefined;
2225
- };
2226
2734
  attributes?: {
2735
+ cols: number;
2736
+ rows: number;
2737
+ asRichText: boolean;
2227
2738
  label?: string | undefined;
2228
2739
  help?: string | undefined;
2229
2740
  labelTranslationKey?: string | undefined;
2230
2741
  maxLength?: number | undefined;
2231
2742
  minLength?: number | undefined;
2232
- cols?: number | undefined;
2233
- rows?: number | undefined;
2743
+ } | undefined;
2744
+ meta?: {
2745
+ schemaVersion: "1.0";
2746
+ title?: "Text Area" | undefined;
2747
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
2234
2748
  } | undefined;
2235
2749
  } | {
2236
2750
  type: "text";
2237
2751
  attributes?: {
2752
+ maxLength: number;
2238
2753
  label?: string | undefined;
2239
2754
  help?: string | undefined;
2240
2755
  labelTranslationKey?: string | undefined;
2241
- maxLength?: number | undefined;
2242
2756
  minLength?: number | undefined;
2243
2757
  pattern?: string | undefined;
2244
2758
  } | undefined;
2245
2759
  meta?: {
2246
2760
  schemaVersion: "1.0";
2761
+ title?: "Text Field" | undefined;
2762
+ usageDescription?: "For questions that require short, simple answers." | undefined;
2247
2763
  } | undefined;
2248
2764
  } | {
2249
2765
  type: "url";
2250
2766
  attributes?: {
2767
+ maxLength: number;
2251
2768
  label?: string | undefined;
2252
2769
  help?: string | undefined;
2253
2770
  labelTranslationKey?: string | undefined;
2254
- maxLength?: number | undefined;
2255
2771
  minLength?: number | undefined;
2256
2772
  pattern?: string | undefined;
2257
2773
  } | undefined;
2258
2774
  meta?: {
2259
2775
  schemaVersion: "1.0";
2776
+ title?: "URL Field" | undefined;
2777
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
2260
2778
  } | undefined;
2261
2779
  } | {
2262
2780
  type: "date";
2263
2781
  attributes?: {
2782
+ step: number;
2264
2783
  label?: string | undefined;
2265
2784
  help?: string | undefined;
2266
2785
  labelTranslationKey?: string | undefined;
2267
2786
  max?: string | undefined;
2268
2787
  min?: string | undefined;
2269
- step?: number | undefined;
2270
2788
  } | undefined;
2271
2789
  meta?: {
2272
2790
  schemaVersion: "1.0";
2791
+ title?: "Date Field" | undefined;
2792
+ usageDescription?: "For questions that require a date." | undefined;
2273
2793
  } | undefined;
2274
2794
  } | {
2275
2795
  type: "dateRange";
2276
2796
  columns: {
2277
- start?: {
2797
+ start: {
2798
+ step: number;
2278
2799
  label?: string | undefined;
2279
2800
  help?: string | undefined;
2280
2801
  labelTranslationKey?: string | undefined;
2281
2802
  max?: string | undefined;
2282
2803
  min?: string | undefined;
2283
- step?: number | undefined;
2284
- } | undefined;
2285
- end?: {
2804
+ };
2805
+ end: {
2806
+ step: number;
2286
2807
  label?: string | undefined;
2287
2808
  help?: string | undefined;
2288
2809
  labelTranslationKey?: string | undefined;
2289
2810
  max?: string | undefined;
2290
2811
  min?: string | undefined;
2291
- step?: number | undefined;
2292
- } | undefined;
2812
+ };
2293
2813
  };
2294
2814
  attributes?: {
2295
2815
  label?: string | undefined;
@@ -2298,23 +2818,27 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2298
2818
  } | undefined;
2299
2819
  meta?: {
2300
2820
  schemaVersion: "1.0";
2821
+ title?: "Date Range" | undefined;
2822
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
2301
2823
  } | undefined;
2302
2824
  } | {
2303
2825
  type: "boolean";
2304
- attributes: {
2826
+ attributes?: {
2827
+ checked: boolean;
2305
2828
  label?: string | undefined;
2306
2829
  help?: string | undefined;
2307
2830
  labelTranslationKey?: string | undefined;
2308
- checked?: boolean | undefined;
2309
- };
2831
+ } | undefined;
2310
2832
  meta?: {
2311
2833
  schemaVersion: "1.0";
2834
+ title?: "Yes/No Field" | undefined;
2835
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
2312
2836
  } | undefined;
2313
2837
  } | {
2314
2838
  options: {
2315
2839
  value: string;
2316
2840
  label: string;
2317
- checked?: boolean | undefined;
2841
+ checked: boolean;
2318
2842
  }[];
2319
2843
  type: "checkBoxes";
2320
2844
  attributes?: {
@@ -2324,12 +2848,14 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2324
2848
  } | undefined;
2325
2849
  meta?: {
2326
2850
  schemaVersion: "1.0";
2851
+ title?: "Check Boxes" | undefined;
2852
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
2327
2853
  } | undefined;
2328
2854
  } | {
2329
2855
  options: {
2330
2856
  value: string;
2331
2857
  label: string;
2332
- selected?: boolean | undefined;
2858
+ selected: boolean;
2333
2859
  }[];
2334
2860
  type: "radioButtons";
2335
2861
  attributes?: {
@@ -2339,22 +2865,26 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2339
2865
  } | undefined;
2340
2866
  meta?: {
2341
2867
  schemaVersion: "1.0";
2868
+ title?: "Radio Buttons" | undefined;
2869
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
2342
2870
  } | undefined;
2343
2871
  } | {
2344
2872
  options: {
2345
2873
  value: string;
2346
2874
  label: string;
2347
- selected?: boolean | undefined;
2875
+ selected: boolean;
2348
2876
  }[];
2349
2877
  type: "selectBox";
2350
- attributes?: {
2878
+ attributes: {
2879
+ multiple: boolean;
2351
2880
  label?: string | undefined;
2352
2881
  help?: string | undefined;
2353
2882
  labelTranslationKey?: string | undefined;
2354
- multiple?: boolean | undefined;
2355
- } | undefined;
2883
+ };
2356
2884
  meta?: {
2357
2885
  schemaVersion: "1.0";
2886
+ title?: "Select Box" | undefined;
2887
+ usageDescription?: "For questions where users select one option from a list." | undefined;
2358
2888
  } | undefined;
2359
2889
  } | {
2360
2890
  type: "filteredSearch";
@@ -2384,35 +2914,40 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2384
2914
  } | undefined;
2385
2915
  meta?: {
2386
2916
  schemaVersion: "1.0";
2917
+ title?: "Not yet implemented" | undefined;
2918
+ usageDescription?: string | undefined;
2387
2919
  } | undefined;
2388
2920
  } | {
2389
- type: "typeaheadSearch";
2921
+ type: "affiliationSearch";
2922
+ meta: {
2923
+ schemaVersion: "1.0";
2924
+ title?: "Affiliation Search" | undefined;
2925
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
2926
+ };
2390
2927
  graphQL: {
2391
2928
  displayFields: {
2392
2929
  label: string;
2393
- propertyName: string;
2930
+ propertyName: "displayName";
2394
2931
  labelTranslationKey?: string | undefined;
2395
2932
  }[];
2396
- responseField: string;
2397
- localQueryId?: string | undefined;
2398
- query?: string | undefined;
2399
- variables?: {
2933
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
2934
+ responseField: "affiliations.items";
2935
+ variables: {
2400
2936
  type: string;
2401
- name: string;
2402
- label?: string | undefined;
2937
+ label: string;
2938
+ minLength: 3;
2939
+ name: "name";
2403
2940
  labelTranslationKey?: string | undefined;
2404
- minLength?: number | undefined;
2405
- defaultValue?: string | undefined;
2406
- }[] | undefined;
2941
+ }[];
2942
+ answerField: "uri";
2943
+ localQueryId?: string | undefined;
2944
+ queryId?: string | undefined;
2407
2945
  };
2408
2946
  attributes?: {
2409
2947
  label?: string | undefined;
2410
2948
  help?: string | undefined;
2411
2949
  labelTranslationKey?: string | undefined;
2412
2950
  } | undefined;
2413
- meta?: {
2414
- schemaVersion: "1.0";
2415
- } | undefined;
2416
2951
  };
2417
2952
  heading?: string | undefined;
2418
2953
  }, {
@@ -2429,6 +2964,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2429
2964
  } | undefined;
2430
2965
  meta?: {
2431
2966
  schemaVersion: "1.0";
2967
+ title?: "Currency Field" | undefined;
2968
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
2432
2969
  } | undefined;
2433
2970
  } | {
2434
2971
  type: "number";
@@ -2442,6 +2979,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2442
2979
  } | undefined;
2443
2980
  meta?: {
2444
2981
  schemaVersion: "1.0";
2982
+ title?: "Number Field" | undefined;
2983
+ usageDescription?: "For questions that require a single numeric value." | undefined;
2445
2984
  } | undefined;
2446
2985
  } | {
2447
2986
  type: "email";
@@ -2456,13 +2995,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2456
2995
  } | undefined;
2457
2996
  meta?: {
2458
2997
  schemaVersion: "1.0";
2998
+ title?: "Email Field" | undefined;
2999
+ usageDescription?: "For questions that require require email address(es)." | undefined;
2459
3000
  } | undefined;
2460
3001
  } | {
2461
3002
  type: "textArea";
2462
- meta: {
2463
- schemaVersion: "1.0";
2464
- asRichText?: boolean | undefined;
2465
- };
2466
3003
  attributes?: {
2467
3004
  label?: string | undefined;
2468
3005
  help?: string | undefined;
@@ -2471,6 +3008,12 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2471
3008
  minLength?: number | undefined;
2472
3009
  cols?: number | undefined;
2473
3010
  rows?: number | undefined;
3011
+ asRichText?: boolean | undefined;
3012
+ } | undefined;
3013
+ meta?: {
3014
+ schemaVersion: "1.0";
3015
+ title?: "Text Area" | undefined;
3016
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
2474
3017
  } | undefined;
2475
3018
  } | {
2476
3019
  type: "text";
@@ -2484,6 +3027,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2484
3027
  } | undefined;
2485
3028
  meta?: {
2486
3029
  schemaVersion: "1.0";
3030
+ title?: "Text Field" | undefined;
3031
+ usageDescription?: "For questions that require short, simple answers." | undefined;
2487
3032
  } | undefined;
2488
3033
  } | {
2489
3034
  type: "url";
@@ -2497,6 +3042,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2497
3042
  } | undefined;
2498
3043
  meta?: {
2499
3044
  schemaVersion: "1.0";
3045
+ title?: "URL Field" | undefined;
3046
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
2500
3047
  } | undefined;
2501
3048
  } | {
2502
3049
  type: "date";
@@ -2510,26 +3057,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2510
3057
  } | undefined;
2511
3058
  meta?: {
2512
3059
  schemaVersion: "1.0";
3060
+ title?: "Date Field" | undefined;
3061
+ usageDescription?: "For questions that require a date." | undefined;
2513
3062
  } | undefined;
2514
3063
  } | {
2515
3064
  type: "dateRange";
2516
3065
  columns: {
2517
- start?: {
3066
+ start: {
2518
3067
  label?: string | undefined;
2519
3068
  help?: string | undefined;
2520
3069
  labelTranslationKey?: string | undefined;
2521
3070
  max?: string | undefined;
2522
3071
  min?: string | undefined;
2523
3072
  step?: number | undefined;
2524
- } | undefined;
2525
- end?: {
3073
+ };
3074
+ end: {
2526
3075
  label?: string | undefined;
2527
3076
  help?: string | undefined;
2528
3077
  labelTranslationKey?: string | undefined;
2529
3078
  max?: string | undefined;
2530
3079
  min?: string | undefined;
2531
3080
  step?: number | undefined;
2532
- } | undefined;
3081
+ };
2533
3082
  };
2534
3083
  attributes?: {
2535
3084
  label?: string | undefined;
@@ -2538,22 +3087,26 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2538
3087
  } | undefined;
2539
3088
  meta?: {
2540
3089
  schemaVersion: "1.0";
3090
+ title?: "Date Range" | undefined;
3091
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
2541
3092
  } | undefined;
2542
3093
  } | {
2543
3094
  type: "boolean";
2544
- attributes: {
3095
+ attributes?: {
2545
3096
  label?: string | undefined;
2546
3097
  help?: string | undefined;
2547
3098
  labelTranslationKey?: string | undefined;
2548
3099
  checked?: boolean | undefined;
2549
- };
3100
+ } | undefined;
2550
3101
  meta?: {
2551
3102
  schemaVersion: "1.0";
3103
+ title?: "Yes/No Field" | undefined;
3104
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
2552
3105
  } | undefined;
2553
3106
  } | {
2554
3107
  options: {
2555
- value: string;
2556
- label: string;
3108
+ value?: string | undefined;
3109
+ label?: string | undefined;
2557
3110
  checked?: boolean | undefined;
2558
3111
  }[];
2559
3112
  type: "checkBoxes";
@@ -2564,11 +3117,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2564
3117
  } | undefined;
2565
3118
  meta?: {
2566
3119
  schemaVersion: "1.0";
3120
+ title?: "Check Boxes" | undefined;
3121
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
2567
3122
  } | undefined;
2568
3123
  } | {
2569
3124
  options: {
2570
- value: string;
2571
- label: string;
3125
+ value?: string | undefined;
3126
+ label?: string | undefined;
2572
3127
  selected?: boolean | undefined;
2573
3128
  }[];
2574
3129
  type: "radioButtons";
@@ -2579,22 +3134,26 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2579
3134
  } | undefined;
2580
3135
  meta?: {
2581
3136
  schemaVersion: "1.0";
3137
+ title?: "Radio Buttons" | undefined;
3138
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
2582
3139
  } | undefined;
2583
3140
  } | {
2584
3141
  options: {
2585
- value: string;
2586
- label: string;
3142
+ value?: string | undefined;
3143
+ label?: string | undefined;
2587
3144
  selected?: boolean | undefined;
2588
3145
  }[];
2589
3146
  type: "selectBox";
2590
- attributes?: {
3147
+ attributes: {
2591
3148
  label?: string | undefined;
2592
3149
  help?: string | undefined;
2593
3150
  labelTranslationKey?: string | undefined;
2594
3151
  multiple?: boolean | undefined;
2595
- } | undefined;
3152
+ };
2596
3153
  meta?: {
2597
3154
  schemaVersion: "1.0";
3155
+ title?: "Select Box" | undefined;
3156
+ usageDescription?: "For questions where users select one option from a list." | undefined;
2598
3157
  } | undefined;
2599
3158
  } | {
2600
3159
  type: "filteredSearch";
@@ -2624,35 +3183,40 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2624
3183
  } | undefined;
2625
3184
  meta?: {
2626
3185
  schemaVersion: "1.0";
3186
+ title?: "Not yet implemented" | undefined;
3187
+ usageDescription?: string | undefined;
2627
3188
  } | undefined;
2628
3189
  } | {
2629
- type: "typeaheadSearch";
3190
+ type: "affiliationSearch";
3191
+ meta: {
3192
+ schemaVersion: "1.0";
3193
+ title?: "Affiliation Search" | undefined;
3194
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
3195
+ };
2630
3196
  graphQL: {
2631
3197
  displayFields: {
2632
- label: string;
2633
- propertyName: string;
3198
+ propertyName: "displayName";
3199
+ label?: string | undefined;
2634
3200
  labelTranslationKey?: string | undefined;
2635
3201
  }[];
2636
- responseField: string;
2637
- localQueryId?: string | undefined;
2638
- query?: string | undefined;
2639
- variables?: {
2640
- type: string;
2641
- name: string;
3202
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
3203
+ responseField: "affiliations.items";
3204
+ variables: {
3205
+ minLength: 3;
3206
+ name: "name";
3207
+ type?: string | undefined;
2642
3208
  label?: string | undefined;
2643
3209
  labelTranslationKey?: string | undefined;
2644
- minLength?: number | undefined;
2645
- defaultValue?: string | undefined;
2646
- }[] | undefined;
3210
+ }[];
3211
+ answerField: "uri";
3212
+ localQueryId?: string | undefined;
3213
+ queryId?: string | undefined;
2647
3214
  };
2648
3215
  attributes?: {
2649
3216
  label?: string | undefined;
2650
3217
  help?: string | undefined;
2651
3218
  labelTranslationKey?: string | undefined;
2652
3219
  } | undefined;
2653
- meta?: {
2654
- schemaVersion: "1.0";
2655
- } | undefined;
2656
3220
  };
2657
3221
  heading?: string | undefined;
2658
3222
  }>, "many">;
@@ -2661,18 +3225,18 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2661
3225
  help: z.ZodOptional<z.ZodString>;
2662
3226
  labelTranslationKey: z.ZodOptional<z.ZodString>;
2663
3227
  } & {
2664
- canAddRows: z.ZodOptional<z.ZodBoolean>;
2665
- canRemoveRows: z.ZodOptional<z.ZodBoolean>;
2666
- initialRows: z.ZodOptional<z.ZodNumber>;
3228
+ canAddRows: z.ZodDefault<z.ZodBoolean>;
3229
+ canRemoveRows: z.ZodDefault<z.ZodBoolean>;
3230
+ initialRows: z.ZodDefault<z.ZodNumber>;
2667
3231
  maxRows: z.ZodOptional<z.ZodNumber>;
2668
3232
  minRows: z.ZodOptional<z.ZodNumber>;
2669
3233
  }, "strip", z.ZodTypeAny, {
3234
+ canAddRows: boolean;
3235
+ canRemoveRows: boolean;
3236
+ initialRows: number;
2670
3237
  label?: string | undefined;
2671
3238
  help?: string | undefined;
2672
3239
  labelTranslationKey?: string | undefined;
2673
- canAddRows?: boolean | undefined;
2674
- canRemoveRows?: boolean | undefined;
2675
- initialRows?: number | undefined;
2676
3240
  maxRows?: number | undefined;
2677
3241
  minRows?: number | undefined;
2678
3242
  }, {
@@ -2685,123 +3249,151 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2685
3249
  maxRows?: number | undefined;
2686
3250
  minRows?: number | undefined;
2687
3251
  }>>;
3252
+ meta: z.ZodOptional<z.ZodObject<{
3253
+ schemaVersion: z.ZodLiteral<"1.0">;
3254
+ } & {
3255
+ title: z.ZodOptional<z.ZodLiteral<"Table">>;
3256
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a tabular format.">>;
3257
+ }, "strip", z.ZodTypeAny, {
3258
+ schemaVersion: "1.0";
3259
+ title?: "Table" | undefined;
3260
+ usageDescription?: "For questions that require a tabular format." | undefined;
3261
+ }, {
3262
+ schemaVersion: "1.0";
3263
+ title?: "Table" | undefined;
3264
+ usageDescription?: "For questions that require a tabular format." | undefined;
3265
+ }>>;
2688
3266
  }, "strip", z.ZodTypeAny, {
2689
3267
  type: "table";
2690
3268
  columns: {
2691
3269
  content: {
2692
3270
  type: "currency";
2693
3271
  attributes?: {
3272
+ min: number;
3273
+ step: number;
3274
+ denomination: string;
2694
3275
  label?: string | undefined;
2695
3276
  help?: string | undefined;
2696
3277
  labelTranslationKey?: string | undefined;
2697
3278
  max?: number | undefined;
2698
- min?: number | undefined;
2699
- step?: number | undefined;
2700
- denomination?: string | undefined;
2701
3279
  } | undefined;
2702
3280
  meta?: {
2703
3281
  schemaVersion: "1.0";
3282
+ title?: "Currency Field" | undefined;
3283
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
2704
3284
  } | undefined;
2705
3285
  } | {
2706
3286
  type: "number";
2707
3287
  attributes?: {
3288
+ min: number;
3289
+ step: number;
2708
3290
  label?: string | undefined;
2709
3291
  help?: string | undefined;
2710
3292
  labelTranslationKey?: string | undefined;
2711
3293
  max?: number | undefined;
2712
- min?: number | undefined;
2713
- step?: number | undefined;
2714
3294
  } | undefined;
2715
3295
  meta?: {
2716
3296
  schemaVersion: "1.0";
3297
+ title?: "Number Field" | undefined;
3298
+ usageDescription?: "For questions that require a single numeric value." | undefined;
2717
3299
  } | undefined;
2718
3300
  } | {
2719
3301
  type: "email";
2720
3302
  attributes?: {
3303
+ maxLength: number;
3304
+ multiple: boolean;
2721
3305
  label?: string | undefined;
2722
3306
  help?: string | undefined;
2723
3307
  labelTranslationKey?: string | undefined;
2724
- maxLength?: number | undefined;
2725
3308
  minLength?: number | undefined;
2726
3309
  pattern?: string | undefined;
2727
- multiple?: boolean | undefined;
2728
3310
  } | undefined;
2729
3311
  meta?: {
2730
3312
  schemaVersion: "1.0";
3313
+ title?: "Email Field" | undefined;
3314
+ usageDescription?: "For questions that require require email address(es)." | undefined;
2731
3315
  } | undefined;
2732
3316
  } | {
2733
3317
  type: "textArea";
2734
- meta: {
2735
- schemaVersion: "1.0";
2736
- asRichText?: boolean | undefined;
2737
- };
2738
3318
  attributes?: {
3319
+ cols: number;
3320
+ rows: number;
3321
+ asRichText: boolean;
2739
3322
  label?: string | undefined;
2740
3323
  help?: string | undefined;
2741
3324
  labelTranslationKey?: string | undefined;
2742
3325
  maxLength?: number | undefined;
2743
3326
  minLength?: number | undefined;
2744
- cols?: number | undefined;
2745
- rows?: number | undefined;
3327
+ } | undefined;
3328
+ meta?: {
3329
+ schemaVersion: "1.0";
3330
+ title?: "Text Area" | undefined;
3331
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
2746
3332
  } | undefined;
2747
3333
  } | {
2748
3334
  type: "text";
2749
3335
  attributes?: {
3336
+ maxLength: number;
2750
3337
  label?: string | undefined;
2751
3338
  help?: string | undefined;
2752
3339
  labelTranslationKey?: string | undefined;
2753
- maxLength?: number | undefined;
2754
3340
  minLength?: number | undefined;
2755
3341
  pattern?: string | undefined;
2756
3342
  } | undefined;
2757
3343
  meta?: {
2758
3344
  schemaVersion: "1.0";
3345
+ title?: "Text Field" | undefined;
3346
+ usageDescription?: "For questions that require short, simple answers." | undefined;
2759
3347
  } | undefined;
2760
3348
  } | {
2761
3349
  type: "url";
2762
3350
  attributes?: {
3351
+ maxLength: number;
2763
3352
  label?: string | undefined;
2764
3353
  help?: string | undefined;
2765
3354
  labelTranslationKey?: string | undefined;
2766
- maxLength?: number | undefined;
2767
3355
  minLength?: number | undefined;
2768
3356
  pattern?: string | undefined;
2769
3357
  } | undefined;
2770
3358
  meta?: {
2771
3359
  schemaVersion: "1.0";
3360
+ title?: "URL Field" | undefined;
3361
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
2772
3362
  } | undefined;
2773
3363
  } | {
2774
3364
  type: "date";
2775
3365
  attributes?: {
3366
+ step: number;
2776
3367
  label?: string | undefined;
2777
3368
  help?: string | undefined;
2778
3369
  labelTranslationKey?: string | undefined;
2779
3370
  max?: string | undefined;
2780
3371
  min?: string | undefined;
2781
- step?: number | undefined;
2782
3372
  } | undefined;
2783
3373
  meta?: {
2784
3374
  schemaVersion: "1.0";
3375
+ title?: "Date Field" | undefined;
3376
+ usageDescription?: "For questions that require a date." | undefined;
2785
3377
  } | undefined;
2786
3378
  } | {
2787
3379
  type: "dateRange";
2788
3380
  columns: {
2789
- start?: {
3381
+ start: {
3382
+ step: number;
2790
3383
  label?: string | undefined;
2791
3384
  help?: string | undefined;
2792
3385
  labelTranslationKey?: string | undefined;
2793
3386
  max?: string | undefined;
2794
3387
  min?: string | undefined;
2795
- step?: number | undefined;
2796
- } | undefined;
2797
- end?: {
3388
+ };
3389
+ end: {
3390
+ step: number;
2798
3391
  label?: string | undefined;
2799
3392
  help?: string | undefined;
2800
3393
  labelTranslationKey?: string | undefined;
2801
3394
  max?: string | undefined;
2802
3395
  min?: string | undefined;
2803
- step?: number | undefined;
2804
- } | undefined;
3396
+ };
2805
3397
  };
2806
3398
  attributes?: {
2807
3399
  label?: string | undefined;
@@ -2810,23 +3402,27 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2810
3402
  } | undefined;
2811
3403
  meta?: {
2812
3404
  schemaVersion: "1.0";
3405
+ title?: "Date Range" | undefined;
3406
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
2813
3407
  } | undefined;
2814
3408
  } | {
2815
3409
  type: "boolean";
2816
- attributes: {
3410
+ attributes?: {
3411
+ checked: boolean;
2817
3412
  label?: string | undefined;
2818
3413
  help?: string | undefined;
2819
3414
  labelTranslationKey?: string | undefined;
2820
- checked?: boolean | undefined;
2821
- };
3415
+ } | undefined;
2822
3416
  meta?: {
2823
3417
  schemaVersion: "1.0";
3418
+ title?: "Yes/No Field" | undefined;
3419
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
2824
3420
  } | undefined;
2825
3421
  } | {
2826
3422
  options: {
2827
3423
  value: string;
2828
3424
  label: string;
2829
- checked?: boolean | undefined;
3425
+ checked: boolean;
2830
3426
  }[];
2831
3427
  type: "checkBoxes";
2832
3428
  attributes?: {
@@ -2836,12 +3432,14 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2836
3432
  } | undefined;
2837
3433
  meta?: {
2838
3434
  schemaVersion: "1.0";
3435
+ title?: "Check Boxes" | undefined;
3436
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
2839
3437
  } | undefined;
2840
3438
  } | {
2841
3439
  options: {
2842
3440
  value: string;
2843
3441
  label: string;
2844
- selected?: boolean | undefined;
3442
+ selected: boolean;
2845
3443
  }[];
2846
3444
  type: "radioButtons";
2847
3445
  attributes?: {
@@ -2851,22 +3449,26 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2851
3449
  } | undefined;
2852
3450
  meta?: {
2853
3451
  schemaVersion: "1.0";
3452
+ title?: "Radio Buttons" | undefined;
3453
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
2854
3454
  } | undefined;
2855
3455
  } | {
2856
3456
  options: {
2857
3457
  value: string;
2858
3458
  label: string;
2859
- selected?: boolean | undefined;
3459
+ selected: boolean;
2860
3460
  }[];
2861
3461
  type: "selectBox";
2862
- attributes?: {
3462
+ attributes: {
3463
+ multiple: boolean;
2863
3464
  label?: string | undefined;
2864
3465
  help?: string | undefined;
2865
3466
  labelTranslationKey?: string | undefined;
2866
- multiple?: boolean | undefined;
2867
- } | undefined;
3467
+ };
2868
3468
  meta?: {
2869
3469
  schemaVersion: "1.0";
3470
+ title?: "Select Box" | undefined;
3471
+ usageDescription?: "For questions where users select one option from a list." | undefined;
2870
3472
  } | undefined;
2871
3473
  } | {
2872
3474
  type: "filteredSearch";
@@ -2896,50 +3498,57 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2896
3498
  } | undefined;
2897
3499
  meta?: {
2898
3500
  schemaVersion: "1.0";
3501
+ title?: "Not yet implemented" | undefined;
3502
+ usageDescription?: string | undefined;
2899
3503
  } | undefined;
2900
3504
  } | {
2901
- type: "typeaheadSearch";
3505
+ type: "affiliationSearch";
3506
+ meta: {
3507
+ schemaVersion: "1.0";
3508
+ title?: "Affiliation Search" | undefined;
3509
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
3510
+ };
2902
3511
  graphQL: {
2903
3512
  displayFields: {
2904
3513
  label: string;
2905
- propertyName: string;
3514
+ propertyName: "displayName";
2906
3515
  labelTranslationKey?: string | undefined;
2907
3516
  }[];
2908
- responseField: string;
2909
- localQueryId?: string | undefined;
2910
- query?: string | undefined;
2911
- variables?: {
3517
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
3518
+ responseField: "affiliations.items";
3519
+ variables: {
2912
3520
  type: string;
2913
- name: string;
2914
- label?: string | undefined;
3521
+ label: string;
3522
+ minLength: 3;
3523
+ name: "name";
2915
3524
  labelTranslationKey?: string | undefined;
2916
- minLength?: number | undefined;
2917
- defaultValue?: string | undefined;
2918
- }[] | undefined;
3525
+ }[];
3526
+ answerField: "uri";
3527
+ localQueryId?: string | undefined;
3528
+ queryId?: string | undefined;
2919
3529
  };
2920
3530
  attributes?: {
2921
3531
  label?: string | undefined;
2922
3532
  help?: string | undefined;
2923
3533
  labelTranslationKey?: string | undefined;
2924
3534
  } | undefined;
2925
- meta?: {
2926
- schemaVersion: "1.0";
2927
- } | undefined;
2928
3535
  };
2929
3536
  heading?: string | undefined;
2930
3537
  }[];
2931
3538
  attributes?: {
3539
+ canAddRows: boolean;
3540
+ canRemoveRows: boolean;
3541
+ initialRows: number;
2932
3542
  label?: string | undefined;
2933
3543
  help?: string | undefined;
2934
3544
  labelTranslationKey?: string | undefined;
2935
- canAddRows?: boolean | undefined;
2936
- canRemoveRows?: boolean | undefined;
2937
- initialRows?: number | undefined;
2938
3545
  maxRows?: number | undefined;
2939
3546
  minRows?: number | undefined;
2940
3547
  } | undefined;
2941
3548
  meta?: {
2942
3549
  schemaVersion: "1.0";
3550
+ title?: "Table" | undefined;
3551
+ usageDescription?: "For questions that require a tabular format." | undefined;
2943
3552
  } | undefined;
2944
3553
  }, {
2945
3554
  type: "table";
@@ -2957,6 +3566,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2957
3566
  } | undefined;
2958
3567
  meta?: {
2959
3568
  schemaVersion: "1.0";
3569
+ title?: "Currency Field" | undefined;
3570
+ usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
2960
3571
  } | undefined;
2961
3572
  } | {
2962
3573
  type: "number";
@@ -2970,6 +3581,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2970
3581
  } | undefined;
2971
3582
  meta?: {
2972
3583
  schemaVersion: "1.0";
3584
+ title?: "Number Field" | undefined;
3585
+ usageDescription?: "For questions that require a single numeric value." | undefined;
2973
3586
  } | undefined;
2974
3587
  } | {
2975
3588
  type: "email";
@@ -2984,13 +3597,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2984
3597
  } | undefined;
2985
3598
  meta?: {
2986
3599
  schemaVersion: "1.0";
3600
+ title?: "Email Field" | undefined;
3601
+ usageDescription?: "For questions that require require email address(es)." | undefined;
2987
3602
  } | undefined;
2988
3603
  } | {
2989
3604
  type: "textArea";
2990
- meta: {
2991
- schemaVersion: "1.0";
2992
- asRichText?: boolean | undefined;
2993
- };
2994
3605
  attributes?: {
2995
3606
  label?: string | undefined;
2996
3607
  help?: string | undefined;
@@ -2999,6 +3610,12 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2999
3610
  minLength?: number | undefined;
3000
3611
  cols?: number | undefined;
3001
3612
  rows?: number | undefined;
3613
+ asRichText?: boolean | undefined;
3614
+ } | undefined;
3615
+ meta?: {
3616
+ schemaVersion: "1.0";
3617
+ title?: "Text Area" | undefined;
3618
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
3002
3619
  } | undefined;
3003
3620
  } | {
3004
3621
  type: "text";
@@ -3012,6 +3629,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3012
3629
  } | undefined;
3013
3630
  meta?: {
3014
3631
  schemaVersion: "1.0";
3632
+ title?: "Text Field" | undefined;
3633
+ usageDescription?: "For questions that require short, simple answers." | undefined;
3015
3634
  } | undefined;
3016
3635
  } | {
3017
3636
  type: "url";
@@ -3025,6 +3644,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3025
3644
  } | undefined;
3026
3645
  meta?: {
3027
3646
  schemaVersion: "1.0";
3647
+ title?: "URL Field" | undefined;
3648
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
3028
3649
  } | undefined;
3029
3650
  } | {
3030
3651
  type: "date";
@@ -3038,26 +3659,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3038
3659
  } | undefined;
3039
3660
  meta?: {
3040
3661
  schemaVersion: "1.0";
3662
+ title?: "Date Field" | undefined;
3663
+ usageDescription?: "For questions that require a date." | undefined;
3041
3664
  } | undefined;
3042
3665
  } | {
3043
3666
  type: "dateRange";
3044
3667
  columns: {
3045
- start?: {
3668
+ start: {
3046
3669
  label?: string | undefined;
3047
3670
  help?: string | undefined;
3048
3671
  labelTranslationKey?: string | undefined;
3049
3672
  max?: string | undefined;
3050
3673
  min?: string | undefined;
3051
3674
  step?: number | undefined;
3052
- } | undefined;
3053
- end?: {
3675
+ };
3676
+ end: {
3054
3677
  label?: string | undefined;
3055
3678
  help?: string | undefined;
3056
3679
  labelTranslationKey?: string | undefined;
3057
3680
  max?: string | undefined;
3058
3681
  min?: string | undefined;
3059
3682
  step?: number | undefined;
3060
- } | undefined;
3683
+ };
3061
3684
  };
3062
3685
  attributes?: {
3063
3686
  label?: string | undefined;
@@ -3066,22 +3689,26 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3066
3689
  } | undefined;
3067
3690
  meta?: {
3068
3691
  schemaVersion: "1.0";
3692
+ title?: "Date Range" | undefined;
3693
+ usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
3069
3694
  } | undefined;
3070
3695
  } | {
3071
3696
  type: "boolean";
3072
- attributes: {
3697
+ attributes?: {
3073
3698
  label?: string | undefined;
3074
3699
  help?: string | undefined;
3075
3700
  labelTranslationKey?: string | undefined;
3076
3701
  checked?: boolean | undefined;
3077
- };
3702
+ } | undefined;
3078
3703
  meta?: {
3079
3704
  schemaVersion: "1.0";
3705
+ title?: "Yes/No Field" | undefined;
3706
+ usageDescription?: "For questions that require a simple Yes/No response." | undefined;
3080
3707
  } | undefined;
3081
3708
  } | {
3082
3709
  options: {
3083
- value: string;
3084
- label: string;
3710
+ value?: string | undefined;
3711
+ label?: string | undefined;
3085
3712
  checked?: boolean | undefined;
3086
3713
  }[];
3087
3714
  type: "checkBoxes";
@@ -3092,11 +3719,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3092
3719
  } | undefined;
3093
3720
  meta?: {
3094
3721
  schemaVersion: "1.0";
3722
+ title?: "Check Boxes" | undefined;
3723
+ usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
3095
3724
  } | undefined;
3096
3725
  } | {
3097
3726
  options: {
3098
- value: string;
3099
- label: string;
3727
+ value?: string | undefined;
3728
+ label?: string | undefined;
3100
3729
  selected?: boolean | undefined;
3101
3730
  }[];
3102
3731
  type: "radioButtons";
@@ -3107,22 +3736,26 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3107
3736
  } | undefined;
3108
3737
  meta?: {
3109
3738
  schemaVersion: "1.0";
3739
+ title?: "Radio Buttons" | undefined;
3740
+ usageDescription?: "For multiple choice questions where users select just one option." | undefined;
3110
3741
  } | undefined;
3111
3742
  } | {
3112
3743
  options: {
3113
- value: string;
3114
- label: string;
3744
+ value?: string | undefined;
3745
+ label?: string | undefined;
3115
3746
  selected?: boolean | undefined;
3116
3747
  }[];
3117
3748
  type: "selectBox";
3118
- attributes?: {
3749
+ attributes: {
3119
3750
  label?: string | undefined;
3120
3751
  help?: string | undefined;
3121
3752
  labelTranslationKey?: string | undefined;
3122
3753
  multiple?: boolean | undefined;
3123
- } | undefined;
3754
+ };
3124
3755
  meta?: {
3125
3756
  schemaVersion: "1.0";
3757
+ title?: "Select Box" | undefined;
3758
+ usageDescription?: "For questions where users select one option from a list." | undefined;
3126
3759
  } | undefined;
3127
3760
  } | {
3128
3761
  type: "filteredSearch";
@@ -3152,35 +3785,40 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3152
3785
  } | undefined;
3153
3786
  meta?: {
3154
3787
  schemaVersion: "1.0";
3788
+ title?: "Not yet implemented" | undefined;
3789
+ usageDescription?: string | undefined;
3155
3790
  } | undefined;
3156
3791
  } | {
3157
- type: "typeaheadSearch";
3792
+ type: "affiliationSearch";
3793
+ meta: {
3794
+ schemaVersion: "1.0";
3795
+ title?: "Affiliation Search" | undefined;
3796
+ usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
3797
+ };
3158
3798
  graphQL: {
3159
3799
  displayFields: {
3160
- label: string;
3161
- propertyName: string;
3800
+ propertyName: "displayName";
3801
+ label?: string | undefined;
3162
3802
  labelTranslationKey?: string | undefined;
3163
3803
  }[];
3164
- responseField: string;
3165
- localQueryId?: string | undefined;
3166
- query?: string | undefined;
3167
- variables?: {
3168
- type: string;
3169
- name: string;
3804
+ query: "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}";
3805
+ responseField: "affiliations.items";
3806
+ variables: {
3807
+ minLength: 3;
3808
+ name: "name";
3809
+ type?: string | undefined;
3170
3810
  label?: string | undefined;
3171
3811
  labelTranslationKey?: string | undefined;
3172
- minLength?: number | undefined;
3173
- defaultValue?: string | undefined;
3174
- }[] | undefined;
3812
+ }[];
3813
+ answerField: "uri";
3814
+ localQueryId?: string | undefined;
3815
+ queryId?: string | undefined;
3175
3816
  };
3176
3817
  attributes?: {
3177
3818
  label?: string | undefined;
3178
3819
  help?: string | undefined;
3179
3820
  labelTranslationKey?: string | undefined;
3180
3821
  } | undefined;
3181
- meta?: {
3182
- schemaVersion: "1.0";
3183
- } | undefined;
3184
3822
  };
3185
3823
  heading?: string | undefined;
3186
3824
  }[];
@@ -3196,6 +3834,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3196
3834
  } | undefined;
3197
3835
  meta?: {
3198
3836
  schemaVersion: "1.0";
3837
+ title?: "Table" | undefined;
3838
+ usageDescription?: "For questions that require a tabular format." | undefined;
3199
3839
  } | undefined;
3200
3840
  }>, z.ZodObject<{} & {
3201
3841
  type: z.ZodLiteral<"textArea">;
@@ -3204,18 +3844,20 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3204
3844
  help: z.ZodOptional<z.ZodString>;
3205
3845
  labelTranslationKey: z.ZodOptional<z.ZodString>;
3206
3846
  } & {
3207
- cols: z.ZodOptional<z.ZodNumber>;
3847
+ cols: z.ZodDefault<z.ZodNumber>;
3208
3848
  maxLength: z.ZodOptional<z.ZodNumber>;
3209
3849
  minLength: z.ZodOptional<z.ZodNumber>;
3210
- rows: z.ZodOptional<z.ZodNumber>;
3850
+ rows: z.ZodDefault<z.ZodNumber>;
3851
+ asRichText: z.ZodDefault<z.ZodBoolean>;
3211
3852
  }, "strip", z.ZodTypeAny, {
3853
+ cols: number;
3854
+ rows: number;
3855
+ asRichText: boolean;
3212
3856
  label?: string | undefined;
3213
3857
  help?: string | undefined;
3214
3858
  labelTranslationKey?: string | undefined;
3215
3859
  maxLength?: number | undefined;
3216
3860
  minLength?: number | undefined;
3217
- cols?: number | undefined;
3218
- rows?: number | undefined;
3219
3861
  }, {
3220
3862
  label?: string | undefined;
3221
3863
  help?: string | undefined;
@@ -3224,39 +3866,41 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3224
3866
  minLength?: number | undefined;
3225
3867
  cols?: number | undefined;
3226
3868
  rows?: number | undefined;
3869
+ asRichText?: boolean | undefined;
3227
3870
  }>>;
3228
- meta: z.ZodObject<{
3871
+ meta: z.ZodOptional<z.ZodObject<{
3229
3872
  schemaVersion: z.ZodLiteral<"1.0">;
3230
3873
  } & {
3231
- asRichText: z.ZodOptional<z.ZodBoolean>;
3874
+ title: z.ZodOptional<z.ZodLiteral<"Text Area">>;
3875
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require longer answers, you can select formatting options too.">>;
3232
3876
  }, "strip", z.ZodTypeAny, {
3233
3877
  schemaVersion: "1.0";
3234
- asRichText?: boolean | undefined;
3878
+ title?: "Text Area" | undefined;
3879
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
3235
3880
  }, {
3236
3881
  schemaVersion: "1.0";
3237
- asRichText?: boolean | undefined;
3238
- }>;
3882
+ title?: "Text Area" | undefined;
3883
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
3884
+ }>>;
3239
3885
  }, "strip", z.ZodTypeAny, {
3240
3886
  type: "textArea";
3241
- meta: {
3242
- schemaVersion: "1.0";
3243
- asRichText?: boolean | undefined;
3244
- };
3245
3887
  attributes?: {
3888
+ cols: number;
3889
+ rows: number;
3890
+ asRichText: boolean;
3246
3891
  label?: string | undefined;
3247
3892
  help?: string | undefined;
3248
3893
  labelTranslationKey?: string | undefined;
3249
3894
  maxLength?: number | undefined;
3250
3895
  minLength?: number | undefined;
3251
- cols?: number | undefined;
3252
- rows?: number | undefined;
3896
+ } | undefined;
3897
+ meta?: {
3898
+ schemaVersion: "1.0";
3899
+ title?: "Text Area" | undefined;
3900
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
3253
3901
  } | undefined;
3254
3902
  }, {
3255
3903
  type: "textArea";
3256
- meta: {
3257
- schemaVersion: "1.0";
3258
- asRichText?: boolean | undefined;
3259
- };
3260
3904
  attributes?: {
3261
3905
  label?: string | undefined;
3262
3906
  help?: string | undefined;
@@ -3265,30 +3909,28 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3265
3909
  minLength?: number | undefined;
3266
3910
  cols?: number | undefined;
3267
3911
  rows?: number | undefined;
3912
+ asRichText?: boolean | undefined;
3268
3913
  } | undefined;
3269
- }>, z.ZodObject<{
3270
- meta: z.ZodOptional<z.ZodObject<{
3271
- schemaVersion: z.ZodLiteral<"1.0">;
3272
- }, "strip", z.ZodTypeAny, {
3273
- schemaVersion: "1.0";
3274
- }, {
3914
+ meta?: {
3275
3915
  schemaVersion: "1.0";
3276
- }>>;
3277
- } & {
3916
+ title?: "Text Area" | undefined;
3917
+ usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
3918
+ } | undefined;
3919
+ }>, z.ZodObject<{} & {
3278
3920
  type: z.ZodLiteral<"text">;
3279
3921
  attributes: z.ZodOptional<z.ZodObject<{
3280
3922
  label: z.ZodOptional<z.ZodString>;
3281
3923
  help: z.ZodOptional<z.ZodString>;
3282
3924
  labelTranslationKey: z.ZodOptional<z.ZodString>;
3283
3925
  } & {
3284
- maxLength: z.ZodOptional<z.ZodNumber>;
3926
+ maxLength: z.ZodDefault<z.ZodNumber>;
3285
3927
  minLength: z.ZodOptional<z.ZodNumber>;
3286
3928
  pattern: z.ZodOptional<z.ZodString>;
3287
3929
  }, "strip", z.ZodTypeAny, {
3930
+ maxLength: number;
3288
3931
  label?: string | undefined;
3289
3932
  help?: string | undefined;
3290
3933
  labelTranslationKey?: string | undefined;
3291
- maxLength?: number | undefined;
3292
3934
  minLength?: number | undefined;
3293
3935
  pattern?: string | undefined;
3294
3936
  }, {
@@ -3299,208 +3941,65 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3299
3941
  minLength?: number | undefined;
3300
3942
  pattern?: string | undefined;
3301
3943
  }>>;
3302
- }, "strip", z.ZodTypeAny, {
3303
- type: "text";
3304
- attributes?: {
3305
- label?: string | undefined;
3306
- help?: string | undefined;
3307
- labelTranslationKey?: string | undefined;
3308
- maxLength?: number | undefined;
3309
- minLength?: number | undefined;
3310
- pattern?: string | undefined;
3311
- } | undefined;
3312
- meta?: {
3313
- schemaVersion: "1.0";
3314
- } | undefined;
3315
- }, {
3316
- type: "text";
3317
- attributes?: {
3318
- label?: string | undefined;
3319
- help?: string | undefined;
3320
- labelTranslationKey?: string | undefined;
3321
- maxLength?: number | undefined;
3322
- minLength?: number | undefined;
3323
- pattern?: string | undefined;
3324
- } | undefined;
3325
- meta?: {
3326
- schemaVersion: "1.0";
3327
- } | undefined;
3328
- }>, z.ZodObject<{
3329
- attributes: z.ZodOptional<z.ZodObject<{
3330
- label: z.ZodOptional<z.ZodString>;
3331
- help: z.ZodOptional<z.ZodString>;
3332
- labelTranslationKey: z.ZodOptional<z.ZodString>;
3333
- }, "strip", z.ZodTypeAny, {
3334
- label?: string | undefined;
3335
- help?: string | undefined;
3336
- labelTranslationKey?: string | undefined;
3337
- }, {
3338
- label?: string | undefined;
3339
- help?: string | undefined;
3340
- labelTranslationKey?: string | undefined;
3341
- }>>;
3342
3944
  meta: z.ZodOptional<z.ZodObject<{
3343
3945
  schemaVersion: z.ZodLiteral<"1.0">;
3946
+ } & {
3947
+ title: z.ZodOptional<z.ZodLiteral<"Text Field">>;
3948
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require short, simple answers.">>;
3344
3949
  }, "strip", z.ZodTypeAny, {
3345
3950
  schemaVersion: "1.0";
3951
+ title?: "Text Field" | undefined;
3952
+ usageDescription?: "For questions that require short, simple answers." | undefined;
3346
3953
  }, {
3347
3954
  schemaVersion: "1.0";
3955
+ title?: "Text Field" | undefined;
3956
+ usageDescription?: "For questions that require short, simple answers." | undefined;
3348
3957
  }>>;
3349
- } & {
3350
- type: z.ZodLiteral<"typeaheadSearch">;
3351
- graphQL: z.ZodObject<{
3352
- displayFields: z.ZodArray<z.ZodObject<{
3353
- propertyName: z.ZodString;
3354
- label: z.ZodString;
3355
- labelTranslationKey: z.ZodOptional<z.ZodString>;
3356
- }, "strip", z.ZodTypeAny, {
3357
- label: string;
3358
- propertyName: string;
3359
- labelTranslationKey?: string | undefined;
3360
- }, {
3361
- label: string;
3362
- propertyName: string;
3363
- labelTranslationKey?: string | undefined;
3364
- }>, "many">;
3365
- localQueryId: z.ZodOptional<z.ZodString>;
3366
- query: z.ZodOptional<z.ZodString>;
3367
- responseField: z.ZodString;
3368
- variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
3369
- minLength: z.ZodOptional<z.ZodNumber>;
3370
- label: z.ZodOptional<z.ZodString>;
3371
- labelTranslationKey: z.ZodOptional<z.ZodString>;
3372
- name: z.ZodString;
3373
- type: z.ZodString;
3374
- defaultValue: z.ZodOptional<z.ZodString>;
3375
- }, "strip", z.ZodTypeAny, {
3376
- type: string;
3377
- name: string;
3378
- label?: string | undefined;
3379
- labelTranslationKey?: string | undefined;
3380
- minLength?: number | undefined;
3381
- defaultValue?: string | undefined;
3382
- }, {
3383
- type: string;
3384
- name: string;
3385
- label?: string | undefined;
3386
- labelTranslationKey?: string | undefined;
3387
- minLength?: number | undefined;
3388
- defaultValue?: string | undefined;
3389
- }>, "many">>;
3390
- }, "strip", z.ZodTypeAny, {
3391
- displayFields: {
3392
- label: string;
3393
- propertyName: string;
3394
- labelTranslationKey?: string | undefined;
3395
- }[];
3396
- responseField: string;
3397
- localQueryId?: string | undefined;
3398
- query?: string | undefined;
3399
- variables?: {
3400
- type: string;
3401
- name: string;
3402
- label?: string | undefined;
3403
- labelTranslationKey?: string | undefined;
3404
- minLength?: number | undefined;
3405
- defaultValue?: string | undefined;
3406
- }[] | undefined;
3407
- }, {
3408
- displayFields: {
3409
- label: string;
3410
- propertyName: string;
3411
- labelTranslationKey?: string | undefined;
3412
- }[];
3413
- responseField: string;
3414
- localQueryId?: string | undefined;
3415
- query?: string | undefined;
3416
- variables?: {
3417
- type: string;
3418
- name: string;
3419
- label?: string | undefined;
3420
- labelTranslationKey?: string | undefined;
3421
- minLength?: number | undefined;
3422
- defaultValue?: string | undefined;
3423
- }[] | undefined;
3424
- }>;
3425
3958
  }, "strip", z.ZodTypeAny, {
3426
- type: "typeaheadSearch";
3427
- graphQL: {
3428
- displayFields: {
3429
- label: string;
3430
- propertyName: string;
3431
- labelTranslationKey?: string | undefined;
3432
- }[];
3433
- responseField: string;
3434
- localQueryId?: string | undefined;
3435
- query?: string | undefined;
3436
- variables?: {
3437
- type: string;
3438
- name: string;
3439
- label?: string | undefined;
3440
- labelTranslationKey?: string | undefined;
3441
- minLength?: number | undefined;
3442
- defaultValue?: string | undefined;
3443
- }[] | undefined;
3444
- };
3959
+ type: "text";
3445
3960
  attributes?: {
3961
+ maxLength: number;
3446
3962
  label?: string | undefined;
3447
3963
  help?: string | undefined;
3448
3964
  labelTranslationKey?: string | undefined;
3965
+ minLength?: number | undefined;
3966
+ pattern?: string | undefined;
3449
3967
  } | undefined;
3450
3968
  meta?: {
3451
3969
  schemaVersion: "1.0";
3970
+ title?: "Text Field" | undefined;
3971
+ usageDescription?: "For questions that require short, simple answers." | undefined;
3452
3972
  } | undefined;
3453
3973
  }, {
3454
- type: "typeaheadSearch";
3455
- graphQL: {
3456
- displayFields: {
3457
- label: string;
3458
- propertyName: string;
3459
- labelTranslationKey?: string | undefined;
3460
- }[];
3461
- responseField: string;
3462
- localQueryId?: string | undefined;
3463
- query?: string | undefined;
3464
- variables?: {
3465
- type: string;
3466
- name: string;
3467
- label?: string | undefined;
3468
- labelTranslationKey?: string | undefined;
3469
- minLength?: number | undefined;
3470
- defaultValue?: string | undefined;
3471
- }[] | undefined;
3472
- };
3974
+ type: "text";
3473
3975
  attributes?: {
3474
3976
  label?: string | undefined;
3475
3977
  help?: string | undefined;
3476
3978
  labelTranslationKey?: string | undefined;
3979
+ maxLength?: number | undefined;
3980
+ minLength?: number | undefined;
3981
+ pattern?: string | undefined;
3477
3982
  } | undefined;
3478
3983
  meta?: {
3479
3984
  schemaVersion: "1.0";
3985
+ title?: "Text Field" | undefined;
3986
+ usageDescription?: "For questions that require short, simple answers." | undefined;
3480
3987
  } | undefined;
3481
- }>, z.ZodObject<{
3482
- meta: z.ZodOptional<z.ZodObject<{
3483
- schemaVersion: z.ZodLiteral<"1.0">;
3484
- }, "strip", z.ZodTypeAny, {
3485
- schemaVersion: "1.0";
3486
- }, {
3487
- schemaVersion: "1.0";
3488
- }>>;
3489
- } & {
3988
+ }>, z.ZodObject<{} & {
3490
3989
  type: z.ZodLiteral<"url">;
3491
3990
  attributes: z.ZodOptional<z.ZodObject<{
3492
3991
  label: z.ZodOptional<z.ZodString>;
3493
3992
  help: z.ZodOptional<z.ZodString>;
3494
3993
  labelTranslationKey: z.ZodOptional<z.ZodString>;
3495
3994
  } & {
3496
- maxLength: z.ZodOptional<z.ZodNumber>;
3995
+ maxLength: z.ZodDefault<z.ZodNumber>;
3497
3996
  minLength: z.ZodOptional<z.ZodNumber>;
3498
3997
  pattern: z.ZodOptional<z.ZodString>;
3499
3998
  }, "strip", z.ZodTypeAny, {
3999
+ maxLength: number;
3500
4000
  label?: string | undefined;
3501
4001
  help?: string | undefined;
3502
4002
  labelTranslationKey?: string | undefined;
3503
- maxLength?: number | undefined;
3504
4003
  minLength?: number | undefined;
3505
4004
  pattern?: string | undefined;
3506
4005
  }, {
@@ -3511,18 +4010,34 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3511
4010
  minLength?: number | undefined;
3512
4011
  pattern?: string | undefined;
3513
4012
  }>>;
4013
+ meta: z.ZodOptional<z.ZodObject<{
4014
+ schemaVersion: z.ZodLiteral<"1.0">;
4015
+ } & {
4016
+ title: z.ZodOptional<z.ZodLiteral<"URL Field">>;
4017
+ usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a website, DOI or other URL.">>;
4018
+ }, "strip", z.ZodTypeAny, {
4019
+ schemaVersion: "1.0";
4020
+ title?: "URL Field" | undefined;
4021
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
4022
+ }, {
4023
+ schemaVersion: "1.0";
4024
+ title?: "URL Field" | undefined;
4025
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
4026
+ }>>;
3514
4027
  }, "strip", z.ZodTypeAny, {
3515
4028
  type: "url";
3516
4029
  attributes?: {
4030
+ maxLength: number;
3517
4031
  label?: string | undefined;
3518
4032
  help?: string | undefined;
3519
4033
  labelTranslationKey?: string | undefined;
3520
- maxLength?: number | undefined;
3521
4034
  minLength?: number | undefined;
3522
4035
  pattern?: string | undefined;
3523
4036
  } | undefined;
3524
4037
  meta?: {
3525
4038
  schemaVersion: "1.0";
4039
+ title?: "URL Field" | undefined;
4040
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
3526
4041
  } | undefined;
3527
4042
  }, {
3528
4043
  type: "url";
@@ -3536,10 +4051,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3536
4051
  } | undefined;
3537
4052
  meta?: {
3538
4053
  schemaVersion: "1.0";
4054
+ title?: "URL Field" | undefined;
4055
+ usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
3539
4056
  } | undefined;
3540
4057
  }>]>;
3541
4058
  export declare const QuestionSchemaMap: Record<z.infer<typeof QuestionTypesEnum>, z.ZodTypeAny>;
3542
4059
  export interface QuestionTypeMap {
4060
+ affiliationSearch: AffiliationSearchQuestionType;
3543
4061
  boolean: BooleanQuestionType;
3544
4062
  checkBoxes: CheckboxesQuestionType;
3545
4063
  currency: CurrencyQuestionType;
@@ -3547,6 +4065,7 @@ export interface QuestionTypeMap {
3547
4065
  dateRange: DateRangeQuestionType;
3548
4066
  email: EmailQuestionType;
3549
4067
  filteredSearch: FilteredSearchQuestionType;
4068
+ multiselectBox: MultiselectBoxQuestionType;
3550
4069
  number: NumberQuestionType;
3551
4070
  numberRange: NumberRangeQuestionType;
3552
4071
  radioButtons: RadioButtonsQuestionType;
@@ -3554,7 +4073,6 @@ export interface QuestionTypeMap {
3554
4073
  table: TableQuestionType;
3555
4074
  text: TextQuestionType;
3556
4075
  textArea: TextAreaQuestionType;
3557
- typeaheadSearch: TypeaheadSearchQuestionType;
3558
4076
  url: URLQuestionType;
3559
4077
  }
3560
4078
  export type AnyQuestionType = z.infer<typeof AnyQuestionSchema>;