@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
@@ -122,6 +122,9 @@
122
122
  ],
123
123
  "additionalProperties": false
124
124
  },
125
+ "comment": {
126
+ "type": "string"
127
+ },
125
128
  "answer": {
126
129
  "type": "object",
127
130
  "properties": {
@@ -168,6 +171,9 @@
168
171
  ],
169
172
  "additionalProperties": false
170
173
  },
174
+ "comment": {
175
+ "type": "string"
176
+ },
171
177
  "answer": {
172
178
  "default": false,
173
179
  "type": "boolean"
@@ -200,6 +206,9 @@
200
206
  ],
201
207
  "additionalProperties": false
202
208
  },
209
+ "comment": {
210
+ "type": "string"
211
+ },
203
212
  "answer": {
204
213
  "default": [
205
214
  ""
@@ -237,6 +246,9 @@
237
246
  ],
238
247
  "additionalProperties": false
239
248
  },
249
+ "comment": {
250
+ "type": "string"
251
+ },
240
252
  "answer": {
241
253
  "default": 0,
242
254
  "type": "number"
@@ -269,6 +281,9 @@
269
281
  ],
270
282
  "additionalProperties": false
271
283
  },
284
+ "comment": {
285
+ "type": "string"
286
+ },
272
287
  "answer": {
273
288
  "default": "",
274
289
  "type": "string"
@@ -301,6 +316,9 @@
301
316
  ],
302
317
  "additionalProperties": false
303
318
  },
319
+ "comment": {
320
+ "type": "string"
321
+ },
304
322
  "answer": {
305
323
  "type": "object",
306
324
  "properties": {
@@ -347,6 +365,9 @@
347
365
  ],
348
366
  "additionalProperties": false
349
367
  },
368
+ "comment": {
369
+ "type": "string"
370
+ },
350
371
  "answer": {
351
372
  "default": "",
352
373
  "type": "string"
@@ -379,6 +400,9 @@
379
400
  ],
380
401
  "additionalProperties": false
381
402
  },
403
+ "comment": {
404
+ "type": "string"
405
+ },
382
406
  "answer": {
383
407
  "default": [],
384
408
  "type": "array",
@@ -429,6 +453,9 @@
429
453
  ],
430
454
  "additionalProperties": false
431
455
  },
456
+ "comment": {
457
+ "type": "string"
458
+ },
432
459
  "answer": {
433
460
  "default": [],
434
461
  "type": "array",
@@ -479,6 +506,9 @@
479
506
  ],
480
507
  "additionalProperties": false
481
508
  },
509
+ "comment": {
510
+ "type": "string"
511
+ },
482
512
  "answer": {
483
513
  "default": [
484
514
  ""
@@ -516,6 +546,9 @@
516
546
  ],
517
547
  "additionalProperties": false
518
548
  },
549
+ "comment": {
550
+ "type": "string"
551
+ },
519
552
  "answer": {
520
553
  "default": 0,
521
554
  "type": "number"
@@ -548,6 +581,9 @@
548
581
  ],
549
582
  "additionalProperties": false
550
583
  },
584
+ "comment": {
585
+ "type": "string"
586
+ },
551
587
  "answer": {
552
588
  "type": "object",
553
589
  "properties": {
@@ -594,6 +630,9 @@
594
630
  ],
595
631
  "additionalProperties": false
596
632
  },
633
+ "comment": {
634
+ "type": "string"
635
+ },
597
636
  "answer": {
598
637
  "default": "",
599
638
  "type": "string"
@@ -626,6 +665,9 @@
626
665
  ],
627
666
  "additionalProperties": false
628
667
  },
668
+ "comment": {
669
+ "type": "string"
670
+ },
629
671
  "answer": {
630
672
  "default": [],
631
673
  "type": "array",
@@ -676,6 +718,9 @@
676
718
  ],
677
719
  "additionalProperties": false
678
720
  },
721
+ "comment": {
722
+ "type": "string"
723
+ },
679
724
  "answer": {
680
725
  "default": "",
681
726
  "type": "string"
@@ -708,6 +753,9 @@
708
753
  ],
