@dmptool/types 1.0.7 → 1.1.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/dist/answers/__tests__/answers.spec.js +18 -17
- package/dist/answers/index.d.ts +50 -25
- package/dist/answers/index.js +19 -17
- package/dist/answers/{primitiveAnswers.d.ts → numberAnswers.d.ts} +1 -100
- package/dist/answers/numberAnswers.js +25 -0
- package/dist/answers/tableAnswers.d.ts +48 -48
- package/dist/answers/tableAnswers.js +9 -8
- package/dist/answers/textAnswers.d.ts +101 -0
- package/dist/answers/textAnswers.js +22 -0
- package/dist/questions/__tests__/dateQuestions.spec.js +20 -74
- package/dist/questions/__tests__/graphQLQuestions.spec.js +6 -0
- package/dist/questions/__tests__/numberQuestions.spec.js +156 -0
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +41 -54
- package/dist/questions/__tests__/tableQuestion.spec.js +2 -0
- package/dist/questions/__tests__/textQuestions.spec.d.ts +1 -0
- package/dist/questions/__tests__/textQuestions.spec.js +120 -0
- package/dist/questions/dateQuestions.d.ts +159 -178
- package/dist/questions/dateQuestions.js +9 -15
- package/dist/questions/graphQLQuestions.d.ts +67 -38
- package/dist/questions/graphQLQuestions.js +3 -2
- package/dist/questions/index.d.ts +1616 -1356
- package/dist/questions/index.js +21 -19
- package/dist/questions/numberQuestions.d.ts +343 -0
- package/dist/questions/numberQuestions.js +34 -0
- package/dist/questions/optionBasedQuestions.d.ts +136 -158
- package/dist/questions/optionBasedQuestions.js +11 -20
- package/dist/questions/question.d.ts +29 -11
- package/dist/questions/question.js +10 -4
- package/dist/questions/tableQuestions.d.ts +2377 -2030
- package/dist/questions/tableQuestions.js +12 -10
- package/dist/questions/textQuestions.d.ts +261 -0
- package/dist/questions/textQuestions.js +42 -0
- package/dist/schemas/anyQuestion.schema.json +237 -239
- package/dist/schemas/anyTableColumnQuestion.schema.json +207 -217
- package/dist/schemas/booleanQuestion.schema.json +17 -12
- package/dist/schemas/checkboxesQuestion.schema.json +24 -27
- package/dist/schemas/currencyQuestion.schema.json +23 -18
- package/dist/schemas/dateQuestion.schema.json +21 -16
- package/dist/schemas/dateRangeQuestion.schema.json +31 -56
- package/dist/schemas/emailQuestion.schema.json +24 -19
- package/dist/schemas/filteredSearchQuestion.schema.json +18 -13
- package/dist/schemas/numberQuestion.schema.json +21 -16
- package/dist/schemas/numberRangeQuestion.schema.json +31 -56
- package/dist/schemas/radioButtonsQuestion.schema.json +24 -27
- package/dist/schemas/selectBoxQuestion.schema.json +27 -36
- package/dist/schemas/tableQuestion.schema.json +233 -235
- package/dist/schemas/textAreaQuestion.schema.json +22 -16
- package/dist/schemas/textQuestion.schema.json +21 -16
- package/dist/schemas/typeaheadSearchQuestion.schema.json +15 -4
- package/dist/schemas/urlQuestion.schema.json +21 -16
- package/package.json +1 -1
- package/dist/answers/primitiveAnswers.js +0 -41
- package/dist/questions/__tests__/primitiveQuestions.spec.js +0 -281
- package/dist/questions/primitiveQuestions.d.ts +0 -554
- package/dist/questions/primitiveQuestions.js +0 -86
- /package/dist/questions/__tests__/{primitiveQuestions.spec.d.ts → numberQuestions.spec.d.ts} +0 -0
|
@@ -10,35 +10,40 @@
|
|
|
10
10
|
"type": "string",
|
|
11
11
|
"const": "boolean"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"attributes": {
|
|
14
14
|
"type": "object",
|
|
15
15
|
"properties": {
|
|
16
|
-
"
|
|
17
|
-
"type": "string"
|
|
18
|
-
|
|
16
|
+
"label": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"help": {
|
|
20
|
+
"type": "string"
|
|
19
21
|
},
|
|
20
22
|
"labelTranslationKey": {
|
|
21
23
|
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"checked": {
|
|
26
|
+
"type": "boolean"
|
|
22
27
|
}
|
|
23
28
|
},
|
|
24
|
-
"required": [
|
|
25
|
-
"schemaVersion"
|
|
26
|
-
],
|
|
27
29
|
"additionalProperties": false
|
|
28
30
|
},
|
|
29
|
-
"
|
|
31
|
+
"meta": {
|
|
30
32
|
"type": "object",
|
|
31
33
|
"properties": {
|
|
32
|
-
"
|
|
33
|
-
"type": "
|
|
34
|
+
"schemaVersion": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"const": "1.0"
|
|
34
37
|
}
|
|
35
38
|
},
|
|
39
|
+
"required": [
|
|
40
|
+
"schemaVersion"
|
|
41
|
+
],
|
|
36
42
|
"additionalProperties": false
|
|
37
43
|
}
|
|
38
44
|
},
|
|
39
45
|
"required": [
|
|
40
|
-
"type"
|
|
41
|
-
"meta"
|
|
46
|
+
"type"
|
|
42
47
|
],
|
|
43
48
|
"additionalProperties": false
|
|
44
49
|
},
|
|
@@ -49,6 +54,21 @@
|
|
|
49
54
|
"type": "string",
|
|
50
55
|
"const": "checkBoxes"
|
|
51
56
|
},
|
|
57
|
+
"attributes": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"label": {
|
|
61
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
62
|
+
},
|
|
63
|
+
"help": {
|
|
64
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
65
|
+
},
|
|
66
|
+
"labelTranslationKey": {
|
|
67
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
52
72
|
"meta": {
|
|
53
73
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
54
74
|
},
|
|
@@ -57,33 +77,19 @@
|
|
|
57
77
|
"items": {
|
|
58
78
|
"type": "object",
|
|
59
79
|
"properties": {
|
|
60
|
-
"
|
|
61
|
-
"type": "string"
|
|
62
|
-
"const": "option"
|
|
80
|
+
"label": {
|
|
81
|
+
"type": "string"
|
|
63
82
|
},
|
|
64
|
-
"
|
|
65
|
-
"type": "
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
"value": {
|
|
71
|
-
"type": "string"
|
|
72
|
-
},
|
|
73
|
-
"checked": {
|
|
74
|
-
"type": "boolean"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"required": [
|
|
78
|
-
"label",
|
|
79
|
-
"value"
|
|
80
|
-
],
|
|
81
|
-
"additionalProperties": false
|
|
83
|
+
"value": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"checked": {
|
|
87
|
+
"type": "boolean"
|
|
82
88
|
}
|
|
83
89
|
},
|
|
84
90
|
"required": [
|
|
85
|
-
"
|
|
86
|
-
"
|
|
91
|
+
"label",
|
|
92
|
+
"value"
|
|
87
93
|
],
|
|
88
94
|
"additionalProperties": false
|
|
89
95
|
}
|
|
@@ -91,7 +97,6 @@
|
|
|
91
97
|
},
|
|
92
98
|
"required": [
|
|
93
99
|
"type",
|
|
94
|
-
"meta",
|
|
95
100
|
"options"
|
|
96
101
|
],
|
|
97
102
|
"additionalProperties": false
|
|
@@ -103,27 +108,18 @@
|
|
|
103
108
|
"type": "string",
|
|
104
109
|
"const": "currency"
|
|
105
110
|
},
|
|
106
|
-
"
|
|
111
|
+
"attributes": {
|
|
107
112
|
"type": "object",
|
|
108
113
|
"properties": {
|
|
109
|
-
"
|
|
110
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/
|
|
114
|
+
"label": {
|
|
115
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
116
|
+
},
|
|
117
|
+
"help": {
|
|
118
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
111
119
|
},
|
|
112
120
|
"labelTranslationKey": {
|
|
113
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/
|
|
121
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
114
122
|
},
|
|
115
|
-
"denomination": {
|
|
116
|
-
"type": "string"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"required": [
|
|
120
|
-
"schemaVersion"
|
|
121
|
-
],
|
|
122
|
-
"additionalProperties": false
|
|
123
|
-
},
|
|
124
|
-
"attributes": {
|
|
125
|
-
"type": "object",
|
|
126
|
-
"properties": {
|
|
127
123
|
"max": {
|
|
128
124
|
"type": "number"
|
|
129
125
|
},
|
|
@@ -132,14 +128,19 @@
|
|
|
132
128
|
},
|
|
133
129
|
"step": {
|
|
134
130
|
"type": "number"
|
|
131
|
+
},
|
|
132
|
+
"denomination": {
|
|
133
|
+
"type": "string"
|
|
135
134
|
}
|
|
136
135
|
},
|
|
137
136
|
"additionalProperties": false
|
|
137
|
+
},
|
|
138
|
+
"meta": {
|
|
139
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
138
140
|
}
|
|
139
141
|
},
|
|
140
142
|
"required": [
|
|
141
|
-
"type"
|
|
142
|
-
"meta"
|
|
143
|
+
"type"
|
|
143
144
|
],
|
|
144
145
|
"additionalProperties": false
|
|
145
146
|
},
|
|
@@ -150,12 +151,18 @@
|
|
|
150
151
|
"type": "string",
|
|
151
152
|
"const": "date"
|
|
152
153
|
},
|
|
153
|
-
"meta": {
|
|
154
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
155
|
-
},
|
|
156
154
|
"attributes": {
|
|
157
155
|
"type": "object",
|
|
158
156
|
"properties": {
|
|
157
|
+
"label": {
|
|
158
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
159
|
+
},
|
|
160
|
+
"help": {
|
|
161
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
162
|
+
},
|
|
163
|
+
"labelTranslationKey": {
|
|
164
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
165
|
+
},
|
|
159
166
|
"max": {
|
|
160
167
|
"type": "string"
|
|
161
168
|
},
|
|
@@ -167,11 +174,13 @@
|
|
|
167
174
|
}
|
|
168
175
|
},
|
|
169
176
|
"additionalProperties": false
|
|
177
|
+
},
|
|
178
|
+
"meta": {
|
|
179
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
170
180
|
}
|
|
171
181
|
},
|
|
172
182
|
"required": [
|
|
173
|
-
"type"
|
|
174
|
-
"meta"
|
|
183
|
+
"type"
|
|
175
184
|
],
|
|
176
185
|
"additionalProperties": false
|
|
177
186
|
},
|
|
@@ -182,6 +191,9 @@
|
|
|
182
191
|
"type": "string",
|
|
183
192
|
"const": "dateRange"
|
|
184
193
|
},
|
|
194
|
+
"attributes": {
|
|
195
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/1/properties/attributes"
|
|
196
|
+
},
|
|
185
197
|
"meta": {
|
|
186
198
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
187
199
|
},
|
|
@@ -189,74 +201,17 @@
|
|
|
189
201
|
"type": "object",
|
|
190
202
|
"properties": {
|
|
191
203
|
"start": {
|
|
192
|
-
"
|
|
193
|
-
"properties": {
|
|
194
|
-
"type": {
|
|
195
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/3/properties/type"
|
|
196
|
-
},
|
|
197
|
-
"meta": {
|
|
198
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
199
|
-
},
|
|
200
|
-
"attributes": {
|
|
201
|
-
"type": "object",
|
|
202
|
-
"properties": {
|
|
203
|
-
"label": {
|
|
204
|
-
"type": "string"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"required": [
|
|
208
|
-
"label"
|
|
209
|
-
],
|
|
210
|
-
"additionalProperties": false
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"required": [
|
|
214
|
-
"type",
|
|
215
|
-
"meta",
|
|
216
|
-
"attributes"
|
|
217
|
-
],
|
|
218
|
-
"additionalProperties": false
|
|
204
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/3/properties/attributes"
|
|
219
205
|
},
|
|
220
206
|
"end": {
|
|
221
|
-
"
|
|
222
|
-
"properties": {
|
|
223
|
-
"type": {
|
|
224
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/3/properties/type"
|
|
225
|
-
},
|
|
226
|
-
"meta": {
|
|
227
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
228
|
-
},
|
|
229
|
-
"attributes": {
|
|
230
|
-
"type": "object",
|
|
231
|
-
"properties": {
|
|
232
|
-
"label": {
|
|
233
|
-
"type": "string"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"required": [
|
|
237
|
-
"label"
|
|
238
|
-
],
|
|
239
|
-
"additionalProperties": false
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
"required": [
|
|
243
|
-
"type",
|
|
244
|
-
"meta",
|
|
245
|
-
"attributes"
|
|
246
|
-
],
|
|
247
|
-
"additionalProperties": false
|
|
207
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/3/properties/attributes"
|
|
248
208
|
}
|
|
249
209
|
},
|
|
250
|
-
"required": [
|
|
251
|
-
"start",
|
|
252
|
-
"end"
|
|
253
|
-
],
|
|
254
210
|
"additionalProperties": false
|
|
255
211
|
}
|
|
256
212
|
},
|
|
257
213
|
"required": [
|
|
258
214
|
"type",
|
|
259
|
-
"meta",
|
|
260
215
|
"columns"
|
|
261
216
|
],
|
|
262
217
|
"additionalProperties": false
|
|
@@ -268,31 +223,39 @@
|
|
|
268
223
|
"type": "string",
|
|
269
224
|
"const": "email"
|
|
270
225
|
},
|
|
271
|
-
"meta": {
|
|
272
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
273
|
-
},
|
|
274
226
|
"attributes": {
|
|
275
227
|
"type": "object",
|
|
276
228
|
"properties": {
|
|
229
|
+
"label": {
|
|
230
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
231
|
+
},
|
|
232
|
+
"help": {
|
|
233
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
234
|
+
},
|
|
235
|
+
"labelTranslationKey": {
|
|
236
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
237
|
+
},
|
|
277
238
|
"maxLength": {
|
|
278
239
|
"type": "number"
|
|
279
240
|
},
|
|
280
241
|
"minLength": {
|
|
281
242
|
"type": "number"
|
|
282
243
|
},
|
|
283
|
-
"multiple": {
|
|
284
|
-
"type": "boolean"
|
|
285
|
-
},
|
|
286
244
|
"pattern": {
|
|
287
245
|
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"multiple": {
|
|
248
|
+
"type": "boolean"
|
|
288
249
|
}
|
|
289
250
|
},
|
|
290
251
|
"additionalProperties": false
|
|
252
|
+
},
|
|
253
|
+
"meta": {
|
|
254
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
291
255
|
}
|
|
292
256
|
},
|
|
293
257
|
"required": [
|
|
294
|
-
"type"
|
|
295
|
-
"meta"
|
|
258
|
+
"type"
|
|
296
259
|
],
|
|
297
260
|
"additionalProperties": false
|
|
298
261
|
},
|
|
@@ -303,6 +266,24 @@
|
|
|
303
266
|
"type": "string",
|
|
304
267
|
"const": "filteredSearch"
|
|
305
268
|
},
|
|
269
|
+
"attributes": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"properties": {
|
|
272
|
+
"label": {
|
|
273
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
274
|
+
},
|
|
275
|
+
"help": {
|
|
276
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
277
|
+
},
|
|
278
|
+
"labelTranslationKey": {
|
|
279
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
280
|
+
},
|
|
281
|
+
"multiple": {
|
|
282
|
+
"type": "boolean"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"additionalProperties": false
|
|
286
|
+
},
|
|
306
287
|
"meta": {
|
|
307
288
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
308
289
|
},
|
|
@@ -377,20 +358,10 @@
|
|
|
377
358
|
"responseField"
|
|
378
359
|
],
|
|
379
360
|
"additionalProperties": false
|
|
380
|
-
},
|
|
381
|
-
"attributes": {
|
|
382
|
-
"type": "object",
|
|
383
|
-
"properties": {
|
|
384
|
-
"multiple": {
|
|
385
|
-
"type": "boolean"
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
"additionalProperties": false
|
|
389
361
|
}
|
|
390
362
|
},
|
|
391
363
|
"required": [
|
|
392
364
|
"type",
|
|
393
|
-
"meta",
|
|
394
365
|
"graphQL"
|
|
395
366
|
],
|
|
396
367
|
"additionalProperties": false
|
|
@@ -402,16 +373,36 @@
|
|
|
402
373
|
"type": "string",
|
|
403
374
|
"const": "number"
|
|
404
375
|
},
|
|
376
|
+
"attributes": {
|
|
377
|
+
"type": "object",
|
|
378
|
+
"properties": {
|
|
379
|
+
"label": {
|
|
380
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
381
|
+
},
|
|
382
|
+
"help": {
|
|
383
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
384
|
+
},
|
|
385
|
+
"labelTranslationKey": {
|
|
386
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
387
|
+
},
|
|
388
|
+
"max": {
|
|
389
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes/properties/max"
|
|
390
|
+
},
|
|
391
|
+
"min": {
|
|
392
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes/properties/min"
|
|
393
|
+
},
|
|
394
|
+
"step": {
|
|
395
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes/properties/step"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"additionalProperties": false
|
|
399
|
+
},
|
|
405
400
|
"meta": {
|
|
406
401
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
407
|
-
},
|
|
408
|
-
"attributes": {
|
|
409
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes"
|
|
410
402
|
}
|
|
411
403
|
},
|
|
412
404
|
"required": [
|
|
413
|
-
"type"
|
|
414
|
-
"meta"
|
|
405
|
+
"type"
|
|
415
406
|
],
|
|
416
407
|
"additionalProperties": false
|
|
417
408
|
},
|
|
@@ -422,6 +413,9 @@
|
|
|
422
413
|
"type": "string",
|
|
423
414
|
"const": "radioButtons"
|
|
424
415
|
},
|
|
416
|
+
"attributes": {
|
|
417
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/1/properties/attributes"
|
|
418
|
+
},
|
|
425
419
|
"meta": {
|
|
426
420
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
427
421
|
},
|
|
@@ -430,33 +424,19 @@
|
|
|
430
424
|
"items": {
|
|
431
425
|
"type": "object",
|
|
432
426
|
"properties": {
|
|
433
|
-
"
|
|
434
|
-
"
|
|
435
|
-
"const": "option"
|
|
427
|
+
"label": {
|
|
428
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/1/properties/options/items/properties/label"
|
|
436
429
|
},
|
|
437
|
-
"
|
|
438
|
-
"
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
},
|
|
443
|
-
"value": {
|
|
444
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/1/properties/options/items/properties/attributes/properties/value"
|
|
445
|
-
},
|
|
446
|
-
"selected": {
|
|
447
|
-
"type": "boolean"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"required": [
|
|
451
|
-
"label",
|
|
452
|
-
"value"
|
|
453
|
-
],
|
|
454
|
-
"additionalProperties": false
|
|
430
|
+
"value": {
|
|
431
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/1/properties/options/items/properties/value"
|
|
432
|
+
},
|
|
433
|
+
"selected": {
|
|
434
|
+
"type": "boolean"
|
|
455
435
|
}
|
|
456
436
|
},
|
|
457
437
|
"required": [
|
|
458
|
-
"
|
|
459
|
-
"
|
|
438
|
+
"label",
|
|
439
|
+
"value"
|
|
460
440
|
],
|
|
461
441
|
"additionalProperties": false
|
|
462
442
|
}
|
|
@@ -464,7 +444,6 @@
|
|
|
464
444
|
},
|
|
465
445
|
"required": [
|
|
466
446
|
"type",
|
|
467
|
-
"meta",
|
|
468
447
|
"options"
|
|
469
448
|
],
|
|
470
449
|
"additionalProperties": false
|
|
@@ -476,28 +455,36 @@
|
|
|
476
455
|
"type": "string",
|
|
477
456
|
"const": "selectBox"
|
|
478
457
|
},
|
|
479
|
-
"meta": {
|
|
480
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
481
|
-
},
|
|
482
|
-
"options": {
|
|
483
|
-
"type": "array",
|
|
484
|
-
"items": {
|
|
485
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/8/properties/options/items"
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
458
|
"attributes": {
|
|
489
459
|
"type": "object",
|
|
490
460
|
"properties": {
|
|
461
|
+
"label": {
|
|
462
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
463
|
+
},
|
|
464
|
+
"help": {
|
|
465
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
466
|
+
},
|
|
467
|
+
"labelTranslationKey": {
|
|
468
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
469
|
+
},
|
|
491
470
|
"multiple": {
|
|
492
471
|
"type": "boolean"
|
|
493
472
|
}
|
|
494
473
|
},
|
|
495
474
|
"additionalProperties": false
|
|
475
|
+
},
|
|
476
|
+
"meta": {
|
|
477
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
478
|
+
},
|
|
479
|
+
"options": {
|
|
480
|
+
"type": "array",
|
|
481
|
+
"items": {
|
|
482
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/8/properties/options/items"
|
|
483
|
+
}
|
|
496
484
|
}
|
|
497
485
|
},
|
|
498
486
|
"required": [
|
|
499
487
|
"type",
|
|
500
|
-
"meta",
|
|
501
488
|
"options"
|
|
502
489
|
],
|
|
503
490
|
"additionalProperties": false
|
|
@@ -509,6 +496,36 @@
|
|
|
509
496
|
"type": "string",
|
|
510
497
|
"const": "table"
|
|
511
498
|
},
|
|
499
|
+
"attributes": {
|
|
500
|
+
"type": "object",
|
|
501
|
+
"properties": {
|
|
502
|
+
"label": {
|
|
503
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
504
|
+
},
|
|
505
|
+
"help": {
|
|
506
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
507
|
+
},
|
|
508
|
+
"labelTranslationKey": {
|
|
509
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
510
|
+
},
|
|
511
|
+
"canAddRows": {
|
|
512
|
+
"type": "boolean"
|
|
513
|
+
},
|
|
514
|
+
"canRemoveRows": {
|
|
515
|
+
"type": "boolean"
|
|
516
|
+
},
|
|
517
|
+
"initialRows": {
|
|
518
|
+
"type": "number"
|
|
519
|
+
},
|
|
520
|
+
"maxRows": {
|
|
521
|
+
"type": "number"
|
|
522
|
+
},
|
|
523
|
+
"minRows": {
|
|
524
|
+
"type": "number"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"additionalProperties": false
|
|
528
|
+
},
|
|
512
529
|
"meta": {
|
|
513
530
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
514
531
|
},
|
|
@@ -559,27 +576,18 @@
|
|
|
559
576
|
"type": "string",
|
|
560
577
|
"const": "textArea"
|
|
561
578
|
},
|
|
562
|
-
"
|
|
579
|
+
"attributes": {
|
|
563
580
|
"type": "object",
|
|
564
581
|
"properties": {
|
|
565
|
-
"
|
|
566
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/
|
|
582
|
+
"label": {
|
|
583
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
584
|
+
},
|
|
585
|
+
"help": {
|
|
586
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
567
587
|
},
|
|
568
588
|
"labelTranslationKey": {
|
|
569
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/
|
|
589
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
570
590
|
},
|
|
571
|
-
"asRichText": {
|
|
572
|
-
"type": "boolean"
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
"required": [
|
|
576
|
-
"schemaVersion"
|
|
577
|
-
],
|
|
578
|
-
"additionalProperties": false
|
|
579
|
-
},
|
|
580
|
-
"attributes": {
|
|
581
|
-
"type": "object",
|
|
582
|
-
"properties": {
|
|
583
591
|
"cols": {
|
|
584
592
|
"type": "number"
|
|
585
593
|
},
|
|
@@ -594,6 +602,21 @@
|
|
|
594
602
|
}
|
|
595
603
|
},
|
|
596
604
|
"additionalProperties": false
|
|
605
|
+
},
|
|
606
|
+
"meta": {
|
|
607
|
+
"type": "object",
|
|
608
|
+
"properties": {
|
|
609
|
+
"schemaVersion": {
|
|
610
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
611
|
+
},
|
|
612
|
+
"asRichText": {
|
|
613
|
+
"type": "boolean"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"required": [
|
|
617
|
+
"schemaVersion"
|
|
618
|
+
],
|
|
619
|
+
"additionalProperties": false
|
|
597
620
|
}
|
|
598
621
|
},
|
|
599
622
|
"required": [
|
|
@@ -609,28 +632,36 @@
|
|
|
609
632
|
"type": "string",
|
|
610
633
|
"const": "text"
|
|
611
634
|
},
|
|
612
|
-
"meta": {
|
|
613
|
-
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
614
|
-
},
|
|
615
635
|
"attributes": {
|
|
616
636
|
"type": "object",
|
|
617
637
|
"properties": {
|
|
638
|
+
"label": {
|
|
639
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
|
|
640
|
+
},
|
|
641
|
+
"help": {
|
|
642
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
|
|
643
|
+
},
|
|
644
|
+
"labelTranslationKey": {
|
|
645
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
|
|
646
|
+
},
|
|
618
647
|
"maxLength": {
|
|
619
|
-
"
|
|
648
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/5/properties/attributes/properties/maxLength"
|
|
620
649
|
},
|
|
621
650
|
"minLength": {
|
|
622
|
-
"
|
|
651
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/5/properties/attributes/properties/minLength"
|
|
623
652
|
},
|
|
624
653
|
"pattern": {
|
|
625
|
-
"
|
|
654
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/5/properties/attributes/properties/pattern"
|
|
626
655
|
}
|
|
627
656
|
},
|
|
628
657
|
"additionalProperties": false
|
|
658
|
+
},
|
|
659
|
+
"meta": {
|
|
660
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
629
661
|
}
|
|
630
662
|
},
|
|
631
663
|
"required": [
|
|
632
|
-
"type"
|
|
633
|
-
"meta"
|
|
664
|
+
"type"
|
|
634
665
|
],
|
|
635
666
|
"additionalProperties": false
|
|
636
667
|
},
|
|
@@ -641,6 +672,9 @@
|
|
|
641
672
|
"type": "string",
|
|
642
673
|
"const": "typeaheadSearch"
|
|
643
674
|
},
|
|
675
|
+
"attributes": {
|
|
676
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/1/properties/attributes"
|
|
677
|
+
},
|
|
644
678
|
"meta": {
|
|
645
679
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
646
680
|
},
|
|
@@ -650,7 +684,6 @@
|
|
|
650
684
|
},
|
|
651
685
|
"required": [
|
|
652
686
|
"type",
|
|
653
|
-
"meta",
|
|
654
687
|
"graphQL"
|
|
655
688
|
],
|
|
656
689
|
"additionalProperties": false
|
|
@@ -662,28 +695,15 @@
|
|
|
662
695
|
"type": "string",
|
|
663
696
|
"const": "url"
|
|
664
697
|
},
|
|
698
|
+
"attributes": {
|
|
699
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/11/properties/attributes"
|
|
700
|
+
},
|
|
665
701
|
"meta": {
|
|
666
702
|
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
|
|
667
|
-
},
|
|
668
|
-
"attributes": {
|
|
669
|
-
"type": "object",
|
|
670
|
-
"properties": {
|
|
671
|
-
"maxLength": {
|
|
672
|
-
"type": "number"
|
|
673
|
-
},
|
|
674
|
-
"minLength": {
|
|
675
|
-
"type": "number"
|
|
676
|
-
},
|
|
677
|
-
"pattern": {
|
|
678
|
-
"type": "string"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
"additionalProperties": false
|
|
682
703
|
}
|
|
683
704
|
},
|
|
684
705
|
"required": [
|
|
685
|
-
"type"
|
|
686
|
-
"meta"
|
|
706
|
+
"type"
|
|
687
707
|
],
|
|
688
708
|
"additionalProperties": false
|
|
689
709
|
}
|
|
@@ -695,32 +715,10 @@
|
|
|
695
715
|
],
|
|
696
716
|
"additionalProperties": false
|
|
697
717
|
}
|
|
698
|
-
},
|
|
699
|
-
"attributes": {
|
|
700
|
-
"type": "object",
|
|
701
|
-
"properties": {
|
|
702
|
-
"canAddRows": {
|
|
703
|
-
"type": "boolean"
|
|
704
|
-
},
|
|
705
|
-
"canRemoveRows": {
|
|
706
|
-
"type": "boolean"
|
|
707
|
-
},
|
|
708
|
-
"initialRows": {
|
|
709
|
-
"type": "number"
|
|
710
|
-
},
|
|
711
|
-
"maxRows": {
|
|
712
|
-
"type": "number"
|
|
713
|
-
},
|
|
714
|
-
"minRows": {
|
|
715
|
-
"type": "number"
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
"additionalProperties": false
|
|
719
718
|
}
|
|
720
719
|
},
|
|
721
720
|
"required": [
|
|
722
721
|
"type",
|
|
723
|
-
"meta",
|
|
724
722
|
"columns"
|
|
725
723
|
],
|
|
726
724
|
"additionalProperties": false
|