@dmptool/types 1.1.2 → 1.2.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.
- package/README.md +119 -47
- package/dist/answers/__tests__/answers.spec.js +20 -28
- package/dist/answers/__tests__/usage.spec.d.ts +1 -0
- package/dist/answers/__tests__/usage.spec.js +175 -0
- package/dist/answers/answer.d.ts +12 -15
- package/dist/answers/answer.js +3 -4
- package/dist/answers/dateAnswers.d.ts +30 -30
- package/dist/answers/dateAnswers.js +6 -5
- package/dist/answers/graphQLAnswers.d.ts +25 -25
- package/dist/answers/graphQLAnswers.js +4 -4
- package/dist/answers/index.d.ts +860 -1088
- package/dist/answers/index.js +2 -2
- package/dist/answers/numberAnswers.d.ts +41 -41
- package/dist/answers/numberAnswers.js +8 -8
- package/dist/answers/optionBasedAnswers.d.ts +55 -55
- package/dist/answers/optionBasedAnswers.js +10 -10
- package/dist/answers/tableAnswers.d.ts +811 -1772
- package/dist/answers/tableAnswers.js +12 -8
- package/dist/answers/textAnswers.d.ts +44 -44
- package/dist/answers/textAnswers.js +8 -8
- package/dist/questions/__tests__/graphQLQuestions.spec.js +6 -4
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +4 -12
- package/dist/questions/__tests__/usage.spec.d.ts +8 -0
- package/dist/questions/__tests__/usage.spec.js +312 -0
- package/dist/questions/dateQuestions.d.ts +90 -101
- package/dist/questions/dateQuestions.js +15 -34
- package/dist/questions/graphQLQuestions.d.ts +176 -182
- package/dist/questions/graphQLQuestions.js +44 -45
- package/dist/questions/index.d.ts +1791 -2170
- package/dist/questions/index.js +2 -2
- package/dist/questions/numberQuestions.d.ts +126 -142
- package/dist/questions/numberQuestions.js +11 -45
- package/dist/questions/optionBasedQuestions.d.ts +197 -225
- package/dist/questions/optionBasedQuestions.js +24 -88
- package/dist/questions/question.d.ts +24 -56
- package/dist/questions/question.js +78 -18
- package/dist/questions/tableQuestions.d.ts +2637 -2930
- package/dist/questions/tableQuestions.js +9 -21
- package/dist/questions/textQuestions.d.ts +125 -145
- package/dist/questions/textQuestions.js +16 -57
- package/dist/schemas/affiliationSearchAnswer.schema.json +9 -12
- package/dist/schemas/affiliationSearchQuestion.schema.json +57 -50
- package/dist/schemas/anyAnswer.schema.json +228 -237
- package/dist/schemas/anyQuestion.schema.json +349 -517
- package/dist/schemas/anyTableColumnAnswer.schema.json +93 -106
- package/dist/schemas/anyTableColumnQuestion.schema.json +259 -382
- package/dist/schemas/booleanAnswer.schema.json +8 -11
- package/dist/schemas/booleanQuestion.schema.json +9 -15
- package/dist/schemas/checkboxesAnswer.schema.json +13 -14
- package/dist/schemas/checkboxesQuestion.schema.json +18 -24
- package/dist/schemas/currencyAnswer.schema.json +8 -11
- package/dist/schemas/currencyQuestion.schema.json +13 -17
- package/dist/schemas/dateAnswer.schema.json +8 -11
- package/dist/schemas/dateQuestion.schema.json +9 -15
- package/dist/schemas/dateRangeAnswer.schema.json +16 -21
- package/dist/schemas/dateRangeQuestion.schema.json +40 -21
- package/dist/schemas/emailAnswer.schema.json +8 -11
- package/dist/schemas/emailQuestion.schema.json +11 -16
- package/dist/schemas/filteredSearchQuestion.schema.json +0 -3
- package/dist/schemas/multiselectBoxAnswer.schema.json +13 -14
- package/dist/schemas/multiselectBoxQuestion.schema.json +20 -25
- package/dist/schemas/numberAnswer.schema.json +8 -11
- package/dist/schemas/numberQuestion.schema.json +11 -16
- package/dist/schemas/numberRangeAnswer.schema.json +17 -22
- package/dist/schemas/numberRangeQuestion.schema.json +22 -21
- package/dist/schemas/radioButtonsAnswer.schema.json +8 -11
- package/dist/schemas/radioButtonsQuestion.schema.json +18 -24
- package/dist/schemas/selectBoxAnswer.schema.json +8 -11
- package/dist/schemas/selectBoxQuestion.schema.json +20 -25
- package/dist/schemas/tableAnswer.schema.json +337 -343
- package/dist/schemas/tableQuestion.schema.json +279 -416
- package/dist/schemas/textAnswer.schema.json +8 -11
- package/dist/schemas/textAreaAnswer.schema.json +8 -11
- package/dist/schemas/textAreaQuestion.schema.json +13 -17
- package/dist/schemas/textQuestion.schema.json +9 -15
- package/dist/schemas/urlAnswer.schema.json +8 -11
- package/dist/schemas/urlQuestion.schema.json +9 -15
- package/package.json +1 -1
|
@@ -8,27 +8,24 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "text"
|
|
10
10
|
},
|
|
11
|
-
"answer": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
11
|
"meta": {
|
|
15
12
|
"type": "object",
|
|
16
13
|
"properties": {
|
|
17
14
|
"schemaVersion": {
|
|
18
15
|
"type": "string",
|
|
19
|
-
"
|
|
16
|
+
"default": "1.0"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": ""
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
"required": [
|
|
29
|
-
"type"
|
|
30
|
-
"answer",
|
|
31
|
-
"meta"
|
|
28
|
+
"type"
|
|
32
29
|
],
|
|
33
30
|
"additionalProperties": false
|
|
34
31
|
}
|
|
@@ -8,27 +8,24 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "textArea"
|
|
10
10
|
},
|
|
11
|
-
"answer": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
11
|
"meta": {
|
|
15
12
|
"type": "object",
|
|
16
13
|
"properties": {
|
|
17
14
|
"schemaVersion": {
|
|
18
15
|
"type": "string",
|
|
19
|
-
"
|
|
16
|
+
"default": "1.0"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": ""
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
"required": [
|
|
29
|
-
"type"
|
|
30
|
-
"answer",
|
|
31
|
-
"meta"
|
|
28
|
+
"type"
|
|
32
29
|
],
|
|
33
30
|
"additionalProperties": false
|
|
34
31
|
}
|
|
@@ -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,38 +31,33 @@
|
|
|
30
31
|
"type": "number"
|
|
31
32
|
},
|
|
32
33
|
"rows": {
|
|
33
|
-
"type": "number"
|
|
34
|
+
"type": "number",
|
|
35
|
+
"default": 2
|
|
34
36
|
},
|
|
35
37
|
"asRichText": {
|
|
36
|
-
"type": "boolean"
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": true
|
|
37
40
|
}
|
|
38
41
|
},
|
|
39
|
-
"additionalProperties": false
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"default": {}
|
|
40
44
|
},
|
|
41
45
|
"meta": {
|
|
42
46
|
"type": "object",
|
|
43
47
|
"properties": {
|
|
44
48
|
"schemaVersion": {
|
|
45
49
|
"type": "string",
|
|
46
|
-
"
|
|
50
|
+
"default": "1.0"
|
|
47
51
|
},
|
|
48
52
|
"title": {
|
|
49
|
-
"type": "string"
|
|
50
|
-
"const": "Text Area"
|
|
53
|
+
"type": "string"
|
|
51
54
|
},
|
|
52
55
|
"usageDescription": {
|
|
53
|
-
"type": "string"
|
|
54
|
-
"const": "For questions that require longer answers, you can select formatting options too."
|
|
55
|
-
},
|
|
56
|
-
"defaultJSON": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"const": "{\"type\":\"textArea\",\"attributes\":{\"cols\":20,\"rows\":2,\"asRichText\":true},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
56
|
+
"type": "string"
|
|
59
57
|
}
|
|
60
58
|
},
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
],
|
|
64
|
-
"additionalProperties": false
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"default": {}
|
|
65
61
|
}
|
|
66
62
|
},
|
|
67
63
|
"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"
|
|
@@ -30,32 +31,25 @@
|
|
|
30
31
|
"type": "string"
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
|
-
"additionalProperties": false
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"default": {}
|
|
34
36
|
},
|
|
35
37
|
"meta": {
|
|
36
38
|
"type": "object",
|
|
37
39
|
"properties": {
|
|
38
40
|
"schemaVersion": {
|
|
39
41
|
"type": "string",
|
|
40
|
-
"
|
|
42
|
+
"default": "1.0"
|
|
41
43
|
},
|
|
42
44
|
"title": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
"const": "Text Field"
|
|
45
|
+
"type": "string"
|
|
45
46
|
},
|
|
46
47
|
"usageDescription": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
"const": "For questions that require short, simple answers."
|
|
49
|
-
},
|
|
50
|
-
"defaultJSON": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"const": "{\"type\":\"text\",\"attributes\":{\"maxLength\":255},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
48
|
+
"type": "string"
|
|
53
49
|
}
|
|
54
50
|
},
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
],
|
|
58
|
-
"additionalProperties": false
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"default": {}
|
|
59
53
|
}
|
|
60
54
|
},
|
|
61
55
|
"required": [
|
|
@@ -8,27 +8,24 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "url"
|
|
10
10
|
},
|
|
11
|
-
"answer": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
11
|
"meta": {
|
|
15
12
|
"type": "object",
|
|
16
13
|
"properties": {
|
|
17
14
|
"schemaVersion": {
|
|
18
15
|
"type": "string",
|
|
19
|
-
"
|
|
16
|
+
"default": "1.0"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"default": {}
|
|
21
|
+
},
|
|
22
|
+
"answer": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": ""
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
"required": [
|
|
29
|
-
"type"
|
|
30
|
-
"answer",
|
|
31
|
-
"meta"
|
|
28
|
+
"type"
|
|
32
29
|
],
|
|
33
30
|
"additionalProperties": false
|
|
34
31
|
}
|
|
@@ -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"
|
|
@@ -30,32 +31,25 @@
|
|
|
30
31
|
"type": "string"
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
|
-
"additionalProperties": false
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"default": {}
|
|
34
36
|
},
|
|
35
37
|
"meta": {
|
|
36
38
|
"type": "object",
|
|
37
39
|
"properties": {
|
|
38
40
|
"schemaVersion": {
|
|
39
41
|
"type": "string",
|
|
40
|
-
"
|
|
42
|
+
"default": "1.0"
|
|
41
43
|
},
|
|
42
44
|
"title": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
"const": "URL Field"
|
|
45
|
+
"type": "string"
|
|
45
46
|
},
|
|
46
47
|
"usageDescription": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
"const": "For questions that require a website, DOI or other URL."
|
|
49
|
-
},
|
|
50
|
-
"defaultJSON": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"const": "{\"type\":\"url\",\"attributes\":{\"maxLength\":255},\"meta\":{\"schemaVersion\":\"1.0\"}}"
|
|
48
|
+
"type": "string"
|
|
53
49
|
}
|
|
54
50
|
},
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
],
|
|
58
|
-
"additionalProperties": false
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"default": {}
|
|
59
53
|
}
|
|
60
54
|
},
|
|
61
55
|
"required": [
|