@dmptool/types 1.1.2 → 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/questions/__tests__/graphQLQuestions.spec.js +6 -4
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +4 -12
- package/dist/questions/dateQuestions.d.ts +31 -41
- package/dist/questions/dateQuestions.js +5 -20
- package/dist/questions/graphQLQuestions.d.ts +75 -81
- package/dist/questions/graphQLQuestions.js +18 -24
- package/dist/questions/index.d.ts +524 -723
- package/dist/questions/numberQuestions.d.ts +51 -66
- package/dist/questions/numberQuestions.js +6 -28
- package/dist/questions/optionBasedQuestions.d.ts +44 -69
- package/dist/questions/optionBasedQuestions.js +7 -55
- package/dist/questions/question.d.ts +0 -8
- package/dist/questions/question.js +0 -1
- package/dist/questions/tableQuestions.d.ts +717 -998
- package/dist/questions/tableQuestions.js +3 -10
- package/dist/questions/textQuestions.d.ts +21 -41
- package/dist/questions/textQuestions.js +10 -34
- package/dist/schemas/affiliationSearchQuestion.schema.json +39 -26
- package/dist/schemas/anyQuestion.schema.json +152 -119
- package/dist/schemas/anyTableColumnQuestion.schema.json +142 -104
- package/dist/schemas/booleanQuestion.schema.json +2 -5
- package/dist/schemas/checkboxesQuestion.schema.json +6 -11
- package/dist/schemas/currencyQuestion.schema.json +6 -7
- package/dist/schemas/dateQuestion.schema.json +2 -5
- package/dist/schemas/dateRangeQuestion.schema.json +6 -5
- package/dist/schemas/emailQuestion.schema.json +4 -6
- package/dist/schemas/filteredSearchQuestion.schema.json +0 -3
- package/dist/schemas/multiselectBoxQuestion.schema.json +6 -11
- package/dist/schemas/numberQuestion.schema.json +4 -6
- package/dist/schemas/numberRangeQuestion.schema.json +8 -6
- package/dist/schemas/radioButtonsQuestion.schema.json +6 -11
- package/dist/schemas/selectBoxQuestion.schema.json +7 -15
- package/dist/schemas/tableQuestion.schema.json +148 -111
- package/dist/schemas/textAreaQuestion.schema.json +6 -7
- package/dist/schemas/textQuestion.schema.json +2 -5
- package/dist/schemas/urlQuestion.schema.json +2 -5
- package/package.json +1 -1
|
@@ -44,10 +44,6 @@
|
|
|
44
44
|
"usageDescription": {
|
|
45
45
|
"type": "string",
|
|
46
46
|
"const": "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses."
|
|
47
|
-
},
|
|
48
|
-
"defaultJSON": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"const": "{\n \"type\": \"selectBox\",\n \"attributes\": {\n \"multiple\": true\n },\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\"\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
51
47
|
}
|
|
52
48
|
},
|
|
53
49
|
"required": [
|
|
@@ -61,19 +57,18 @@
|
|
|
61
57
|
"type": "object",
|
|
62
58
|
"properties": {
|
|
63
59
|
"label": {
|
|
64
|
-
"type": "string"
|
|
60
|
+
"type": "string",
|
|
61
|
+
"default": "Option A"
|
|
65
62
|
},
|
|
66
63
|
"value": {
|
|
67
|
-
"type": "string"
|
|
64
|
+
"type": "string",
|
|
65
|
+
"default": "a"
|
|
68
66
|
},
|
|
69
67
|
"selected": {
|
|
70
|
-
"type": "boolean"
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"default": false
|
|
71
70
|
}
|
|
72
71
|
},
|
|
73
|
-
"required": [
|
|
74
|
-
"label",
|
|
75
|
-
"value"
|
|
76
|
-
],
|
|
77
72
|
"additionalProperties": false
|
|
78
73
|
}
|
|
79
74
|
}
|
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
"type": "number"
|
|
25
25
|
},
|
|
26
26
|
"min": {
|
|
27
|
-
"type": "number"
|
|
27
|
+
"type": "number",
|
|
28
|
+
"default": 0
|
|
28
29
|
},
|
|
29
30
|
"step": {
|
|
30
|
-
"type": "number"
|
|
31
|
+
"type": "number",
|
|
32
|
+
"default": 1
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
35
|
"additionalProperties": false
|
|
@@ -46,10 +48,6 @@
|
|
|
46
48
|
"usageDescription": {
|
|
47
49
|
"type": "string",
|
|
48
50
|
"const": "For questions that require a single numeric value."
|
|
49
|
-
},
|
|
50
|
-
"defaultJSON": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"const": "{\n \"type\": \"number\",\n \"attributes\": {\n \"min\": 0,\n \"step\": 1\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
53
51
|
}
|
|
54
52
|
},
|
|
55
53
|
"required": [
|
|
@@ -37,10 +37,6 @@
|
|
|
37
37
|
"usageDescription": {
|
|
38
38
|
"type": "string",
|
|
39
39
|
"const": "For questions that require a numerical range (e.g. From/To, Min/Max)."
|
|
40
|
-
},
|
|
41
|
-
"defaultJSON": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"const": "{\n \"type\": \"numberRange\",\n \"attributes\": {},\n \"columns\": {\n \"start\": {\n \"label\": \"From\",\n \"min\": 0,\n \"step\": 1\n },\n \"end\": {\n \"label\": \"To\",\n \"min\": 0,\n \"step\": 1\n }\n },\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
44
40
|
}
|
|
45
41
|
},
|
|
46
42
|
"required": [
|
|
@@ -67,10 +63,12 @@
|
|
|
67
63
|
"type": "number"
|
|
68
64
|
},
|
|
69
65
|
"min": {
|
|
70
|
-
"type": "number"
|
|
66
|
+
"type": "number",
|
|
67
|
+
"default": 0
|
|
71
68
|
},
|
|
72
69
|
"step": {
|
|
73
|
-
"type": "number"
|
|
70
|
+
"type": "number",
|
|
71
|
+
"default": 1
|
|
74
72
|
}
|
|
75
73
|
},
|
|
76
74
|
"additionalProperties": false
|
|
@@ -79,6 +77,10 @@
|
|
|
79
77
|
"$ref": "#/definitions/NumberRangeQuestion/properties/columns/properties/start"
|
|
80
78
|
}
|
|
81
79
|
},
|
|
80
|
+
"required": [
|
|
81
|
+
"start",
|
|
82
|
+
"end"
|
|
83
|
+
],
|
|
82
84
|
"additionalProperties": false
|
|
83
85
|
}
|
|
84
86
|
},
|
|
@@ -37,10 +37,6 @@
|
|
|
37
37
|
"usageDescription": {
|
|
38
38
|
"type": "string",
|
|
39
39
|
"const": "For multiple choice questions where users select just one option."
|
|
40
|
-
},
|
|
41
|
-
"defaultJSON": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"const": "{\n \"type\": \"radioButtons\",\n \"attributes\": {},\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\",\n \"selected\": false\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
44
40
|
}
|
|
45
41
|
},
|
|
46
42
|
"required": [
|
|
@@ -54,19 +50,18 @@
|
|
|
54
50
|
"type": "object",
|
|
55
51
|
"properties": {
|
|
56
52
|
"label": {
|
|
57
|
-
"type": "string"
|
|
53
|
+
"type": "string",
|
|
54
|
+
"default": "Option A"
|
|
58
55
|
},
|
|
59
56
|
"value": {
|
|
60
|
-
"type": "string"
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "a"
|
|
61
59
|
},
|
|
62
60
|
"selected": {
|
|
63
|
-
"type": "boolean"
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false
|
|
64
63
|
}
|
|
65
64
|
},
|
|
66
|
-
"required": [
|
|
67
|
-
"label",
|
|
68
|
-
"value"
|
|
69
|
-
],
|
|
70
65
|
"additionalProperties": false
|
|
71
66
|
}
|
|
72
67
|
}
|
|
@@ -22,12 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"multiple": {
|
|
24
24
|
"type": "boolean",
|
|
25
|
-
"
|
|
25
|
+
"default": false
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"required": [
|
|
29
|
-
"multiple"
|
|
30
|
-
],
|
|
31
28
|
"additionalProperties": false
|
|
32
29
|
},
|
|
33
30
|
"meta": {
|
|
@@ -44,10 +41,6 @@
|
|
|
44
41
|
"usageDescription": {
|
|
45
42
|
"type": "string",
|
|
46
43
|
"const": "For questions where users select one option from a list."
|
|
47
|
-
},
|
|
48
|
-
"defaultJSON": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"const": "{\n \"type\": \"selectBox\",\n \"attributes\": {\n \"multiple\": false\n },\n \"options\": [\n {\n \"label\": \"Option 1\",\n \"value\": \"option1\"\n }\n ],\n \"meta\": {\n \"schemaVersion\": \"1.0\"\n }\n}"
|
|
51
44
|
}
|
|
52
45
|
},
|
|
53
46
|
"required": [
|
|
@@ -61,19 +54,18 @@
|
|
|
61
54
|
"type": "object",
|
|
62
55
|
"properties": {
|
|
63
56
|
"label": {
|
|
64
|
-
"type": "string"
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "Option A"
|
|
65
59
|
},
|
|
66
60
|
"value": {
|
|
67
|
-
"type": "string"
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": "a"
|
|
68
63
|
},
|
|
69
64
|
"selected": {
|
|
70
|
-
"type": "boolean"
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false
|
|
71
67
|
}
|
|
72
68
|
},
|
|
73
|
-
"required": [
|
|
74
|
-
"label",
|
|
75
|
-
"value"
|
|
76
|
-
],
|
|
77
69
|
"additionalProperties": false
|
|
78
70
|
}
|
|
79
71
|
}
|