@dmptool/types 2.3.2 → 3.1.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 (42) 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 +17 -45
  4. package/dist/questions/__tests__/graphQLQuestions.spec.js +3 -11
  5. package/dist/questions/__tests__/optionBasedQuestions.spec.js +3 -3
  6. package/dist/questions/graphQLQuestions.d.ts +4 -4
  7. package/dist/questions/graphQLQuestions.js +5 -23
  8. package/dist/questions/index.d.ts +25 -8
  9. package/dist/questions/index.js +2 -2
  10. package/dist/questions/optionBasedQuestions.d.ts +8 -2
  11. package/dist/questions/optionBasedQuestions.js +6 -6
  12. package/dist/questions/tableQuestions.d.ts +85 -16
  13. package/dist/questions/tableQuestions.js +3 -3
  14. package/dist/questions/textQuestions.d.ts +8 -0
  15. package/dist/questions/textQuestions.js +1 -1
  16. package/dist/schemas/anyQuestion.schema.json +70 -15
  17. package/dist/schemas/anyTableColumnQuestion.schema.json +24 -5
  18. package/dist/schemas/checkboxesQuestion.schema.json +2 -3
  19. package/dist/schemas/emailQuestion.schema.json +3 -0
  20. package/dist/schemas/licenseSearchQuestion.schema.json +2 -2
  21. package/dist/schemas/multiselectBoxQuestion.schema.json +4 -0
  22. package/dist/schemas/radioButtonsQuestion.schema.json +4 -0
  23. package/dist/schemas/researchOutputTableQuestion.schema.json +1455 -61
  24. package/dist/schemas/selectBoxQuestion.schema.json +4 -0
  25. package/dist/schemas/tableQuestion.schema.json +24 -5
  26. package/dist/schemas/textAreaQuestion.schema.json +3 -0
  27. package/dist/schemas/textQuestion.schema.json +3 -0
  28. package/dist/schemas/urlQuestion.schema.json +3 -0
  29. package/package.json +1 -1
  30. package/schemas/anyQuestion.schema.json +70 -15
  31. package/schemas/anyTableColumnQuestion.schema.json +24 -5
  32. package/schemas/checkboxesQuestion.schema.json +2 -3
  33. package/schemas/emailQuestion.schema.json +3 -0
  34. package/schemas/licenseSearchQuestion.schema.json +2 -2
  35. package/schemas/multiselectBoxQuestion.schema.json +4 -0
  36. package/schemas/radioButtonsQuestion.schema.json +4 -0
  37. package/schemas/researchOutputTableQuestion.schema.json +1455 -61
  38. package/schemas/selectBoxQuestion.schema.json +4 -0
  39. package/schemas/tableQuestion.schema.json +24 -5
  40. package/schemas/textAreaQuestion.schema.json +3 -0
  41. package/schemas/textQuestion.schema.json +3 -0
  42. package/schemas/urlQuestion.schema.json +3 -0
@@ -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": [
@@ -337,15 +337,14 @@
337
337
  "description": {
338
338
  "type": "string"
339
339
  },
340
- "checked": {
340
+ "selected": {
341
341
  "default": false,
342
342
  "type": "boolean"
343
343
  }
344
344
  },
345
345
  "required": [
346
346
  "label",
347
- "value",
348
- "checked"
347
+ "value"
349
348
  ],
350
349
  "additionalProperties": false
351
350
  }
@@ -651,6 +650,9 @@
651
650
  "pattern": {
652
651
  "type": "string"
653
652
  },
653
+ "defaultValue": {
654
+ "type": "string"
655
+ },
654
656
  "multiple": {
655
657
  "default": false,
656
658
  "type": "boolean"
@@ -765,11 +767,11 @@
765
767
  },
766
768
  "query": {
767
769
  "type": "string",
768
- "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
770
+ "const": "query Licenses{ licenses { id name uri description } }"
769
771
  },
770
772
  "responseField": {
771
773
  "type": "string",
772
- "const": "licenses.items"
774
+ "const": "licenses"
773
775
  },
774
776
  "variables": {
775
777
  "type": "array",
@@ -1191,6 +1193,10 @@
1191
1193
  },
1192
1194
  "description": {
1193
1195
  "type": "string"
1196
+ },
1197
+ "selected": {
1198
+ "default": false,
1199
+ "type": "boolean"
1194
1200
  }
1195
1201
  },
1196
1202
  "required": [
@@ -1414,6 +1420,10 @@
1414
1420
  },
