@dmptool/types 2.0.0 → 2.2.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 (144) hide show
  1. package/README.md +70 -1
  2. package/dist/answers/__tests__/defaults.spec.js +80 -21
  3. package/dist/answers/answer.d.ts +2 -0
  4. package/dist/answers/answer.js +4 -2
  5. package/dist/answers/dateAnswers.d.ts +4 -0
  6. package/dist/answers/graphQLAnswers.d.ts +8 -0
  7. package/dist/answers/index.d.ts +37 -0
  8. package/dist/answers/numberAnswers.d.ts +8 -0
  9. package/dist/answers/optionBasedAnswers.d.ts +10 -0
  10. package/dist/answers/tableAnswers.d.ts +94 -0
  11. package/dist/answers/textAnswers.d.ts +8 -0
  12. package/dist/dmp/__tests__/commonStandard.spec.d.ts +1 -0
  13. package/dist/dmp/__tests__/commonStandard.spec.js +210 -0
  14. package/dist/dmp/__tests__/extensions.spec.d.ts +1 -0
  15. package/dist/dmp/__tests__/extensions.spec.js +99 -0
  16. package/dist/dmp/extension.d.ts +1117 -0
  17. package/dist/dmp/extension.js +234 -0
  18. package/dist/dmp/index.d.ts +9 -0
  19. package/dist/dmp/index.js +69 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +1 -0
  22. package/dist/questions/__tests__/defaults.spec.js +2 -2
  23. package/dist/questions/__tests__/optionBasedQuestions.spec.js +8 -4
  24. package/dist/questions/dateQuestions.d.ts +4 -0
  25. package/dist/questions/dateQuestions.js +2 -2
  26. package/dist/questions/index.d.ts +30 -22
  27. package/dist/questions/numberQuestions.d.ts +8 -0
  28. package/dist/questions/numberQuestions.js +4 -4
  29. package/dist/questions/optionBasedQuestions.d.ts +10 -0
  30. package/dist/questions/optionBasedQuestions.js +5 -5
  31. package/dist/questions/tableQuestions.d.ts +393 -25
  32. package/dist/questions/tableQuestions.js +3 -2
  33. package/dist/questions/textQuestions.d.ts +4 -0
  34. package/dist/questions/textQuestions.js +2 -2
  35. package/dist/schemas/affiliationSearchAnswer.schema.json +50 -0
  36. package/dist/schemas/affiliationSearchQuestion.schema.json +142 -0
  37. package/dist/schemas/anyAnswer.schema.json +1537 -0
  38. package/dist/schemas/anyQuestion.schema.json +4828 -0
  39. package/dist/schemas/anyTableColumnAnswer.schema.json +741 -0
  40. package/dist/schemas/anyTableColumnQuestion.schema.json +1560 -0
  41. package/dist/schemas/booleanAnswer.schema.json +36 -0
  42. package/dist/schemas/booleanQuestion.schema.json +55 -0
  43. package/dist/schemas/checkboxesAnswer.schema.json +41 -0
  44. package/dist/schemas/checkboxesQuestion.schema.json +80 -0
  45. package/dist/schemas/currencyAnswer.schema.json +36 -0
  46. package/dist/schemas/currencyQuestion.schema.json +73 -0
  47. package/dist/schemas/dateAnswer.schema.json +36 -0
  48. package/dist/schemas/datePickerAnswer.schema.json +37 -0
  49. package/dist/schemas/datePickerQuestion.schema.json +52 -0
  50. package/dist/schemas/dateQuestion.schema.json +66 -0
  51. package/dist/schemas/dateRangeAnswer.schema.json +50 -0
  52. package/dist/schemas/dateRangeQuestion.schema.json +124 -0
  53. package/dist/schemas/dmp.schema.json +2070 -0
  54. package/dist/schemas/dmpExtension.schema.json +1985 -0
  55. package/dist/schemas/emailAnswer.schema.json +36 -0
  56. package/dist/schemas/emailQuestion.schema.json +71 -0
  57. package/dist/schemas/filteredSearchAnswer.schema.json +40 -0
  58. package/dist/schemas/filteredSearchQuestion.schema.json +130 -0
  59. package/dist/schemas/licenseSearchAnswer.schema.json +54 -0
  60. package/dist/schemas/licenseSearchQuestion.schema.json +140 -0
  61. package/dist/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  62. package/dist/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  63. package/dist/schemas/multiselectBoxAnswer.schema.json +41 -0
  64. package/dist/schemas/multiselectBoxQuestion.schema.json +87 -0
  65. package/dist/schemas/numberAnswer.schema.json +36 -0
  66. package/dist/schemas/numberQuestion.schema.json +68 -0
  67. package/dist/schemas/numberRangeAnswer.schema.json +50 -0
  68. package/dist/schemas/numberRangeQuestion.schema.json +128 -0
  69. package/dist/schemas/numberWithContextAnswer.schema.json +50 -0
  70. package/dist/schemas/numberWithContextQuestion.schema.json +98 -0
  71. package/dist/schemas/radioButtonsAnswer.schema.json +36 -0
  72. package/dist/schemas/radioButtonsQuestion.schema.json +80 -0
  73. package/dist/schemas/repositorySearchAnswer.schema.json +54 -0
  74. package/dist/schemas/repositorySearchQuestion.schema.json +140 -0
  75. package/dist/schemas/researchOutputTableAnswer.schema.json +20065 -0
  76. package/dist/schemas/researchOutputTableQuestion.schema.json +140 -0
  77. package/dist/schemas/selectBoxAnswer.schema.json +36 -0
  78. package/dist/schemas/selectBoxQuestion.schema.json +87 -0
  79. package/dist/schemas/tableAnswer.schema.json +797 -0
  80. package/dist/schemas/tableQuestion.schema.json +1662 -0
  81. package/dist/schemas/textAnswer.schema.json +36 -0
  82. package/dist/schemas/textAreaAnswer.schema.json +36 -0
  83. package/dist/schemas/textAreaQuestion.schema.json +78 -0
  84. package/dist/schemas/textQuestion.schema.json +63 -0
  85. package/dist/schemas/typeaheadSearchAnswer.schema.json +37 -0
  86. package/dist/schemas/typeaheadSearchQuestion.schema.json +120 -0
  87. package/dist/schemas/urlAnswer.schema.json +36 -0
  88. package/dist/schemas/urlQuestion.schema.json +66 -0
  89. package/package.json +12 -4
  90. package/schemas/.placeholder +0 -0
  91. package/schemas/affiliationSearchAnswer.schema.json +50 -0
  92. package/schemas/affiliationSearchQuestion.schema.json +142 -0
  93. package/schemas/anyAnswer.schema.json +1537 -0
  94. package/schemas/anyQuestion.schema.json +4828 -0
  95. package/schemas/anyTableColumnAnswer.schema.json +741 -0
  96. package/schemas/anyTableColumnQuestion.schema.json +1560 -0
  97. package/schemas/booleanAnswer.schema.json +36 -0
  98. package/schemas/booleanQuestion.schema.json +55 -0
  99. package/schemas/checkboxesAnswer.schema.json +41 -0
  100. package/schemas/checkboxesQuestion.schema.json +80 -0
  101. package/schemas/currencyAnswer.schema.json +36 -0
  102. package/schemas/currencyQuestion.schema.json +73 -0
  103. package/schemas/dateAnswer.schema.json +36 -0
  104. package/schemas/datePickerAnswer.schema.json +37 -0
  105. package/schemas/datePickerQuestion.schema.json +52 -0
  106. package/schemas/dateQuestion.schema.json +66 -0
  107. package/schemas/dateRangeAnswer.schema.json +50 -0
  108. package/schemas/dateRangeQuestion.schema.json +124 -0
  109. package/schemas/dmp.schema.json +2070 -0
  110. package/schemas/dmpExtension.schema.json +1985 -0
  111. package/schemas/emailAnswer.schema.json +36 -0
  112. package/schemas/emailQuestion.schema.json +71 -0
  113. package/schemas/filteredSearchAnswer.schema.json +40 -0
  114. package/schemas/filteredSearchQuestion.schema.json +130 -0
  115. package/schemas/licenseSearchAnswer.schema.json +54 -0
  116. package/schemas/licenseSearchQuestion.schema.json +140 -0
  117. package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  118. package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  119. package/schemas/multiselectBoxAnswer.schema.json +41 -0
  120. package/schemas/multiselectBoxQuestion.schema.json +87 -0
  121. package/schemas/numberAnswer.schema.json +36 -0
  122. package/schemas/numberQuestion.schema.json +68 -0
  123. package/schemas/numberRangeAnswer.schema.json +50 -0
  124. package/schemas/numberRangeQuestion.schema.json +128 -0
  125. package/schemas/numberWithContextAnswer.schema.json +50 -0
  126. package/schemas/numberWithContextQuestion.schema.json +98 -0
  127. package/schemas/radioButtonsAnswer.schema.json +36 -0
  128. package/schemas/radioButtonsQuestion.schema.json +80 -0
  129. package/schemas/repositorySearchAnswer.schema.json +54 -0
  130. package/schemas/repositorySearchQuestion.schema.json +140 -0
  131. package/schemas/researchOutputTableAnswer.schema.json +20065 -0
  132. package/schemas/researchOutputTableQuestion.schema.json +140 -0
  133. package/schemas/selectBoxAnswer.schema.json +36 -0
  134. package/schemas/selectBoxQuestion.schema.json +87 -0
  135. package/schemas/tableAnswer.schema.json +797 -0
  136. package/schemas/tableQuestion.schema.json +1662 -0
  137. package/schemas/textAnswer.schema.json +36 -0
  138. package/schemas/textAreaAnswer.schema.json +36 -0
  139. package/schemas/textAreaQuestion.schema.json +78 -0
  140. package/schemas/textQuestion.schema.json +63 -0
  141. package/schemas/typeaheadSearchAnswer.schema.json +37 -0
  142. package/schemas/typeaheadSearchQuestion.schema.json +120 -0
  143. package/schemas/urlAnswer.schema.json +36 -0
  144. package/schemas/urlQuestion.schema.json +66 -0
