@dmptool/types 1.0.8 → 1.1.1

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