@dmptool/types 1.0.8 → 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.
Files changed (56) hide show
  1. package/dist/answers/__tests__/answers.spec.js +18 -17
  2. package/dist/answers/index.d.ts +50 -25
  3. package/dist/answers/index.js +19 -17
  4. package/dist/answers/{primitiveAnswers.d.ts → numberAnswers.d.ts} +0 -100
  5. package/dist/answers/numberAnswers.js +25 -0
  6. package/dist/answers/tableAnswers.d.ts +48 -48
  7. package/dist/answers/tableAnswers.js +9 -8
  8. package/dist/answers/textAnswers.d.ts +101 -0
  9. package/dist/answers/textAnswers.js +22 -0
  10. package/dist/questions/__tests__/dateQuestions.spec.js +20 -74
  11. package/dist/questions/__tests__/graphQLQuestions.spec.js +6 -0
  12. package/dist/questions/__tests__/numberQuestions.spec.js +156 -0
  13. package/dist/questions/__tests__/optionBasedQuestions.spec.js +41 -54
  14. package/dist/questions/__tests__/tableQuestion.spec.js +2 -0
  15. package/dist/questions/__tests__/textQuestions.spec.d.ts +1 -0
  16. package/dist/questions/__tests__/textQuestions.spec.js +120 -0
  17. package/dist/questions/dateQuestions.d.ts +159 -178
  18. package/dist/questions/dateQuestions.js +9 -15
  19. package/dist/questions/graphQLQuestions.d.ts +67 -38
  20. package/dist/questions/graphQLQuestions.js +3 -2
  21. package/dist/questions/index.d.ts +1616 -1356
  22. package/dist/questions/index.js +21 -19
  23. package/dist/questions/numberQuestions.d.ts +343 -0
  24. package/dist/questions/numberQuestions.js +34 -0
  25. package/dist/questions/optionBasedQuestions.d.ts +136 -158
  26. package/dist/questions/optionBasedQuestions.js +11 -20
  27. package/dist/questions/question.d.ts +29 -11
  28. package/dist/questions/question.js +10 -4
  29. package/dist/questions/tableQuestions.d.ts +2377 -2030
  30. package/dist/questions/tableQuestions.js +12 -10
  31. package/dist/questions/textQuestions.d.ts +261 -0
  32. package/dist/questions/textQuestions.js +42 -0
  33. package/dist/schemas/anyQuestion.schema.json +237 -239
  34. package/dist/schemas/anyTableColumnQuestion.schema.json +207 -217
  35. package/dist/schemas/booleanQuestion.schema.json +17 -12
  36. package/dist/schemas/checkboxesQuestion.schema.json +24 -27
  37. package/dist/schemas/currencyQuestion.schema.json +23 -18
  38. package/dist/schemas/dateQuestion.schema.json +21 -16
  39. package/dist/schemas/dateRangeQuestion.schema.json +31 -56
  40. package/dist/schemas/emailQuestion.schema.json +24 -19
  41. package/dist/schemas/filteredSearchQuestion.schema.json +18 -13
  42. package/dist/schemas/numberQuestion.schema.json +21 -16
  43. package/dist/schemas/numberRangeQuestion.schema.json +31 -56
  44. package/dist/schemas/radioButtonsQuestion.schema.json +24 -27
  45. package/dist/schemas/selectBoxQuestion.schema.json +27 -36
  46. package/dist/schemas/tableQuestion.schema.json +233 -235
  47. package/dist/schemas/textAreaQuestion.schema.json +22 -16
  48. package/dist/schemas/textQuestion.schema.json +21 -16
  49. package/dist/schemas/typeaheadSearchQuestion.schema.json +15 -4
  50. package/dist/schemas/urlQuestion.schema.json +21 -16
  51. package/package.json +1 -1
  52. package/dist/answers/primitiveAnswers.js +0 -41
  53. package/dist/questions/__tests__/primitiveQuestions.spec.js +0 -281
  54. package/dist/questions/primitiveQuestions.d.ts +0 -555
  55. package/dist/questions/primitiveQuestions.js +0 -86
  56. /package/dist/questions/__tests__/{primitiveQuestions.spec.d.ts → numberQuestions.spec.d.ts} +0 -0
