@dmptool/types 1.1.1 → 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.
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 +13 -11
  12. package/dist/questions/__tests__/optionBasedQuestions.spec.js +52 -13
  13. package/dist/questions/dateQuestions.d.ts +68 -47
  14. package/dist/questions/dateQuestions.js +15 -6
  15. package/dist/questions/graphQLQuestions.d.ts +121 -96
  16. package/dist/questions/graphQLQuestions.js +34 -3
  17. package/dist/questions/index.d.ts +1524 -1006
  18. package/dist/questions/index.js +4 -2
  19. package/dist/questions/numberQuestions.d.ts +107 -76
  20. package/dist/questions/numberQuestions.js +20 -7
  21. package/dist/questions/optionBasedQuestions.d.ts +202 -74
  22. package/dist/questions/optionBasedQuestions.js +41 -11
  23. package/dist/questions/question.d.ts +43 -4
  24. package/dist/questions/question.js +13 -2
  25. package/dist/questions/tableQuestions.d.ts +2056 -1428
  26. package/dist/questions/tableQuestions.js +9 -4
  27. package/dist/questions/textQuestions.d.ts +98 -58
  28. package/dist/questions/textQuestions.js +29 -15
  29. package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
  30. package/dist/schemas/affiliationSearchQuestion.schema.json +146 -0
  31. package/dist/schemas/anyAnswer.schema.json +41 -23
  32. package/dist/schemas/anyQuestion.schema.json +525 -108
  33. package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
  34. package/dist/schemas/anyTableColumnQuestion.schema.json +396 -80
  35. package/dist/schemas/booleanQuestion.schema.json +11 -3
  36. package/dist/schemas/checkboxesQuestion.schema.json +14 -7
  37. package/dist/schemas/currencyQuestion.schema.json +14 -3
  38. package/dist/schemas/dateQuestion.schema.json +10 -1
  39. package/dist/schemas/dateRangeQuestion.schema.json +14 -1
  40. package/dist/schemas/emailQuestion.schema.json +12 -2
  41. package/dist/schemas/filteredSearchQuestion.schema.json +7 -0
  42. package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
  43. package/dist/schemas/multiselectBoxQuestion.schema.json +85 -0
  44. package/dist/schemas/numberQuestion.schema.json +12 -2
  45. package/dist/schemas/numberRangeQuestion.schema.json +16 -2
  46. package/dist/schemas/radioButtonsQuestion.schema.json +14 -7
  47. package/dist/schemas/selectBoxAnswer.schema.json +1 -4
  48. package/dist/schemas/selectBoxQuestion.schema.json +17 -8
  49. package/dist/schemas/tableAnswer.schema.json +35 -14
  50. package/dist/schemas/tableQuestion.schema.json +420 -84
  51. package/dist/schemas/textAreaQuestion.schema.json +16 -6
  52. package/dist/schemas/textQuestion.schema.json +10 -1
  53. package/dist/schemas/urlQuestion.schema.json +10 -1
  54. package/package.json +1 -1
@@ -229,10 +229,7 @@
229
229
  "const": "selectBox"
230
230
  },
231
231
  "answer": {
232
- "type": "array",
233
- "items": {
234
- "type": "string"
235
- }
232
+ "type": "string"
236
233
  },
237
234
  "meta": {
238
235
  "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
@@ -267,6 +264,27 @@
267
264
  },
268
265
  "content": {
269
266
  "anyOf": [
267
+ {
268
+ "type": "object",
269
+ "properties": {
270
+ "type": {
271
+ "type": "string",
272
+ "const": "typeaheadSearch"
273
+ },
274
+ "answer": {
275
+ "type": "string"
276
+ },
277
+ "meta": {
278
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
279
+ }
280
+ },
281
+ "required": [
282
+ "type",
283
+ "answer",
284
+ "meta"
285
+ ],
286
+ "additionalProperties": false
287
+ },
270
288
  {
271
289
  "$ref": "#/definitions/AnyAnswer/anyOf/0"
272
290
  },
@@ -288,24 +306,18 @@
288
306
  {
289
307
  "$ref": "#/definitions/AnyAnswer/anyOf/6"
290
308
  },
291
- {
292
- "$ref": "#/definitions/AnyAnswer/anyOf/7"
293
- },
294
- {
295
- "$ref": "#/definitions/AnyAnswer/anyOf/8"
296
- },
297
- {
298
- "$ref": "#/definitions/AnyAnswer/anyOf/9"
299
- },
300
309
  {
301
310
  "type": "object",
302
311
  "properties": {
303
312
  "type": {
304
313
  "type": "string",
305
- "const": "text"
314
+ "const": "multiselectBox"
306
315
  },
307
316
  "answer": {
308
- "type": "string"
317
+ "type": "array",
318
+ "items": {
319
+ "type": "string"
320
+ }
309
321
  },
310
322
  "meta": {
311
323
  "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
@@ -318,12 +330,21 @@
318
330
  ],
319
331
  "additionalProperties": false
320
332
  },
333
+ {
334
+ "$ref": "#/definitions/AnyAnswer/anyOf/7"
335
+ },
336
+ {
337
+ "$ref": "#/definitions/AnyAnswer/anyOf/8"
338
+ },
339
+ {
340
+ "$ref": "#/definitions/AnyAnswer/anyOf/9"
341
+ },
321
342
  {
322
343
  "type": "object",
323
344
  "properties": {
324
345
  "type": {
325
346
  "type": "string",
326
- "const": "textArea"
347
+ "const": "text"
327
348
  },
328
349
  "answer": {
329
350
  "type": "string"
@@ -344,7 +365,7 @@
344
365
  "properties": {
345
366
  "type": {
346
367
  "type": "string",
347
- "const": "typeaheadSearch"
368
+ "const": "textArea"
348
369
  },
349
370
  "answer": {
350
371
  "type": "string"
@@ -409,17 +430,14 @@
409
430
  ],
410
431
  "additionalProperties": false
411
432
  },
412
- {
413
- "$ref": "#/definitions/AnyAnswer/anyOf/10/properties/answer/items/properties/columns/items/properties/content/anyOf/10"
414
- },
415
- {
416
- "$ref": "#/definitions/AnyAnswer/anyOf/10/properties/answer/items/properties/columns/items/properties/content/anyOf/11"
417
- },
418
433
  {
419
434
  "$ref": "#/definitions/AnyAnswer/anyOf/10/properties/answer/items/properties/columns/items/properties/content/anyOf/12"
420
435
  },
421
436
  {
422
437
  "$ref": "#/definitions/AnyAnswer/anyOf/10/properties/answer/items/properties/columns/items/properties/content/anyOf/13"
438
+ },
439
+ {
440
+ "$ref": "#/definitions/AnyAnswer/anyOf/10/properties/answer/items/properties/columns/items/properties/content/anyOf/14"
423
441
  }
424
442
  ]
425
443
  }