@dmptool/types 1.2.3 → 1.2.4

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/README.md +8 -0
  2. package/dist/answers/__tests__/answers.spec.js +122 -6
  3. package/dist/answers/answer.d.ts +3 -3
  4. package/dist/answers/graphQLAnswers.d.ts +120 -25
  5. package/dist/answers/graphQLAnswers.js +22 -5
  6. package/dist/answers/index.d.ts +399 -31
  7. package/dist/answers/index.js +8 -2
  8. package/dist/answers/numberAnswers.d.ts +40 -0
  9. package/dist/answers/numberAnswers.js +8 -1
  10. package/dist/answers/tableAnswers.d.ts +1688 -75
  11. package/dist/answers/tableAnswers.js +63 -2
  12. package/dist/questions/__tests__/graphQLQuestions.spec.js +177 -39
  13. package/dist/questions/__tests__/numberQuestions.spec.js +36 -0
  14. package/dist/questions/__tests__/tableQuestion.spec.js +145 -0
  15. package/dist/questions/__tests__/usage.spec.js +162 -1
  16. package/dist/questions/graphQLQuestions.d.ts +420 -60
  17. package/dist/questions/graphQLQuestions.js +257 -11
  18. package/dist/questions/index.d.ts +4849 -189
  19. package/dist/questions/index.js +9 -2
  20. package/dist/questions/numberQuestions.d.ts +105 -0
  21. package/dist/questions/numberQuestions.js +12 -1
  22. package/dist/questions/question.d.ts +4 -4
  23. package/dist/questions/question.js +25 -4
  24. package/dist/questions/tableQuestions.d.ts +5930 -679
  25. package/dist/questions/tableQuestions.js +175 -3
  26. package/dist/schemas/anyAnswer.schema.json +137 -17
  27. package/dist/schemas/anyQuestion.schema.json +829 -101
  28. package/dist/schemas/anyTableColumnAnswer.schema.json +116 -5
  29. package/dist/schemas/anyTableColumnQuestion.schema.json +326 -24
  30. package/dist/schemas/licenseSearchAnswer.schema.json +49 -0
  31. package/dist/schemas/licenseSearchQuestion.schema.json +164 -0
  32. package/dist/schemas/metadataStandardSearchAnswer.schema.json +49 -0
  33. package/dist/schemas/metadataStandardSearchQuestion.schema.json +174 -0
  34. package/dist/schemas/numberWithContextAnswer.schema.json +45 -0
  35. package/dist/schemas/numberWithContextQuestion.schema.json +84 -0
  36. package/dist/schemas/repositorySearchAnswer.schema.json +49 -0
  37. package/dist/schemas/repositorySearchQuestion.schema.json +180 -0
  38. package/dist/schemas/researchOutputTableAnswer.schema.json +519 -0
  39. package/dist/schemas/researchOutputTableQuestion.schema.json +1183 -0
  40. package/dist/schemas/tableAnswer.schema.json +116 -5
  41. package/dist/schemas/tableQuestion.schema.json +348 -24
  42. package/package.json +9 -5
@@ -431,6 +431,243 @@
431
431
  ],
432
432
  "additionalProperties": false
433
433
  },
