@dmptool/types 1.0.5 → 1.0.7

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