@@ -8,15 +8,42 @@
8
8
  "type": "string",
9
9
  "const": "table"
10
10
  },
11
+ "attributes": {
12
+ "type": "object",
13
+ "properties": {
14
+ "label": {
15
+ "type": "string"
16
+ },
17
+ "help": {
18
+ "type": "string"
19
+ },
20
+ "labelTranslationKey": {
21
+ "type": "string"
22
+ },
23
+ "canAddRows": {
24
+ "type": "boolean"
25
+ },
26
+ "canRemoveRows": {
27
+ "type": "boolean"
28
+ },
29
+ "initialRows": {
30
+ "type": "number"
31
+ },
32
+ "maxRows": {
33
+ "type": "number"
34
+ },
35
+ "minRows": {
36
+ "type": "number"
37
+ }
38
+ },
39
+ "additionalProperties": false
40
+ },
11
41
  "meta": {
12
42
  "type": "object",
13
43
  "properties": {
14
44
  "schemaVersion": {
15
45
  "type": "string",
16
46
  "const": "1.0"
17
- },
18
- "labelTranslationKey": {
19
- "type": "string"
20
47
  }
21
48
  },
22
49
  "required": [
@@ -41,22 +68,30 @@
41
68
  "type": "string",
42
69
  "const": "boolean"
43
70
  },
44
- "meta": {
45
- "$ref": "#/definitions/TableQuestion/properties/meta"
46
- },
47
71
  "attributes": {
48
72
  "type": "object",
49
73
  "properties": {
74
+ "label": {
75
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
76
+ },
77
+ "help": {
78
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
79
+ },
80
+ "labelTranslationKey": {
81
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
82
+ },
50
83
  "checked": {
51
84
  "type": "boolean"
52
85
  }
53
86
  },
54
87
  "additionalProperties": false
88
+ },
89
+ "meta": {
90
+ "$ref": "#/definitions/TableQuestion/properties/meta"
55
91
  }
56
92
  },
57
93
  "required": [
58
- "type",
59
- "meta"
94
+ "type"
60
95
  ],
61
96
  "additionalProperties": false
62
97
  },
@@ -67,6 +102,21 @@
67
102
  "type": "string",
68
103
  "const": "checkBoxes"
69
104
  },
105
+ "attributes": {
106
+ "type": "object",
107
+ "properties": {
108
+ "label": {
109
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
110
+ },
111
+ "help": {
112
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
113
+ },
114
+ "labelTranslationKey": {
115
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
116
+ }
117
+ },
118
+ "additionalProperties": false
119
+ },
70
120
  "meta": {
71
121
  "$ref": "#/definitions/TableQuestion/properties/meta"
72
122
  },
@@ -75,33 +125,19 @@
75
125
  "items": {
76
126
  "type": "object",
77
127
  "properties": {
78
- "type": {
79
- "type": "string",
80
- "const": "option"
128
+ "label": {
129
+ "type": "string"
81
130
  },
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
131
+ "value": {
132
+ "type": "string"
133
+ },
134
+ "checked": {
135
+ "type": "boolean"
100
136
  }
101
137
  },
102
138
  "required": [
103
- "type",
104
- "attributes"
139
+ "label",
140
+ "value"
105
141
  ],
106
142
  "additionalProperties": false
107
143
  }
@@ -109,7 +145,6 @@
109
145
  },
110
146
  "required": [
111
147
  "type",
112
- "meta",
113
148
  "options"
114
149
  ],
115
150
  "additionalProperties": false
@@ -121,27 +156,18 @@
121
156
  "type": "string",
122
157
  "const": "currency"
123
158
  },
124
- "meta": {
159
+ "attributes": {
125
160
  "type": "object",
126
161
  "properties": {
127
- "schemaVersion": {
128
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
162
+ "label": {
163
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
164
+ },
165
+ "help": {
166
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
129
167
  },
130
168
  "labelTranslationKey": {
131
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
169
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
132
170
  },
133
- "denomination": {
134
- "type": "string"
135
- }
136
- },
137
- "required": [
138
- "schemaVersion"
139
- ],
140
- "additionalProperties": false
141
- },
142
- "attributes": {
143
- "type": "object",
144
- "properties": {
145
171
  "max": {
146
172
  "type": "number"
147
173
  },
@@ -150,14 +176,19 @@
150
176
  },
151
177
  "step": {
152
178
  "type": "number"
179
+ },
180
+ "denomination": {
181
+ "type": "string"
153
182
  }
154
183
  },
155
184
  "additionalProperties": false
185
+ },
186
+ "meta": {
187
+ "$ref": "#/definitions/TableQuestion/properties/meta"
156
188
  }
157
189
  },
