@dmptool/types 1.1.1 → 1.1.3

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 (54) hide show
  1. package/dist/answers/__tests__/answers.spec.js +11 -5
  2. package/dist/answers/answer.d.ts +3 -3
  3. package/dist/answers/graphQLAnswers.d.ts +2 -2
  4. package/dist/answers/graphQLAnswers.js +2 -2
  5. package/dist/answers/index.d.ts +92 -55
  6. package/dist/answers/index.js +2 -2
  7. package/dist/answers/optionBasedAnswers.d.ts +27 -2
  8. package/dist/answers/optionBasedAnswers.js +5 -1
  9. package/dist/answers/tableAnswers.d.ts +268 -104
  10. package/dist/answers/tableAnswers.js +2 -1
  11. package/dist/questions/__tests__/graphQLQuestions.spec.js +13 -11
  12. package/dist/questions/__tests__/optionBasedQuestions.spec.js +52 -13
  13. package/dist/questions/dateQuestions.d.ts +68 -47
  14. package/dist/questions/dateQuestions.js +15 -6
  15. package/dist/questions/graphQLQuestions.d.ts +121 -96
  16. package/dist/questions/graphQLQuestions.js +34 -3
  17. package/dist/questions/index.d.ts +1524 -1006
  18. package/dist/questions/index.js +4 -2
  19. package/dist/questions/numberQuestions.d.ts +107 -76
  20. package/dist/questions/numberQuestions.js +20 -7
  21. package/dist/questions/optionBasedQuestions.d.ts +202 -74
  22. package/dist/questions/optionBasedQuestions.js +41 -11
  23. package/dist/questions/question.d.ts +43 -4
  24. package/dist/questions/question.js +13 -2
  25. package/dist/questions/tableQuestions.d.ts +2056 -1428
  26. package/dist/questions/tableQuestions.js +9 -4
  27. package/dist/questions/textQuestions.d.ts +98 -58
  28. package/dist/questions/textQuestions.js +29 -15
  29. package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
  30. package/dist/schemas/affiliationSearchQuestion.schema.json +146 -0
  31. package/dist/schemas/anyAnswer.schema.json +41 -23
  32. package/dist/schemas/anyQuestion.schema.json +525 -108
  33. package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
  34. package/dist/schemas/anyTableColumnQuestion.schema.json +396 -80
  35. package/dist/schemas/booleanQuestion.schema.json +11 -3
  36. package/dist/schemas/checkboxesQuestion.schema.json +14 -7
  37. package/dist/schemas/currencyQuestion.schema.json +14 -3
  38. package/dist/schemas/dateQuestion.schema.json +10 -1
  39. package/dist/schemas/dateRangeQuestion.schema.json +14 -1
  40. package/dist/schemas/emailQuestion.schema.json +12 -2
  41. package/dist/schemas/filteredSearchQuestion.schema.json +7 -0
  42. package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
  43. package/dist/schemas/multiselectBoxQuestion.schema.json +85 -0
  44. package/dist/schemas/numberQuestion.schema.json +12 -2
  45. package/dist/schemas/numberRangeQuestion.schema.json +16 -2
  46. package/dist/schemas/radioButtonsQuestion.schema.json +14 -7
  47. package/dist/schemas/selectBoxAnswer.schema.json +1 -4
  48. package/dist/schemas/selectBoxQuestion.schema.json +17 -8
  49. package/dist/schemas/tableAnswer.schema.json +35 -14
  50. package/dist/schemas/tableQuestion.schema.json +420 -84
  51. package/dist/schemas/textAreaQuestion.schema.json +16 -6
  52. package/dist/schemas/textQuestion.schema.json +10 -1
  53. package/dist/schemas/urlQuestion.schema.json +10 -1
  54. package/package.json +1 -1
@@ -21,7 +21,8 @@
21
21
  "type": "string"
22
22
  },
23
23
  "cols": {
24
- "type": "number"
24
+ "type": "number",
25
+ "default": 20
25
26
  },
26
27
  "maxLength": {
27
28
  "type": "number"
@@ -30,7 +31,12 @@
30
31
  "type": "number"
31
32
  },
32
33
  "rows": {
33
- "type": "number"
34
+ "type": "number",
35
+ "default": 2
36
+ },
37
+ "asRichText": {
38
+ "type": "boolean",
39
+ "default": true
34
40
  }
35
41
  },
36
42
  "additionalProperties": false
@@ -42,8 +48,13 @@
42
48
  "type": "string",
43
49
  "const": "1.0"
44
50
  },
45
- "asRichText": {
46
- "type": "boolean"
51
+ "title": {
52
+ "type": "string",
53
+ "const": "Text Area"
54
+ },
55
+ "usageDescription": {
56
+ "type": "string",
57
+ "const": "For questions that require longer answers, you can select formatting options too."
47
58
  }
48
59
  },
49
60
  "required": [
@@ -53,8 +64,7 @@
53
64
  }
54
65
  },
55
66
  "required": [
56
- "type",
57
- "meta"
67
+ "type"
58
68
  ],
59
69
  "additionalProperties": false
60
70
  }
@@ -21,7 +21,8 @@
21
21
  "type": "string"
22
22
  },
23
23
  "maxLength": {
24
- "type": "number"
24
+ "type": "number",
25
+ "default": 255
25
26
  },
26
27
  "minLength": {
27
28
  "type": "number"
@@ -38,6 +39,14 @@
38
39
  "schemaVersion": {
39
40
  "type": "string",
40
41
  "const": "1.0"
42
+ },
43
+ "title": {
44
+ "type": "string",
45
+ "const": "Text Field"
46
+ },
47
+ "usageDescription": {
48
+ "type": "string",
49
+ "const": "For questions that require short, simple answers."
41
50
  }
42
51
  },
43
52
  "required": [
@@ -21,7 +21,8 @@
21
21
  "type": "string"
22
22
  },
23
23
  "maxLength": {
24
- "type": "number"
24
+ "type": "number",
25
+ "default": 255
25
26
  },
26
27
  "minLength": {
27
28
  "type": "number"
@@ -38,6 +39,14 @@
38
39
  "schemaVersion": {
39
40
  "type": "string",
40
41
  "const": "1.0"
42
+ },
43
+ "title": {
44
+ "type": "string",
45
+ "const": "URL Field"
46
+ },
47
+ "usageDescription": {
48
+ "type": "string",
49
+ "const": "For questions that require a website, DOI or other URL."
41
50
  }
42
51
  },
43
52
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmptool/types",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "TypeScript types for DMPTool",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",