@dmptool/types 1.1.1 → 1.1.3

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 (54) hide show
  1. package/dist/answers/__tests__/answers.spec.js +11 -5
  2. package/dist/answers/answer.d.ts +3 -3
  3. package/dist/answers/graphQLAnswers.d.ts +2 -2
  4. package/dist/answers/graphQLAnswers.js +2 -2
  5. package/dist/answers/index.d.ts +92 -55
  6. package/dist/answers/index.js +2 -2
  7. package/dist/answers/optionBasedAnswers.d.ts +27 -2
  8. package/dist/answers/optionBasedAnswers.js +5 -1
  9. package/dist/answers/tableAnswers.d.ts +268 -104
  10. package/dist/answers/tableAnswers.js +2 -1
  11. package/dist/questions/__tests__/graphQLQuestions.spec.js +13 -11
  12. package/dist/questions/__tests__/optionBasedQuestions.spec.js +52 -13
  13. package/dist/questions/dateQuestions.d.ts +68 -47
  14. package/dist/questions/dateQuestions.js +15 -6
  15. package/dist/questions/graphQLQuestions.d.ts +121 -96
  16. package/dist/questions/graphQLQuestions.js +34 -3
  17. package/dist/questions/index.d.ts +1524 -1006
  18. package/dist/questions/index.js +4 -2
  19. package/dist/questions/numberQuestions.d.ts +107 -76
  20. package/dist/questions/numberQuestions.js +20 -7
  21. package/dist/questions/optionBasedQuestions.d.ts +202 -74
  22. package/dist/questions/optionBasedQuestions.js +41 -11
  23. package/dist/questions/question.d.ts +43 -4
  24. package/dist/questions/question.js +13 -2
  25. package/dist/questions/tableQuestions.d.ts +2056 -1428
  26. package/dist/questions/tableQuestions.js +9 -4
  27. package/dist/questions/textQuestions.d.ts +98 -58
  28. package/dist/questions/textQuestions.js +29 -15
  29. package/dist/schemas/affiliationSearchAnswer.schema.json +37 -0
  30. package/dist/schemas/affiliationSearchQuestion.schema.json +146 -0
  31. package/dist/schemas/anyAnswer.schema.json +41 -23
  32. package/dist/schemas/anyQuestion.schema.json +525 -108
  33. package/dist/schemas/anyTableColumnAnswer.schema.json +35 -14
  34. package/dist/schemas/anyTableColumnQuestion.schema.json +396 -80
  35. package/dist/schemas/booleanQuestion.schema.json +11 -3
  36. package/dist/schemas/checkboxesQuestion.schema.json +14 -7
  37. package/dist/schemas/currencyQuestion.schema.json +14 -3
  38. package/dist/schemas/dateQuestion.schema.json +10 -1
  39. package/dist/schemas/dateRangeQuestion.schema.json +14 -1
  40. package/dist/schemas/emailQuestion.schema.json +12 -2
  41. package/dist/schemas/filteredSearchQuestion.schema.json +7 -0
  42. package/dist/schemas/multiselectBoxAnswer.schema.json +40 -0
  43. package/dist/schemas/multiselectBoxQuestion.schema.json +85 -0
  44. package/dist/schemas/numberQuestion.schema.json +12 -2
  45. package/dist/schemas/numberRangeQuestion.schema.json +16 -2
  46. package/dist/schemas/radioButtonsQuestion.schema.json +14 -7
  47. package/dist/schemas/selectBoxAnswer.schema.json +1 -4
  48. package/dist/schemas/selectBoxQuestion.schema.json +17 -8
  49. package/dist/schemas/tableAnswer.schema.json +35 -14
  50. package/dist/schemas/tableQuestion.schema.json +420 -84
  51. package/dist/schemas/textAreaQuestion.schema.json +16 -6
  52. package/dist/schemas/textQuestion.schema.json +10 -1
  53. package/dist/schemas/urlQuestion.schema.json +10 -1
  54. package/package.json +1 -1
@@ -21,13 +21,16 @@
21
21
  "type": "string"
22
22
  },
23
23
  "canAddRows": {
24
- "type": "boolean"
24
+ "type": "boolean",
25
+ "default": true
25
26
  },
