@dmptool/types 1.0.0 → 1.0.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 +127 -29
- package/dist/answers/__tests__/answers.spec.d.ts +1 -0
- package/dist/answers/__tests__/answers.spec.js +127 -0
- package/dist/answers/answer.d.ts +25 -0
- package/dist/answers/answer.js +13 -0
- package/dist/answers/dateAnswers.d.ts +66 -0
- package/dist/answers/dateAnswers.js +16 -0
- package/dist/answers/graphQLAnswers.d.ts +51 -0
- package/dist/answers/graphQLAnswers.js +14 -0
- package/dist/answers/index.d.ts +880 -0
- package/dist/answers/index.js +48 -0
- package/dist/answers/optionBasedAnswers.d.ts +76 -0
- package/dist/answers/optionBasedAnswers.js +18 -0
- package/dist/answers/primitiveAnswers.d.ts +176 -0
- package/dist/answers/primitiveAnswers.js +34 -0
- package/dist/answers/tableAnswers.d.ts +876 -0
- package/dist/answers/tableAnswers.js +31 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/questions/__tests__/dateQuestions.spec.d.ts +1 -0
- package/dist/questions/__tests__/dateQuestions.spec.js +149 -0
- package/dist/questions/__tests__/graphQLQuestions.spec.d.ts +1 -0
- package/dist/questions/__tests__/graphQLQuestions.spec.js +87 -0
- package/dist/questions/__tests__/optionBasedQuestions.spec.d.ts +1 -0
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +152 -0
- package/dist/questions/__tests__/primitiveQuestions.spec.d.ts +1 -0
- package/dist/questions/__tests__/primitiveQuestions.spec.js +189 -0
- package/dist/{dateQuestions.js → questions/dateQuestions.js} +3 -3
- package/dist/{graphQLQuestions.js → questions/graphQLQuestions.js} +3 -3
- package/dist/{tableQuestions.d.ts → questions/index.d.ts} +97 -1650
- package/dist/questions/index.js +48 -0
- package/dist/{optionBasedQuestions.js → questions/optionBasedQuestions.js} +4 -4
- package/dist/{primitiveQuestions.d.ts → questions/primitiveQuestions.d.ts} +0 -27
- package/dist/{primitiveQuestions.js → questions/primitiveQuestions.js} +8 -35
- package/dist/questions/question.d.ts +29 -0
- package/dist/questions/question.js +32 -0
- package/dist/questions/tableQuestions.d.ts +2638 -0
- package/dist/{tableQuestions.js → questions/tableQuestions.js} +5 -22
- package/dist/schemas/anyAnswer.schema.json +195 -59
- package/dist/schemas/anyTableColumnAnswer.schema.json +336 -0
- package/dist/schemas/anyTableColumnQuestion.schema.json +637 -0
- package/dist/schemas/booleanAnswer.schema.json +15 -1
- package/dist/schemas/checkboxesAnswer.schema.json +15 -1
- package/dist/schemas/currencyAnswer.schema.json +15 -1
- package/dist/schemas/datePickerAnswer.schema.json +15 -1
- package/dist/schemas/dateRangeAnswer.schema.json +15 -1
- package/dist/schemas/emailAnswer.schema.json +15 -1
- package/dist/schemas/filteredSearchAnswer.schema.json +15 -1
- package/dist/schemas/numberAnswer.schema.json +15 -1
- package/dist/schemas/radioButtonsAnswer.schema.json +15 -1
- package/dist/schemas/selectBoxAnswer.schema.json +19 -2
- package/dist/schemas/tableAnswer.schema.json +91 -18
- package/dist/schemas/textAnswer.schema.json +15 -1
- package/dist/schemas/textAreaAnswer.schema.json +15 -1
- package/dist/schemas/typeaheadSearchAnswer.schema.json +15 -1
- package/dist/schemas/urlAnswer.schema.json +15 -1
- package/package.json +8 -1
- package/dist/answers.d.ts +0 -558
- package/dist/answers.js +0 -87
- /package/dist/{dateQuestions.d.ts → questions/dateQuestions.d.ts} +0 -0
- /package/dist/{graphQLQuestions.d.ts → questions/graphQLQuestions.d.ts} +0 -0
- /package/dist/{optionBasedQuestions.d.ts → questions/optionBasedQuestions.d.ts} +0 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/AnyTableColumnAnswer",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"AnyTableColumnAnswer": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "boolean"
|
|
12
|
+
},
|
|
13
|
+
"answer": {
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
},
|
|
16
|
+
"meta": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"const": "1.0"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"schemaVersion"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"type",
|
|
32
|
+
"answer",
|
|
33
|
+
"meta"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"type": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"const": "checkBoxes"
|
|
43
|
+
},
|
|
44
|
+
"answer": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"meta": {
|
|
51
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"type",
|
|
56
|
+
"answer",
|
|
57
|
+
"meta"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"type": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"const": "currency"
|
|
67
|
+
},
|
|
68
|
+
"answer": {
|
|
69
|
+
"type": "number"
|
|
70
|
+
},
|
|
71
|
+
"meta": {
|
|
72
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"type",
|
|
77
|
+
"answer",
|
|
78
|
+
"meta"
|
|
79
|
+
],
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"type": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"const": "datePicker"
|
|
88
|
+
},
|
|
89
|
+
"answer": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"meta": {
|
|
93
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"type",
|
|
98
|
+
"answer",
|
|
99
|
+
"meta"
|
|
100
|
+
],
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"type": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"const": "dateRange"
|
|
109
|
+
},
|
|
110
|
+
"answer": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"start": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"end": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": [
|
|
121
|
+
"start",
|
|
122
|
+
"end"
|
|
123
|
+
],
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
},
|
|
126
|
+
"meta": {
|
|
127
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": [
|
|
131
|
+
"type",
|
|
132
|
+
"answer",
|
|
133
|
+
"meta"
|
|
134
|
+
],
|
|
135
|
+
"additionalProperties": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"type": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"const": "email"
|
|
143
|
+
},
|
|
144
|
+
"answer": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"meta": {
|
|
148
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"type",
|
|
153
|
+
"answer",
|
|
154
|
+
"meta"
|
|
155
|
+
],
|
|
156
|
+
"additionalProperties": false
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"type": "object",
|
|
160
|
+
"properties": {
|
|
161
|
+
"type": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"const": "filteredSearch"
|
|
164
|
+
},
|
|
165
|
+
"answer": {
|
|
166
|
+
"type": "array",
|
|
167
|
+
"items": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"meta": {
|
|
172
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": [
|
|
176
|
+
"type",
|
|
177
|
+
"answer",
|
|
178
|
+
"meta"
|
|
179
|
+
],
|
|
180
|
+
"additionalProperties": false
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"type": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"const": "number"
|
|
188
|
+
},
|
|
189
|
+
"answer": {
|
|
190
|
+
"type": "number"
|
|
191
|
+
},
|
|
192
|
+
"meta": {
|
|
193
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"type",
|
|
198
|
+
"answer",
|
|
199
|
+
"meta"
|
|
200
|
+
],
|
|
201
|
+
"additionalProperties": false
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"type": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"const": "radioButtons"
|
|
209
|
+
},
|
|
210
|
+
"answer": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"meta": {
|
|
214
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"required": [
|
|
218
|
+
"type",
|
|
219
|
+
"answer",
|
|
220
|
+
"meta"
|
|
221
|
+
],
|
|
222
|
+
"additionalProperties": false
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"type": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"const": "selectBox"
|
|
230
|
+
},
|
|
231
|
+
"answer": {
|
|
232
|
+
"type": "array",
|
|
233
|
+
"items": {
|
|
234
|
+
"type": "string"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"meta": {
|
|
238
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"required": [
|
|
242
|
+
"type",
|
|
243
|
+
"answer",
|
|
244
|
+
"meta"
|
|
245
|
+
],
|
|
246
|
+
"additionalProperties": false
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"type": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"const": "text"
|
|
254
|
+
},
|
|
255
|
+
"answer": {
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"meta": {
|
|
259
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"required": [
|
|
263
|
+
"type",
|
|
264
|
+
"answer",
|
|
265
|
+
"meta"
|
|
266
|
+
],
|
|
267
|
+
"additionalProperties": false
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "object",
|
|
271
|
+
"properties": {
|
|
272
|
+
"type": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"const": "textArea"
|
|
275
|
+
},
|
|
276
|
+
"answer": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"meta": {
|
|
280
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"required": [
|
|
284
|
+
"type",
|
|
285
|
+
"answer",
|
|
286
|
+
"meta"
|
|
287
|
+
],
|
|
288
|
+
"additionalProperties": false
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"type": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"const": "typeaheadSearch"
|
|
296
|
+
},
|
|
297
|
+
"answer": {
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
"meta": {
|
|
301
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"required": [
|
|
305
|
+
"type",
|
|
306
|
+
"answer",
|
|
307
|
+
"meta"
|
|
308
|
+
],
|
|
309
|
+
"additionalProperties": false
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"type": "object",
|
|
313
|
+
"properties": {
|
|
314
|
+
"type": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"const": "url"
|
|
317
|
+
},
|
|
318
|
+
"answer": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"meta": {
|
|
322
|
+
"$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": [
|
|
326
|
+
"type",
|
|
327
|
+
"answer",
|
|
328
|
+
"meta"
|
|
329
|
+
],
|
|
330
|
+
"additionalProperties": false
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
336
|
+
}
|