@@ -0,0 +1,1537 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "const": "affiliationSearch"
10
+ },
11
+ "meta": {
12
+ "type": "object",
13
+ "properties": {
14
+ "schemaVersion": {
15
+ "default": "1.0",
16
+ "type": "string"
17
+ }
18
+ },
19
+ "required": [
20
+ "schemaVersion"
21
+ ],
22
+ "additionalProperties": false
23
+ },
24
+ "comment": {
25
+ "type": "string"
26
+ },
27
+ "answer": {
28
+ "type": "object",
29
+ "properties": {
30
+ "affiliationId": {
31
+ "default": "",
32
+ "type": "string"
33
+ },
34
+ "affiliationName": {
35
+ "default": "",
36
+ "type": "string"
37
+ }
38
+ },
39
+ "required": [
40
+ "affiliationId",
41
+ "affiliationName"
42
+ ],
43
+ "additionalProperties": false
44
+ }
45
+ },
46
+ "required": [
47
+ "type",
48
+ "meta",
49
+ "answer"
50
+ ],
51
+ "additionalProperties": false
52
+ },
53
+ {
54
+ "type": "object",
55
+ "properties": {
56
+ "type": {
57
+ "type": "string",
58
+ "const": "boolean"
59
+ },
60
+ "meta": {
61
+ "type": "object",
62
+ "properties": {
63
+ "schemaVersion": {
64
+ "default": "1.0",
65
+ "type": "string"
66
+ }
67
+ },
68
+ "required": [
69
+ "schemaVersion"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "comment": {
74
+ "type": "string"
75
+ },
76
+ "answer": {
77
+ "default": false,
78
+ "type": "boolean"
79
+ }
80
+ },
81
+ "required": [
82
+ "type",
83
+ "meta",
84
+ "answer"
85
+ ],
86
+ "additionalProperties": false
87
+ },
88
+ {
89
+ "type": "object",
90
+ "properties": {
91
+ "type": {
92
+ "type": "string",
93
+ "const": "checkBoxes"
94
+ },
95
+ "meta": {
96
+ "type": "object",
97
+ "properties": {
98
+ "schemaVersion": {
99
+ "default": "1.0",
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "schemaVersion"
105
+ ],
106
+ "additionalProperties": false
107
+ },
108
+ "comment": {
109
+ "type": "string"
110
+ },
111
+ "answer": {
112
+ "default": [
113
+ ""
114
+ ],
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ },
121
+ "required": [
122
+ "type",
123
+ "meta",
124
+ "answer"
125
+ ],
126
+ "additionalProperties": false
127
+ },
128
+ {
129
+ "type": "object",
130
+ "properties": {
131
+ "type": {
132
+ "type": "string",
133
+ "const": "currency"
134
+ },
135
+ "meta": {
136
+ "type": "object",
137
+ "properties": {
138
+ "schemaVersion": {
139
+ "default": "1.0",
140
+ "type": "string"
141
+ }
142
+ },
143
+ "required": [
144
+ "schemaVersion"
145
+ ],
146
+ "additionalProperties": false
147
+ },
148
+ "comment": {
149
+ "type": "string"
150
+ },
151
+ "answer": {
152
+ "default": 0,
153
+ "type": "number"
154
+ }
155
+ },
156
+ "required": [
157
+ "type",
158
+ "meta",
159
+ "answer"
160
+ ],
161
+ "additionalProperties": false
162
+ },
163
+ {
164
+ "type": "object",
165
+ "properties": {
166
+ "type": {
167
+ "type": "string",
168
+ "const": "date"
169
+ },
170
+ "meta": {
171
+ "type": "object",
172
+ "properties": {
173
+ "schemaVersion": {
174
+ "default": "1.0",
175
+ "type": "string"
176
+ }
177
+ },
178
+ "required": [
179
+ "schemaVersion"
180
+ ],
181
+ "additionalProperties": false
182
+ },
183
+ "comment": {
184
+ "type": "string"
185
+ },
186
+ "answer": {
187
+ "default": "",
188
+ "type": "string"
189
+ }
190
+ },
191
+ "required": [
192
+ "type",
193
+ "meta",
194
+ "answer"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ {
199
+ "type": "object",
200
+ "properties": {
201
+ "type": {
202
+ "type": "string",
203
+ "const": "dateRange"
204
+ },
205
+ "meta": {
206
+ "type": "object",
207
+ "properties": {
208
+ "schemaVersion": {
209
+ "default": "1.0",
210
+ "type": "string"
211
+ }
212
+ },
213
+ "required": [
214
+ "schemaVersion"
215
+ ],
216
+ "additionalProperties": false
217
+ },
218
+ "comment": {
219
+ "type": "string"
220
+ },
221
+ "answer": {
222
+ "type": "object",
223
+ "properties": {
224
+ "start": {
225
+ "default": "",
226
+ "type": "string"
227
+ },
228
+ "end": {
229
+ "default": "",
230
+ "type": "string"
231
+ }
232
+ },
233
+ "required": [
234
+ "start",
235
+ "end"
236
+ ],
237
+ "additionalProperties": false
238
+ }
239
+ },
240
+ "required": [
241
+ "type",
242
+ "meta",
243
+ "answer"
244
+ ],
245
+ "additionalProperties": false
246
+ },
247
+ {
248
+ "type": "object",
249
+ "properties": {
250
+ "type": {
251
+ "type": "string",
252
+ "const": "email"
253
+ },
254
+ "meta": {
255
+ "type": "object",
256
+ "properties": {
257
+ "schemaVersion": {
258
+ "default": "1.0",
259
+ "type": "string"
260
+ }
261
+ },
262
+ "required": [
263
+ "schemaVersion"
264
+ ],
265
+ "additionalProperties": false
266
+ },
267
+ "comment": {
268
+ "type": "string"
269
+ },
270
+ "answer": {
271
+ "default": "",
272
+ "type": "string"
273
+ }
274
+ },
275
+ "required": [
276
+ "type",
277
+ "meta",
278
+ "answer"
279
+ ],
280
+ "additionalProperties": false
281
+ },
282
+ {
283
+ "type": "object",
284
+ "properties": {
285
+ "type": {
286
+ "type": "string",
287
+ "const": "licenseSearch"
288
+ },
289
+ "meta": {
290
+ "type": "object",
291
+ "properties": {
292
+ "schemaVersion": {
293
+ "default": "1.0",
294
+ "type": "string"
295
+ }
296
+ },
297
+ "required": [
298
+ "schemaVersion"
299
+ ],
300
+ "additionalProperties": false
301
+ },
302
+ "comment": {
303
+ "type": "string"
304
+ },
305
+ "answer": {
306
+ "default": [],
307
+ "type": "array",
308
+ "items": {
309
+ "type": "object",
310
+ "properties": {
311
+ "licenseId": {
312
+ "default": "",
313
+ "type": "string"
314
+ },
315
+ "licenseName": {
316
+ "default": "",
317
+ "type": "string"
318
+ }
319
+ },
320
+ "required": [
321
+ "licenseId",
322
+ "licenseName"
323
+ ],
324
+ "additionalProperties": false
325
+ }
326
+ }
327
+ },
328
+ "required": [
329
+ "type",
330
+ "meta",
331
+ "answer"
332
+ ],
333
+ "additionalProperties": false
334
+ },
335
+ {
336
+ "type": "object",
337
+ "properties": {
338
+ "type": {
339
+ "type": "string",
340
+ "const": "metadataStandardSearch"
341
+ },
342
+ "meta": {
343
+ "type": "object",
344
+ "properties": {
345
+ "schemaVersion": {
346
+ "default": "1.0",
347
+ "type": "string"
348
+ }
349
+ },
350
+ "required": [
351
+ "schemaVersion"
352
+ ],
353
+ "additionalProperties": false
354
+ },
355
+ "comment": {
356
+ "type": "string"
357
+ },
358
+ "answer": {
359
+ "default": [],
360
+ "type": "array",
361
+ "items": {
362
+ "type": "object",
363
+ "properties": {
364
+ "metadataStandardId": {
365
+ "default": "",
366
+ "type": "string"
367
+ },
368
+ "metadataStandardName": {
369
+ "default": "",
370
+ "type": "string"
371
+ }
372
+ },
373
+ "required": [
374
+ "metadataStandardId",
375
+ "metadataStandardName"
376
+ ],
377
+ "additionalProperties": false
378
+ }
379
+ }
380
+ },
381
+ "required": [
382
+ "type",
383
+ "meta",
384
+ "answer"
385
+ ],
386
+ "additionalProperties": false
387
+ },
388
+ {
389
+ "type": "object",
390
+ "properties": {
391
+ "type": {
392
+ "type": "string",
393
+ "const": "multiselectBox"
394
+ },
395
+ "meta": {
396
+ "type": "object",
397
+ "properties": {
398
+ "schemaVersion": {
399
+ "default": "1.0",
400
+ "type": "string"
401
+ }
402
+ },
403
+ "required": [
404
+ "schemaVersion"
405
+ ],
406
+ "additionalProperties": false
407
+ },
408
+ "comment": {
409
+ "type": "string"
410
+ },
411
+ "answer": {
412
+ "default": [
413
+ ""
414
+ ],
415
+ "type": "array",
416
+ "items": {
417
+ "type": "string"
418
+ }
419
+ }
420
+ },
421
+ "required": [
422
+ "type",
423
+ "meta",
424
+ "answer"
425
+ ],
426
+ "additionalProperties": false
427
+ },
428
+ {
429
+ "type": "object",
430
+ "properties": {
431
+ "type": {
432
+ "type": "string",
433
+ "const": "number"
434
+ },
435
+ "meta": {
436
+ "type": "object",
437
+ "properties": {
438
+ "schemaVersion": {
439
+ "default": "1.0",
440
+ "type": "string"
441
+ }
442
+ },
443
+ "required": [
444
+ "schemaVersion"
445
+ ],
446
+ "additionalProperties": false
447
+ },
448
+ "comment": {
449
+ "type": "string"
450
+ },
451
+ "answer": {
452
+ "default": 0,
453
+ "type": "number"
454
+ }
455
+ },
456
+ "required": [
457
+ "type",
458
+ "meta",
459
+ "answer"
460
+ ],
461
+ "additionalProperties": false
462
+ },
463
+ {
464
+ "type": "object",
465
+ "properties": {
466
+ "type": {
467
+ "type": "string",
468
+ "const": "numberRange"
469
+ },
470
+ "meta": {
471
+ "type": "object",
472
+ "properties": {
473
+ "schemaVersion": {
474
+ "default": "1.0",
475
+ "type": "string"
476
+ }
477
+ },
478
+ "required": [
479
+ "schemaVersion"
480
+ ],
481
+ "additionalProperties": false
482
+ },
483
+ "comment": {
484
+ "type": "string"
485
+ },
486
+ "answer": {
487
+ "type": "object",
488
+ "properties": {
489
+ "start": {
490
+ "default": 0,
491
+ "type": "number"
492
+ },
493
+ "end": {
494
+ "default": 0,
495
+ "type": "number"
496
+ }
497
+ },
498
+ "required": [
499
+ "start",
500
+ "end"
501
+ ],
502
+ "additionalProperties": false
503
+ }
504
+ },
505
+ "required": [
506
+ "type",
507
+ "meta",
508
+ "answer"
509
+ ],
510
+ "additionalProperties": false
511
+ },
512
+ {
513
+ "type": "object",
514
+ "properties": {
515
+ "type": {
516
+ "type": "string",
517
+ "const": "radioButtons"
518
+ },
519
+ "meta": {
520
+ "type": "object",
521
+ "properties": {
522
+ "schemaVersion": {
523
+ "default": "1.0",
524
+ "type": "string"
525
+ }
526
+ },
527
+ "required": [
528
+ "schemaVersion"
529
+ ],
530
+ "additionalProperties": false
531
+ },
532
+ "comment": {
533
+ "type": "string"
534
+ },
535
+ "answer": {
536
+ "default": "",
537
+ "type": "string"
538
+ }
539
+ },
540
+ "required": [
541
+ "type",
542
+ "meta",
543
+ "answer"
544
+ ],
545
+ "additionalProperties": false
546
+ },
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "type": {
551
+ "type": "string",
552
+ "const": "repositorySearch"
553
+ },
554
+ "meta": {
555
+ "type": "object",
556
+ "properties": {
557
+ "schemaVersion": {
558
+ "default": "1.0",
559
+ "type": "string"
560
+ }
561
+ },
562
+ "required": [
563
+ "schemaVersion"
564
+ ],
565
+ "additionalProperties": false
566
+ },
567
+ "comment": {
568
+ "type": "string"
569
+ },
570
+ "answer": {
571
+ "default": [],
572
+ "type": "array",
573
+ "items": {
574
+ "type": "object",
575
+ "properties": {
576
+ "repositoryId": {
577
+ "default": "",
578
+ "type": "string"
579
+ },
580
+ "repositoryName": {
581
+ "default": "",
582
+ "type": "string"
583
+ }
584
+ },
585
+ "required": [
586
+ "repositoryId",
587
+ "repositoryName"
588
+ ],
589
+ "additionalProperties": false
590
+ }
591
+ }
592
+ },
593
+ "required": [
594
+ "type",
595
+ "meta",
596
+ "answer"
597
+ ],
598
+ "additionalProperties": false
599
+ },
600
+ {
601
+ "type": "object",
602
+ "properties": {
603
+ "type": {
604
+ "type": "string",
605
+ "const": "selectBox"
606
+ },
607
+ "meta": {
608
+ "type": "object",
609
+ "properties": {
610
+ "schemaVersion": {
611
+ "default": "1.0",
612
+ "type": "string"
613
+ }
614
+ },
615
+ "required": [
616
+ "schemaVersion"
617
+ ],
618
+ "additionalProperties": false
619
+ },
620
+ "comment": {
621
+ "type": "string"
622
+ },
623
+ "answer": {
624
+ "default": "",
625
+ "type": "string"
626
+ }
627
+ },
628
+ "required": [
629
+ "type",
630
+ "meta",
631
+ "answer"
632
+ ],
633
+ "additionalProperties": false
634
+ },
635
+ {
636
+ "type": "object",
637
+ "properties": {
638
+ "type": {
639
+ "type": "string",
640
+ "const": "table"
641
+ },
642
+ "meta": {
643
+ "type": "object",
644
+ "properties": {
645
+ "schemaVersion": {
646
+ "default": "1.0",
647
+ "type": "string"
648
+ }
649
+ },
650
+ "required": [
651
+ "schemaVersion"
652
+ ],
653
+ "additionalProperties": false
654
+ },
655
+ "comment": {
656
+ "type": "string"
657
+ },
658
+ "columnHeadings": {
659
+ "default": [
660
+ "Column A"
661
+ ],
662
+ "type": "array",
663
+ "items": {
664
+ "type": "string"
665
+ }
666
+ },
667
+ "answer": {
668
+ "type": "array",
669
+ "items": {
670
+ "type": "object",
671
+ "properties": {
672
+ "columns": {
673
+ "type": "array",
674
+ "items": {
675
+ "oneOf": [
676
+ {
677
+ "type": "object",
678
+ "properties": {
679
+ "type": {
680
+ "type": "string",
681
+ "const": "affiliationSearch"
682
+ },
683
+ "meta": {
684
+ "type": "object",
685
+ "properties": {
686
+ "schemaVersion": {
687
+ "default": "1.0",
688
+ "type": "string"
689
+ }
690
+ },
691
+ "required": [
692
+ "schemaVersion"
693
+ ],
694
+ "additionalProperties": false
695
+ },
696
+ "comment": {
697
+ "type": "string"
698
+ },
699
+ "answer": {
700
+ "type": "object",
701
+ "properties": {
702
+ "affiliationId": {
703
+ "default": "",
704
+ "type": "string"
705
+ },
706
+ "affiliationName": {
707
+ "default": "",
708
+ "type": "string"
709
+ }
710
+ },
711
+ "required": [
712
+ "affiliationId",
713
+ "affiliationName"
714
+ ],
715
+ "additionalProperties": false
716
+ }
717
+ },
718
+ "required": [
719
+ "type",
720
+ "meta",
721
+ "answer"
722
+ ],
723
+ "additionalProperties": false
724
+ },
725
+ {
726
+ "type": "object",
727
+ "properties": {
728
+ "type": {
729
+ "type": "string",
730
+ "const": "boolean"
731
+ },
732
+ "meta": {
733
+ "type": "object",
734
+ "properties": {
735
+ "schemaVersion": {
736
+ "default": "1.0",
737
+ "type": "string"
738
+ }
739
+ },
740
+ "required": [
741
+ "schemaVersion"
742
+ ],
743
+ "additionalProperties": false
744
+ },
745
+ "comment": {
746
+ "type": "string"
747
+ },
748
+ "answer": {
749
+ "default": false,
750
+ "type": "boolean"
751
+ }
752
+ },
753
+ "required": [
754
+ "type",
755
+ "meta",
756
+ "answer"
757
+ ],
758
+ "additionalProperties": false
759
+ },
760
+ {
761
+ "type": "object",
762
+ "properties": {
763
+ "type": {
764
+ "type": "string",
765
+ "const": "checkBoxes"
766
+ },
767
+ "meta": {
768
+ "type": "object",
769
+ "properties": {
770
+ "schemaVersion": {
771
+ "default": "1.0",
772
+ "type": "string"
773
+ }
774
+ },
775
+ "required": [
776
+ "schemaVersion"
777
+ ],
778
+ "additionalProperties": false
779
+ },
780
+ "comment": {
781
+ "type": "string"
782
+ },
783
+ "answer": {
784
+ "default": [
785
+ ""
786
+ ],
787
+ "type": "array",
788
+ "items": {
789
+ "type": "string"
790
+ }
791
+ }
792
+ },
793
+ "required": [
794
+ "type",
795
+ "meta",
796
+ "answer"
797
+ ],
798
+ "additionalProperties": false
799
+ },
800
+ {
801
+ "type": "object",
802
+ "properties": {
803
+ "type": {
804
+ "type": "string",
805
+ "const": "currency"
806
+ },
807
+ "meta": {
808
+ "type": "object",
809
+ "properties": {
810
+ "schemaVersion": {
811
+ "default": "1.0",
812
+ "type": "string"
813
+ }
814
+ },
815
+ "required": [
816
+ "schemaVersion"
817
+ ],
818
+ "additionalProperties": false
819
+ },
820
+ "comment": {
821
+ "type": "string"
822
+ },
823
+ "answer": {
824
+ "default": 0,
825
+ "type": "number"
826
+ }
827
+ },
828
+ "required": [
829
+ "type",
830
+ "meta",
831
+ "answer"
832
+ ],
833
+ "additionalProperties": false
834
+ },
835
+ {
836
+ "type": "object",
837
+ "properties": {
838
+ "type": {
839
+ "type": "string",
840
+ "const": "date"
841
+ },
842
+ "meta": {
843
+ "type": "object",
844
+ "properties": {
845
+ "schemaVersion": {
846
+ "default": "1.0",
847
+ "type": "string"
848
+ }
849
+ },
850
+ "required": [
851
+ "schemaVersion"
852
+ ],
853
+ "additionalProperties": false
854
+ },
855
+ "comment": {
856
+ "type": "string"
857
+ },
858
+ "answer": {
859
+ "default": "",
860
+ "type": "string"
861
+ }
862
+ },
863
+ "required": [
864
+ "type",
865
+ "meta",
866
+ "answer"
867
+ ],
868
+ "additionalProperties": false
869
+ },
870
+ {
871
+ "type": "object",
872
+ "properties": {
873
+ "type": {
874
+ "type": "string",
875
+ "const": "dateRange"
876
+ },
877
+ "meta": {
878
+ "type": "object",
879
+ "properties": {
880
+ "schemaVersion": {
881
+ "default": "1.0",
882
+ "type": "string"
883
+ }
884
+ },
885
+ "required": [
886
+ "schemaVersion"
887
+ ],
888
+ "additionalProperties": false
889
+ },
890
+ "comment": {
891
+ "type": "string"
892
+ },
893
+ "answer": {
894
+ "type": "object",
895
+ "properties": {
896
+ "start": {
897
+ "default": "",
898
+ "type": "string"
899
+ },
900
+ "end": {
901
+ "default": "",
902
+ "type": "string"
903
+ }
904
+ },
905
+ "required": [
906
+ "start",
907
+ "end"
908
+ ],
909
+ "additionalProperties": false
910
+ }
911
+ },
912
+ "required": [
913
+ "type",
914
+ "meta",
915
+ "answer"
916
+ ],
917
+ "additionalProperties": false
918
+ },
919
+ {
920
+ "type": "object",
921
+ "properties": {
922
+ "type": {
923
+ "type": "string",
924
+ "const": "email"
925
+ },
926
+ "meta": {
927
+ "type": "object",
928
+ "properties": {
929
+ "schemaVersion": {
930
+ "default": "1.0",
931
+ "type": "string"
932
+ }
933
+ },
934
+ "required": [
935
+ "schemaVersion"
936
+ ],
937
+ "additionalProperties": false
938
+ },
939
+ "comment": {
940
+ "type": "string"
941
+ },
942
+ "answer": {
943
+ "default": "",
944
+ "type": "string"
945
+ }
946
+ },
947
+ "required": [
948
+ "type",
949
+ "meta",
950
+ "answer"
951
+ ],
952
+ "additionalProperties": false
953
+ },
954
+ {
955
+ "type": "object",
956
+ "properties": {
957
+ "type": {
958
+ "type": "string",
959
+ "const": "licenseSearch"
960
+ },
961
+ "meta": {
962
+ "type": "object",
963
+ "properties": {
964
+ "schemaVersion": {
965
+ "default": "1.0",
966
+ "type": "string"
967
+ }
968
+ },
969
+ "required": [
970
+ "schemaVersion"
971
+ ],
972
+ "additionalProperties": false
973
+ },
974
+ "comment": {
975
+ "type": "string"
976
+ },
977
+ "answer": {
978
+ "default": [],
979
+ "type": "array",
980
+ "items": {
981
+ "type": "object",
982
+ "properties": {
983
+ "licenseId": {
984
+ "default": "",
985
+ "type": "string"
986
+ },
987
+ "licenseName": {
988
+ "default": "",
989
+ "type": "string"
990
+ }
991
+ },
992
+ "required": [
993
+ "licenseId",
994
+ "licenseName"
995
+ ],
996
+ "additionalProperties": false
997
+ }
998
+ }
999
+ },
1000
+ "required": [
1001
+ "type",
1002
+ "meta",
1003
+ "answer"
1004
+ ],
1005
+ "additionalProperties": false
1006
+ },
1007
+ {
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "type": {
1011
+ "type": "string",
1012
+ "const": "metadataStandardSearch"
1013
+ },
1014
+ "meta": {
1015
+ "type": "object",
1016
+ "properties": {
1017
+ "schemaVersion": {
1018
+ "default": "1.0",
1019
+ "type": "string"
1020
+ }
1021
+ },
1022
+ "required": [
1023
+ "schemaVersion"
1024
+ ],
1025
+ "additionalProperties": false
1026
+ },
1027
+ "comment": {
1028
+ "type": "string"
1029
+ },
1030
+ "answer": {
1031
+ "default": [],
1032
+ "type": "array",
1033
+ "items": {
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "metadataStandardId": {
1037
+ "default": "",
1038
+ "type": "string"
1039
+ },
1040
+ "metadataStandardName": {
1041
+ "default": "",
1042
+ "type": "string"
1043
+ }
1044
+ },
1045
+ "required": [
1046
+ "metadataStandardId",
1047
+ "metadataStandardName"
1048
+ ],
1049
+ "additionalProperties": false
1050
+ }
1051
+ }
1052
+ },
1053
+ "required": [
1054
+ "type",
1055
+ "meta",
1056
+ "answer"
1057
+ ],
1058
+ "additionalProperties": false
1059
+ },
1060
+ {
1061
+ "type": "object",
1062
+ "properties": {
1063
+ "type": {
1064
+ "type": "string",
1065
+ "const": "multiselectBox"
1066
+ },
1067
+ "meta": {
1068
+ "type": "object",
1069
+ "properties": {
1070
+ "schemaVersion": {
1071
+ "default": "1.0",
1072
+ "type": "string"
1073
+ }
1074
+ },
1075
+ "required": [
1076
+ "schemaVersion"
1077
+ ],
1078
+ "additionalProperties": false
1079
+ },
1080
+ "comment": {
1081
+ "type": "string"
1082
+ },
1083
+ "answer": {
1084
+ "default": [
1085
+ ""
1086
+ ],
1087
+ "type": "array",
1088
+ "items": {
1089
+ "type": "string"
1090
+ }
1091
+ }
1092
+ },
1093
+ "required": [
1094
+ "type",
1095
+ "meta",
1096
+ "answer"
1097
+ ],
1098
+ "additionalProperties": false
1099
+ },
1100
+ {
1101
+ "type": "object",
1102
+ "properties": {
1103
+ "type": {
1104
+ "type": "string",
1105
+ "const": "number"
1106
+ },
1107
+ "meta": {
1108
+ "type": "object",
1109
+ "properties": {
1110
+ "schemaVersion": {
1111
+ "default": "1.0",
1112
+ "type": "string"
1113
+ }
1114
+ },
1115
+ "required": [
1116
+ "schemaVersion"
1117
+ ],
1118
+ "additionalProperties": false
1119
+ },
1120
+ "comment": {
1121
+ "type": "string"
1122
+ },
1123
+ "answer": {
1124
+ "default": 0,
1125
+ "type": "number"
1126
+ }
1127
+ },
1128
+ "required": [
1129
+ "type",
1130
+ "meta",
1131
+ "answer"
1132
+ ],
1133
+ "additionalProperties": false
1134
+ },
1135
+ {
1136
+ "type": "object",
1137
+ "properties": {
1138
+ "type": {
1139
+ "type": "string",
1140
+ "const": "numberWithContext"
1141
+ },
1142
+ "meta": {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "schemaVersion": {
1146
+ "default": "1.0",
1147
+ "type": "string"
1148
+ }
1149
+ },
1150
+ "required": [
1151
+ "schemaVersion"
1152
+ ],
1153
+ "additionalProperties": false
1154
+ },
1155
+ "comment": {
1156
+ "type": "string"
1157
+ },
1158
+ "answer": {
1159
+ "type": "object",
1160
+ "properties": {
1161
+ "value": {
1162
+ "default": 0,
1163
+ "type": "number"
1164
+ },
1165
+ "context": {
1166
+ "default": "",
1167
+ "type": "string"
1168
+ }
1169
+ },
1170
+ "required": [
1171
+ "value",
1172
+ "context"
1173
+ ],
1174
+ "additionalProperties": false
1175
+ }
1176
+ },
1177
+ "required": [
1178
+ "type",
1179
+ "meta",
1180
+ "answer"
1181
+ ],
1182
+ "additionalProperties": false
1183
+ },
1184
+ {
1185
+ "type": "object",
1186
+ "properties": {
1187
+ "type": {
1188
+ "type": "string",
1189
+ "const": "radioButtons"
1190
+ },
1191
+ "meta": {
1192
+ "type": "object",
1193
+ "properties": {
1194
+ "schemaVersion": {
1195
+ "default": "1.0",
1196
+ "type": "string"
1197
+ }
1198
+ },
1199
+ "required": [
1200
+ "schemaVersion"
1201
+ ],
1202
+ "additionalProperties": false
1203
+ },
1204
+ "comment": {
1205
+ "type": "string"
1206
+ },
1207
+ "answer": {
1208
+ "default": "",
1209
+ "type": "string"
1210
+ }
1211
+ },
1212
+ "required": [
1213
+ "type",
1214
+ "meta",
1215
+ "answer"
1216
+ ],
1217
+ "additionalProperties": false
1218
+ },
1219
+ {
1220
+ "type": "object",
1221
+ "properties": {
1222
+ "type": {
1223
+ "type": "string",
1224
+ "const": "repositorySearch"
1225
+ },
1226
+ "meta": {
1227
+ "type": "object",
1228
+ "properties": {
1229
+ "schemaVersion": {
1230
+ "default": "1.0",
1231
+ "type": "string"
1232
+ }
1233
+ },
1234
+ "required": [
1235
+ "schemaVersion"
1236
+ ],
1237
+ "additionalProperties": false
1238
+ },
1239
+ "comment": {
1240
+ "type": "string"
1241
+ },
1242
+ "answer": {
1243
+ "default": [],
1244
+ "type": "array",
1245
+ "items": {
1246
+ "type": "object",
1247
+ "properties": {
1248
+ "repositoryId": {
1249
+ "default": "",
1250
+ "type": "string"
1251
+ },
1252
+ "repositoryName": {
1253
+ "default": "",
1254
+ "type": "string"
1255
+ }
1256
+ },
1257
+ "required": [
1258
+ "repositoryId",
1259
+ "repositoryName"
1260
+ ],
1261
+ "additionalProperties": false
1262
+ }
1263
+ }
1264
+ },
1265
+ "required": [
1266
+ "type",
1267
+ "meta",
1268
+ "answer"
1269
+ ],
1270
+ "additionalProperties": false
1271
+ },
1272
+ {
1273
+ "type": "object",
1274
+ "properties": {
1275
+ "type": {
1276
+ "type": "string",
1277
+ "const": "selectBox"
1278
+ },
1279
+ "meta": {
1280
+ "type": "object",
1281
+ "properties": {
1282
+ "schemaVersion": {
1283
+ "default": "1.0",
1284
+ "type": "string"
1285
+ }
1286
+ },
1287
+ "required": [
1288
+ "schemaVersion"
1289
+ ],
1290
+ "additionalProperties": false
1291
+ },
1292
+ "comment": {
1293
+ "type": "string"
1294
+ },
1295
+ "answer": {
1296
+ "default": "",
1297
+ "type": "string"
1298
+ }
1299
+ },
1300
+ "required": [
1301
+ "type",
1302
+ "meta",
1303
+ "answer"
1304
+ ],
1305
+ "additionalProperties": false
1306
+ },
1307
+ {
1308
+ "type": "object",
1309
+ "properties": {
1310
+ "type": {
1311
+ "type": "string",
1312
+ "const": "text"
1313
+ },
1314
+ "meta": {
1315
+ "type": "object",
1316
+ "properties": {
1317
+ "schemaVersion": {
1318
+ "default": "1.0",
1319
+ "type": "string"
1320
+ }
1321
+ },
1322
+ "required": [
1323
+ "schemaVersion"
1324
+ ],
1325
+ "additionalProperties": false
1326
+ },
1327
+ "comment": {
1328
+ "type": "string"
1329
+ },
1330
+ "answer": {
1331
+ "default": "",
1332
+ "type": "string"
1333
+ }
1334
+ },
1335
+ "required": [
1336
+ "type",
1337
+ "meta",
1338
+ "answer"
1339
+ ],
1340
+ "additionalProperties": false
1341
+ },
1342
+ {
1343
+ "type": "object",
1344
+ "properties": {
1345
+ "type": {
1346
+ "type": "string",
1347
+ "const": "textArea"
1348
+ },
1349
+ "meta": {
1350
+ "type": "object",
1351
+ "properties": {
1352
+ "schemaVersion": {
1353
+ "default": "1.0",
1354
+ "type": "string"
1355
+ }
1356
+ },
1357
+ "required": [
1358
+ "schemaVersion"
1359
+ ],
1360
+ "additionalProperties": false
1361
+ },
1362
+ "comment": {
1363
+ "type": "string"
1364
+ },
1365
+ "answer": {
1366
+ "default": "",
1367
+ "type": "string"
1368
+ }
1369
+ },
1370
+ "required": [
1371
+ "type",
1372
+ "meta",
1373
+ "answer"
1374
+ ],
1375
+ "additionalProperties": false
1376
+ },
1377
+ {
1378
+ "type": "object",
1379
+ "properties": {
1380
+ "type": {
1381
+ "type": "string",
1382
+ "const": "url"
1383
+ },
1384
+ "meta": {
1385
+ "type": "object",
1386
+ "properties": {
1387
+ "schemaVersion": {
1388
+ "default": "1.0",
1389
+ "type": "string"
1390
+ }
1391
+ },
1392
+ "required": [
1393
+ "schemaVersion"
1394
+ ],
1395
+ "additionalProperties": false
1396
+ },
1397
+ "comment": {
1398
+ "type": "string"
1399
+ },
1400
+ "answer": {
1401
+ "default": "",
1402
+ "type": "string"
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "type",
1407
+ "meta",
1408
+ "answer"
1409
+ ],
1410
+ "additionalProperties": false
1411
+ }
1412
+ ]
1413
+ }
1414
+ }
1415
+ },
1416
+ "required": [
1417
+ "columns"
1418
+ ],
1419
+ "additionalProperties": false
1420
+ }
1421
+ }
1422
+ },
1423
+ "required": [
1424
+ "type",
1425
+ "meta",
1426
+ "columnHeadings",
1427
+ "answer"
1428
+ ],
1429
+ "additionalProperties": false
1430
+ },
1431
+ {
1432
+ "type": "object",
1433
+ "properties": {
1434
+ "type": {
1435
+ "type": "string",
1436
+ "const": "text"
1437
+ },
1438
+ "meta": {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "schemaVersion": {
1442
+ "default": "1.0",
1443
+ "type": "string"
1444
+ }
1445
+ },
1446
+ "required": [
1447
+ "schemaVersion"
1448
+ ],
1449
+ "additionalProperties": false
1450
+ },
1451
+ "comment": {
1452
+ "type": "string"
1453
+ },
1454
+ "answer": {
1455
+ "default": "",
1456
+ "type": "string"
1457
+ }
1458
+ },
1459
+ "required": [
1460
+ "type",
1461
+ "meta",
1462
+ "answer"
1463
+ ],
1464
+ "additionalProperties": false
1465
+ },
1466
+ {
1467
+ "type": "object",
1468
+ "properties": {
1469
+ "type": {
1470
+ "type": "string",
1471
+ "const": "textArea"
1472
+ },
1473
+ "meta": {
1474
+ "type": "object",
1475
+ "properties": {
1476
+ "schemaVersion": {
1477
+ "default": "1.0",
1478
+ "type": "string"
1479
+ }
1480
+ },
1481
+ "required": [
1482
+ "schemaVersion"
1483
+ ],
1484
+ "additionalProperties": false
1485
+ },
1486
+ "comment": {
1487
+ "type": "string"
1488
+ },
1489
+ "answer": {
1490
+ "default": "",
1491
+ "type": "string"
1492
+ }
1493
+ },
1494
+ "required": [
1495
+ "type",
1496
+ "meta",
1497
+ "answer"
1498
+ ],
1499
+ "additionalProperties": false
1500
+ },
1501
+ {
1502
+ "type": "object",
1503
+ "properties": {
1504
+ "type": {
1505
+ "type": "string",
1506
+ "const": "url"
1507
+ },
1508
+ "meta": {
1509
+ "type": "object",
1510
+ "properties": {
1511
+ "schemaVersion": {
1512
+ "default": "1.0",
1513
+ "type": "string"
1514
+ }
1515
+ },
1516
+ "required": [
1517
+ "schemaVersion"
1518
+ ],
1519
+ "additionalProperties": false
1520
+ },
1521
+ "comment": {
1522
+ "type": "string"
1523
+ },
1524
+ "answer": {
1525
+ "default": "",
1526
+ "type": "string"
1527
+ }
1528
+ },
1529
+ "required": [
1530
+ "type",
1531
+ "meta",
1532
+ "answer"
1533
+ ],
1534
+ "additionalProperties": false
1535
+ }
1536
+ ]
1537
+ }