26
27
  "canRemoveRows": {
27
- "type": "boolean"
28
+ "type": "boolean",
29
+ "default": true
28
30
  },
29
31
  "initialRows": {
30
- "type": "number"
32
+ "type": "number",
33
+ "default": 1
31
34
  },
32
35
  "maxRows": {
33
36
  "type": "number"
@@ -44,6 +47,14 @@
44
47
  "schemaVersion": {
45
48
  "type": "string",
46
49
  "const": "1.0"
50
+ },
51
+ "title": {
52
+ "type": "string",
53
+ "const": "Table"
54
+ },
55
+ "usageDescription": {
56
+ "type": "string",
57
+ "const": "For questions that require a tabular format."
47
58
  }
48
59
  },
49
60
  "required": [
@@ -66,7 +77,7 @@
66
77
  "properties": {
67
78
  "type": {
68
79
  "type": "string",
69
- "const": "boolean"
80
+ "const": "affiliationSearch"
70
81
  },
71
82
  "attributes": {
72
83
  "type": "object",
@@ -79,20 +90,124 @@
79
90
  },
80
91
  "labelTranslationKey": {
81
92
  "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
82
- },
83
- "checked": {
84
- "type": "boolean"
85
93
  }
86
94
  },
87
95
  "additionalProperties": false
88
96
  },
89
97
  "meta": {
90
- "$ref": "#/definitions/TableQuestion/properties/meta"
98
+ "type": "object",
99
+ "properties": {
100
+ "schemaVersion": {
101
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
102
+ },
103
+ "title": {
104
+ "type": "string",
105
+ "const": "Affiliation Search"
106
+ },
107
+ "usageDescription": {
108
+ "type": "string",
109
+ "const": "For questions that require the user to select from a controlled list of institutions."
110
+ }
111
+ },
112
+ "required": [
113
+ "schemaVersion"
114
+ ],
115
+ "additionalProperties": false
116
+ },
117
+ "graphQL": {
118
+ "type": "object",
119
+ "properties": {
120
+ "displayFields": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "object",
124
+ "properties": {
125
+ "propertyName": {
126
+ "type": "string",
127
+ "const": "displayName"
128
+ },
129
+ "label": {
130
+ "type": "string",
131
+ "default": "Institution"
132
+ },
133
+ "labelTranslationKey": {
134
+ "type": "string",
135
+ "default": "SignupPage.institution"
136
+ }
137
+ },
138
+ "required": [
139
+ "propertyName"
140
+ ],
141
+ "additionalProperties": false
142
+ }
143
+ },
144
+ "localQueryId": {
145
+ "type": "string"
146
+ },
147
+ "query": {
148
+ "type": "string",
149
+ "const": "query Affiliations($name: String!){affiliations(name: $name) { totalCount nextCursor items {id displayName uri}}}"
150
+ },
151
+ "responseField": {
152
+ "type": "string",
153
+ "const": "affiliations.items"
154
+ },
155
+ "variables": {
156
+ "type": "array",
157
+ "items": {
158
+ "type": "object",
159
+ "properties": {
160
+ "name": {
161
+ "type": "string",
162
+ "const": "name"
163
+ },
164
+ "type": {
165
+ "type": "string",
166
+ "default": "string"
167
+ },
168
+ "label": {
169
+ "type": "string",
170
+ "default": "Search for your institution"
171
+ },
172
+ "minLength": {
173
+ "type": "number",
174
+ "const": 3
175
+ },
176
+ "labelTranslationKey": {
177
+ "type": "string",
178
+ "default": "SignupPage.institutionHelp"
179
+ }
180
+ },
181
+ "required": [
182
+ "name",
183
+ "minLength"
184
+ ],
185
+ "additionalProperties": false
186
+ }
187
+ },
188
+ "queryId": {
189
+ "type": "string",
190
+ "default": "useAffiliationsQuery"
191
+ },
192
+ "answerField": {
193
+ "type": "string",
194
+ "const": "uri"
195
+ }
196
+ },
197
+ "required": [
198
+ "displayFields",
199
+ "query",
200
+ "responseField",
201
+ "variables",
202
+ "answerField"
203
+ ],
204
+ "additionalProperties": false
91
205
  }
