@dmptool/types 1.1.0 → 1.1.2
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 +2 -0
- package/dist/answers/__tests__/answers.spec.js +13 -7
- 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 +111 -74
- package/dist/answers/index.js +4 -4
- package/dist/answers/numberAnswers.d.ts +0 -25
- package/dist/answers/numberAnswers.js +1 -5
- package/dist/answers/optionBasedAnswers.d.ts +52 -2
- package/dist/answers/optionBasedAnswers.js +9 -1
- package/dist/answers/tableAnswers.d.ts +304 -140
- package/dist/answers/tableAnswers.js +3 -2
- package/dist/questions/__tests__/graphQLQuestions.spec.js +7 -7
- package/dist/questions/__tests__/numberQuestions.spec.js +0 -48
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +98 -1
- package/dist/questions/dateQuestions.d.ts +47 -16
- package/dist/questions/dateQuestions.js +25 -1
- package/dist/questions/graphQLQuestions.d.ts +59 -28
- package/dist/questions/graphQLQuestions.js +40 -3
- package/dist/questions/index.d.ts +1567 -689
- package/dist/questions/index.js +7 -4
- package/dist/questions/numberQuestions.d.ts +71 -76
- package/dist/questions/numberQuestions.js +37 -8
- package/dist/questions/optionBasedQuestions.d.ts +227 -23
- package/dist/questions/optionBasedQuestions.js +89 -5
- package/dist/questions/question.d.ts +51 -4
- package/dist/questions/question.js +14 -2
- package/dist/questions/tableQuestions.d.ts +1965 -1056
- package/dist/questions/tableQuestions.js +14 -2
- package/dist/questions/textQuestions.d.ts +100 -40
- package/dist/questions/textQuestions.js +45 -7
- package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
- package/dist/schemas/affiliationSearchQuestion.schema.json +133 -0
- package/dist/schemas/anyAnswer.schema.json +41 -23
- package/dist/schemas/anyQuestion.schema.json +563 -146
- package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
- package/dist/schemas/anyTableColumnQuestion.schema.json +398 -119
- package/dist/schemas/booleanQuestion.schema.json +12 -0
- package/dist/schemas/checkboxesQuestion.schema.json +12 -0
- package/dist/schemas/currencyQuestion.schema.json +12 -0
- package/dist/schemas/dateQuestion.schema.json +12 -0
- package/dist/schemas/dateRangeQuestion.schema.json +12 -0
- package/dist/schemas/emailQuestion.schema.json +12 -0
- package/dist/schemas/filteredSearchQuestion.schema.json +10 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +90 -0
- package/dist/schemas/numberQuestion.schema.json +12 -0
- package/dist/schemas/numberRangeQuestion.schema.json +12 -0
- package/dist/schemas/radioButtonsQuestion.schema.json +12 -0
- package/dist/schemas/selectBoxAnswer.schema.json +1 -4
- package/dist/schemas/selectBoxQuestion.schema.json +18 -1
- package/dist/schemas/tableAnswer.schema.json +35 -14
- package/dist/schemas/tableQuestion.schema.json +420 -120
- package/dist/schemas/textAreaQuestion.schema.json +15 -4
- package/dist/schemas/textQuestion.schema.json +12 -0
- package/dist/schemas/urlQuestion.schema.json +12 -0
- package/package.json +1 -1
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"properties": {
|
|
9
9
|
"type": {
|
|
10
10
|
"type": "string",
|
|
11
|
-
"const": "
|
|
11
|
+
"const": "typeaheadSearch"
|
|
12
12
|
},
|
|
13
13
|
"answer": {
|
|
14
|
-
"type": "
|
|
14
|
+
"type": "string"
|
|
15
15
|
},
|
|
16
16
|
"meta": {
|
|
17
17
|
"type": "object",
|
|
@@ -34,6 +34,27 @@
|
|
|
34
34
|
],
|
|
35
35
|
"additionalProperties": false
|
|
36
36
|
},
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"type": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"const": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"answer": {
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
47
|
+
"meta": {
|
|
48
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"type",
|
|
53
|
+
"answer",
|
|
54
|
+
"meta"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
},
|
|
37
58
|
{
|
|
38
59
|
"type": "object",
|
|
39
60
|
"properties": {
|
|
@@ -184,10 +205,13 @@
|
|
|
184
205
|
"properties": {
|
|
185
206
|
"type": {
|
|
186
207
|
"type": "string",
|
|
187
|
-
"const": "
|
|
208
|
+
"const": "multiselectBox"
|
|
188
209
|
},
|
|
189
210
|
"answer": {
|
|
190
|
-
"type": "
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
}
|
|
191
215
|
},
|
|
192
216
|
"meta": {
|
|
193
217
|
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
@@ -205,10 +229,10 @@
|
|
|
205
229
|
"properties": {
|
|
206
230
|
"type": {
|
|
207
231
|
"type": "string",
|
|
208
|
-
"const": "
|
|
232
|
+
"const": "number"
|
|
209
233
|
},
|
|
210
234
|
"answer": {
|
|
211
|
-
"type": "
|
|
235
|
+
"type": "number"
|
|
212
236
|
},
|
|
213
237
|
"meta": {
|
|
214
238
|
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
@@ -226,13 +250,10 @@
|
|
|
226
250
|
"properties": {
|
|
227
251
|
"type": {
|
|
228
252
|
"type": "string",
|
|
229
|
-
"const": "
|
|
253
|
+
"const": "radioButtons"
|
|
230
254
|
},
|
|
231
255
|
"answer": {
|
|
232
|
-
"type": "
|
|
233
|
-
"items": {
|
|
234
|
-
"type": "string"
|
|
235
|
-
}
|
|
256
|
+
"type": "string"
|
|
236
257
|
},
|
|
237
258
|
"meta": {
|
|
238
259
|
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
@@ -250,7 +271,7 @@
|
|
|
250
271
|
"properties": {
|
|
251
272
|
"type": {
|
|
252
273
|
"type": "string",
|
|
253
|
-
"const": "
|
|
274
|
+
"const": "selectBox"
|
|
254
275
|
},
|
|
255
276
|
"answer": {
|
|
256
277
|
"type": "string"
|
|
@@ -271,7 +292,7 @@
|
|
|
271
292
|
"properties": {
|
|
272
293
|
"type": {
|
|
273
294
|
"type": "string",
|
|
274
|
-
"const": "
|
|
295
|
+
"const": "text"
|
|
275
296
|
},
|
|
276
297
|
"answer": {
|
|
277
298
|
"type": "string"
|
|
@@ -292,7 +313,7 @@
|
|
|
292
313
|
"properties": {
|
|
293
314
|
"type": {
|
|
294
315
|
"type": "string",
|
|
295
|
-
"const": "
|
|
316
|
+
"const": "textArea"
|
|
296
317
|
},
|
|
297
318
|
"answer": {
|
|
298
319
|
"type": "string"
|