@dmptool/types 2.2.0 → 2.3.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 (41) hide show
  1. package/dist/answers/__tests__/answers.spec.js +27 -14
  2. package/dist/answers/__tests__/defaults.spec.js +2 -0
  3. package/dist/answers/index.d.ts +102 -0
  4. package/dist/answers/index.js +1 -0
  5. package/dist/answers/tableAnswers.d.ts +614 -136
  6. package/dist/answers/tableAnswers.js +43 -20
  7. package/dist/dmp/__tests__/commonStandard.spec.js +26 -22
  8. package/dist/dmp/__tests__/extensions.spec.js +21 -15
  9. package/dist/dmp/extension.d.ts +385 -92
  10. package/dist/dmp/extension.js +49 -103
  11. package/dist/dmp/index.d.ts +515 -2
  12. package/dist/dmp/index.js +11 -1
  13. package/dist/questions/__tests__/defaults.spec.js +20 -10
  14. package/dist/questions/__tests__/optionBasedQuestions.spec.js +17 -12
  15. package/dist/questions/__tests__/tableQuestion.spec.js +5 -0
  16. package/dist/questions/index.d.ts +20 -7
  17. package/dist/questions/optionBasedQuestions.d.ts +8 -6
  18. package/dist/questions/optionBasedQuestions.js +21 -8
  19. package/dist/questions/tableQuestions.d.ts +54 -16
  20. package/dist/questions/tableQuestions.js +56 -19
  21. package/dist/schemas/anyAnswer.schema.json +514 -0
  22. package/dist/schemas/anyQuestion.schema.json +60 -35
  23. package/dist/schemas/anyTableColumnQuestion.schema.json +9 -10
  24. package/dist/schemas/checkboxesQuestion.schema.json +3 -0
  25. package/dist/schemas/dmpExtension.schema.json +636 -140
  26. package/dist/schemas/multiselectBoxQuestion.schema.json +3 -5
  27. package/dist/schemas/radioButtonsQuestion.schema.json +3 -5
  28. package/dist/schemas/researchOutputTableAnswer.schema.json +6047 -11983
  29. package/dist/schemas/selectBoxQuestion.schema.json +3 -5
  30. package/dist/schemas/tableQuestion.schema.json +9 -10
  31. package/package.json +1 -1
  32. package/schemas/anyAnswer.schema.json +514 -0
  33. package/schemas/anyQuestion.schema.json +60 -35
  34. package/schemas/anyTableColumnQuestion.schema.json +9 -10
  35. package/schemas/checkboxesQuestion.schema.json +3 -0
  36. package/schemas/dmpExtension.schema.json +636 -140
  37. package/schemas/multiselectBoxQuestion.schema.json +3 -5
  38. package/schemas/radioButtonsQuestion.schema.json +3 -5
  39. package/schemas/researchOutputTableAnswer.schema.json +6047 -11983
  40. package/schemas/selectBoxQuestion.schema.json +3 -5
  41. package/schemas/tableQuestion.schema.json +9 -10
@@ -60,15 +60,13 @@
60
60
  "default": "a",
61
61
  "type": "string"
62
62
  },
63
- "selected": {
64
- "default": false,
65
- "type": "boolean"
63
+ "description": {
64
+ "type": "string"
66
65
  }
67
66
  },
68
67
  "required": [
69
68
  "label",
70
- "value",
71
- "selected"
69
+ "value"
72
70
  ],
73
71
  "additionalProperties": false
74
72
  }
@@ -334,6 +334,9 @@
334
334
  "default": "a",
335
335
  "type": "string"
336
336
  },
337
+ "description": {
338
+ "type": "string"
339
+ },
337
340
  "checked": {
338
341
  "default": false,
339
342
  "type": "boolean"
@@ -1186,15 +1189,13 @@
1186
1189
  "default": "a",
1187
1190
  "type": "string"
1188
1191
  },
1189
- "selected": {
1190
- "default": false,
1191
- "type": "boolean"
1192
+ "description": {
1193
+ "type": "string"
1192
1194
  }
1193
1195
  },
1194
1196
  "required": [
1195
1197
  "label",
1196
- "value",
1197
- "selected"
1198
+ "value"
1198
1199
  ],
1199
1200
  "additionalProperties": false
1200
1201
  }
@@ -1411,15 +1412,13 @@
1411
1412
  "default": "a",
1412
1413
  "type": "string"
1413
1414
  },
1414
- "selected": {
1415
- "default": false,
1416
- "type": "boolean"
1415
+ "description": {
1416
+ "type": "string"
1417
1417
  }
1418
1418
  },
1419
1419
  "required": [
1420
1420
  "label",
1421
- "value",
1422
- "selected"
1421
+ "value"
1423
1422
  ],
1424
1423
  "additionalProperties": false
1425
1424
  }