@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
@@ -10,35 +10,41 @@
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
46
  "type",
41
- "meta"
47
+ "attributes"
42
48
  ],
43
49
  "additionalProperties": false
44
50
  },
@@ -49,6 +55,21 @@
49
55
  "type": "string",
50
56
  "const": "checkBoxes"
51
57
  },
58
+ "attributes": {
59
+ "type": "object",
60
+ "properties": {
61
+ "label": {
62
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
63
+ },
64
+ "help": {
65
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
66
+ },
67
+ "labelTranslationKey": {
68
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ },
52
73
  "meta": {
53
74
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
54
75
  },
@@ -57,33 +78,19 @@
57
78
  "items": {
58
79
  "type": "object",
59
80
  "properties": {
60
- "type": {
61
- "type": "string",
62
- "const": "option"
81
+ "label": {
82
+ "type": "string"
63
83
  },
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
84
+ "value": {
85
+ "type": "string"
86
+ },
87
+ "checked": {
88
+ "type": "boolean"
82
89
  }
83
90
  },
84
91
  "required": [
85
- "type",
86
- "attributes"
92
+ "label",
93
+ "value"
87
94
  ],
88
95
  "additionalProperties": false
89
96
  }
@@ -91,7 +98,6 @@
91
98
  },
92
99
  "required": [
93
100
  "type",
94
- "meta",
95
101
  "options"
96
102
  ],
97
103
  "additionalProperties": false
@@ -103,27 +109,18 @@
103
109
  "type": "string",
104
110
  "const": "currency"
105
111
  },
106
- "meta": {
112
+ "attributes": {
107
113
  "type": "object",
108
114
  "properties": {
109
- "schemaVersion": {
110
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
115
+ "label": {
116
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
117
+ },
118
+ "help": {
119
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
111
120
  },
112
121
  "labelTranslationKey": {
113
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
122
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
114
123
  },
115
- "denomination": {
116
- "type": "string"
117
- }
118
- },
119
- "required": [
120
- "schemaVersion"
121
- ],
122
- "additionalProperties": false
123
- },
124
- "attributes": {
125
- "type": "object",
126
- "properties": {
127
124
  "max": {
128
125
  "type": "number"
129
126
  },
@@ -132,14 +129,19 @@
132
129
  },
133
130
  "step": {
134
131
  "type": "number"
132
+ },
133
+ "denomination": {
134
+ "type": "string"
135
135
  }
136
136
  },
137
137
  "additionalProperties": false
138
+ },
139
+ "meta": {
140
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
138
141
  }
139
142
  },
140
143
  "required": [
141
- "type",
142
- "meta"
144
+ "type"
143
145
  ],
144
146
  "additionalProperties": false
145
147
  },
@@ -150,12 +152,18 @@
150
152
  "type": "string",
151
153
  "const": "date"
152
154
  },
153
- "meta": {
154
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
155
- },
156
155
  "attributes": {
157
156
  "type": "object",
158
157
  "properties": {
158
+ "label": {
159
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
160
+ },
161
+ "help": {
162
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
163
+ },
164
+ "labelTranslationKey": {
165
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
166
+ },
159
167
  "max": {
160
168
  "type": "string"
161
169
  },
@@ -167,11 +175,13 @@
167
175
  }
168
176
  },
169
177
  "additionalProperties": false
178
+ },
179
+ "meta": {
180
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
170
181
  }
171
182
  },
172
183
  "required": [
173
- "type",
174
- "meta"
184
+ "type"
175
185
  ],
176
186
  "additionalProperties": false
177
187
  },
@@ -182,6 +192,9 @@
182
192
  "type": "string",
183
193
  "const": "dateRange"
184
194
  },
195
+ "attributes": {
196
+ "$ref": "#/definitions/AnyQuestion/anyOf/1/properties/attributes"
197
+ },
185
198
  "meta": {
186
199
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
187
200
  },
@@ -189,74 +202,17 @@
189
202
  "type": "object",