434
+ {
435
+ "type": "object",
436
+ "properties": {
437
+ "type": {
438
+ "type": "string",
439
+ "const": "licenseSearch"
440
+ },
441
+ "attributes": {
442
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes",
443
+ "default": {}
444
+ },
445
+ "meta": {
446
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
447
+ },
448
+ "graphQL": {
449
+ "type": "object",
450
+ "properties": {
451
+ "displayFields": {
452
+ "type": "array",
453
+ "items": {
454
+ "type": "object",
455
+ "properties": {
456
+ "propertyName": {
457
+ "type": "string",
458
+ "default": "id"
459
+ },
460
+ "label": {
461
+ "type": "string",
462
+ "default": "Id"
463
+ },
464
+ "labelTranslationKey": {
465
+ "type": "string"
466
+ }
467
+ },
468
+ "additionalProperties": false
469
+ },
470
+ "default": [
471
+ {
472
+ "propertyName": "name",
473
+ "label": "Name"
474
+ },
475
+ {
476
+ "propertyName": "description",
477
+ "label": "Description"
478
+ },
479
+ {
480
+ "propertyName": "recommended",
481
+ "label": "Recommended"
482
+ }
483
+ ]
484
+ },
485
+ "localQueryId": {
486
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
487
+ },
488
+ "query": {
489
+ "type": "string",
490
+ "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }",
491
+ "default": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
492
+ },
493
+ "responseField": {
494
+ "type": "string",
495
+ "const": "licenses.items",
496
+ "default": "licenses.items"
497
+ },
498
+ "variables": {
499
+ "type": "array",
500
+ "items": {
501
+ "type": "object",
502
+ "properties": {
503
+ "minLength": {
504
+ "type": "number"
505
+ },
506
+ "label": {
507
+ "type": "string"
508
+ },
509
+ "labelTranslationKey": {
510
+ "type": "string"
511
+ },
512
+ "name": {
513
+ "type": "string",
514
+ "default": "search"
515
+ },
516
+ "type": {
517
+ "type": "string",
518
+ "default": "string"
519
+ },
520
+ "defaultValue": {
521
+ "type": "string"
522
+ }
523
+ },
524
+ "additionalProperties": false
525
+ },
526
+ "default": [
527
+ {
528
+ "minLength": 3,
529
+ "label": "Search for a license",
530
+ "name": "term",
531
+ "type": "string"
532
+ },
533
+ {
534
+ "label": "Pagination Options",
535
+ "name": "paginationOptions",
536
+ "type": "paginationOptions",
537
+ "options": {
538
+ "type": "OFFSET",
539
+ "limit": 10,
540
+ "offset": 0,
541
+ "sortField": "name",
542
+ "sortOrder": "ASC"
543
+ }
544
+ }
545
+ ]
546
+ },
547
+ "queryId": {
548
+ "type": "string",
549
+ "default": "useLicensesQuery"
550
+ },
551
+ "answerField": {
552
+ "type": "string",
553
+ "const": "uri",
554
+ "default": "uri"
555
+ }
556
+ },
557
+ "additionalProperties": false,
558
+ "default": {}
559
+ }
560
+ },
561
+ "required": [
562
+ "type"
563
+ ],
564
+ "additionalProperties": false
565
+ },
566
+ {
567
+ "type": "object",
568
+ "properties": {
569
+ "type": {
570
+ "type": "string",
571
+ "const": "metadataStandardSearch"
572
+ },
573
+ "attributes": {
574
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes",
575
+ "default": {}
576
+ },
577
+ "meta": {
578
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
579
+ },
580
+ "graphQL": {
581
+ "type": "object",
582
+ "properties": {
583
+ "displayFields": {
584
+ "type": "array",
585
+ "items": {
586
+ "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/graphQL/properties/displayFields/items"
587
+ },
588
+ "default": [
589
+ {
590
+ "propertyName": "name",
591
+ "label": "Name"
592
+ },
593
+ {
594
+ "propertyName": "description",
595
+ "label": "Description"
596
+ },
597
+ {
598
+ "propertyName": "website",
599
+ "label": "Website"
600
+ },
601
+ {
602
+ "propertyName": "keywords",
603
+ "label": "Subject Areas"
604
+ }
605
+ ]
606
+ },
607
+ "localQueryId": {
608
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
609
+ },
610
+ "query": {
611
+ "type": "string",
612
+ "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 } } }",
613
+ "default": "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 } } }"
614
+ },
615
+ "responseField": {
616
+ "type": "string",
617
+ "const": "metadataStandards.items",
618
+ "default": "metadataStandards.items"
619
+ },
620
+ "variables": {
621
+ "type": "array",
622
+ "items": {
623
+ "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/graphQL/properties/variables/items"
624
+ },
625
+ "default": [
626
+ {
627
+ "minLength": 3,
628
+ "label": "Search for a metadata standard",
629
+ "name": "term",
630
+ "type": "string"
631
+ },
632
+ {
633
+ "minLength": 3,
634
+ "label": "Subject Areas",
635
+ "name": "keywords",
636
+ "type": "string"
637
+ },
638
+ {
639
+ "label": "Pagination Options",
640
+ "name": "paginationOptions",
641
+ "type": "paginationOptions",
642
+ "options": {
643
+ "type": "OFFSET",
644
+ "limit": 10,
645
+ "offset": 0,
646
+ "sortField": "name",
647
+ "sortOrder": "ASC"
648
+ }
649
+ }
650
+ ]
651
+ },
652
+ "queryId": {
653
+ "type": "string",
654
+ "default": "useMetadataStandardsQuery"
655
+ },
656
+ "answerField": {
657
+ "type": "string",
658
+ "const": "uri",
659
+ "default": "uri"
660
+ }
661
+ },
662
+ "additionalProperties": false,
663
+ "default": {}
664
+ }
665
+ },
666
+ "required": [
667
+ "type"
668
+ ],
669
+ "additionalProperties": false
670
+ },
434
671
  {
435
672
  "type": "object",
436
673
  "properties": {
@@ -553,13 +790,13 @@
553
790
  "type": "object",
554
791
  "properties": {
555
792
  "start": {
556
- "$ref": "#/definitions/AnyQuestion/anyOf/8/properties/attributes",
793
+ "$ref": "#/definitions/AnyQuestion/anyOf/10/properties/attributes",
557
794
  "default": {
558
795
  "label": "From"
559
796
  }
560
797
  },
561
798
  "end": {
562
- "$ref": "#/definitions/AnyQuestion/anyOf/8/properties/attributes",
799
+ "$ref": "#/definitions/AnyQuestion/anyOf/10/properties/attributes",
563
800
  "default": {
564
801
  "label": "To"
565
802
  }
@@ -591,7 +828,7 @@
591
828
  "options": {
592
829
  "type": "array",
593
830
  "items": {
594
- "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/options/items"
831
+ "$ref": "#/definitions/AnyQuestion/anyOf/9/properties/options/items"
595
832
  },
596
833
  "default": [
597
834
  {}
@@ -608,44 +845,105 @@
608
845
  "properties": {
609
846
  "type": {
610
847
  "type": "string",
611
- "const": "selectBox"
848
+ "const": "repositorySearch"
612
849
  },
613
850
  "attributes": {
851
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes",
852
+ "default": {}
853
+ },
854
+ "meta": {
855
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
856
+ },
857
+ "graphQL": {
614
858
  "type": "object",
615
859
  "properties": {
616
- "label": {
617
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
860
+ "displayFields": {
861
+ "type": "array",
862
+ "items": {
863
+ "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/graphQL/properties/displayFields/items"
864
+ },
865
+ "default": [
866
+ {
867
+ "propertyName": "name",
868
+ "label": "Name"
869
+ },
870
+ {
871
+ "propertyName": "description",
872
+ "label": "Description"
873
+ },
874
+ {
875
+ "propertyName": "website",
876
+ "label": "Website"
877
+ },
878
+ {
879
+ "propertyName": "keywords",
880
+ "label": "Subject Areas"
881
+ }
882
+ ]
618
883
  },
619
- "help": {
620
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
884
+ "localQueryId": {
885
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
621
886
  },
622
- "labelTranslationKey": {
623
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
887
+ "query": {
888
+ "type": "string",
889
+ "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 } } }",
890
+ "default": "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 } } }"
624
891
  },
625
- "multiple": {
626
- "type": "boolean",
627
- "const": false
892
+ "responseField": {
893
+ "type": "string",
894
+ "const": "repositories.items",
895
+ "default": "repositories.items"
896
+ },
897
+ "variables": {
898
+ "type": "array",
899
+ "items": {
900
+ "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/graphQL/properties/variables/items"
901
+ },
902
+ "default": [
903
+ {
904
+ "minLength": 3,
905
+ "label": "Search for a repository",
906
+ "name": "term",
907
+ "type": "string"
908
+ },
909
+ {
910
+ "minLength": 3,
911
+ "label": "Subject Areas",
912
+ "name": "keywords",
913
+ "type": "string"
914
+ },
915
+ {
916
+ "minLength": 3,
917
+ "label": "Repository type",
918
+ "name": "repositoryType",
919
+ "type": "string"
920
+ },
921
+ {
922
+ "label": "Pagination Options",
923
+ "name": "paginationOptions",
924
+ "type": "paginationOptions",
925
+ "options": {
926
+ "type": "OFFSET",
927
+ "limit": 10,
928
+ "offset": 0,
929
+ "sortField": "name",
930
+ "sortOrder": "ASC"
931
+ }
932
+ }
933
+ ]
934
+ },
935
+ "queryId": {
936
+ "type": "string",
937
+ "default": "useRepositoriesQuery"
938
+ },
939
+ "answerField": {
940
+ "type": "string",
941
+ "const": "uri",
942
+ "default": "uri"
628
943
  }
629
944
  },
630
- "required": [
631
- "multiple"
632
- ],
633
945
  "additionalProperties": false,
634
- "default": {
635
- "multiple": false
636
- }
637
- },
638
- "meta": {
639
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
640
- },
641
- "options": {
642
- "type": "array",
643
- "items": {
644
- "$ref": "#/definitions/AnyQuestion/anyOf/7/properties/options/items"
645
- },
646
- "default": [
647
- {}
648
- ]
946
+ "default": {}
649
947
  }
650
948
  },
651
949
  "required": [
@@ -658,7 +956,7 @@
658
956
  "properties": {
659
957
  "type": {
660
958
  "type": "string",
661
- "const": "table"
959
+ "const": "researchOutputTable"
662
960
  },
663
961
  "attributes": {
664
962
  "type": "object",
@@ -706,6 +1004,14 @@
706
1004
  "type": "string",
707
1005
  "default": "Column A"
708
1006
  },
1007
+ "required": {
1008
+ "type": "boolean",
1009
+ "default": false
1010
+ },
1011
+ "enabled": {
1012
+ "type": "boolean",
1013
+ "default": true
1014
+ },
709
1015
  "content": {
710
1016
  "anyOf": [
711
1017
  {
@@ -729,12 +1035,21 @@
729
1035
  {
730
1036
  "$ref": "#/definitions/AnyQuestion/anyOf/6"
731
1037
  },
1038
+ {
1039
+ "$ref": "#/definitions/AnyQuestion/anyOf/7"
1040
+ },
1041
+ {
1042
+ "$ref": "#/definitions/AnyQuestion/anyOf/8"
1043
+ },
1044
+ {
1045
+ "$ref": "#/definitions/AnyQuestion/anyOf/10"
1046
+ },
732
1047
  {
733
1048
  "type": "object",
734
1049
  "properties": {
735
1050
  "type": {
736
1051
  "type": "string",
737
- "const": "filteredSearch"
1052
+ "const": "numberWithContext"
738
1053
  },
739
1054
  "attributes": {
740
1055
  "type": "object",
@@ -748,88 +1063,42 @@
748
1063
  "labelTranslationKey": {
749
1064
  "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
750
1065
  },
751
- "multiple": {
752
- "type": "boolean",
753
- "default": true
754
- }
755
- },
756
- "additionalProperties": false,
757
- "default": {}
758
- },
759
- "meta": {
760
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
761
- },
762
- "graphQL": {
763
- "type": "object",
764
- "properties": {
765
- "displayFields": {
766
- "type": "array",
767
- "items": {
768
- "type": "object",
769
- "properties": {
770
- "propertyName": {
771
- "type": "string",
772
- "default": "id"
773
- },
774
- "label": {
775
- "type": "string",
776
- "default": "Id"
777
- },
778
- "labelTranslationKey": {
779
- "type": "string"
780
- }
781
- },
782
- "additionalProperties": false
783
- },
784
- "default": [
785
- {}
786
- ]
787
- },
788
- "localQueryId": {
789
- "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
1066
+ "max": {
1067
+ "$ref": "#/definitions/AnyQuestion/anyOf/3/properties/attributes/properties/max"
790
1068
  },
791
- "query": {
792
- "type": "string"
1069
+ "min": {
1070
+ "$ref": "#/definitions/AnyQuestion/anyOf/3/properties/attributes/properties/min"
793
1071
  },
794
- "responseField": {
795
- "type": "string",
796
- "default": "query.items"
1072
+ "step": {
1073
+ "$ref": "#/definitions/AnyQuestion/anyOf/3/properties/attributes/properties/step"
797
1074
  },
798
- "variables": {
1075
+ "context": {
799
1076
  "type": "array",
800
1077
  "items": {
801
1078
  "type": "object",
802
1079
  "properties": {
803
- "minLength": {
804
- "type": "number"
805
- },
806
1080
  "label": {
807
- "type": "string"
1081
+ "type": "string",
1082
+ "default": ""
808
1083
  },
809
1084
  "labelTranslationKey": {
810
1085
  "type": "string"
811
1086
  },
812
- "name": {
1087
+ "value": {
813
1088
  "type": "string",
814
- "default": "search"
815
- },
816
- "type": {
817
- "type": "string",
818
- "default": "string"
819
- },
820
- "defaultValue": {
821
- "type": "string"
1089
+ "default": ""
822
1090
  }
823
1091
  },
824
1092
  "additionalProperties": false
825
1093
  },
826
- "default": [
827
- {}
828
- ]
1094
+ "default": []
829
1095
  }
830
1096
  },
831
1097
  "additionalProperties": false,
832
1098
  "default": {}
1099
+ },
1100
+ "meta": {
1101
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
833
1102
  }
834
1103
  },
835
1104
  "required": [
@@ -838,13 +1107,60 @@
838
1107
  "additionalProperties": false
839
1108
  },
840
1109
  {
841
- "$ref": "#/definitions/AnyQuestion/anyOf/8"
1110
+ "$ref": "#/definitions/AnyQuestion/anyOf/12"
842
1111
  },
843
1112
  {
844
- "$ref": "#/definitions/AnyQuestion/anyOf/10"
1113
+ "$ref": "#/definitions/AnyQuestion/anyOf/13"
845
1114
  },
846
1115
  {
847
- "$ref": "#/definitions/AnyQuestion/anyOf/11"
1116
+ "type": "object",
1117
+ "properties": {
1118
+ "type": {
1119
+ "type": "string",
1120
+ "const": "selectBox"
1121
+ },
1122
+ "attributes": {
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "label": {
1126
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/label"
1127
+ },
1128
+ "help": {
1129
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/help"
1130
+ },
1131
+ "labelTranslationKey": {
1132
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
1133
+ },
1134
+ "multiple": {
1135
+ "type": "boolean",
1136
+ "const": false
1137
+ }
1138
+ },
1139
+ "required": [
1140
+ "multiple"
1141
+ ],
1142
+ "additionalProperties": false,
1143
+ "default": {
1144
+ "multiple": false
1145
+ }
1146
+ },
1147
+ "meta": {
1148
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
1149
+ },
1150
+ "options": {
1151
+ "type": "array",
1152
+ "items": {
1153
+ "$ref": "#/definitions/AnyQuestion/anyOf/9/properties/options/items"
1154
+ },
1155
+ "default": [
1156
+ {}
1157
+ ]
1158
+ }
1159
+ },
1160
+ "required": [
1161
+ "type"
1162
+ ],
1163
+ "additionalProperties": false
848
1164
  },
849
1165
  {
850
1166
  "type": "object",
@@ -945,7 +1261,7 @@
945
1261
  "const": "url"
946
1262
  },
947
1263
  "attributes": {
948
- "$ref": "#/definitions/AnyQuestion/anyOf/12/properties/columns/items/properties/content/anyOf/12/properties/attributes",
1264
+ "$ref": "#/definitions/AnyQuestion/anyOf/14/properties/columns/items/properties/content/anyOf/15/properties/attributes",
949
1265
  "default": {}
950
1266
  },
951
1267
  "meta": {
@@ -961,10 +1277,422 @@
961
1277
  "default": {
962
1278
  "type": "textArea"
963
1279
  }
1280
+ },
1281
+ "meta": {
1282
+ "type": "object",
1283
+ "properties": {
1284
+ "schemaVersion": {
1285
+ "type": "string",
1286
+ "default": "1.0"
1287
+ },
1288
+ "labelTranslationKey": {
1289
+ "type": "string"
1290
+ }
1291
+ },
1292
+ "additionalProperties": false,
1293
+ "default": {}
964
1294
  }
965
1295
  },
966
1296
  "additionalProperties": false
967
1297
  },
1298
+ "default": [
1299
+ {
1300
+ "heading": "Title",
1301
+ "required": true,
1302
+ "enabled": true,
1303
+ "content": {
1304
+ "type": "text",
1305
+ "attributes": {
1306
+ "help": "Enter the title of this research output",
1307
+ "labelTranslationKey": "researchOutput.title.heading"
1308
+ },
1309
+ "meta": {
1310
+ "schemaVersion": "1.0"
1311
+ }
1312
+ },
1313
+ "meta": {
1314
+ "schemaVersion": "1.0"
1315
+ }
1316
+ },
1317
+ {
1318
+ "heading": "Description",
1319
+ "required": false,
1320
+ "enabled": true,
1321
+ "content": {
1322
+ "type": "textArea",
1323
+ "attributes": {
1324
+ "help": "Provide a brief description of this research output",
1325
+ "labelTranslationKey": "researchOutput.description.heading"
1326
+ },
1327
+ "meta": {
1328
+ "schemaVersion": "1.0"
1329
+ }
1330
+ },
1331
+ "meta": {
1332
+ "schemaVersion": "1.0"
1333
+ }
1334
+ },
1335
+ {
1336
+ "heading": "Output Type",
1337
+ "required": true,
1338
+ "enabled": true,
1339
+ "content": {
1340
+ "type": "selectBox",
1341
+ "attributes": {
1342
+ "multiple": false,
1343
+ "help": "Select the type that best describes this research output",
1344
+ "labelTranslationKey": "researchOutput.outputType.heading"
1345
+ },
1346
+ "meta": {
1347
+ "schemaVersion": "1.0"
1348
+ },
1349
+ "options": [
1350
+ {
1351
+ "label": "Option A",
1352
+ "value": "a",
1353
+ "selected": false
1354
+ }
1355
+ ]
1356
+ },
1357
+ "meta": {
1358
+ "schemaVersion": "1.0"
1359
+ }
1360
+ },
1361
+ {
1362
+ "heading": "Data Flags",
1363
+ "required": false,
1364
+ "enabled": false,
1365
+ "content": {
1366
+ "type": "checkBoxes",
1367
+ "attributes": {
1368
+ "help": "Select any data flags that apply to this research output",
1369
+ "labelTranslationKey": "researchOutput.dataFlags.heading"
1370
+ },
1371
+ "meta": {
1372
+ "schemaVersion": "1.0"
1373
+ },
1374
+ "options": [
1375
+ {
1376
+ "label": "May contain sensitive data?",
1377
+ "value": "sensitive"
1378
+ },
1379
+ {
1380
+ "label": "May contain personally identifiable information?",
1381
+ "value": "personal"
1382
+ }
1383
+ ]
1384
+ },
1385
+ "meta": {
1386
+ "schemaVersion": "1.0"
1387
+ }
1388
+ },
1389
+ {
1390
+ "heading": "Initial Access Level",
1391
+ "required": false,
1392
+ "enabled": false,
1393
+ "content": {
1394
+ "type": "selectBox",
1395
+ "attributes": {
1396
+ "multiple": false,
1397
+ "help": "The initial access level for the research output",
1398
+ "labelTranslationKey": "researchOutput.accessLevel.heading"
1399
+ },
1400
+ "meta": {
1401
+ "schemaVersion": "1.0"
1402
+ },
1403
+ "options": [
1404
+ {
1405
+ "label": "Unrestricted Access",
1406
+ "value": "open"
1407
+ },
1408
+ {
1409
+ "label": "Controlled Access",
1410
+ "value": "restricted"
1411
+ },
1412
+ {
1413
+ "label": "Other",
1414
+ "value": "closed"
1415
+ }
1416
+ ]
1417
+ },
1418
+ "meta": {
1419
+ "schemaVersion": "1.0"
1420
+ }
1421
+ },
1422
+ {
1423
+ "heading": "Anticipated Release Date",
1424
+ "required": false,
1425
+ "enabled": false,
1426
+ "content": {
1427
+ "type": "date",
1428
+ "attributes": {
1429
+ "help": "The anticipated release date for the research output",
1430
+ "labelTranslationKey": "researchOutput.releaseDate.heading"
1431
+ },
1432
+ "meta": {
1433
+ "schemaVersion": "1.0"
1434
+ }
1435
+ },
1436
+ "meta": {
1437
+ "schemaVersion": "1.0"
1438
+ }
1439
+ },
1440
+ {
1441
+ "heading": "Byte Size",
1442
+ "required": false,
1443
+ "enabled": false,
1444
+ "content": {
1445
+ "type": "numberWithContext",
1446
+ "attributes": {
1447
+ "min": 0,
1448
+ "help": "The size of the research output in bytes",
1449
+ "labelTranslationKey": "researchOutput.byteSize.heading",
1450
+ "context": [
1451
+ {
1452
+ "label": "bytes",
1453
+ "value": "bytes"
1454
+ },
1455
+ {
1456
+ "label": "KB (kilobytes)",
1457
+ "value": "kb"
1458
+ },
1459
+ {
1460
+ "label": "MB (megabytes)",
1461
+ "value": "mb"
1462
+ },
1463
+ {
1464
+ "label": "GB (gigabytes)",
1465
+ "value": "gb"
1466
+ },
1467
+ {
1468
+ "label": "TB (terabytes)",
1469
+ "value": "tb"
1470
+ },
1471
+ {
1472
+ "label": "PB (petabytes)",
1473
+ "value": "pb"
1474
+ }
1475
+ ]
1476
+ },
1477
+ "meta": {
1478
+ "schemaVersion": "1.0"
1479
+ }
1480
+ },
1481
+ "meta": {
1482
+ "schemaVersion": "1.0"
1483
+ }
1484
+ },
1485
+ {
1486
+ "heading": "Repository",
1487
+ "required": false,
1488
+ "enabled": false,
1489
+ "content": {
1490
+ "type": "repositorySearch",
1491
+ "attributes": {},
1492
+ "meta": {
1493
+ "schemaVersion": "1.0"
1494
+ },
1495
+ "graphQL": {
1496
+ "displayFields": [
1497
+ {
1498
+ "propertyName": "name",
1499
+ "label": "Name"
1500
+ },
1501
+ {
1502
+ "propertyName": "description",
1503
+ "label": "Description"
1504
+ },
1505
+ {
1506
+ "propertyName": "website",
1507
+ "label": "Website"
1508
+ },
1509
+ {
1510
+ "propertyName": "keywords",
1511
+ "label": "Subject Areas"
1512
+ }
1513
+ ],
1514
+ "query": "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 } } }",
1515
+ "responseField": "repositories.items",
1516
+ "variables": [
1517
+ {
1518
+ "minLength": 3,
1519
+ "label": "Search for a repository",
1520
+ "name": "term",
1521
+ "type": "string"
1522
+ },
1523
+ {
1524
+ "minLength": 3,
1525
+ "label": "Subject Areas",
1526
+ "name": "keywords",
1527
+ "type": "string"
1528
+ },
1529
+ {
1530
+ "minLength": 3,
1531
+ "label": "Repository type",
1532
+ "name": "repositoryType",
1533
+ "type": "string"
1534
+ },
1535
+ {
1536
+ "label": "Pagination Options",
1537
+ "name": "paginationOptions",
1538
+ "type": "paginationOptions"
1539
+ }
1540
+ ],
1541
+ "answerField": "uri"
1542
+ }
1543
+ },
1544
+ "meta": {
1545
+ "schemaVersion": "1.0"
1546
+ },
1547
+ "preferences": [],
1548
+ "attributes": {
1549
+ "help": "Select repositor(ies) you would prefer users to deposit in",
1550
+ "labelTranslationKey": "researchOutput.repository.heading"
1551
+ }
1552
+ },
1553
+ {
1554
+ "heading": "Metadata Standard",
1555
+ "required": false,
1556
+ "enabled": false,
1557
+ "content": {
1558
+ "type": "metadataStandardSearch",
1559
+ "attributes": {},
1560
+ "meta": {
1561
+ "schemaVersion": "1.0"
1562
+ },
1563
+ "graphQL": {
1564
+ "displayFields": [
1565
+ {
1566
+ "propertyName": "name",
1567
+ "label": "Name"
1568
+ },
1569
+ {
1570
+ "propertyName": "description",
1571
+ "label": "Description"
1572
+ },
1573
+ {
1574
+ "propertyName": "website",
1575
+ "label": "Website"
1576
+ },
1577
+ {
1578
+ "propertyName": "keywords",
1579
+ "label": "Subject Areas"
1580
+ }
1581
+ ],
1582
+ "query": "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 } } }",
1583
+ "responseField": "metadataStandards.items",
1584
+ "variables": [
1585
+ {
1586
+ "minLength": 3,
1587
+ "label": "Search for a metadata standard",
1588
+ "name": "term",
1589
+ "type": "string"
1590
+ },
1591
+ {
1592
+ "minLength": 3,
1593
+ "label": "Subject Areas",
1594
+ "name": "keywords",
1595
+ "type": "string"
1596
+ },
1597
+ {
1598
+ "label": "Pagination Options",
1599
+ "name": "paginationOptions",
1600
+ "type": "paginationOptions"
1601
+ }
1602
+ ],
1603
+ "answerField": "uri"
1604
+ }
1605
+ },
1606
+ "meta": {
1607
+ "schemaVersion": "1.0"
1608
+ },
1609
+ "preferences": [],
1610
+ "attributes": {
1611
+ "help": "Select metadata standard(s) you would prefer users to use",
1612
+ "labelTranslationKey": "researchOutput.metadataStandard.heading"
1613
+ }
1614
+ },
1615
+ {
1616
+ "heading": "License",
1617
+ "required": false,
1618
+ "enabled": false,
1619
+ "content": {
1620
+ "type": "licenseSearch",
1621
+ "attributes": {},
1622
+ "meta": {
1623
+ "schemaVersion": "1.0"
1624
+ },
1625
+ "graphQL": {
1626
+ "displayFields": [
1627
+ {
1628
+ "propertyName": "name",
1629
+ "label": "Name"
1630
+ },
1631
+ {
1632
+ "propertyName": "description",
1633
+ "label": "Description"
1634
+ },
1635
+ {
1636
+ "propertyName": "recommended",
1637
+ "label": "Recommended"
1638
+ }
1639
+ ],
1640
+ "query": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }",
1641
+ "responseField": "licenses.items",
1642
+ "variables": [
1643
+ {
1644
+ "minLength": 3,
1645
+ "label": "Search for a license",
1646
+ "name": "term",
1647
+ "type": "string"
1648
+ },
1649
+ {
1650
+ "label": "Pagination Options",
1651
+ "name": "paginationOptions",
1652
+ "type": "paginationOptions"
1653
+ }
1654
+ ],
1655
+ "answerField": "uri"
1656
+ }
1657
+ },
1658
+ "meta": {
1659
+ "schemaVersion": "1.0"
1660
+ },
1661
+ "preferences": [],
1662
+ "attributes": {
1663
+ "help": "Select license(s) you would prefer users to apply to the research output",
1664
+ "labelTranslationKey": "researchOutput.license.heading"
1665
+ }
1666
+ }
1667
+ ]
1668
+ }
1669
+ },
1670
+ "required": [
1671
+ "type"
1672
+ ],
1673
+ "additionalProperties": false
1674
+ },
1675
+ {
1676
+ "$ref": "#/definitions/AnyQuestion/anyOf/14/properties/columns/items/properties/content/anyOf/13"
1677
+ },
1678
+ {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "type": {
1682
+ "type": "string",
1683
+ "const": "table"
1684
+ },
1685
+ "attributes": {
1686
+ "$ref": "#/definitions/AnyQuestion/anyOf/14/properties/attributes"
1687
+ },
1688
+ "meta": {
1689
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta"
1690
+ },
1691
+ "columns": {
1692
+ "type": "array",
1693
+ "items": {
1694
+ "$ref": "#/definitions/AnyQuestion/anyOf/14/properties/columns/items"
1695
+ },
968
1696
  "default": [
969
1697
  {}
970
1698
  ]
@@ -976,13 +1704,13 @@
976
1704
  "additionalProperties": false
977
1705
  },
978
1706
  {
979
- "$ref": "#/definitions/AnyQuestion/anyOf/12/properties/columns/items/properties/content/anyOf/11"
1707
+ "$ref": "#/definitions/AnyQuestion/anyOf/14/properties/columns/items/properties/content/anyOf/14"
980
1708
  },
981
1709
  {
982
- "$ref": "#/definitions/AnyQuestion/anyOf/12/properties/columns/items/properties/content/anyOf/12"
1710
+ "$ref": "#/definitions/AnyQuestion/anyOf/14/properties/columns/items/properties/content/anyOf/15"
983
1711
  },
984
1712
  {
985
- "$ref": "#/definitions/AnyQuestion/anyOf/12/properties/columns/items/properties/content/anyOf/13"
1713
+ "$ref": "#/definitions/AnyQuestion/anyOf/14/properties/columns/items/properties/content/anyOf/16"
986
1714
  }
987
1715
  ]
988
1716
  }