@dmptool/types 2.3.2 → 3.0.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 (37) hide show
  1. package/dist/dmp/index.d.ts +2 -2
  2. package/dist/dmp/index.js +65 -50
  3. package/dist/questions/__tests__/defaults.spec.js +12 -12
  4. package/dist/questions/__tests__/optionBasedQuestions.spec.js +3 -3
  5. package/dist/questions/index.d.ts +22 -5
  6. package/dist/questions/index.js +2 -2
  7. package/dist/questions/optionBasedQuestions.d.ts +8 -2
  8. package/dist/questions/optionBasedQuestions.js +6 -6
  9. package/dist/questions/tableQuestions.d.ts +77 -8
  10. package/dist/questions/tableQuestions.js +3 -3
  11. package/dist/questions/textQuestions.d.ts +8 -0
  12. package/dist/questions/textQuestions.js +1 -1
  13. package/dist/schemas/anyQuestion.schema.json +64 -9
  14. package/dist/schemas/anyTableColumnQuestion.schema.json +22 -3
  15. package/dist/schemas/checkboxesQuestion.schema.json +2 -3
  16. package/dist/schemas/emailQuestion.schema.json +3 -0
  17. package/dist/schemas/multiselectBoxQuestion.schema.json +4 -0
  18. package/dist/schemas/radioButtonsQuestion.schema.json +4 -0
  19. package/dist/schemas/researchOutputTableQuestion.schema.json +1455 -61
  20. package/dist/schemas/selectBoxQuestion.schema.json +4 -0
  21. package/dist/schemas/tableQuestion.schema.json +22 -3
  22. package/dist/schemas/textAreaQuestion.schema.json +3 -0
  23. package/dist/schemas/textQuestion.schema.json +3 -0
  24. package/dist/schemas/urlQuestion.schema.json +3 -0
  25. package/package.json +2 -2
  26. package/schemas/anyQuestion.schema.json +64 -9
  27. package/schemas/anyTableColumnQuestion.schema.json +22 -3
  28. package/schemas/checkboxesQuestion.schema.json +2 -3
  29. package/schemas/emailQuestion.schema.json +3 -0
  30. package/schemas/multiselectBoxQuestion.schema.json +4 -0
  31. package/schemas/radioButtonsQuestion.schema.json +4 -0
  32. package/schemas/researchOutputTableQuestion.schema.json +1455 -61
  33. package/schemas/selectBoxQuestion.schema.json +4 -0
  34. package/schemas/tableQuestion.schema.json +22 -3
  35. package/schemas/textAreaQuestion.schema.json +3 -0
  36. package/schemas/textQuestion.schema.json +3 -0
  37. package/schemas/urlQuestion.schema.json +3 -0
@@ -253,15 +253,14 @@
253
253
  "description": {
254
254
  "type": "string"
255
255
  },
256
- "checked": {
256
+ "selected": {
257
257
  "default": false,
258
258
  "type": "boolean"
259
259
  }
260
260
  },
261
261
  "required": [
262
262
  "label",
263
- "value",
264
- "checked"
263
+ "value"
265
264
  ],
266
265
  "additionalProperties": false
267
266
  }
@@ -567,6 +566,9 @@
567
566
  "pattern": {
568
567
  "type": "string"
569
568
  },
569
+ "defaultValue": {
570
+ "type": "string"
571
+ },
570
572
  "multiple": {
571
573
  "default": false,
572
574
  "type": "boolean"
@@ -950,6 +952,10 @@
950
952
  },
951
953
  "description": {
952
954
  "type": "string"
955
+ },
956
+ "selected": {
957
+ "default": false,
958
+ "type": "boolean"
953
959
  }
954
960
  },
955
961
  "required": [
@@ -1221,6 +1227,10 @@
1221
1227
  },
1222
1228
  "description": {
1223
1229
  "type": "string"
1230
+ },
1231
+ "selected": {
1232
+ "default": false,
1233
+ "type": "boolean"
1224
1234
  }
1225
1235
  },
1226
1236
  "required": [
@@ -1496,6 +1506,9 @@
1496
1506
  },
1497
1507
  "pattern": {
1498
1508
  "type": "string"
1509
+ },
1510
+ "defaultValue": {
1511
+ "type": "string"
1499
1512
  }
1500
1513
  },