158
190
  "required": [
159
- "type",
160
- "meta"
191
+ "type"
161
192
  ],
162
193
  "additionalProperties": false
163
194
  },
@@ -168,12 +199,18 @@
168
199
  "type": "string",
169
200
  "const": "date"
170
201
  },
171
- "meta": {
172
- "$ref": "#/definitions/TableQuestion/properties/meta"
173
- },
174
202
  "attributes": {
175
203
  "type": "object",
176
204
  "properties": {
205
+ "label": {
206
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
207
+ },
208
+ "help": {
209
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
210
+ },
211
+ "labelTranslationKey": {
212
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
213
+ },
177
214
  "max": {
178
215
  "type": "string"
179
216
  },
@@ -185,11 +222,13 @@
185
222
  }
186
223
  },
187
224
  "additionalProperties": false
225
+ },
226
+ "meta": {
227
+ "$ref": "#/definitions/TableQuestion/properties/meta"
188
228
  }
189
229
  },
190
230
  "required": [
191
- "type",
192
- "meta"
231
+ "type"
193
232
  ],
194
233
  "additionalProperties": false
195
234
  },
@@ -200,6 +239,9 @@
200
239
  "type": "string",
201
240
  "const": "dateRange"
202
241
  },
242
+ "attributes": {
243
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/attributes"
244
+ },
203
245
  "meta": {
204
246
  "$ref": "#/definitions/TableQuestion/properties/meta"
205
247
  },
@@ -207,74 +249,17 @@
207
249
  "type": "object",
208
250
  "properties": {
209
251
  "start": {
210
- "type": "object",
211
- "properties": {
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
229
- }
230
- },
231
- "required": [
232
- "type",
233
- "meta",
234
- "attributes"
235
- ],
236
- "additionalProperties": false
252
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes"
237
253
  },
238
254
  "end": {
239
- "type": "object",
240
- "properties": {
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
258
- }
259
- },
260
- "required": [
261
- "type",
262
- "meta",
263
- "attributes"
264
- ],
265
- "additionalProperties": false
255
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes"
266
256
  }
267
257
  },
268
- "required": [
269
- "start",
270
- "end"
271
- ],
272
258
  "additionalProperties": false
273
259
  }
274
260
  },
275
261
  "required": [
276
262
  "type",
277
- "meta",
278
263
  "columns"
279
264
  ],
280
265
  "additionalProperties": false
@@ -286,31 +271,39 @@
286
271
  "type": "string",
287
272
  "const": "email"
288
273
  },
289
- "meta": {
290
- "$ref": "#/definitions/TableQuestion/properties/meta"
291
- },
292
274
  "attributes": {
293
275
  "type": "object",
294
276
  "properties": {
277
+ "label": {
278
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
279
+ },
280
+ "help": {
281
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
282
+ },
283
+ "labelTranslationKey": {
284
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
285
+ },
295
286
  "maxLength": {
296
287
  "type": "number"
297
288
  },
298
289
  "minLength": {
299
290
  "type": "number"
300
291
  },
301
- "multiple": {
302
- "type": "boolean"
303
- },
304
292
  "pattern": {
305
293
  "type": "string"
294
+ },
295
+ "multiple": {
296
+ "type": "boolean"
306
297
  }
307
298
  },
308
299
  "additionalProperties": false
300
+ },
301
+ "meta": {
302
+ "$ref": "#/definitions/TableQuestion/properties/meta"
309
303
  }
310
304
  },
311
305
  "required": [
312
- "type",
313
- "meta"
306
+ "type"
314
307
  ],
315
308
  "additionalProperties": false
316
309
  },
@@ -321,6 +314,24 @@
321
314
  "type": "string",
322
315
  "const": "filteredSearch"
323
316
  },
