@dmptool/types 1.0.5 → 1.0.7

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 (45) hide show
  1. package/README.md +5 -4
  2. package/dist/answers/__tests__/answers.spec.js +59 -7
  3. package/dist/answers/answer.d.ts +3 -3
  4. package/dist/answers/dateAnswers.d.ts +5 -5
  5. package/dist/answers/dateAnswers.js +3 -3
  6. package/dist/answers/index.d.ts +892 -513
  7. package/dist/answers/index.js +3 -2
  8. package/dist/answers/primitiveAnswers.d.ts +39 -0
  9. package/dist/answers/primitiveAnswers.js +8 -1
  10. package/dist/answers/tableAnswers.d.ts +1639 -32
  11. package/dist/answers/tableAnswers.js +10 -3
  12. package/dist/questions/__tests__/dateQuestions.spec.js +20 -20
  13. package/dist/questions/__tests__/primitiveQuestions.spec.js +92 -0
  14. package/dist/questions/__tests__/tableQuestion.spec.d.ts +1 -0
  15. package/dist/questions/__tests__/tableQuestion.spec.js +73 -0
  16. package/dist/questions/dateQuestions.d.ts +19 -19
  17. package/dist/questions/dateQuestions.js +8 -8
  18. package/dist/questions/graphQLQuestions.d.ts +20 -20
  19. package/dist/questions/graphQLQuestions.js +1 -1
  20. package/dist/questions/index.d.ts +1875 -1380
  21. package/dist/questions/index.js +3 -2
  22. package/dist/questions/optionBasedQuestions.js +1 -1
  23. package/dist/questions/primitiveQuestions.d.ts +214 -0
  24. package/dist/questions/primitiveQuestions.js +20 -3
  25. package/dist/questions/question.d.ts +4 -4
  26. package/dist/questions/question.js +2 -1
  27. package/dist/questions/tableQuestions.d.ts +2176 -145
  28. package/dist/questions/tableQuestions.js +7 -3
  29. package/dist/schemas/anyAnswer.schema.json +144 -119
  30. package/dist/schemas/anyQuestion.schema.json +161 -132
  31. package/dist/schemas/anyTableColumnAnswer.schema.json +1 -1
  32. package/dist/schemas/anyTableColumnQuestion.schema.json +20 -3
  33. package/dist/schemas/currencyQuestion.schema.json +10 -0
  34. package/dist/schemas/dateAnswer.schema.json +37 -0
  35. package/dist/schemas/datePickerAnswer.schema.json +4 -4
  36. package/dist/schemas/datePickerQuestion.schema.json +6 -5
  37. package/dist/schemas/dateQuestion.schema.json +51 -0
  38. package/dist/schemas/dateRangeQuestion.schema.json +1 -1
  39. package/dist/schemas/filteredSearchQuestion.schema.json +1 -2
  40. package/dist/schemas/numberRangeAnswer.schema.json +50 -0
  41. package/dist/schemas/numberRangeQuestion.schema.json +106 -0
  42. package/dist/schemas/tableAnswer.schema.json +349 -324
  43. package/dist/schemas/tableQuestion.schema.json +497 -468
  44. package/dist/schemas/textAreaQuestion.schema.json +10 -0
  45. package/package.json +1 -1
@@ -0,0 +1,106 @@
1
+ {
2
+ "$ref": "#/definitions/NumberRangeQuestion",
3
+ "definitions": {
4
+ "NumberRangeQuestion": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "const": "numberRange"
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
+ "columns": {
28
+ "type": "object",
29
+ "properties": {
30
+ "start": {
31
+ "type": "object",
32
+ "properties": {
33
+ "type": {
34
+ "type": "string",
35
+ "const": "number"
36
+ },
37
+ "meta": {
38
+ "$ref": "#/definitions/NumberRangeQuestion/properties/meta"
39
+ },
40
+ "attributes": {
41
+ "type": "object",
42
+ "properties": {
43
+ "label": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ "required": [
48
+ "label"
49
+ ],
50
+ "additionalProperties": false
51
+ }
52
+ },
53
+ "required": [
54
+ "type",
55
+ "meta",
56
+ "attributes"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "end": {
61
+ "type": "object",
62
+ "properties": {
63
+ "type": {
64
+ "$ref": "#/definitions/NumberRangeQuestion/properties/columns/properties/start/properties/type"
65
+ },
66
+ "meta": {
67
+ "$ref": "#/definitions/NumberRangeQuestion/properties/meta"
68
+ },
69
+ "attributes": {
70
+ "type": "object",
71
+ "properties": {
72
+ "label": {
73
+ "type": "string"
74
+ }
75
+ },
76
+ "required": [
77
+ "label"
78
+ ],
79
+ "additionalProperties": false
80
+ }
81
+ },
82
+ "required": [
83
+ "type",
84
+ "meta",
85
+ "attributes"
86
+ ],
87
+ "additionalProperties": false
88
+ }
89
+ },
90
+ "required": [
91
+ "start",
92
+ "end"
93
+ ],
94
+ "additionalProperties": false
95
+ }
96
+ },
97
+ "required": [
98
+ "type",
99
+ "meta",
100
+ "columns"
101
+ ],
102
+ "additionalProperties": false
103
+ }
104
+ },
105
+ "$schema": "http://json-schema.org/draft-07/schema#"
106
+ }