190
203
  "properties": {
191
204
  "start": {
192
- "type": "object",
193
- "properties": {
194
- "type": {
195
- "$ref": "#/definitions/AnyQuestion/anyOf/3/properties/type"
196
- },
197
- "meta": {
198
- "$ref": "#/definitions/AnyQuestion/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
205
+ "$ref": "#/definitions/AnyQuestion/anyOf/3/properties/attributes"
219
206
  },
220
207
  "end": {
221
- "type": "object",
222
- "properties": {
223
- "type": {
224
- "$ref": "#/definitions/AnyQuestion/anyOf/3/properties/type"
225
- },
226
- "meta": {
227
- "$ref": "#/definitions/AnyQuestion/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
208
+ "$ref": "#/definitions/AnyQuestion/anyOf/3/properties/attributes"
248
209
  }
249
210
  },
250
- "required": [
251
- "start",
252
- "end"
253
- ],
254
211
  "additionalProperties": false
255
212
  }
256
213
  },
257
214
  "required": [
258
215
  "type",
259
- "meta",
260
216
  "columns"
261
217
  ],
262
218
  "additionalProperties": false
@@ -268,31 +224,39 @@
268
224
  "type": "string",
269
225
  "const": "email"
270
226
  },
271
- "meta": {
272
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
273
- },
274
227
  "attributes": {
275
228
  "type": "object",
276
229
  "properties": {
230
+ "label": {
231
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
232
+ },
233
+ "help": {
234
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
235
+ },
236
+ "labelTranslationKey": {
237
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
238
+ },
277
239
  "maxLength": {
278
240
  "type": "number"
279
241
  },
280
242
  "minLength": {
281
243
  "type": "number"
282
244
  },
283
- "multiple": {
284
- "type": "boolean"
285
- },
286
245
  "pattern": {
287
246
  "type": "string"
247
+ },
248
+ "multiple": {
249
+ "type": "boolean"
288
250
  }
289
251
  },
290
252
  "additionalProperties": false
253
+ },
254
+ "meta": {
255
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
291
256
  }
292
257
  },
293
258
  "required": [
294
- "type",
295
- "meta"
259
+ "type"
296
260
  ],
297
261
  "additionalProperties": false
298
262
  },
@@ -303,6 +267,24 @@
303
267
  "type": "string",
304
268
  "const": "filteredSearch"
305
269
  },
270
+ "attributes": {
271
+ "type": "object",
272
+ "properties": {
273
+ "label": {
274
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
275
+ },
276
+ "help": {
277
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
278
+ },
279
+ "labelTranslationKey": {
280
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
281
+ },
282
+ "multiple": {
283
+ "type": "boolean"
284
+ }
285
+ },
286
+ "additionalProperties": false
287
+ },
306
288
  "meta": {
307
289
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
308
290
  },
@@ -377,21 +359,51 @@
377
359
  "responseField"
378
360
  ],
379
361
  "additionalProperties": false
362
+ }
363
+ },
364
+ "required": [
365
+ "type",
366
+ "graphQL"
367
+ ],
368
+ "additionalProperties": false
369
+ },
370
+ {
371
+ "type": "object",
372
+ "properties": {
373
+ "type": {
374
+ "type": "string",
375
+ "const": "number"
380
376
  },
381
377
  "attributes": {
382
378
  "type": "object",
383
379
  "properties": {
384
- "multiple": {
385
- "type": "boolean"
380
+ "label": {
381
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
382
+ },
383
+ "help": {
384
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
385
+ },
386
+ "labelTranslationKey": {
387
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
388
+ },
389
+ "max": {
390
+ "$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes/properties/max"
391
+ },
392
+ "min": {
393
+ "$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes/properties/min"
394
+ },
395
+ "step": {
396
+ "$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes/properties/step"
386
397
  }
387
398
  },
388
399
  "additionalProperties": false
400
+ },
401
+ "meta": {
402
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
389
403
  }
390
404
  },
391
405
  "required": [
392
- "type",
393
- "meta",
394
- "graphQL"
406
+ "type"
395
407
  ],
396
408
  "additionalProperties": false
397
409
  },
@@ -400,18 +412,30 @@
400
412
  "properties": {
401
413
  "type": {
402
414
  "type": "string",
403
- "const": "number"
415
+ "const": "numberRange"
416
+ },
417
+ "attributes": {
418
+ "$ref": "#/definitions/AnyQuestion/anyOf/1/properties/attributes"
404
419
  },
405
420
  "meta": {
406
421
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
407
422
  },
408
- "attributes": {
409
- "$ref": "#/definitions/AnyQuestion/anyOf/2/properties/attributes"
423
+ "columns": {
424
+ "type": "object",
425
+ "properties": {
426
+ "start": {
427
+ "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/attributes"
428
+ },
429
+ "end": {
430
+ "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/attributes"
431
+ }
432
+ },
433
+ "additionalProperties": false
410
434
  }
411
435
  },
412
436
  "required": [
413
437
  "type",
414
- "meta"
438
+ "columns"
415
439
  ],
416
440
  "additionalProperties": false
417
441
  },
@@ -422,6 +446,9 @@
422
446
  "type": "string",
423
447
  "const": "radioButtons"
424
448
  },
449
+ "attributes": {
450
+ "$ref": "#/definitions/AnyQuestion/anyOf/1/properties/attributes"
451
+ },
425
452
  "meta": {
426
453
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
427
454
  },