317
+ "attributes": {
318
+ "type": "object",
319
+ "properties": {
320
+ "label": {
321
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
322
+ },
323
+ "help": {
324
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
325
+ },
326
+ "labelTranslationKey": {
327
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
328
+ },
329
+ "multiple": {
330
+ "type": "boolean"
331
+ }
332
+ },
333
+ "additionalProperties": false
334
+ },
324
335
  "meta": {
325
336
  "$ref": "#/definitions/TableQuestion/properties/meta"
326
337
  },
@@ -395,20 +406,10 @@
395
406
  "responseField"
396
407
  ],
397
408
  "additionalProperties": false
398
- },
399
- "attributes": {
400
- "type": "object",
401
- "properties": {
402
- "multiple": {
403
- "type": "boolean"
404
- }
405
- },
406
- "additionalProperties": false
407
409
  }
408
410
  },
409
411
  "required": [
410
412
  "type",
411
- "meta",
412
413
  "graphQL"
413
414
  ],
414
415
  "additionalProperties": false
@@ -420,16 +421,36 @@
420
421
  "type": "string",
421
422
  "const": "number"
422
423
  },
424
+ "attributes": {
425
+ "type": "object",
426
+ "properties": {
427
+ "label": {
428
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
429
+ },
430
+ "help": {
431
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
432
+ },
433
+ "labelTranslationKey": {
434
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
435
+ },
436
+ "max": {
437
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes/properties/max"
438
+ },
439
+ "min": {
440
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes/properties/min"
441
+ },
442
+ "step": {
443
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes/properties/step"
444
+ }
445
+ },
446
+ "additionalProperties": false
447
+ },
423
448
  "meta": {
424
449
  "$ref": "#/definitions/TableQuestion/properties/meta"
425
- },
426
- "attributes": {
427
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes"
428
450
  }
429
451
  },
430
452
  "required": [
431
- "type",
432
- "meta"
453
+ "type"
433
454
  ],
434
455
  "additionalProperties": false
435
456
  },
@@ -440,6 +461,9 @@
440
461
  "type": "string",
441
462
  "const": "radioButtons"
442
463
  },
464
+ "attributes": {
465
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/attributes"
466
+ },
443
467
  "meta": {
444
468
  "$ref": "#/definitions/TableQuestion/properties/meta"
445
469
  },
@@ -448,33 +472,19 @@
448
472
  "items": {
449
473
  "type": "object",
450
474
  "properties": {
451
- "type": {
452
- "type": "string",
453
- "const": "option"
475
+ "label": {
476
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/options/items/properties/label"
454
477
  },
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
478
+ "value": {
479
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/options/items/properties/value"
480
+ },
481
+ "selected": {
482
+ "type": "boolean"
473
483
  }
474
484
  },
475
485
  "required": [
476
- "type",
477
- "attributes"
486
+ "label",
487
+ "value"
478
488
  ],
479
489
  "additionalProperties": false
480
490
  }
@@ -482,7 +492,6 @@
482
492
  },
483
493
  "required": [
484
494
  "type",
485
- "meta",
486
495
  "options"
487
496
  ],
488
497
  "additionalProperties": false
@@ -494,28 +503,36 @@
494
503
  "type": "string",
495
504
  "const": "selectBox"
496
505
  },
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
506
  "attributes": {
507
507
  "type": "object",
508
508
  "properties": {
509
+ "label": {
510
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
511
+ },
512
+ "help": {
513
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
514
+ },
515
+ "labelTranslationKey": {
516
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
517
+ },
509
518
  "multiple": {
510
519
  "type": "boolean"
511
520
  }
512
521
  },
513
522
  "additionalProperties": false
523
+ },
524
+ "meta": {
525
+ "$ref": "#/definitions/TableQuestion/properties/meta"
526
+ },
527
+ "options": {
528
+ "type": "array",
529
+ "items": {
530
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/8/properties/options/items"
531
+ }
514
532
  }
515
533
  },
516
534
  "required": [
517
535
  "type",
518
- "meta",
519
536
  "options"
520
537
  ],
521
538
  "additionalProperties": false
@@ -527,27 +544,18 @@
527
544
  "type": "string",
528
545
  "const": "textArea"
529
546
  },
