@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.
- package/dist/answers/__tests__/answers.spec.js +11 -5
- package/dist/answers/answer.d.ts +3 -3
- package/dist/answers/graphQLAnswers.d.ts +2 -2
- package/dist/answers/graphQLAnswers.js +2 -2
- package/dist/answers/index.d.ts +92 -55
- package/dist/answers/index.js +2 -2
- package/dist/answers/optionBasedAnswers.d.ts +27 -2
- package/dist/answers/optionBasedAnswers.js +5 -1
- package/dist/answers/tableAnswers.d.ts +268 -104
- package/dist/answers/tableAnswers.js +2 -1
- package/dist/questions/__tests__/graphQLQuestions.spec.js +13 -11
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +52 -13
- package/dist/questions/dateQuestions.d.ts +68 -47
- package/dist/questions/dateQuestions.js +15 -6
- package/dist/questions/graphQLQuestions.d.ts +121 -96
- package/dist/questions/graphQLQuestions.js +34 -3
- package/dist/questions/index.d.ts +1524 -1006
- package/dist/questions/index.js +4 -2
- package/dist/questions/numberQuestions.d.ts +107 -76
- package/dist/questions/numberQuestions.js +20 -7
- package/dist/questions/optionBasedQuestions.d.ts +202 -74
- package/dist/questions/optionBasedQuestions.js +41 -11
- package/dist/questions/question.d.ts +43 -4
- package/dist/questions/question.js +13 -2
- package/dist/questions/tableQuestions.d.ts +2056 -1428
- package/dist/questions/tableQuestions.js +9 -4
- package/dist/questions/textQuestions.d.ts +98 -58
- package/dist/questions/textQuestions.js +29 -15
- package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
- package/dist/schemas/affiliationSearchQuestion.schema.json +146 -0
- package/dist/schemas/anyAnswer.schema.json +41 -23
- package/dist/schemas/anyQuestion.schema.json +525 -108
- package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
- package/dist/schemas/anyTableColumnQuestion.schema.json +396 -80
- package/dist/schemas/booleanQuestion.schema.json +11 -3
- package/dist/schemas/checkboxesQuestion.schema.json +14 -7
- package/dist/schemas/currencyQuestion.schema.json +14 -3
- package/dist/schemas/dateQuestion.schema.json +10 -1
- package/dist/schemas/dateRangeQuestion.schema.json +14 -1
- package/dist/schemas/emailQuestion.schema.json +12 -2
- package/dist/schemas/filteredSearchQuestion.schema.json +7 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +85 -0
- package/dist/schemas/numberQuestion.schema.json +12 -2
- package/dist/schemas/numberRangeQuestion.schema.json +16 -2
- package/dist/schemas/radioButtonsQuestion.schema.json +14 -7
- package/dist/schemas/selectBoxAnswer.schema.json +1 -4
- package/dist/schemas/selectBoxQuestion.schema.json +17 -8
- package/dist/schemas/tableAnswer.schema.json +35 -14
- package/dist/schemas/tableQuestion.schema.json +420 -84
- package/dist/schemas/textAreaQuestion.schema.json +16 -6
- package/dist/schemas/textQuestion.schema.json +10 -1
- package/dist/schemas/urlQuestion.schema.json +10 -1
- 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
|
-
"
|
|
46
|
-
"type": "
|
|
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": [
|