@dmptool/types 1.0.6 → 1.0.8

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.
Files changed (43) hide show
  1. package/README.md +5 -4
  2. package/dist/answers/__tests__/answers.spec.js +59 -7
  3. package/dist/answers/answer.d.ts +3 -3
  4. package/dist/answers/dateAnswers.d.ts +5 -5
  5. package/dist/answers/dateAnswers.js +3 -3
  6. package/dist/answers/index.d.ts +892 -513
  7. package/dist/answers/index.js +3 -2
  8. package/dist/answers/primitiveAnswers.d.ts +40 -0
  9. package/dist/answers/primitiveAnswers.js +8 -1
  10. package/dist/answers/tableAnswers.d.ts +1639 -32
  11. package/dist/answers/tableAnswers.js +10 -3
  12. package/dist/questions/__tests__/dateQuestions.spec.js +20 -20
  13. package/dist/questions/__tests__/primitiveQuestions.spec.js +92 -0
  14. package/dist/questions/__tests__/tableQuestion.spec.d.ts +1 -0
  15. package/dist/questions/__tests__/tableQuestion.spec.js +73 -0
  16. package/dist/questions/dateQuestions.d.ts +19 -19
  17. package/dist/questions/dateQuestions.js +8 -8
  18. package/dist/questions/graphQLQuestions.d.ts +20 -20
  19. package/dist/questions/graphQLQuestions.js +1 -1
  20. package/dist/questions/index.d.ts +1856 -1413
  21. package/dist/questions/index.js +3 -2
  22. package/dist/questions/optionBasedQuestions.js +1 -1
  23. package/dist/questions/primitiveQuestions.d.ts +193 -0
  24. package/dist/questions/primitiveQuestions.js +17 -1
  25. package/dist/questions/question.d.ts +4 -4
  26. package/dist/questions/question.js +2 -1
  27. package/dist/questions/tableQuestions.d.ts +2124 -145
  28. package/dist/questions/tableQuestions.js +7 -3
  29. package/dist/schemas/anyAnswer.schema.json +144 -119
  30. package/dist/schemas/anyQuestion.schema.json +148 -137
  31. package/dist/schemas/anyTableColumnAnswer.schema.json +1 -1
  32. package/dist/schemas/anyTableColumnQuestion.schema.json +2 -3
  33. package/dist/schemas/dateAnswer.schema.json +37 -0
  34. package/dist/schemas/datePickerAnswer.schema.json +4 -4
  35. package/dist/schemas/datePickerQuestion.schema.json +6 -5
  36. package/dist/schemas/dateQuestion.schema.json +51 -0
  37. package/dist/schemas/dateRangeQuestion.schema.json +1 -1
  38. package/dist/schemas/filteredSearchQuestion.schema.json +1 -2
  39. package/dist/schemas/numberRangeAnswer.schema.json +50 -0
  40. package/dist/schemas/numberRangeQuestion.schema.json +106 -0
  41. package/dist/schemas/tableAnswer.schema.json +349 -324
  42. package/dist/schemas/tableQuestion.schema.json +491 -480
  43. package/package.json +1 -1
