@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
@@ -10,35 +10,40 @@
10
10
  "type": "string",
11
11
  "const": "boolean"
12
12
  },
13
- "meta": {
13
+ "attributes": {
14
14
  "type": "object",
15
15
  "properties": {
16
- "schemaVersion": {
17
- "type": "string",
18
- "const": "1.0"
16
+ "label": {
17
+ "type": "string"
18
+ },
19
+ "help": {
20
+ "type": "string"
19
21
  },
20
22
  "labelTranslationKey": {
21
23
  "type": "string"
24
+ },
25
+ "checked": {
26
+ "type": "boolean"
22
27
  }
23
28
  },
24
- "required": [
25
- "schemaVersion"
26
- ],
27
29
  "additionalProperties": false
28
30
  },
29
- "attributes": {
31
+ "meta": {
30
32
  "type": "object",
31
33
  "properties": {
32
- "checked": {
33
- "type": "boolean"
34
+ "schemaVersion": {
35
+ "type": "string",
36
+ "const": "1.0"
34
37
  }
35
38
  },
39
+ "required": [
40
+ "schemaVersion"
41
+ ],
36
42
  "additionalProperties": false
37
43
  }
38
44
  },
39
45
  "required": [
40
- "type",
41
- "meta"
46
+ "type"
42
47
  ],
43
48
  "additionalProperties": false
44
49
  },
@@ -49,6 +54,21 @@
49
54
  "type": "string",
50
55
  "const": "checkBoxes"
51
56
  },
57
+ "attributes": {
58
+ "type": "object",
59
+ "properties": {
60
+ "label": {
61
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
62
+ },
63
+ "help": {
64
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
65
+ },
66
+ "labelTranslationKey": {
67
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
68
+ }
69
+ },
70
+ "additionalProperties": false
71
+ },
52
72
  "meta": {
53
73
  "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
54
74
  },
@@ -57,33 +77,19 @@
57
77
  "items": {
58
78
  "type": "object",
59
79
  "properties": {
60
- "type": {
61
- "type": "string",
62
- "const": "option"
80
+ "label": {
81
+ "type": "string"
63
82
  },
64
- "attributes": {
65
- "type": "object",
66
- "properties": {
67
- "label": {
68
- "type": "string"
69
- },
70
- "value": {
71
- "type": "string"
72
- },
73
- "checked": {
74
- "type": "boolean"
75
- }
76
- },
77
- "required": [
78
- "label",
79
- "value"
80
- ],
81
- "additionalProperties": false
83
+ "value": {
84
+ "type": "string"
85
+ },
86
+ "checked": {
87
+ "type": "boolean"
82
88
  }
83
89
  },
84
90
  "required": [
85
- "type",
86
- "attributes"
91
+ "label",
92
+ "value"
87
93
  ],
88
94
  "additionalProperties": false
89
95
  }
@@ -91,7 +97,6 @@
91
97
  },
92
98
  "required": [
93
99
  "type",
94
- "meta",
95
100
  "options"
96
101
  ],
97
102
  "additionalProperties": false
@@ -103,27 +108,18 @@
103
108
  "type": "string",
104
109
  "const": "currency"
105
110
  },
106
- "meta": {
111
+ "attributes": {
107
112
  "type": "object",
108
113
  "properties": {
109
- "schemaVersion": {
110
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
114
+ "label": {
115
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
116
+ },
117
+ "help": {
118
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
111
119
  },
112
120
  "labelTranslationKey": {
113
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
121
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
114
122
  },
115
- "denomination": {
116
- "type": "string"
117
- }
118
- },
119
- "required": [
120
- "schemaVersion"
121
- ],
122
- "additionalProperties": false
123
- },
124
- "attributes": {
125
- "type": "object",
126
- "properties": {
127
123
  "max": {
128
124
  "type": "number"
129
125
  },
@@ -132,14 +128,19 @@
132
128
  },
133
129
  "step": {
134
130
  "type": "number"
131
+ },
132
+ "denomination": {
133
+ "type": "string"
135
134
  }
136
135
  },
137
136
  "additionalProperties": false
137
+ },
138
+ "meta": {
139
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
138
140
  }
139
141
  },
140
142
  "required": [
141
- "type",
142
- "meta"
143
+ "type"
143
144
  ],
144
145
  "additionalProperties": false
145
146
  },