1501
1514
  "required": [
@@ -1591,6 +1604,9 @@
1591
1604
  "pattern": {
1592
1605
  "type": "string"
1593
1606
  },
1607
+ "defaultValue": {
1608
+ "type": "string"
1609
+ },
1594
1610
  "cols": {
1595
1611
  "default": 20,
1596
1612
  "type": "number"
@@ -1734,6 +1750,10 @@
1734
1750
  },
1735
1751
  "description": {
1736
1752
  "type": "string"
1753
+ },
1754
+ "selected": {
1755
+ "default": false,
1756
+ "type": "boolean"
1737
1757
  }
1738
1758
  },
1739
1759
  "required": [
@@ -1844,15 +1864,14 @@
1844
1864
  "description": {
1845
1865
  "type": "string"
1846
1866
  },
1847
- "checked": {
1867
+ "selected": {
1848
1868
  "default": false,
1849
1869
  "type": "boolean"
1850
1870
  }
1851
1871
  },
1852
1872
  "required": [
1853
1873
  "label",
1854
- "value",
1855
- "checked"
1874
+ "value"
1856
1875
  ],
1857
1876
  "additionalProperties": false
1858
1877
  }
@@ -1957,6 +1976,10 @@
1957
1976
  },
1958
1977
  "description": {
1959
1978
  "type": "string"
1979
+ },
1980
+ "selected": {
1981
+ "default": false,
1982
+ "type": "boolean"
1960
1983
  }
1961
1984
  },
1962
1985
  "required": [
@@ -2964,6 +2987,10 @@
2964
2987
  },
2965
2988
  "description": {
2966
2989
  "type": "string"
2990
+ },
2991
+ "selected": {
2992
+ "default": false,
2993
+ "type": "boolean"
2967
2994
  }
2968
2995
  },
2969
2996
  "required": [
@@ -3323,15 +3350,14 @@
3323
3350
  "description": {
3324
3351
  "type": "string"
3325
3352
  },
3326
- "checked": {
3353
+ "selected": {
3327
3354
  "default": false,
3328
3355
  "type": "boolean"
3329
3356
  }
3330
3357
  },
3331
3358
  "required": [
3332
3359
  "label",
3333
- "value",
3334
- "checked"
3360
+ "value"
3335
3361
  ],
3336
3362
  "additionalProperties": false
3337
3363
  }
@@ -3637,6 +3663,9 @@
3637
3663
  "pattern": {
3638
3664
  "type": "string"
3639
3665
  },
3666
+ "defaultValue": {
3667
+ "type": "string"
3668
+ },
3640
3669
  "multiple": {
3641
3670
  "default": false,
3642
3671
  "type": "boolean"
@@ -4177,6 +4206,10 @@
4177
4206
  },
4178
4207
  "description": {
4179
4208
  "type": "string"
4209
+ },
4210
+ "selected": {
4211
+ "default": false,
4212
+ "type": "boolean"
4180
4213
  }
4181
4214
  },
4182
4215
  "required": [
@@ -4400,6 +4433,10 @@
4400
4433
  },
4401
4434
  "description": {
4402
4435
  "type": "string"
4436
+ },
4437
+ "selected": {
4438
+ "default": false,
4439
+ "type": "boolean"
4403
4440
  }
4404
4441
  },
4405
4442
  "required": [
@@ -4450,6 +4487,9 @@
4450
4487
  "pattern": {
4451
4488
  "type": "string"
4452
4489
  },
4490
+ "defaultValue": {
4491
+ "type": "string"
4492
+ },
4453
4493
  "cols": {
4454
4494
  "default": 20,
4455
4495
  "type": "number"
@@ -4526,6 +4566,9 @@
4526
4566
  },
4527
4567
  "pattern": {
4528
4568
  "type": "string"
4569
+ },
4570
+ "defaultValue": {
4571
+ "type": "string"
4529
4572
  }
4530
4573
  },
4531
4574
  "required": [
@@ -4588,6 +4631,9 @@
4588
4631
  },
4589
4632
  "pattern": {
4590
4633
  "type": "string"
4634
+ },
4635
+ "defaultValue": {
4636
+ "type": "string"
4591
4637
  }
4592
4638
  },
