@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.
Files changed (121) hide show
  1. package/README.md +70 -1
  2. package/dist/answers/__tests__/defaults.spec.js +80 -21
  3. package/dist/answers/answer.d.ts +2 -0
  4. package/dist/answers/answer.js +4 -2
  5. package/dist/answers/dateAnswers.d.ts +4 -0
  6. package/dist/answers/graphQLAnswers.d.ts +8 -0
  7. package/dist/answers/index.d.ts +37 -0
  8. package/dist/answers/numberAnswers.d.ts +8 -0
  9. package/dist/answers/optionBasedAnswers.d.ts +10 -0
  10. package/dist/answers/tableAnswers.d.ts +94 -0
  11. package/dist/answers/textAnswers.d.ts +8 -0
  12. package/dist/dmp/extension.d.ts +111 -0
  13. package/dist/dmp/index.js +48 -2
  14. package/dist/questions/__tests__/defaults.spec.js +2 -2
  15. package/dist/questions/__tests__/optionBasedQuestions.spec.js +8 -4
  16. package/dist/questions/dateQuestions.d.ts +4 -0
  17. package/dist/questions/dateQuestions.js +2 -2
  18. package/dist/questions/index.d.ts +28 -0
  19. package/dist/questions/numberQuestions.d.ts +8 -0
  20. package/dist/questions/numberQuestions.js +4 -4
  21. package/dist/questions/optionBasedQuestions.d.ts +10 -0
  22. package/dist/questions/optionBasedQuestions.js +5 -5
  23. package/dist/questions/tableQuestions.d.ts +70 -0
  24. package/dist/questions/textQuestions.d.ts +4 -0
  25. package/dist/questions/textQuestions.js +2 -2
  26. package/dist/schemas/affiliationSearchAnswer.schema.json +3 -0
  27. package/dist/schemas/anyAnswer.schema.json +111 -0
  28. package/dist/schemas/anyQuestion.schema.json +84 -0
  29. package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
  30. package/dist/schemas/anyTableColumnQuestion.schema.json +33 -0
  31. package/dist/schemas/booleanAnswer.schema.json +3 -0
  32. package/dist/schemas/booleanQuestion.schema.json +3 -0
  33. package/dist/schemas/checkboxesAnswer.schema.json +3 -0
  34. package/dist/schemas/checkboxesQuestion.schema.json +3 -0
  35. package/dist/schemas/currencyAnswer.schema.json +3 -0
  36. package/dist/schemas/currencyQuestion.schema.json +3 -0
  37. package/dist/schemas/dateAnswer.schema.json +3 -0
  38. package/dist/schemas/dateQuestion.schema.json +3 -0
  39. package/dist/schemas/dateRangeAnswer.schema.json +3 -0
  40. package/dist/schemas/dateRangeQuestion.schema.json +3 -0
  41. package/dist/schemas/dmpExtension.schema.json +111 -0
  42. package/dist/schemas/emailAnswer.schema.json +3 -0
  43. package/dist/schemas/emailQuestion.schema.json +3 -0
  44. package/dist/schemas/licenseSearchAnswer.schema.json +3 -0
  45. package/dist/schemas/metadataStandardSearchAnswer.schema.json +3 -0
  46. package/dist/schemas/multiselectBoxAnswer.schema.json +3 -0
  47. package/dist/schemas/multiselectBoxQuestion.schema.json +3 -0
  48. package/dist/schemas/numberAnswer.schema.json +3 -0
  49. package/dist/schemas/numberQuestion.schema.json +3 -0
  50. package/dist/schemas/numberRangeAnswer.schema.json +3 -0
  51. package/dist/schemas/numberRangeQuestion.schema.json +3 -0
  52. package/dist/schemas/numberWithContextAnswer.schema.json +3 -0
  53. package/dist/schemas/numberWithContextQuestion.schema.json +3 -0
  54. package/dist/schemas/radioButtonsAnswer.schema.json +3 -0
  55. package/dist/schemas/radioButtonsQuestion.schema.json +3 -0
  56. package/dist/schemas/repositorySearchAnswer.schema.json +3 -0
  57. package/dist/schemas/researchOutputTableAnswer.schema.json +3344 -9
  58. package/dist/schemas/selectBoxAnswer.schema.json +3 -0
  59. package/dist/schemas/selectBoxQuestion.schema.json +3 -0
  60. package/dist/schemas/tableAnswer.schema.json +57 -0
  61. package/dist/schemas/tableQuestion.schema.json +33 -0
  62. package/dist/schemas/textAnswer.schema.json +3 -0
  63. package/dist/schemas/textAreaAnswer.schema.json +3 -0
  64. package/dist/schemas/urlAnswer.schema.json +3 -0
  65. package/dist/schemas/urlQuestion.schema.json +3 -0
  66. package/package.json +9 -4
  67. package/schemas/.placeholder +0 -0
  68. package/schemas/affiliationSearchAnswer.schema.json +50 -0
  69. package/schemas/affiliationSearchQuestion.schema.json +142 -0
  70. package/schemas/anyAnswer.schema.json +1537 -0
  71. package/schemas/anyQuestion.schema.json +4828 -0
  72. package/schemas/anyTableColumnAnswer.schema.json +741 -0
  73. package/schemas/anyTableColumnQuestion.schema.json +1560 -0
  74. package/schemas/booleanAnswer.schema.json +36 -0
  75. package/schemas/booleanQuestion.schema.json +55 -0
  76. package/schemas/checkboxesAnswer.schema.json +41 -0
  77. package/schemas/checkboxesQuestion.schema.json +80 -0
  78. package/schemas/currencyAnswer.schema.json +36 -0
  79. package/schemas/currencyQuestion.schema.json +73 -0
  80. package/schemas/dateAnswer.schema.json +36 -0
  81. package/schemas/datePickerAnswer.schema.json +37 -0
  82. package/schemas/datePickerQuestion.schema.json +52 -0
  83. package/schemas/dateQuestion.schema.json +66 -0
  84. package/schemas/dateRangeAnswer.schema.json +50 -0
  85. package/schemas/dateRangeQuestion.schema.json +124 -0
  86. package/schemas/dmp.schema.json +2070 -0
  87. package/schemas/dmpExtension.schema.json +1985 -0
  88. package/schemas/emailAnswer.schema.json +36 -0
  89. package/schemas/emailQuestion.schema.json +71 -0
  90. package/schemas/filteredSearchAnswer.schema.json +40 -0
  91. package/schemas/filteredSearchQuestion.schema.json +130 -0
  92. package/schemas/licenseSearchAnswer.schema.json +54 -0
  93. package/schemas/licenseSearchQuestion.schema.json +140 -0
  94. package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  95. package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  96. package/schemas/multiselectBoxAnswer.schema.json +41 -0
  97. package/schemas/multiselectBoxQuestion.schema.json +87 -0
  98. package/schemas/numberAnswer.schema.json +36 -0
  99. package/schemas/numberQuestion.schema.json +68 -0
  100. package/schemas/numberRangeAnswer.schema.json +50 -0
  101. package/schemas/numberRangeQuestion.schema.json +128 -0
  102. package/schemas/numberWithContextAnswer.schema.json +50 -0
  103. package/schemas/numberWithContextQuestion.schema.json +98 -0
  104. package/schemas/radioButtonsAnswer.schema.json +36 -0
  105. package/schemas/radioButtonsQuestion.schema.json +80 -0
  106. package/schemas/repositorySearchAnswer.schema.json +54 -0
  107. package/schemas/repositorySearchQuestion.schema.json +140 -0
  108. package/schemas/researchOutputTableAnswer.schema.json +20065 -0
  109. package/schemas/researchOutputTableQuestion.schema.json +140 -0
  110. package/schemas/selectBoxAnswer.schema.json +36 -0
  111. package/schemas/selectBoxQuestion.schema.json +87 -0
  112. package/schemas/tableAnswer.schema.json +797 -0
  113. package/schemas/tableQuestion.schema.json +1662 -0
  114. package/schemas/textAnswer.schema.json +36 -0
  115. package/schemas/textAreaAnswer.schema.json +36 -0
  116. package/schemas/textAreaQuestion.schema.json +78 -0
  117. package/schemas/textQuestion.schema.json +63 -0
  118. package/schemas/typeaheadSearchAnswer.schema.json +37 -0
  119. package/schemas/typeaheadSearchQuestion.schema.json +120 -0
  120. package/schemas/urlAnswer.schema.json +36 -0
  121. 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": [
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": false,
24
27
  "type": "boolean"
