@dmptool/types 2.0.0 → 2.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 (68) hide show
  1. package/dist/dmp/__tests__/commonStandard.spec.d.ts +1 -0
  2. package/dist/dmp/__tests__/commonStandard.spec.js +210 -0
  3. package/dist/dmp/__tests__/extensions.spec.d.ts +1 -0
  4. package/dist/dmp/__tests__/extensions.spec.js +99 -0
  5. package/dist/dmp/extension.d.ts +1006 -0
  6. package/dist/dmp/extension.js +234 -0
  7. package/dist/dmp/index.d.ts +9 -0
  8. package/dist/dmp/index.js +23 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.js +1 -0
  11. package/dist/questions/index.d.ts +2 -22
  12. package/dist/questions/tableQuestions.d.ts +323 -25
  13. package/dist/questions/tableQuestions.js +3 -2
  14. package/dist/schemas/affiliationSearchAnswer.schema.json +47 -0
  15. package/dist/schemas/affiliationSearchQuestion.schema.json +142 -0
  16. package/dist/schemas/anyAnswer.schema.json +1426 -0
  17. package/dist/schemas/anyQuestion.schema.json +4744 -0
  18. package/dist/schemas/anyTableColumnAnswer.schema.json +687 -0
  19. package/dist/schemas/anyTableColumnQuestion.schema.json +1527 -0
  20. package/dist/schemas/booleanAnswer.schema.json +33 -0
  21. package/dist/schemas/booleanQuestion.schema.json +52 -0
  22. package/dist/schemas/checkboxesAnswer.schema.json +38 -0
  23. package/dist/schemas/checkboxesQuestion.schema.json +77 -0
  24. package/dist/schemas/currencyAnswer.schema.json +33 -0
  25. package/dist/schemas/currencyQuestion.schema.json +70 -0
  26. package/dist/schemas/dateAnswer.schema.json +33 -0
  27. package/dist/schemas/datePickerAnswer.schema.json +37 -0
  28. package/dist/schemas/datePickerQuestion.schema.json +52 -0
  29. package/dist/schemas/dateQuestion.schema.json +63 -0
  30. package/dist/schemas/dateRangeAnswer.schema.json +47 -0
  31. package/dist/schemas/dateRangeQuestion.schema.json +121 -0
  32. package/dist/schemas/dmp.schema.json +2070 -0
  33. package/dist/schemas/dmpExtension.schema.json +1874 -0
  34. package/dist/schemas/emailAnswer.schema.json +33 -0
  35. package/dist/schemas/emailQuestion.schema.json +68 -0
  36. package/dist/schemas/filteredSearchAnswer.schema.json +40 -0
  37. package/dist/schemas/filteredSearchQuestion.schema.json +130 -0
  38. package/dist/schemas/licenseSearchAnswer.schema.json +51 -0
  39. package/dist/schemas/licenseSearchQuestion.schema.json +140 -0
  40. package/dist/schemas/metadataStandardSearchAnswer.schema.json +51 -0
  41. package/dist/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  42. package/dist/schemas/multiselectBoxAnswer.schema.json +38 -0
  43. package/dist/schemas/multiselectBoxQuestion.schema.json +84 -0
  44. package/dist/schemas/numberAnswer.schema.json +33 -0
  45. package/dist/schemas/numberQuestion.schema.json +65 -0
  46. package/dist/schemas/numberRangeAnswer.schema.json +47 -0
  47. package/dist/schemas/numberRangeQuestion.schema.json +125 -0
  48. package/dist/schemas/numberWithContextAnswer.schema.json +47 -0
  49. package/dist/schemas/numberWithContextQuestion.schema.json +95 -0
  50. package/dist/schemas/radioButtonsAnswer.schema.json +33 -0
  51. package/dist/schemas/radioButtonsQuestion.schema.json +77 -0
  52. package/dist/schemas/repositorySearchAnswer.schema.json +51 -0
  53. package/dist/schemas/repositorySearchQuestion.schema.json +140 -0
  54. package/dist/schemas/researchOutputTableAnswer.schema.json +16730 -0
  55. package/dist/schemas/researchOutputTableQuestion.schema.json +140 -0
  56. package/dist/schemas/selectBoxAnswer.schema.json +33 -0
  57. package/dist/schemas/selectBoxQuestion.schema.json +84 -0
  58. package/dist/schemas/tableAnswer.schema.json +740 -0
  59. package/dist/schemas/tableQuestion.schema.json +1629 -0
  60. package/dist/schemas/textAnswer.schema.json +33 -0
  61. package/dist/schemas/textAreaAnswer.schema.json +33 -0
  62. package/dist/schemas/textAreaQuestion.schema.json +78 -0
  63. package/dist/schemas/textQuestion.schema.json +63 -0
  64. package/dist/schemas/typeaheadSearchAnswer.schema.json +37 -0
  65. package/dist/schemas/typeaheadSearchQuestion.schema.json +120 -0
  66. package/dist/schemas/urlAnswer.schema.json +33 -0
  67. package/dist/schemas/urlQuestion.schema.json +63 -0
  68. package/package.json +5 -2