92
206
  },
93
207
  "required": [
94
208
  "type",
95
- "attributes"
209
+ "meta",
210
+ "graphQL"
96
211
  ],
97
212
  "additionalProperties": false
98
213
  },
@@ -101,7 +216,7 @@
101
216
  "properties": {
102
217
  "type": {
103
218
  "type": "string",
104
- "const": "checkBoxes"
219
+ "const": "boolean"
105
220
  },
106
221
  "attributes": {
107
222
  "type": "object",
@@ -114,12 +229,69 @@
114
229
  },
115
230
  "labelTranslationKey": {
116
231
  "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
232
+ },
233
+ "checked": {
234
+ "type": "boolean",
235
+ "default": false
117
236
  }
118
237
  },
119
238
  "additionalProperties": false
120
239
  },
121
240
  "meta": {
122
- "$ref": "#/definitions/TableQuestion/properties/meta"
241
+ "type": "object",
242
+ "properties": {
243
+ "schemaVersion": {
244
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
245
+ },
246
+ "title": {
247
+ "type": "string",
248
+ "const": "Yes/No Field"
249
+ },
250
+ "usageDescription": {
251
+ "type": "string",
252
+ "const": "For questions that require a simple Yes/No response."
253
+ }
254
+ },
255
+ "required": [
256
+ "schemaVersion"
257
+ ],
258
+ "additionalProperties": false
259
+ }
260
+ },
261
+ "required": [
262
+ "type"
263
+ ],
264
+ "additionalProperties": false
265
+ },
266
+ {
267
+ "type": "object",
268
+ "properties": {
269
+ "type": {
270
+ "type": "string",
271
+ "const": "checkBoxes"
272
+ },
273
+ "attributes": {
274
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes"
275
+ },
276
+ "meta": {
277
+ "type": "object",
278
+ "properties": {
279
+ "schemaVersion": {
280
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
281
+ },
282
+ "title": {
283
+ "type": "string",
284
+ "const": "Check Boxes"
285
+ },
286
+ "usageDescription": {
287
+ "type": "string",
288
+ "const": "For multiple choice questions where users can select multiple options."
289
+ }
290
+ },
291
+ "required": [
292
+ "schemaVersion"
293
+ ],
294
+ "additionalProperties": false
123
295
  },
124
296
  "options": {
125
297
  "type": "array",
@@ -127,19 +299,18 @@
127
299
  "type": "object",
128
300
  "properties": {
129
301
  "label": {
130
- "type": "string"
302
+ "type": "string",
303
+ "default": "Option A"
131
304
  },
132
305
  "value": {
133
- "type": "string"
306
+ "type": "string",
307
+ "default": "a"
134
308
  },
135
309
  "checked": {
136
- "type": "boolean"
310
+ "type": "boolean",
311
+ "default": false
137
312
  }
138
313
  },
139
- "required": [
140
- "label",
141
- "value"
142
- ],
143
314
  "additionalProperties": false
144
315
  }
145
316
  }
@@ -173,19 +344,39 @@
173
344
  "type": "number"
174
345
  },
175
346
  "min": {
176
- "type": "number"
347
+ "type": "number",
348
+ "default": 0
177
349
  },
178
350
  "step": {
179
- "type": "number"
351
+ "type": "number",
352
+ "default": 1
180
353
  },
181
354
  "denomination": {
182
- "type": "string"
355
+ "type": "string",
356
+ "default": "USD"
183
357
  }
184
358
  },
185
359
  "additionalProperties": false
186
360
  },
187
361
  "meta": {
188
- "$ref": "#/definitions/TableQuestion/properties/meta"
362
+ "type": "object",
363
+ "properties": {
364
+ "schemaVersion": {
365
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
366
+ },
367
+ "title": {
368
+ "type": "string",
369
+ "const": "Currency Field"
370
+ },
371
+ "usageDescription": {
372
+ "type": "string",
373
+ "const": "For questions that require a monetary amount (e.g. Cost or Budget)."
374
+ }
375
+ },
376
+ "required": [
377
+ "schemaVersion"
378
+ ],
379
+ "additionalProperties": false
189
380
  }