@@ -41,6 +41,9 @@
41
41
  "schemaVersion"
42
42
  ],
43
43
  "additionalProperties": false
44
+ },
45
+ "showCommentField": {
46
+ "type": "boolean"
44
47
  }
45
48
  },
46
49
  "required": [
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": [
24
27
  ""
@@ -65,6 +65,9 @@
65
65
  ],
66
66
  "additionalProperties": false
67
67
  }
68
+ },
69
+ "showCommentField": {
70
+ "type": "boolean"
68
71
  }
69
72
  },
70
73
  "required": [
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": 0,
24
27
  "type": "number"
@@ -59,6 +59,9 @@
59
59
  "schemaVersion"
60
60
  ],
61
61
  "additionalProperties": false
62
+ },
63
+ "showCommentField": {
64
+ "type": "boolean"
62
65
  }
63
66
  },
64
67
  "required": [
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": "",
24
27
  "type": "string"
@@ -52,6 +52,9 @@
52
52
  "schemaVersion"
53
53
  ],
54
54
  "additionalProperties": false
55
+ },
56
+ "showCommentField": {
57
+ "type": "boolean"
55
58
  }
56
59
  },
57
60
  "required": [
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "type": "object",
24
27
  "properties": {
@@ -109,6 +109,9 @@
109
109
  "end"
110
110
  ],
111
111
  "additionalProperties": false
112
+ },
113
+ "showCommentField": {
114
+ "type": "boolean"
112
115
  }
113
116
  },
114
117
  "required": [