@dmptool/types 2.2.0 → 2.3.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 (41) hide show
  1. package/dist/answers/__tests__/answers.spec.js +27 -14
  2. package/dist/answers/__tests__/defaults.spec.js +2 -0
  3. package/dist/answers/index.d.ts +102 -0
  4. package/dist/answers/index.js +1 -0
  5. package/dist/answers/tableAnswers.d.ts +614 -136
  6. package/dist/answers/tableAnswers.js +43 -20
  7. package/dist/dmp/__tests__/commonStandard.spec.js +26 -22
  8. package/dist/dmp/__tests__/extensions.spec.js +21 -15
  9. package/dist/dmp/extension.d.ts +385 -92
  10. package/dist/dmp/extension.js +49 -103
  11. package/dist/dmp/index.d.ts +515 -2
  12. package/dist/dmp/index.js +11 -1
  13. package/dist/questions/__tests__/defaults.spec.js +20 -10
  14. package/dist/questions/__tests__/optionBasedQuestions.spec.js +17 -12
  15. package/dist/questions/__tests__/tableQuestion.spec.js +5 -0
  16. package/dist/questions/index.d.ts +20 -7
  17. package/dist/questions/optionBasedQuestions.d.ts +8 -6
  18. package/dist/questions/optionBasedQuestions.js +21 -8
  19. package/dist/questions/tableQuestions.d.ts +54 -16
  20. package/dist/questions/tableQuestions.js +56 -19
  21. package/dist/schemas/anyAnswer.schema.json +514 -0
  22. package/dist/schemas/anyQuestion.schema.json +60 -35
  23. package/dist/schemas/anyTableColumnQuestion.schema.json +9 -10
  24. package/dist/schemas/checkboxesQuestion.schema.json +3 -0
  25. package/dist/schemas/dmpExtension.schema.json +636 -140
  26. package/dist/schemas/multiselectBoxQuestion.schema.json +3 -5
  27. package/dist/schemas/radioButtonsQuestion.schema.json +3 -5
  28. package/dist/schemas/researchOutputTableAnswer.schema.json +6047 -11983
  29. package/dist/schemas/selectBoxQuestion.schema.json +3 -5
  30. package/dist/schemas/tableQuestion.schema.json +9 -10
  31. package/package.json +1 -1
  32. package/schemas/anyAnswer.schema.json +514 -0
  33. package/schemas/anyQuestion.schema.json +60 -35
  34. package/schemas/anyTableColumnQuestion.schema.json +9 -10
  35. package/schemas/checkboxesQuestion.schema.json +3 -0
  36. package/schemas/dmpExtension.schema.json +636 -140
  37. package/schemas/multiselectBoxQuestion.schema.json +3 -5
  38. package/schemas/radioButtonsQuestion.schema.json +3 -5
  39. package/schemas/researchOutputTableAnswer.schema.json +6047 -11983
  40. package/schemas/selectBoxQuestion.schema.json +3 -5
  41. package/schemas/tableQuestion.schema.json +9 -10
@@ -597,6 +597,520 @@
597
597
  ],
598
598
  "additionalProperties": false
599
599
  },