4593
4639
  "required": [
@@ -4674,6 +4720,9 @@
4674
4720
  "pattern": {
4675
4721
  "type": "string"
4676
4722
  },
4723
+ "defaultValue": {
4724
+ "type": "string"
4725
+ },
4677
4726
  "cols": {
4678
4727
  "default": 20,
4679
4728
  "type": "number"
@@ -4750,6 +4799,9 @@
4750
4799
  },
4751
4800
  "pattern": {
4752
4801
  "type": "string"
4802
+ },
4803
+ "defaultValue": {
4804
+ "type": "string"
4753
4805
  }
4754
4806
  },
4755
4807
  "required": [
@@ -4812,6 +4864,9 @@
4812
4864
  },
4813
4865
  "pattern": {
4814
4866
  "type": "string"
4867
+ },
4868
+ "defaultValue": {
4869
+ "type": "string"
4815
4870
  }
4816
4871
  },
4817
4872
  "required": [
@@ -253,15 +253,14 @@
253
253
  "description": {
254
254
  "type": "string"
255
255
  },
256
- "checked": {
256
+ "selected": {
257
257
  "default": false,
258
258
  "type": "boolean"
259
259
  }
260
260
  },
261
261
  "required": [
262
262
  "label",
263
- "value",
264
- "checked"
263
+ "value"
265
264
  ],
266
265
  "additionalProperties": false
267
266
  }
@@ -567,6 +566,9 @@
567
566
  "pattern": {
568
567
  "type": "string"
569
568
  },
569
+ "defaultValue": {
570
+ "type": "string"
571
+ },
570
572
  "multiple": {
571
573
  "default": false,
572
574
  "type": "boolean"
@@ -1107,6 +1109,10 @@
1107
1109
  },
1108
1110
  "description": {
1109
1111
  "type": "string"
1112
+ },
1113
+ "selected": {
1114
+ "default": false,
1115
+ "type": "boolean"
1110
1116
  }
1111
1117
  },
1112
1118
  "required": [
@@ -1330,6 +1336,10 @@
1330
1336
  },
1331
1337
  "description": {
1332
1338
  "type": "string"
1339
+ },
1340
+ "selected": {
1341
+ "default": false,
1342
+ "type": "boolean"
1333
1343
  }
1334
1344
  },
1335
1345
  "required": [
@@ -1380,6 +1390,9 @@
1380
1390
  "pattern": {
1381
1391
  "type": "string"
1382
1392
  },
1393
+ "defaultValue": {
1394
+ "type": "string"
1395
+ },
1383
1396
  "cols": {
1384
1397
  "default": 20,
1385
1398
  "type": "number"
@@ -1456,6 +1469,9 @@
1456
1469
  },
1457
1470
  "pattern": {
1458
1471
  "type": "string"
1472
+ },
1473
+ "defaultValue": {
1474
+ "type": "string"
1459
1475
  }
1460
1476
  },
1461
1477
  "required": [
@@ -1518,6 +1534,9 @@
1518
1534
  },
1519
1535
  "pattern": {
1520
1536
  "type": "string"
1537
+ },
1538
+ "defaultValue": {
1539
+ "type": "string"
1521
1540
  }
1522
1541
  },
1523
1542
  "required": [
@@ -56,15 +56,14 @@
56
56
  "description": {
57
57
  "type": "string"
58
58
  },
59
- "checked": {
59
+ "selected": {
60
60
  "default": false,
61
61
  "type": "boolean"
62
62
  }
63
63
  },
64
64
  "required": [
65
65
  "label",
66
- "value",
67
- "checked"
66
+ "value"
68
67
  ],
69
68
  "additionalProperties": false
70
69
  }
@@ -28,6 +28,9 @@
28
28
  "pattern": {
29
29
  "type": "string"
30
30
  },
31
+ "defaultValue": {
32
+ "type": "string"
33
+ },
31
34
  "multiple": {
32
35
  "default": false,
33
36
  "type": "boolean"
@@ -62,6 +62,10 @@
62
62
  },
63
63
  "description": {
64
64
  "type": "string"
65
+ },
66
+ "selected": {
67
+ "default": false,
68
+ "type": "boolean"
65
69
  }
66
70
  },
67
71
  "required": [
@@ -55,6 +55,10 @@
55
55
  },
56
56
  "description": {
57
57
  "type": "string"
58
+ },
59
+ "selected": {
60
+ "default": false,
61
+ "type": "boolean"
58
62
  }
59
63
  },
60
64
  "required": [