@dmptool/types 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +13 -11
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +52 -13
- package/dist/questions/dateQuestions.d.ts +68 -47
- package/dist/questions/dateQuestions.js +15 -6
- package/dist/questions/graphQLQuestions.d.ts +121 -96
- package/dist/questions/graphQLQuestions.js +34 -3
- package/dist/questions/index.d.ts +1524 -1006
- package/dist/questions/index.js +4 -2
- package/dist/questions/numberQuestions.d.ts +107 -76
- package/dist/questions/numberQuestions.js +20 -7
- package/dist/questions/optionBasedQuestions.d.ts +202 -74
- package/dist/questions/optionBasedQuestions.js +41 -11
- package/dist/questions/question.d.ts +43 -4
- package/dist/questions/question.js +13 -2
- package/dist/questions/tableQuestions.d.ts +2056 -1428
- package/dist/questions/tableQuestions.js +9 -4
- package/dist/questions/textQuestions.d.ts +98 -58
- package/dist/questions/textQuestions.js +29 -15
- package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
- package/dist/schemas/affiliationSearchQuestion.schema.json +146 -0
- package/dist/schemas/anyAnswer.schema.json +41 -23
- package/dist/schemas/anyQuestion.schema.json +525 -108
- package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
- package/dist/schemas/anyTableColumnQuestion.schema.json +396 -80
- package/dist/schemas/booleanQuestion.schema.json +11 -3
- package/dist/schemas/checkboxesQuestion.schema.json +14 -7
- package/dist/schemas/currencyQuestion.schema.json +14 -3
- package/dist/schemas/dateQuestion.schema.json +10 -1
- package/dist/schemas/dateRangeQuestion.schema.json +14 -1
- package/dist/schemas/emailQuestion.schema.json +12 -2
- package/dist/schemas/filteredSearchQuestion.schema.json +7 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +85 -0
- package/dist/schemas/numberQuestion.schema.json +12 -2
- package/dist/schemas/numberRangeQuestion.schema.json +16 -2
- package/dist/schemas/radioButtonsQuestion.schema.json +14 -7
- package/dist/schemas/selectBoxAnswer.schema.json +1 -4
- package/dist/schemas/selectBoxQuestion.schema.json +17 -8
- package/dist/schemas/tableAnswer.schema.json +35 -14
- package/dist/schemas/tableQuestion.schema.json +420 -84
- package/dist/schemas/textAreaQuestion.schema.json +16 -6
- package/dist/schemas/textQuestion.schema.json +10 -1
- package/dist/schemas/urlQuestion.schema.json +10 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"properties": {
|
|
9
9
|
"type": {
|
|
10
10
|
"type": "string",
|
|
11
|
-
"const": "
|
|
11
|
+
"const": "affiliationSearch"
|
|
12
12
|
},
|
|
13
13
|
"attributes": {
|
|
14
14
|
"type": "object",
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
},
|
|
22
22
|
"labelTranslationKey": {
|
|
23
23
|
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"checked": {
|
|
26
|
-
"type": "boolean"
|
|
27
24
|
}
|
|
28
25
|
},
|
|
29
26
|
"additionalProperties": false
|
|
@@ -34,17 +31,115 @@
|
|
|
34
31
|
"schemaVersion": {
|
|
35
32
|
"type": "string",
|
|
36
33
|
"const": "1.0"
|
|
34
|
+
},
|
|
35
|
+
"title": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"const": "Affiliation Search"
|
|
38
|
+
},
|
|
39
|
+
"usageDescription": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"const": "For questions that require the user to select from a controlled list of institutions."
|
|
37
42
|
}
|
|
38
43
|
},
|
|
39
44
|
"required": [
|
|
40
45
|
"schemaVersion"
|
|
41
46
|
],
|
|
42
47
|
"additionalProperties": false
|
|
48
|
+
},
|
|
49
|
+
"graphQL": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"displayFields": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"propertyName": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"const": "displayName"
|
|
60
|
+
},
|
|
61
|
+
"label": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"default": "Institution"
|
|
64
|
+
},
|
|
65
|
+
"labelTranslationKey": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"default": "SignupPage.institution"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"propertyName"
|
|
72
|
+
],
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"localQueryId": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"query": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"const": "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}"
|
|
82
|
+
},
|
|
83
|
+
"responseField": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "affiliations.items"
|
|
86
|
+
},
|
|
87
|
+
"variables": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"name": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"const": "name"
|
|
95
|
+
},
|
|
96
|
+
"type": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"default": "string"
|
|
99
|
+
},
|
|
100
|
+
"label": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"default": "Search for your institution"
|
|
103
|
+
},
|
|
104
|
+
"minLength": {
|
|
105
|
+
"type": "number",
|
|
106
|
+
"const": 3
|
|
107
|
+
},
|
|
108
|
+
"labelTranslationKey": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"default": "SignupPage.institutionHelp"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"name",
|
|
115
|
+
"minLength"
|
|
116
|
+
],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"queryId": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"default": "useAffiliationsQuery"
|
|
123
|
+
},
|
|
124
|
+
"answerField": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"const": "uri"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": [
|
|
130
|
+
"displayFields",
|
|
131
|
+
"query",
|
|
132
|
+
"responseField",
|
|
133
|
+
"variables",
|
|
134
|
+
"answerField"
|
|
135
|
+
],
|
|
136
|
+
"additionalProperties": false
|
|
43
137
|
}
|
|
44
138
|
},
|
|
45
139
|
"required": [
|
|
46
140
|
"type",
|
|
47
|
-
"
|
|
141
|
+
"meta",
|
|
142
|
+
"graphQL"
|
|
48
143
|
],
|
|
49
144
|
"additionalProperties": false
|
|
50
145
|
},
|
|
@@ -53,7 +148,7 @@
|
|
|
53
148
|
"properties": {
|
|
54
149
|
"type": {
|
|
55
150
|
"type": "string",
|
|
56
|
-
"const": "
|
|
151
|
+
"const": "boolean"
|
|
57
152
|
},
|
|
58
153
|
"attributes": {
|
|
59
154
|
"type": "object",
|
|
@@ -66,12 +161,69 @@
|
|
|
66
161
|
},
|
|
67
162
|
"labelTranslationKey": {
|
|
68
163
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
164
|
+
},
|
|
165
|
+
"checked": {
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"default": false
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"additionalProperties": false
|
|
171
|
+
},
|
|
172
|
+
"meta": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"schemaVersion": {
|
|
176
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
177
|
+
},
|
|
178
|
+
"title": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"const": "Yes/No Field"
|
|
181
|
+
},
|
|
182
|
+
"usageDescription": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"const": "For questions that require a simple Yes/No response."
|
|
69
185
|
}
|
|
70
186
|
},
|
|
187
|
+
"required": [
|
|
188
|
+
"schemaVersion"
|
|
189
|
+
],
|
|
71
190
|
"additionalProperties": false
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": [
|
|
194
|
+
"type"
|
|
195
|
+
],
|
|
196
|
+
"additionalProperties": false
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"type": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"const": "checkBoxes"
|
|
204
|
+
},
|
|
205
|
+
"attributes": {
|
|
206
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes"
|
|
72
207
|
},
|
|
73
208
|
"meta": {
|
|
74
|
-
"
|
|
209
|
+
"type": "object",
|
|
210
|
+
"properties": {
|
|
211
|
+
"schemaVersion": {
|
|
212
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
213
|
+
},
|
|
214
|
+
"title": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"const": "Check Boxes"
|
|
217
|
+
},
|
|
218
|
+
"usageDescription": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"const": "For multiple choice questions where users can select multiple options."
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": [
|
|
224
|
+
"schemaVersion"
|
|
225
|
+
],
|
|
226
|
+
"additionalProperties": false
|
|
75
227
|
},
|
|
76
228
|
"options": {
|
|
77
229
|
"type": "array",
|
|
@@ -79,19 +231,18 @@
|
|
|
79
231
|
"type": "object",
|
|
80
232
|
"properties": {
|
|
81
233
|
"label": {
|
|
82
|
-
"type": "string"
|
|
234
|
+
"type": "string",
|
|
235
|
+
"default": "Option A"
|
|
83
236
|
},
|
|
84
237
|
"value": {
|
|
85
|
-
"type": "string"
|
|
238
|
+
"type": "string",
|
|
239
|
+
"default": "a"
|
|
86
240
|
},
|
|
87
241
|
"checked": {
|
|
88
|
-
"type": "boolean"
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"default": false
|
|
89
244
|
}
|
|
90
245
|
},
|
|
91
|
-
"required": [
|
|
92
|
-
"label",
|
|
93
|
-
"value"
|
|
94
|
-
],
|
|
95
246
|
"additionalProperties": false
|
|
96
247
|
}
|
|
97
248
|
}
|
|
@@ -125,19 +276,39 @@
|
|
|
125
276
|
"type": "number"
|
|
126
277
|
},
|
|
127
278
|
"min": {
|
|
128
|
-
"type": "number"
|
|
279
|
+
"type": "number",
|
|
280
|
+
"default": 0
|
|
129
281
|
},
|
|
130
282
|
"step": {
|
|
131
|
-
"type": "number"
|
|
283
|
+
"type": "number",
|
|
284
|
+
"default": 1
|
|
132
285
|
},
|
|
133
286
|
"denomination": {
|
|
134
|
-
"type": "string"
|
|
287
|
+
"type": "string",
|
|
288
|
+
"default": "USD"
|
|
135
289
|
}
|
|
136
290
|
},
|
|
137
291
|
"additionalProperties": false
|
|
138
292
|
},
|
|
139
293
|
"meta": {
|
|
140
|
-
"
|
|
294
|
+
"type": "object",
|
|
295
|
+
"properties": {
|
|
296
|
+
"schemaVersion": {
|
|
297
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
298
|
+
},
|
|
299
|
+
"title": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"const": "Currency Field"
|
|
302
|
+
},
|
|
303
|
+
"usageDescription": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"const": "For questions that require a monetary amount (e.g. Cost or Budget)."
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"required": [
|
|
309
|
+
"schemaVersion"
|
|
310
|
+
],
|
|
311
|
+
"additionalProperties": false
|
|
141
312
|
}
|
|
142
313
|
},
|
|
143
314
|
"required": [
|
|
@@ -171,13 +342,31 @@
|
|
|
171
342
|
"type": "string"
|
|
172
343
|
},
|
|
173
344
|
"step": {
|
|
174
|
-
"type": "number"
|
|
345
|
+
"type": "number",
|
|
346
|
+
"default": 1
|
|
175
347
|
}
|
|
176
348
|
},
|
|
177
349
|
"additionalProperties": false
|
|
178
350
|
},
|
|
179
351
|
"meta": {
|
|
180
|
-
"
|
|
352
|
+
"type": "object",
|
|
353
|
+
"properties": {
|
|
354
|
+
"schemaVersion": {
|
|
355
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
356
|
+
},
|
|
357
|
+
"title": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"const": "Date Field"
|
|
360
|
+
},
|
|
361
|
+
"usageDescription": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"const": "For questions that require a date."
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"required": [
|
|
367
|
+
"schemaVersion"
|
|
368
|
+
],
|
|
369
|
+
"additionalProperties": false
|
|
181
370
|
}
|
|
182
371
|
},
|
|
183
372
|
"required": [
|
|
@@ -193,21 +382,42 @@
|
|
|
193
382
|
"const": "dateRange"
|
|
194
383
|
},
|
|
195
384
|
"attributes": {
|
|
196
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
385
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes"
|
|
197
386
|
},
|
|
198
387
|
"meta": {
|
|
199
|
-
"
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"schemaVersion": {
|
|
391
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
392
|
+
},
|
|
393
|
+
"title": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"const": "Date Range"
|
|
396
|
+
},
|
|
397
|
+
"usageDescription": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"const": "For questions that require a date range (e.g. From/To, Start/End)"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"required": [
|
|
403
|
+
"schemaVersion"
|
|
404
|
+
],
|
|
405
|
+
"additionalProperties": false
|
|
200
406
|
},
|
|
201
407
|
"columns": {
|
|
202
408
|
"type": "object",
|
|
203
409
|
"properties": {
|
|
204
410
|
"start": {
|
|
205
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
411
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes"
|
|
206
412
|
},
|
|
207
413
|
"end": {
|
|
208
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
414
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes"
|
|
209
415
|
}
|
|
210
416
|
},
|
|
417
|
+
"required": [
|
|
418
|
+
"start",
|
|
419
|
+
"end"
|
|
420
|
+
],
|
|
211
421
|
"additionalProperties": false
|
|
212
422
|
}
|
|
213
423
|
},
|
|
@@ -237,7 +447,8 @@
|
|
|
237
447
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
238
448
|
},
|
|
239
449
|
"maxLength": {
|
|
240
|
-
"type": "number"
|
|
450
|
+
"type": "number",
|
|
451
|
+
"default": 255
|
|
241
452
|
},
|
|
242
453
|
"minLength": {
|
|
243
454
|
"type": "number"
|
|
@@ -246,13 +457,31 @@
|
|
|
246
457
|
"type": "string"
|
|
247
458
|
},
|
|
248
459
|
"multiple": {
|
|
249
|
-
"type": "boolean"
|
|
460
|
+
"type": "boolean",
|
|
461
|
+
"default": false
|
|
250
462
|
}
|
|
251
463
|
},
|
|
252
464
|
"additionalProperties": false
|
|
253
465
|
},
|
|
254
466
|
"meta": {
|
|
255
|
-
"
|
|
467
|
+
"type": "object",
|
|
468
|
+
"properties": {
|
|
469
|
+
"schemaVersion": {
|
|
470
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
471
|
+
},
|
|
472
|
+
"title": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"const": "Email Field"
|
|
475
|
+
},
|
|
476
|
+
"usageDescription": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"const": "For questions that require require email address(es)."
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"required": [
|
|
482
|
+
"schemaVersion"
|
|
483
|
+
],
|
|
484
|
+
"additionalProperties": false
|
|
256
485
|
}
|
|
257
486
|
},
|
|
258
487
|
"required": [
|
|
@@ -286,7 +515,23 @@
|
|
|
286
515
|
"additionalProperties": false
|
|
287
516
|
},
|
|
288
517
|
"meta": {
|
|
289
|
-
"
|
|
518
|
+
"type": "object",
|
|
519
|
+
"properties": {
|
|
520
|
+
"schemaVersion": {
|
|
521
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
522
|
+
},
|
|
523
|
+
"title": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"const": "Not yet implemented"
|
|
526
|
+
},
|
|
527
|
+
"usageDescription": {
|
|
528
|
+
"type": "string"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"required": [
|
|
532
|
+
"schemaVersion"
|
|
533
|
+
],
|
|
534
|
+
"additionalProperties": false
|
|
290
535
|
},
|
|
291
536
|
"graphQL": {
|
|
292
537
|
"type": "object",
|
|
@@ -314,7 +559,7 @@
|
|
|
314
559
|
}
|
|
315
560
|
},
|
|
316
561
|
"localQueryId": {
|
|
317
|
-
"
|
|
562
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
|
|
318
563
|
},
|
|
319
564
|
"query": {
|
|
320
565
|
"type": "string"
|
|
@@ -387,19 +632,36 @@
|
|
|
387
632
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
388
633
|
},
|
|
389
634
|
"max": {
|
|
390
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
635
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/max"
|
|
391
636
|
},
|
|
392
637
|
"min": {
|
|
393
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
638
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/min"
|
|
394
639
|
},
|
|
395
640
|
"step": {
|
|
396
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
641
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/step"
|
|
397
642
|
}
|
|
398
643
|
},
|
|
399
644
|
"additionalProperties": false
|
|
400
645
|
},
|
|
401
646
|
"meta": {
|
|
402
|
-
"
|
|
647
|
+
"type": "object",
|
|
648
|
+
"properties": {
|
|
649
|
+
"schemaVersion": {
|
|
650
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
651
|
+
},
|
|
652
|
+
"title": {
|
|
653
|
+
"type": "string",
|
|
654
|
+
"const": "Number Field"
|
|
655
|
+
},
|
|
656
|
+
"usageDescription": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"const": "For questions that require a single numeric value."
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"required": [
|
|
662
|
+
"schemaVersion"
|
|
663
|
+
],
|
|
664
|
+
"additionalProperties": false
|
|
403
665
|
}
|
|
404
666
|
},
|
|
405
667
|
"required": [
|
|
@@ -415,10 +677,27 @@
|
|
|
415
677
|
"const": "radioButtons"
|
|
416
678
|
},
|
|
417
679
|
"attributes": {
|
|
418
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
680
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes"
|
|
419
681
|
},
|
|
420
682
|
"meta": {
|
|
421
|
-
"
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"schemaVersion": {
|
|
686
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
687
|
+
},
|
|
688
|
+
"title": {
|
|
689
|
+
"type": "string",
|
|
690
|
+
"const": "Radio Buttons"
|
|
691
|
+
},
|
|
692
|
+
"usageDescription": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"const": "For multiple choice questions where users select just one option."
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
"required": [
|
|
698
|
+
"schemaVersion"
|
|
699
|
+
],
|
|
700
|
+
"additionalProperties": false
|
|
422
701
|
},
|
|
423
702
|
"options": {
|
|
424
703
|
"type": "array",
|
|
@@ -426,19 +705,16 @@
|
|
|
426
705
|
"type": "object",
|
|
427
706
|
"properties": {
|
|
428
707
|
"label": {
|
|
429
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
708
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/options/items/properties/label"
|
|
430
709
|
},
|
|
431
710
|
"value": {
|
|
432
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
711
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/options/items/properties/value"
|
|
433
712
|
},
|
|
434
713
|
"selected": {
|
|
435
|
-
"type": "boolean"
|
|
714
|
+
"type": "boolean",
|
|
715
|
+
"default": false
|
|
436
716
|
}
|
|
437
717
|
},
|
|
438
|
-
"required": [
|
|
439
|
-
"label",
|
|
440
|
-
"value"
|
|
441
|
-
],
|
|
442
718
|
"additionalProperties": false
|
|
443
719
|
}
|
|
444
720
|
}
|
|
@@ -469,23 +745,42 @@
|
|
|
469
745
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
470
746
|
},
|
|
471
747
|
"multiple": {
|
|
472
|
-
"type": "boolean"
|
|
748
|
+
"type": "boolean",
|
|
749
|
+
"default": false
|
|
473
750
|
}
|
|
474
751
|
},
|
|
475
752
|
"additionalProperties": false
|
|
476
753
|
},
|
|
477
754
|
"meta": {
|
|
478
|
-
"
|
|
755
|
+
"type": "object",
|
|
756
|
+
"properties": {
|
|
757
|
+
"schemaVersion": {
|
|
758
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
759
|
+
},
|
|
760
|
+
"title": {
|
|
761
|
+
"type": "string",
|
|
762
|
+
"const": "Select Box"
|
|
763
|
+
},
|
|
764
|
+
"usageDescription": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"const": "For questions where users select one option from a list."
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"required": [
|
|
770
|
+
"schemaVersion"
|
|
771
|
+
],
|
|
772
|
+
"additionalProperties": false
|
|
479
773
|
},
|
|
480
774
|
"options": {
|
|
481
775
|
"type": "array",
|
|
482
776
|
"items": {
|
|
483
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
777
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/9/properties/options/items"
|
|
484
778
|
}
|
|
485
779
|
}
|
|
486
780
|
},
|
|
487
781
|
"required": [
|
|
488
782
|
"type",
|
|
783
|
+
"attributes",
|
|
489
784
|
"options"
|
|
490
785
|
],
|
|
491
786
|
"additionalProperties": false
|
|
@@ -510,7 +805,8 @@
|
|
|
510
805
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
511
806
|
},
|
|
512
807
|
"cols": {
|
|
513
|
-
"type": "number"
|
|
808
|
+
"type": "number",
|
|
809
|
+
"default": 20
|
|
514
810
|
},
|
|
515
811
|
"maxLength": {
|
|
516
812
|
"type": "number"
|
|
@@ -519,7 +815,12 @@
|
|
|
519
815
|
"type": "number"
|
|
520
816
|
},
|
|
521
817
|
"rows": {
|
|
522
|
-
"type": "number"
|
|
818
|
+
"type": "number",
|
|
819
|
+
"default": 2
|
|
820
|
+
},
|
|
821
|
+
"asRichText": {
|
|
822
|
+
"type": "boolean",
|
|
823
|
+
"default": true
|
|
523
824
|
}
|
|
524
825
|
},
|
|
525
826
|
"additionalProperties": false
|
|
@@ -530,8 +831,13 @@
|
|
|
530
831
|
"schemaVersion": {
|
|
531
832
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
532
833
|
},
|
|
533
|
-
"
|
|
534
|
-
"type": "
|
|
834
|
+
"title": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"const": "Text Area"
|
|
837
|
+
},
|
|
838
|
+
"usageDescription": {
|
|
839
|
+
"type": "string",
|
|
840
|
+
"const": "For questions that require longer answers, you can select formatting options too."
|
|
535
841
|
}
|
|
536
842
|
},
|
|
537
843
|
"required": [
|
|
@@ -541,8 +847,7 @@
|
|
|
541
847
|
}
|
|
542
848
|
},
|
|
543
849
|
"required": [
|
|
544
|
-
"type"
|
|
545
|
-
"meta"
|
|
850
|
+
"type"
|
|
546
851
|
],
|
|
547
852
|
"additionalProperties": false
|
|
548
853
|
},
|
|
@@ -566,19 +871,36 @@
|
|
|
566
871
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
567
872
|
},
|
|
568
873
|
"maxLength": {
|
|
569
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
874
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/attributes/properties/maxLength"
|
|
570
875
|
},
|
|
571
876
|
"minLength": {
|
|
572
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
877
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/attributes/properties/minLength"
|
|
573
878
|
},
|
|
574
879
|
"pattern": {
|
|
575
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
880
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/attributes/properties/pattern"
|
|
576
881
|
}
|
|
577
882
|
},
|
|
578
883
|
"additionalProperties": false
|
|
579
884
|
},
|
|
580
885
|
"meta": {
|
|
581
|
-
"
|
|
886
|
+
"type": "object",
|
|
887
|
+
"properties": {
|
|
888
|
+
"schemaVersion": {
|
|
889
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
890
|
+
},
|
|
891
|
+
"title": {
|
|
892
|
+
"type": "string",
|
|
893
|
+
"const": "Text Field"
|
|
894
|
+
},
|
|
895
|
+
"usageDescription": {
|
|
896
|
+
"type": "string",
|
|
897
|
+
"const": "For questions that require short, simple answers."
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
"required": [
|
|
901
|
+
"schemaVersion"
|
|
902
|
+
],
|
|
903
|
+
"additionalProperties": false
|
|
582
904
|
}
|
|
583
905
|
},
|
|
584
906
|
"required": [
|
|
@@ -586,29 +908,6 @@
|
|
|
586
908
|
],
|
|
587
909
|
"additionalProperties": false
|
|
588
910
|
},
|
|
589
|
-
{
|
|
590
|
-
"type": "object",
|
|
591
|
-
"properties": {
|
|
592
|
-
"type": {
|
|
593
|
-
"type": "string",
|
|
594
|
-
"const": "typeaheadSearch"
|
|
595
|
-
},
|
|
596
|
-
"attributes": {
|
|
597
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/attributes"
|
|
598
|
-
},
|
|
599
|
-
"meta": {
|
|
600
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
601
|
-
},
|
|
602
|
-
"graphQL": {
|
|
603
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/graphQL"
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
"required": [
|
|
607
|
-
"type",
|
|
608
|
-
"graphQL"
|
|
609
|
-
],
|
|
610
|
-
"additionalProperties": false
|
|
611
|
-
},
|
|
612
911
|
{
|
|
613
912
|
"type": "object",
|
|
614
913
|
"properties": {
|
|
@@ -617,10 +916,27 @@
|
|
|
617
916
|
"const": "url"
|
|
618
917
|
},
|
|
619
918
|
"attributes": {
|
|
620
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/
|
|
919
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/12/properties/attributes"
|
|
621
920
|
},
|
|
622
921
|
"meta": {
|
|
623
|
-
"
|
|
922
|
+
"type": "object",
|
|
923
|
+
"properties": {
|
|
924
|
+
"schemaVersion": {
|
|
925
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
926
|
+
},
|
|
927
|
+
"title": {
|
|
928
|
+
"type": "string",
|
|
929
|
+
"const": "URL Field"
|
|
930
|
+
},
|
|
931
|
+
"usageDescription": {
|
|
932
|
+
"type": "string",
|
|
933
|
+
"const": "For questions that require a website, DOI or other URL."
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"required": [
|
|
937
|
+
"schemaVersion"
|
|
938
|
+
],
|
|
939
|
+
"additionalProperties": false
|
|
624
940
|
}
|
|
625
941
|
},
|
|
626
942
|
"required": [
|