@@ -150,12 +151,18 @@
150
151
  "type": "string",
151
152
  "const": "date"
152
153
  },
153
- "meta": {
154
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
155
- },
156
154
  "attributes": {
157
155
  "type": "object",
158
156
  "properties": {
157
+ "label": {
158
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
159
+ },
160
+ "help": {
161
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
162
+ },
163
+ "labelTranslationKey": {
164
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
165
+ },
159
166
  "max": {
160
167
  "type": "string"
161
168
  },
@@ -167,11 +174,13 @@
167
174
  }
168
175
  },
169
176
  "additionalProperties": false
177
+ },
178
+ "meta": {
179
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
170
180
  }
171
181
  },
172
182
  "required": [
173
- "type",
174
- "meta"
183
+ "type"
175
184
  ],
176
185
  "additionalProperties": false
177
186
  },
@@ -182,6 +191,9 @@
182
191
  "type": "string",
183
192
  "const": "dateRange"
184
193
  },
194
+ "attributes": {
195
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/attributes"
196
+ },
185
197
  "meta": {
186
198
  "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
187
199
  },
@@ -189,74 +201,17 @@
189
201
  "type": "object",
190
202
  "properties": {
191
203
  "start": {
192
- "type": "object",
193
- "properties": {
194
- "type": {
195
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/type"
196
- },
197
- "meta": {
198
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
199
- },
200
- "attributes": {
201
- "type": "object",
202
- "properties": {
203
- "label": {
204
- "type": "string"
205
- }
206
- },
207
- "required": [
208
- "label"
209
- ],
210
- "additionalProperties": false
211
- }
212
- },
213
- "required": [
214
- "type",
215
- "meta",
216
- "attributes"
217
- ],
218
- "additionalProperties": false
204
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes"
219
205
  },
220
206
  "end": {
221
- "type": "object",
222
- "properties": {
223
- "type": {
224
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/type"
225
- },
226
- "meta": {
227
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
228
- },
229
- "attributes": {
230
- "type": "object",
231
- "properties": {
232
- "label": {
233
- "type": "string"
234
- }
235
- },
236
- "required": [
237
- "label"
238
- ],
239
- "additionalProperties": false
240
- }
241
- },
242
- "required": [
243
- "type",
244
- "meta",
245
- "attributes"
246
- ],
247
- "additionalProperties": false
207
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes"
248
208
  }
249
209
  },
250
- "required": [
251
- "start",
252
- "end"
253
- ],
254
210
  "additionalProperties": false
255
211
  }
256
212
  },
257
213
  "required": [
258
214
  "type",
259
- "meta",
260
215
  "columns"
261
216
  ],
262
217
  "additionalProperties": false
@@ -268,31 +223,39 @@
268
223
  "type": "string",
269
224
  "const": "email"
270
225
  },
271
- "meta": {
272
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
273
- },
274
226
  "attributes": {
275
227
  "type": "object",
276
228
  "properties": {
229
+ "label": {
230
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
231
+ },
232
+ "help": {
233
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
234
+ },
235
+ "labelTranslationKey": {
236
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
237
+ },
277
238
  "maxLength": {
278
239
  "type": "number"
279
240
  },
280
241
  "minLength": {
281
242
  "type": "number"
282
243
  },
283
- "multiple": {
284
- "type": "boolean"
285
- },
286
244
  "pattern": {
287
245
  "type": "string"
246
+ },
247
+ "multiple": {
248
+ "type": "boolean"
288
249
  }
289
250
  },
290
251
  "additionalProperties": false
252
+ },
253
+ "meta": {
254
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
291
255
  }
292
256
  },
293
257
  "required": [
294
- "type",
295
- "meta"
258
+ "type"
296
259
  ],
297
260
  "additionalProperties": false
298
261
  },
@@ -303,6 +266,24 @@
303
266
  "type": "string",
