@dmptool/types 2.1.0 → 2.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 +70 -1
- package/dist/answers/__tests__/defaults.spec.js +80 -21
- package/dist/answers/answer.d.ts +2 -0
- package/dist/answers/answer.js +4 -2
- package/dist/answers/dateAnswers.d.ts +4 -0
- package/dist/answers/graphQLAnswers.d.ts +8 -0
- package/dist/answers/index.d.ts +37 -0
- package/dist/answers/numberAnswers.d.ts +8 -0
- package/dist/answers/optionBasedAnswers.d.ts +10 -0
- package/dist/answers/tableAnswers.d.ts +94 -0
- package/dist/answers/textAnswers.d.ts +8 -0
- package/dist/dmp/extension.d.ts +111 -0
- package/dist/dmp/index.js +48 -2
- package/dist/questions/__tests__/defaults.spec.js +2 -2
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +8 -4
- package/dist/questions/dateQuestions.d.ts +4 -0
- package/dist/questions/dateQuestions.js +2 -2
- package/dist/questions/index.d.ts +28 -0
- package/dist/questions/numberQuestions.d.ts +8 -0
- package/dist/questions/numberQuestions.js +4 -4
- package/dist/questions/optionBasedQuestions.d.ts +10 -0
- package/dist/questions/optionBasedQuestions.js +5 -5
- package/dist/questions/tableQuestions.d.ts +70 -0
- package/dist/questions/textQuestions.d.ts +4 -0
- package/dist/questions/textQuestions.js +2 -2
- package/dist/schemas/affiliationSearchAnswer.schema.json +3 -0
- package/dist/schemas/anyAnswer.schema.json +111 -0
- package/dist/schemas/anyQuestion.schema.json +84 -0
- package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
- package/dist/schemas/anyTableColumnQuestion.schema.json +33 -0
- package/dist/schemas/booleanAnswer.schema.json +3 -0
- package/dist/schemas/booleanQuestion.schema.json +3 -0
- package/dist/schemas/checkboxesAnswer.schema.json +3 -0
- package/dist/schemas/checkboxesQuestion.schema.json +3 -0
- package/dist/schemas/currencyAnswer.schema.json +3 -0
- package/dist/schemas/currencyQuestion.schema.json +3 -0
- package/dist/schemas/dateAnswer.schema.json +3 -0
- package/dist/schemas/dateQuestion.schema.json +3 -0
- package/dist/schemas/dateRangeAnswer.schema.json +3 -0
- package/dist/schemas/dateRangeQuestion.schema.json +3 -0
- package/dist/schemas/dmpExtension.schema.json +111 -0
- package/dist/schemas/emailAnswer.schema.json +3 -0
- package/dist/schemas/emailQuestion.schema.json +3 -0
- package/dist/schemas/licenseSearchAnswer.schema.json +3 -0
- package/dist/schemas/metadataStandardSearchAnswer.schema.json +3 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +3 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +3 -0
- package/dist/schemas/numberAnswer.schema.json +3 -0
- package/dist/schemas/numberQuestion.schema.json +3 -0
- package/dist/schemas/numberRangeAnswer.schema.json +3 -0
- package/dist/schemas/numberRangeQuestion.schema.json +3 -0
- package/dist/schemas/numberWithContextAnswer.schema.json +3 -0
- package/dist/schemas/numberWithContextQuestion.schema.json +3 -0
- package/dist/schemas/radioButtonsAnswer.schema.json +3 -0
- package/dist/schemas/radioButtonsQuestion.schema.json +3 -0
- package/dist/schemas/repositorySearchAnswer.schema.json +3 -0
- package/dist/schemas/researchOutputTableAnswer.schema.json +3344 -9
- package/dist/schemas/selectBoxAnswer.schema.json +3 -0
- package/dist/schemas/selectBoxQuestion.schema.json +3 -0
- package/dist/schemas/tableAnswer.schema.json +57 -0
- package/dist/schemas/tableQuestion.schema.json +33 -0
- package/dist/schemas/textAnswer.schema.json +3 -0
- package/dist/schemas/textAreaAnswer.schema.json +3 -0
- package/dist/schemas/urlAnswer.schema.json +3 -0
- package/dist/schemas/urlQuestion.schema.json +3 -0
- package/package.json +9 -4
- package/schemas/.placeholder +0 -0
- package/schemas/affiliationSearchAnswer.schema.json +50 -0
- package/schemas/affiliationSearchQuestion.schema.json +142 -0
- package/schemas/anyAnswer.schema.json +1537 -0
- package/schemas/anyQuestion.schema.json +4828 -0
- package/schemas/anyTableColumnAnswer.schema.json +741 -0
- package/schemas/anyTableColumnQuestion.schema.json +1560 -0
- package/schemas/booleanAnswer.schema.json +36 -0
- package/schemas/booleanQuestion.schema.json +55 -0
- package/schemas/checkboxesAnswer.schema.json +41 -0
- package/schemas/checkboxesQuestion.schema.json +80 -0
- package/schemas/currencyAnswer.schema.json +36 -0
- package/schemas/currencyQuestion.schema.json +73 -0
- package/schemas/dateAnswer.schema.json +36 -0
- package/schemas/datePickerAnswer.schema.json +37 -0
- package/schemas/datePickerQuestion.schema.json +52 -0
- package/schemas/dateQuestion.schema.json +66 -0
- package/schemas/dateRangeAnswer.schema.json +50 -0
- package/schemas/dateRangeQuestion.schema.json +124 -0
- package/schemas/dmp.schema.json +2070 -0
- package/schemas/dmpExtension.schema.json +1985 -0
- package/schemas/emailAnswer.schema.json +36 -0
- package/schemas/emailQuestion.schema.json +71 -0
- package/schemas/filteredSearchAnswer.schema.json +40 -0
- package/schemas/filteredSearchQuestion.schema.json +130 -0
- package/schemas/licenseSearchAnswer.schema.json +54 -0
- package/schemas/licenseSearchQuestion.schema.json +140 -0
- package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
- package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
- package/schemas/multiselectBoxAnswer.schema.json +41 -0
- package/schemas/multiselectBoxQuestion.schema.json +87 -0
- package/schemas/numberAnswer.schema.json +36 -0
- package/schemas/numberQuestion.schema.json +68 -0
- package/schemas/numberRangeAnswer.schema.json +50 -0
- package/schemas/numberRangeQuestion.schema.json +128 -0
- package/schemas/numberWithContextAnswer.schema.json +50 -0
- package/schemas/numberWithContextQuestion.schema.json +98 -0
- package/schemas/radioButtonsAnswer.schema.json +36 -0
- package/schemas/radioButtonsQuestion.schema.json +80 -0
- package/schemas/repositorySearchAnswer.schema.json +54 -0
- package/schemas/repositorySearchQuestion.schema.json +140 -0
- package/schemas/researchOutputTableAnswer.schema.json +20065 -0
- package/schemas/researchOutputTableQuestion.schema.json +140 -0
- package/schemas/selectBoxAnswer.schema.json +36 -0
- package/schemas/selectBoxQuestion.schema.json +87 -0
- package/schemas/tableAnswer.schema.json +797 -0
- package/schemas/tableQuestion.schema.json +1662 -0
- package/schemas/textAnswer.schema.json +36 -0
- package/schemas/textAreaAnswer.schema.json +36 -0
- package/schemas/textAreaQuestion.schema.json +78 -0
- package/schemas/textQuestion.schema.json +63 -0
- package/schemas/typeaheadSearchAnswer.schema.json +37 -0
- package/schemas/typeaheadSearchQuestion.schema.json +120 -0
- package/schemas/urlAnswer.schema.json +36 -0
- package/schemas/urlQuestion.schema.json +66 -0
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
],
|
|
22
22
|
"additionalProperties": false
|
|
23
23
|
},
|
|
24
|
+
"comment": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
24
27
|
"answer": {
|
|
25
28
|
"type": "object",
|
|
26
29
|
"properties": {
|
|
@@ -67,6 +70,9 @@
|
|
|
67
70
|
],
|
|
68
71
|
"additionalProperties": false
|
|
69
72
|
},
|
|
73
|
+
"comment": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
70
76
|
"answer": {
|
|
71
77
|
"default": false,
|
|
72
78
|
"type": "boolean"
|
|
@@ -99,6 +105,9 @@
|
|
|
99
105
|
],
|
|
100
106
|
"additionalProperties": false
|
|
101
107
|
},
|
|
108
|
+
"comment": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
102
111
|
"answer": {
|
|
103
112
|
"default": [
|
|
104
113
|
""
|
|
@@ -136,6 +145,9 @@
|
|
|
136
145
|
],
|
|
137
146
|
"additionalProperties": false
|
|
138
147
|
},
|
|
148
|
+
"comment": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
139
151
|
"answer": {
|
|
140
152
|
"default": 0,
|
|
141
153
|
"type": "number"
|
|
@@ -168,6 +180,9 @@
|
|
|
168
180
|
],
|
|
169
181
|
"additionalProperties": false
|
|
170
182
|
},
|
|
183
|
+
"comment": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
171
186
|
"answer": {
|
|
172
187
|
"default": "",
|
|
173
188
|
"type": "string"
|
|
@@ -200,6 +215,9 @@
|
|
|
200
215
|
],
|
|
201
216
|
"additionalProperties": false
|
|
202
217
|
},
|
|
218
|
+
"comment": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
203
221
|
"answer": {
|
|
204
222
|
"type": "object",
|
|
205
223
|
"properties": {
|
|
@@ -246,6 +264,9 @@
|
|
|
246
264
|
],
|
|
247
265
|
"additionalProperties": false
|
|
248
266
|
},
|
|
267
|
+
"comment": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
249
270
|
"answer": {
|
|
250
271
|
"default": "",
|
|
251
272
|
"type": "string"
|
|
@@ -278,6 +299,9 @@
|
|
|
278
299
|
],
|
|
279
300
|
"additionalProperties": false
|
|
280
301
|
},
|
|
302
|
+
"comment": {
|
|
303
|
+
"type": "string"
|
|
304
|
+
},
|
|
281
305
|
"answer": {
|
|
282
306
|
"default": [],
|
|
283
307
|
"type": "array",
|
|
@@ -328,6 +352,9 @@
|
|
|
328
352
|
],
|
|
329
353
|
"additionalProperties": false
|
|
330
354
|
},
|
|
355
|
+
"comment": {
|
|
356
|
+
"type": "string"
|
|
357
|
+
},
|
|
331
358
|
"answer": {
|
|
332
359
|
"default": [],
|
|
333
360
|
"type": "array",
|
|
@@ -378,6 +405,9 @@
|
|
|
378
405
|
],
|
|
379
406
|
"additionalProperties": false
|
|
380
407
|
},
|
|
408
|
+
"comment": {
|
|
409
|
+
"type": "string"
|
|
410
|
+
},
|
|
381
411
|
"answer": {
|
|
382
412
|
"default": [
|
|
383
413
|
""
|
|
@@ -415,6 +445,9 @@
|
|
|
415
445
|
],
|
|
416
446
|
"additionalProperties": false
|
|
417
447
|
},
|
|
448
|
+
"comment": {
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
418
451
|
"answer": {
|
|
419
452
|
"default": 0,
|
|
420
453
|
"type": "number"
|
|
@@ -447,6 +480,9 @@
|
|
|
447
480
|
],
|
|
448
481
|
"additionalProperties": false
|
|
449
482
|
},
|
|
483
|
+
"comment": {
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
450
486
|
"answer": {
|
|
451
487
|
"type": "object",
|
|
452
488
|
"properties": {
|
|
@@ -493,6 +529,9 @@
|
|
|
493
529
|
],
|
|
494
530
|
"additionalProperties": false
|
|
495
531
|
},
|
|
532
|
+
"comment": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
496
535
|
"answer": {
|
|
497
536
|
"default": "",
|
|
498
537
|
"type": "string"
|
|
@@ -525,6 +564,9 @@
|
|
|
525
564
|
],
|
|
526
565
|
"additionalProperties": false
|
|
527
566
|
},
|
|
567
|
+
"comment": {
|
|
568
|
+
"type": "string"
|
|
569
|
+
},
|
|
528
570
|
"answer": {
|
|
529
571
|
"default": [],
|
|
530
572
|
"type": "array",
|
|
@@ -575,6 +617,9 @@
|
|
|
575
617
|
],
|
|
576
618
|
"additionalProperties": false
|
|
577
619
|
},
|
|
620
|
+
"comment": {
|
|
621
|
+
"type": "string"
|
|
622
|
+
},
|
|
578
623
|
"answer": {
|
|
579
624
|
"default": "",
|
|
580
625
|
"type": "string"
|
|
@@ -607,6 +652,9 @@
|
|
|
607
652
|
],
|
|
608
653
|
"additionalProperties": false
|
|
609
654
|
},
|
|
655
|
+
"comment": {
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
610
658
|
"answer": {
|
|
611
659
|
"default": "",
|
|
612
660
|
"type": "string"
|
|
@@ -639,6 +687,9 @@
|
|
|
639
687
|
],
|
|
640
688
|
"additionalProperties": false
|
|
641
689
|
},
|
|
690
|
+
"comment": {
|
|
691
|
+
"type": "string"
|
|
692
|
+
},
|
|
642
693
|
"answer": {
|
|
643
694
|
"default": "",
|
|
644
695
|
"type": "string"
|
|
@@ -671,6 +722,9 @@
|
|
|
671
722
|
],
|
|
672
723
|
"additionalProperties": false
|
|
673
724
|
},
|
|
725
|
+
"comment": {
|
|
726
|
+
"type": "string"
|
|
727
|
+
},
|
|
674
728
|
"answer": {
|
|
675
729
|
"default": "",
|
|
676
730
|
"type": "string"
|
|
@@ -184,6 +184,9 @@
|
|
|
184
184
|
"schemaVersion"
|
|
185
185
|
],
|
|
186
186
|
"additionalProperties": false
|
|
187
|
+
},
|
|
188
|
+
"showCommentField": {
|
|
189
|
+
"type": "boolean"
|
|
187
190
|
}
|
|
188
191
|
},
|
|
189
192
|
"required": [
|
|
@@ -259,6 +262,9 @@
|
|
|
259
262
|
],
|
|
260
263
|
"additionalProperties": false
|
|
261
264
|
}
|
|
265
|
+
},
|
|
266
|
+
"showCommentField": {
|
|
267
|
+
"type": "boolean"
|
|
262
268
|
}
|
|
263
269
|
},
|
|
264
270
|
"required": [
|
|
@@ -329,6 +335,9 @@
|
|
|
329
335
|
"schemaVersion"
|
|
330
336
|
],
|
|
331
337
|
"additionalProperties": false
|
|
338
|
+
},
|
|
339
|
+
"showCommentField": {
|
|
340
|
+
"type": "boolean"
|
|
332
341
|
}
|
|
333
342
|
},
|
|
334
343
|
"required": [
|
|
@@ -391,6 +400,9 @@
|
|
|
391
400
|
"schemaVersion"
|
|
392
401
|
],
|
|
393
402
|
"additionalProperties": false
|
|
403
|
+
},
|
|
404
|
+
"showCommentField": {
|
|
405
|
+
"type": "boolean"
|
|
394
406
|
}
|
|
395
407
|
},
|
|
396
408
|
"required": [
|
|
@@ -510,6 +522,9 @@
|
|
|
510
522
|
"end"
|
|
511
523
|
],
|
|
512
524
|
"additionalProperties": false
|
|
525
|
+
},
|
|
526
|
+
"showCommentField": {
|
|
527
|
+
"type": "boolean"
|
|
513
528
|
}
|
|
514
529
|
},
|
|
515
530
|
"required": [
|
|
@@ -578,6 +593,9 @@
|
|
|
578
593
|
"schemaVersion"
|
|
579
594
|
],
|
|
580
595
|
"additionalProperties": false
|
|
596
|
+
},
|
|
597
|
+
"showCommentField": {
|
|
598
|
+
"type": "boolean"
|
|
581
599
|
}
|
|
582
600
|
},
|
|
583
601
|
"required": [
|
|
@@ -921,6 +939,9 @@
|
|
|
921
939
|
"schemaVersion"
|
|
922
940
|
],
|
|
923
941
|
"additionalProperties": false
|
|
942
|
+
},
|
|
943
|
+
"showCommentField": {
|
|
944
|
+
"type": "boolean"
|
|
924
945
|
}
|
|
925
946
|
},
|
|
926
947
|
"required": [
|
|
@@ -1015,6 +1036,9 @@
|
|
|
1015
1036
|
"schemaVersion"
|
|
1016
1037
|
],
|
|
1017
1038
|
"additionalProperties": false
|
|
1039
|
+
},
|
|
1040
|
+
"showCommentField": {
|
|
1041
|
+
"type": "boolean"
|
|
1018
1042
|
}
|
|
1019
1043
|
},
|
|
1020
1044
|
"required": [
|
|
@@ -1090,6 +1114,9 @@
|
|
|
1090
1114
|
],
|
|
1091
1115
|
"additionalProperties": false
|
|
1092
1116
|
}
|
|
1117
|
+
},
|
|
1118
|
+
"showCommentField": {
|
|
1119
|
+
"type": "boolean"
|
|
1093
1120
|
}
|
|
1094
1121
|
},
|
|
1095
1122
|
"required": [
|
|
@@ -1312,6 +1339,9 @@
|
|
|
1312
1339
|
],
|
|
1313
1340
|
"additionalProperties": false
|
|
1314
1341
|
}
|
|
1342
|
+
},
|
|
1343
|
+
"showCommentField": {
|
|
1344
|
+
"type": "boolean"
|
|
1315
1345
|
}
|
|
1316
1346
|
},
|
|
1317
1347
|
"required": [
|
|
@@ -1514,6 +1544,9 @@
|
|
|
1514
1544
|
"schemaVersion"
|
|
1515
1545
|
],
|
|
1516
1546
|
"additionalProperties": false
|
|
1547
|
+
},
|
|
1548
|
+
"showCommentField": {
|
|
1549
|
+
"type": "boolean"
|
|
1517
1550
|
}
|
|
1518
1551
|
},
|
|
1519
1552
|
"required": [
|