190
381
  },
191
382
  "required": [
@@ -219,13 +410,31 @@
219
410
  "type": "string"
220
411
  },
221
412
  "step": {
222
- "type": "number"
413
+ "type": "number",
414
+ "default": 1
223
415
  }
224
416
  },
225
417
  "additionalProperties": false
226
418
  },
227
419
  "meta": {
228
- "$ref": "#/definitions/TableQuestion/properties/meta"
420
+ "type": "object",
421
+ "properties": {
422
+ "schemaVersion": {
423
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
424
+ },
425
+ "title": {
426
+ "type": "string",
427
+ "const": "Date Field"
428
+ },
429
+ "usageDescription": {
430
+ "type": "string",
431
+ "const": "For questions that require a date."
432
+ }
433
+ },
434
+ "required": [
435
+ "schemaVersion"
436
+ ],
437
+ "additionalProperties": false
229
438
  }
230
439
  },
231
440
  "required": [
@@ -241,21 +450,42 @@
241
450
  "const": "dateRange"
242
451
  },
243
452
  "attributes": {
244
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/attributes"
453
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes"
245
454
  },
246
455
  "meta": {
247
- "$ref": "#/definitions/TableQuestion/properties/meta"
456
+ "type": "object",
457
+ "properties": {
458
+ "schemaVersion": {
459
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
460
+ },
461
+ "title": {
462
+ "type": "string",
463
+ "const": "Date Range"
464
+ },
465
+ "usageDescription": {
466
+ "type": "string",
467
+ "const": "For questions that require a date range (e.g. From/To, Start/End)"
468
+ }
469
+ },
470
+ "required": [
471
+ "schemaVersion"
472
+ ],
473
+ "additionalProperties": false
248
474
  },
249
475
  "columns": {
250
476
  "type": "object",
251
477
  "properties": {
252
478
  "start": {
253
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes"
479
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes"
254
480
  },
255
481
  "end": {
256
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes"
482
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes"
257
483
  }
258
484
  },
485
+ "required": [
486
+ "start",
487
+ "end"
488
+ ],
259
489
  "additionalProperties": false
260
490
  }
261
491
  },
@@ -285,7 +515,8 @@
285
515
  "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
286
516
  },
287
517
  "maxLength": {
288
- "type": "number"
518
+ "type": "number",
519
+ "default": 255
289
520
  },
290
521
  "minLength": {
291
522
  "type": "number"
@@ -294,13 +525,31 @@
294
525
  "type": "string"
295
526
  },
296
527
  "multiple": {
297
- "type": "boolean"
528
+ "type": "boolean",
529
+ "default": false
298
530
  }
299
531
  },
300
532
  "additionalProperties": false
301
533
  },
302
534
  "meta": {
303
- "$ref": "#/definitions/TableQuestion/properties/meta"
535
+ "type": "object",
536
+ "properties": {
537
+ "schemaVersion": {
538
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
539
+ },
540
+ "title": {
541
+ "type": "string",
542
+ "const": "Email Field"
543
+ },
544
+ "usageDescription": {
545
+ "type": "string",
546
+ "const": "For questions that require require email address(es)."
547
+ }
548
+ },
549
+ "required": [
550
+ "schemaVersion"
551
+ ],
552
+ "additionalProperties": false
304
553
  }
305
554
  },
306
555
  "required": [
@@ -334,7 +583,23 @@
334
583
  "additionalProperties": false
335
584
  },
336
585
  "meta": {
337
- "$ref": "#/definitions/TableQuestion/properties/meta"
586
+ "type": "object",
587
+ "properties": {
588
+ "schemaVersion": {
589
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
590
+ },
591
+ "title": {
592
+ "type": "string",
593
+ "const": "Not yet implemented"
594
+ },
595
+ "usageDescription": {
596
+ "type": "string"
597
+ }
598
+ },
599
+ "required": [
600
+ "schemaVersion"
601
+ ],
602
+ "additionalProperties": false
338
603
  },
339
604
  "graphQL": {
340
605
  "type": "object",
@@ -362,7 +627,7 @@
362
627
  }
363
628
  },