304
267
  "const": "filteredSearch"
305
268
  },
269
+ "attributes": {
270
+ "type": "object",
271
+ "properties": {
272
+ "label": {
273
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
274
+ },
275
+ "help": {
276
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
277
+ },
278
+ "labelTranslationKey": {
279
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
280
+ },
281
+ "multiple": {
282
+ "type": "boolean"
283
+ }
284
+ },
285
+ "additionalProperties": false
286
+ },
306
287
  "meta": {
307
288
  "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
308
289
  },
@@ -377,20 +358,10 @@
377
358
  "responseField"
378
359
  ],
379
360
  "additionalProperties": false
380
- },
381
- "attributes": {
382
- "type": "object",
383
- "properties": {
384
- "multiple": {
385
- "type": "boolean"
386
- }
387
- },
388
- "additionalProperties": false
389
361
  }
390
362
  },
391
363
  "required": [
392
364
  "type",
393
- "meta",
394
365
  "graphQL"
395
366
  ],
396
367
  "additionalProperties": false
@@ -402,16 +373,36 @@
402
373
  "type": "string",
403
374
  "const": "number"
404
375
  },
376
+ "attributes": {
377
+ "type": "object",
378
+ "properties": {
379
+ "label": {
380
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
381
+ },
382
+ "help": {
383
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
384
+ },
385
+ "labelTranslationKey": {
386
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
387
+ },
388
+ "max": {
389
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/attributes/properties/max"
390
+ },
391
+ "min": {
392
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/attributes/properties/min"
393
+ },
394
+ "step": {
395
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/attributes/properties/step"
396
+ }
397
+ },
398
+ "additionalProperties": false
399
+ },
405
400
  "meta": {
406
401
  "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
407
- },
408
- "attributes": {
409
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/attributes"
410
402
  }
411
403
  },
412
404
  "required": [
413
- "type",
414
- "meta"
405
+ "type"
415
406
  ],
416
407
  "additionalProperties": false
417
408
  },
@@ -422,6 +413,9 @@
422
413
  "type": "string",
423
414
  "const": "radioButtons"
424
415
  },
416
+ "attributes": {
417
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/attributes"
418
+ },
425
419
  "meta": {
426
420
  "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
427
421
  },
@@ -430,33 +424,19 @@
430
424
  "items": {
431
425
  "type": "object",
432
426
  "properties": {
433
- "type": {
434
- "type": "string",
435
- "const": "option"
427
+ "label": {
428
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/options/items/properties/label"
436
429
  },
437
- "attributes": {
438
- "type": "object",
439
- "properties": {
440
- "label": {
441
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/options/items/properties/attributes/properties/label"
442
- },
443
- "value": {
444
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/options/items/properties/attributes/properties/value"
445
- },
446
- "selected": {
447
- "type": "boolean"
448
- }
449
- },
450
- "required": [
451
- "label",
452
- "value"
453
- ],
454
- "additionalProperties": false
430
+ "value": {
431
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/options/items/properties/value"
432
+ },
433
+ "selected": {
434
+ "type": "boolean"
455
435
  }
456
436
  },
457
437
  "required": [
458
- "type",
459
- "attributes"
438
+ "label",
439
+ "value"
460
440
  ],
461
441
  "additionalProperties": false
462
442
  }
@@ -464,7 +444,6 @@
464
444
  },
465
445
  "required": [
466
446
  "type",
467
- "meta",
468
447
  "options"
469
448
  ],
470
449
  "additionalProperties": false
@@ -476,28 +455,36 @@
476
455
  "type": "string",
477
456
  "const": "selectBox"
478
457
  },
479
- "meta": {
480
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
481
- },
482
- "options": {
483
- "type": "array",
484
- "items": {
485
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/8/properties/options/items"
486
- }
487
- },
488
458
  "attributes": {
489
459
  "type": "object",
490
460
  "properties": {
461
+ "label": {
462
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
463
+ },
464
+ "help": {
465
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
466
+ },
467
+ "labelTranslationKey": {
468
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
469
+ },
491
470
  "multiple": {
492
471
  "type": "boolean"
493
472
  }
494
473
  },
495
474
  "additionalProperties": false
475
+ },
476
+ "meta": {
477
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
478
+ },
479
+ "options": {
480
+ "type": "array",
481
+ "items": {
482
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/8/properties/options/items"
483
+ }
496
484
  }
