@dmptool/types 1.1.1 → 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.
Files changed (54) hide show
  1. package/dist/answers/__tests__/answers.spec.js +11 -5
  2. package/dist/answers/answer.d.ts +3 -3
  3. package/dist/answers/graphQLAnswers.d.ts +2 -2
  4. package/dist/answers/graphQLAnswers.js +2 -2
  5. package/dist/answers/index.d.ts +92 -55
  6. package/dist/answers/index.js +2 -2
  7. package/dist/answers/optionBasedAnswers.d.ts +27 -2
  8. package/dist/answers/optionBasedAnswers.js +5 -1
  9. package/dist/answers/tableAnswers.d.ts +268 -104
  10. package/dist/answers/tableAnswers.js +2 -1
  11. package/dist/questions/__tests__/graphQLQuestions.spec.js +7 -7
  12. package/dist/questions/__tests__/optionBasedQuestions.spec.js +48 -1
  13. package/dist/questions/dateQuestions.d.ts +47 -16
  14. package/dist/questions/dateQuestions.js +25 -1
  15. package/dist/questions/graphQLQuestions.d.ts +59 -28
  16. package/dist/questions/graphQLQuestions.js +40 -3
  17. package/dist/questions/index.d.ts +1363 -646
  18. package/dist/questions/index.js +4 -2
  19. package/dist/questions/numberQuestions.d.ts +71 -25
  20. package/dist/questions/numberQuestions.js +36 -1
  21. package/dist/questions/optionBasedQuestions.d.ts +197 -44
  22. package/dist/questions/optionBasedQuestions.js +84 -6
  23. package/dist/questions/question.d.ts +51 -4
  24. package/dist/questions/question.js +14 -2
  25. package/dist/questions/tableQuestions.d.ts +1841 -932
  26. package/dist/questions/tableQuestions.js +13 -1
  27. package/dist/questions/textQuestions.d.ts +100 -40
  28. package/dist/questions/textQuestions.js +45 -7
  29. package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
  30. package/dist/schemas/affiliationSearchQuestion.schema.json +133 -0
  31. package/dist/schemas/anyAnswer.schema.json +41 -23
  32. package/dist/schemas/anyQuestion.schema.json +533 -149
  33. package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
  34. package/dist/schemas/anyTableColumnQuestion.schema.json +397 -119
  35. package/dist/schemas/booleanQuestion.schema.json +13 -2
  36. package/dist/schemas/checkboxesQuestion.schema.json +12 -0
  37. package/dist/schemas/currencyQuestion.schema.json +12 -0
  38. package/dist/schemas/dateQuestion.schema.json +12 -0
  39. package/dist/schemas/dateRangeQuestion.schema.json +12 -0
  40. package/dist/schemas/emailQuestion.schema.json +12 -0
  41. package/dist/schemas/filteredSearchQuestion.schema.json +10 -0
  42. package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
  43. package/dist/schemas/multiselectBoxQuestion.schema.json +90 -0
  44. package/dist/schemas/numberQuestion.schema.json +12 -0
  45. package/dist/schemas/numberRangeQuestion.schema.json +12 -0
  46. package/dist/schemas/radioButtonsQuestion.schema.json +12 -0
  47. package/dist/schemas/selectBoxAnswer.schema.json +1 -4
  48. package/dist/schemas/selectBoxQuestion.schema.json +18 -1
  49. package/dist/schemas/tableAnswer.schema.json +35 -14
  50. package/dist/schemas/tableQuestion.schema.json +419 -120
  51. package/dist/schemas/textAreaQuestion.schema.json +15 -4
  52. package/dist/schemas/textQuestion.schema.json +12 -0
  53. package/dist/schemas/urlQuestion.schema.json +12 -0
  54. package/package.json +1 -1
@@ -8,10 +8,10 @@
8
8
  "properties": {
9
9
  "type": {
10
10
  "type": "string",
11
- "const": "boolean"
11
+ "const": "typeaheadSearch"
12
12
  },
13
13
  "answer": {
14
- "type": "boolean"
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": "number"
208
+ "const": "multiselectBox"
188
209
  },
189
210
  "answer": {
190
- "type": "number"
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": "radioButtons"
232
+ "const": "number"
209
233
  },
210
234
  "answer": {
211
- "type": "string"
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": "selectBox"
253
+ "const": "radioButtons"
230
254
  },
231
255
  "answer": {
232
- "type": "array",
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": "text"
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": "textArea"
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": "typeaheadSearch"
316
+ "const": "textArea"
296
317
  },
297
318
  "answer": {
298
319
  "type": "string"