1415
1421
  "description": {
1416
1422
  "type": "string"
1423
+ },
1424
+ "selected": {
1425
+ "default": false,
1426
+ "type": "boolean"
1417
1427
  }
1418
1428
  },
1419
1429
  "required": [
@@ -1464,6 +1474,9 @@
1464
1474
  "pattern": {
1465
1475
  "type": "string"
1466
1476
  },
1477
+ "defaultValue": {
1478
+ "type": "string"
1479
+ },
1467
1480
  "cols": {
1468
1481
  "default": 20,
1469
1482
  "type": "number"
@@ -1540,6 +1553,9 @@
1540
1553
  },
1541
1554
  "pattern": {
1542
1555
  "type": "string"
1556
+ },
1557
+ "defaultValue": {
1558
+ "type": "string"
1543
1559
  }
1544
1560
  },
1545
1561
  "required": [
@@ -1602,6 +1618,9 @@
1602
1618
  },
1603
1619
  "pattern": {
1604
1620
  "type": "string"
1621
+ },
1622
+ "defaultValue": {
1623
+ "type": "string"
1605
1624
  }
1606
1625
  },
1607
1626
  "required": [
@@ -28,6 +28,9 @@
28
28
  "pattern": {
29
29
  "type": "string"
30
30
  },
31
+ "defaultValue": {
32
+ "type": "string"
33
+ },
31
34
  "cols": {
32
35
  "default": 20,
33
36
  "type": "number"
@@ -27,6 +27,9 @@
27
27
  },
28
28
  "pattern": {
29
29
  "type": "string"
30
+ },
31
+ "defaultValue": {
32
+ "type": "string"
30
33
  }
31
34
  },
32
35
  "required": [
@@ -27,6 +27,9 @@
27
27
  },
28
28
  "pattern": {
29
29
  "type": "string"
30
+ },
31
+ "defaultValue": {
32
+ "type": "string"
30
33
  }
31
34
  },
32
35
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmptool/types",
3
- "version": "2.3.2",
3
+ "version": "3.1.0",
4
4
  "description": "TypeScript types for DMPTool",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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"
@@ -681,11 +683,11 @@
681
683
  },
682
684
  "query": {
683
685
  "type": "string",
684
- "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
686
+ "const": "query Licenses{ licenses { id name uri description } }"
685
687
  },
686
688
  "responseField": {
687
689
  "type": "string",
688
- "const": "licenses.items"
690
+ "const": "licenses"
689
691
  },
690
692
  "variables": {
691
693
  "type": "array",
@@ -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": [
@@ -2698,11 +2721,11 @@
2698
2721
  },
2699
2722
  "query": {
2700
2723
  "type": "string",
2701
- "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
2724
+ "const": "query Licenses{ licenses { id name uri description } }"
2702
2725
  },
2703
2726
  "responseField": {
2704
2727
  "type": "string",
2705
- "const": "licenses.items"
2728
+ "const": "licenses"
2706
2729
  },
2707
2730
  "variables": {
2708
2731
  "type": "array",
@@ -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"
@@ -3751,11 +3780,11 @@
3751
3780
  },
3752
3781
  "query": {
3753
3782
  "type": "string",
3754
- "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
3783
+ "const": "query Licenses{ licenses { id name uri description } }"
3755
3784
  },
3756
3785
  "responseField": {
3757
3786
  "type": "string",
3758
- "const": "licenses.items"
3787
+ "const": "licenses"
3759
3788
  },
3760
3789
  "variables": {
3761
3790
  "type": "array",
@@ -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"
@@ -681,11 +683,11 @@
681
683
  },
682
684
  "query": {
683
685
  "type": "string",
684
- "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
686
+ "const": "query Licenses{ licenses { id name uri description } }"
685
687
  },
686
688
  "responseField": {
687
689
  "type": "string",
688
- "const": "licenses.items"
690
+ "const": "licenses"
689
691
  },
690
692
  "variables": {
691
693
  "type": "array",
@@ -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"
@@ -72,11 +72,11 @@
72
72
  },
73
73
  "query": {
74
74
  "type": "string",
75
- "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
75
+ "const": "query Licenses{ licenses { id name uri description } }"
76
76
  },
77
77
  "responseField": {
78
78
  "type": "string",
79
- "const": "licenses.items"
79
+ "const": "licenses"
80
80
  },
81
81
  "variables": {
82
82
  "type": "array",
@@ -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": [