@@ -430,33 +457,19 @@
430
457
  "items": {
431
458
  "type": "object",
432
459
  "properties": {
433
- "type": {
434
- "type": "string",
435
- "const": "option"
460
+ "label": {
461
+ "$ref": "#/definitions/AnyQuestion/anyOf/1/properties/options/items/properties/label"
436
462
  },
437
- "attributes": {
438
- "type": "object",
439
- "properties": {
440
- "label": {
441
- "$ref": "#/definitions/AnyQuestion/anyOf/1/properties/options/items/properties/attributes/properties/label"
442
- },
443
- "value": {
444
- "$ref": "#/definitions/AnyQuestion/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
463
+ "value": {
464
+ "$ref": "#/definitions/AnyQuestion/anyOf/1/properties/options/items/properties/value"
465
+ },
466
+ "selected": {
467
+ "type": "boolean"
455
468
  }
456
469
  },
457
470
  "required": [
458
- "type",
459
- "attributes"
471
+ "label",
472
+ "value"
460
473
  ],
461
474
  "additionalProperties": false
462
475
  }
@@ -464,7 +477,6 @@
464
477
  },
465
478
  "required": [
466
479
  "type",
467
- "meta",
468
480
  "options"
469
481
  ],
470
482
  "additionalProperties": false
@@ -476,28 +488,36 @@
476
488
  "type": "string",
477
489
  "const": "selectBox"
478
490
  },
479
- "meta": {
480
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
481
- },
482
- "options": {
483
- "type": "array",
484
- "items": {
485
- "$ref": "#/definitions/AnyQuestion/anyOf/8/properties/options/items"
486
- }
487
- },
488
491
  "attributes": {
489
492
  "type": "object",
490
493
  "properties": {
494
+ "label": {
495
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
496
+ },
497
+ "help": {
498
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
499
+ },
500
+ "labelTranslationKey": {
501
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
502
+ },
491
503
  "multiple": {
492
504
  "type": "boolean"
493
505
  }
494
506
  },
495
507
  "additionalProperties": false
508
+ },
509
+ "meta": {
510
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
511
+ },
512
+ "options": {
513
+ "type": "array",
514
+ "items": {
515
+ "$ref": "#/definitions/AnyQuestion/anyOf/9/properties/options/items"
516
+ }
496
517
  }
497
518
  },
498
519
  "required": [
499
520
  "type",
500
- "meta",
501
521
  "options"
502
522
  ],
503
523
  "additionalProperties": false
@@ -509,6 +529,36 @@
509
529
  "type": "string",
510
530
  "const": "table"
511
531
  },
532
+ "attributes": {
533
+ "type": "object",
534
+ "properties": {
535
+ "label": {
536
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
537
+ },
538
+ "help": {
539
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
540
+ },
541
+ "labelTranslationKey": {
542
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
543
+ },
544
+ "canAddRows": {
545
+ "type": "boolean"
546
+ },
547
+ "canRemoveRows": {
548
+ "type": "boolean"
549
+ },
550
+ "initialRows": {
551
+ "type": "number"
552
+ },
553
+ "maxRows": {
554
+ "type": "number"
555
+ },
556
+ "minRows": {
557
+ "type": "number"
558
+ }
559
+ },
560
+ "additionalProperties": false
561
+ },
512
562
  "meta": {
513
563
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
514
564
  },
@@ -547,10 +597,10 @@
547
597
  "$ref": "#/definitions/AnyQuestion/anyOf/7"
548
598
  },
549
599
  {
550
- "$ref": "#/definitions/AnyQuestion/anyOf/8"
600
+ "$ref": "#/definitions/AnyQuestion/anyOf/9"
551
601
  },
552
602
  {
553
- "$ref": "#/definitions/AnyQuestion/anyOf/9"
603
+ "$ref": "#/definitions/AnyQuestion/anyOf/10"
554
604
  },
555
605
  {
556
606
  "type": "object",
@@ -559,27 +609,18 @@
559
609
  "type": "string",
560
610
  "const": "textArea"
561
611
  },
562
- "meta": {
612
+ "attributes": {
563
613
  "type": "object",
564
614
  "properties": {
565
- "schemaVersion": {
566
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
615
+ "label": {
616
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
617
+ },
618
+ "help": {
619
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
567
620
  },
568
621
  "labelTranslationKey": {
569
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
622
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
570
623
  },
571
- "asRichText": {
572
- "type": "boolean"
573
- }
574
- },
575
- "required": [
576
- "schemaVersion"
577
- ],
578
- "additionalProperties": false
579
- },
580
- "attributes": {
581
- "type": "object",
582
- "properties": {
583
624
  "cols": {
584
625
  "type": "number"
585
626
  },
@@ -594,6 +635,21 @@
594
635
  }
595
636
  },
596
637
  "additionalProperties": false
638
+ },
639
+ "meta": {
640
+ "type": "object",
641
+ "properties": {
642
+ "schemaVersion": {
643
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
644
+ },
645
+ "asRichText": {
646
+ "type": "boolean"
647
+ }
648
+ },
649
+ "required": [
650
+ "schemaVersion"
651
+ ],
652
+ "additionalProperties": false
597
653
  }
598
654
  },
