@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,687 @@
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
+ "answer": {
25
+ "type": "object",
26
+ "properties": {
27
+ "affiliationId": {
28
+ "default": "",
29
+ "type": "string"
30
+ },
31
+ "affiliationName": {
32
+ "default": "",
33
+ "type": "string"
34
+ }
35
+ },
36
+ "required": [
37
+ "affiliationId",
38
+ "affiliationName"
39
+ ],
40
+ "additionalProperties": false
41
+ }
42
+ },
43
+ "required": [
44
+ "type",
45
+ "meta",
46
+ "answer"
47
+ ],
48
+ "additionalProperties": false
49
+ },
50
+ {
51
+ "type": "object",
52
+ "properties": {
53
+ "type": {
54
+ "type": "string",
55
+ "const": "boolean"
56
+ },
57
+ "meta": {
58
+ "type": "object",
59
+ "properties": {
60
+ "schemaVersion": {
61
+ "default": "1.0",
62
+ "type": "string"
63
+ }
64
+ },
65
+ "required": [
66
+ "schemaVersion"
67
+ ],
68
+ "additionalProperties": false
69
+ },
70
+ "answer": {
71
+ "default": false,
72
+ "type": "boolean"
73
+ }
74
+ },
75
+ "required": [
76
+ "type",
77
+ "meta",
78
+ "answer"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ {
83
+ "type": "object",
84
+ "properties": {
85
+ "type": {
86
+ "type": "string",
87
+ "const": "checkBoxes"
88
+ },
89
+ "meta": {
90
+ "type": "object",
91
+ "properties": {
92
+ "schemaVersion": {
93
+ "default": "1.0",
94
+ "type": "string"
95
+ }
96
+ },
97
+ "required": [
98
+ "schemaVersion"
99
+ ],
100
+ "additionalProperties": false
101
+ },
102
+ "answer": {
103
+ "default": [
104
+ ""
105
+ ],
106
+ "type": "array",
107
+ "items": {
108
+ "type": "string"
109
+ }
110
+ }
111
+ },
112
+ "required": [
113
+ "type",
114
+ "meta",
115
+ "answer"
116
+ ],
117
+ "additionalProperties": false
118
+ },
119
+ {
120
+ "type": "object",
121
+ "properties": {
122
+ "type": {
123
+ "type": "string",
124
+ "const": "currency"
125
+ },
126
+ "meta": {
127
+ "type": "object",
128
+ "properties": {
129
+ "schemaVersion": {
130
+ "default": "1.0",
131
+ "type": "string"
132
+ }
133
+ },
134
+ "required": [
135
+ "schemaVersion"
136
+ ],
137
+ "additionalProperties": false
138
+ },
139
+ "answer": {
140
+ "default": 0,
141
+ "type": "number"
142
+ }
143
+ },
144
+ "required": [
145
+ "type",
146
+ "meta",
147
+ "answer"
148
+ ],
149
+ "additionalProperties": false
150
+ },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "type": {
155
+ "type": "string",
156
+ "const": "date"
157
+ },
158
+ "meta": {
159
+ "type": "object",
160
+ "properties": {
161
+ "schemaVersion": {
162
+ "default": "1.0",
163
+ "type": "string"
164
+ }
165
+ },
166
+ "required": [
167
+ "schemaVersion"
168
+ ],
169
+ "additionalProperties": false
170
+ },
171
+ "answer": {
172
+ "default": "",
173
+ "type": "string"
174
+ }
175
+ },
176
+ "required": [
177
+ "type",
178
+ "meta",
179
+ "answer"
180
+ ],
181
+ "additionalProperties": false
182
+ },
183
+ {
184
+ "type": "object",
185
+ "properties": {
186
+ "type": {
187
+ "type": "string",
188
+ "const": "dateRange"
189
+ },
190
+ "meta": {
191
+ "type": "object",
192
+ "properties": {
193
+ "schemaVersion": {
194
+ "default": "1.0",
195
+ "type": "string"
196
+ }
197
+ },
198
+ "required": [
199
+ "schemaVersion"
200
+ ],
201
+ "additionalProperties": false
202
+ },
203
+ "answer": {
204
+ "type": "object",
205
+ "properties": {
206
+ "start": {
207
+ "default": "",
208
+ "type": "string"
209
+ },
210
+ "end": {
211
+ "default": "",
212
+ "type": "string"
213
+ }
214
+ },
215
+ "required": [
216
+ "start",
217
+ "end"
218
+ ],
219
+ "additionalProperties": false
220
+ }
221
+ },
222
+ "required": [
223
+ "type",
224
+ "meta",
225
+ "answer"
226
+ ],
227
+ "additionalProperties": false
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "type": {
233
+ "type": "string",
234
+ "const": "email"
235
+ },
236
+ "meta": {
237
+ "type": "object",
238
+ "properties": {
239
+ "schemaVersion": {
240
+ "default": "1.0",
241
+ "type": "string"
242
+ }
243
+ },
244
+ "required": [
245
+ "schemaVersion"
246
+ ],
247
+ "additionalProperties": false
248
+ },
249
+ "answer": {
250
+ "default": "",
251
+ "type": "string"
252
+ }
253
+ },
254
+ "required": [
255
+ "type",
256
+ "meta",
257
+ "answer"
258
+ ],
259
+ "additionalProperties": false
260
+ },
261
+ {
262
+ "type": "object",
263
+ "properties": {
264
+ "type": {
265
+ "type": "string",
266
+ "const": "licenseSearch"
267
+ },
268
+ "meta": {
269
+ "type": "object",
270
+ "properties": {
271
+ "schemaVersion": {
272
+ "default": "1.0",
273
+ "type": "string"
274
+ }
275
+ },
276
+ "required": [
277
+ "schemaVersion"
278
+ ],
279
+ "additionalProperties": false
280
+ },
281
+ "answer": {
282
+ "default": [],
283
+ "type": "array",
284
+ "items": {
285
+ "type": "object",
286
+ "properties": {
287
+ "licenseId": {
288
+ "default": "",
289
+ "type": "string"
290
+ },
291
+ "licenseName": {
292
+ "default": "",
293
+ "type": "string"
294
+ }
295
+ },
296
+ "required": [
297
+ "licenseId",
298
+ "licenseName"
299
+ ],
300
+ "additionalProperties": false
301
+ }
302
+ }
303
+ },
304
+ "required": [
305
+ "type",
306
+ "meta",
307
+ "answer"
308
+ ],
309
+ "additionalProperties": false
310
+ },
311
+ {
312
+ "type": "object",
313
+ "properties": {
314
+ "type": {
315
+ "type": "string",
316
+ "const": "metadataStandardSearch"
317
+ },
318
+ "meta": {
319
+ "type": "object",
320
+ "properties": {
321
+ "schemaVersion": {
322
+ "default": "1.0",
323
+ "type": "string"
324
+ }
325
+ },
326
+ "required": [
327
+ "schemaVersion"
328
+ ],
329
+ "additionalProperties": false
330
+ },
331
+ "answer": {
332
+ "default": [],
333
+ "type": "array",
334
+ "items": {
335
+ "type": "object",
336
+ "properties": {
337
+ "metadataStandardId": {
338
+ "default": "",
339
+ "type": "string"
340
+ },
341
+ "metadataStandardName": {
342
+ "default": "",
343
+ "type": "string"
344
+ }
345
+ },
346
+ "required": [
347
+ "metadataStandardId",
348
+ "metadataStandardName"
349
+ ],
350
+ "additionalProperties": false
351
+ }
352
+ }
353
+ },
354
+ "required": [
355
+ "type",
356
+ "meta",
357
+ "answer"
358
+ ],
359
+ "additionalProperties": false
360
+ },
361
+ {
362
+ "type": "object",
363
+ "properties": {
364
+ "type": {
365
+ "type": "string",
366
+ "const": "multiselectBox"
367
+ },
368
+ "meta": {
369
+ "type": "object",
370
+ "properties": {
371
+ "schemaVersion": {
372
+ "default": "1.0",
373
+ "type": "string"
374
+ }
375
+ },
376
+ "required": [
377
+ "schemaVersion"
378
+ ],
379
+ "additionalProperties": false
380
+ },
381
+ "answer": {
382
+ "default": [
383
+ ""
384
+ ],
385
+ "type": "array",
386
+ "items": {
387
+ "type": "string"
388
+ }
389
+ }
390
+ },
391
+ "required": [
392
+ "type",
393
+ "meta",
394
+ "answer"
395
+ ],
396
+ "additionalProperties": false
397
+ },
398
+ {
399
+ "type": "object",
400
+ "properties": {
401
+ "type": {
402
+ "type": "string",
403
+ "const": "number"
404
+ },
405
+ "meta": {
406
+ "type": "object",
407
+ "properties": {
408
+ "schemaVersion": {
409
+ "default": "1.0",
410
+ "type": "string"
411
+ }
412
+ },
413
+ "required": [
414
+ "schemaVersion"
415
+ ],
416
+ "additionalProperties": false
417
+ },
418
+ "answer": {
419
+ "default": 0,
420
+ "type": "number"
421
+ }
422
+ },
423
+ "required": [
424
+ "type",
425
+ "meta",
426
+ "answer"
427
+ ],
428
+ "additionalProperties": false
429
+ },
430
+ {
431
+ "type": "object",
432
+ "properties": {
433
+ "type": {
434
+ "type": "string",
435
+ "const": "numberWithContext"
436
+ },
437
+ "meta": {
438
+ "type": "object",
439
+ "properties": {
440
+ "schemaVersion": {
441
+ "default": "1.0",
442
+ "type": "string"
443
+ }
444
+ },
445
+ "required": [
446
+ "schemaVersion"
447
+ ],
448
+ "additionalProperties": false
449
+ },
450
+ "answer": {
451
+ "type": "object",
452
+ "properties": {
453
+ "value": {
454
+ "default": 0,
455
+ "type": "number"
456
+ },
457
+ "context": {
458
+ "default": "",
459
+ "type": "string"
460
+ }
461
+ },
462
+ "required": [
463
+ "value",
464
+ "context"
465
+ ],
466
+ "additionalProperties": false
467
+ }
468
+ },
469
+ "required": [
470
+ "type",
471
+ "meta",
472
+ "answer"
473
+ ],
474
+ "additionalProperties": false
475
+ },
476
+ {
477
+ "type": "object",
478
+ "properties": {
479
+ "type": {
480
+ "type": "string",
481
+ "const": "radioButtons"
482
+ },
483
+ "meta": {
484
+ "type": "object",
485
+ "properties": {
486
+ "schemaVersion": {
487
+ "default": "1.0",
488
+ "type": "string"
489
+ }
490
+ },
491
+ "required": [
492
+ "schemaVersion"
493
+ ],
494
+ "additionalProperties": false
495
+ },
496
+ "answer": {
497
+ "default": "",
498
+ "type": "string"
499
+ }
500
+ },
501
+ "required": [
502
+ "type",
503
+ "meta",
504
+ "answer"
505
+ ],
506
+ "additionalProperties": false
507
+ },
508
+ {
509
+ "type": "object",
510
+ "properties": {
511
+ "type": {
512
+ "type": "string",
513
+ "const": "repositorySearch"
514
+ },
515
+ "meta": {
516
+ "type": "object",
517
+ "properties": {
518
+ "schemaVersion": {
519
+ "default": "1.0",
520
+ "type": "string"
521
+ }
522
+ },
523
+ "required": [
524
+ "schemaVersion"
525
+ ],
526
+ "additionalProperties": false
527
+ },
528
+ "answer": {
529
+ "default": [],
530
+ "type": "array",
531
+ "items": {
532
+ "type": "object",
533
+ "properties": {
534
+ "repositoryId": {
535
+ "default": "",
536
+ "type": "string"
537
+ },
538
+ "repositoryName": {
539
+ "default": "",
540
+ "type": "string"
541
+ }
542
+ },
543
+ "required": [
544
+ "repositoryId",
545
+ "repositoryName"
546
+ ],
547
+ "additionalProperties": false
548
+ }
549
+ }
550
+ },
551
+ "required": [
552
+ "type",
553
+ "meta",
554
+ "answer"
555
+ ],
556
+ "additionalProperties": false
557
+ },
558
+ {
559
+ "type": "object",
560
+ "properties": {
561
+ "type": {
562
+ "type": "string",
563
+ "const": "selectBox"
564
+ },
565
+ "meta": {
566
+ "type": "object",
567
+ "properties": {
568
+ "schemaVersion": {
569
+ "default": "1.0",
570
+ "type": "string"
571
+ }
572
+ },
573
+ "required": [
574
+ "schemaVersion"
575
+ ],
576
+ "additionalProperties": false
577
+ },
578
+ "answer": {
579
+ "default": "",
580
+ "type": "string"
581
+ }
582
+ },
583
+ "required": [
584
+ "type",
585
+ "meta",
586
+ "answer"
587
+ ],
588
+ "additionalProperties": false
589
+ },
590
+ {
591
+ "type": "object",
592
+ "properties": {
593
+ "type": {
594
+ "type": "string",
595
+ "const": "text"
596
+ },
597
+ "meta": {
598
+ "type": "object",
599
+ "properties": {
600
+ "schemaVersion": {
601
+ "default": "1.0",
602
+ "type": "string"
603
+ }
604
+ },
605
+ "required": [
606
+ "schemaVersion"
607
+ ],
608
+ "additionalProperties": false
609
+ },
610
+ "answer": {
611
+ "default": "",
612
+ "type": "string"
613
+ }
614
+ },
615
+ "required": [
616
+ "type",
617
+ "meta",
618
+ "answer"
619
+ ],
620
+ "additionalProperties": false
621
+ },
622
+ {
623
+ "type": "object",
624
+ "properties": {
625
+ "type": {
626
+ "type": "string",
627
+ "const": "textArea"
628
+ },
629
+ "meta": {
630
+ "type": "object",
631
+ "properties": {
632
+ "schemaVersion": {
633
+ "default": "1.0",
634
+ "type": "string"
635
+ }
636
+ },
637
+ "required": [
638
+ "schemaVersion"
639
+ ],
640
+ "additionalProperties": false
641
+ },
642
+ "answer": {
643
+ "default": "",
644
+ "type": "string"
645
+ }
646
+ },
647
+ "required": [
648
+ "type",
649
+ "meta",
650
+ "answer"
651
+ ],
652
+ "additionalProperties": false
653
+ },
654
+ {
655
+ "type": "object",
656
+ "properties": {
657
+ "type": {
658
+ "type": "string",
659
+ "const": "url"
660
+ },
661
+ "meta": {
662
+ "type": "object",
663
+ "properties": {
664
+ "schemaVersion": {
665
+ "default": "1.0",
666
+ "type": "string"
667
+ }
668
+ },
669
+ "required": [
670
+ "schemaVersion"
671
+ ],
672
+ "additionalProperties": false
673
+ },
674
+ "answer": {
675
+ "default": "",
676
+ "type": "string"
677
+ }
678
+ },
679
+ "required": [
680
+ "type",
681
+ "meta",
682
+ "answer"
683
+ ],
684
+ "additionalProperties": false
685
+ }
686
+ ]
687
+ }