@@ -0,0 +1,740 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "type": {
6
+ "type": "string",
7
+ "const": "table"
8
+ },
9
+ "meta": {
10
+ "type": "object",
11
+ "properties": {
12
+ "schemaVersion": {
13
+ "default": "1.0",
14
+ "type": "string"
15
+ }
16
+ },
17
+ "required": [
18
+ "schemaVersion"
19
+ ],
20
+ "additionalProperties": false
21
+ },
22
+ "columnHeadings": {
23
+ "default": [
24
+ "Column A"
25
+ ],
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "answer": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "columns": {
37
+ "type": "array",
38
+ "items": {
39
+ "oneOf": [
40
+ {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "type": "string",
45
+ "const": "affiliationSearch"
46
+ },
47
+ "meta": {
48
+ "type": "object",
49
+ "properties": {
50
+ "schemaVersion": {
51
+ "default": "1.0",
52
+ "type": "string"
53
+ }
54
+ },
55
+ "required": [
56
+ "schemaVersion"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "answer": {
61
+ "type": "object",
62
+ "properties": {
63
+ "affiliationId": {
64
+ "default": "",
65
+ "type": "string"
66
+ },
67
+ "affiliationName": {
68
+ "default": "",
69
+ "type": "string"
70
+ }
71
+ },
72
+ "required": [
73
+ "affiliationId",
74
+ "affiliationName"
75
+ ],
76
+ "additionalProperties": false
77
+ }
78
+ },
79
+ "required": [
80
+ "type",
81
+ "meta",
82
+ "answer"
83
+ ],
84
+ "additionalProperties": false
85
+ },
86
+ {
87
+ "type": "object",
88
+ "properties": {
89
+ "type": {
90
+ "type": "string",
91
+ "const": "boolean"
92
+ },
93
+ "meta": {
94
+ "type": "object",
95
+ "properties": {
96
+ "schemaVersion": {
97
+ "default": "1.0",
98
+ "type": "string"
99
+ }
100
+ },
101
+ "required": [
102
+ "schemaVersion"
103
+ ],
104
+ "additionalProperties": false
105
+ },
106
+ "answer": {
107
+ "default": false,
108
+ "type": "boolean"
109
+ }
110
+ },
111
+ "required": [
112
+ "type",
113
+ "meta",
114
+ "answer"
115
+ ],
116
+ "additionalProperties": false
117
+ },
118
+ {
119
+ "type": "object",
120
+ "properties": {
121
+ "type": {
122
+ "type": "string",
123
+ "const": "checkBoxes"
124
+ },
125
+ "meta": {
126
+ "type": "object",
127
+ "properties": {
128
+ "schemaVersion": {
129
+ "default": "1.0",
130
+ "type": "string"
131
+ }
132
+ },
133
+ "required": [
134
+ "schemaVersion"
135
+ ],
136
+ "additionalProperties": false
137
+ },
138
+ "answer": {
139
+ "default": [
140
+ ""
141
+ ],
142
+ "type": "array",
143
+ "items": {
144
+ "type": "string"
145
+ }
146
+ }
147
+ },
148
+ "required": [
149
+ "type",
150
+ "meta",
151
+ "answer"
152
+ ],
153
+ "additionalProperties": false
154
+ },
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "type": {
159
+ "type": "string",
160
+ "const": "currency"
161
+ },
162
+ "meta": {
163
+ "type": "object",
164
+ "properties": {
165
+ "schemaVersion": {
166
+ "default": "1.0",
167
+ "type": "string"
168
+ }
169
+ },
170
+ "required": [
171
+ "schemaVersion"
172
+ ],
173
+ "additionalProperties": false
174
+ },
175
+ "answer": {
176
+ "default": 0,
177
+ "type": "number"
178
+ }
179
+ },
180
+ "required": [
181
+ "type",
182
+ "meta",
183
+ "answer"
184
+ ],
185
+ "additionalProperties": false
186
+ },
187
+ {
188
+ "type": "object",
189
+ "properties": {
190
+ "type": {
191
+ "type": "string",
192
+ "const": "date"
193
+ },
194
+ "meta": {
195
+ "type": "object",
196
+ "properties": {
197
+ "schemaVersion": {
198
+ "default": "1.0",
199
+ "type": "string"
200
+ }
201
+ },
202
+ "required": [
203
+ "schemaVersion"
204
+ ],
205
+ "additionalProperties": false
206
+ },
207
+ "answer": {
208
+ "default": "",
209
+ "type": "string"
210
+ }
211
+ },
212
+ "required": [
213
+ "type",
214
+ "meta",
215
+ "answer"
216
+ ],
217
+ "additionalProperties": false
218
+ },
219
+ {
220
+ "type": "object",
221
+ "properties": {
222
+ "type": {
223
+ "type": "string",
224
+ "const": "dateRange"
225
+ },
226
+ "meta": {
227
+ "type": "object",
228
+ "properties": {
229
+ "schemaVersion": {
230
+ "default": "1.0",
231
+ "type": "string"
232
+ }
233
+ },
234
+ "required": [
235
+ "schemaVersion"
236
+ ],
237
+ "additionalProperties": false
238
+ },
239
+ "answer": {
240
+ "type": "object",
241
+ "properties": {
242
+ "start": {
243
+ "default": "",
244
+ "type": "string"
245
+ },
246
+ "end": {
247
+ "default": "",
248
+ "type": "string"
249
+ }
250
+ },
251
+ "required": [
252
+ "start",
253
+ "end"
254
+ ],
255
+ "additionalProperties": false
256
+ }
257
+ },
258
+ "required": [
259
+ "type",
260
+ "meta",
261
+ "answer"
262
+ ],
263
+ "additionalProperties": false
264
+ },
265
+ {
266
+ "type": "object",
267
+ "properties": {
268
+ "type": {
269
+ "type": "string",
270
+ "const": "email"
271
+ },
272
+ "meta": {
273
+ "type": "object",
274
+ "properties": {
275
+ "schemaVersion": {
276
+ "default": "1.0",
277
+ "type": "string"
278
+ }
279
+ },
280
+ "required": [
281
+ "schemaVersion"
282
+ ],
283
+ "additionalProperties": false
284
+ },
285
+ "answer": {
286
+ "default": "",
287
+ "type": "string"
288
+ }
289
+ },
290
+ "required": [
291
+ "type",
292
+ "meta",
293
+ "answer"
294
+ ],
295
+ "additionalProperties": false
296
+ },
297
+ {
298
+ "type": "object",
299
+ "properties": {
300
+ "type": {
301
+ "type": "string",
302
+ "const": "licenseSearch"
303
+ },
304
+ "meta": {
305
+ "type": "object",
306
+ "properties": {
307
+ "schemaVersion": {
308
+ "default": "1.0",
309
+ "type": "string"
310
+ }
311
+ },
312
+ "required": [
313
+ "schemaVersion"
314
+ ],
315
+ "additionalProperties": false
316
+ },
317
+ "answer": {
318
+ "default": [],
319
+ "type": "array",
320
+ "items": {
321
+ "type": "object",
322
+ "properties": {
323
+ "licenseId": {
324
+ "default": "",
325
+ "type": "string"
326
+ },
327
+ "licenseName": {
328
+ "default": "",
329
+ "type": "string"
330
+ }
331
+ },
332
+ "required": [
333
+ "licenseId",
334
+ "licenseName"
335
+ ],
336
+ "additionalProperties": false
337
+ }
338
+ }
339
+ },
340
+ "required": [
341
+ "type",
342
+ "meta",
343
+ "answer"
344
+ ],
345
+ "additionalProperties": false
346
+ },
347
+ {
348
+ "type": "object",
349
+ "properties": {
350
+ "type": {
351
+ "type": "string",
352
+ "const": "metadataStandardSearch"
353
+ },
354
+ "meta": {
355
+ "type": "object",
356
+ "properties": {
357
+ "schemaVersion": {
358
+ "default": "1.0",
359
+ "type": "string"
360
+ }
361
+ },
362
+ "required": [
363
+ "schemaVersion"
364
+ ],
365
+ "additionalProperties": false
366
+ },
367
+ "answer": {
368
+ "default": [],
369
+ "type": "array",
370
+ "items": {
371
+ "type": "object",
372
+ "properties": {
373
+ "metadataStandardId": {
374
+ "default": "",
375
+ "type": "string"
376
+ },
377
+ "metadataStandardName": {
378
+ "default": "",
379
+ "type": "string"
380
+ }
381
+ },
382
+ "required": [
383
+ "metadataStandardId",
384
+ "metadataStandardName"
385
+ ],
386
+ "additionalProperties": false
387
+ }
388
+ }
389
+ },
390
+ "required": [
391
+ "type",
392
+ "meta",
393
+ "answer"
394
+ ],
395
+ "additionalProperties": false
396
+ },
397
+ {
398
+ "type": "object",
399
+ "properties": {
400
+ "type": {
401
+ "type": "string",
402
+ "const": "multiselectBox"
403
+ },
404
+ "meta": {
405
+ "type": "object",
406
+ "properties": {
407
+ "schemaVersion": {
408
+ "default": "1.0",
409
+ "type": "string"
410
+ }
411
+ },
412
+ "required": [
413
+ "schemaVersion"
414
+ ],
415
+ "additionalProperties": false
416
+ },
417
+ "answer": {
418
+ "default": [
419
+ ""
420
+ ],
421
+ "type": "array",
422
+ "items": {
423
+ "type": "string"
424
+ }
425
+ }
426
+ },
427
+ "required": [
428
+ "type",
429
+ "meta",
430
+ "answer"
431
+ ],
432
+ "additionalProperties": false
433
+ },
434
+ {
435
+ "type": "object",
436
+ "properties": {
437
+ "type": {
438
+ "type": "string",
439
+ "const": "number"
440
+ },
441
+ "meta": {
442
+ "type": "object",
443
+ "properties": {
444
+ "schemaVersion": {
445
+ "default": "1.0",
446
+ "type": "string"
447
+ }
448
+ },
449
+ "required": [
450
+ "schemaVersion"
451
+ ],
452
+ "additionalProperties": false
453
+ },
454
+ "answer": {
455
+ "default": 0,
456
+ "type": "number"
457
+ }
458
+ },
459
+ "required": [
460
+ "type",
461
+ "meta",
462
+ "answer"
463
+ ],
464
+ "additionalProperties": false
465
+ },
466
+ {
467
+ "type": "object",
468
+ "properties": {
469
+ "type": {
470
+ "type": "string",
471
+ "const": "numberWithContext"
472
+ },
473
+ "meta": {
474
+ "type": "object",
475
+ "properties": {
476
+ "schemaVersion": {
477
+ "default": "1.0",
478
+ "type": "string"
479
+ }
480
+ },
481
+ "required": [
482
+ "schemaVersion"
483
+ ],
484
+ "additionalProperties": false
485
+ },
486
+ "answer": {
487
+ "type": "object",
488
+ "properties": {
489
+ "value": {
490
+ "default": 0,
491
+ "type": "number"
492
+ },
493
+ "context": {
494
+ "default": "",
495
+ "type": "string"
496
+ }
497
+ },
498
+ "required": [
499
+ "value",
500
+ "context"
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
+ "answer": {
533
+ "default": "",
534
+ "type": "string"
535
+ }
536
+ },
537
+ "required": [
538
+ "type",
539
+ "meta",
540
+ "answer"
541
+ ],
542
+ "additionalProperties": false
543
+ },
544
+ {
545
+ "type": "object",
546
+ "properties": {
547
+ "type": {
548
+ "type": "string",
549
+ "const": "repositorySearch"
550
+ },
551
+ "meta": {
552
+ "type": "object",
553
+ "properties": {
554
+ "schemaVersion": {
555
+ "default": "1.0",
556
+ "type": "string"
557
+ }
558
+ },
559
+ "required": [
560
+ "schemaVersion"
561
+ ],
562
+ "additionalProperties": false
563
+ },
564
+ "answer": {
565
+ "default": [],
566
+ "type": "array",
567
+ "items": {
568
+ "type": "object",
569
+ "properties": {
570
+ "repositoryId": {
571
+ "default": "",
572
+ "type": "string"
573
+ },
574
+ "repositoryName": {
575
+ "default": "",
576
+ "type": "string"
577
+ }
578
+ },
579
+ "required": [
580
+ "repositoryId",
581
+ "repositoryName"
582
+ ],
583
+ "additionalProperties": false
584
+ }
585
+ }
586
+ },
587
+ "required": [
588
+ "type",
589
+ "meta",
590
+ "answer"
591
+ ],
592
+ "additionalProperties": false
593
+ },
594
+ {
595
+ "type": "object",
596
+ "properties": {
597
+ "type": {
598
+ "type": "string",
599
+ "const": "selectBox"
600
+ },
601
+ "meta": {
602
+ "type": "object",
603
+ "properties": {
604
+ "schemaVersion": {
605
+ "default": "1.0",
606
+ "type": "string"
607
+ }
608
+ },
609
+ "required": [
610
+ "schemaVersion"
611
+ ],
612
+ "additionalProperties": false
613
+ },
614
+ "answer": {
615
+ "default": "",
616
+ "type": "string"
617
+ }
618
+ },
619
+ "required": [
620
+ "type",
621
+ "meta",
622
+ "answer"
623
+ ],
624
+ "additionalProperties": false
625
+ },
626
+ {
627
+ "type": "object",
628
+ "properties": {
629
+ "type": {
630
+ "type": "string",
631
+ "const": "text"
632
+ },
633
+ "meta": {
634
+ "type": "object",
635
+ "properties": {
636
+ "schemaVersion": {
637
+ "default": "1.0",
638
+ "type": "string"
639
+ }
640
+ },
641
+ "required": [
642
+ "schemaVersion"
643
+ ],
644
+ "additionalProperties": false
645
+ },
646
+ "answer": {
647
+ "default": "",
648
+ "type": "string"
649
+ }
650
+ },
651
+ "required": [
652
+ "type",
653
+ "meta",
654
+ "answer"
655
+ ],
656
+ "additionalProperties": false
657
+ },
658
+ {
659
+ "type": "object",
660
+ "properties": {
661
+ "type": {
662
+ "type": "string",
663
+ "const": "textArea"
664
+ },
665
+ "meta": {
666
+ "type": "object",
667
+ "properties": {
668
+ "schemaVersion": {
669
+ "default": "1.0",
670
+ "type": "string"
671
+ }
672
+ },
673
+ "required": [
674
+ "schemaVersion"
675
+ ],
676
+ "additionalProperties": false
677
+ },
678
+ "answer": {
679
+ "default": "",
680
+ "type": "string"
681
+ }
682
+ },
683
+ "required": [
684
+ "type",
685
+ "meta",
686
+ "answer"
687
+ ],
688
+ "additionalProperties": false
689
+ },
690
+ {
691
+ "type": "object",
692
+ "properties": {
693
+ "type": {
694
+ "type": "string",
695
+ "const": "url"
696
+ },
697
+ "meta": {
698
+ "type": "object",
699
+ "properties": {
700
+ "schemaVersion": {
701
+ "default": "1.0",
702
+ "type": "string"
703
+ }
704
+ },
705
+ "required": [
706
+ "schemaVersion"
707
+ ],
708
+ "additionalProperties": false
709
+ },
710
+ "answer": {
711
+ "default": "",
712
+ "type": "string"
713
+ }
714
+ },
715
+ "required": [
716
+ "type",
717
+ "meta",
718
+ "answer"
719
+ ],
720
+ "additionalProperties": false
721
+ }
722
+ ]
723
+ }
724
+ }
725
+ },
726
+ "required": [
727
+ "columns"
728
+ ],
729
+ "additionalProperties": false
730
+ }
731
+ }
732
+ },
733
+ "required": [
734
+ "type",
735
+ "meta",
736
+ "columnHeadings",
737
+ "answer"
738
+ ],
739
+ "additionalProperties": false
740
+ }