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