@@ -27,630 +27,641 @@
27
27
  "columns": {
28
28
  "type": "array",
29
29
  "items": {
30
- "anyOf": [
31
- {
32
- "type": "object",
33
- "properties": {
34
- "type": {
35
- "type": "string",
36
- "const": "boolean"
37
- },
38
- "meta": {
39
- "$ref": "#/definitions/TableQuestion/properties/meta"
40
- },
41
- "attributes": {
30
+ "type": "object",
31
+ "properties": {
32
+ "heading": {
33
+ "type": "string"
34
+ },
35
+ "content": {
36
+ "anyOf": [
37
+ {
42
38
  "type": "object",
43
39
  "properties": {
44
- "checked": {
45
- "type": "boolean"
40
+ "type": {
41
+ "type": "string",
42
+ "const": "boolean"
43
+ },
44
+ "meta": {
45
+ "$ref": "#/definitions/TableQuestion/properties/meta"
46
+ },
47
+ "attributes": {
48
+ "type": "object",
49
+ "properties": {
50
+ "checked": {
51
+ "type": "boolean"
52
+ }
53
+ },
54
+ "additionalProperties": false
46
55
  }
47
56
  },
57
+ "required": [
58
+ "type",
59
+ "meta"
60
+ ],
48
61
  "additionalProperties": false
49
- }
50
- },
51
- "required": [
52
- "type",
53
- "meta"
54
- ],
55
- "additionalProperties": false
56
- },
57
- {
58
- "type": "object",
59
- "properties": {
60
- "type": {
61
- "type": "string",
62
- "const": "checkBoxes"
63
- },
64
- "meta": {
65
- "$ref": "#/definitions/TableQuestion/properties/meta"
66
62
  },
67
- "options": {
68
- "type": "array",
69
- "items": {
70
- "type": "object",
71
- "properties": {
72
- "type": {
73
- "type": "string",
74
- "const": "option"
75
- },
76
- "attributes": {
63
+ {
64
+ "type": "object",
65
+ "properties": {
66
+ "type": {
67
+ "type": "string",
68
+ "const": "checkBoxes"
69
+ },
70
+ "meta": {
71
+ "$ref": "#/definitions/TableQuestion/properties/meta"
72
+ },
73
+ "options": {
74
+ "type": "array",
75
+ "items": {
77
76
  "type": "object",
78
77
  "properties": {
79
- "label": {
80
- "type": "string"
81
- },
82
- "value": {
83
- "type": "string"
78
+ "type": {
79
+ "type": "string",
80
+ "const": "option"
84
81
  },
85
- "checked": {
86
- "type": "boolean"
82
+ "attributes": {
83
+ "type": "object",
84
+ "properties": {
85
+ "label": {
86
+ "type": "string"
87
+ },
88
+ "value": {
89
+ "type": "string"
90
+ },
91
+ "checked": {
92
+ "type": "boolean"
93
+ }
94
+ },
95
+ "required": [
96
+ "label",
97
+ "value"
98
+ ],
99
+ "additionalProperties": false
87
100
  }
88
101
  },
89
102
  "required": [
90
- "label",
91
- "value"
103
+ "type",
104
+ "attributes"
92
105
  ],
93
106
  "additionalProperties": false
94
107
  }
95
- },
96
- "required": [
97
- "type",
98
- "attributes"
99
- ],
100
- "additionalProperties": false
101
- }
102
- }
103
- },
104
- "required": [
105
- "type",
106
- "meta",
107
- "options"
108
- ],
109
- "additionalProperties": false
110
- },
111
- {
112
- "type": "object",
113
- "properties": {
114
- "type": {
115
- "type": "string",
116
- "const": "currency"
117
- },
118
- "meta": {
119
- "type": "object",
120
- "properties": {
121
- "schemaVersion": {
122
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
123
- },
124
- "labelTranslationKey": {
125
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
126
- },
127
- "denomination": {
128
- "type": "string"
129
108
  }
130
109
  },
131
110
  "required": [
132
- "schemaVersion"
111
+ "type",
112
+ "meta",
113
+ "options"
133
114
  ],
134
115
  "additionalProperties": false
135
116
  },
136
- "attributes": {
117
+ {
137
118
  "type": "object",
138
119
  "properties": {
139
- "max": {
140
- "type": "number"
120
+ "type": {
121
+ "type": "string",
122
+ "const": "currency"
141
123
  },
142
- "min": {
143
- "type": "number"
124
+ "meta": {
125
+ "type": "object",
126
+ "properties": {
127
+ "schemaVersion": {
128
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
129
+ },
130
+ "labelTranslationKey": {
131
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
132
+ },
133
+ "denomination": {
134
+ "type": "string"
135
+ }
136
+ },
137
+ "required": [
138
+ "schemaVersion"
139
+ ],
140
+ "additionalProperties": false
144
141
  },
145
- "step": {
146
- "type": "number"
142
+ "attributes": {
143
+ "type": "object",
144
+ "properties": {
145
+ "max": {
146
+ "type": "number"
147
+ },
148
+ "min": {
149
+ "type": "number"
150
+ },
151
+ "step": {
152
+ "type": "number"
153
+ }
154
+ },
155
+ "additionalProperties": false
147
156
  }
148
157
  },
158
+ "required": [
159
+ "type",
160
+ "meta"
161
+ ],
149
162
  "additionalProperties": false
150
- }
151
- },
152
- "required": [
153
- "type",
154
- "meta"
155
- ],
156
- "additionalProperties": false
157
- },
158
- {
159
- "type": "object",
160
- "properties": {
161
- "type": {
162
- "type": "string",
163
- "const": "datePicker"
164
163
  },
165
- "meta": {
166
- "$ref": "#/definitions/TableQuestion/properties/meta"
167
- },
168
- "attributes": {
164
+ {
169
165
  "type": "object",
170
166
  "properties": {
171
- "max": {
172
- "type": "string"
167
+ "type": {
168
+ "type": "string",
169
+ "const": "date"
173
170
  },
174
- "min": {
175
- "type": "string"
171
+ "meta": {
172
+ "$ref": "#/definitions/TableQuestion/properties/meta"
176
173
  },
177
- "step": {
178
- "type": "number"
174
+ "attributes": {
175
+ "type": "object",
176
+ "properties": {
177
+ "max": {
178
+ "type": "string"
179
+ },
180
+ "min": {
181
+ "type": "string"
182
+ },
183
+ "step": {
184
+ "type": "number"
185
+ }
186
+ },
187
+ "additionalProperties": false
179
188
  }
180
189
  },
190
+ "required": [
191
+ "type",
192
+ "meta"
193
+ ],
181
194
  "additionalProperties": false
182
- }
183
- },
184
- "required": [
185
- "type",
186
- "meta"
187
- ],
188
- "additionalProperties": false
189
- },
190
- {
191
- "type": "object",
192
- "properties": {
193
- "type": {
194
- "type": "string",
195
- "const": "dateRange"
196
- },
197
- "meta": {
198
- "$ref": "#/definitions/TableQuestion/properties/meta"
199
195
  },
200
- "columns": {
196
+ {
201
197
  "type": "object",
202
198
  "properties": {
203
- "start": {
199
+ "type": {
200
+ "type": "string",
201
+ "const": "dateRange"
202
+ },
203
+ "meta": {
204
+ "$ref": "#/definitions/TableQuestion/properties/meta"
205
+ },
206
+ "columns": {
204
207
  "type": "object",
205
208
  "properties": {
206
- "type": {
207
- "$ref": "#/definitions/TableQuestion/properties/columns/items/anyOf/3/properties/type"
208
- },
209
- "meta": {
210
- "$ref": "#/definitions/TableQuestion/properties/meta"
211
- },
212
- "attributes": {
209
+ "start": {
213
210
  "type": "object",
214
211
  "properties": {
215
- "label": {
216
- "type": "string"
212
+ "type": {
213
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/type"
214
+ },
215
+ "meta": {
216
+ "$ref": "#/definitions/TableQuestion/properties/meta"
217
+ },
218
+ "attributes": {
219
+ "type": "object",
220
+ "properties": {
221
+ "label": {
222
+ "type": "string"
223
+ }
224
+ },
225
+ "required": [
226
+ "label"
227
+ ],
228
+ "additionalProperties": false
217
229
  }
218
230
  },
219
231
  "required": [
220
- "label"
232
+ "type",
233
+ "meta",
234
+ "attributes"
221
235
  ],
222
236
  "additionalProperties": false
223
- }
224
- },
225
- "required": [
226
- "type",
227
- "meta",
228
- "attributes"
229
- ],
230
- "additionalProperties": false
231
- },
232
- "end": {
233
- "type": "object",
234
- "properties": {
235
- "type": {
236
- "$ref": "#/definitions/TableQuestion/properties/columns/items/anyOf/3/properties/type"
237
- },
238
- "meta": {
239
- "$ref": "#/definitions/TableQuestion/properties/meta"
240
237
  },
241
- "attributes": {
238
+ "end": {
242
239
  "type": "object",
243
240
  "properties": {
244
- "label": {
245
- "type": "string"
241
+ "type": {
242
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/type"
243
+ },
244
+ "meta": {
245
+ "$ref": "#/definitions/TableQuestion/properties/meta"
246
+ },
247
+ "attributes": {
248
+ "type": "object",
249
+ "properties": {
250
+ "label": {
251
+ "type": "string"
252
+ }
253
+ },
254
+ "required": [
255
+ "label"
256
+ ],
257
+ "additionalProperties": false
246
258
  }
247
259
  },
248
260
  "required": [
249
- "label"
261
+ "type",
262
+ "meta",
263
+ "attributes"
250
264
  ],
251
265
  "additionalProperties": false
252
266
  }
253
267
  },
254
268
  "required": [
255
- "type",
256
- "meta",
257
- "attributes"
269
+ "start",
270
+ "end"
258
271
  ],
259
272
  "additionalProperties": false
260
273
  }
261
274
  },
262
275
  "required": [
263
- "start",
264
- "end"
276
+ "type",
277
+ "meta",
278
+ "columns"
265
279
  ],
266
280
  "additionalProperties": false
267
- }
268
- },
269
- "required": [
270
- "type",
271
- "meta",
272
- "columns"
273
- ],
274
- "additionalProperties": false
275
- },
276
- {
277
- "type": "object",
278
- "properties": {
279
- "type": {
280
- "type": "string",
281
- "const": "email"
282
- },
283
- "meta": {
284
- "$ref": "#/definitions/TableQuestion/properties/meta"
285
281
  },
286
- "attributes": {
282
+ {
287
283
  "type": "object",
288
284
  "properties": {
289
- "maxLength": {
290
- "type": "number"
285
+ "type": {
286
+ "type": "string",
287
+ "const": "email"
291
288
  },
292
- "minLength": {
293
- "type": "number"
289
+ "meta": {
290
+ "$ref": "#/definitions/TableQuestion/properties/meta"
294
291
  },
295
- "multiple": {
296
- "type": "boolean"
297
- },
298
- "pattern": {
299
- "type": "string"
292
+ "attributes": {
293
+ "type": "object",
294
+ "properties": {
295
+ "maxLength": {
296
+ "type": "number"
297
+ },
298
+ "minLength": {
299
+ "type": "number"
300
+ },
301
+ "multiple": {
302
+ "type": "boolean"
303
+ },
304
+ "pattern": {
305
+ "type": "string"
306
+ }
307
+ },
308
+ "additionalProperties": false
300
309
  }
301
310
  },
311
+ "required": [
312
+ "type",
313
+ "meta"
314
+ ],
302
315
  "additionalProperties": false
303
- }
304
- },
305
- "required": [
306
- "type",
307
- "meta"
308
- ],
309
- "additionalProperties": false
310
- },
311
- {
312
- "type": "object",
313
- "properties": {
314
- "type": {
315
- "type": "string",
316
- "const": "filteredSearch"
317
316
  },
318
- "meta": {
319
- "$ref": "#/definitions/TableQuestion/properties/meta"
320
- },
321
- "graphQL": {
317
+ {
322
318
  "type": "object",
323
319
  "properties": {
324
- "displayFields": {
325
- "type": "array",
326
- "items": {
327
- "type": "object",
328
- "properties": {
329
- "propertyName": {
330
- "type": "string"
331
- },
332
- "label": {
333
- "type": "string"
334
- },
335
- "labelTranslationKey": {
336
- "type": "string"
337
- }
338
- },
339
- "required": [
340
- "propertyName",
341
- "label"
342
- ],
343
- "additionalProperties": false
344
- }
320
+ "type": {
321
+ "type": "string",
322
+ "const": "filteredSearch"
345
323
  },
346
- "localQueryId": {
347
- "type": "string"
324
+ "meta": {
325
+ "$ref": "#/definitions/TableQuestion/properties/meta"
348
326
  },
349
- "query": {
350
- "type": "string"
351
- },
352
- "responseField": {
353
- "type": "string"
354
- },
355
- "variables": {
356
- "type": "array",
357
- "items": {
358
- "type": "object",
359
- "properties": {
360
- "minLength": {
361
- "type": "number"
362
- },
363
- "label": {
364
- "type": "string"
365
- },
366
- "labelTranslationKey": {
367
- "type": "string"
368
- },
369
- "name": {
370
- "type": "string"
371
- },
372
- "type": {
373
- "type": "string"
374
- },
375
- "defaultValue": {
376
- "type": "string"
327
+ "graphQL": {
328
+ "type": "object",
329
+ "properties": {
330
+ "displayFields": {
331
+ "type": "array",
332
+ "items": {
333
+ "type": "object",
334
+ "properties": {
335
+ "propertyName": {
336
+ "type": "string"
337
+ },
338
+ "label": {
339
+ "type": "string"
340
+ },
341
+ "labelTranslationKey": {
342
+ "type": "string"
343
+ }
344
+ },
345
+ "required": [
346
+ "propertyName",
347
+ "label"
348
+ ],
349
+ "additionalProperties": false
377
350
  }
378
351
  },
379
- "required": [
380
- "name",
381
- "type"
382
- ],
383
- "additionalProperties": false
384
- }
352
+ "localQueryId": {
353
+ "type": "string"
354
+ },
355
+ "query": {
356
+ "type": "string"
357
+ },
358
+ "responseField": {
359
+ "type": "string"
360
+ },
361
+ "variables": {
362
+ "type": "array",
363
+ "items": {
364
+ "type": "object",
365
+ "properties": {
366
+ "minLength": {
367
+ "type": "number"
368
+ },
369
+ "label": {
370
+ "type": "string"
371
+ },
372
+ "labelTranslationKey": {
373
+ "type": "string"
374
+ },
375
+ "name": {
376
+ "type": "string"
377
+ },
378
+ "type": {
379
+ "type": "string"
380
+ },
381
+ "defaultValue": {
382
+ "type": "string"
383
+ }
384
+ },
385
+ "required": [
386
+ "name",
387
+ "type"
388
+ ],
389
+ "additionalProperties": false
390
+ }
391
+ }
392
+ },
393
+ "required": [
394
+ "displayFields",
395
+ "responseField"
396
+ ],
397
+ "additionalProperties": false
398
+ },
399
+ "attributes": {
400
+ "type": "object",
401
+ "properties": {
402
+ "multiple": {
403
+ "type": "boolean"
404
+ }
405
+ },
406
+ "additionalProperties": false
385
407
  }
386
408
  },
387
409
  "required": [
388
- "displayFields",
389
- "responseField"
410
+ "type",
411
+ "meta",
412
+ "graphQL"
390
413
  ],
391
414
  "additionalProperties": false
392
415
  },
393
- "attributes": {
416
+ {
394
417
  "type": "object",
395
418
  "properties": {
396
- "multiple": {
397
- "type": "boolean"
419
+ "type": {
420
+ "type": "string",
421
+ "const": "number"
422
+ },
423
+ "meta": {
424
+ "$ref": "#/definitions/TableQuestion/properties/meta"
425
+ },
426
+ "attributes": {
427
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes"
398
428
  }
399
429
  },
430
+ "required": [
431
+ "type",
432
+ "meta"
433
+ ],
400
434
  "additionalProperties": false
401
- }
402
- },
403
- "required": [
404
- "type",
405
- "meta",
406
- "graphQL",
407
- "attributes"
408
- ],
409
- "additionalProperties": false
410
- },
411
- {
412
- "type": "object",
413
- "properties": {
414
- "type": {
415
- "type": "string",
416
- "const": "number"
417
- },
418
- "meta": {
419
- "$ref": "#/definitions/TableQuestion/properties/meta"
420
435
  },
421
- "attributes": {
422
- "$ref": "#/definitions/TableQuestion/properties/columns/items/anyOf/2/properties/attributes"
423
- }
424
- },
425
- "required": [
426
- "type",
427
- "meta"
428
- ],
429
- "additionalProperties": false
430
- },
431
- {
432
- "type": "object",
433
- "properties": {
434
- "type": {
435
- "type": "string",
436
- "const": "radioButtons"
437
- },
438
- "meta": {
439
- "$ref": "#/definitions/TableQuestion/properties/meta"
440
- },
441
- "options": {
442
- "type": "array",
443
- "items": {
444
- "type": "object",
445
- "properties": {
446
- "type": {
447
- "type": "string",
448
- "const": "option"
449
- },
450
- "attributes": {
436
+ {
437
+ "type": "object",
438
+ "properties": {
439
+ "type": {
440
+ "type": "string",
441
+ "const": "radioButtons"
442
+ },
443
+ "meta": {
444
+ "$ref": "#/definitions/TableQuestion/properties/meta"
445
+ },
446
+ "options": {
447
+ "type": "array",
448
+ "items": {
451
449
  "type": "object",
452
450
  "properties": {
453
- "label": {
454
- "$ref": "#/definitions/TableQuestion/properties/columns/items/anyOf/1/properties/options/items/properties/attributes/properties/label"
455
- },
456
- "value": {
457
- "$ref": "#/definitions/TableQuestion/properties/columns/items/anyOf/1/properties/options/items/properties/attributes/properties/value"
451
+ "type": {
452
+ "type": "string",
453
+ "const": "option"
458
454
  },
459
- "selected": {
460
- "type": "boolean"
455
+ "attributes": {
456
+ "type": "object",
457
+ "properties": {
458
+ "label": {
459
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/options/items/properties/attributes/properties/label"
460
+ },
461
+ "value": {
462
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/options/items/properties/attributes/properties/value"
463
+ },
464
+ "selected": {
465
+ "type": "boolean"
466
+ }
467
+ },
468
+ "required": [
469
+ "label",
470
+ "value"
471
+ ],
472
+ "additionalProperties": false
461
473
  }
462
474
  },
463
475
  "required": [
464
- "label",
465
- "value"
476
+ "type",
477
+ "attributes"
466
478
  ],
467
479
  "additionalProperties": false
468
480
  }
469
- },
470
- "required": [
471
- "type",
472
- "attributes"
473
- ],
474
- "additionalProperties": false
475
- }
476
- }
477
- },
478
- "required": [
479
- "type",
480
- "meta",
481
- "options"
482
- ],
483
- "additionalProperties": false
484
- },
485
- {
486
- "type": "object",
487
- "properties": {
488
- "type": {
489
- "type": "string",
490
- "const": "selectBox"
491
- },
492
- "meta": {
493
- "$ref": "#/definitions/TableQuestion/properties/meta"
494
- },
495
- "options": {
496
- "type": "array",
497
- "items": {
498
- "$ref": "#/definitions/TableQuestion/properties/columns/items/anyOf/8/properties/options/items"
499
- }
481
+ }
482
+ },
483
+ "required": [
484
+ "type",
485
+ "meta",
486
+ "options"
487
+ ],
488
+ "additionalProperties": false
500
489
  },
501
- "attributes": {
490
+ {
502
491
  "type": "object",
503
492
  "properties": {
504
- "multiple": {
505
- "type": "boolean"
493
+ "type": {
494
+ "type": "string",
495
+ "const": "selectBox"
496
+ },
497
+ "meta": {
498
+ "$ref": "#/definitions/TableQuestion/properties/meta"
499
+ },
500
+ "options": {
501
+ "type": "array",
502
+ "items": {
503
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/8/properties/options/items"
504
+ }
505
+ },
506
+ "attributes": {
507
+ "type": "object",
508
+ "properties": {
509
+ "multiple": {
510
+ "type": "boolean"
511
+ }
512
+ },
513
+ "additionalProperties": false
506
514
  }
507
515
  },
516
+ "required": [
517
+ "type",
518
+ "meta",
519
+ "options"
520
+ ],
508
521
  "additionalProperties": false
509
- }
510
- },
511
- "required": [
512
- "type",
513
- "meta",
514
- "options"
515
- ],
516
- "additionalProperties": false
517
- },
518
- {
519
- "type": "object",
520
- "properties": {
521
- "type": {
522
- "type": "string",
523
- "const": "textArea"
524
522
  },
525
- "meta": {
523
+ {
526
524
  "type": "object",
527
525
  "properties": {
528
- "schemaVersion": {
529
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
526
+ "type": {
527
+ "type": "string",
528
+ "const": "textArea"
530
529
  },
531
- "labelTranslationKey": {
532
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
530
+ "meta": {
531
+ "type": "object",
532
+ "properties": {
533
+ "schemaVersion": {
534
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
535
+ },
536
+ "labelTranslationKey": {
537
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
538
+ },
539
+ "asRichText": {
540
+ "type": "boolean"
541
+ }
542
+ },
543
+ "required": [
544
+ "schemaVersion"
545
+ ],
546
+ "additionalProperties": false
533
547
  },
534
- "asRichText": {
535
- "type": "boolean"
548
+ "attributes": {
549
+ "type": "object",
550
+ "properties": {
551
+ "cols": {
552
+ "type": "number"
553
+ },
554
+ "maxLength": {
555
+ "type": "number"
556
+ },
557
+ "minLength": {
558
+ "type": "number"
559
+ },
560
+ "rows": {
561
+ "type": "number"
562
+ }
563
+ },
564
+ "additionalProperties": false
536
565
  }
537
566
  },
538
567
  "required": [
539
- "schemaVersion"
568
+ "type",
569
+ "meta"
540
570
  ],
541
571
  "additionalProperties": false
542
572
  },
543
- "attributes": {
573
+ {
544
574
  "type": "object",
545
575
  "properties": {
546
- "cols": {
547
- "type": "number"
576
+ "type": {
577
+ "type": "string",
578
+ "const": "text"
548
579
  },
549
- "maxLength": {
550
- "type": "number"
580
+ "meta": {
581
+ "$ref": "#/definitions/TableQuestion/properties/meta"
551
582
  },
552
- "minLength": {
553
- "type": "number"
554
- },
555
- "rows": {
556
- "type": "number"
583
+ "attributes": {
584
+ "type": "object",
585
+ "properties": {
586
+ "maxLength": {
587
+ "type": "number"
588
+ },
589
+ "minLength": {
590
+ "type": "number"
591
+ },
592
+ "pattern": {
593
+ "type": "string"
594
+ }
595
+ },
596
+ "additionalProperties": false
557
597
  }
558
598
  },
599
+ "required": [
600
+ "type",
601
+ "meta"
602
+ ],
559
603
  "additionalProperties": false
560
- }
561
- },
562
- "required": [
563
- "type",
564
- "meta"
565
- ],
566
- "additionalProperties": false
567
- },
568
- {
569
- "type": "object",
570
- "properties": {
571
- "type": {
572
- "type": "string",
573
- "const": "text"
574
- },
575
- "meta": {
576
- "$ref": "#/definitions/TableQuestion/properties/meta"
577
604
  },
578
- "attributes": {
605
+ {
579
606
  "type": "object",
580
607
  "properties": {
581
- "maxLength": {
582
- "type": "number"
608
+ "type": {
609
+ "type": "string",
610
+ "const": "typeaheadSearch"
583
611
  },
584
- "minLength": {
585
- "type": "number"
612
+ "meta": {
613
+ "$ref": "#/definitions/TableQuestion/properties/meta"
586
614
  },
587
- "pattern": {
588
- "type": "string"
615
+ "graphQL": {
616
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/6/properties/graphQL"
589
617
  }
590
618
  },
619
+ "required": [
620
+ "type",
621
+ "meta",
622
+ "graphQL"
623
+ ],
591
624
  "additionalProperties": false
592
- }
593
- },
594
- "required": [
595
- "type",
596
- "meta"
597
- ],
598
- "additionalProperties": false
599
- },
600
- {
601
- "type": "object",
602
- "properties": {
603
- "type": {
604
- "type": "string",
605
- "const": "typeaheadSearch"
606
- },
607
- "meta": {
608
- "$ref": "#/definitions/TableQuestion/properties/meta"
609
625
  },
610
- "graphQL": {
611
- "$ref": "#/definitions/TableQuestion/properties/columns/items/anyOf/6/properties/graphQL"
612
- }
613
- },
614
- "required": [
615
- "type",
616
- "meta",
617
- "graphQL"
618
- ],
619
- "additionalProperties": false
620
- },
621
- {
622
- "type": "object",
623
- "properties": {
624
- "type": {
625
- "type": "string",
626
- "const": "url"
627
- },
628
- "meta": {
629
- "$ref": "#/definitions/TableQuestion/properties/meta"
630
- },
631
- "attributes": {
626
+ {
632
627
  "type": "object",
633
628
  "properties": {
634
- "maxLength": {
635
- "type": "number"
629
+ "type": {
630
+ "type": "string",
631
+ "const": "url"
636
632
  },
637
- "minLength": {
638
- "type": "number"
633
+ "meta": {
634
+ "$ref": "#/definitions/TableQuestion/properties/meta"
639
635
  },
640
- "pattern": {
641
- "type": "string"
636
+ "attributes": {
637
+ "type": "object",
638
+ "properties": {
639
+ "maxLength": {
640
+ "type": "number"
641
+ },
642
+ "minLength": {
643
+ "type": "number"
644
+ },
645
+ "pattern": {
646
+ "type": "string"
647
+ }
648
+ },
649
+ "additionalProperties": false
642
650
  }
643
651
  },
652
+ "required": [
653
+ "type",
654
+ "meta"
655
+ ],
644
656
  "additionalProperties": false
645
657
  }
646
- },
647
- "required": [
648
- "type",
649
- "meta"
650
- ],
651
- "additionalProperties": false
658
+ ]
652
659
  }
653
- ]
660
+ },
661
+ "required": [
662
+ "content"
663
+ ],
664
+ "additionalProperties": false
654
665
  }
655
666
  },
656
667
  "attributes": {