530
- "meta": {
547
+ "attributes": {
531
548
  "type": "object",
532
549
  "properties": {
533
- "schemaVersion": {
534
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
550
+ "label": {
551
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
552
+ },
553
+ "help": {
554
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
535
555
  },
536
556
  "labelTranslationKey": {
537
- "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
557
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
538
558
  },
539
- "asRichText": {
540
- "type": "boolean"
541
- }
542
- },
543
- "required": [
544
- "schemaVersion"
545
- ],
546
- "additionalProperties": false
547
- },
548
- "attributes": {
549
- "type": "object",
550
- "properties": {
551
559
  "cols": {
552
560
  "type": "number"
553
561
  },
@@ -562,6 +570,21 @@
562
570
  }
563
571
  },
564
572
  "additionalProperties": false
573
+ },
574
+ "meta": {
575
+ "type": "object",
576
+ "properties": {
577
+ "schemaVersion": {
578
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
579
+ },
580
+ "asRichText": {
581
+ "type": "boolean"
582
+ }
583
+ },
584
+ "required": [
585
+ "schemaVersion"
586
+ ],
587
+ "additionalProperties": false
565
588
  }
566
589
  },
567
590
  "required": [
@@ -577,28 +600,36 @@
577
600
  "type": "string",
578
601
  "const": "text"
579
602
  },
580
- "meta": {
581
- "$ref": "#/definitions/TableQuestion/properties/meta"
582
- },
583
603
  "attributes": {
584
604
  "type": "object",
585
605
  "properties": {
606
+ "label": {
607
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/label"
608
+ },
609
+ "help": {
610
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/help"
611
+ },
612
+ "labelTranslationKey": {
613
+ "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
614
+ },
586
615
  "maxLength": {
587
- "type": "number"
616
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/5/properties/attributes/properties/maxLength"
588
617
  },
589
618
  "minLength": {
590
- "type": "number"
619
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/5/properties/attributes/properties/minLength"
591
620
  },
592
621
  "pattern": {
593
- "type": "string"
622
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/5/properties/attributes/properties/pattern"
594
623
  }
595
624
  },
596
625
  "additionalProperties": false
626
+ },
627
+ "meta": {
628
+ "$ref": "#/definitions/TableQuestion/properties/meta"
597
629
  }
598
630
  },
599
631
  "required": [
600
- "type",
601
- "meta"
632
+ "type"
602
633
  ],
603
634
  "additionalProperties": false
604
635
  },
@@ -609,6 +640,9 @@
609
640
  "type": "string",
610
641
  "const": "typeaheadSearch"
611
642
  },
643
+ "attributes": {
644
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/attributes"
645
+ },
612
646
  "meta": {
613
647
  "$ref": "#/definitions/TableQuestion/properties/meta"
614
648
  },
@@ -618,7 +652,6 @@
618
652
  },
619
653
  "required": [
620
654
  "type",
621
- "meta",
622
655
  "graphQL"
623
656
  ],
624
657
  "additionalProperties": false
@@ -630,28 +663,15 @@
630
663
  "type": "string",
631
664
  "const": "url"
632
665
  },
666
+ "attributes": {
667
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/11/properties/attributes"
668
+ },
633
669
  "meta": {
634
670
  "$ref": "#/definitions/TableQuestion/properties/meta"
635
- },
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
650
671
  }
651
672
  },
652
673
  "required": [
653
- "type",
654
- "meta"
674
+ "type"
655
675
  ],
656
676
  "additionalProperties": false
657
677
  }
@@ -663,32 +683,10 @@
663
683
  ],
664
684
  "additionalProperties": false
665
685
  }
666
- },
667
- "attributes": {
668
- "type": "object",
669
- "properties": {
670
- "canAddRows": {
671
- "type": "boolean"
672
- },
673
- "canRemoveRows": {
674
- "type": "boolean"
675
- },
676
- "initialRows": {
677
- "type": "number"
678
- },
679
- "maxRows": {
680
- "type": "number"
681
- },
682
- "minRows": {
683
- "type": "number"
684
- }
685
- },
686
- "additionalProperties": false
687
686
  }
688
687
  },
689
688
  "required": [
690
689
  "type",
691
- "meta",
692
690
  "columns"
693
691
  ],
694
692
  "additionalProperties": false