709
754
  "additionalProperties": false
710
755
  },
756
+ "comment": {
757
+ "type": "string"
758
+ },
711
759
  "columnHeadings": {
712
760
  "default": [
713
761
  "Column A"
@@ -746,6 +794,9 @@
746
794
  ],
747
795
  "additionalProperties": false
748
796
  },
797
+ "comment": {
798
+ "type": "string"
799
+ },
749
800
  "answer": {
750
801
  "type": "object",
751
802
  "properties": {
@@ -792,6 +843,9 @@
792
843
  ],
793
844
  "additionalProperties": false
794
845
  },
846
+ "comment": {
847
+ "type": "string"
848
+ },
795
849
  "answer": {
796
850
  "default": false,
797
851
  "type": "boolean"
@@ -824,6 +878,9 @@
824
878
  ],
825
879
  "additionalProperties": false
826
880
  },
881
+ "comment": {
882
+ "type": "string"
883
+ },
827
884
  "answer": {
828
885
  "default": [
829
886
  ""
@@ -861,6 +918,9 @@
861
918
  ],
862
919
  "additionalProperties": false
863
920
  },
921
+ "comment": {
922
+ "type": "string"
923
+ },
864
924
  "answer": {
865
925
  "default": 0,
866
926
  "type": "number"
@@ -893,6 +953,9 @@
893
953
  ],
894
954
  "additionalProperties": false
895
955
  },
956
+ "comment": {
957
+ "type": "string"
958
+ },
896
959
  "answer": {
897
960
  "default": "",
898
961
  "type": "string"
@@ -925,6 +988,9 @@
925
988
  ],
926
989
  "additionalProperties": false
927
990
  },
991
+ "comment": {
992
+ "type": "string"
993
+ },
928
994
  "answer": {
929
995
  "type": "object",
930
996
  "properties": {
@@ -971,6 +1037,9 @@
971
1037
  ],
972
1038
  "additionalProperties": false
973
1039
  },
1040
+ "comment": {
1041
+ "type": "string"
1042
+ },
974
1043
  "answer": {
975
1044
  "default": "",
976
1045
  "type": "string"
@@ -1003,6 +1072,9 @@
1003
1072
  ],
1004
1073
  "additionalProperties": false
1005
1074
  },
1075
+ "comment": {
1076
+ "type": "string"
1077
+ },
1006
1078
  "answer": {
1007
1079
  "default": [],
1008
1080
  "type": "array",
@@ -1053,6 +1125,9 @@
1053
1125
  ],
1054
1126
  "additionalProperties": false
1055
1127
  },
1128
+ "comment": {
1129
+ "type": "string"
1130
+ },
1056
1131
  "answer": {
1057
1132
  "default": [],
1058
1133
  "type": "array",
@@ -1103,6 +1178,9 @@
1103
1178
  ],
1104
1179
  "additionalProperties": false
1105
1180
  },
1181
+ "comment": {
1182
+ "type": "string"
1183
+ },
1106
1184
  "answer": {
1107
1185
  "default": [
1108
1186
  ""
@@ -1140,6 +1218,9 @@
1140
1218
  ],
1141
1219
  "additionalProperties": false
1142
1220
  },
1221
+ "comment": {
1222
+ "type": "string"
1223
+ },
1143
1224
  "answer": {
1144
1225
  "default": 0,
1145
1226
  "type": "number"
@@ -1172,6 +1253,9 @@
1172
1253
  ],
1173
1254
  "additionalProperties": false
1174
1255
  },
1256
+ "comment": {
1257
+ "type": "string"
1258
+ },
1175
1259
  "answer": {
1176
1260
  "type": "object",
1177
1261
  "properties": {
@@ -1218,6 +1302,9 @@
1218
1302
  ],
1219
1303
  "additionalProperties": false
1220
1304
  },
