@dmptool/types 1.0.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/LICENSE +21 -0
- package/README.md +41 -0
- package/dist/answers.d.ts +558 -0
- package/dist/answers.js +87 -0
- package/dist/dateQuestions.d.ts +244 -0
- package/dist/dateQuestions.js +30 -0
- package/dist/graphQLQuestions.d.ts +288 -0
- package/dist/graphQLQuestions.js +41 -0
- package/dist/optionBasedQuestions.d.ts +236 -0
- package/dist/optionBasedQuestions.js +44 -0
- package/dist/primitiveQuestions.d.ts +367 -0
- package/dist/primitiveQuestions.js +96 -0
- package/dist/schemas/anyAnswer.schema.json +267 -0
- package/dist/schemas/anyQuestion.schema.json +726 -0
- package/dist/schemas/booleanAnswer.schema.json +23 -0
- package/dist/schemas/booleanQuestion.schema.json +46 -0
- package/dist/schemas/checkboxesAnswer.schema.json +26 -0
- package/dist/schemas/checkboxesQuestion.schema.json +73 -0
- package/dist/schemas/currencyAnswer.schema.json +23 -0
- package/dist/schemas/currencyQuestion.schema.json +45 -0
- package/dist/schemas/datePickerAnswer.schema.json +23 -0
- package/dist/schemas/datePickerQuestion.schema.json +52 -0
- package/dist/schemas/dateRangeAnswer.schema.json +36 -0
- package/dist/schemas/dateRangeQuestion.schema.json +106 -0
- package/dist/schemas/emailAnswer.schema.json +23 -0
- package/dist/schemas/emailQuestion.schema.json +55 -0
- package/dist/schemas/filteredSearchAnswer.schema.json +26 -0
- package/dist/schemas/filteredSearchQuestion.schema.json +120 -0
- package/dist/schemas/numberAnswer.schema.json +23 -0
- package/dist/schemas/numberQuestion.schema.json +52 -0
- package/dist/schemas/radioButtonsAnswer.schema.json +23 -0
- package/dist/schemas/radioButtonsQuestion.schema.json +73 -0
- package/dist/schemas/selectBoxAnswer.schema.json +23 -0
- package/dist/schemas/selectBoxQuestion.schema.json +83 -0
- package/dist/schemas/tableAnswer.schema.json +284 -0
- package/dist/schemas/tableQuestion.schema.json +680 -0
- package/dist/schemas/textAnswer.schema.json +23 -0
- package/dist/schemas/textAreaAnswer.schema.json +23 -0
- package/dist/schemas/textAreaQuestion.schema.json +48 -0
- package/dist/schemas/textQuestion.schema.json +52 -0
- package/dist/schemas/typeaheadSearchAnswer.schema.json +23 -0
- package/dist/schemas/typeaheadSearchQuestion.schema.json +110 -0
- package/dist/schemas/urlAnswer.schema.json +23 -0
- package/dist/schemas/urlQuestion.schema.json +52 -0
- package/dist/tableQuestions.d.ts +4195 -0
- package/dist/tableQuestions.js +55 -0
- package/package.json +41 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TextAreaAnswer",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TextAreaAnswer": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "textArea"
|
|
10
|
+
},
|
|
11
|
+
"answer": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"type",
|
|
17
|
+
"answer"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
23
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TextAreaQuestion",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TextAreaQuestion": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "textArea"
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"asRichText": {
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"attributes": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"cols": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
"maxLength": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
"minLength": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
},
|
|
32
|
+
"rows": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"type",
|
|
41
|
+
"meta",
|
|
42
|
+
"attributes"
|
|
43
|
+
],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
48
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TextQuestion",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TextQuestion": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "text"
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "1.0"
|
|
17
|
+
},
|
|
18
|
+
"labelTranslationKey": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
"attributes": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"maxLength": {
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
"minLength": {
|
|
34
|
+
"type": "number"
|
|
35
|
+
},
|
|
36
|
+
"pattern": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"type",
|
|
45
|
+
"meta",
|
|
46
|
+
"attributes"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
52
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TypeaheadSearchAnswer",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TypeaheadSearchAnswer": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "typeaheadSearch"
|
|
10
|
+
},
|
|
11
|
+
"answer": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"type",
|
|
17
|
+
"answer"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
23
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TypeaheadSearchQuestion",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TypeaheadSearchQuestion": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "typeaheadSearch"
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "1.0"
|
|
17
|
+
},
|
|
18
|
+
"labelTranslationKey": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
"graphQL": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"displayFields": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"propertyName": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"label": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"labelTranslationKey": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"propertyName",
|
|
47
|
+
"label"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"localQueryId": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"query": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"responseField": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"variables": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"minLength": {
|
|
67
|
+
"type": "number"
|
|
68
|
+
},
|
|
69
|
+
"label": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"labelTranslationKey": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"name": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"type": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"defaultValue": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": [
|
|
86
|
+
"name",
|
|
87
|
+
"type"
|
|
88
|
+
],
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"displayFields",
|
|
95
|
+
"responseField",
|
|
96
|
+
"variables"
|
|
97
|
+
],
|
|
98
|
+
"additionalProperties": false
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"type",
|
|
103
|
+
"meta",
|
|
104
|
+
"graphQL"
|
|
105
|
+
],
|
|
106
|
+
"additionalProperties": false
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
110
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/URLAnswer",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"URLAnswer": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "url"
|
|
10
|
+
},
|
|
11
|
+
"answer": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"type",
|
|
17
|
+
"answer"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
23
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/URLQuestion",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"URLQuestion": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "url"
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "1.0"
|
|
17
|
+
},
|
|
18
|
+
"labelTranslationKey": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
"attributes": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"maxLength": {
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
"minLength": {
|
|
34
|
+
"type": "number"
|
|
35
|
+
},
|
|
36
|
+
"pattern": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"type",
|
|
45
|
+
"meta",
|
|
46
|
+
"attributes"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
52
|
+
}
|