@dmptool/types 1.0.1 → 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 +96 -29
- package/dist/answers/__tests__/answers.spec.js +33 -28
- package/dist/answers/answer.d.ts +13 -0
- package/dist/answers/answer.js +3 -0
- package/dist/answers/dateAnswers.d.ts +28 -1
- package/dist/answers/graphQLAnswers.d.ts +30 -2
- package/dist/answers/index.d.ts +523 -35
- package/dist/answers/optionBasedAnswers.d.ts +48 -6
- package/dist/answers/optionBasedAnswers.js +1 -1
- package/dist/answers/primitiveAnswers.d.ts +105 -7
- package/dist/answers/tableAnswers.d.ts +523 -35
- package/dist/schemas/anyAnswer.schema.json +89 -16
- package/dist/schemas/anyTableColumnAnswer.schema.json +84 -15
- 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 +89 -16
- 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 +1 -1
|
@@ -13,11 +13,25 @@
|
|
|
13
13
|
"items": {
|
|
14
14
|
"type": "string"
|
|
15
15
|
}
|
|
16
|
+
},
|
|
17
|
+
"meta": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"schemaVersion": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "1.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"schemaVersion"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
16
29
|
}
|
|
17
30
|
},
|
|
18
31
|
"required": [
|
|
19
32
|
"type",
|
|
20
|
-
"answer"
|
|
33
|
+
"answer",
|
|
34
|
+
"meta"
|
|
21
35
|
],
|
|
22
36
|
"additionalProperties": false
|
|
23
37
|
}
|
|
@@ -10,11 +10,25 @@
|
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
12
|
"type": "number"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "1.0"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
13
26
|
}
|
|
14
27
|
},
|
|
15
28
|
"required": [
|
|
16
29
|
"type",
|
|
17
|
-
"answer"
|
|
30
|
+
"answer",
|
|
31
|
+
"meta"
|
|
18
32
|
],
|
|
19
33
|
"additionalProperties": false
|
|
20
34
|
}
|
|
@@ -10,11 +10,25 @@
|
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
12
|
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "1.0"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
13
26
|
}
|
|
14
27
|
},
|
|
15
28
|
"required": [
|
|
16
29
|
"type",
|
|
17
|
-
"answer"
|
|
30
|
+
"answer",
|
|
31
|
+
"meta"
|
|
18
32
|
],
|
|
19
33
|
"additionalProperties": false
|
|
20
34
|
}
|
|
@@ -9,12 +9,29 @@
|
|
|
9
9
|
"const": "selectBox"
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
|
-
"type": "
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"meta": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"schemaVersion": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "1.0"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"schemaVersion"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
13
29
|
}
|
|
14
30
|
},
|
|
15
31
|
"required": [
|
|
16
32
|
"type",
|
|
17
|
-
"answer"
|
|
33
|
+
"answer",
|
|
34
|
+
"meta"
|
|
18
35
|
],
|
|
19
36
|
"additionalProperties": false
|
|
20
37
|
}
|
|
@@ -21,11 +21,25 @@
|
|
|
21
21
|
},
|
|
22
22
|
"answer": {
|
|
23
23
|
"type": "boolean"
|
|
24
|
+
},
|
|
25
|
+
"meta": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"schemaVersion": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"const": "1.0"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"schemaVersion"
|
|
35
|
+
],
|
|
36
|
+
"additionalProperties": false
|
|
24
37
|
}
|
|
25
38
|
},
|
|
26
39
|
"required": [
|
|
27
40
|
"type",
|
|
28
|
-
"answer"
|
|
41
|
+
"answer",
|
|
42
|
+
"meta"
|
|
29
43
|
],
|
|
30
44
|
"additionalProperties": false
|
|
31
45
|
},
|
|
@@ -41,11 +55,15 @@
|
|
|
41
55
|
"items": {
|
|
42
56
|
"type": "string"
|
|
43
57
|
}
|
|
58
|
+
},
|
|
59
|
+
"meta": {
|
|
60
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
44
61
|
}
|
|
45
62
|
},
|
|
46
63
|
"required": [
|
|
47
64
|
"type",
|
|
48
|
-
"answer"
|
|
65
|
+
"answer",
|
|
66
|
+
"meta"
|
|
49
67
|
],
|
|
50
68
|
"additionalProperties": false
|
|
51
69
|
},
|
|
@@ -58,11 +76,15 @@
|
|
|
58
76
|
},
|
|
59
77
|
"answer": {
|
|
60
78
|
"type": "number"
|
|
79
|
+
},
|
|
80
|
+
"meta": {
|
|
81
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
61
82
|
}
|
|
62
83
|
},
|
|
63
84
|
"required": [
|
|
64
85
|
"type",
|
|
65
|
-
"answer"
|
|
86
|
+
"answer",
|
|
87
|
+
"meta"
|
|
66
88
|
],
|
|
67
89
|
"additionalProperties": false
|
|
68
90
|
},
|
|
@@ -75,11 +97,15 @@
|
|
|
75
97
|
},
|
|
76
98
|
"answer": {
|
|
77
99
|
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"meta": {
|
|
102
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
78
103
|
}
|
|
79
104
|
},
|
|
80
105
|
"required": [
|
|
81
106
|
"type",
|
|
82
|
-
"answer"
|
|
107
|
+
"answer",
|
|
108
|
+
"meta"
|
|
83
109
|
],
|
|
84
110
|
"additionalProperties": false
|
|
85
111
|
},
|
|
@@ -105,11 +131,15 @@
|
|
|
105
131
|
"end"
|
|
106
132
|
],
|
|
107
133
|
"additionalProperties": false
|
|
134
|
+
},
|
|
135
|
+
"meta": {
|
|
136
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
108
137
|
}
|
|
109
138
|
},
|
|
110
139
|
"required": [
|
|
111
140
|
"type",
|
|
112
|
-
"answer"
|
|
141
|
+
"answer",
|
|
142
|
+
"meta"
|
|
113
143
|
],
|
|
114
144
|
"additionalProperties": false
|
|
115
145
|
},
|
|
@@ -122,11 +152,15 @@
|
|
|
122
152
|
},
|
|
123
153
|
"answer": {
|
|
124
154
|
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"meta": {
|
|
157
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
125
158
|
}
|
|
126
159
|
},
|
|
127
160
|
"required": [
|
|
128
161
|
"type",
|
|
129
|
-
"answer"
|
|
162
|
+
"answer",
|
|
163
|
+
"meta"
|
|
130
164
|
],
|
|
131
165
|
"additionalProperties": false
|
|
132
166
|
},
|
|
@@ -142,11 +176,15 @@
|
|
|
142
176
|
"items": {
|
|
143
177
|
"type": "string"
|
|
144
178
|
}
|
|
179
|
+
},
|
|
180
|
+
"meta": {
|
|
181
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
145
182
|
}
|
|
146
183
|
},
|
|
147
184
|
"required": [
|
|
148
185
|
"type",
|
|
149
|
-
"answer"
|
|
186
|
+
"answer",
|
|
187
|
+
"meta"
|
|
150
188
|
],
|
|
151
189
|
"additionalProperties": false
|
|
152
190
|
},
|
|
@@ -159,11 +197,15 @@
|
|
|
159
197
|
},
|
|
160
198
|
"answer": {
|
|
161
199
|
"type": "number"
|
|
200
|
+
},
|
|
201
|
+
"meta": {
|
|
202
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
162
203
|
}
|
|
163
204
|
},
|
|
164
205
|
"required": [
|
|
165
206
|
"type",
|
|
166
|
-
"answer"
|
|
207
|
+
"answer",
|
|
208
|
+
"meta"
|
|
167
209
|
],
|
|
168
210
|
"additionalProperties": false
|
|
169
211
|
},
|
|
@@ -176,11 +218,15 @@
|
|
|
176
218
|
},
|
|
177
219
|
"answer": {
|
|
178
220
|
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"meta": {
|
|
223
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
179
224
|
}
|
|
180
225
|
},
|
|
181
226
|
"required": [
|
|
182
227
|
"type",
|
|
183
|
-
"answer"
|
|
228
|
+
"answer",
|
|
229
|
+
"meta"
|
|
184
230
|
],
|
|
185
231
|
"additionalProperties": false
|
|
186
232
|
},
|
|
@@ -192,12 +238,19 @@
|
|
|
192
238
|
"const": "selectBox"
|
|
193
239
|
},
|
|
194
240
|
"answer": {
|
|
195
|
-
"type": "
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"meta": {
|
|
247
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
196
248
|
}
|
|
197
249
|
},
|
|
198
250
|
"required": [
|
|
199
251
|
"type",
|
|
200
|
-
"answer"
|
|
252
|
+
"answer",
|
|
253
|
+
"meta"
|
|
201
254
|
],
|
|
202
255
|
"additionalProperties": false
|
|
203
256
|
},
|
|
@@ -210,11 +263,15 @@
|
|
|
210
263
|
},
|
|
211
264
|
"answer": {
|
|
212
265
|
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"meta": {
|
|
268
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
213
269
|
}
|
|
214
270
|
},
|
|
215
271
|
"required": [
|
|
216
272
|
"type",
|
|
217
|
-
"answer"
|
|
273
|
+
"answer",
|
|
274
|
+
"meta"
|
|
218
275
|
],
|
|
219
276
|
"additionalProperties": false
|
|
220
277
|
},
|
|
@@ -227,11 +284,15 @@
|
|
|
227
284
|
},
|
|
228
285
|
"answer": {
|
|
229
286
|
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"meta": {
|
|
289
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
230
290
|
}
|
|
231
291
|
},
|
|
232
292
|
"required": [
|
|
233
293
|
"type",
|
|
234
|
-
"answer"
|
|
294
|
+
"answer",
|
|
295
|
+
"meta"
|
|
235
296
|
],
|
|
236
297
|
"additionalProperties": false
|
|
237
298
|
},
|
|
@@ -244,11 +305,15 @@
|
|
|
244
305
|
},
|
|
245
306
|
"answer": {
|
|
246
307
|
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
"meta": {
|
|
310
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
247
311
|
}
|
|
248
312
|
},
|
|
249
313
|
"required": [
|
|
250
314
|
"type",
|
|
251
|
-
"answer"
|
|
315
|
+
"answer",
|
|
316
|
+
"meta"
|
|
252
317
|
],
|
|
253
318
|
"additionalProperties": false
|
|
254
319
|
},
|
|
@@ -261,21 +326,29 @@
|
|
|
261
326
|
},
|
|
262
327
|
"answer": {
|
|
263
328
|
"type": "string"
|
|
329
|
+
},
|
|
330
|
+
"meta": {
|
|
331
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
264
332
|
}
|
|
265
333
|
},
|
|
266
334
|
"required": [
|
|
267
335
|
"type",
|
|
268
|
-
"answer"
|
|
336
|
+
"answer",
|
|
337
|
+
"meta"
|
|
269
338
|
],
|
|
270
339
|
"additionalProperties": false
|
|
271
340
|
}
|
|
272
341
|
]
|
|
273
342
|
}
|
|
343
|
+
},
|
|
344
|
+
"meta": {
|
|
345
|
+
"$ref": "#/definitions/TableAnswer/properties/answer/items/anyOf/0/properties/meta"
|
|
274
346
|
}
|
|
275
347
|
},
|
|
276
348
|
"required": [
|
|
277
349
|
"type",
|
|
278
|
-
"answer"
|
|
350
|
+
"answer",
|
|
351
|
+
"meta"
|
|
279
352
|
],
|
|
280
353
|
"additionalProperties": false
|
|
281
354
|
}
|
|
@@ -10,11 +10,25 @@
|
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
12
|
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "1.0"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
13
26
|
}
|
|
14
27
|
},
|
|
15
28
|
"required": [
|
|
16
29
|
"type",
|
|
17
|
-
"answer"
|
|
30
|
+
"answer",
|
|
31
|
+
"meta"
|
|
18
32
|
],
|
|
19
33
|
"additionalProperties": false
|
|
20
34
|
}
|
|
@@ -10,11 +10,25 @@
|
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
12
|
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "1.0"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
13
26
|
}
|
|
14
27
|
},
|
|
15
28
|
"required": [
|
|
16
29
|
"type",
|
|
17
|
-
"answer"
|
|
30
|
+
"answer",
|
|
31
|
+
"meta"
|
|
18
32
|
],
|
|
19
33
|
"additionalProperties": false
|
|
20
34
|
}
|
|
@@ -10,11 +10,25 @@
|
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
12
|
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "1.0"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
13
26
|
}
|
|
14
27
|
},
|
|
15
28
|
"required": [
|
|
16
29
|
"type",
|
|
17
|
-
"answer"
|
|
30
|
+
"answer",
|
|
31
|
+
"meta"
|
|
18
32
|
],
|
|
19
33
|
"additionalProperties": false
|
|
20
34
|
}
|
|
@@ -10,11 +10,25 @@
|
|
|
10
10
|
},
|
|
11
11
|
"answer": {
|
|
12
12
|
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "1.0"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"schemaVersion"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
13
26
|
}
|
|
14
27
|
},
|
|
15
28
|
"required": [
|
|
16
29
|
"type",
|
|
17
|
-
"answer"
|
|
30
|
+
"answer",
|
|
31
|
+
"meta"
|
|
18
32
|
],
|
|
19
33
|
"additionalProperties": false
|
|
20
34
|
}
|