599
655
  "required": [
@@ -609,28 +665,36 @@
609
665
  "type": "string",
610
666
  "const": "text"
611
667
  },
612
- "meta": {
613
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
614
- },
615
668
  "attributes": {
616
669
  "type": "object",
617
670
  "properties": {
671
+ "label": {
672
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
673
+ },
674
+ "help": {
675
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
676
+ },
677
+ "labelTranslationKey": {
678
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
679
+ },
618
680
  "maxLength": {
619
- "type": "number"
681
+ "$ref": "#/definitions/AnyQuestion/anyOf/5/properties/attributes/properties/maxLength"
620
682
  },
621
683
  "minLength": {
622
- "type": "number"
684
+ "$ref": "#/definitions/AnyQuestion/anyOf/5/properties/attributes/properties/minLength"
623
685
  },
624
686
  "pattern": {
625
- "type": "string"
687
+ "$ref": "#/definitions/AnyQuestion/anyOf/5/properties/attributes/properties/pattern"
626
688
  }
627
689
  },
628
690
  "additionalProperties": false
691
+ },
692
+ "meta": {
693
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
629
694
  }
630
695
  },
631
696
  "required": [
632
- "type",
633
- "meta"
697
+ "type"
634
698
  ],
635
699
  "additionalProperties": false
636
700
  },
@@ -641,6 +705,9 @@
641
705
  "type": "string",
642
706
  "const": "typeaheadSearch"
643
707
  },
708
+ "attributes": {
709
+ "$ref": "#/definitions/AnyQuestion/anyOf/1/properties/attributes"
710
+ },
644
711
  "meta": {
645
712
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
646
713
  },
@@ -650,7 +717,6 @@
650
717
  },
651
718
  "required": [
652
719
  "type",
653
- "meta",
654
720
  "graphQL"
655
721
  ],
656
722
  "additionalProperties": false
@@ -662,28 +728,15 @@
662
728
  "type": "string",
663
729
  "const": "url"
664
730
  },
731
+ "attributes": {
732
+ "$ref": "#/definitions/AnyQuestion/anyOf/11/properties/columns/items/properties/content/anyOf/11/properties/attributes"
733
+ },
665
734
  "meta": {
666
735
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
667
- },
668
- "attributes": {
669
- "type": "object",
670
- "properties": {
671
- "maxLength": {
672
- "type": "number"
673
- },
674
- "minLength": {
675
- "type": "number"
676
- },
677
- "pattern": {
678
- "type": "string"
679
- }
680
- },
681
- "additionalProperties": false
682
736
  }
683
737
  },
684
738
  "required": [
685
- "type",
686
- "meta"
739
+ "type"
687
740
  ],
688
741
  "additionalProperties": false
689
742
  }
@@ -695,47 +748,25 @@
695
748
  ],
696
749
  "additionalProperties": false
697
750
  }
698
- },
699
- "attributes": {
700
- "type": "object",
701
- "properties": {
702
- "canAddRows": {
703
- "type": "boolean"
704
- },
705
- "canRemoveRows": {
706
- "type": "boolean"
707
- },
708
- "initialRows": {
709
- "type": "number"
710
- },
711
- "maxRows": {
712
- "type": "number"
713
- },
714
- "minRows": {
715
- "type": "number"
716
- }
717
- },
718
- "additionalProperties": false
719
751
  }
720
752
  },
721
753
  "required": [
722
754
  "type",
723
- "meta",
724
755
  "columns"
725
756
  ],
726
757
  "additionalProperties": false
727
758
  },
728
759
  {
729
- "$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/10"
760
+ "$ref": "#/definitions/AnyQuestion/anyOf/11/properties/columns/items/properties/content/anyOf/10"
730
761
  },
731
762
  {
732
- "$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/11"
763
+ "$ref": "#/definitions/AnyQuestion/anyOf/11/properties/columns/items/properties/content/anyOf/11"
733
764
  },
734
765
  {
735
- "$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/12"
766
+ "$ref": "#/definitions/AnyQuestion/anyOf/11/properties/columns/items/properties/content/anyOf/12"
736
767
  },
737
768
  {
738
- "$ref": "#/definitions/AnyQuestion/anyOf/10/properties/columns/items/properties/content/anyOf/13"
769
+ "$ref": "#/definitions/AnyQuestion/anyOf/11/properties/columns/items/properties/content/anyOf/13"
739
770
  }
740
771
  ]
741
772
  }