@dmptool/types 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/answers/__tests__/answers.spec.js +11 -5
- package/dist/answers/answer.d.ts +3 -3
- package/dist/answers/graphQLAnswers.d.ts +2 -2
- package/dist/answers/graphQLAnswers.js +2 -2
- package/dist/answers/index.d.ts +92 -55
- package/dist/answers/index.js +2 -2
- package/dist/answers/optionBasedAnswers.d.ts +27 -2
- package/dist/answers/optionBasedAnswers.js +5 -1
- package/dist/answers/tableAnswers.d.ts +268 -104
- package/dist/answers/tableAnswers.js +2 -1
- package/dist/questions/__tests__/graphQLQuestions.spec.js +7 -7
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +48 -1
- package/dist/questions/dateQuestions.d.ts +47 -16
- package/dist/questions/dateQuestions.js +25 -1
- package/dist/questions/graphQLQuestions.d.ts +59 -28
- package/dist/questions/graphQLQuestions.js +40 -3
- package/dist/questions/index.d.ts +1363 -646
- package/dist/questions/index.js +4 -2
- package/dist/questions/numberQuestions.d.ts +71 -25
- package/dist/questions/numberQuestions.js +36 -1
- package/dist/questions/optionBasedQuestions.d.ts +197 -44
- package/dist/questions/optionBasedQuestions.js +84 -6
- package/dist/questions/question.d.ts +51 -4
- package/dist/questions/question.js +14 -2
- package/dist/questions/tableQuestions.d.ts +1841 -932
- package/dist/questions/tableQuestions.js +13 -1
- package/dist/questions/textQuestions.d.ts +100 -40
- package/dist/questions/textQuestions.js +45 -7
- package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
- package/dist/schemas/affiliationSearchQuestion.schema.json +133 -0
- package/dist/schemas/anyAnswer.schema.json +41 -23
- package/dist/schemas/anyQuestion.schema.json +533 -149
- package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
- package/dist/schemas/anyTableColumnQuestion.schema.json +397 -119
- package/dist/schemas/booleanQuestion.schema.json +13 -2
- package/dist/schemas/checkboxesQuestion.schema.json +12 -0
- package/dist/schemas/currencyQuestion.schema.json +12 -0
- package/dist/schemas/dateQuestion.schema.json +12 -0
- package/dist/schemas/dateRangeQuestion.schema.json +12 -0
- package/dist/schemas/emailQuestion.schema.json +12 -0
- package/dist/schemas/filteredSearchQuestion.schema.json +10 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +90 -0
- package/dist/schemas/numberQuestion.schema.json +12 -0
- package/dist/schemas/numberRangeQuestion.schema.json +12 -0
- package/dist/schemas/radioButtonsQuestion.schema.json +12 -0
- package/dist/schemas/selectBoxAnswer.schema.json +1 -4
- package/dist/schemas/selectBoxQuestion.schema.json +18 -1
- package/dist/schemas/tableAnswer.schema.json +35 -14
- package/dist/schemas/tableQuestion.schema.json +419 -120
- package/dist/schemas/textAreaQuestion.schema.json +15 -4
- package/dist/schemas/textQuestion.schema.json +12 -0
- package/dist/schemas/urlQuestion.schema.json +12 -0
- 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,
|
|
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,16 +14,177 @@ 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
|
-
|
|
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
|
+
graphQL: z.ZodObject<{
|
|
31
|
+
displayFields: z.ZodArray<z.ZodObject<{
|
|
32
|
+
propertyName: z.ZodString;
|
|
33
|
+
label: z.ZodString;
|
|
34
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
label: string;
|
|
37
|
+
propertyName: string;
|
|
38
|
+
labelTranslationKey?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
label: string;
|
|
41
|
+
propertyName: string;
|
|
42
|
+
labelTranslationKey?: string | undefined;
|
|
43
|
+
}>, "many">;
|
|
44
|
+
localQueryId: z.ZodOptional<z.ZodString>;
|
|
45
|
+
query: z.ZodOptional<z.ZodString>;
|
|
46
|
+
responseField: z.ZodString;
|
|
47
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
label: z.ZodOptional<z.ZodString>;
|
|
50
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
type: z.ZodString;
|
|
53
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
type: string;
|
|
56
|
+
name: string;
|
|
57
|
+
label?: string | undefined;
|
|
58
|
+
labelTranslationKey?: string | undefined;
|
|
59
|
+
minLength?: number | undefined;
|
|
60
|
+
defaultValue?: string | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
type: string;
|
|
63
|
+
name: string;
|
|
64
|
+
label?: string | undefined;
|
|
65
|
+
labelTranslationKey?: string | undefined;
|
|
66
|
+
minLength?: number | undefined;
|
|
67
|
+
defaultValue?: string | undefined;
|
|
68
|
+
}>, "many">>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
displayFields: {
|
|
71
|
+
label: string;
|
|
72
|
+
propertyName: string;
|
|
73
|
+
labelTranslationKey?: string | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
responseField: string;
|
|
76
|
+
localQueryId?: string | undefined;
|
|
77
|
+
query?: string | undefined;
|
|
78
|
+
variables?: {
|
|
79
|
+
type: string;
|
|
80
|
+
name: string;
|
|
81
|
+
label?: string | undefined;
|
|
82
|
+
labelTranslationKey?: string | undefined;
|
|
83
|
+
minLength?: number | undefined;
|
|
84
|
+
defaultValue?: string | undefined;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
displayFields: {
|
|
88
|
+
label: string;
|
|
89
|
+
propertyName: string;
|
|
90
|
+
labelTranslationKey?: string | undefined;
|
|
91
|
+
}[];
|
|
92
|
+
responseField: string;
|
|
93
|
+
localQueryId?: string | undefined;
|
|
94
|
+
query?: string | undefined;
|
|
95
|
+
variables?: {
|
|
96
|
+
type: string;
|
|
97
|
+
name: string;
|
|
98
|
+
label?: string | undefined;
|
|
99
|
+
labelTranslationKey?: string | undefined;
|
|
100
|
+
minLength?: number | undefined;
|
|
101
|
+
defaultValue?: string | undefined;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
}>;
|
|
104
|
+
} & {
|
|
105
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
106
|
+
meta: z.ZodObject<{
|
|
18
107
|
schemaVersion: z.ZodLiteral<"1.0">;
|
|
108
|
+
} & {
|
|
109
|
+
title: z.ZodOptional<z.ZodLiteral<"Affiliation Search">>;
|
|
110
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require the user to select from a controlled list of institutions.">>;
|
|
111
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
19
112
|
}, "strip", z.ZodTypeAny, {
|
|
20
113
|
schemaVersion: "1.0";
|
|
114
|
+
title?: "Affiliation Search" | undefined;
|
|
115
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
116
|
+
defaultJSON?: string | 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
|
+
defaultJSON?: string | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
type: "affiliationSearch";
|
|
125
|
+
meta: {
|
|
126
|
+
schemaVersion: "1.0";
|
|
127
|
+
title?: "Affiliation Search" | undefined;
|
|
128
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
129
|
+
defaultJSON?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
graphQL: {
|
|
132
|
+
displayFields: {
|
|
133
|
+
label: string;
|
|
134
|
+
propertyName: string;
|
|
135
|
+
labelTranslationKey?: string | undefined;
|
|
136
|
+
}[];
|
|
137
|
+
responseField: string;
|
|
138
|
+
localQueryId?: string | undefined;
|
|
139
|
+
query?: string | undefined;
|
|
140
|
+
variables?: {
|
|
141
|
+
type: string;
|
|
142
|
+
name: string;
|
|
143
|
+
label?: string | undefined;
|
|
144
|
+
labelTranslationKey?: string | undefined;
|
|
145
|
+
minLength?: number | undefined;
|
|
146
|
+
defaultValue?: string | undefined;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
};
|
|
149
|
+
attributes?: {
|
|
150
|
+
label?: string | undefined;
|
|
151
|
+
help?: string | undefined;
|
|
152
|
+
labelTranslationKey?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
type: "affiliationSearch";
|
|
156
|
+
meta: {
|
|
157
|
+
schemaVersion: "1.0";
|
|
158
|
+
title?: "Affiliation Search" | undefined;
|
|
159
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
160
|
+
defaultJSON?: string | undefined;
|
|
161
|
+
};
|
|
162
|
+
graphQL: {
|
|
163
|
+
displayFields: {
|
|
164
|
+
label: string;
|
|
165
|
+
propertyName: string;
|
|
166
|
+
labelTranslationKey?: string | undefined;
|
|
167
|
+
}[];
|
|
168
|
+
responseField: string;
|
|
169
|
+
localQueryId?: string | undefined;
|
|
170
|
+
query?: string | undefined;
|
|
171
|
+
variables?: {
|
|
172
|
+
type: string;
|
|
173
|
+
name: string;
|
|
174
|
+
label?: string | undefined;
|
|
175
|
+
labelTranslationKey?: string | undefined;
|
|
176
|
+
minLength?: number | undefined;
|
|
177
|
+
defaultValue?: string | undefined;
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
};
|
|
180
|
+
attributes?: {
|
|
181
|
+
label?: string | undefined;
|
|
182
|
+
help?: string | undefined;
|
|
183
|
+
labelTranslationKey?: string | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
}>, z.ZodObject<{} & {
|
|
25
186
|
type: z.ZodLiteral<"boolean">;
|
|
26
|
-
attributes: z.ZodObject<{
|
|
187
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
27
188
|
label: z.ZodOptional<z.ZodString>;
|
|
28
189
|
help: z.ZodOptional<z.ZodString>;
|
|
29
190
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -39,28 +200,51 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
39
200
|
help?: string | undefined;
|
|
40
201
|
labelTranslationKey?: string | undefined;
|
|
41
202
|
checked?: boolean | undefined;
|
|
42
|
-
}
|
|
203
|
+
}>>;
|
|
204
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
206
|
+
} & {
|
|
207
|
+
title: z.ZodOptional<z.ZodLiteral<"Yes/No Field">>;
|
|
208
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a simple Yes/No response.">>;
|
|
209
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
schemaVersion: "1.0";
|
|
212
|
+
title?: "Yes/No Field" | undefined;
|
|
213
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
214
|
+
defaultJSON?: string | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
schemaVersion: "1.0";
|
|
217
|
+
title?: "Yes/No Field" | undefined;
|
|
218
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
219
|
+
defaultJSON?: string | undefined;
|
|
220
|
+
}>>;
|
|
43
221
|
}, "strip", z.ZodTypeAny, {
|
|
44
222
|
type: "boolean";
|
|
45
|
-
attributes
|
|
223
|
+
attributes?: {
|
|
46
224
|
label?: string | undefined;
|
|
47
225
|
help?: string | undefined;
|
|
48
226
|
labelTranslationKey?: string | undefined;
|
|
49
227
|
checked?: boolean | undefined;
|
|
50
|
-
};
|
|
228
|
+
} | undefined;
|
|
51
229
|
meta?: {
|
|
52
230
|
schemaVersion: "1.0";
|
|
231
|
+
title?: "Yes/No Field" | undefined;
|
|
232
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
233
|
+
defaultJSON?: string | undefined;
|
|
53
234
|
} | undefined;
|
|
54
235
|
}, {
|
|
55
236
|
type: "boolean";
|
|
56
|
-
attributes
|
|
237
|
+
attributes?: {
|
|
57
238
|
label?: string | undefined;
|
|
58
239
|
help?: string | undefined;
|
|
59
240
|
labelTranslationKey?: string | undefined;
|
|
60
241
|
checked?: boolean | undefined;
|
|
61
|
-
};
|
|
242
|
+
} | undefined;
|
|
62
243
|
meta?: {
|
|
63
244
|
schemaVersion: "1.0";
|
|
245
|
+
title?: "Yes/No Field" | undefined;
|
|
246
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
247
|
+
defaultJSON?: string | undefined;
|
|
64
248
|
} | undefined;
|
|
65
249
|
}>, z.ZodObject<{
|
|
66
250
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -76,13 +260,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
76
260
|
help?: string | undefined;
|
|
77
261
|
labelTranslationKey?: string | undefined;
|
|
78
262
|
}>>;
|
|
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
263
|
} & {
|
|
87
264
|
type: z.ZodLiteral<"checkBoxes">;
|
|
88
265
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -99,6 +276,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
99
276
|
label: string;
|
|
100
277
|
checked?: boolean | undefined;
|
|
101
278
|
}>, "many">;
|
|
279
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
281
|
+
} & {
|
|
282
|
+
title: z.ZodOptional<z.ZodLiteral<"Check Boxes">>;
|
|
283
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users can select multiple options.">>;
|
|
284
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
schemaVersion: "1.0";
|
|
287
|
+
title?: "Check Boxes" | undefined;
|
|
288
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
289
|
+
defaultJSON?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
schemaVersion: "1.0";
|
|
292
|
+
title?: "Check Boxes" | undefined;
|
|
293
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
294
|
+
defaultJSON?: string | undefined;
|
|
295
|
+
}>>;
|
|
102
296
|
}, "strip", z.ZodTypeAny, {
|
|
103
297
|
options: {
|
|
104
298
|
value: string;
|
|
@@ -113,6 +307,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
113
307
|
} | undefined;
|
|
114
308
|
meta?: {
|
|
115
309
|
schemaVersion: "1.0";
|
|
310
|
+
title?: "Check Boxes" | undefined;
|
|
311
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
312
|
+
defaultJSON?: string | undefined;
|
|
116
313
|
} | undefined;
|
|
117
314
|
}, {
|
|
118
315
|
options: {
|
|
@@ -128,16 +325,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
128
325
|
} | undefined;
|
|
129
326
|
meta?: {
|
|
130
327
|
schemaVersion: "1.0";
|
|
328
|
+
title?: "Check Boxes" | undefined;
|
|
329
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
330
|
+
defaultJSON?: string | undefined;
|
|
131
331
|
} | 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
|
-
} & {
|
|
332
|
+
}>, z.ZodObject<{} & {
|
|
141
333
|
type: z.ZodLiteral<"currency">;
|
|
142
334
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
143
335
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -166,6 +358,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
166
358
|
step?: number | undefined;
|
|
167
359
|
denomination?: string | undefined;
|
|
168
360
|
}>>;
|
|
361
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
363
|
+
} & {
|
|
364
|
+
title: z.ZodOptional<z.ZodLiteral<"Currency Field">>;
|
|
365
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a monetary amount (e.g. Cost or Budget).">>;
|
|
366
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
schemaVersion: "1.0";
|
|
369
|
+
title?: "Currency Field" | undefined;
|
|
370
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
371
|
+
defaultJSON?: string | undefined;
|
|
372
|
+
}, {
|
|
373
|
+
schemaVersion: "1.0";
|
|
374
|
+
title?: "Currency Field" | undefined;
|
|
375
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
376
|
+
defaultJSON?: string | undefined;
|
|
377
|
+
}>>;
|
|
169
378
|
}, "strip", z.ZodTypeAny, {
|
|
170
379
|
type: "currency";
|
|
171
380
|
attributes?: {
|
|
@@ -179,6 +388,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
179
388
|
} | undefined;
|
|
180
389
|
meta?: {
|
|
181
390
|
schemaVersion: "1.0";
|
|
391
|
+
title?: "Currency Field" | undefined;
|
|
392
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
393
|
+
defaultJSON?: string | undefined;
|
|
182
394
|
} | undefined;
|
|
183
395
|
}, {
|
|
184
396
|
type: "currency";
|
|
@@ -193,16 +405,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
193
405
|
} | undefined;
|
|
194
406
|
meta?: {
|
|
195
407
|
schemaVersion: "1.0";
|
|
408
|
+
title?: "Currency Field" | undefined;
|
|
409
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
410
|
+
defaultJSON?: string | undefined;
|
|
196
411
|
} | 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
|
-
} & {
|
|
412
|
+
}>, z.ZodObject<{} & {
|
|
206
413
|
type: z.ZodLiteral<"date">;
|
|
207
414
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
208
415
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -227,6 +434,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
227
434
|
min?: string | undefined;
|
|
228
435
|
step?: number | undefined;
|
|
229
436
|
}>>;
|
|
437
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
438
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
439
|
+
} & {
|
|
440
|
+
title: z.ZodOptional<z.ZodLiteral<"Date Field">>;
|
|
441
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date.">>;
|
|
442
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
443
|
+
}, "strip", z.ZodTypeAny, {
|
|
444
|
+
schemaVersion: "1.0";
|
|
445
|
+
title?: "Date Field" | undefined;
|
|
446
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
447
|
+
defaultJSON?: string | undefined;
|
|
448
|
+
}, {
|
|
449
|
+
schemaVersion: "1.0";
|
|
450
|
+
title?: "Date Field" | undefined;
|
|
451
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
452
|
+
defaultJSON?: string | undefined;
|
|
453
|
+
}>>;
|
|
230
454
|
}, "strip", z.ZodTypeAny, {
|
|
231
455
|
type: "date";
|
|
232
456
|
attributes?: {
|
|
@@ -239,6 +463,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
239
463
|
} | undefined;
|
|
240
464
|
meta?: {
|
|
241
465
|
schemaVersion: "1.0";
|
|
466
|
+
title?: "Date Field" | undefined;
|
|
467
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
468
|
+
defaultJSON?: string | undefined;
|
|
242
469
|
} | undefined;
|
|
243
470
|
}, {
|
|
244
471
|
type: "date";
|
|
@@ -252,6 +479,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
252
479
|
} | undefined;
|
|
253
480
|
meta?: {
|
|
254
481
|
schemaVersion: "1.0";
|
|
482
|
+
title?: "Date Field" | undefined;
|
|
483
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
484
|
+
defaultJSON?: string | undefined;
|
|
255
485
|
} | undefined;
|
|
256
486
|
}>, z.ZodObject<{
|
|
257
487
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -267,13 +497,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
267
497
|
help?: string | undefined;
|
|
268
498
|
labelTranslationKey?: string | undefined;
|
|
269
499
|
}>>;
|
|
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
500
|
} & {
|
|
278
501
|
type: z.ZodLiteral<"dateRange">;
|
|
279
502
|
columns: z.ZodObject<{
|
|
@@ -358,6 +581,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
358
581
|
step?: number | undefined;
|
|
359
582
|
} | undefined;
|
|
360
583
|
}>;
|
|
584
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
585
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
586
|
+
} & {
|
|
587
|
+
title: z.ZodOptional<z.ZodLiteral<"Date Range">>;
|
|
588
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date range (e.g. From/To, Start/End)">>;
|
|
589
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
schemaVersion: "1.0";
|
|
592
|
+
title?: "Date Range" | undefined;
|
|
593
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
594
|
+
defaultJSON?: string | undefined;
|
|
595
|
+
}, {
|
|
596
|
+
schemaVersion: "1.0";
|
|
597
|
+
title?: "Date Range" | undefined;
|
|
598
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
599
|
+
defaultJSON?: string | undefined;
|
|
600
|
+
}>>;
|
|
361
601
|
}, "strip", z.ZodTypeAny, {
|
|
362
602
|
type: "dateRange";
|
|
363
603
|
columns: {
|
|
@@ -385,6 +625,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
385
625
|
} | undefined;
|
|
386
626
|
meta?: {
|
|
387
627
|
schemaVersion: "1.0";
|
|
628
|
+
title?: "Date Range" | undefined;
|
|
629
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
630
|
+
defaultJSON?: string | undefined;
|
|
388
631
|
} | undefined;
|
|
389
632
|
}, {
|
|
390
633
|
type: "dateRange";
|
|
@@ -413,16 +656,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
413
656
|
} | undefined;
|
|
414
657
|
meta?: {
|
|
415
658
|
schemaVersion: "1.0";
|
|
659
|
+
title?: "Date Range" | undefined;
|
|
660
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
661
|
+
defaultJSON?: string | undefined;
|
|
416
662
|
} | 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
|
-
} & {
|
|
663
|
+
}>, z.ZodObject<{} & {
|
|
426
664
|
type: z.ZodLiteral<"email">;
|
|
427
665
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
428
666
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -451,6 +689,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
451
689
|
pattern?: string | undefined;
|
|
452
690
|
multiple?: boolean | undefined;
|
|
453
691
|
}>>;
|
|
692
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
693
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
694
|
+
} & {
|
|
695
|
+
title: z.ZodOptional<z.ZodLiteral<"Email Field">>;
|
|
696
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require require email address(es).">>;
|
|
697
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
schemaVersion: "1.0";
|
|
700
|
+
title?: "Email Field" | undefined;
|
|
701
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
702
|
+
defaultJSON?: string | undefined;
|
|
703
|
+
}, {
|
|
704
|
+
schemaVersion: "1.0";
|
|
705
|
+
title?: "Email Field" | undefined;
|
|
706
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
707
|
+
defaultJSON?: string | undefined;
|
|
708
|
+
}>>;
|
|
454
709
|
}, "strip", z.ZodTypeAny, {
|
|
455
710
|
type: "email";
|
|
456
711
|
attributes?: {
|
|
@@ -464,6 +719,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
464
719
|
} | undefined;
|
|
465
720
|
meta?: {
|
|
466
721
|
schemaVersion: "1.0";
|
|
722
|
+
title?: "Email Field" | undefined;
|
|
723
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
724
|
+
defaultJSON?: string | undefined;
|
|
467
725
|
} | undefined;
|
|
468
726
|
}, {
|
|
469
727
|
type: "email";
|
|
@@ -478,16 +736,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
478
736
|
} | undefined;
|
|
479
737
|
meta?: {
|
|
480
738
|
schemaVersion: "1.0";
|
|
739
|
+
title?: "Email Field" | undefined;
|
|
740
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
741
|
+
defaultJSON?: string | undefined;
|
|
481
742
|
} | 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
|
-
} & {
|
|
743
|
+
}>, z.ZodObject<{} & {
|
|
491
744
|
type: z.ZodLiteral<"filteredSearch">;
|
|
492
745
|
graphQL: z.ZodObject<{
|
|
493
746
|
displayFields: z.ZodArray<z.ZodObject<{
|
|
@@ -580,6 +833,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
580
833
|
labelTranslationKey?: string | undefined;
|
|
581
834
|
multiple?: boolean | undefined;
|
|
582
835
|
}>>;
|
|
836
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
837
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
838
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
839
|
+
defaultJSON: z.ZodOptional<z.ZodString>;
|
|
840
|
+
} & {
|
|
841
|
+
title: z.ZodOptional<z.ZodLiteral<"Not yet implemented">>;
|
|
842
|
+
}, "strip", z.ZodTypeAny, {
|
|
843
|
+
schemaVersion: "1.0";
|
|
844
|
+
title?: "Not yet implemented" | undefined;
|
|
845
|
+
usageDescription?: string | undefined;
|
|
846
|
+
defaultJSON?: string | undefined;
|
|
847
|
+
}, {
|
|
848
|
+
schemaVersion: "1.0";
|
|
849
|
+
title?: "Not yet implemented" | undefined;
|
|
850
|
+
usageDescription?: string | undefined;
|
|
851
|
+
defaultJSON?: string | undefined;
|
|
852
|
+
}>>;
|
|
583
853
|
}, "strip", z.ZodTypeAny, {
|
|
584
854
|
type: "filteredSearch";
|
|
585
855
|
graphQL: {
|
|
@@ -608,6 +878,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
608
878
|
} | undefined;
|
|
609
879
|
meta?: {
|
|
610
880
|
schemaVersion: "1.0";
|
|
881
|
+
title?: "Not yet implemented" | undefined;
|
|
882
|
+
usageDescription?: string | undefined;
|
|
883
|
+
defaultJSON?: string | undefined;
|
|
611
884
|
} | undefined;
|
|
612
885
|
}, {
|
|
613
886
|
type: "filteredSearch";
|
|
@@ -637,16 +910,100 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
637
910
|
} | undefined;
|
|
638
911
|
meta?: {
|
|
639
912
|
schemaVersion: "1.0";
|
|
913
|
+
title?: "Not yet implemented" | undefined;
|
|
914
|
+
usageDescription?: string | undefined;
|
|
915
|
+
defaultJSON?: string | undefined;
|
|
640
916
|
} | undefined;
|
|
641
917
|
}>, z.ZodObject<{
|
|
918
|
+
options: z.ZodArray<z.ZodObject<{
|
|
919
|
+
label: z.ZodString;
|
|
920
|
+
value: z.ZodString;
|
|
921
|
+
} & {
|
|
922
|
+
selected: z.ZodOptional<z.ZodBoolean>;
|
|
923
|
+
}, "strip", z.ZodTypeAny, {
|
|
924
|
+
value: string;
|
|
925
|
+
label: string;
|
|
926
|
+
selected?: boolean | undefined;
|
|
927
|
+
}, {
|
|
928
|
+
value: string;
|
|
929
|
+
label: string;
|
|
930
|
+
selected?: boolean | undefined;
|
|
931
|
+
}>, "many">;
|
|
932
|
+
} & {
|
|
933
|
+
type: z.ZodLiteral<"multiselectBox">;
|
|
934
|
+
attributes: z.ZodObject<{
|
|
935
|
+
label: z.ZodOptional<z.ZodString>;
|
|
936
|
+
help: z.ZodOptional<z.ZodString>;
|
|
937
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
938
|
+
} & {
|
|
939
|
+
multiple: z.ZodLiteral<true>;
|
|
940
|
+
}, "strip", z.ZodTypeAny, {
|
|
941
|
+
multiple: true;
|
|
942
|
+
label?: string | undefined;
|
|
943
|
+
help?: string | undefined;
|
|
944
|
+
labelTranslationKey?: string | undefined;
|
|
945
|
+
}, {
|
|
946
|
+
multiple: true;
|
|
947
|
+
label?: string | undefined;
|
|
948
|
+
help?: string | undefined;
|
|
949
|
+
labelTranslationKey?: string | undefined;
|
|
950
|
+
}>;
|
|
642
951
|
meta: z.ZodOptional<z.ZodObject<{
|
|
643
952
|
schemaVersion: z.ZodLiteral<"1.0">;
|
|
953
|
+
} & {
|
|
954
|
+
title: z.ZodOptional<z.ZodLiteral<"Multi-select Box">>;
|
|
955
|
+
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.">>;
|
|
956
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
644
957
|
}, "strip", z.ZodTypeAny, {
|
|
645
958
|
schemaVersion: "1.0";
|
|
959
|
+
title?: "Multi-select Box" | undefined;
|
|
960
|
+
usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
|
|
961
|
+
defaultJSON?: string | undefined;
|
|
646
962
|
}, {
|
|
647
963
|
schemaVersion: "1.0";
|
|
964
|
+
title?: "Multi-select Box" | undefined;
|
|
965
|
+
usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
|
|
966
|
+
defaultJSON?: string | undefined;
|
|
648
967
|
}>>;
|
|
649
|
-
}
|
|
968
|
+
}, "strip", z.ZodTypeAny, {
|
|
969
|
+
options: {
|
|
970
|
+
value: string;
|
|
971
|
+
label: string;
|
|
972
|
+
selected?: boolean | undefined;
|
|
973
|
+
}[];
|
|
974
|
+
type: "multiselectBox";
|
|
975
|
+
attributes: {
|
|
976
|
+
multiple: true;
|
|
977
|
+
label?: string | undefined;
|
|
978
|
+
help?: string | undefined;
|
|
979
|
+
labelTranslationKey?: string | undefined;
|
|
980
|
+
};
|
|
981
|
+
meta?: {
|
|
982
|
+
schemaVersion: "1.0";
|
|
983
|
+
title?: "Multi-select Box" | undefined;
|
|
984
|
+
usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
|
|
985
|
+
defaultJSON?: string | undefined;
|
|
986
|
+
} | undefined;
|
|
987
|
+
}, {
|
|
988
|
+
options: {
|
|
989
|
+
value: string;
|
|
990
|
+
label: string;
|
|
991
|
+
selected?: boolean | undefined;
|
|
992
|
+
}[];
|
|
993
|
+
type: "multiselectBox";
|
|
994
|
+
attributes: {
|
|
995
|
+
multiple: true;
|
|
996
|
+
label?: string | undefined;
|
|
997
|
+
help?: string | undefined;
|
|
998
|
+
labelTranslationKey?: string | undefined;
|
|
999
|
+
};
|
|
1000
|
+
meta?: {
|
|
1001
|
+
schemaVersion: "1.0";
|
|
1002
|
+
title?: "Multi-select Box" | undefined;
|
|
1003
|
+
usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
|
|
1004
|
+
defaultJSON?: string | undefined;
|
|
1005
|
+
} | undefined;
|
|
1006
|
+
}>, z.ZodObject<{} & {
|
|
650
1007
|
type: z.ZodLiteral<"number">;
|
|
651
1008
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
652
1009
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -671,6 +1028,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
671
1028
|
min?: number | undefined;
|
|
672
1029
|
step?: number | undefined;
|
|
673
1030
|
}>>;
|
|
1031
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1032
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1033
|
+
} & {
|
|
1034
|
+
title: z.ZodOptional<z.ZodLiteral<"Number Field">>;
|
|
1035
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a single numeric value.">>;
|
|
1036
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1037
|
+
}, "strip", z.ZodTypeAny, {
|
|
1038
|
+
schemaVersion: "1.0";
|
|
1039
|
+
title?: "Number Field" | undefined;
|
|
1040
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
1041
|
+
defaultJSON?: string | undefined;
|
|
1042
|
+
}, {
|
|
1043
|
+
schemaVersion: "1.0";
|
|
1044
|
+
title?: "Number Field" | undefined;
|
|
1045
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
1046
|
+
defaultJSON?: string | undefined;
|
|
1047
|
+
}>>;
|
|
674
1048
|
}, "strip", z.ZodTypeAny, {
|
|
675
1049
|
type: "number";
|
|
676
1050
|
attributes?: {
|
|
@@ -683,6 +1057,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
683
1057
|
} | undefined;
|
|
684
1058
|
meta?: {
|
|
685
1059
|
schemaVersion: "1.0";
|
|
1060
|
+
title?: "Number Field" | undefined;
|
|
1061
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
1062
|
+
defaultJSON?: string | undefined;
|
|
686
1063
|
} | undefined;
|
|
687
1064
|
}, {
|
|
688
1065
|
type: "number";
|
|
@@ -696,6 +1073,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
696
1073
|
} | undefined;
|
|
697
1074
|
meta?: {
|
|
698
1075
|
schemaVersion: "1.0";
|
|
1076
|
+
title?: "Number Field" | undefined;
|
|
1077
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
1078
|
+
defaultJSON?: string | undefined;
|
|
699
1079
|
} | undefined;
|
|
700
1080
|
}>, z.ZodObject<{
|
|
701
1081
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -711,13 +1091,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
711
1091
|
help?: string | undefined;
|
|
712
1092
|
labelTranslationKey?: string | undefined;
|
|
713
1093
|
}>>;
|
|
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
1094
|
} & {
|
|
722
1095
|
type: z.ZodLiteral<"numberRange">;
|
|
723
1096
|
columns: z.ZodObject<{
|
|
@@ -802,6 +1175,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
802
1175
|
step?: number | undefined;
|
|
803
1176
|
} | undefined;
|
|
804
1177
|
}>;
|
|
1178
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1179
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1180
|
+
} & {
|
|
1181
|
+
title: z.ZodOptional<z.ZodLiteral<"Number Range">>;
|
|
1182
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a numerical range (e.g. From/To, Min/Max).">>;
|
|
1183
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1184
|
+
}, "strip", z.ZodTypeAny, {
|
|
1185
|
+
schemaVersion: "1.0";
|
|
1186
|
+
title?: "Number Range" | undefined;
|
|
1187
|
+
usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
|
|
1188
|
+
defaultJSON?: string | undefined;
|
|
1189
|
+
}, {
|
|
1190
|
+
schemaVersion: "1.0";
|
|
1191
|
+
title?: "Number Range" | undefined;
|
|
1192
|
+
usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
|
|
1193
|
+
defaultJSON?: string | undefined;
|
|
1194
|
+
}>>;
|
|
805
1195
|
}, "strip", z.ZodTypeAny, {
|
|
806
1196
|
type: "numberRange";
|
|
807
1197
|
columns: {
|
|
@@ -829,6 +1219,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
829
1219
|
} | undefined;
|
|
830
1220
|
meta?: {
|
|
831
1221
|
schemaVersion: "1.0";
|
|
1222
|
+
title?: "Number Range" | undefined;
|
|
1223
|
+
usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
|
|
1224
|
+
defaultJSON?: string | undefined;
|
|
832
1225
|
} | undefined;
|
|
833
1226
|
}, {
|
|
834
1227
|
type: "numberRange";
|
|
@@ -857,6 +1250,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
857
1250
|
} | undefined;
|
|
858
1251
|
meta?: {
|
|
859
1252
|
schemaVersion: "1.0";
|
|
1253
|
+
title?: "Number Range" | undefined;
|
|
1254
|
+
usageDescription?: "For questions that require a numerical range (e.g. From/To, Min/Max)." | undefined;
|
|
1255
|
+
defaultJSON?: string | undefined;
|
|
860
1256
|
} | undefined;
|
|
861
1257
|
}>, z.ZodObject<{
|
|
862
1258
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -872,13 +1268,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
872
1268
|
help?: string | undefined;
|
|
873
1269
|
labelTranslationKey?: string | undefined;
|
|
874
1270
|
}>>;
|
|
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
1271
|
} & {
|
|
883
1272
|
type: z.ZodLiteral<"radioButtons">;
|
|
884
1273
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -895,6 +1284,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
895
1284
|
label: string;
|
|
896
1285
|
selected?: boolean | undefined;
|
|
897
1286
|
}>, "many">;
|
|
1287
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1288
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1289
|
+
} & {
|
|
1290
|
+
title: z.ZodOptional<z.ZodLiteral<"Radio Buttons">>;
|
|
1291
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users select just one option.">>;
|
|
1292
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1293
|
+
}, "strip", z.ZodTypeAny, {
|
|
1294
|
+
schemaVersion: "1.0";
|
|
1295
|
+
title?: "Radio Buttons" | undefined;
|
|
1296
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
1297
|
+
defaultJSON?: string | undefined;
|
|
1298
|
+
}, {
|
|
1299
|
+
schemaVersion: "1.0";
|
|
1300
|
+
title?: "Radio Buttons" | undefined;
|
|
1301
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
1302
|
+
defaultJSON?: string | undefined;
|
|
1303
|
+
}>>;
|
|
898
1304
|
}, "strip", z.ZodTypeAny, {
|
|
899
1305
|
options: {
|
|
900
1306
|
value: string;
|
|
@@ -909,6 +1315,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
909
1315
|
} | undefined;
|
|
910
1316
|
meta?: {
|
|
911
1317
|
schemaVersion: "1.0";
|
|
1318
|
+
title?: "Radio Buttons" | undefined;
|
|
1319
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
1320
|
+
defaultJSON?: string | undefined;
|
|
912
1321
|
} | undefined;
|
|
913
1322
|
}, {
|
|
914
1323
|
options: {
|
|
@@ -924,16 +1333,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
924
1333
|
} | undefined;
|
|
925
1334
|
meta?: {
|
|
926
1335
|
schemaVersion: "1.0";
|
|
1336
|
+
title?: "Radio Buttons" | undefined;
|
|
1337
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
1338
|
+
defaultJSON?: string | undefined;
|
|
927
1339
|
} | 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
|
-
} & {
|
|
1340
|
+
}>, z.ZodObject<{} & {
|
|
937
1341
|
type: z.ZodLiteral<"selectBox">;
|
|
938
1342
|
options: z.ZodArray<z.ZodObject<{
|
|
939
1343
|
label: z.ZodString;
|
|
@@ -949,22 +1353,39 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
949
1353
|
label: string;
|
|
950
1354
|
selected?: boolean | undefined;
|
|
951
1355
|
}>, "many">;
|
|
952
|
-
attributes: z.
|
|
1356
|
+
attributes: z.ZodObject<{
|
|
953
1357
|
label: z.ZodOptional<z.ZodString>;
|
|
954
1358
|
help: z.ZodOptional<z.ZodString>;
|
|
955
1359
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
956
1360
|
} & {
|
|
957
|
-
multiple: z.
|
|
1361
|
+
multiple: z.ZodLiteral<false>;
|
|
958
1362
|
}, "strip", z.ZodTypeAny, {
|
|
1363
|
+
multiple: false;
|
|
959
1364
|
label?: string | undefined;
|
|
960
1365
|
help?: string | undefined;
|
|
961
1366
|
labelTranslationKey?: string | undefined;
|
|
962
|
-
multiple?: boolean | undefined;
|
|
963
1367
|
}, {
|
|
1368
|
+
multiple: false;
|
|
964
1369
|
label?: string | undefined;
|
|
965
1370
|
help?: string | undefined;
|
|
966
1371
|
labelTranslationKey?: string | undefined;
|
|
967
|
-
|
|
1372
|
+
}>;
|
|
1373
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1374
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1375
|
+
} & {
|
|
1376
|
+
title: z.ZodOptional<z.ZodLiteral<"Select Box">>;
|
|
1377
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions where users select one option from a list.">>;
|
|
1378
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1379
|
+
}, "strip", z.ZodTypeAny, {
|
|
1380
|
+
schemaVersion: "1.0";
|
|
1381
|
+
title?: "Select Box" | undefined;
|
|
1382
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
1383
|
+
defaultJSON?: string | undefined;
|
|
1384
|
+
}, {
|
|
1385
|
+
schemaVersion: "1.0";
|
|
1386
|
+
title?: "Select Box" | undefined;
|
|
1387
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
1388
|
+
defaultJSON?: string | undefined;
|
|
968
1389
|
}>>;
|
|
969
1390
|
}, "strip", z.ZodTypeAny, {
|
|
970
1391
|
options: {
|
|
@@ -973,14 +1394,17 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
973
1394
|
selected?: boolean | undefined;
|
|
974
1395
|
}[];
|
|
975
1396
|
type: "selectBox";
|
|
976
|
-
attributes
|
|
1397
|
+
attributes: {
|
|
1398
|
+
multiple: false;
|
|
977
1399
|
label?: string | undefined;
|
|
978
1400
|
help?: string | undefined;
|
|
979
1401
|
labelTranslationKey?: string | undefined;
|
|
980
|
-
|
|
981
|
-
} | undefined;
|
|
1402
|
+
};
|
|
982
1403
|
meta?: {
|
|
983
1404
|
schemaVersion: "1.0";
|
|
1405
|
+
title?: "Select Box" | undefined;
|
|
1406
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
1407
|
+
defaultJSON?: string | undefined;
|
|
984
1408
|
} | undefined;
|
|
985
1409
|
}, {
|
|
986
1410
|
options: {
|
|
@@ -989,38 +1413,194 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
989
1413
|
selected?: boolean | undefined;
|
|
990
1414
|
}[];
|
|
991
1415
|
type: "selectBox";
|
|
992
|
-
attributes
|
|
1416
|
+
attributes: {
|
|
1417
|
+
multiple: false;
|
|
993
1418
|
label?: string | undefined;
|
|
994
1419
|
help?: string | undefined;
|
|
995
1420
|
labelTranslationKey?: string | undefined;
|
|
996
|
-
|
|
997
|
-
} | undefined;
|
|
1421
|
+
};
|
|
998
1422
|
meta?: {
|
|
999
1423
|
schemaVersion: "1.0";
|
|
1424
|
+
title?: "Select Box" | undefined;
|
|
1425
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
1426
|
+
defaultJSON?: string | undefined;
|
|
1000
1427
|
} | 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
|
-
} & {
|
|
1428
|
+
}>, z.ZodObject<{} & {
|
|
1010
1429
|
type: z.ZodLiteral<"table">;
|
|
1011
1430
|
columns: z.ZodArray<z.ZodObject<{
|
|
1012
1431
|
heading: z.ZodOptional<z.ZodString>;
|
|
1013
1432
|
content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1014
|
-
|
|
1433
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
1434
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1435
|
+
help: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
}, "strip", z.ZodTypeAny, {
|
|
1438
|
+
label?: string | undefined;
|
|
1439
|
+
help?: string | undefined;
|
|
1440
|
+
labelTranslationKey?: string | undefined;
|
|
1441
|
+
}, {
|
|
1442
|
+
label?: string | undefined;
|
|
1443
|
+
help?: string | undefined;
|
|
1444
|
+
labelTranslationKey?: string | undefined;
|
|
1445
|
+
}>>;
|
|
1446
|
+
graphQL: z.ZodObject<{
|
|
1447
|
+
displayFields: z.ZodArray<z.ZodObject<{
|
|
1448
|
+
propertyName: z.ZodString;
|
|
1449
|
+
label: z.ZodString;
|
|
1450
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1451
|
+
}, "strip", z.ZodTypeAny, {
|
|
1452
|
+
label: string;
|
|
1453
|
+
propertyName: string;
|
|
1454
|
+
labelTranslationKey?: string | undefined;
|
|
1455
|
+
}, {
|
|
1456
|
+
label: string;
|
|
1457
|
+
propertyName: string;
|
|
1458
|
+
labelTranslationKey?: string | undefined;
|
|
1459
|
+
}>, "many">;
|
|
1460
|
+
localQueryId: z.ZodOptional<z.ZodString>;
|
|
1461
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1462
|
+
responseField: z.ZodString;
|
|
1463
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1464
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1465
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
name: z.ZodString;
|
|
1468
|
+
type: z.ZodString;
|
|
1469
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
}, "strip", z.ZodTypeAny, {
|
|
1471
|
+
type: string;
|
|
1472
|
+
name: string;
|
|
1473
|
+
label?: string | undefined;
|
|
1474
|
+
labelTranslationKey?: string | undefined;
|
|
1475
|
+
minLength?: number | undefined;
|
|
1476
|
+
defaultValue?: string | undefined;
|
|
1477
|
+
}, {
|
|
1478
|
+
type: string;
|
|
1479
|
+
name: string;
|
|
1480
|
+
label?: string | undefined;
|
|
1481
|
+
labelTranslationKey?: string | undefined;
|
|
1482
|
+
minLength?: number | undefined;
|
|
1483
|
+
defaultValue?: string | undefined;
|
|
1484
|
+
}>, "many">>;
|
|
1485
|
+
}, "strip", z.ZodTypeAny, {
|
|
1486
|
+
displayFields: {
|
|
1487
|
+
label: string;
|
|
1488
|
+
propertyName: string;
|
|
1489
|
+
labelTranslationKey?: string | undefined;
|
|
1490
|
+
}[];
|
|
1491
|
+
responseField: string;
|
|
1492
|
+
localQueryId?: string | undefined;
|
|
1493
|
+
query?: string | undefined;
|
|
1494
|
+
variables?: {
|
|
1495
|
+
type: string;
|
|
1496
|
+
name: string;
|
|
1497
|
+
label?: string | undefined;
|
|
1498
|
+
labelTranslationKey?: string | undefined;
|
|
1499
|
+
minLength?: number | undefined;
|
|
1500
|
+
defaultValue?: string | undefined;
|
|
1501
|
+
}[] | undefined;
|
|
1502
|
+
}, {
|
|
1503
|
+
displayFields: {
|
|
1504
|
+
label: string;
|
|
1505
|
+
propertyName: string;
|
|
1506
|
+
labelTranslationKey?: string | undefined;
|
|
1507
|
+
}[];
|
|
1508
|
+
responseField: string;
|
|
1509
|
+
localQueryId?: string | undefined;
|
|
1510
|
+
query?: string | undefined;
|
|
1511
|
+
variables?: {
|
|
1512
|
+
type: string;
|
|
1513
|
+
name: string;
|
|
1514
|
+
label?: string | undefined;
|
|
1515
|
+
labelTranslationKey?: string | undefined;
|
|
1516
|
+
minLength?: number | undefined;
|
|
1517
|
+
defaultValue?: string | undefined;
|
|
1518
|
+
}[] | undefined;
|
|
1519
|
+
}>;
|
|
1520
|
+
} & {
|
|
1521
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
1522
|
+
meta: z.ZodObject<{
|
|
1015
1523
|
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1524
|
+
} & {
|
|
1525
|
+
title: z.ZodOptional<z.ZodLiteral<"Affiliation Search">>;
|
|
1526
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require the user to select from a controlled list of institutions.">>;
|
|
1527
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1016
1528
|
}, "strip", z.ZodTypeAny, {
|
|
1017
1529
|
schemaVersion: "1.0";
|
|
1530
|
+
title?: "Affiliation Search" | undefined;
|
|
1531
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
1532
|
+
defaultJSON?: string | undefined;
|
|
1018
1533
|
}, {
|
|
1019
1534
|
schemaVersion: "1.0";
|
|
1020
|
-
|
|
1021
|
-
|
|
1535
|
+
title?: "Affiliation Search" | undefined;
|
|
1536
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
1537
|
+
defaultJSON?: string | undefined;
|
|
1538
|
+
}>;
|
|
1539
|
+
}, "strip", z.ZodTypeAny, {
|
|
1540
|
+
type: "affiliationSearch";
|
|
1541
|
+
meta: {
|
|
1542
|
+
schemaVersion: "1.0";
|
|
1543
|
+
title?: "Affiliation Search" | undefined;
|
|
1544
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
1545
|
+
defaultJSON?: string | undefined;
|
|
1546
|
+
};
|
|
1547
|
+
graphQL: {
|
|
1548
|
+
displayFields: {
|
|
1549
|
+
label: string;
|
|
1550
|
+
propertyName: string;
|
|
1551
|
+
labelTranslationKey?: string | undefined;
|
|
1552
|
+
}[];
|
|
1553
|
+
responseField: string;
|
|
1554
|
+
localQueryId?: string | undefined;
|
|
1555
|
+
query?: string | undefined;
|
|
1556
|
+
variables?: {
|
|
1557
|
+
type: string;
|
|
1558
|
+
name: string;
|
|
1559
|
+
label?: string | undefined;
|
|
1560
|
+
labelTranslationKey?: string | undefined;
|
|
1561
|
+
minLength?: number | undefined;
|
|
1562
|
+
defaultValue?: string | undefined;
|
|
1563
|
+
}[] | undefined;
|
|
1564
|
+
};
|
|
1565
|
+
attributes?: {
|
|
1566
|
+
label?: string | undefined;
|
|
1567
|
+
help?: string | undefined;
|
|
1568
|
+
labelTranslationKey?: string | undefined;
|
|
1569
|
+
} | undefined;
|
|
1570
|
+
}, {
|
|
1571
|
+
type: "affiliationSearch";
|
|
1572
|
+
meta: {
|
|
1573
|
+
schemaVersion: "1.0";
|
|
1574
|
+
title?: "Affiliation Search" | undefined;
|
|
1575
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
1576
|
+
defaultJSON?: string | undefined;
|
|
1577
|
+
};
|
|
1578
|
+
graphQL: {
|
|
1579
|
+
displayFields: {
|
|
1580
|
+
label: string;
|
|
1581
|
+
propertyName: string;
|
|
1582
|
+
labelTranslationKey?: string | undefined;
|
|
1583
|
+
}[];
|
|
1584
|
+
responseField: string;
|
|
1585
|
+
localQueryId?: string | undefined;
|
|
1586
|
+
query?: string | undefined;
|
|
1587
|
+
variables?: {
|
|
1588
|
+
type: string;
|
|
1589
|
+
name: string;
|
|
1590
|
+
label?: string | undefined;
|
|
1591
|
+
labelTranslationKey?: string | undefined;
|
|
1592
|
+
minLength?: number | undefined;
|
|
1593
|
+
defaultValue?: string | undefined;
|
|
1594
|
+
}[] | undefined;
|
|
1595
|
+
};
|
|
1596
|
+
attributes?: {
|
|
1597
|
+
label?: string | undefined;
|
|
1598
|
+
help?: string | undefined;
|
|
1599
|
+
labelTranslationKey?: string | undefined;
|
|
1600
|
+
} | undefined;
|
|
1601
|
+
}>, z.ZodObject<{} & {
|
|
1022
1602
|
type: z.ZodLiteral<"boolean">;
|
|
1023
|
-
attributes: z.ZodObject<{
|
|
1603
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
1024
1604
|
label: z.ZodOptional<z.ZodString>;
|
|
1025
1605
|
help: z.ZodOptional<z.ZodString>;
|
|
1026
1606
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -1036,28 +1616,51 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1036
1616
|
help?: string | undefined;
|
|
1037
1617
|
labelTranslationKey?: string | undefined;
|
|
1038
1618
|
checked?: boolean | undefined;
|
|
1039
|
-
}
|
|
1619
|
+
}>>;
|
|
1620
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1621
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1622
|
+
} & {
|
|
1623
|
+
title: z.ZodOptional<z.ZodLiteral<"Yes/No Field">>;
|
|
1624
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a simple Yes/No response.">>;
|
|
1625
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1626
|
+
}, "strip", z.ZodTypeAny, {
|
|
1627
|
+
schemaVersion: "1.0";
|
|
1628
|
+
title?: "Yes/No Field" | undefined;
|
|
1629
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
1630
|
+
defaultJSON?: string | undefined;
|
|
1631
|
+
}, {
|
|
1632
|
+
schemaVersion: "1.0";
|
|
1633
|
+
title?: "Yes/No Field" | undefined;
|
|
1634
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
1635
|
+
defaultJSON?: string | undefined;
|
|
1636
|
+
}>>;
|
|
1040
1637
|
}, "strip", z.ZodTypeAny, {
|
|
1041
1638
|
type: "boolean";
|
|
1042
|
-
attributes
|
|
1639
|
+
attributes?: {
|
|
1043
1640
|
label?: string | undefined;
|
|
1044
1641
|
help?: string | undefined;
|
|
1045
1642
|
labelTranslationKey?: string | undefined;
|
|
1046
1643
|
checked?: boolean | undefined;
|
|
1047
|
-
};
|
|
1644
|
+
} | undefined;
|
|
1048
1645
|
meta?: {
|
|
1049
1646
|
schemaVersion: "1.0";
|
|
1647
|
+
title?: "Yes/No Field" | undefined;
|
|
1648
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
1649
|
+
defaultJSON?: string | undefined;
|
|
1050
1650
|
} | undefined;
|
|
1051
1651
|
}, {
|
|
1052
1652
|
type: "boolean";
|
|
1053
|
-
attributes
|
|
1653
|
+
attributes?: {
|
|
1054
1654
|
label?: string | undefined;
|
|
1055
1655
|
help?: string | undefined;
|
|
1056
1656
|
labelTranslationKey?: string | undefined;
|
|
1057
1657
|
checked?: boolean | undefined;
|
|
1058
|
-
};
|
|
1658
|
+
} | undefined;
|
|
1059
1659
|
meta?: {
|
|
1060
1660
|
schemaVersion: "1.0";
|
|
1661
|
+
title?: "Yes/No Field" | undefined;
|
|
1662
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
1663
|
+
defaultJSON?: string | undefined;
|
|
1061
1664
|
} | undefined;
|
|
1062
1665
|
}>, z.ZodObject<{
|
|
1063
1666
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -1073,13 +1676,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1073
1676
|
help?: string | undefined;
|
|
1074
1677
|
labelTranslationKey?: string | undefined;
|
|
1075
1678
|
}>>;
|
|
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
1679
|
} & {
|
|
1084
1680
|
type: z.ZodLiteral<"checkBoxes">;
|
|
1085
1681
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -1096,6 +1692,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1096
1692
|
label: string;
|
|
1097
1693
|
checked?: boolean | undefined;
|
|
1098
1694
|
}>, "many">;
|
|
1695
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1696
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1697
|
+
} & {
|
|
1698
|
+
title: z.ZodOptional<z.ZodLiteral<"Check Boxes">>;
|
|
1699
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users can select multiple options.">>;
|
|
1700
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1701
|
+
}, "strip", z.ZodTypeAny, {
|
|
1702
|
+
schemaVersion: "1.0";
|
|
1703
|
+
title?: "Check Boxes" | undefined;
|
|
1704
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
1705
|
+
defaultJSON?: string | undefined;
|
|
1706
|
+
}, {
|
|
1707
|
+
schemaVersion: "1.0";
|
|
1708
|
+
title?: "Check Boxes" | undefined;
|
|
1709
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
1710
|
+
defaultJSON?: string | undefined;
|
|
1711
|
+
}>>;
|
|
1099
1712
|
}, "strip", z.ZodTypeAny, {
|
|
1100
1713
|
options: {
|
|
1101
1714
|
value: string;
|
|
@@ -1110,6 +1723,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1110
1723
|
} | undefined;
|
|
1111
1724
|
meta?: {
|
|
1112
1725
|
schemaVersion: "1.0";
|
|
1726
|
+
title?: "Check Boxes" | undefined;
|
|
1727
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
1728
|
+
defaultJSON?: string | undefined;
|
|
1113
1729
|
} | undefined;
|
|
1114
1730
|
}, {
|
|
1115
1731
|
options: {
|
|
@@ -1125,16 +1741,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1125
1741
|
} | undefined;
|
|
1126
1742
|
meta?: {
|
|
1127
1743
|
schemaVersion: "1.0";
|
|
1744
|
+
title?: "Check Boxes" | undefined;
|
|
1745
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
1746
|
+
defaultJSON?: string | undefined;
|
|
1128
1747
|
} | undefined;
|
|
1129
|
-
}>, z.ZodObject<{
|
|
1130
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
1131
|
-
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1132
|
-
}, "strip", z.ZodTypeAny, {
|
|
1133
|
-
schemaVersion: "1.0";
|
|
1134
|
-
}, {
|
|
1135
|
-
schemaVersion: "1.0";
|
|
1136
|
-
}>>;
|
|
1137
|
-
} & {
|
|
1748
|
+
}>, z.ZodObject<{} & {
|
|
1138
1749
|
type: z.ZodLiteral<"currency">;
|
|
1139
1750
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
1140
1751
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1163,6 +1774,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1163
1774
|
step?: number | undefined;
|
|
1164
1775
|
denomination?: string | undefined;
|
|
1165
1776
|
}>>;
|
|
1777
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1778
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1779
|
+
} & {
|
|
1780
|
+
title: z.ZodOptional<z.ZodLiteral<"Currency Field">>;
|
|
1781
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a monetary amount (e.g. Cost or Budget).">>;
|
|
1782
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1783
|
+
}, "strip", z.ZodTypeAny, {
|
|
1784
|
+
schemaVersion: "1.0";
|
|
1785
|
+
title?: "Currency Field" | undefined;
|
|
1786
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
1787
|
+
defaultJSON?: string | undefined;
|
|
1788
|
+
}, {
|
|
1789
|
+
schemaVersion: "1.0";
|
|
1790
|
+
title?: "Currency Field" | undefined;
|
|
1791
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
1792
|
+
defaultJSON?: string | undefined;
|
|
1793
|
+
}>>;
|
|
1166
1794
|
}, "strip", z.ZodTypeAny, {
|
|
1167
1795
|
type: "currency";
|
|
1168
1796
|
attributes?: {
|
|
@@ -1176,6 +1804,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1176
1804
|
} | undefined;
|
|
1177
1805
|
meta?: {
|
|
1178
1806
|
schemaVersion: "1.0";
|
|
1807
|
+
title?: "Currency Field" | undefined;
|
|
1808
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
1809
|
+
defaultJSON?: string | undefined;
|
|
1179
1810
|
} | undefined;
|
|
1180
1811
|
}, {
|
|
1181
1812
|
type: "currency";
|
|
@@ -1190,16 +1821,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1190
1821
|
} | undefined;
|
|
1191
1822
|
meta?: {
|
|
1192
1823
|
schemaVersion: "1.0";
|
|
1824
|
+
title?: "Currency Field" | undefined;
|
|
1825
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
1826
|
+
defaultJSON?: string | undefined;
|
|
1193
1827
|
} | 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
|
-
} & {
|
|
1828
|
+
}>, z.ZodObject<{} & {
|
|
1203
1829
|
type: z.ZodLiteral<"date">;
|
|
1204
1830
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
1205
1831
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1224,6 +1850,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1224
1850
|
min?: string | undefined;
|
|
1225
1851
|
step?: number | undefined;
|
|
1226
1852
|
}>>;
|
|
1853
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1854
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1855
|
+
} & {
|
|
1856
|
+
title: z.ZodOptional<z.ZodLiteral<"Date Field">>;
|
|
1857
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date.">>;
|
|
1858
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1859
|
+
}, "strip", z.ZodTypeAny, {
|
|
1860
|
+
schemaVersion: "1.0";
|
|
1861
|
+
title?: "Date Field" | undefined;
|
|
1862
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
1863
|
+
defaultJSON?: string | undefined;
|
|
1864
|
+
}, {
|
|
1865
|
+
schemaVersion: "1.0";
|
|
1866
|
+
title?: "Date Field" | undefined;
|
|
1867
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
1868
|
+
defaultJSON?: string | undefined;
|
|
1869
|
+
}>>;
|
|
1227
1870
|
}, "strip", z.ZodTypeAny, {
|
|
1228
1871
|
type: "date";
|
|
1229
1872
|
attributes?: {
|
|
@@ -1236,6 +1879,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1236
1879
|
} | undefined;
|
|
1237
1880
|
meta?: {
|
|
1238
1881
|
schemaVersion: "1.0";
|
|
1882
|
+
title?: "Date Field" | undefined;
|
|
1883
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
1884
|
+
defaultJSON?: string | undefined;
|
|
1239
1885
|
} | undefined;
|
|
1240
1886
|
}, {
|
|
1241
1887
|
type: "date";
|
|
@@ -1249,6 +1895,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1249
1895
|
} | undefined;
|
|
1250
1896
|
meta?: {
|
|
1251
1897
|
schemaVersion: "1.0";
|
|
1898
|
+
title?: "Date Field" | undefined;
|
|
1899
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
1900
|
+
defaultJSON?: string | undefined;
|
|
1252
1901
|
} | undefined;
|
|
1253
1902
|
}>, z.ZodObject<{
|
|
1254
1903
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -1264,13 +1913,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1264
1913
|
help?: string | undefined;
|
|
1265
1914
|
labelTranslationKey?: string | undefined;
|
|
1266
1915
|
}>>;
|
|
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
1916
|
} & {
|
|
1275
1917
|
type: z.ZodLiteral<"dateRange">;
|
|
1276
1918
|
columns: z.ZodObject<{
|
|
@@ -1355,6 +1997,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1355
1997
|
step?: number | undefined;
|
|
1356
1998
|
} | undefined;
|
|
1357
1999
|
}>;
|
|
2000
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2001
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2002
|
+
} & {
|
|
2003
|
+
title: z.ZodOptional<z.ZodLiteral<"Date Range">>;
|
|
2004
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a date range (e.g. From/To, Start/End)">>;
|
|
2005
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
2006
|
+
}, "strip", z.ZodTypeAny, {
|
|
2007
|
+
schemaVersion: "1.0";
|
|
2008
|
+
title?: "Date Range" | undefined;
|
|
2009
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
2010
|
+
defaultJSON?: string | undefined;
|
|
2011
|
+
}, {
|
|
2012
|
+
schemaVersion: "1.0";
|
|
2013
|
+
title?: "Date Range" | undefined;
|
|
2014
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
2015
|
+
defaultJSON?: string | undefined;
|
|
2016
|
+
}>>;
|
|
1358
2017
|
}, "strip", z.ZodTypeAny, {
|
|
1359
2018
|
type: "dateRange";
|
|
1360
2019
|
columns: {
|
|
@@ -1382,6 +2041,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1382
2041
|
} | undefined;
|
|
1383
2042
|
meta?: {
|
|
1384
2043
|
schemaVersion: "1.0";
|
|
2044
|
+
title?: "Date Range" | undefined;
|
|
2045
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
2046
|
+
defaultJSON?: string | undefined;
|
|
1385
2047
|
} | undefined;
|
|
1386
2048
|
}, {
|
|
1387
2049
|
type: "dateRange";
|
|
@@ -1410,16 +2072,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1410
2072
|
} | undefined;
|
|
1411
2073
|
meta?: {
|
|
1412
2074
|
schemaVersion: "1.0";
|
|
2075
|
+
title?: "Date Range" | undefined;
|
|
2076
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
2077
|
+
defaultJSON?: string | undefined;
|
|
1413
2078
|
} | 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
|
-
} & {
|
|
2079
|
+
}>, z.ZodObject<{} & {
|
|
1423
2080
|
type: z.ZodLiteral<"email">;
|
|
1424
2081
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
1425
2082
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1448,6 +2105,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1448
2105
|
pattern?: string | undefined;
|
|
1449
2106
|
multiple?: boolean | undefined;
|
|
1450
2107
|
}>>;
|
|
2108
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2109
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2110
|
+
} & {
|
|
2111
|
+
title: z.ZodOptional<z.ZodLiteral<"Email Field">>;
|
|
2112
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require require email address(es).">>;
|
|
2113
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
2114
|
+
}, "strip", z.ZodTypeAny, {
|
|
2115
|
+
schemaVersion: "1.0";
|
|
2116
|
+
title?: "Email Field" | undefined;
|
|
2117
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
2118
|
+
defaultJSON?: string | undefined;
|
|
2119
|
+
}, {
|
|
2120
|
+
schemaVersion: "1.0";
|
|
2121
|
+
title?: "Email Field" | undefined;
|
|
2122
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
2123
|
+
defaultJSON?: string | undefined;
|
|
2124
|
+
}>>;
|
|
1451
2125
|
}, "strip", z.ZodTypeAny, {
|
|
1452
2126
|
type: "email";
|
|
1453
2127
|
attributes?: {
|
|
@@ -1461,6 +2135,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1461
2135
|
} | undefined;
|
|
1462
2136
|
meta?: {
|
|
1463
2137
|
schemaVersion: "1.0";
|
|
2138
|
+
title?: "Email Field" | undefined;
|
|
2139
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
2140
|
+
defaultJSON?: string | undefined;
|
|
1464
2141
|
} | undefined;
|
|
1465
2142
|
}, {
|
|
1466
2143
|
type: "email";
|
|
@@ -1475,16 +2152,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1475
2152
|
} | undefined;
|
|
1476
2153
|
meta?: {
|
|
1477
2154
|
schemaVersion: "1.0";
|
|
2155
|
+
title?: "Email Field" | undefined;
|
|
2156
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
2157
|
+
defaultJSON?: string | undefined;
|
|
1478
2158
|
} | 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
|
-
} & {
|
|
2159
|
+
}>, z.ZodObject<{} & {
|
|
1488
2160
|
type: z.ZodLiteral<"filteredSearch">;
|
|
1489
2161
|
graphQL: z.ZodObject<{
|
|
1490
2162
|
displayFields: z.ZodArray<z.ZodObject<{
|
|
@@ -1577,6 +2249,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1577
2249
|
labelTranslationKey?: string | undefined;
|
|
1578
2250
|
multiple?: boolean | undefined;
|
|
1579
2251
|
}>>;
|
|
2252
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2253
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2254
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
2255
|
+
defaultJSON: z.ZodOptional<z.ZodString>;
|
|
2256
|
+
} & {
|
|
2257
|
+
title: z.ZodOptional<z.ZodLiteral<"Not yet implemented">>;
|
|
2258
|
+
}, "strip", z.ZodTypeAny, {
|
|
2259
|
+
schemaVersion: "1.0";
|
|
2260
|
+
title?: "Not yet implemented" | undefined;
|
|
2261
|
+
usageDescription?: string | undefined;
|
|
2262
|
+
defaultJSON?: string | undefined;
|
|
2263
|
+
}, {
|
|
2264
|
+
schemaVersion: "1.0";
|
|
2265
|
+
title?: "Not yet implemented" | undefined;
|
|
2266
|
+
usageDescription?: string | undefined;
|
|
2267
|
+
defaultJSON?: string | undefined;
|
|
2268
|
+
}>>;
|
|
1580
2269
|
}, "strip", z.ZodTypeAny, {
|
|
1581
2270
|
type: "filteredSearch";
|
|
1582
2271
|
graphQL: {
|
|
@@ -1605,6 +2294,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1605
2294
|
} | undefined;
|
|
1606
2295
|
meta?: {
|
|
1607
2296
|
schemaVersion: "1.0";
|
|
2297
|
+
title?: "Not yet implemented" | undefined;
|
|
2298
|
+
usageDescription?: string | undefined;
|
|
2299
|
+
defaultJSON?: string | undefined;
|
|
1608
2300
|
} | undefined;
|
|
1609
2301
|
}, {
|
|
1610
2302
|
type: "filteredSearch";
|
|
@@ -1634,16 +2326,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1634
2326
|
} | undefined;
|
|
1635
2327
|
meta?: {
|
|
1636
2328
|
schemaVersion: "1.0";
|
|
2329
|
+
title?: "Not yet implemented" | undefined;
|
|
2330
|
+
usageDescription?: string | undefined;
|
|
2331
|
+
defaultJSON?: string | undefined;
|
|
1637
2332
|
} | 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
|
-
} & {
|
|
2333
|
+
}>, z.ZodObject<{} & {
|
|
1647
2334
|
type: z.ZodLiteral<"number">;
|
|
1648
2335
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
1649
2336
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1668,6 +2355,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1668
2355
|
min?: number | undefined;
|
|
1669
2356
|
step?: number | undefined;
|
|
1670
2357
|
}>>;
|
|
2358
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2359
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2360
|
+
} & {
|
|
2361
|
+
title: z.ZodOptional<z.ZodLiteral<"Number Field">>;
|
|
2362
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a single numeric value.">>;
|
|
2363
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
2364
|
+
}, "strip", z.ZodTypeAny, {
|
|
2365
|
+
schemaVersion: "1.0";
|
|
2366
|
+
title?: "Number Field" | undefined;
|
|
2367
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
2368
|
+
defaultJSON?: string | undefined;
|
|
2369
|
+
}, {
|
|
2370
|
+
schemaVersion: "1.0";
|
|
2371
|
+
title?: "Number Field" | undefined;
|
|
2372
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
2373
|
+
defaultJSON?: string | undefined;
|
|
2374
|
+
}>>;
|
|
1671
2375
|
}, "strip", z.ZodTypeAny, {
|
|
1672
2376
|
type: "number";
|
|
1673
2377
|
attributes?: {
|
|
@@ -1680,6 +2384,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1680
2384
|
} | undefined;
|
|
1681
2385
|
meta?: {
|
|
1682
2386
|
schemaVersion: "1.0";
|
|
2387
|
+
title?: "Number Field" | undefined;
|
|
2388
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
2389
|
+
defaultJSON?: string | undefined;
|
|
1683
2390
|
} | undefined;
|
|
1684
2391
|
}, {
|
|
1685
2392
|
type: "number";
|
|
@@ -1693,6 +2400,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1693
2400
|
} | undefined;
|
|
1694
2401
|
meta?: {
|
|
1695
2402
|
schemaVersion: "1.0";
|
|
2403
|
+
title?: "Number Field" | undefined;
|
|
2404
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
2405
|
+
defaultJSON?: string | undefined;
|
|
1696
2406
|
} | undefined;
|
|
1697
2407
|
}>, z.ZodObject<{
|
|
1698
2408
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
@@ -1708,13 +2418,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1708
2418
|
help?: string | undefined;
|
|
1709
2419
|
labelTranslationKey?: string | undefined;
|
|
1710
2420
|
}>>;
|
|
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
2421
|
} & {
|
|
1719
2422
|
type: z.ZodLiteral<"radioButtons">;
|
|
1720
2423
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -1731,6 +2434,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1731
2434
|
label: string;
|
|
1732
2435
|
selected?: boolean | undefined;
|
|
1733
2436
|
}>, "many">;
|
|
2437
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2438
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2439
|
+
} & {
|
|
2440
|
+
title: z.ZodOptional<z.ZodLiteral<"Radio Buttons">>;
|
|
2441
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users select just one option.">>;
|
|
2442
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
2443
|
+
}, "strip", z.ZodTypeAny, {
|
|
2444
|
+
schemaVersion: "1.0";
|
|
2445
|
+
title?: "Radio Buttons" | undefined;
|
|
2446
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
2447
|
+
defaultJSON?: string | undefined;
|
|
2448
|
+
}, {
|
|
2449
|
+
schemaVersion: "1.0";
|
|
2450
|
+
title?: "Radio Buttons" | undefined;
|
|
2451
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
2452
|
+
defaultJSON?: string | undefined;
|
|
2453
|
+
}>>;
|
|
1734
2454
|
}, "strip", z.ZodTypeAny, {
|
|
1735
2455
|
options: {
|
|
1736
2456
|
value: string;
|
|
@@ -1745,6 +2465,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1745
2465
|
} | undefined;
|
|
1746
2466
|
meta?: {
|
|
1747
2467
|
schemaVersion: "1.0";
|
|
2468
|
+
title?: "Radio Buttons" | undefined;
|
|
2469
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
2470
|
+
defaultJSON?: string | undefined;
|
|
1748
2471
|
} | undefined;
|
|
1749
2472
|
}, {
|
|
1750
2473
|
options: {
|
|
@@ -1760,16 +2483,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1760
2483
|
} | undefined;
|
|
1761
2484
|
meta?: {
|
|
1762
2485
|
schemaVersion: "1.0";
|
|
2486
|
+
title?: "Radio Buttons" | undefined;
|
|
2487
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
2488
|
+
defaultJSON?: string | undefined;
|
|
1763
2489
|
} | 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
|
-
} & {
|
|
2490
|
+
}>, z.ZodObject<{} & {
|
|
1773
2491
|
type: z.ZodLiteral<"selectBox">;
|
|
1774
2492
|
options: z.ZodArray<z.ZodObject<{
|
|
1775
2493
|
label: z.ZodString;
|
|
@@ -1785,22 +2503,39 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1785
2503
|
label: string;
|
|
1786
2504
|
selected?: boolean | undefined;
|
|
1787
2505
|
}>, "many">;
|
|
1788
|
-
attributes: z.
|
|
2506
|
+
attributes: z.ZodObject<{
|
|
1789
2507
|
label: z.ZodOptional<z.ZodString>;
|
|
1790
2508
|
help: z.ZodOptional<z.ZodString>;
|
|
1791
2509
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1792
2510
|
} & {
|
|
1793
|
-
multiple: z.
|
|
2511
|
+
multiple: z.ZodLiteral<false>;
|
|
1794
2512
|
}, "strip", z.ZodTypeAny, {
|
|
2513
|
+
multiple: false;
|
|
1795
2514
|
label?: string | undefined;
|
|
1796
2515
|
help?: string | undefined;
|
|
1797
2516
|
labelTranslationKey?: string | undefined;
|
|
1798
|
-
multiple?: boolean | undefined;
|
|
1799
2517
|
}, {
|
|
2518
|
+
multiple: false;
|
|
1800
2519
|
label?: string | undefined;
|
|
1801
2520
|
help?: string | undefined;
|
|
1802
2521
|
labelTranslationKey?: string | undefined;
|
|
1803
|
-
|
|
2522
|
+
}>;
|
|
2523
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2524
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2525
|
+
} & {
|
|
2526
|
+
title: z.ZodOptional<z.ZodLiteral<"Select Box">>;
|
|
2527
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions where users select one option from a list.">>;
|
|
2528
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
2529
|
+
}, "strip", z.ZodTypeAny, {
|
|
2530
|
+
schemaVersion: "1.0";
|
|
2531
|
+
title?: "Select Box" | undefined;
|
|
2532
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
2533
|
+
defaultJSON?: string | undefined;
|
|
2534
|
+
}, {
|
|
2535
|
+
schemaVersion: "1.0";
|
|
2536
|
+
title?: "Select Box" | undefined;
|
|
2537
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
2538
|
+
defaultJSON?: string | undefined;
|
|
1804
2539
|
}>>;
|
|
1805
2540
|
}, "strip", z.ZodTypeAny, {
|
|
1806
2541
|
options: {
|
|
@@ -1809,14 +2544,17 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1809
2544
|
selected?: boolean | undefined;
|
|
1810
2545
|
}[];
|
|
1811
2546
|
type: "selectBox";
|
|
1812
|
-
attributes
|
|
2547
|
+
attributes: {
|
|
2548
|
+
multiple: false;
|
|
1813
2549
|
label?: string | undefined;
|
|
1814
2550
|
help?: string | undefined;
|
|
1815
2551
|
labelTranslationKey?: string | undefined;
|
|
1816
|
-
|
|
1817
|
-
} | undefined;
|
|
2552
|
+
};
|
|
1818
2553
|
meta?: {
|
|
1819
2554
|
schemaVersion: "1.0";
|
|
2555
|
+
title?: "Select Box" | undefined;
|
|
2556
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
2557
|
+
defaultJSON?: string | undefined;
|
|
1820
2558
|
} | undefined;
|
|
1821
2559
|
}, {
|
|
1822
2560
|
options: {
|
|
@@ -1825,305 +2563,177 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1825
2563
|
selected?: boolean | undefined;
|
|
1826
2564
|
}[];
|
|
1827
2565
|
type: "selectBox";
|
|
1828
|
-
attributes
|
|
1829
|
-
|
|
1830
|
-
help?: string | undefined;
|
|
1831
|
-
labelTranslationKey?: string | undefined;
|
|
1832
|
-
multiple?: boolean | undefined;
|
|
1833
|
-
} | undefined;
|
|
1834
|
-
meta?: {
|
|
1835
|
-
schemaVersion: "1.0";
|
|
1836
|
-
} | undefined;
|
|
1837
|
-
}>, z.ZodObject<{} & {
|
|
1838
|
-
type: z.ZodLiteral<"textArea">;
|
|
1839
|
-
attributes: z.ZodOptional<z.ZodObject<{
|
|
1840
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1841
|
-
help: z.ZodOptional<z.ZodString>;
|
|
1842
|
-
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1843
|
-
} & {
|
|
1844
|
-
cols: z.ZodOptional<z.ZodNumber>;
|
|
1845
|
-
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
1846
|
-
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1847
|
-
rows: z.ZodOptional<z.ZodNumber>;
|
|
1848
|
-
}, "strip", z.ZodTypeAny, {
|
|
1849
|
-
label?: string | undefined;
|
|
1850
|
-
help?: string | undefined;
|
|
1851
|
-
labelTranslationKey?: string | undefined;
|
|
1852
|
-
maxLength?: number | undefined;
|
|
1853
|
-
minLength?: number | undefined;
|
|
1854
|
-
cols?: number | undefined;
|
|
1855
|
-
rows?: number | undefined;
|
|
1856
|
-
}, {
|
|
1857
|
-
label?: string | undefined;
|
|
1858
|
-
help?: string | undefined;
|
|
1859
|
-
labelTranslationKey?: string | undefined;
|
|
1860
|
-
maxLength?: number | undefined;
|
|
1861
|
-
minLength?: number | undefined;
|
|
1862
|
-
cols?: number | undefined;
|
|
1863
|
-
rows?: number | undefined;
|
|
1864
|
-
}>>;
|
|
1865
|
-
meta: z.ZodObject<{
|
|
1866
|
-
schemaVersion: z.ZodLiteral<"1.0">;
|
|
1867
|
-
} & {
|
|
1868
|
-
asRichText: z.ZodOptional<z.ZodBoolean>;
|
|
1869
|
-
}, "strip", z.ZodTypeAny, {
|
|
1870
|
-
schemaVersion: "1.0";
|
|
1871
|
-
asRichText?: boolean | undefined;
|
|
1872
|
-
}, {
|
|
1873
|
-
schemaVersion: "1.0";
|
|
1874
|
-
asRichText?: boolean | undefined;
|
|
1875
|
-
}>;
|
|
1876
|
-
}, "strip", z.ZodTypeAny, {
|
|
1877
|
-
type: "textArea";
|
|
1878
|
-
meta: {
|
|
1879
|
-
schemaVersion: "1.0";
|
|
1880
|
-
asRichText?: boolean | undefined;
|
|
1881
|
-
};
|
|
1882
|
-
attributes?: {
|
|
1883
|
-
label?: string | undefined;
|
|
1884
|
-
help?: string | undefined;
|
|
1885
|
-
labelTranslationKey?: string | undefined;
|
|
1886
|
-
maxLength?: number | undefined;
|
|
1887
|
-
minLength?: number | undefined;
|
|
1888
|
-
cols?: number | undefined;
|
|
1889
|
-
rows?: number | undefined;
|
|
1890
|
-
} | undefined;
|
|
1891
|
-
}, {
|
|
1892
|
-
type: "textArea";
|
|
1893
|
-
meta: {
|
|
1894
|
-
schemaVersion: "1.0";
|
|
1895
|
-
asRichText?: boolean | undefined;
|
|
1896
|
-
};
|
|
1897
|
-
attributes?: {
|
|
2566
|
+
attributes: {
|
|
2567
|
+
multiple: false;
|
|
1898
2568
|
label?: string | undefined;
|
|
1899
2569
|
help?: string | undefined;
|
|
1900
2570
|
labelTranslationKey?: string | undefined;
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
cols?: number | undefined;
|
|
1904
|
-
rows?: number | undefined;
|
|
1905
|
-
} | 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
|
-
}, {
|
|
2571
|
+
};
|
|
2572
|
+
meta?: {
|
|
1912
2573
|
schemaVersion: "1.0";
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
2574
|
+
title?: "Select Box" | undefined;
|
|
2575
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
2576
|
+
defaultJSON?: string | undefined;
|
|
2577
|
+
} | undefined;
|
|
2578
|
+
}>, z.ZodObject<{} & {
|
|
2579
|
+
type: z.ZodLiteral<"textArea">;
|
|
1916
2580
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
1917
2581
|
label: z.ZodOptional<z.ZodString>;
|
|
1918
2582
|
help: z.ZodOptional<z.ZodString>;
|
|
1919
2583
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1920
2584
|
} & {
|
|
2585
|
+
cols: z.ZodOptional<z.ZodNumber>;
|
|
1921
2586
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
1922
2587
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1923
|
-
|
|
2588
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
2589
|
+
asRichText: z.ZodOptional<z.ZodBoolean>;
|
|
1924
2590
|
}, "strip", z.ZodTypeAny, {
|
|
1925
2591
|
label?: string | undefined;
|
|
1926
2592
|
help?: string | undefined;
|
|
1927
2593
|
labelTranslationKey?: string | undefined;
|
|
1928
2594
|
maxLength?: number | undefined;
|
|
1929
2595
|
minLength?: number | undefined;
|
|
1930
|
-
|
|
2596
|
+
cols?: number | undefined;
|
|
2597
|
+
rows?: number | undefined;
|
|
2598
|
+
asRichText?: boolean | undefined;
|
|
1931
2599
|
}, {
|
|
1932
2600
|
label?: string | undefined;
|
|
1933
2601
|
help?: string | undefined;
|
|
1934
2602
|
labelTranslationKey?: string | undefined;
|
|
1935
2603
|
maxLength?: number | undefined;
|
|
1936
2604
|
minLength?: number | undefined;
|
|
1937
|
-
|
|
2605
|
+
cols?: number | undefined;
|
|
2606
|
+
rows?: number | undefined;
|
|
2607
|
+
asRichText?: boolean | undefined;
|
|
2608
|
+
}>>;
|
|
2609
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2610
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2611
|
+
} & {
|
|
2612
|
+
title: z.ZodOptional<z.ZodLiteral<"Text Area">>;
|
|
2613
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require longer answers, you can select formatting options too.">>;
|
|
2614
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
2615
|
+
}, "strip", z.ZodTypeAny, {
|
|
2616
|
+
schemaVersion: "1.0";
|
|
2617
|
+
title?: "Text Area" | undefined;
|
|
2618
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
2619
|
+
defaultJSON?: string | undefined;
|
|
2620
|
+
}, {
|
|
2621
|
+
schemaVersion: "1.0";
|
|
2622
|
+
title?: "Text Area" | undefined;
|
|
2623
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
2624
|
+
defaultJSON?: string | undefined;
|
|
1938
2625
|
}>>;
|
|
1939
2626
|
}, "strip", z.ZodTypeAny, {
|
|
1940
|
-
type: "
|
|
2627
|
+
type: "textArea";
|
|
1941
2628
|
attributes?: {
|
|
1942
2629
|
label?: string | undefined;
|
|
1943
2630
|
help?: string | undefined;
|
|
1944
2631
|
labelTranslationKey?: string | undefined;
|
|
1945
2632
|
maxLength?: number | undefined;
|
|
1946
2633
|
minLength?: number | undefined;
|
|
1947
|
-
|
|
2634
|
+
cols?: number | undefined;
|
|
2635
|
+
rows?: number | undefined;
|
|
2636
|
+
asRichText?: boolean | undefined;
|
|
1948
2637
|
} | undefined;
|
|
1949
2638
|
meta?: {
|
|
1950
2639
|
schemaVersion: "1.0";
|
|
2640
|
+
title?: "Text Area" | undefined;
|
|
2641
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
2642
|
+
defaultJSON?: string | undefined;
|
|
1951
2643
|
} | undefined;
|
|
1952
2644
|
}, {
|
|
1953
|
-
type: "
|
|
2645
|
+
type: "textArea";
|
|
1954
2646
|
attributes?: {
|
|
1955
2647
|
label?: string | undefined;
|
|
1956
2648
|
help?: string | undefined;
|
|
1957
2649
|
labelTranslationKey?: string | undefined;
|
|
1958
2650
|
maxLength?: number | undefined;
|
|
1959
2651
|
minLength?: number | undefined;
|
|
1960
|
-
|
|
2652
|
+
cols?: number | undefined;
|
|
2653
|
+
rows?: number | undefined;
|
|
2654
|
+
asRichText?: boolean | undefined;
|
|
1961
2655
|
} | undefined;
|
|
1962
2656
|
meta?: {
|
|
1963
2657
|
schemaVersion: "1.0";
|
|
2658
|
+
title?: "Text Area" | undefined;
|
|
2659
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
2660
|
+
defaultJSON?: string | undefined;
|
|
1964
2661
|
} | undefined;
|
|
1965
|
-
}>, z.ZodObject<{
|
|
2662
|
+
}>, z.ZodObject<{} & {
|
|
2663
|
+
type: z.ZodLiteral<"text">;
|
|
1966
2664
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
1967
2665
|
label: z.ZodOptional<z.ZodString>;
|
|
1968
2666
|
help: z.ZodOptional<z.ZodString>;
|
|
1969
2667
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2668
|
+
} & {
|
|
2669
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2670
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
2671
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
1970
2672
|
}, "strip", z.ZodTypeAny, {
|
|
1971
2673
|
label?: string | undefined;
|
|
1972
2674
|
help?: string | undefined;
|
|
1973
2675
|
labelTranslationKey?: string | undefined;
|
|
2676
|
+
maxLength?: number | undefined;
|
|
2677
|
+
minLength?: number | undefined;
|
|
2678
|
+
pattern?: string | undefined;
|
|
1974
2679
|
}, {
|
|
1975
2680
|
label?: string | undefined;
|
|
1976
2681
|
help?: string | undefined;
|
|
1977
2682
|
labelTranslationKey?: string | undefined;
|
|
2683
|
+
maxLength?: number | undefined;
|
|
2684
|
+
minLength?: number | undefined;
|
|
2685
|
+
pattern?: string | undefined;
|
|
1978
2686
|
}>>;
|
|
1979
2687
|
meta: z.ZodOptional<z.ZodObject<{
|
|
1980
2688
|
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2689
|
+
} & {
|
|
2690
|
+
title: z.ZodOptional<z.ZodLiteral<"Text Field">>;
|
|
2691
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require short, simple answers.">>;
|
|
2692
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
1981
2693
|
}, "strip", z.ZodTypeAny, {
|
|
1982
2694
|
schemaVersion: "1.0";
|
|
2695
|
+
title?: "Text Field" | undefined;
|
|
2696
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
2697
|
+
defaultJSON?: string | undefined;
|
|
1983
2698
|
}, {
|
|
1984
2699
|
schemaVersion: "1.0";
|
|
2700
|
+
title?: "Text Field" | undefined;
|
|
2701
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
2702
|
+
defaultJSON?: string | undefined;
|
|
1985
2703
|
}>>;
|
|
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
2704
|
}, "strip", z.ZodTypeAny, {
|
|
2063
|
-
type: "
|
|
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
|
-
};
|
|
2705
|
+
type: "text";
|
|
2082
2706
|
attributes?: {
|
|
2083
2707
|
label?: string | undefined;
|
|
2084
2708
|
help?: string | undefined;
|
|
2085
2709
|
labelTranslationKey?: string | undefined;
|
|
2710
|
+
maxLength?: number | undefined;
|
|
2711
|
+
minLength?: number | undefined;
|
|
2712
|
+
pattern?: string | undefined;
|
|
2086
2713
|
} | undefined;
|
|
2087
2714
|
meta?: {
|
|
2088
2715
|
schemaVersion: "1.0";
|
|
2716
|
+
title?: "Text Field" | undefined;
|
|
2717
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
2718
|
+
defaultJSON?: string | undefined;
|
|
2089
2719
|
} | undefined;
|
|
2090
2720
|
}, {
|
|
2091
|
-
type: "
|
|
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
|
-
};
|
|
2721
|
+
type: "text";
|
|
2110
2722
|
attributes?: {
|
|
2111
2723
|
label?: string | undefined;
|
|
2112
2724
|
help?: string | undefined;
|
|
2113
2725
|
labelTranslationKey?: string | undefined;
|
|
2726
|
+
maxLength?: number | undefined;
|
|
2727
|
+
minLength?: number | undefined;
|
|
2728
|
+
pattern?: string | undefined;
|
|
2114
2729
|
} | undefined;
|
|
2115
2730
|
meta?: {
|
|
2116
2731
|
schemaVersion: "1.0";
|
|
2732
|
+
title?: "Text Field" | undefined;
|
|
2733
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
2734
|
+
defaultJSON?: string | undefined;
|
|
2117
2735
|
} | 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
|
-
} & {
|
|
2736
|
+
}>, z.ZodObject<{} & {
|
|
2127
2737
|
type: z.ZodLiteral<"url">;
|
|
2128
2738
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
2129
2739
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -2148,6 +2758,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2148
2758
|
minLength?: number | undefined;
|
|
2149
2759
|
pattern?: string | undefined;
|
|
2150
2760
|
}>>;
|
|
2761
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
2762
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
2763
|
+
} & {
|
|
2764
|
+
title: z.ZodOptional<z.ZodLiteral<"URL Field">>;
|
|
2765
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a website, DOI or other URL.">>;
|
|
2766
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
2767
|
+
}, "strip", z.ZodTypeAny, {
|
|
2768
|
+
schemaVersion: "1.0";
|
|
2769
|
+
title?: "URL Field" | undefined;
|
|
2770
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
2771
|
+
defaultJSON?: string | undefined;
|
|
2772
|
+
}, {
|
|
2773
|
+
schemaVersion: "1.0";
|
|
2774
|
+
title?: "URL Field" | undefined;
|
|
2775
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
2776
|
+
defaultJSON?: string | undefined;
|
|
2777
|
+
}>>;
|
|
2151
2778
|
}, "strip", z.ZodTypeAny, {
|
|
2152
2779
|
type: "url";
|
|
2153
2780
|
attributes?: {
|
|
@@ -2160,6 +2787,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2160
2787
|
} | undefined;
|
|
2161
2788
|
meta?: {
|
|
2162
2789
|
schemaVersion: "1.0";
|
|
2790
|
+
title?: "URL Field" | undefined;
|
|
2791
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
2792
|
+
defaultJSON?: string | undefined;
|
|
2163
2793
|
} | undefined;
|
|
2164
2794
|
}, {
|
|
2165
2795
|
type: "url";
|
|
@@ -2173,6 +2803,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2173
2803
|
} | undefined;
|
|
2174
2804
|
meta?: {
|
|
2175
2805
|
schemaVersion: "1.0";
|
|
2806
|
+
title?: "URL Field" | undefined;
|
|
2807
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
2808
|
+
defaultJSON?: string | undefined;
|
|
2176
2809
|
} | undefined;
|
|
2177
2810
|
}>]>;
|
|
2178
2811
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2189,6 +2822,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2189
2822
|
} | undefined;
|
|
2190
2823
|
meta?: {
|
|
2191
2824
|
schemaVersion: "1.0";
|
|
2825
|
+
title?: "Currency Field" | undefined;
|
|
2826
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
2827
|
+
defaultJSON?: string | undefined;
|
|
2192
2828
|
} | undefined;
|
|
2193
2829
|
} | {
|
|
2194
2830
|
type: "number";
|
|
@@ -2202,6 +2838,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2202
2838
|
} | undefined;
|
|
2203
2839
|
meta?: {
|
|
2204
2840
|
schemaVersion: "1.0";
|
|
2841
|
+
title?: "Number Field" | undefined;
|
|
2842
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
2843
|
+
defaultJSON?: string | undefined;
|
|
2205
2844
|
} | undefined;
|
|
2206
2845
|
} | {
|
|
2207
2846
|
type: "email";
|
|
@@ -2216,13 +2855,12 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2216
2855
|
} | undefined;
|
|
2217
2856
|
meta?: {
|
|
2218
2857
|
schemaVersion: "1.0";
|
|
2858
|
+
title?: "Email Field" | undefined;
|
|
2859
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
2860
|
+
defaultJSON?: string | undefined;
|
|
2219
2861
|
} | undefined;
|
|
2220
2862
|
} | {
|
|
2221
2863
|
type: "textArea";
|
|
2222
|
-
meta: {
|
|
2223
|
-
schemaVersion: "1.0";
|
|
2224
|
-
asRichText?: boolean | undefined;
|
|
2225
|
-
};
|
|
2226
2864
|
attributes?: {
|
|
2227
2865
|
label?: string | undefined;
|
|
2228
2866
|
help?: string | undefined;
|
|
@@ -2231,6 +2869,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2231
2869
|
minLength?: number | undefined;
|
|
2232
2870
|
cols?: number | undefined;
|
|
2233
2871
|
rows?: number | undefined;
|
|
2872
|
+
asRichText?: boolean | undefined;
|
|
2873
|
+
} | undefined;
|
|
2874
|
+
meta?: {
|
|
2875
|
+
schemaVersion: "1.0";
|
|
2876
|
+
title?: "Text Area" | undefined;
|
|
2877
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
2878
|
+
defaultJSON?: string | undefined;
|
|
2234
2879
|
} | undefined;
|
|
2235
2880
|
} | {
|
|
2236
2881
|
type: "text";
|
|
@@ -2244,6 +2889,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2244
2889
|
} | undefined;
|
|
2245
2890
|
meta?: {
|
|
2246
2891
|
schemaVersion: "1.0";
|
|
2892
|
+
title?: "Text Field" | undefined;
|
|
2893
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
2894
|
+
defaultJSON?: string | undefined;
|
|
2247
2895
|
} | undefined;
|
|
2248
2896
|
} | {
|
|
2249
2897
|
type: "url";
|
|
@@ -2257,6 +2905,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2257
2905
|
} | undefined;
|
|
2258
2906
|
meta?: {
|
|
2259
2907
|
schemaVersion: "1.0";
|
|
2908
|
+
title?: "URL Field" | undefined;
|
|
2909
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
2910
|
+
defaultJSON?: string | undefined;
|
|
2260
2911
|
} | undefined;
|
|
2261
2912
|
} | {
|
|
2262
2913
|
type: "date";
|
|
@@ -2270,6 +2921,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2270
2921
|
} | undefined;
|
|
2271
2922
|
meta?: {
|
|
2272
2923
|
schemaVersion: "1.0";
|
|
2924
|
+
title?: "Date Field" | undefined;
|
|
2925
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
2926
|
+
defaultJSON?: string | undefined;
|
|
2273
2927
|
} | undefined;
|
|
2274
2928
|
} | {
|
|
2275
2929
|
type: "dateRange";
|
|
@@ -2298,17 +2952,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2298
2952
|
} | undefined;
|
|
2299
2953
|
meta?: {
|
|
2300
2954
|
schemaVersion: "1.0";
|
|
2955
|
+
title?: "Date Range" | undefined;
|
|
2956
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
2957
|
+
defaultJSON?: string | undefined;
|
|
2301
2958
|
} | undefined;
|
|
2302
2959
|
} | {
|
|
2303
2960
|
type: "boolean";
|
|
2304
|
-
attributes
|
|
2961
|
+
attributes?: {
|
|
2305
2962
|
label?: string | undefined;
|
|
2306
2963
|
help?: string | undefined;
|
|
2307
2964
|
labelTranslationKey?: string | undefined;
|
|
2308
2965
|
checked?: boolean | undefined;
|
|
2309
|
-
};
|
|
2966
|
+
} | undefined;
|
|
2310
2967
|
meta?: {
|
|
2311
2968
|
schemaVersion: "1.0";
|
|
2969
|
+
title?: "Yes/No Field" | undefined;
|
|
2970
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
2971
|
+
defaultJSON?: string | undefined;
|
|
2312
2972
|
} | undefined;
|
|
2313
2973
|
} | {
|
|
2314
2974
|
options: {
|
|
@@ -2324,6 +2984,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2324
2984
|
} | undefined;
|
|
2325
2985
|
meta?: {
|
|
2326
2986
|
schemaVersion: "1.0";
|
|
2987
|
+
title?: "Check Boxes" | undefined;
|
|
2988
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
2989
|
+
defaultJSON?: string | undefined;
|
|
2327
2990
|
} | undefined;
|
|
2328
2991
|
} | {
|
|
2329
2992
|
options: {
|
|
@@ -2339,6 +3002,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2339
3002
|
} | undefined;
|
|
2340
3003
|
meta?: {
|
|
2341
3004
|
schemaVersion: "1.0";
|
|
3005
|
+
title?: "Radio Buttons" | undefined;
|
|
3006
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
3007
|
+
defaultJSON?: string | undefined;
|
|
2342
3008
|
} | undefined;
|
|
2343
3009
|
} | {
|
|
2344
3010
|
options: {
|
|
@@ -2347,14 +3013,17 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2347
3013
|
selected?: boolean | undefined;
|
|
2348
3014
|
}[];
|
|
2349
3015
|
type: "selectBox";
|
|
2350
|
-
attributes
|
|
3016
|
+
attributes: {
|
|
3017
|
+
multiple: false;
|
|
2351
3018
|
label?: string | undefined;
|
|
2352
3019
|
help?: string | undefined;
|
|
2353
3020
|
labelTranslationKey?: string | undefined;
|
|
2354
|
-
|
|
2355
|
-
} | undefined;
|
|
3021
|
+
};
|
|
2356
3022
|
meta?: {
|
|
2357
3023
|
schemaVersion: "1.0";
|
|
3024
|
+
title?: "Select Box" | undefined;
|
|
3025
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
3026
|
+
defaultJSON?: string | undefined;
|
|
2358
3027
|
} | undefined;
|
|
2359
3028
|
} | {
|
|
2360
3029
|
type: "filteredSearch";
|
|
@@ -2384,9 +3053,18 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2384
3053
|
} | undefined;
|
|
2385
3054
|
meta?: {
|
|
2386
3055
|
schemaVersion: "1.0";
|
|
3056
|
+
title?: "Not yet implemented" | undefined;
|
|
3057
|
+
usageDescription?: string | undefined;
|
|
3058
|
+
defaultJSON?: string | undefined;
|
|
2387
3059
|
} | undefined;
|
|
2388
3060
|
} | {
|
|
2389
|
-
type: "
|
|
3061
|
+
type: "affiliationSearch";
|
|
3062
|
+
meta: {
|
|
3063
|
+
schemaVersion: "1.0";
|
|
3064
|
+
title?: "Affiliation Search" | undefined;
|
|
3065
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
3066
|
+
defaultJSON?: string | undefined;
|
|
3067
|
+
};
|
|
2390
3068
|
graphQL: {
|
|
2391
3069
|
displayFields: {
|
|
2392
3070
|
label: string;
|
|
@@ -2410,9 +3088,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2410
3088
|
help?: string | undefined;
|
|
2411
3089
|
labelTranslationKey?: string | undefined;
|
|
2412
3090
|
} | undefined;
|
|
2413
|
-
meta?: {
|
|
2414
|
-
schemaVersion: "1.0";
|
|
2415
|
-
} | undefined;
|
|
2416
3091
|
};
|
|
2417
3092
|
heading?: string | undefined;
|
|
2418
3093
|
}, {
|
|
@@ -2429,6 +3104,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2429
3104
|
} | undefined;
|
|
2430
3105
|
meta?: {
|
|
2431
3106
|
schemaVersion: "1.0";
|
|
3107
|
+
title?: "Currency Field" | undefined;
|
|
3108
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
3109
|
+
defaultJSON?: string | undefined;
|
|
2432
3110
|
} | undefined;
|
|
2433
3111
|
} | {
|
|
2434
3112
|
type: "number";
|
|
@@ -2442,6 +3120,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2442
3120
|
} | undefined;
|
|
2443
3121
|
meta?: {
|
|
2444
3122
|
schemaVersion: "1.0";
|
|
3123
|
+
title?: "Number Field" | undefined;
|
|
3124
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
3125
|
+
defaultJSON?: string | undefined;
|
|
2445
3126
|
} | undefined;
|
|
2446
3127
|
} | {
|
|
2447
3128
|
type: "email";
|
|
@@ -2456,13 +3137,12 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2456
3137
|
} | undefined;
|
|
2457
3138
|
meta?: {
|
|
2458
3139
|
schemaVersion: "1.0";
|
|
3140
|
+
title?: "Email Field" | undefined;
|
|
3141
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
3142
|
+
defaultJSON?: string | undefined;
|
|
2459
3143
|
} | undefined;
|
|
2460
3144
|
} | {
|
|
2461
3145
|
type: "textArea";
|
|
2462
|
-
meta: {
|
|
2463
|
-
schemaVersion: "1.0";
|
|
2464
|
-
asRichText?: boolean | undefined;
|
|
2465
|
-
};
|
|
2466
3146
|
attributes?: {
|
|
2467
3147
|
label?: string | undefined;
|
|
2468
3148
|
help?: string | undefined;
|
|
@@ -2471,6 +3151,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2471
3151
|
minLength?: number | undefined;
|
|
2472
3152
|
cols?: number | undefined;
|
|
2473
3153
|
rows?: number | undefined;
|
|
3154
|
+
asRichText?: boolean | undefined;
|
|
3155
|
+
} | undefined;
|
|
3156
|
+
meta?: {
|
|
3157
|
+
schemaVersion: "1.0";
|
|
3158
|
+
title?: "Text Area" | undefined;
|
|
3159
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
3160
|
+
defaultJSON?: string | undefined;
|
|
2474
3161
|
} | undefined;
|
|
2475
3162
|
} | {
|
|
2476
3163
|
type: "text";
|
|
@@ -2484,6 +3171,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2484
3171
|
} | undefined;
|
|
2485
3172
|
meta?: {
|
|
2486
3173
|
schemaVersion: "1.0";
|
|
3174
|
+
title?: "Text Field" | undefined;
|
|
3175
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
3176
|
+
defaultJSON?: string | undefined;
|
|
2487
3177
|
} | undefined;
|
|
2488
3178
|
} | {
|
|
2489
3179
|
type: "url";
|
|
@@ -2497,6 +3187,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2497
3187
|
} | undefined;
|
|
2498
3188
|
meta?: {
|
|
2499
3189
|
schemaVersion: "1.0";
|
|
3190
|
+
title?: "URL Field" | undefined;
|
|
3191
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
3192
|
+
defaultJSON?: string | undefined;
|
|
2500
3193
|
} | undefined;
|
|
2501
3194
|
} | {
|
|
2502
3195
|
type: "date";
|
|
@@ -2510,6 +3203,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2510
3203
|
} | undefined;
|
|
2511
3204
|
meta?: {
|
|
2512
3205
|
schemaVersion: "1.0";
|
|
3206
|
+
title?: "Date Field" | undefined;
|
|
3207
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
3208
|
+
defaultJSON?: string | undefined;
|
|
2513
3209
|
} | undefined;
|
|
2514
3210
|
} | {
|
|
2515
3211
|
type: "dateRange";
|
|
@@ -2538,17 +3234,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2538
3234
|
} | undefined;
|
|
2539
3235
|
meta?: {
|
|
2540
3236
|
schemaVersion: "1.0";
|
|
3237
|
+
title?: "Date Range" | undefined;
|
|
3238
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
3239
|
+
defaultJSON?: string | undefined;
|
|
2541
3240
|
} | undefined;
|
|
2542
3241
|
} | {
|
|
2543
3242
|
type: "boolean";
|
|
2544
|
-
attributes
|
|
3243
|
+
attributes?: {
|
|
2545
3244
|
label?: string | undefined;
|
|
2546
3245
|
help?: string | undefined;
|
|
2547
3246
|
labelTranslationKey?: string | undefined;
|
|
2548
3247
|
checked?: boolean | undefined;
|
|
2549
|
-
};
|
|
3248
|
+
} | undefined;
|
|
2550
3249
|
meta?: {
|
|
2551
3250
|
schemaVersion: "1.0";
|
|
3251
|
+
title?: "Yes/No Field" | undefined;
|
|
3252
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
3253
|
+
defaultJSON?: string | undefined;
|
|
2552
3254
|
} | undefined;
|
|
2553
3255
|
} | {
|
|
2554
3256
|
options: {
|
|
@@ -2564,6 +3266,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2564
3266
|
} | undefined;
|
|
2565
3267
|
meta?: {
|
|
2566
3268
|
schemaVersion: "1.0";
|
|
3269
|
+
title?: "Check Boxes" | undefined;
|
|
3270
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
3271
|
+
defaultJSON?: string | undefined;
|
|
2567
3272
|
} | undefined;
|
|
2568
3273
|
} | {
|
|
2569
3274
|
options: {
|
|
@@ -2579,6 +3284,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2579
3284
|
} | undefined;
|
|
2580
3285
|
meta?: {
|
|
2581
3286
|
schemaVersion: "1.0";
|
|
3287
|
+
title?: "Radio Buttons" | undefined;
|
|
3288
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
3289
|
+
defaultJSON?: string | undefined;
|
|
2582
3290
|
} | undefined;
|
|
2583
3291
|
} | {
|
|
2584
3292
|
options: {
|
|
@@ -2587,14 +3295,17 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2587
3295
|
selected?: boolean | undefined;
|
|
2588
3296
|
}[];
|
|
2589
3297
|
type: "selectBox";
|
|
2590
|
-
attributes
|
|
3298
|
+
attributes: {
|
|
3299
|
+
multiple: false;
|
|
2591
3300
|
label?: string | undefined;
|
|
2592
3301
|
help?: string | undefined;
|
|
2593
3302
|
labelTranslationKey?: string | undefined;
|
|
2594
|
-
|
|
2595
|
-
} | undefined;
|
|
3303
|
+
};
|
|
2596
3304
|
meta?: {
|
|
2597
3305
|
schemaVersion: "1.0";
|
|
3306
|
+
title?: "Select Box" | undefined;
|
|
3307
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
3308
|
+
defaultJSON?: string | undefined;
|
|
2598
3309
|
} | undefined;
|
|
2599
3310
|
} | {
|
|
2600
3311
|
type: "filteredSearch";
|
|
@@ -2624,9 +3335,18 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2624
3335
|
} | undefined;
|
|
2625
3336
|
meta?: {
|
|
2626
3337
|
schemaVersion: "1.0";
|
|
3338
|
+
title?: "Not yet implemented" | undefined;
|
|
3339
|
+
usageDescription?: string | undefined;
|
|
3340
|
+
defaultJSON?: string | undefined;
|
|
2627
3341
|
} | undefined;
|
|
2628
3342
|
} | {
|
|
2629
|
-
type: "
|
|
3343
|
+
type: "affiliationSearch";
|
|
3344
|
+
meta: {
|
|
3345
|
+
schemaVersion: "1.0";
|
|
3346
|
+
title?: "Affiliation Search" | undefined;
|
|
3347
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
3348
|
+
defaultJSON?: string | undefined;
|
|
3349
|
+
};
|
|
2630
3350
|
graphQL: {
|
|
2631
3351
|
displayFields: {
|
|
2632
3352
|
label: string;
|
|
@@ -2650,9 +3370,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2650
3370
|
help?: string | undefined;
|
|
2651
3371
|
labelTranslationKey?: string | undefined;
|
|
2652
3372
|
} | undefined;
|
|
2653
|
-
meta?: {
|
|
2654
|
-
schemaVersion: "1.0";
|
|
2655
|
-
} | undefined;
|
|
2656
3373
|
};
|
|
2657
3374
|
heading?: string | undefined;
|
|
2658
3375
|
}>, "many">;
|
|
@@ -2685,6 +3402,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2685
3402
|
maxRows?: number | undefined;
|
|
2686
3403
|
minRows?: number | undefined;
|
|
2687
3404
|
}>>;
|
|
3405
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
3406
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
3407
|
+
} & {
|
|
3408
|
+
title: z.ZodOptional<z.ZodLiteral<"Table">>;
|
|
3409
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a tabular format.">>;
|
|
3410
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
3411
|
+
}, "strip", z.ZodTypeAny, {
|
|
3412
|
+
schemaVersion: "1.0";
|
|
3413
|
+
title?: "Table" | undefined;
|
|
3414
|
+
usageDescription?: "For questions that require a tabular format." | undefined;
|
|
3415
|
+
defaultJSON?: string | undefined;
|
|
3416
|
+
}, {
|
|
3417
|
+
schemaVersion: "1.0";
|
|
3418
|
+
title?: "Table" | undefined;
|
|
3419
|
+
usageDescription?: "For questions that require a tabular format." | undefined;
|
|
3420
|
+
defaultJSON?: string | undefined;
|
|
3421
|
+
}>>;
|
|
2688
3422
|
}, "strip", z.ZodTypeAny, {
|
|
2689
3423
|
type: "table";
|
|
2690
3424
|
columns: {
|
|
@@ -2701,6 +3435,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2701
3435
|
} | undefined;
|
|
2702
3436
|
meta?: {
|
|
2703
3437
|
schemaVersion: "1.0";
|
|
3438
|
+
title?: "Currency Field" | undefined;
|
|
3439
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
3440
|
+
defaultJSON?: string | undefined;
|
|
2704
3441
|
} | undefined;
|
|
2705
3442
|
} | {
|
|
2706
3443
|
type: "number";
|
|
@@ -2714,6 +3451,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2714
3451
|
} | undefined;
|
|
2715
3452
|
meta?: {
|
|
2716
3453
|
schemaVersion: "1.0";
|
|
3454
|
+
title?: "Number Field" | undefined;
|
|
3455
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
3456
|
+
defaultJSON?: string | undefined;
|
|
2717
3457
|
} | undefined;
|
|
2718
3458
|
} | {
|
|
2719
3459
|
type: "email";
|
|
@@ -2728,13 +3468,12 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2728
3468
|
} | undefined;
|
|
2729
3469
|
meta?: {
|
|
2730
3470
|
schemaVersion: "1.0";
|
|
3471
|
+
title?: "Email Field" | undefined;
|
|
3472
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
3473
|
+
defaultJSON?: string | undefined;
|
|
2731
3474
|
} | undefined;
|
|
2732
3475
|
} | {
|
|
2733
3476
|
type: "textArea";
|
|
2734
|
-
meta: {
|
|
2735
|
-
schemaVersion: "1.0";
|
|
2736
|
-
asRichText?: boolean | undefined;
|
|
2737
|
-
};
|
|
2738
3477
|
attributes?: {
|
|
2739
3478
|
label?: string | undefined;
|
|
2740
3479
|
help?: string | undefined;
|
|
@@ -2743,6 +3482,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2743
3482
|
minLength?: number | undefined;
|
|
2744
3483
|
cols?: number | undefined;
|
|
2745
3484
|
rows?: number | undefined;
|
|
3485
|
+
asRichText?: boolean | undefined;
|
|
3486
|
+
} | undefined;
|
|
3487
|
+
meta?: {
|
|
3488
|
+
schemaVersion: "1.0";
|
|
3489
|
+
title?: "Text Area" | undefined;
|
|
3490
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
3491
|
+
defaultJSON?: string | undefined;
|
|
2746
3492
|
} | undefined;
|
|
2747
3493
|
} | {
|
|
2748
3494
|
type: "text";
|
|
@@ -2756,6 +3502,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2756
3502
|
} | undefined;
|
|
2757
3503
|
meta?: {
|
|
2758
3504
|
schemaVersion: "1.0";
|
|
3505
|
+
title?: "Text Field" | undefined;
|
|
3506
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
3507
|
+
defaultJSON?: string | undefined;
|
|
2759
3508
|
} | undefined;
|
|
2760
3509
|
} | {
|
|
2761
3510
|
type: "url";
|
|
@@ -2769,6 +3518,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2769
3518
|
} | undefined;
|
|
2770
3519
|
meta?: {
|
|
2771
3520
|
schemaVersion: "1.0";
|
|
3521
|
+
title?: "URL Field" | undefined;
|
|
3522
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
3523
|
+
defaultJSON?: string | undefined;
|
|
2772
3524
|
} | undefined;
|
|
2773
3525
|
} | {
|
|
2774
3526
|
type: "date";
|
|
@@ -2782,6 +3534,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2782
3534
|
} | undefined;
|
|
2783
3535
|
meta?: {
|
|
2784
3536
|
schemaVersion: "1.0";
|
|
3537
|
+
title?: "Date Field" | undefined;
|
|
3538
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
3539
|
+
defaultJSON?: string | undefined;
|
|
2785
3540
|
} | undefined;
|
|
2786
3541
|
} | {
|
|
2787
3542
|
type: "dateRange";
|
|
@@ -2810,17 +3565,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2810
3565
|
} | undefined;
|
|
2811
3566
|
meta?: {
|
|
2812
3567
|
schemaVersion: "1.0";
|
|
3568
|
+
title?: "Date Range" | undefined;
|
|
3569
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
3570
|
+
defaultJSON?: string | undefined;
|
|
2813
3571
|
} | undefined;
|
|
2814
3572
|
} | {
|
|
2815
3573
|
type: "boolean";
|
|
2816
|
-
attributes
|
|
3574
|
+
attributes?: {
|
|
2817
3575
|
label?: string | undefined;
|
|
2818
3576
|
help?: string | undefined;
|
|
2819
3577
|
labelTranslationKey?: string | undefined;
|
|
2820
3578
|
checked?: boolean | undefined;
|
|
2821
|
-
};
|
|
3579
|
+
} | undefined;
|
|
2822
3580
|
meta?: {
|
|
2823
3581
|
schemaVersion: "1.0";
|
|
3582
|
+
title?: "Yes/No Field" | undefined;
|
|
3583
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
3584
|
+
defaultJSON?: string | undefined;
|
|
2824
3585
|
} | undefined;
|
|
2825
3586
|
} | {
|
|
2826
3587
|
options: {
|
|
@@ -2836,6 +3597,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2836
3597
|
} | undefined;
|
|
2837
3598
|
meta?: {
|
|
2838
3599
|
schemaVersion: "1.0";
|
|
3600
|
+
title?: "Check Boxes" | undefined;
|
|
3601
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
3602
|
+
defaultJSON?: string | undefined;
|
|
2839
3603
|
} | undefined;
|
|
2840
3604
|
} | {
|
|
2841
3605
|
options: {
|
|
@@ -2851,6 +3615,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2851
3615
|
} | undefined;
|
|
2852
3616
|
meta?: {
|
|
2853
3617
|
schemaVersion: "1.0";
|
|
3618
|
+
title?: "Radio Buttons" | undefined;
|
|
3619
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
3620
|
+
defaultJSON?: string | undefined;
|
|
2854
3621
|
} | undefined;
|
|
2855
3622
|
} | {
|
|
2856
3623
|
options: {
|
|
@@ -2859,14 +3626,17 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2859
3626
|
selected?: boolean | undefined;
|
|
2860
3627
|
}[];
|
|
2861
3628
|
type: "selectBox";
|
|
2862
|
-
attributes
|
|
3629
|
+
attributes: {
|
|
3630
|
+
multiple: false;
|
|
2863
3631
|
label?: string | undefined;
|
|
2864
3632
|
help?: string | undefined;
|
|
2865
3633
|
labelTranslationKey?: string | undefined;
|
|
2866
|
-
|
|
2867
|
-
} | undefined;
|
|
3634
|
+
};
|
|
2868
3635
|
meta?: {
|
|
2869
3636
|
schemaVersion: "1.0";
|
|
3637
|
+
title?: "Select Box" | undefined;
|
|
3638
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
3639
|
+
defaultJSON?: string | undefined;
|
|
2870
3640
|
} | undefined;
|
|
2871
3641
|
} | {
|
|
2872
3642
|
type: "filteredSearch";
|
|
@@ -2896,9 +3666,18 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2896
3666
|
} | undefined;
|
|
2897
3667
|
meta?: {
|
|
2898
3668
|
schemaVersion: "1.0";
|
|
3669
|
+
title?: "Not yet implemented" | undefined;
|
|
3670
|
+
usageDescription?: string | undefined;
|
|
3671
|
+
defaultJSON?: string | undefined;
|
|
2899
3672
|
} | undefined;
|
|
2900
3673
|
} | {
|
|
2901
|
-
type: "
|
|
3674
|
+
type: "affiliationSearch";
|
|
3675
|
+
meta: {
|
|
3676
|
+
schemaVersion: "1.0";
|
|
3677
|
+
title?: "Affiliation Search" | undefined;
|
|
3678
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
3679
|
+
defaultJSON?: string | undefined;
|
|
3680
|
+
};
|
|
2902
3681
|
graphQL: {
|
|
2903
3682
|
displayFields: {
|
|
2904
3683
|
label: string;
|
|
@@ -2922,9 +3701,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2922
3701
|
help?: string | undefined;
|
|
2923
3702
|
labelTranslationKey?: string | undefined;
|
|
2924
3703
|
} | undefined;
|
|
2925
|
-
meta?: {
|
|
2926
|
-
schemaVersion: "1.0";
|
|
2927
|
-
} | undefined;
|
|
2928
3704
|
};
|
|
2929
3705
|
heading?: string | undefined;
|
|
2930
3706
|
}[];
|
|
@@ -2940,6 +3716,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2940
3716
|
} | undefined;
|
|
2941
3717
|
meta?: {
|
|
2942
3718
|
schemaVersion: "1.0";
|
|
3719
|
+
title?: "Table" | undefined;
|
|
3720
|
+
usageDescription?: "For questions that require a tabular format." | undefined;
|
|
3721
|
+
defaultJSON?: string | undefined;
|
|
2943
3722
|
} | undefined;
|
|
2944
3723
|
}, {
|
|
2945
3724
|
type: "table";
|
|
@@ -2957,6 +3736,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2957
3736
|
} | undefined;
|
|
2958
3737
|
meta?: {
|
|
2959
3738
|
schemaVersion: "1.0";
|
|
3739
|
+
title?: "Currency Field" | undefined;
|
|
3740
|
+
usageDescription?: "For questions that require a monetary amount (e.g. Cost or Budget)." | undefined;
|
|
3741
|
+
defaultJSON?: string | undefined;
|
|
2960
3742
|
} | undefined;
|
|
2961
3743
|
} | {
|
|
2962
3744
|
type: "number";
|
|
@@ -2970,6 +3752,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2970
3752
|
} | undefined;
|
|
2971
3753
|
meta?: {
|
|
2972
3754
|
schemaVersion: "1.0";
|
|
3755
|
+
title?: "Number Field" | undefined;
|
|
3756
|
+
usageDescription?: "For questions that require a single numeric value." | undefined;
|
|
3757
|
+
defaultJSON?: string | undefined;
|
|
2973
3758
|
} | undefined;
|
|
2974
3759
|
} | {
|
|
2975
3760
|
type: "email";
|
|
@@ -2984,13 +3769,12 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2984
3769
|
} | undefined;
|
|
2985
3770
|
meta?: {
|
|
2986
3771
|
schemaVersion: "1.0";
|
|
3772
|
+
title?: "Email Field" | undefined;
|
|
3773
|
+
usageDescription?: "For questions that require require email address(es)." | undefined;
|
|
3774
|
+
defaultJSON?: string | undefined;
|
|
2987
3775
|
} | undefined;
|
|
2988
3776
|
} | {
|
|
2989
3777
|
type: "textArea";
|
|
2990
|
-
meta: {
|
|
2991
|
-
schemaVersion: "1.0";
|
|
2992
|
-
asRichText?: boolean | undefined;
|
|
2993
|
-
};
|
|
2994
3778
|
attributes?: {
|
|
2995
3779
|
label?: string | undefined;
|
|
2996
3780
|
help?: string | undefined;
|
|
@@ -2999,6 +3783,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
2999
3783
|
minLength?: number | undefined;
|
|
3000
3784
|
cols?: number | undefined;
|
|
3001
3785
|
rows?: number | undefined;
|
|
3786
|
+
asRichText?: boolean | undefined;
|
|
3787
|
+
} | undefined;
|
|
3788
|
+
meta?: {
|
|
3789
|
+
schemaVersion: "1.0";
|
|
3790
|
+
title?: "Text Area" | undefined;
|
|
3791
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
3792
|
+
defaultJSON?: string | undefined;
|
|
3002
3793
|
} | undefined;
|
|
3003
3794
|
} | {
|
|
3004
3795
|
type: "text";
|
|
@@ -3012,6 +3803,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3012
3803
|
} | undefined;
|
|
3013
3804
|
meta?: {
|
|
3014
3805
|
schemaVersion: "1.0";
|
|
3806
|
+
title?: "Text Field" | undefined;
|
|
3807
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
3808
|
+
defaultJSON?: string | undefined;
|
|
3015
3809
|
} | undefined;
|
|
3016
3810
|
} | {
|
|
3017
3811
|
type: "url";
|
|
@@ -3025,6 +3819,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3025
3819
|
} | undefined;
|
|
3026
3820
|
meta?: {
|
|
3027
3821
|
schemaVersion: "1.0";
|
|
3822
|
+
title?: "URL Field" | undefined;
|
|
3823
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
3824
|
+
defaultJSON?: string | undefined;
|
|
3028
3825
|
} | undefined;
|
|
3029
3826
|
} | {
|
|
3030
3827
|
type: "date";
|
|
@@ -3038,6 +3835,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3038
3835
|
} | undefined;
|
|
3039
3836
|
meta?: {
|
|
3040
3837
|
schemaVersion: "1.0";
|
|
3838
|
+
title?: "Date Field" | undefined;
|
|
3839
|
+
usageDescription?: "For questions that require a date." | undefined;
|
|
3840
|
+
defaultJSON?: string | undefined;
|
|
3041
3841
|
} | undefined;
|
|
3042
3842
|
} | {
|
|
3043
3843
|
type: "dateRange";
|
|
@@ -3066,17 +3866,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3066
3866
|
} | undefined;
|
|
3067
3867
|
meta?: {
|
|
3068
3868
|
schemaVersion: "1.0";
|
|
3869
|
+
title?: "Date Range" | undefined;
|
|
3870
|
+
usageDescription?: "For questions that require a date range (e.g. From/To, Start/End)" | undefined;
|
|
3871
|
+
defaultJSON?: string | undefined;
|
|
3069
3872
|
} | undefined;
|
|
3070
3873
|
} | {
|
|
3071
3874
|
type: "boolean";
|
|
3072
|
-
attributes
|
|
3875
|
+
attributes?: {
|
|
3073
3876
|
label?: string | undefined;
|
|
3074
3877
|
help?: string | undefined;
|
|
3075
3878
|
labelTranslationKey?: string | undefined;
|
|
3076
3879
|
checked?: boolean | undefined;
|
|
3077
|
-
};
|
|
3880
|
+
} | undefined;
|
|
3078
3881
|
meta?: {
|
|
3079
3882
|
schemaVersion: "1.0";
|
|
3883
|
+
title?: "Yes/No Field" | undefined;
|
|
3884
|
+
usageDescription?: "For questions that require a simple Yes/No response." | undefined;
|
|
3885
|
+
defaultJSON?: string | undefined;
|
|
3080
3886
|
} | undefined;
|
|
3081
3887
|
} | {
|
|
3082
3888
|
options: {
|
|
@@ -3092,6 +3898,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3092
3898
|
} | undefined;
|
|
3093
3899
|
meta?: {
|
|
3094
3900
|
schemaVersion: "1.0";
|
|
3901
|
+
title?: "Check Boxes" | undefined;
|
|
3902
|
+
usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
|
|
3903
|
+
defaultJSON?: string | undefined;
|
|
3095
3904
|
} | undefined;
|
|
3096
3905
|
} | {
|
|
3097
3906
|
options: {
|
|
@@ -3107,6 +3916,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3107
3916
|
} | undefined;
|
|
3108
3917
|
meta?: {
|
|
3109
3918
|
schemaVersion: "1.0";
|
|
3919
|
+
title?: "Radio Buttons" | undefined;
|
|
3920
|
+
usageDescription?: "For multiple choice questions where users select just one option." | undefined;
|
|
3921
|
+
defaultJSON?: string | undefined;
|
|
3110
3922
|
} | undefined;
|
|
3111
3923
|
} | {
|
|
3112
3924
|
options: {
|
|
@@ -3115,14 +3927,17 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3115
3927
|
selected?: boolean | undefined;
|
|
3116
3928
|
}[];
|
|
3117
3929
|
type: "selectBox";
|
|
3118
|
-
attributes
|
|
3930
|
+
attributes: {
|
|
3931
|
+
multiple: false;
|
|
3119
3932
|
label?: string | undefined;
|
|
3120
3933
|
help?: string | undefined;
|
|
3121
3934
|
labelTranslationKey?: string | undefined;
|
|
3122
|
-
|
|
3123
|
-
} | undefined;
|
|
3935
|
+
};
|
|
3124
3936
|
meta?: {
|
|
3125
3937
|
schemaVersion: "1.0";
|
|
3938
|
+
title?: "Select Box" | undefined;
|
|
3939
|
+
usageDescription?: "For questions where users select one option from a list." | undefined;
|
|
3940
|
+
defaultJSON?: string | undefined;
|
|
3126
3941
|
} | undefined;
|
|
3127
3942
|
} | {
|
|
3128
3943
|
type: "filteredSearch";
|
|
@@ -3152,9 +3967,18 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3152
3967
|
} | undefined;
|
|
3153
3968
|
meta?: {
|
|
3154
3969
|
schemaVersion: "1.0";
|
|
3970
|
+
title?: "Not yet implemented" | undefined;
|
|
3971
|
+
usageDescription?: string | undefined;
|
|
3972
|
+
defaultJSON?: string | undefined;
|
|
3155
3973
|
} | undefined;
|
|
3156
3974
|
} | {
|
|
3157
|
-
type: "
|
|
3975
|
+
type: "affiliationSearch";
|
|
3976
|
+
meta: {
|
|
3977
|
+
schemaVersion: "1.0";
|
|
3978
|
+
title?: "Affiliation Search" | undefined;
|
|
3979
|
+
usageDescription?: "For questions that require the user to select from a controlled list of institutions." | undefined;
|
|
3980
|
+
defaultJSON?: string | undefined;
|
|
3981
|
+
};
|
|
3158
3982
|
graphQL: {
|
|
3159
3983
|
displayFields: {
|
|
3160
3984
|
label: string;
|
|
@@ -3178,9 +4002,6 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3178
4002
|
help?: string | undefined;
|
|
3179
4003
|
labelTranslationKey?: string | undefined;
|
|
3180
4004
|
} | undefined;
|
|
3181
|
-
meta?: {
|
|
3182
|
-
schemaVersion: "1.0";
|
|
3183
|
-
} | undefined;
|
|
3184
4005
|
};
|
|
3185
4006
|
heading?: string | undefined;
|
|
3186
4007
|
}[];
|
|
@@ -3196,6 +4017,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3196
4017
|
} | undefined;
|
|
3197
4018
|
meta?: {
|
|
3198
4019
|
schemaVersion: "1.0";
|
|
4020
|
+
title?: "Table" | undefined;
|
|
4021
|
+
usageDescription?: "For questions that require a tabular format." | undefined;
|
|
4022
|
+
defaultJSON?: string | undefined;
|
|
3199
4023
|
} | undefined;
|
|
3200
4024
|
}>, z.ZodObject<{} & {
|
|
3201
4025
|
type: z.ZodLiteral<"textArea">;
|
|
@@ -3208,6 +4032,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3208
4032
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3209
4033
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
3210
4034
|
rows: z.ZodOptional<z.ZodNumber>;
|
|
4035
|
+
asRichText: z.ZodOptional<z.ZodBoolean>;
|
|
3211
4036
|
}, "strip", z.ZodTypeAny, {
|
|
3212
4037
|
label?: string | undefined;
|
|
3213
4038
|
help?: string | undefined;
|
|
@@ -3216,6 +4041,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3216
4041
|
minLength?: number | undefined;
|
|
3217
4042
|
cols?: number | undefined;
|
|
3218
4043
|
rows?: number | undefined;
|
|
4044
|
+
asRichText?: boolean | undefined;
|
|
3219
4045
|
}, {
|
|
3220
4046
|
label?: string | undefined;
|
|
3221
4047
|
help?: string | undefined;
|
|
@@ -3224,24 +4050,27 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3224
4050
|
minLength?: number | undefined;
|
|
3225
4051
|
cols?: number | undefined;
|
|
3226
4052
|
rows?: number | undefined;
|
|
4053
|
+
asRichText?: boolean | undefined;
|
|
3227
4054
|
}>>;
|
|
3228
|
-
meta: z.ZodObject<{
|
|
4055
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
3229
4056
|
schemaVersion: z.ZodLiteral<"1.0">;
|
|
3230
4057
|
} & {
|
|
3231
|
-
|
|
4058
|
+
title: z.ZodOptional<z.ZodLiteral<"Text Area">>;
|
|
4059
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require longer answers, you can select formatting options too.">>;
|
|
4060
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
3232
4061
|
}, "strip", z.ZodTypeAny, {
|
|
3233
4062
|
schemaVersion: "1.0";
|
|
3234
|
-
|
|
4063
|
+
title?: "Text Area" | undefined;
|
|
4064
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
4065
|
+
defaultJSON?: string | undefined;
|
|
3235
4066
|
}, {
|
|
3236
4067
|
schemaVersion: "1.0";
|
|
3237
|
-
|
|
3238
|
-
|
|
4068
|
+
title?: "Text Area" | undefined;
|
|
4069
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
4070
|
+
defaultJSON?: string | undefined;
|
|
4071
|
+
}>>;
|
|
3239
4072
|
}, "strip", z.ZodTypeAny, {
|
|
3240
4073
|
type: "textArea";
|
|
3241
|
-
meta: {
|
|
3242
|
-
schemaVersion: "1.0";
|
|
3243
|
-
asRichText?: boolean | undefined;
|
|
3244
|
-
};
|
|
3245
4074
|
attributes?: {
|
|
3246
4075
|
label?: string | undefined;
|
|
3247
4076
|
help?: string | undefined;
|
|
@@ -3250,13 +4079,16 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3250
4079
|
minLength?: number | undefined;
|
|
3251
4080
|
cols?: number | undefined;
|
|
3252
4081
|
rows?: number | undefined;
|
|
4082
|
+
asRichText?: boolean | undefined;
|
|
4083
|
+
} | undefined;
|
|
4084
|
+
meta?: {
|
|
4085
|
+
schemaVersion: "1.0";
|
|
4086
|
+
title?: "Text Area" | undefined;
|
|
4087
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
4088
|
+
defaultJSON?: string | undefined;
|
|
3253
4089
|
} | undefined;
|
|
3254
4090
|
}, {
|
|
3255
4091
|
type: "textArea";
|
|
3256
|
-
meta: {
|
|
3257
|
-
schemaVersion: "1.0";
|
|
3258
|
-
asRichText?: boolean | undefined;
|
|
3259
|
-
};
|
|
3260
4092
|
attributes?: {
|
|
3261
4093
|
label?: string | undefined;
|
|
3262
4094
|
help?: string | undefined;
|
|
@@ -3265,16 +4097,15 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3265
4097
|
minLength?: number | undefined;
|
|
3266
4098
|
cols?: number | undefined;
|
|
3267
4099
|
rows?: number | undefined;
|
|
4100
|
+
asRichText?: boolean | undefined;
|
|
3268
4101
|
} | undefined;
|
|
3269
|
-
|
|
3270
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
3271
|
-
schemaVersion: z.ZodLiteral<"1.0">;
|
|
3272
|
-
}, "strip", z.ZodTypeAny, {
|
|
3273
|
-
schemaVersion: "1.0";
|
|
3274
|
-
}, {
|
|
4102
|
+
meta?: {
|
|
3275
4103
|
schemaVersion: "1.0";
|
|
3276
|
-
|
|
3277
|
-
|
|
4104
|
+
title?: "Text Area" | undefined;
|
|
4105
|
+
usageDescription?: "For questions that require longer answers, you can select formatting options too." | undefined;
|
|
4106
|
+
defaultJSON?: string | undefined;
|
|
4107
|
+
} | undefined;
|
|
4108
|
+
}>, z.ZodObject<{} & {
|
|
3278
4109
|
type: z.ZodLiteral<"text">;
|
|
3279
4110
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
3280
4111
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -3299,6 +4130,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3299
4130
|
minLength?: number | undefined;
|
|
3300
4131
|
pattern?: string | undefined;
|
|
3301
4132
|
}>>;
|
|
4133
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
4134
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
4135
|
+
} & {
|
|
4136
|
+
title: z.ZodOptional<z.ZodLiteral<"Text Field">>;
|
|
4137
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require short, simple answers.">>;
|
|
4138
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
4139
|
+
}, "strip", z.ZodTypeAny, {
|
|
4140
|
+
schemaVersion: "1.0";
|
|
4141
|
+
title?: "Text Field" | undefined;
|
|
4142
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
4143
|
+
defaultJSON?: string | undefined;
|
|
4144
|
+
}, {
|
|
4145
|
+
schemaVersion: "1.0";
|
|
4146
|
+
title?: "Text Field" | undefined;
|
|
4147
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
4148
|
+
defaultJSON?: string | undefined;
|
|
4149
|
+
}>>;
|
|
3302
4150
|
}, "strip", z.ZodTypeAny, {
|
|
3303
4151
|
type: "text";
|
|
3304
4152
|
attributes?: {
|
|
@@ -3311,6 +4159,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3311
4159
|
} | undefined;
|
|
3312
4160
|
meta?: {
|
|
3313
4161
|
schemaVersion: "1.0";
|
|
4162
|
+
title?: "Text Field" | undefined;
|
|
4163
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
4164
|
+
defaultJSON?: string | undefined;
|
|
3314
4165
|
} | undefined;
|
|
3315
4166
|
}, {
|
|
3316
4167
|
type: "text";
|
|
@@ -3324,169 +4175,11 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3324
4175
|
} | undefined;
|
|
3325
4176
|
meta?: {
|
|
3326
4177
|
schemaVersion: "1.0";
|
|
4178
|
+
title?: "Text Field" | undefined;
|
|
4179
|
+
usageDescription?: "For questions that require short, simple answers." | undefined;
|
|
4180
|
+
defaultJSON?: string | undefined;
|
|
3327
4181
|
} | 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
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
3343
|
-
schemaVersion: z.ZodLiteral<"1.0">;
|
|
3344
|
-
}, "strip", z.ZodTypeAny, {
|
|
3345
|
-
schemaVersion: "1.0";
|
|
3346
|
-
}, {
|
|
3347
|
-
schemaVersion: "1.0";
|
|
3348
|
-
}>>;
|
|
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
|
-
}, "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
|
-
};
|
|
3445
|
-
attributes?: {
|
|
3446
|
-
label?: string | undefined;
|
|
3447
|
-
help?: string | undefined;
|
|
3448
|
-
labelTranslationKey?: string | undefined;
|
|
3449
|
-
} | undefined;
|
|
3450
|
-
meta?: {
|
|
3451
|
-
schemaVersion: "1.0";
|
|
3452
|
-
} | undefined;
|
|
3453
|
-
}, {
|
|
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
|
-
};
|
|
3473
|
-
attributes?: {
|
|
3474
|
-
label?: string | undefined;
|
|
3475
|
-
help?: string | undefined;
|
|
3476
|
-
labelTranslationKey?: string | undefined;
|
|
3477
|
-
} | undefined;
|
|
3478
|
-
meta?: {
|
|
3479
|
-
schemaVersion: "1.0";
|
|
3480
|
-
} | 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
|
-
} & {
|
|
4182
|
+
}>, z.ZodObject<{} & {
|
|
3490
4183
|
type: z.ZodLiteral<"url">;
|
|
3491
4184
|
attributes: z.ZodOptional<z.ZodObject<{
|
|
3492
4185
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -3511,6 +4204,23 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3511
4204
|
minLength?: number | undefined;
|
|
3512
4205
|
pattern?: string | undefined;
|
|
3513
4206
|
}>>;
|
|
4207
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
4208
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
4209
|
+
} & {
|
|
4210
|
+
title: z.ZodOptional<z.ZodLiteral<"URL Field">>;
|
|
4211
|
+
usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a website, DOI or other URL.">>;
|
|
4212
|
+
defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
|
|
4213
|
+
}, "strip", z.ZodTypeAny, {
|
|
4214
|
+
schemaVersion: "1.0";
|
|
4215
|
+
title?: "URL Field" | undefined;
|
|
4216
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
4217
|
+
defaultJSON?: string | undefined;
|
|
4218
|
+
}, {
|
|
4219
|
+
schemaVersion: "1.0";
|
|
4220
|
+
title?: "URL Field" | undefined;
|
|
4221
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
4222
|
+
defaultJSON?: string | undefined;
|
|
4223
|
+
}>>;
|
|
3514
4224
|
}, "strip", z.ZodTypeAny, {
|
|
3515
4225
|
type: "url";
|
|
3516
4226
|
attributes?: {
|
|
@@ -3523,6 +4233,9 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3523
4233
|
} | undefined;
|
|
3524
4234
|
meta?: {
|
|
3525
4235
|
schemaVersion: "1.0";
|
|
4236
|
+
title?: "URL Field" | undefined;
|
|
4237
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
4238
|
+
defaultJSON?: string | undefined;
|
|
3526
4239
|
} | undefined;
|
|
3527
4240
|
}, {
|
|
3528
4241
|
type: "url";
|
|
@@ -3536,10 +4249,14 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
3536
4249
|
} | undefined;
|
|
3537
4250
|
meta?: {
|
|
3538
4251
|
schemaVersion: "1.0";
|
|
4252
|
+
title?: "URL Field" | undefined;
|
|
4253
|
+
usageDescription?: "For questions that require a website, DOI or other URL." | undefined;
|
|
4254
|
+
defaultJSON?: string | undefined;
|
|
3539
4255
|
} | undefined;
|
|
3540
4256
|
}>]>;
|
|
3541
4257
|
export declare const QuestionSchemaMap: Record<z.infer<typeof QuestionTypesEnum>, z.ZodTypeAny>;
|
|
3542
4258
|
export interface QuestionTypeMap {
|
|
4259
|
+
affiliationSearch: AffiliationSearchQuestionType;
|
|
3543
4260
|
boolean: BooleanQuestionType;
|
|
3544
4261
|
checkBoxes: CheckboxesQuestionType;
|
|
3545
4262
|
currency: CurrencyQuestionType;
|
|
@@ -3547,6 +4264,7 @@ export interface QuestionTypeMap {
|
|
|
3547
4264
|
dateRange: DateRangeQuestionType;
|
|
3548
4265
|
email: EmailQuestionType;
|
|
3549
4266
|
filteredSearch: FilteredSearchQuestionType;
|
|
4267
|
+
multiselectBox: MultiselectBoxQuestionType;
|
|
3550
4268
|
number: NumberQuestionType;
|
|
3551
4269
|
numberRange: NumberRangeQuestionType;
|
|
3552
4270
|
radioButtons: RadioButtonsQuestionType;
|
|
@@ -3554,7 +4272,6 @@ export interface QuestionTypeMap {
|
|
|
3554
4272
|
table: TableQuestionType;
|
|
3555
4273
|
text: TextQuestionType;
|
|
3556
4274
|
textArea: TextAreaQuestionType;
|
|
3557
|
-
typeaheadSearch: TypeaheadSearchQuestionType;
|
|
3558
4275
|
url: URLQuestionType;
|
|
3559
4276
|
}
|
|
3560
4277
|
export type AnyQuestionType = z.infer<typeof AnyQuestionSchema>;
|