600
+ {
601
+ "type": "object",
602
+ "properties": {
603
+ "type": {
604
+ "type": "string",
605
+ "const": "researchOutputTable"
606
+ },
607
+ "meta": {
608
+ "type": "object",
609
+ "properties": {
610
+ "schemaVersion": {
611
+ "default": "1.0",
612
+ "type": "string"
613
+ }
614
+ },
615
+ "required": [
616
+ "schemaVersion"
617
+ ],
618
+ "additionalProperties": false
619
+ },
620
+ "comment": {
621
+ "type": "string"
622
+ },
623
+ "columnHeadings": {
624
+ "default": [
625
+ "Title",
626
+ "Type"
627
+ ],
628
+ "type": "array",
629
+ "items": {
630
+ "type": "string"
631
+ }
632
+ },
633
+ "answer": {
634
+ "type": "array",
635
+ "items": {
636
+ "type": "object",
637
+ "properties": {
638
+ "columns": {
639
+ "type": "array",
640
+ "items": {
641
+ "oneOf": [
642
+ {
643
+ "type": "object",
644
+ "properties": {
645
+ "type": {
646
+ "type": "string",
647
+ "const": "checkBoxes"
648
+ },
649
+ "meta": {
650
+ "type": "object",
651
+ "properties": {
652
+ "schemaVersion": {
653
+ "default": "1.0",
654
+ "type": "string"
655
+ }
656
+ },
657
+ "required": [
658
+ "schemaVersion"
659
+ ],
660
+ "additionalProperties": false
661
+ },
662
+ "comment": {
663
+ "type": "string"
664
+ },
665
+ "answer": {
666
+ "default": [
667
+ ""
668
+ ],
669
+ "type": "array",
670
+ "items": {
671
+ "type": "string"
672
+ }
673
+ },
674
+ "commonStandardId": {
675
+ "type": "string"
676
+ }
677
+ },
678
+ "required": [
679
+ "type",
680
+ "meta",
681
+ "answer"
682
+ ],
683
+ "additionalProperties": false
684
+ },
685
+ {
686
+ "type": "object",
687
+ "properties": {
688
+ "type": {
689
+ "type": "string",
690
+ "const": "date"
691
+ },
692
+ "meta": {
693
+ "type": "object",
694
+ "properties": {
695
+ "schemaVersion": {
696
+ "default": "1.0",
697
+ "type": "string"
698
+ }
699
+ },
700
+ "required": [
701
+ "schemaVersion"
702
+ ],
703
+ "additionalProperties": false
704
+ },
705
+ "comment": {
706
+ "type": "string"
707
+ },
708
+ "answer": {
709
+ "default": "",
710
+ "type": "string"
711
+ },
712
+ "commonStandardId": {
713
+ "type": "string"
714
+ }
715
+ },
716
+ "required": [
717
+ "type",
718
+ "meta",
719
+ "answer"
720
+ ],
721
+ "additionalProperties": false
722
+ },
723
+ {
724
+ "type": "object",
725
+ "properties": {
726
+ "type": {
727
+ "type": "string",
728
+ "const": "licenseSearch"
729
+ },
730
+ "meta": {
731
+ "type": "object",
732
+ "properties": {
733
+ "schemaVersion": {
734
+ "default": "1.0",
735
+ "type": "string"
736
+ }
737
+ },
738
+ "required": [
739
+ "schemaVersion"
740
+ ],
741
+ "additionalProperties": false
742
+ },
743
+ "comment": {
744
+ "type": "string"
745
+ },
746
+ "answer": {
747
+ "default": [],
748
+ "type": "array",
749
+ "items": {
750
+ "type": "object",
751
+ "properties": {
752
+ "licenseId": {
753
+ "default": "",
754
+ "type": "string"
755
+ },
756
+ "licenseName": {
757
+ "default": "",
758
+ "type": "string"
759
+ }
760
+ },
761
+ "required": [
762
+ "licenseId",
763
+ "licenseName"
764
+ ],
765
+ "additionalProperties": false
766
+ }
767
+ },
768
+ "commonStandardId": {
769
+ "type": "string"
770
+ }
771
+ },
772
+ "required": [
773
+ "type",
774
+ "meta",
775
+ "answer"
776
+ ],
777
+ "additionalProperties": false
778
+ },
779
+ {
780
+ "type": "object",
781
+ "properties": {
782
+ "type": {
783
+ "type": "string",
784
+ "const": "metadataStandardSearch"
785
+ },
786
+ "meta": {
787
+ "type": "object",
788
+ "properties": {
789
+ "schemaVersion": {
790
+ "default": "1.0",
791
+ "type": "string"
792
+ }
793
+ },
794
+ "required": [
795
+ "schemaVersion"
796
+ ],
797
+ "additionalProperties": false
798
+ },
799
+ "comment": {
800
+ "type": "string"
801
+ },
802
+ "answer": {
803
+ "default": [],
804
+ "type": "array",
805
+ "items": {
806
+ "type": "object",
807
+ "properties": {
808
+ "metadataStandardId": {
809
+ "default": "",
810
+ "type": "string"
811
+ },
812
+ "metadataStandardName": {
813
+ "default": "",
814
+ "type": "string"
815
+ }
816
+ },
817
+ "required": [
818
+ "metadataStandardId",
819
+ "metadataStandardName"
820
+ ],
821
+ "additionalProperties": false
822
+ }
823
+ },
824
+ "commonStandardId": {
825
+ "type": "string"
826
+ }
827
+ },
828
+ "required": [
829
+ "type",
830
+ "meta",
831
+ "answer"
832
+ ],
833
+ "additionalProperties": false
834
+ },
835
+ {
836
+ "type": "object",
837
+ "properties": {
838
+ "type": {
839
+ "type": "string",
840
+ "const": "numberWithContext"
841
+ },
842
+ "meta": {
843
+ "type": "object",
844
+ "properties": {
845
+ "schemaVersion": {
846
+ "default": "1.0",
847
+ "type": "string"
848
+ }
849
+ },
850
+ "required": [
851
+ "schemaVersion"
852
+ ],
853
+ "additionalProperties": false
854
+ },
855
+ "comment": {
856
+ "type": "string"
857
+ },
858
+ "answer": {
859
+ "type": "object",
860
+ "properties": {
861
+ "value": {
862
+ "default": 0,
863
+ "type": "number"
864
+ },
865
+ "context": {
866
+ "default": "",
867
+ "type": "string"
868
+ }
869
+ },
870
+ "required": [
871
+ "value",
872
+ "context"
873
+ ],
874
+ "additionalProperties": false
875
+ },
876
+ "commonStandardId": {
877
+ "type": "string"
878
+ }
879
+ },
880
+ "required": [
881
+ "type",
882
+ "meta",
883
+ "answer"
884
+ ],
885
+ "additionalProperties": false
886
+ },
887
+ {
888
+ "type": "object",
889
+ "properties": {
890
+ "type": {
891
+ "type": "string",
892
+ "const": "radioButtons"
893
+ },
894
+ "meta": {
895
+ "type": "object",
896
+ "properties": {
897
+ "schemaVersion": {
898
+ "default": "1.0",
899
+ "type": "string"
900
+ }
901
+ },
902
+ "required": [
903
+ "schemaVersion"
904
+ ],
905
+ "additionalProperties": false
906
+ },
907
+ "comment": {
908
+ "type": "string"
909
+ },
910
+ "answer": {
911
+ "default": "",
912
+ "type": "string"
913
+ },
914
+ "commonStandardId": {
915
+ "type": "string"
916
+ }
917
+ },
918
+ "required": [
919
+ "type",
920
+ "meta",
921
+ "answer"
922
+ ],
923
+ "additionalProperties": false
924
+ },
925
+ {
926
+ "type": "object",
927
+ "properties": {
928
+ "type": {
929
+ "type": "string",
930
+ "const": "repositorySearch"
931
+ },
932
+ "meta": {
933
+ "type": "object",
934
+ "properties": {
935
+ "schemaVersion": {
936
+ "default": "1.0",
937
+ "type": "string"
938
+ }
939
+ },
940
+ "required": [
941
+ "schemaVersion"
942
+ ],
943
+ "additionalProperties": false
944
+ },
945
+ "comment": {
946
+ "type": "string"
947
+ },
948
+ "answer": {
949
+ "default": [],
950
+ "type": "array",
951
+ "items": {
952
+ "type": "object",
953
+ "properties": {
954
+ "repositoryId": {
955
+ "default": "",
956
+ "type": "string"
957
+ },
958
+ "repositoryName": {
959
+ "default": "",
960
+ "type": "string"
961
+ }
962
+ },
963
+ "required": [
964
+ "repositoryId",
965
+ "repositoryName"
966
+ ],
967
+ "additionalProperties": false
968
+ }
969
+ },
970
+ "commonStandardId": {
971
+ "type": "string"
972
+ }
973
+ },
974
+ "required": [
975
+ "type",
976
+ "meta",
977
+ "answer"
978
+ ],
979
+ "additionalProperties": false
980
+ },
981
+ {
982
+ "type": "object",
983
+ "properties": {
984
+ "type": {
985
+ "type": "string",
986
+ "const": "selectBox"
987
+ },
988
+ "meta": {
989
+ "type": "object",
990
+ "properties": {
991
+ "schemaVersion": {
992
+ "default": "1.0",
993
+ "type": "string"
994
+ }
995
+ },
996
+ "required": [
997
+ "schemaVersion"
998
+ ],
999
+ "additionalProperties": false
1000
+ },
1001
+ "comment": {
1002
+ "type": "string"
1003
+ },
1004
+ "answer": {
1005
+ "default": "",
1006
+ "type": "string"
1007
+ },
1008
+ "commonStandardId": {
1009
+ "type": "string"
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "type",
1014
+ "meta",
1015
+ "answer"
1016
+ ],
1017
+ "additionalProperties": false
1018
+ },
1019
+ {
1020
+ "type": "object",
1021
+ "properties": {
1022
+ "type": {
1023
+ "type": "string",
1024
+ "const": "text"
1025
+ },
1026
+ "meta": {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "schemaVersion": {
1030
+ "default": "1.0",
1031
+ "type": "string"
1032
+ }
1033
+ },
1034
+ "required": [
1035
+ "schemaVersion"
1036
+ ],
1037
+ "additionalProperties": false
1038
+ },
1039
+ "comment": {
1040
+ "type": "string"
1041
+ },
1042
+ "answer": {
1043
+ "default": "",
1044
+ "type": "string"
1045
+ },
1046
+ "commonStandardId": {
1047
+ "type": "string"
1048
+ }
1049
+ },
1050
+ "required": [
1051
+ "type",
1052
+ "meta",
1053
+ "answer"
1054
+ ],
1055
+ "additionalProperties": false
1056
+ },
1057
+ {
1058
+ "type": "object",
1059
+ "properties": {
1060
+ "type": {
1061
+ "type": "string",
1062
+ "const": "textArea"
1063
+ },
1064
+ "meta": {
1065
+ "type": "object",
1066
+ "properties": {
1067
+ "schemaVersion": {
1068
+ "default": "1.0",
1069
+ "type": "string"
1070
+ }
1071
+ },
1072
+ "required": [
1073
+ "schemaVersion"
1074
+ ],
1075
+ "additionalProperties": false
1076
+ },
1077
+ "comment": {
1078
+ "type": "string"
1079
+ },
1080
+ "answer": {
1081
+ "default": "",
1082
+ "type": "string"
1083
+ },
1084
+ "commonStandardId": {
1085
+ "type": "string"
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "type",
1090
+ "meta",
1091
+ "answer"
1092
+ ],
1093
+ "additionalProperties": false
1094
+ }
1095
+ ]
1096
+ }
1097
+ }
1098
+ },
1099
+ "required": [
1100
+ "columns"
1101
+ ],
1102
+ "additionalProperties": false
1103
+ }
1104
+ }
1105
+ },
1106
+ "required": [
1107
+ "type",
1108
+ "meta",
1109
+ "columnHeadings",
1110
+ "answer"
1111
+ ],
1112
+ "additionalProperties": false
1113
+ },
600
1114
  {
601
1115
  "type": "object",
602
1116
  "properties": {