364
629
  "localQueryId": {
365
- "type": "string"
630
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/0/properties/graphQL/properties/localQueryId"
366
631
  },
367
632
  "query": {
368
633
  "type": "string"
@@ -435,19 +700,36 @@
435
700
  "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
436
701
  },
437
702
  "max": {
438
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes/properties/max"
703
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/max"
439
704
  },
440
705
  "min": {
441
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes/properties/min"
706
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/min"
442
707
  },
443
708
  "step": {
444
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/attributes/properties/step"
709
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/step"
445
710
  }
446
711
  },
447
712
  "additionalProperties": false
448
713
  },
449
714
  "meta": {
450
- "$ref": "#/definitions/TableQuestion/properties/meta"
715
+ "type": "object",
716
+ "properties": {
717
+ "schemaVersion": {
718
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
719
+ },
720
+ "title": {
721
+ "type": "string",
722
+ "const": "Number Field"
723
+ },
724
+ "usageDescription": {
725
+ "type": "string",
726
+ "const": "For questions that require a single numeric value."
727
+ }
728
+ },
729
+ "required": [
730
+ "schemaVersion"
731
+ ],
732
+ "additionalProperties": false
451
733
  }
452
734
  },
453
735
  "required": [
@@ -463,10 +745,27 @@
463
745
  "const": "radioButtons"
464
746
  },
465
747
  "attributes": {
466
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/attributes"
748
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes"
467
749
  },
468
750
  "meta": {
469
- "$ref": "#/definitions/TableQuestion/properties/meta"
751
+ "type": "object",
752
+ "properties": {
753
+ "schemaVersion": {
754
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
755
+ },
756
+ "title": {
757
+ "type": "string",
758
+ "const": "Radio Buttons"
759
+ },
760
+ "usageDescription": {
761
+ "type": "string",
762
+ "const": "For multiple choice questions where users select just one option."
763
+ }
764
+ },
765
+ "required": [
766
+ "schemaVersion"
767
+ ],
768
+ "additionalProperties": false
470
769
  },
471
770
  "options": {
472
771
  "type": "array",
@@ -474,19 +773,16 @@
474
773
  "type": "object",
475
774
  "properties": {
476
775
  "label": {
477
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/options/items/properties/label"
776
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/options/items/properties/label"
478
777
  },
479
778
  "value": {
480
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/options/items/properties/value"
779
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/2/properties/options/items/properties/value"
481
780
  },
482
781
  "selected": {
483
- "type": "boolean"
782
+ "type": "boolean",
783
+ "default": false
484
784
  }
485
785
  },
486
- "required": [
487
- "label",
488
- "value"
489
- ],
490
786
  "additionalProperties": false
491
787
  }
492
788
  }
@@ -517,23 +813,42 @@
517
813
  "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
518
814
  },
519
815
  "multiple": {
520
- "type": "boolean"
816
+ "type": "boolean",
817
+ "default": false
521
818
  }
522
819
  },
523
820
  "additionalProperties": false
524
821
  },
525
822
  "meta": {
526
- "$ref": "#/definitions/TableQuestion/properties/meta"
823
+ "type": "object",
824
+ "properties": {
825
+ "schemaVersion": {
826
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
827
+ },
828
+ "title": {
829
+ "type": "string",
830
+ "const": "Select Box"
831
+ },
832
+ "usageDescription": {
833
+ "type": "string",
834
+ "const": "For questions where users select one option from a list."
835
+ }
836
+ },
837
+ "required": [
838
+ "schemaVersion"
839
+ ],
840
+ "additionalProperties": false
527
841
  },
528
842
  "options": {
529
843
  "type": "array",
530
844
  "items": {
531
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/8/properties/options/items"
845
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/9/properties/options/items"
532
846
  }
533
847
  }
534
848
  },
535
849
  "required": [
536
850
  "type",
851
+ "attributes",
537
852
  "options"
538
853
  ],
539
854
  "additionalProperties": false
@@ -558,7 +873,8 @@
558
873
  "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
559
874
  },
560
875
  "cols": {
561
- "type": "number"
876
+ "type": "number",
877
+ "default": 20
562
878
  },