497
485
  },
498
486
  "required": [
499
487
  "type",
500
- "meta",
501
488
  "options"
502
489
  ],
503
490
  "additionalProperties": false
@@ -509,27 +496,18 @@
509
496
  "type": "string",
510
497
  "const": "textArea"
511
498
  },
512
- "meta": {
499
+ "attributes": {
513
500
  "type": "object",
514
501
  "properties": {
515
- "schemaVersion": {
516
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
502
+ "label": {
503
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
504
+ },
505
+ "help": {
506
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
517
507
  },
518
508
  "labelTranslationKey": {
519
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
509
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
520
510
  },
521
- "asRichText": {
522
- "type": "boolean"
523
- }
524
- },
525
- "required": [
526
- "schemaVersion"
527
- ],
528
- "additionalProperties": false
529
- },
530
- "attributes": {
531
- "type": "object",
532
- "properties": {
533
511
  "cols": {
534
512
  "type": "number"
535
513
  },
@@ -544,6 +522,21 @@
544
522
  }
545
523
  },
546
524
  "additionalProperties": false
525
+ },
526
+ "meta": {
527
+ "type": "object",
528
+ "properties": {
529
+ "schemaVersion": {
530
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
531
+ },
532
+ "asRichText": {
533
+ "type": "boolean"
534
+ }
535
+ },
536
+ "required": [
537
+ "schemaVersion"
538
+ ],
539
+ "additionalProperties": false
547
540
  }
548
541
  },
549
542
  "required": [
@@ -559,28 +552,36 @@
559
552
  "type": "string",
560
553
  "const": "text"
561
554
  },
562
- "meta": {
563
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
564
- },
565
555
  "attributes": {
566
556
  "type": "object",
567
557
  "properties": {
558
+ "label": {
559
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
560
+ },
561
+ "help": {
562
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
563
+ },
564
+ "labelTranslationKey": {
565
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
566
+ },
568
567
  "maxLength": {
569
- "type": "number"
568
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/5/properties/attributes/properties/maxLength"
570
569
  },
571
570
  "minLength": {
572
- "type": "number"
571
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/5/properties/attributes/properties/minLength"
573
572
  },
574
573
  "pattern": {
575
- "type": "string"
574
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/5/properties/attributes/properties/pattern"
576
575
  }
577
576
  },
578
577
  "additionalProperties": false
578
+ },
579
+ "meta": {
580
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
579
581
  }
580
582
  },
581
583
  "required": [
582
- "type",
583
- "meta"
584
+ "type"
584
585
  ],
585
586
  "additionalProperties": false
586
587
  },
@@ -591,6 +592,9 @@
591
592
  "type": "string",
592
593
  "const": "typeaheadSearch"
593
594
  },
595
+ "attributes": {
596
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/1/properties/attributes"
597
+ },
594
598
  "meta": {
595
599
  "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
596
600
  },
@@ -600,7 +604,6 @@
600
604
  },
601
605
  "required": [
602
606
  "type",
603
- "meta",
604
607
  "graphQL"
605
608
  ],
606
609
  "additionalProperties": false
@@ -612,28 +615,15 @@
612
615
  "type": "string",
613
616
  "const": "url"
614
617
  },
618
+ "attributes": {
619
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/11/properties/attributes"
620
+ },
615
621
  "meta": {
616
622
  "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
617
- },
618
- "attributes": {
619
- "type": "object",
620
- "properties": {
621
- "maxLength": {
622
- "type": "number"
623
- },
624
- "minLength": {
625
- "type": "number"
626
- },
627
- "pattern": {
628
- "type": "string"
629
- }
630
- },
631
- "additionalProperties": false
632
623
  }
633
624
  },
634
625
  "required": [
635
- "type",
636
- "meta"
626
+ "type"
637
627
  ],
638
628
  "additionalProperties": false
639
629
  }