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