563
879
  "maxLength": {
564
880
  "type": "number"
@@ -567,7 +883,12 @@
567
883
  "type": "number"
568
884
  },
569
885
  "rows": {
570
- "type": "number"
886
+ "type": "number",
887
+ "default": 2
888
+ },
889
+ "asRichText": {
890
+ "type": "boolean",
891
+ "default": true
571
892
  }
572
893
  },
573
894
  "additionalProperties": false
@@ -578,8 +899,13 @@
578
899
  "schemaVersion": {
579
900
  "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
580
901
  },
581
- "asRichText": {
582
- "type": "boolean"
902
+ "title": {
903
+ "type": "string",
904
+ "const": "Text Area"
905
+ },
906
+ "usageDescription": {
907
+ "type": "string",
908
+ "const": "For questions that require longer answers, you can select formatting options too."
583
909
  }
584
910
  },
585
911
  "required": [
@@ -589,8 +915,7 @@
589
915
  }
590
916
  },
591
917
  "required": [
592
- "type",
593
- "meta"
918
+ "type"
594
919
  ],
595
920
  "additionalProperties": false
596
921
  },
@@ -614,19 +939,36 @@
614
939
  "$ref": "#/definitions/TableQuestion/properties/attributes/properties/labelTranslationKey"
615
940
  },
616
941
  "maxLength": {
617
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/5/properties/attributes/properties/maxLength"
942
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/6/properties/attributes/properties/maxLength"
618
943
  },
619
944
  "minLength": {
620
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/5/properties/attributes/properties/minLength"
945
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/6/properties/attributes/properties/minLength"
621
946
  },
622
947
  "pattern": {
623
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/5/properties/attributes/properties/pattern"
948
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/6/properties/attributes/properties/pattern"
624
949
  }
625
950
  },
626
951
  "additionalProperties": false
627
952
  },
628
953
  "meta": {
629
- "$ref": "#/definitions/TableQuestion/properties/meta"
954
+ "type": "object",
955
+ "properties": {
956
+ "schemaVersion": {
957
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
958
+ },
959
+ "title": {
960
+ "type": "string",
961
+ "const": "Text Field"
962
+ },
963
+ "usageDescription": {
964
+ "type": "string",
965
+ "const": "For questions that require short, simple answers."
966
+ }
967
+ },
968
+ "required": [
969
+ "schemaVersion"
970
+ ],
971
+ "additionalProperties": false
630
972
  }
631
973
  },
632
974
  "required": [
@@ -634,29 +976,6 @@
634
976
  ],
635
977
  "additionalProperties": false
636
978
  },
637
- {
638
- "type": "object",
639
- "properties": {
640
- "type": {
641
- "type": "string",
642
- "const": "typeaheadSearch"
643
- },
644
- "attributes": {
645
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/1/properties/attributes"
646
- },
647
- "meta": {
648
- "$ref": "#/definitions/TableQuestion/properties/meta"
649
- },
650
- "graphQL": {
651
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/6/properties/graphQL"
652
- }
653
- },
654
- "required": [
655
- "type",
656
- "graphQL"
657
- ],
658
- "additionalProperties": false
659
- },
660
979
  {
661
980
  "type": "object",
662
981
  "properties": {
@@ -665,10 +984,27 @@
665
984
  "const": "url"
666
985
  },
667
986
  "attributes": {
668
- "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/11/properties/attributes"
987
+ "$ref": "#/definitions/TableQuestion/properties/columns/items/properties/content/anyOf/12/properties/attributes"
669
988
  },
670
989
  "meta": {
671
- "$ref": "#/definitions/TableQuestion/properties/meta"
990
+ "type": "object",
991
+ "properties": {
992
+ "schemaVersion": {
993
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
994
+ },
995
+ "title": {
996
+ "type": "string",
997
+ "const": "URL Field"
998
+ },
999
+ "usageDescription": {
1000
+ "type": "string",
1001
+ "const": "For questions that require a website, DOI or other URL."
1002
+ }
1003
+ },
1004
+ "required": [
1005
+ "schemaVersion"
1006
+ ],
1007
+ "additionalProperties": false
672
1008
  }
673
1009
  },
674
1010
  "required": [