@dmptool/types 1.0.7 → 1.1.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/dist/answers/__tests__/answers.spec.js +18 -17
- package/dist/answers/index.d.ts +50 -25
- package/dist/answers/index.js +19 -17
- package/dist/answers/{primitiveAnswers.d.ts → numberAnswers.d.ts} +1 -100
- package/dist/answers/numberAnswers.js +25 -0
- package/dist/answers/tableAnswers.d.ts +48 -48
- package/dist/answers/tableAnswers.js +9 -8
- package/dist/answers/textAnswers.d.ts +101 -0
- package/dist/answers/textAnswers.js +22 -0
- package/dist/questions/__tests__/dateQuestions.spec.js +20 -74
- package/dist/questions/__tests__/graphQLQuestions.spec.js +6 -0
- package/dist/questions/__tests__/numberQuestions.spec.js +156 -0
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +41 -54
- package/dist/questions/__tests__/tableQuestion.spec.js +2 -0
- package/dist/questions/__tests__/textQuestions.spec.d.ts +1 -0
- package/dist/questions/__tests__/textQuestions.spec.js +120 -0
- package/dist/questions/dateQuestions.d.ts +159 -178
- package/dist/questions/dateQuestions.js +9 -15
- package/dist/questions/graphQLQuestions.d.ts +67 -38
- package/dist/questions/graphQLQuestions.js +3 -2
- package/dist/questions/index.d.ts +1616 -1356
- package/dist/questions/index.js +21 -19
- package/dist/questions/numberQuestions.d.ts +343 -0
- package/dist/questions/numberQuestions.js +34 -0
- package/dist/questions/optionBasedQuestions.d.ts +136 -158
- package/dist/questions/optionBasedQuestions.js +11 -20
- package/dist/questions/question.d.ts +29 -11
- package/dist/questions/question.js +10 -4
- package/dist/questions/tableQuestions.d.ts +2377 -2030
- package/dist/questions/tableQuestions.js +12 -10
- package/dist/questions/textQuestions.d.ts +261 -0
- package/dist/questions/textQuestions.js +42 -0
- package/dist/schemas/anyQuestion.schema.json +237 -239
- package/dist/schemas/anyTableColumnQuestion.schema.json +207 -217
- package/dist/schemas/booleanQuestion.schema.json +17 -12
- package/dist/schemas/checkboxesQuestion.schema.json +24 -27
- package/dist/schemas/currencyQuestion.schema.json +23 -18
- package/dist/schemas/dateQuestion.schema.json +21 -16
- package/dist/schemas/dateRangeQuestion.schema.json +31 -56
- package/dist/schemas/emailQuestion.schema.json +24 -19
- package/dist/schemas/filteredSearchQuestion.schema.json +18 -13
- package/dist/schemas/numberQuestion.schema.json +21 -16
- package/dist/schemas/numberRangeQuestion.schema.json +31 -56
- package/dist/schemas/radioButtonsQuestion.schema.json +24 -27
- package/dist/schemas/selectBoxQuestion.schema.json +27 -36
- package/dist/schemas/tableQuestion.schema.json +233 -235
- package/dist/schemas/textAreaQuestion.schema.json +22 -16
- package/dist/schemas/textQuestion.schema.json +21 -16
- package/dist/schemas/typeaheadSearchQuestion.schema.json +15 -4
- package/dist/schemas/urlQuestion.schema.json +21 -16
- package/package.json +1 -1
- package/dist/answers/primitiveAnswers.js +0 -41
- package/dist/questions/__tests__/primitiveQuestions.spec.js +0 -281
- package/dist/questions/primitiveQuestions.d.ts +0 -554
- package/dist/questions/primitiveQuestions.js +0 -86
- /package/dist/questions/__tests__/{primitiveQuestions.spec.d.ts → numberQuestions.spec.d.ts} +0 -0
|
@@ -8,15 +8,27 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "radioButtons"
|
|
10
10
|
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"label": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"help": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"labelTranslationKey": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
11
26
|
"meta": {
|
|
12
27
|
"type": "object",
|
|
13
28
|
"properties": {
|
|
14
29
|
"schemaVersion": {
|
|
15
30
|
"type": "string",
|
|
16
31
|
"const": "1.0"
|
|
17
|
-
},
|
|
18
|
-
"labelTranslationKey": {
|
|
19
|
-
"type": "string"
|
|
20
32
|
}
|
|
21
33
|
},
|
|
22
34
|
"required": [
|
|
@@ -29,33 +41,19 @@
|
|
|
29
41
|
"items": {
|
|
30
42
|
"type": "object",
|
|
31
43
|
"properties": {
|
|
32
|
-
"
|
|
33
|
-
"type": "string"
|
|
34
|
-
|
|
44
|
+
"label": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"value": {
|
|
48
|
+
"type": "string"
|
|
35
49
|
},
|
|
36
|
-
"
|
|
37
|
-
"type": "
|
|
38
|
-
"properties": {
|
|
39
|
-
"label": {
|
|
40
|
-
"type": "string"
|
|
41
|
-
},
|
|
42
|
-
"value": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
"selected": {
|
|
46
|
-
"type": "boolean"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"required": [
|
|
50
|
-
"label",
|
|
51
|
-
"value"
|
|
52
|
-
],
|
|
53
|
-
"additionalProperties": false
|
|
50
|
+
"selected": {
|
|
51
|
+
"type": "boolean"
|
|
54
52
|
}
|
|
55
53
|
},
|
|
56
54
|
"required": [
|
|
57
|
-
"
|
|
58
|
-
"
|
|
55
|
+
"label",
|
|
56
|
+
"value"
|
|
59
57
|
],
|
|
60
58
|
"additionalProperties": false
|
|
61
59
|
}
|
|
@@ -63,7 +61,6 @@
|
|
|
63
61
|
},
|
|
64
62
|
"required": [
|
|
65
63
|
"type",
|
|
66
|
-
"meta",
|
|
67
64
|
"options"
|
|
68
65
|
],
|
|
69
66
|
"additionalProperties": false
|
|
@@ -8,15 +8,30 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "selectBox"
|
|
10
10
|
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"label": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"help": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"labelTranslationKey": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"multiple": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
},
|
|
11
29
|
"meta": {
|
|
12
30
|
"type": "object",
|
|
13
31
|
"properties": {
|
|
14
32
|
"schemaVersion": {
|
|
15
33
|
"type": "string",
|
|
16
34
|
"const": "1.0"
|
|
17
|
-
},
|
|
18
|
-
"labelTranslationKey": {
|
|
19
|
-
"type": "string"
|
|
20
35
|
}
|
|
21
36
|
},
|
|
22
37
|
"required": [
|
|
@@ -29,50 +44,26 @@
|
|
|
29
44
|
"items": {
|
|
30
45
|
"type": "object",
|
|
31
46
|
"properties": {
|
|
32
|
-
"
|
|
33
|
-
"type": "string"
|
|
34
|
-
"const": "option"
|
|
47
|
+
"label": {
|
|
48
|
+
"type": "string"
|
|
35
49
|
},
|
|
36
|
-
"
|
|
37
|
-
"type": "
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
"value": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
"selected": {
|
|
46
|
-
"type": "boolean"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"required": [
|
|
50
|
-
"label",
|
|
51
|
-
"value"
|
|
52
|
-
],
|
|
53
|
-
"additionalProperties": false
|
|
50
|
+
"value": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"selected": {
|
|
54
|
+
"type": "boolean"
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
57
|
"required": [
|
|
57
|
-
"
|
|
58
|
-
"
|
|
58
|
+
"label",
|
|
59
|
+
"value"
|
|
59
60
|
],
|
|
60
61
|
"additionalProperties": false
|
|
61
62
|
}
|
|
62
|
-
},
|
|
63
|
-
"attributes": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"properties": {
|
|
66
|
-
"multiple": {
|
|
67
|
-
"type": "boolean"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"additionalProperties": false
|
|
71
63
|
}
|
|
72
64
|
},
|
|
73
65
|
"required": [
|
|
74
66
|
"type",
|
|
75
|
-
"meta",
|
|
76
67
|
"options"
|
|
77
68
|
],
|
|
78
69
|
"additionalProperties": false
|