@dmptool/types 1.1.2 → 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/questions/__tests__/graphQLQuestions.spec.js +6 -4
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +4 -12
- package/dist/questions/dateQuestions.d.ts +31 -41
- package/dist/questions/dateQuestions.js +5 -20
- package/dist/questions/graphQLQuestions.d.ts +75 -81
- package/dist/questions/graphQLQuestions.js +18 -24
- package/dist/questions/index.d.ts +524 -723
- package/dist/questions/numberQuestions.d.ts +51 -66
- package/dist/questions/numberQuestions.js +6 -28
- package/dist/questions/optionBasedQuestions.d.ts +44 -69
- package/dist/questions/optionBasedQuestions.js +7 -55
- package/dist/questions/question.d.ts +0 -8
- package/dist/questions/question.js +0 -1
- package/dist/questions/tableQuestions.d.ts +717 -998
- package/dist/questions/tableQuestions.js +3 -10
- package/dist/questions/textQuestions.d.ts +21 -41
- package/dist/questions/textQuestions.js +10 -34
- package/dist/schemas/affiliationSearchQuestion.schema.json +39 -26
- package/dist/schemas/anyQuestion.schema.json +152 -119
- package/dist/schemas/anyTableColumnQuestion.schema.json +142 -104
- package/dist/schemas/booleanQuestion.schema.json +2 -5
- package/dist/schemas/checkboxesQuestion.schema.json +6 -11
- package/dist/schemas/currencyQuestion.schema.json +6 -7
- package/dist/schemas/dateQuestion.schema.json +2 -5
- package/dist/schemas/dateRangeQuestion.schema.json +6 -5
- package/dist/schemas/emailQuestion.schema.json +4 -6
- package/dist/schemas/filteredSearchQuestion.schema.json +0 -3
- package/dist/schemas/multiselectBoxQuestion.schema.json +6 -11
- package/dist/schemas/numberQuestion.schema.json +4 -6
- package/dist/schemas/numberRangeQuestion.schema.json +8 -6
- package/dist/schemas/radioButtonsQuestion.schema.json +6 -11
- package/dist/schemas/selectBoxQuestion.schema.json +7 -15
- package/dist/schemas/tableQuestion.schema.json +148 -111
- package/dist/schemas/textAreaQuestion.schema.json +6 -7
- package/dist/schemas/textQuestion.schema.json +2 -5
- package/dist/schemas/urlQuestion.schema.json +2 -5
- package/package.json +1 -1
|
@@ -39,10 +39,6 @@
|
|
|
39
39
|
"usageDescription": {
|
|
40
40
|
"type": "string",
|
|
41
41
|
"const": "For questions that require the user to select from a controlled list of institutions."
|
|
42
|
-
},
|
|
43
|
-
"defaultJSON": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"const": "{\"type\":\"affiliationSearch\",\"attributes\":{},\"meta\":{\"schemaVersion\":\"1.0\"},\"graphQL\":{\"query\":\"query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}\",\"queryId\":\"useAffiliationsQuery\",\"variables\":[{\"name\":\"term\",\"type\":\"string\",\"label\":\"Search for your institution\",\"minLength\":3,\"labelTranslationKey\":\"SignupPage.institutionHelp\"}],\"answerField\":\"uri\",\"displayFields\":[{\"label\":\"Institution\",\"propertyName\":\"displayName\",\"labelTranslationKey\":\"SignupPage.institution\"}],\"responseField\":\"affiliations.items\"}}"
|
|
46
42
|
}
|
|
47
43
|
},
|
|
48
44
|
"required": [
|
|
@@ -59,18 +55,20 @@
|
|
|
59
55
|
"type": "object",
|
|
60
56
|
"properties": {
|
|
61
57
|
"propertyName": {
|
|
62
|
-
"type": "string"
|
|
58
|
+
"type": "string",
|
|
59
|
+
"const": "displayName"
|
|
63
60
|
},
|
|
64
61
|
"label": {
|
|
65
|
-
"type": "string"
|
|
62
|
+
"type": "string",
|
|
63
|
+
"default": "Institution"
|
|
66
64
|
},
|
|
67
65
|
"labelTranslationKey": {
|
|
68
|
-
"type": "string"
|
|
66
|
+
"type": "string",
|
|
67
|
+
"default": "SignupPage.institution"
|
|
69
68
|
}
|
|
70
69
|
},
|
|
71
70
|
"required": [
|
|
72
|
-
"propertyName"
|
|
73
|
-
"label"
|
|
71
|
+
"propertyName"
|
|
74
72
|
],
|
|
75
73
|
"additionalProperties": false
|
|
76
74
|
}
|
|
@@ -79,46 +77,61 @@
|
|
|
79
77
|
"type": "string"
|
|
80
78
|
},
|
|
81
79
|
"query": {
|
|
82
|
-
"type": "string"
|
|
80
|
+
"type": "string",
|
|
81
|
+
"const": "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}"
|
|
83
82
|
},
|
|
84
83
|
"responseField": {
|
|
85
|
-
"type": "string"
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "affiliations.items"
|
|
86
86
|
},
|
|
87
87
|
"variables": {
|
|
88
88
|
"type": "array",
|
|
89
89
|
"items": {
|
|
90
90
|
"type": "object",
|
|
91
91
|
"properties": {
|
|
92
|
-
"minLength": {
|
|
93
|
-
"type": "number"
|
|
94
|
-
},
|
|
95
|
-
"label": {
|
|
96
|
-
"type": "string"
|
|
97
|
-
},
|
|
98
|
-
"labelTranslationKey": {
|
|
99
|
-
"type": "string"
|
|
100
|
-
},
|
|
101
92
|
"name": {
|
|
102
|
-
"type": "string"
|
|
93
|
+
"type": "string",
|
|
94
|
+
"const": "name"
|
|
103
95
|
},
|
|
104
96
|
"type": {
|
|
105
|
-
"type": "string"
|
|
97
|
+
"type": "string",
|
|
98
|
+
"default": "string"
|
|
106
99
|
},
|
|
107
|
-
"
|
|
108
|
-
"type": "string"
|
|
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"
|
|
109
111
|
}
|
|
110
112
|
},
|
|
111
113
|
"required": [
|
|
112
114
|
"name",
|
|
113
|
-
"
|
|
115
|
+
"minLength"
|
|
114
116
|
],
|
|
115
117
|
"additionalProperties": false
|
|
116
118
|
}
|
|
119
|
+
},
|
|
120
|
+
"queryId": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"default": "useAffiliationsQuery"
|
|
123
|
+
},
|
|
124
|
+
"answerField": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"const": "uri"
|
|
117
127
|
}
|
|
118
128
|
},
|
|
119
129
|
"required": [
|
|
120
130
|
"displayFields",
|
|
121
|
-
"
|
|
131
|
+
"query",
|
|
132
|
+
"responseField",
|
|
133
|
+
"variables",
|
|
134
|
+
"answerField"
|
|
122
135
|
],
|
|
123
136
|
"additionalProperties": false
|
|
124
137
|
}
|
|
@@ -150,7 +163,8 @@
|
|
|
150
163
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
151
164
|
},
|
|
152
165
|
"checked": {
|
|
153
|
-
"type": "boolean"
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"default": false
|
|
154
168
|
}
|
|
155
169
|
},
|
|
156
170
|
"additionalProperties": false
|
|
@@ -168,10 +182,6 @@
|
|
|
168
182
|
"usageDescription": {
|
|
169
183
|
"type": "string",
|
|
170
184
|
"const": "For questions that require a simple Yes/No response."
|
|
171
|
-
},
|
|
172
|
-
"defaultJSON": {
|
|
173
|
-
"type": "string",
|
|
174
|
-
"const": "{\n \"attributes\": {\n \"checked\": false\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
175
185
|
}
|
|
176
186
|
},
|
|
177
187
|
"required": [
|
|
@@ -208,10 +218,6 @@
|
|
|
208
218
|
"usageDescription": {
|
|
209
219
|
"type": "string",
|
|
210
220
|
"const": "For multiple choice questions where users can select multiple options."
|
|
211
|
-
},
|
|
212
|
-
"defaultJSON": {
|
|
213
|
-
"type": "string",
|
|
214
|
-
"const": "{\n \"type\": \"checkBoxes\",\n \"attributes\": {},\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"1\",\n \"checked\": false\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
215
221
|
}
|
|
216
222
|
},
|
|
217
223
|
"required": [
|
|
@@ -225,19 +231,18 @@
|
|
|
225
231
|
"type": "object",
|
|
226
232
|
"properties": {
|
|
227
233
|
"label": {
|
|
228
|
-
"type": "string"
|
|
234
|
+
"type": "string",
|
|
235
|
+
"default": "Option A"
|
|
229
236
|
},
|
|
230
237
|
"value": {
|
|
231
|
-
"type": "string"
|
|
238
|
+
"type": "string",
|
|
239
|
+
"default": "a"
|
|
232
240
|
},
|
|
233
241
|
"checked": {
|
|
234
|
-
"type": "boolean"
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"default": false
|
|
235
244
|
}
|
|
236
245
|
},
|
|
237
|
-
"required": [
|
|
238
|
-
"label",
|
|
239
|
-
"value"
|
|
240
|
-
],
|
|
241
246
|
"additionalProperties": false
|
|
242
247
|
}
|
|
243
248
|
}
|
|
@@ -271,13 +276,16 @@
|
|
|
271
276
|
"type": "number"
|
|
272
277
|
},
|
|
273
278
|
"min": {
|
|
274
|
-
"type": "number"
|
|
279
|
+
"type": "number",
|
|
280
|
+
"default": 0
|
|
275
281
|
},
|
|
276
282
|
"step": {
|
|
277
|
-
"type": "number"
|
|
283
|
+
"type": "number",
|
|
284
|
+
"default": 1
|
|
278
285
|
},
|
|
279
286
|
"denomination": {
|
|
280
|
-
"type": "string"
|
|
287
|
+
"type": "string",
|
|
288
|
+
"default": "USD"
|
|
281
289
|
}
|
|
282
290
|
},
|
|
283
291
|
"additionalProperties": false
|
|
@@ -295,10 +303,6 @@
|
|
|
295
303
|
"usageDescription": {
|
|
296
304
|
"type": "string",
|
|
297
305
|
"const": "For questions that require a monetary amount (e.g. Cost or Budget)."
|
|
298
|
-
},
|
|
299
|
-
"defaultJSON": {
|
|
300
|
-
"type": "string",
|
|
301
|
-
"const": "{\n \"type\": \"currency\",\n \"attributes\": {\n \"denomination\": \"USD\",\n \"min\": 0,\n \"step\": 1\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
302
306
|
}
|
|
303
307
|
},
|
|
304
308
|
"required": [
|
|
@@ -338,7 +342,8 @@
|
|
|
338
342
|
"type": "string"
|
|
339
343
|
},
|
|
340
344
|
"step": {
|
|
341
|
-
"type": "number"
|
|
345
|
+
"type": "number",
|
|
346
|
+
"default": 1
|
|
342
347
|
}
|
|
343
348
|
},
|
|
344
349
|
"additionalProperties": false
|
|
@@ -356,10 +361,6 @@
|
|
|
356
361
|
"usageDescription": {
|
|
357
362
|
"type": "string",
|
|
358
363
|
"const": "For questions that require a date."
|
|
359
|
-
},
|
|
360
|
-
"defaultJSON": {
|
|
361
|
-
"type": "string",
|
|
362
|
-
"const": "{\"type\":\"date\",\"attributes\":{\"step\":1},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
363
364
|
}
|
|
364
365
|
},
|
|
365
366
|
"required": [
|
|
@@ -396,10 +397,6 @@
|
|
|
396
397
|
"usageDescription": {
|
|
397
398
|
"type": "string",
|
|
398
399
|
"const": "For questions that require a date range (e.g. From/To, Start/End)"
|
|
399
|
-
},
|
|
400
|
-
"defaultJSON": {
|
|
401
|
-
"type": "string",
|
|
402
|
-
"const": "{\"type\":\"dateRange\",\"attributes\":{},\"columns\":{\"start\":{\"label\":\"Start\",\"step\":1},\"end\":{\"label\":\"End\",\"step\":1}}}"
|
|
403
400
|
}
|
|
404
401
|
},
|
|
405
402
|
"required": [
|
|
@@ -417,6 +414,10 @@
|
|
|
417
414
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes"
|
|
418
415
|
}
|
|
419
416
|
},
|
|
417
|
+
"required": [
|
|
418
|
+
"start",
|
|
419
|
+
"end"
|
|
420
|
+
],
|
|
420
421
|
"additionalProperties": false
|
|
421
422
|
}
|
|
422
423
|
},
|
|
@@ -446,7 +447,8 @@
|
|
|
446
447
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
447
448
|
},
|
|
448
449
|
"maxLength": {
|
|
449
|
-
"type": "number"
|
|
450
|
+
"type": "number",
|
|
451
|
+
"default": 255
|
|
450
452
|
},
|
|
451
453
|
"minLength": {
|
|
452
454
|
"type": "number"
|
|
@@ -455,7 +457,8 @@
|
|
|
455
457
|
"type": "string"
|
|
456
458
|
},
|
|
457
459
|
"multiple": {
|
|
458
|
-
"type": "boolean"
|
|
460
|
+
"type": "boolean",
|
|
461
|
+
"default": false
|
|
459
462
|
}
|
|
460
463
|
},
|
|
461
464
|
"additionalProperties": false
|
|
@@ -473,10 +476,6 @@
|
|
|
473
476
|
"usageDescription": {
|
|
474
477
|
"type": "string",
|
|
475
478
|
"const": "For questions that require require email address(es)."
|
|
476
|
-
},
|
|
477
|
-
"defaultJSON": {
|
|
478
|
-
"type": "string",
|
|
479
|
-
"const": "{\"type\":\"email\",\"attributes\":{\"maxLength\":255,\"minLength\":1,\"multiple\":false},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
480
479
|
}
|
|
481
480
|
},
|
|
482
481
|
"required": [
|
|
@@ -527,9 +526,6 @@
|
|
|
527
526
|
},
|
|
528
527
|
"usageDescription": {
|
|
529
528
|
"type": "string"
|
|
530
|
-
},
|
|
531
|
-
"defaultJSON": {
|
|
532
|
-
"type": "string"
|
|
533
529
|
}
|
|
534
530
|
},
|
|
535
531
|
"required": [
|
|
@@ -538,7 +534,76 @@
|
|
|
538
534
|
"additionalProperties": false
|
|
539
535
|
},
|
|
540
536
|
"graphQL": {
|
|
541
|
-
"
|
|
537
|
+
"type": "object",
|
|
538
|
+
"properties": {
|
|
539
|
+
"displayFields": {
|
|
540
|
+
"type": "array",
|
|
541
|
+
"items": {
|
|
542
|
+
"type": "object",
|
|
543
|
+
"properties": {
|
|
544
|
+
"propertyName": {
|
|
545
|
+
"type": "string"
|
|
546
|
+
},
|
|
547
|
+
"label": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
},
|
|
550
|
+
"labelTranslationKey": {
|
|
551
|
+
"type": "string"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"required": [
|
|
555
|
+
"propertyName",
|
|
556
|
+
"label"
|
|
557
|
+
],
|
|
558
|
+
"additionalProperties": false
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
"localQueryId": {
|
|
562
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
|
|
563
|
+
},
|
|
564
|
+
"query": {
|
|
565
|
+
"type": "string"
|
|
566
|
+
},
|
|
567
|
+
"responseField": {
|
|
568
|
+
"type": "string"
|
|
569
|
+
},
|
|
570
|
+
"variables": {
|
|
571
|
+
"type": "array",
|
|
572
|
+
"items": {
|
|
573
|
+
"type": "object",
|
|
574
|
+
"properties": {
|
|
575
|
+
"minLength": {
|
|
576
|
+
"type": "number"
|
|
577
|
+
},
|
|
578
|
+
"label": {
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
"labelTranslationKey": {
|
|
582
|
+
"type": "string"
|
|
583
|
+
},
|
|
584
|
+
"name": {
|
|
585
|
+
"type": "string"
|
|
586
|
+
},
|
|
587
|
+
"type": {
|
|
588
|
+
"type": "string"
|
|
589
|
+
},
|
|
590
|
+
"defaultValue": {
|
|
591
|
+
"type": "string"
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
"required": [
|
|
595
|
+
"name",
|
|
596
|
+
"type"
|
|
597
|
+
],
|
|
598
|
+
"additionalProperties": false
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"required": [
|
|
603
|
+
"displayFields",
|
|
604
|
+
"responseField"
|
|
605
|
+
],
|
|
606
|
+
"additionalProperties": false
|
|
542
607
|
}
|
|
543
608
|
},
|
|
544
609
|
"required": [
|
|
@@ -591,10 +656,6 @@
|
|
|
591
656
|
"usageDescription": {
|
|
592
657
|
"type": "string",
|
|
593
658
|
"const": "For questions that require a single numeric value."
|
|
594
|
-
},
|
|
595
|
-
"defaultJSON": {
|
|
596
|
-
"type": "string",
|
|
597
|
-
"const": "{\n \"type\": \"number\",\n \"attributes\": {\n \"min\": 0,\n \"step\": 1\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
598
659
|
}
|
|
599
660
|
},
|
|
600
661
|
"required": [
|
|
@@ -631,10 +692,6 @@
|
|
|
631
692
|
"usageDescription": {
|
|
632
693
|
"type": "string",
|
|
633
694
|
"const": "For multiple choice questions where users select just one option."
|
|
634
|
-
},
|
|
635
|
-
"defaultJSON": {
|
|
636
|
-
"type": "string",
|
|
637
|
-
"const": "{\n \"type\": \"radioButtons\",\n \"attributes\": {},\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\",\n \"selected\": false\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
638
695
|
}
|
|
639
696
|
},
|
|
640
697
|
"required": [
|
|
@@ -654,13 +711,10 @@
|
|
|
654
711
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/options/items/properties/value"
|
|
655
712
|
},
|
|
656
713
|
"selected": {
|
|
657
|
-
"type": "boolean"
|
|
714
|
+
"type": "boolean",
|
|
715
|
+
"default": false
|
|
658
716
|
}
|
|
659
717
|
},
|
|
660
|
-
"required": [
|
|
661
|
-
"label",
|
|
662
|
-
"value"
|
|
663
|
-
],
|
|
664
718
|
"additionalProperties": false
|
|
665
719
|
}
|
|
666
720
|
}
|
|
@@ -692,12 +746,9 @@
|
|
|
692
746
|
},
|
|
693
747
|
"multiple": {
|
|
694
748
|
"type": "boolean",
|
|
695
|
-
"
|
|
749
|
+
"default": false
|
|
696
750
|
}
|
|
697
751
|
},
|
|
698
|
-
"required": [
|
|
699
|
-
"multiple"
|
|
700
|
-
],
|
|
701
752
|
"additionalProperties": false
|
|
702
753
|
},
|
|
703
754
|
"meta": {
|
|
@@ -713,10 +764,6 @@
|
|
|
713
764
|
"usageDescription": {
|
|
714
765
|
"type": "string",
|
|
715
766
|
"const": "For questions where users select one option from a list."
|
|
716
|
-
},
|
|
717
|
-
"defaultJSON": {
|
|
718
|
-
"type": "string",
|
|
719
|
-
"const": "{\n \"type\": \"selectBox\",\n \"attributes\": {\n \"multiple\": false\n },\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\"\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
720
767
|
}
|
|
721
768
|
},
|
|
722
769
|
"required": [
|
|
@@ -758,7 +805,8 @@
|
|
|
758
805
|
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
759
806
|
},
|
|
760
807
|
"cols": {
|
|
761
|
-
"type": "number"
|
|
808
|
+
"type": "number",
|
|
809
|
+
"default": 20
|
|
762
810
|
},
|
|
763
811
|
"maxLength": {
|
|
764
812
|
"type": "number"
|
|
@@ -767,10 +815,12 @@
|
|
|
767
815
|
"type": "number"
|
|
768
816
|
},
|
|
769
817
|
"rows": {
|
|
770
|
-
"type": "number"
|
|
818
|
+
"type": "number",
|
|
819
|
+
"default": 2
|
|
771
820
|
},
|
|
772
821
|
"asRichText": {
|
|
773
|
-
"type": "boolean"
|
|
822
|
+
"type": "boolean",
|
|
823
|
+
"default": true
|
|
774
824
|
}
|
|
775
825
|
},
|
|
776
826
|
"additionalProperties": false
|
|
@@ -788,10 +838,6 @@
|
|
|
788
838
|
"usageDescription": {
|
|
789
839
|
"type": "string",
|
|
790
840
|
"const": "For questions that require longer answers, you can select formatting options too."
|
|
791
|
-
},
|
|
792
|
-
"defaultJSON": {
|
|
793
|
-
"type": "string",
|
|
794
|
-
"const": "{\"type\":\"textArea\",\"attributes\":{\"cols\":20,\"rows\":2,\"asRichText\":true},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
795
841
|
}
|
|
796
842
|
},
|
|
797
843
|
"required": [
|
|
@@ -849,10 +895,6 @@
|
|
|
849
895
|
"usageDescription": {
|
|
850
896
|
"type": "string",
|
|
851
897
|
"const": "For questions that require short, simple answers."
|
|
852
|
-
},
|
|
853
|
-
"defaultJSON": {
|
|
854
|
-
"type": "string",
|
|
855
|
-
"const": "{\"type\":\"text\",\"attributes\":{\"maxLength\":255},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
856
898
|
}
|
|
857
899
|
},
|
|
858
900
|
"required": [
|
|
@@ -889,10 +931,6 @@
|
|
|
889
931
|
"usageDescription": {
|
|
890
932
|
"type": "string",
|
|
891
933
|
"const": "For questions that require a website, DOI or other URL."
|
|
892
|
-
},
|
|
893
|
-
"defaultJSON": {
|
|
894
|
-
"type": "string",
|
|
895
|
-
"const": "{\"type\":\"url\",\"attributes\":{\"maxLength\":255},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
896
934
|
}
|
|
897
935
|
},
|
|
898
936
|
"required": [
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"type": "string"
|
|
22
22
|
},
|
|
23
23
|
"checked": {
|
|
24
|
-
"type": "boolean"
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"default": false
|
|
25
26
|
}
|
|
26
27
|
},
|
|
27
28
|
"additionalProperties": false
|
|
@@ -40,10 +41,6 @@
|
|
|
40
41
|
"usageDescription": {
|
|
41
42
|
"type": "string",
|
|
42
43
|
"const": "For questions that require a simple Yes/No response."
|
|
43
|
-
},
|
|
44
|
-
"defaultJSON": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"const": "{\n \"attributes\": {\n \"checked\": false\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
47
44
|
}
|
|
48
45
|
},
|
|
49
46
|
"required": [
|
|
@@ -37,10 +37,6 @@
|
|
|
37
37
|
"usageDescription": {
|
|
38
38
|
"type": "string",
|
|
39
39
|
"const": "For multiple choice questions where users can select multiple options."
|
|
40
|
-
},
|
|
41
|
-
"defaultJSON": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"const": "{\n \"type\": \"checkBoxes\",\n \"attributes\": {},\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"1\",\n \"checked\": false\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
44
40
|
}
|
|
45
41
|
},
|
|
46
42
|
"required": [
|
|
@@ -54,19 +50,18 @@
|
|
|
54
50
|
"type": "object",
|
|
55
51
|
"properties": {
|
|
56
52
|
"label": {
|
|
57
|
-
"type": "string"
|
|
53
|
+
"type": "string",
|
|
54
|
+
"default": "Option A"
|
|
58
55
|
},
|
|
59
56
|
"value": {
|
|
60
|
-
"type": "string"
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "a"
|
|
61
59
|
},
|
|
62
60
|
"checked": {
|
|
63
|
-
"type": "boolean"
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false
|
|
64
63
|
}
|
|
65
64
|
},
|
|
66
|
-
"required": [
|
|
67
|
-
"label",
|
|
68
|
-
"value"
|
|
69
|
-
],
|
|
70
65
|
"additionalProperties": false
|
|
71
66
|
}
|
|
72
67
|
}
|
|
@@ -24,13 +24,16 @@
|
|
|
24
24
|
"type": "number"
|
|
25
25
|
},
|
|
26
26
|
"min": {
|
|
27
|
-
"type": "number"
|
|
27
|
+
"type": "number",
|
|
28
|
+
"default": 0
|
|
28
29
|
},
|
|
29
30
|
"step": {
|
|
30
|
-
"type": "number"
|
|
31
|
+
"type": "number",
|
|
32
|
+
"default": 1
|
|
31
33
|
},
|
|
32
34
|
"denomination": {
|
|
33
|
-
"type": "string"
|
|
35
|
+
"type": "string",
|
|
36
|
+
"default": "USD"
|
|
34
37
|
}
|
|
35
38
|
},
|
|
36
39
|
"additionalProperties": false
|
|
@@ -49,10 +52,6 @@
|
|
|
49
52
|
"usageDescription": {
|
|
50
53
|
"type": "string",
|
|
51
54
|
"const": "For questions that require a monetary amount (e.g. Cost or Budget)."
|
|
52
|
-
},
|
|
53
|
-
"defaultJSON": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"const": "{\n \"type\": \"currency\",\n \"attributes\": {\n \"denomination\": \"USD\",\n \"min\": 0,\n \"step\": 1\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
57
|
"required": [
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"type": "string"
|
|
28
28
|
},
|
|
29
29
|
"step": {
|
|
30
|
-
"type": "number"
|
|
30
|
+
"type": "number",
|
|
31
|
+
"default": 1
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
"additionalProperties": false
|
|
@@ -46,10 +47,6 @@
|
|
|
46
47
|
"usageDescription": {
|
|
47
48
|
"type": "string",
|
|
48
49
|
"const": "For questions that require a date."
|
|
49
|
-
},
|
|
50
|
-
"defaultJSON": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"const": "{\"type\":\"date\",\"attributes\":{\"step\":1},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
53
50
|
}
|
|
54
51
|
},
|
|
55
52
|
"required": [
|
|
@@ -37,10 +37,6 @@
|
|
|
37
37
|
"usageDescription": {
|
|
38
38
|
"type": "string",
|
|
39
39
|
"const": "For questions that require a date range (e.g. From/To, Start/End)"
|
|
40
|
-
},
|
|
41
|
-
"defaultJSON": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"const": "{\"type\":\"dateRange\",\"attributes\":{},\"columns\":{\"start\":{\"label\":\"Start\",\"step\":1},\"end\":{\"label\":\"End\",\"step\":1}}}"
|
|
44
40
|
}
|
|
45
41
|
},
|
|
46
42
|
"required": [
|
|
@@ -70,7 +66,8 @@
|
|
|
70
66
|
"type": "string"
|
|
71
67
|
},
|
|
72
68
|
"step": {
|
|
73
|
-
"type": "number"
|
|
69
|
+
"type": "number",
|
|
70
|
+
"default": 1
|
|
74
71
|
}
|
|
75
72
|
},
|
|
76
73
|
"additionalProperties": false
|
|
@@ -79,6 +76,10 @@
|
|
|
79
76
|
"$ref": "#/definitions/DateRangeQuestion/properties/columns/properties/start"
|
|
80
77
|
}
|
|
81
78
|
},
|
|
79
|
+
"required": [
|
|
80
|
+
"start",
|
|
81
|
+
"end"
|
|
82
|
+
],
|
|
82
83
|
"additionalProperties": false
|
|
83
84
|
}
|
|
84
85
|
},
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"type": "string"
|
|
22
22
|
},
|
|
23
23
|
"maxLength": {
|
|
24
|
-
"type": "number"
|
|
24
|
+
"type": "number",
|
|
25
|
+
"default": 255
|
|
25
26
|
},
|
|
26
27
|
"minLength": {
|
|
27
28
|
"type": "number"
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"type": "string"
|
|
31
32
|
},
|
|
32
33
|
"multiple": {
|
|
33
|
-
"type": "boolean"
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
38
|
"additionalProperties": false
|
|
@@ -49,10 +51,6 @@
|
|
|
49
51
|
"usageDescription": {
|
|
50
52
|
"type": "string",
|
|
51
53
|
"const": "For questions that require require email address(es)."
|
|
52
|
-
},
|
|
53
|
-
"defaultJSON": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"const": "{\"type\":\"email\",\"attributes\":{\"maxLength\":255,\"minLength\":1,\"multiple\":false},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
56
54
|
}
|
|
57
55
|
},
|
|
58
56
|
"required": [
|