@dmptool/types 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -47
- package/dist/answers/__tests__/answers.spec.js +20 -28
- package/dist/answers/__tests__/usage.spec.d.ts +1 -0
- package/dist/answers/__tests__/usage.spec.js +175 -0
- package/dist/answers/answer.d.ts +12 -15
- package/dist/answers/answer.js +3 -4
- package/dist/answers/dateAnswers.d.ts +30 -30
- package/dist/answers/dateAnswers.js +6 -5
- package/dist/answers/graphQLAnswers.d.ts +25 -25
- package/dist/answers/graphQLAnswers.js +4 -4
- package/dist/answers/index.d.ts +860 -1088
- package/dist/answers/index.js +2 -2
- package/dist/answers/numberAnswers.d.ts +41 -41
- package/dist/answers/numberAnswers.js +8 -8
- package/dist/answers/optionBasedAnswers.d.ts +55 -55
- package/dist/answers/optionBasedAnswers.js +10 -10
- package/dist/answers/tableAnswers.d.ts +811 -1772
- package/dist/answers/tableAnswers.js +12 -8
- package/dist/answers/textAnswers.d.ts +44 -44
- package/dist/answers/textAnswers.js +8 -8
- package/dist/questions/__tests__/graphQLQuestions.spec.js +1 -1
- package/dist/questions/__tests__/usage.spec.d.ts +8 -0
- package/dist/questions/__tests__/usage.spec.js +312 -0
- package/dist/questions/dateQuestions.d.ts +81 -82
- package/dist/questions/dateQuestions.js +12 -16
- package/dist/questions/graphQLQuestions.d.ts +142 -142
- package/dist/questions/graphQLQuestions.js +35 -30
- package/dist/questions/index.d.ts +1494 -1674
- package/dist/questions/index.js +2 -2
- package/dist/questions/numberQuestions.d.ts +97 -98
- package/dist/questions/numberQuestions.js +7 -19
- package/dist/questions/optionBasedQuestions.d.ts +163 -166
- package/dist/questions/optionBasedQuestions.js +20 -36
- package/dist/questions/question.d.ts +24 -48
- package/dist/questions/question.js +78 -17
- package/dist/questions/tableQuestions.d.ts +2219 -2231
- package/dist/questions/tableQuestions.js +6 -11
- package/dist/questions/textQuestions.d.ts +104 -104
- package/dist/questions/textQuestions.js +6 -23
- package/dist/schemas/affiliationSearchAnswer.schema.json +9 -12
- package/dist/schemas/affiliationSearchQuestion.schema.json +30 -36
- package/dist/schemas/anyAnswer.schema.json +228 -237
- package/dist/schemas/anyQuestion.schema.json +292 -493
- package/dist/schemas/anyTableColumnAnswer.schema.json +93 -106
- package/dist/schemas/anyTableColumnQuestion.schema.json +164 -325
- package/dist/schemas/booleanAnswer.schema.json +8 -11
- package/dist/schemas/booleanQuestion.schema.json +7 -10
- package/dist/schemas/checkboxesAnswer.schema.json +13 -14
- package/dist/schemas/checkboxesQuestion.schema.json +12 -13
- package/dist/schemas/currencyAnswer.schema.json +8 -11
- package/dist/schemas/currencyQuestion.schema.json +7 -10
- package/dist/schemas/dateAnswer.schema.json +8 -11
- package/dist/schemas/dateQuestion.schema.json +7 -10
- package/dist/schemas/dateRangeAnswer.schema.json +16 -21
- package/dist/schemas/dateRangeQuestion.schema.json +38 -20
- package/dist/schemas/emailAnswer.schema.json +8 -11
- package/dist/schemas/emailQuestion.schema.json +7 -10
- package/dist/schemas/multiselectBoxAnswer.schema.json +13 -14
- package/dist/schemas/multiselectBoxQuestion.schema.json +14 -14
- package/dist/schemas/numberAnswer.schema.json +8 -11
- package/dist/schemas/numberQuestion.schema.json +7 -10
- package/dist/schemas/numberRangeAnswer.schema.json +17 -22
- package/dist/schemas/numberRangeQuestion.schema.json +18 -19
- package/dist/schemas/radioButtonsAnswer.schema.json +8 -11
- package/dist/schemas/radioButtonsQuestion.schema.json +12 -13
- package/dist/schemas/selectBoxAnswer.schema.json +8 -11
- package/dist/schemas/selectBoxQuestion.schema.json +18 -15
- package/dist/schemas/tableAnswer.schema.json +337 -343
- package/dist/schemas/tableQuestion.schema.json +178 -352
- package/dist/schemas/textAnswer.schema.json +8 -11
- package/dist/schemas/textAreaAnswer.schema.json +8 -11
- package/dist/schemas/textAreaQuestion.schema.json +7 -10
- package/dist/schemas/textQuestion.schema.json +7 -10
- package/dist/schemas/urlAnswer.schema.json +8 -11
- package/dist/schemas/urlQuestion.schema.json +7 -10
- package/package.json +1 -1
|
@@ -23,28 +23,25 @@
|
|
|
23
23
|
"type": "string"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
"additionalProperties": false
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"default": {}
|
|
27
28
|
},
|
|
28
29
|
"meta": {
|
|
29
30
|
"type": "object",
|
|
30
31
|
"properties": {
|
|
31
32
|
"schemaVersion": {
|
|
32
33
|
"type": "string",
|
|
33
|
-
"
|
|
34
|
+
"default": "1.0"
|
|
34
35
|
},
|
|
35
36
|
"title": {
|
|
36
|
-
"type": "string"
|
|
37
|
-
"const": "Affiliation Search"
|
|
37
|
+
"type": "string"
|
|
38
38
|
},
|
|
39
39
|
"usageDescription": {
|
|
40
|
-
"type": "string"
|
|
41
|
-
"const": "For questions that require the user to select from a controlled list of institutions."
|
|
40
|
+
"type": "string"
|
|
42
41
|
}
|
|
43
42
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
],
|
|
47
|
-
"additionalProperties": false
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"default": {}
|
|
48
45
|
},
|
|
49
46
|
"graphQL": {
|
|
50
47
|
"type": "object",
|
|
@@ -56,7 +53,8 @@
|
|
|
56
53
|
"properties": {
|
|
57
54
|
"propertyName": {
|
|
58
55
|
"type": "string",
|
|
59
|
-
"const": "displayName"
|
|
56
|
+
"const": "displayName",
|
|
57
|
+
"default": "displayName"
|
|
60
58
|
},
|
|
61
59
|
"label": {
|
|
62
60
|
"type": "string",
|
|
@@ -67,22 +65,24 @@
|
|
|
67
65
|
"default": "SignupPage.institution"
|
|
68
66
|
}
|
|
69
67
|
},
|
|
70
|
-
"required": [
|
|
71
|
-
"propertyName"
|
|
72
|
-
],
|
|
73
68
|
"additionalProperties": false
|
|
74
|
-
}
|
|
69
|
+
},
|
|
70
|
+
"default": [
|
|
71
|
+
{}
|
|
72
|
+
]
|
|
75
73
|
},
|
|
76
74
|
"localQueryId": {
|
|
77
75
|
"type": "string"
|
|
78
76
|
},
|
|
79
77
|
"query": {
|
|
80
78
|
"type": "string",
|
|
81
|
-
"const": "
|
|
79
|
+
"const": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}",
|
|
80
|
+
"default": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}"
|
|
82
81
|
},
|
|
83
82
|
"responseField": {
|
|
84
83
|
"type": "string",
|
|
85
|
-
"const": "affiliations.items"
|
|
84
|
+
"const": "affiliations.items",
|
|
85
|
+
"default": "affiliations.items"
|
|
86
86
|
},
|
|
87
87
|
"variables": {
|
|
88
88
|
"type": "array",
|
|
@@ -91,7 +91,8 @@
|
|
|
91
91
|
"properties": {
|
|
92
92
|
"name": {
|
|
93
93
|
"type": "string",
|
|
94
|
-
"const": "name"
|
|
94
|
+
"const": "name",
|
|
95
|
+
"default": "name"
|
|
95
96
|
},
|
|
96
97
|
"type": {
|
|
97
98
|
"type": "string",
|
|
@@ -103,19 +104,19 @@
|
|
|
103
104
|
},
|
|
104
105
|
"minLength": {
|
|
105
106
|
"type": "number",
|
|
106
|
-
"const": 3
|
|
107
|
+
"const": 3,
|
|
108
|
+
"default": 3
|
|
107
109
|
},
|
|
108
110
|
"labelTranslationKey": {
|
|
109
111
|
"type": "string",
|
|
110
112
|
"default": "SignupPage.institutionHelp"
|
|
111
113
|
}
|
|
112
114
|
},
|
|
113
|
-
"required": [
|
|
114
|
-
"name",
|
|
115
|
-
"minLength"
|
|
116
|
-
],
|
|
117
115
|
"additionalProperties": false
|
|
118
|
-
}
|
|
116
|
+
},
|
|
117
|
+
"default": [
|
|
118
|
+
{}
|
|
119
|
+
]
|
|
119
120
|
},
|
|
120
121
|
"queryId": {
|
|
121
122
|
"type": "string",
|
|
@@ -123,23 +124,16 @@
|
|
|
123
124
|
},
|
|
124
125
|
"answerField": {
|
|
125
126
|
"type": "string",
|
|
126
|
-
"const": "uri"
|
|
127
|
+
"const": "uri",
|
|
128
|
+
"default": "uri"
|
|
127
129
|
}
|
|
128
130
|
},
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
"query",
|
|
132
|
-
"responseField",
|
|
133
|
-
"variables",
|
|
134
|
-
"answerField"
|
|
135
|
-
],
|
|
136
|
-
"additionalProperties": false
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"default": {}
|
|
137
133
|
}
|
|
138
134
|
},
|
|
139
135
|
"required": [
|
|
140
|
-
"type"
|
|
141
|
-
"meta",
|
|
142
|
-
"graphQL"
|
|
136
|
+
"type"
|
|
143
137
|
],
|
|
144
138
|
"additionalProperties": false
|
|
145
139
|
},
|
|
@@ -167,27 +161,11 @@
|
|
|
167
161
|
"default": false
|
|
168
162
|
}
|
|
169
163
|
},
|
|
170
|
-
"additionalProperties": false
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"default": {}
|
|
171
166
|
},
|
|
172
167
|
"meta": {
|
|
173
|
-
"
|
|
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."
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"required": [
|
|
188
|
-
"schemaVersion"
|
|
189
|
-
],
|
|
190
|
-
"additionalProperties": false
|
|
168
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
191
169
|
}
|
|
192
170
|
},
|
|
193
171
|
"required": [
|
|
@@ -203,27 +181,11 @@
|
|
|
203
181
|
"const": "checkBoxes"
|
|
204
182
|
},
|
|
205
183
|
"attributes": {
|
|
206
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes"
|
|
184
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes",
|
|
185
|
+
"default": {}
|
|
207
186
|
},
|
|
208
187
|
"meta": {
|
|
209
|
-
"
|
|
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
|
|
188
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
227
189
|
},
|
|
228
190
|
"options": {
|
|
229
191
|
"type": "array",
|
|
@@ -244,12 +206,14 @@
|
|
|
244
206
|
}
|
|
245
207
|
},
|
|
246
208
|
"additionalProperties": false
|
|
247
|
-
}
|
|
209
|
+
},
|
|
210
|
+
"default": [
|
|
211
|
+
{}
|
|
212
|
+
]
|
|
248
213
|
}
|
|
249
214
|
},
|
|
250
215
|
"required": [
|
|
251
|
-
"type"
|
|
252
|
-
"options"
|
|
216
|
+
"type"
|
|
253
217
|
],
|
|
254
218
|
"additionalProperties": false
|
|
255
219
|
},
|
|
@@ -288,27 +252,11 @@
|
|
|
288
252
|
"default": "USD"
|
|
289
253
|
}
|
|
290
254
|
},
|
|
291
|
-
"additionalProperties": false
|
|
255
|
+
"additionalProperties": false,
|
|
256
|
+
"default": {}
|
|
292
257
|
},
|
|
293
258
|
"meta": {
|
|
294
|
-
"
|
|
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
|
|
259
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
312
260
|
}
|
|
313
261
|
},
|
|
314
262
|
"required": [
|
|
@@ -346,27 +294,11 @@
|
|
|
346
294
|
"default": 1
|
|
347
295
|
}
|
|
348
296
|
},
|
|
349
|
-
"additionalProperties": false
|
|
297
|
+
"additionalProperties": false,
|
|
298
|
+
"default": {}
|
|
350
299
|
},
|
|
351
300
|
"meta": {
|
|
352
|
-
"
|
|
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
|
|
301
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
370
302
|
}
|
|
371
303
|
},
|
|
372
304
|
"required": [
|
|
@@ -382,48 +314,74 @@
|
|
|
382
314
|
"const": "dateRange"
|
|
383
315
|
},
|
|
384
316
|
"attributes": {
|
|
385
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes"
|
|
317
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes",
|
|
318
|
+
"default": {}
|
|
386
319
|
},
|
|
387
320
|
"meta": {
|
|
388
|
-
"
|
|
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
|
|
321
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
406
322
|
},
|
|
407
323
|
"columns": {
|
|
408
324
|
"type": "object",
|
|
409
325
|
"properties": {
|
|
410
326
|
"start": {
|
|
411
|
-
"
|
|
327
|
+
"type": "object",
|
|
328
|
+
"properties": {
|
|
329
|
+
"label": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"default": "From"
|
|
332
|
+
},
|
|
333
|
+
"help": {
|
|
334
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
|
|
335
|
+
},
|
|
336
|
+
"labelTranslationKey": {
|
|
337
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
338
|
+
},
|
|
339
|
+
"max": {
|
|
340
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/max"
|
|
341
|
+
},
|
|
342
|
+
"min": {
|
|
343
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/min"
|
|
344
|
+
},
|
|
345
|
+
"step": {
|
|
346
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/step"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"additionalProperties": false,
|
|
350
|
+
"default": {}
|
|
412
351
|
},
|
|
413
352
|
"end": {
|
|
414
|
-
"
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"label": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"default": "To"
|
|
358
|
+
},
|
|
359
|
+
"help": {
|
|
360
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
|
|
361
|
+
},
|
|
362
|
+
"labelTranslationKey": {
|
|
363
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
364
|
+
},
|
|
365
|
+
"max": {
|
|
366
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/max"
|
|
367
|
+
},
|
|
368
|
+
"min": {
|
|
369
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/min"
|
|
370
|
+
},
|
|
371
|
+
"step": {
|
|
372
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/step"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"additionalProperties": false,
|
|
376
|
+
"default": {}
|
|
415
377
|
}
|
|
416
378
|
},
|
|
417
|
-
"
|
|
418
|
-
|
|
419
|
-
"end"
|
|
420
|
-
],
|
|
421
|
-
"additionalProperties": false
|
|
379
|
+
"additionalProperties": false,
|
|
380
|
+
"default": {}
|
|
422
381
|
}
|
|
423
382
|
},
|
|
424
383
|
"required": [
|
|
425
|
-
"type"
|
|
426
|
-
"columns"
|
|
384
|
+
"type"
|
|
427
385
|
],
|
|
428
386
|
"additionalProperties": false
|
|
429
387
|
},
|
|
@@ -461,27 +419,11 @@
|
|
|
461
419
|
"default": false
|
|
462
420
|
}
|
|
463
421
|
},
|
|
464
|
-
"additionalProperties": false
|
|
422
|
+
"additionalProperties": false,
|
|
423
|
+
"default": {}
|
|
465
424
|
},
|
|
466
425
|
"meta": {
|
|
467
|
-
"
|
|
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
|
|
426
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
485
427
|
}
|
|
486
428
|
},
|
|
487
429
|
"required": [
|
|
@@ -509,29 +451,15 @@
|
|
|
509
451
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
510
452
|
},
|
|
511
453
|
"multiple": {
|
|
512
|
-
"type": "boolean"
|
|
454
|
+
"type": "boolean",
|
|
455
|
+
"default": true
|
|
513
456
|
}
|
|
514
457
|
},
|
|
515
|
-
"additionalProperties": false
|
|
458
|
+
"additionalProperties": false,
|
|
459
|
+
"default": {}
|
|
516
460
|
},
|
|
517
461
|
"meta": {
|
|
518
|
-
"
|
|
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
|
|
462
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
535
463
|
},
|
|
536
464
|
"graphQL": {
|
|
537
465
|
"type": "object",
|
|
@@ -542,21 +470,22 @@
|
|
|
542
470
|
"type": "object",
|
|
543
471
|
"properties": {
|
|
544
472
|
"propertyName": {
|
|
545
|
-
"type": "string"
|
|
473
|
+
"type": "string",
|
|
474
|
+
"default": "id"
|
|
546
475
|
},
|
|
547
476
|
"label": {
|
|
548
|
-
"type": "string"
|
|
477
|
+
"type": "string",
|
|
478
|
+
"default": "Id"
|
|
549
479
|
},
|
|
550
480
|
"labelTranslationKey": {
|
|
551
481
|
"type": "string"
|
|
552
482
|
}
|
|
553
483
|
},
|
|
554
|
-
"required": [
|
|
555
|
-
"propertyName",
|
|
556
|
-
"label"
|
|
557
|
-
],
|
|
558
484
|
"additionalProperties": false
|
|
559
|
-
}
|
|
485
|
+
},
|
|
486
|
+
"default": [
|
|
487
|
+
{}
|
|
488
|
+
]
|
|
560
489
|
},
|
|
561
490
|
"localQueryId": {
|
|
562
491
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
|
|
@@ -565,7 +494,8 @@
|
|
|
565
494
|
"type": "string"
|
|
566
495
|
},
|
|
567
496
|
"responseField": {
|
|
568
|
-
"type": "string"
|
|
497
|
+
"type": "string",
|
|
498
|
+
"default": "query.items"
|
|
569
499
|
},
|
|
570
500
|
"variables": {
|
|
571
501
|
"type": "array",
|
|
@@ -582,33 +512,30 @@
|
|
|
582
512
|
"type": "string"
|
|
583
513
|
},
|
|
584
514
|
"name": {
|
|
585
|
-
"type": "string"
|
|
515
|
+
"type": "string",
|
|
516
|
+
"default": "search"
|
|
586
517
|
},
|
|
587
518
|
"type": {
|
|
588
|
-
"type": "string"
|
|
519
|
+
"type": "string",
|
|
520
|
+
"default": "string"
|
|
589
521
|
},
|
|
590
522
|
"defaultValue": {
|
|
591
523
|
"type": "string"
|
|
592
524
|
}
|
|
593
525
|
},
|
|
594
|
-
"required": [
|
|
595
|
-
"name",
|
|
596
|
-
"type"
|
|
597
|
-
],
|
|
598
526
|
"additionalProperties": false
|
|
599
|
-
}
|
|
527
|
+
},
|
|
528
|
+
"default": [
|
|
529
|
+
{}
|
|
530
|
+
]
|
|
600
531
|
}
|
|
601
532
|
},
|
|
602
|
-
"
|
|
603
|
-
|
|
604
|
-
"responseField"
|
|
605
|
-
],
|
|
606
|
-
"additionalProperties": false
|
|
533
|
+
"additionalProperties": false,
|
|
534
|
+
"default": {}
|
|
607
535
|
}
|
|
608
536
|
},
|
|
609
537
|
"required": [
|
|
610
|
-
"type"
|
|
611
|
-
"graphQL"
|
|
538
|
+
"type"
|
|
612
539
|
],
|
|
613
540
|
"additionalProperties": false
|
|
614
541
|
},
|
|
@@ -641,27 +568,11 @@
|
|
|
641
568
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/step"
|
|
642
569
|
}
|
|
643
570
|
},
|
|
644
|
-
"additionalProperties": false
|
|
571
|
+
"additionalProperties": false,
|
|
572
|
+
"default": {}
|
|
645
573
|
},
|
|
646
574
|
"meta": {
|
|
647
|
-
"
|
|
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
|
|
575
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
665
576
|
}
|
|
666
577
|
},
|
|
667
578
|
"required": [
|
|
@@ -677,27 +588,11 @@
|
|
|
677
588
|
"const": "radioButtons"
|
|
678
589
|
},
|
|
679
590
|
"attributes": {
|
|
680
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes"
|
|
591
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes",
|
|
592
|
+
"default": {}
|
|
681
593
|
},
|
|
682
594
|
"meta": {
|
|
683
|
-
"
|
|
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
|
|
595
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
701
596
|
},
|
|
702
597
|
"options": {
|
|
703
598
|
"type": "array",
|
|
@@ -716,12 +611,14 @@
|
|
|
716
611
|
}
|
|
717
612
|
},
|
|
718
613
|
"additionalProperties": false
|
|
719
|
-
}
|
|
614
|
+
},
|
|
615
|
+
"default": [
|
|
616
|
+
{}
|
|
617
|
+
]
|
|
720
618
|
}
|
|
721
619
|
},
|
|
722
620
|
"required": [
|
|
723
|
-
"type"
|
|
724
|
-
"options"
|
|
621
|
+
"type"
|
|
725
622
|
],
|
|
726
623
|
"additionalProperties": false
|
|
727
624
|
},
|
|
@@ -746,42 +643,32 @@
|
|
|
746
643
|
},
|
|
747
644
|
"multiple": {
|
|
748
645
|
"type": "boolean",
|
|
749
|
-
"
|
|
750
|
-
}
|
|
751
|
-
},
|
|
752
|
-
"additionalProperties": false
|
|
753
|
-
},
|
|
754
|
-
"meta": {
|
|
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."
|
|
646
|
+
"const": false
|
|
767
647
|
}
|
|
768
648
|
},
|
|
769
649
|
"required": [
|
|
770
|
-
"
|
|
650
|
+
"multiple"
|
|
771
651
|
],
|
|
772
|
-
"additionalProperties": false
|
|
652
|
+
"additionalProperties": false,
|
|
653
|
+
"default": {
|
|
654
|
+
"multiple": false
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"meta": {
|
|
658
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
773
659
|
},
|
|
774
660
|
"options": {
|
|
775
661
|
"type": "array",
|
|
776
662
|
"items": {
|
|
777
663
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/9/properties/options/items"
|
|
778
|
-
}
|
|
664
|
+
},
|
|
665
|
+
"default": [
|
|
666
|
+
{}
|
|
667
|
+
]
|
|
779
668
|
}
|
|
780
669
|
},
|
|
781
670
|
"required": [
|
|
782
|
-
"type"
|
|
783
|
-
"attributes",
|
|
784
|
-
"options"
|
|
671
|
+
"type"
|
|
785
672
|
],
|
|
786
673
|
"additionalProperties": false
|
|
787
674
|
},
|
|
@@ -823,27 +710,11 @@
|
|
|
823
710
|
"default": true
|
|
824
711
|
}
|
|
825
712
|
},
|
|
826
|
-
"additionalProperties": false
|
|
713
|
+
"additionalProperties": false,
|
|
714
|
+
"default": {}
|
|
827
715
|
},
|
|
828
716
|
"meta": {
|
|
829
|
-
"
|
|
830
|
-
"properties": {
|
|
831
|
-
"schemaVersion": {
|
|
832
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
833
|
-
},
|
|
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."
|
|
841
|
-
}
|
|
842
|
-
},
|
|
843
|
-
"required": [
|
|
844
|
-
"schemaVersion"
|
|
845
|
-
],
|
|
846
|
-
"additionalProperties": false
|
|
717
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
847
718
|
}
|
|
848
719
|
},
|
|
849
720
|
"required": [
|
|
@@ -880,27 +751,11 @@
|
|
|
880
751
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/attributes/properties/pattern"
|
|
881
752
|
}
|
|
882
753
|
},
|
|
883
|
-
"additionalProperties": false
|
|
754
|
+
"additionalProperties": false,
|
|
755
|
+
"default": {}
|
|
884
756
|
},
|
|
885
757
|
"meta": {
|
|
886
|
-
"
|
|
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
|
|
758
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
904
759
|
}
|
|
905
760
|
},
|
|
906
761
|
"required": [
|
|
@@ -916,27 +771,11 @@
|
|
|
916
771
|
"const": "url"
|
|
917
772
|
},
|
|
918
773
|
"attributes": {
|
|
919
|
-
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/12/properties/attributes"
|
|
774
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/12/properties/attributes",
|
|
775
|
+
"default": {}
|
|
920
776
|
},
|
|
921
777
|
"meta": {
|
|
922
|
-
"
|
|
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
|
|
778
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
|
|
940
779
|
}
|
|
941
780
|
},
|
|
942
781
|
"required": [
|