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