1305
+ "comment": {
1306
+ "type": "string"
1307
+ },
1221
1308
  "answer": {
1222
1309
  "default": "",
1223
1310
  "type": "string"
@@ -1250,6 +1337,9 @@
1250
1337
  ],
1251
1338
  "additionalProperties": false
1252
1339
  },
1340
+ "comment": {
1341
+ "type": "string"
1342
+ },
1253
1343
  "answer": {
1254
1344
  "default": [],
1255
1345
  "type": "array",
@@ -1300,6 +1390,9 @@
1300
1390
  ],
1301
1391
  "additionalProperties": false
1302
1392
  },
1393
+ "comment": {
1394
+ "type": "string"
1395
+ },
1303
1396
  "answer": {
1304
1397
  "default": "",
1305
1398
  "type": "string"
@@ -1332,6 +1425,9 @@
1332
1425
  ],
1333
1426
  "additionalProperties": false
1334
1427
  },
1428
+ "comment": {
1429
+ "type": "string"
1430
+ },
1335
1431
  "answer": {
1336
1432
  "default": "",
1337
1433
  "type": "string"
@@ -1364,6 +1460,9 @@
1364
1460
  ],
1365
1461
  "additionalProperties": false
1366
1462
  },
1463
+ "comment": {
1464
+ "type": "string"
1465
+ },
1367
1466
  "answer": {
1368
1467
  "default": "",
1369
1468
  "type": "string"
@@ -1396,6 +1495,9 @@
1396
1495
  ],
1397
1496
  "additionalProperties": false
1398
1497
  },
1498
+ "comment": {
1499
+ "type": "string"
1500
+ },
1399
1501
  "answer": {
1400
1502
  "default": "",
1401
1503
  "type": "string"
@@ -1447,6 +1549,9 @@
1447
1549
  ],
1448
1550
  "additionalProperties": false
1449
1551
  },
1552
+ "comment": {
1553
+ "type": "string"
1554
+ },
1450
1555
  "answer": {
1451
1556
  "default": "",
1452
1557
  "type": "string"
@@ -1479,6 +1584,9 @@
1479
1584
  ],
1480
1585
  "additionalProperties": false
1481
1586
  },
1587
+ "comment": {
1588
+ "type": "string"
1589
+ },
1482
1590
  "answer": {
1483
1591
  "default": "",
1484
1592
  "type": "string"
@@ -1511,6 +1619,9 @@
1511
1619
  ],
1512
1620
  "additionalProperties": false
1513
1621
  },
1622
+ "comment": {
1623
+ "type": "string"
1624
+ },
1514
1625
  "answer": {
1515
1626
  "default": "",
1516
1627
  "type": "string"
@@ -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"
@@ -57,6 +57,9 @@
57
57
  "schemaVersion"
58
58
  ],
59
59
  "additionalProperties": false
60
+ },
61
+ "showCommentField": {
62
+ "type": "boolean"
60
63
  }
61
64
  },
62
65
  "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": "array",
@@ -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": "array",
@@ -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
  ""
@@ -72,6 +72,9 @@
72
72
  ],
73
73
  "additionalProperties": false
74
74
  }
75
+ },
76
+ "showCommentField": {
77
+ "type": "boolean"
75
78
  }
76
79
  },
77
80
  "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"
@@ -54,6 +54,9 @@
54
54
  "schemaVersion"
55
55
  ],
56
56
  "additionalProperties": false
57
+ },
58
+ "showCommentField": {
59
+ "type": "boolean"
57
60
  }
58
61
  },
59
62
  "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": {
@@ -113,6 +113,9 @@
113
113
  "end"
114
114
  ],
115
115
  "additionalProperties": false
116
+ },
117
+ "showCommentField": {
118
+ "type": "boolean"
116
119
  }
117
120
  },
118
121
  "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": {
@@ -84,6 +84,9 @@
84
84
  "schemaVersion"
85
85
  ],
86
86
  "additionalProperties": false
87
+ },
88
+ "showCommentField": {
89
+ "type": "boolean"
87
90
  }
88
91
  },
89
92
  "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"
@@ -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": [],
24
27
  "type": "array",