@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
@@ -49,6 +49,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
49
49
  checked: z.ZodDefault<z.ZodBoolean>;
50
50
  label: z.ZodDefault<z.ZodString>;
51
51
  value: z.ZodDefault<z.ZodString>;
52
+ description: z.ZodOptional<z.ZodString>;
52
53
  }, z.core.$strip>>;
53
54
  showCommentField: z.ZodOptional<z.ZodBoolean>;
54
55
  attributes: z.ZodObject<{
@@ -247,9 +248,9 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
247
248
  }, z.core.$strip>, z.ZodObject<{
248
249
  type: z.ZodLiteral<"radioButtons">;
249
250
  options: z.ZodArray<z.ZodObject<{
250
- selected: z.ZodDefault<z.ZodBoolean>;
251
251
  label: z.ZodDefault<z.ZodString>;
252
252
  value: z.ZodDefault<z.ZodString>;
253
+ description: z.ZodOptional<z.ZodString>;
253
254
  }, z.core.$strip>>;
254
255
  showCommentField: z.ZodOptional<z.ZodBoolean>;
255
256
  attributes: z.ZodObject<{
@@ -297,9 +298,9 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
297
298
  }, z.core.$strip>, z.ZodObject<{
298
299
  type: z.ZodLiteral<"selectBox">;
299
300
  options: z.ZodArray<z.ZodObject<{
300
- selected: z.ZodDefault<z.ZodBoolean>;
301
301
  label: z.ZodDefault<z.ZodString>;
302
302
  value: z.ZodDefault<z.ZodString>;
303
+ description: z.ZodOptional<z.ZodString>;
303
304
  }, z.core.$strip>>;
304
305
  attributes: z.ZodObject<{
305
306
  multiple: z.ZodLiteral<false>;
@@ -418,6 +419,7 @@ export declare const TableColumnSchema: z.ZodObject<{
418
419
  checked: z.ZodDefault<z.ZodBoolean>;
419
420
  label: z.ZodDefault<z.ZodString>;
420
421
  value: z.ZodDefault<z.ZodString>;
422
+ description: z.ZodOptional<z.ZodString>;
421
423
  }, z.core.$strip>>;
422
424
  showCommentField: z.ZodOptional<z.ZodBoolean>;
423
425
  attributes: z.ZodObject<{
@@ -616,9 +618,9 @@ export declare const TableColumnSchema: z.ZodObject<{
616
618
  }, z.core.$strip>, z.ZodObject<{
617
619
  type: z.ZodLiteral<"radioButtons">;
618
620
  options: z.ZodArray<z.ZodObject<{
619
- selected: z.ZodDefault<z.ZodBoolean>;
620
621
  label: z.ZodDefault<z.ZodString>;
621
622
  value: z.ZodDefault<z.ZodString>;
623
+ description: z.ZodOptional<z.ZodString>;
622
624
  }, z.core.$strip>>;
623
625
  showCommentField: z.ZodOptional<z.ZodBoolean>;
624
626
  attributes: z.ZodObject<{
@@ -666,9 +668,9 @@ export declare const TableColumnSchema: z.ZodObject<{
666
668
  }, z.core.$strip>, z.ZodObject<{
667
669
  type: z.ZodLiteral<"selectBox">;
668
670
  options: z.ZodArray<z.ZodObject<{
669
- selected: z.ZodDefault<z.ZodBoolean>;
670
671
  label: z.ZodDefault<z.ZodString>;
671
672
  value: z.ZodDefault<z.ZodString>;
673
+ description: z.ZodOptional<z.ZodString>;
672
674
  }, z.core.$strip>>;
673
675
  attributes: z.ZodObject<{
674
676
  multiple: z.ZodLiteral<false>;
@@ -923,6 +925,7 @@ export declare const DefaultTableColumn: {
923
925
  checked: boolean;
924
926
  label: string;
925
927
  value: string;
928
+ description?: string | undefined;
926
929
  }[];
927
930
  attributes: {
928
931
  label?: string | undefined;
@@ -938,9 +941,9 @@ export declare const DefaultTableColumn: {
938
941
  } | {
939
942
  type: "radioButtons";
940
943
  options: {
941
- selected: boolean;
942
944
  label: string;
943
945
  value: string;
946
+ description?: string | undefined;
944
947
  }[];
945
948
  attributes: {
946
949
  label?: string | undefined;
@@ -956,9 +959,9 @@ export declare const DefaultTableColumn: {
956
959
  } | {
957
960
  type: "selectBox";
958
961
  options: {
959
- selected: boolean;
960
962
  label: string;
961
963
  value: string;
964
+ description?: string | undefined;
962
965
  }[];
963
966
  attributes: {
964
967
  multiple: false;
@@ -1160,6 +1163,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
1160
1163
  checked: z.ZodDefault<z.ZodBoolean>;
1161
1164
  label: z.ZodDefault<z.ZodString>;
1162
1165
  value: z.ZodDefault<z.ZodString>;
1166
+ description: z.ZodOptional<z.ZodString>;
1163
1167
  }, z.core.$strip>>;
1164
1168
  showCommentField: z.ZodOptional<z.ZodBoolean>;
1165
1169
  attributes: z.ZodObject<{
@@ -1358,9 +1362,9 @@ export declare const TableQuestionSchema: z.ZodObject<{
1358
1362
  }, z.core.$strip>, z.ZodObject<{
1359
1363
  type: z.ZodLiteral<"radioButtons">;
1360
1364
  options: z.ZodArray<z.ZodObject<{
1361
- selected: z.ZodDefault<z.ZodBoolean>;
1362
1365
  label: z.ZodDefault<z.ZodString>;
1363
1366
  value: z.ZodDefault<z.ZodString>;
1367
+ description: z.ZodOptional<z.ZodString>;
1364
1368
  }, z.core.$strip>>;
1365
1369
  showCommentField: z.ZodOptional<z.ZodBoolean>;
1366
1370
  attributes: z.ZodObject<{
@@ -1408,9 +1412,9 @@ export declare const TableQuestionSchema: z.ZodObject<{
1408
1412
  }, z.core.$strip>, z.ZodObject<{
1409
1413
  type: z.ZodLiteral<"selectBox">;
1410
1414
  options: z.ZodArray<z.ZodObject<{
1411
- selected: z.ZodDefault<z.ZodBoolean>;
1412
1415
  label: z.ZodDefault<z.ZodString>;
1413
1416
  value: z.ZodDefault<z.ZodString>;
1417
+ description: z.ZodOptional<z.ZodString>;
1414
1418
  }, z.core.$strip>>;
1415
1419
  attributes: z.ZodObject<{
1416
1420
  multiple: z.ZodLiteral<false>;
@@ -1683,6 +1687,7 @@ export declare const DefaultTableQuestion: {
1683
1687
  checked: boolean;
1684
1688
  label: string;
1685
1689
  value: string;
1690
+ description?: string | undefined;
1686
1691
  }[];
1687
1692
  attributes: {
1688
1693
  label?: string | undefined;
@@ -1698,9 +1703,9 @@ export declare const DefaultTableQuestion: {
1698
1703
  } | {
1699
1704
  type: "radioButtons";
1700
1705
  options: {
1701
- selected: boolean;
1702
1706
  label: string;
1703
1707
  value: string;
1708
+ description?: string | undefined;
1704
1709
  }[];
1705
1710
  attributes: {
1706
1711
  label?: string | undefined;
@@ -1716,9 +1721,9 @@ export declare const DefaultTableQuestion: {
1716
1721
  } | {
1717
1722
  type: "selectBox";
1718
1723
  options: {
1719
- selected: boolean;
1720
1724
  label: string;
1721
1725
  value: string;
1726
+ description?: string | undefined;
1722
1727
  }[];
1723
1728
  attributes: {
1724
1729
  multiple: false;
@@ -1927,6 +1932,7 @@ export declare const DefaultResearchOutputCustomColumn: {
1927
1932
  };
1928
1933
  declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
1929
1934
  heading: z.ZodDefault<z.ZodString>;
1935
+ commonStandardId: z.ZodOptional<z.ZodString>;
1930
1936
  help: z.ZodDefault<z.ZodString>;
1931
1937
  required: z.ZodDefault<z.ZodBoolean>;
1932
1938
  content: z.ZodObject<{
@@ -1948,6 +1954,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
1948
1954
  enabled: z.ZodDefault<z.ZodBoolean>;
1949
1955
  }, z.core.$strip>, z.ZodObject<{
1950
1956
  heading: z.ZodDefault<z.ZodString>;
1957
+ commonStandardId: z.ZodOptional<z.ZodString>;
1951
1958
  help: z.ZodDefault<z.ZodString>;
1952
1959
  content: z.ZodObject<{
1953
1960
  type: z.ZodLiteral<"textArea">;
@@ -1972,14 +1979,15 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
1972
1979
  enabled: z.ZodDefault<z.ZodBoolean>;
1973
1980
  }, z.core.$strip>, z.ZodObject<{
1974
1981
  heading: z.ZodDefault<z.ZodString>;
1982
+ commonStandardId: z.ZodOptional<z.ZodString>;
1975
1983
  help: z.ZodDefault<z.ZodString>;
1976
1984
  required: z.ZodDefault<z.ZodBoolean>;
1977
1985
  content: z.ZodObject<{
1978
1986
  type: z.ZodLiteral<"selectBox">;
1979
1987
  options: z.ZodArray<z.ZodObject<{
1980
- selected: z.ZodDefault<z.ZodBoolean>;
1981
1988
  label: z.ZodDefault<z.ZodString>;
1982
1989
  value: z.ZodDefault<z.ZodString>;
1990
+ description: z.ZodOptional<z.ZodString>;
1983
1991
  }, z.core.$strip>>;
1984
1992
  attributes: z.ZodObject<{
1985
1993
  multiple: z.ZodLiteral<false>;
@@ -1997,6 +2005,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
1997
2005
  enabled: z.ZodDefault<z.ZodBoolean>;
1998
2006
  }, z.core.$strip>, z.ZodObject<{
1999
2007
  heading: z.ZodDefault<z.ZodString>;
2008
+ commonStandardId: z.ZodOptional<z.ZodString>;
2000
2009
  help: z.ZodDefault<z.ZodString>;
2001
2010
  enabled: z.ZodDefault<z.ZodBoolean>;
2002
2011
  content: z.ZodObject<{
@@ -2005,6 +2014,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
2005
2014
  checked: z.ZodDefault<z.ZodBoolean>;
2006
2015
  label: z.ZodDefault<z.ZodString>;
2007
2016
  value: z.ZodDefault<z.ZodString>;
2017
+ description: z.ZodOptional<z.ZodString>;
2008
2018
  }, z.core.$strip>>;
2009
2019
  showCommentField: z.ZodOptional<z.ZodBoolean>;
2010
2020
  attributes: z.ZodObject<{
@@ -2021,14 +2031,15 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
2021
2031
  required: z.ZodDefault<z.ZodBoolean>;
2022
2032
  }, z.core.$strip>, z.ZodObject<{
2023
2033
  heading: z.ZodDefault<z.ZodString>;
2034
+ commonStandardId: z.ZodOptional<z.ZodString>;
2024
2035
  help: z.ZodDefault<z.ZodString>;
2025
2036
  enabled: z.ZodDefault<z.ZodBoolean>;
2026
2037
  content: z.ZodObject<{
2027
2038
  type: z.ZodLiteral<"radioButtons">;
2028
2039
  options: z.ZodArray<z.ZodObject<{
2029
- selected: z.ZodDefault<z.ZodBoolean>;
2030
2040
  label: z.ZodDefault<z.ZodString>;
2031
2041
  value: z.ZodDefault<z.ZodString>;
2042
+ description: z.ZodOptional<z.ZodString>;
2032
2043
  }, z.core.$strip>>;
2033
2044
  showCommentField: z.ZodOptional<z.ZodBoolean>;
2034
2045
  attributes: z.ZodObject<{
@@ -2045,6 +2056,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
2045
2056
  required: z.ZodDefault<z.ZodBoolean>;
2046
2057
  }, z.core.$strip>, z.ZodObject<{
2047
2058
  heading: z.ZodDefault<z.ZodString>;
2059
+ commonStandardId: z.ZodOptional<z.ZodString>;
2048
2060
  help: z.ZodDefault<z.ZodString>;
2049
2061
  enabled: z.ZodDefault<z.ZodBoolean>;
2050
2062
  content: z.ZodObject<{
@@ -2067,6 +2079,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
2067
2079
  required: z.ZodDefault<z.ZodBoolean>;
2068
2080
  }, z.core.$strip>, z.ZodObject<{
2069
2081
  heading: z.ZodDefault<z.ZodString>;
2082
+ commonStandardId: z.ZodOptional<z.ZodString>;
2070
2083
  help: z.ZodDefault<z.ZodString>;
2071
2084
  enabled: z.ZodDefault<z.ZodBoolean>;
2072
2085
  content: z.ZodObject<{
@@ -2095,6 +2108,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
2095
2108
  required: z.ZodDefault<z.ZodBoolean>;
2096
2109
  }, z.core.$strip>, z.ZodObject<{
2097
2110
  heading: z.ZodDefault<z.ZodString>;
2111
+ commonStandardId: z.ZodOptional<z.ZodString>;
2098
2112
  help: z.ZodDefault<z.ZodString>;
2099
2113
  enabled: z.ZodDefault<z.ZodBoolean>;
2100
2114
  content: z.ZodObject<{
@@ -2137,6 +2151,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
2137
2151
  required: z.ZodDefault<z.ZodBoolean>;
2138
2152
  }, z.core.$strip>, z.ZodObject<{
2139
2153
  heading: z.ZodDefault<z.ZodString>;
2154
+ commonStandardId: z.ZodOptional<z.ZodString>;
2140
2155
  help: z.ZodDefault<z.ZodString>;
2141
2156
  enabled: z.ZodDefault<z.ZodBoolean>;
2142
2157
  content: z.ZodObject<{
@@ -2179,6 +2194,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
2179
2194
  required: z.ZodDefault<z.ZodBoolean>;
2180
2195
  }, z.core.$strip>, z.ZodObject<{
2181
2196
  heading: z.ZodDefault<z.ZodString>;
2197
+ commonStandardId: z.ZodOptional<z.ZodString>;
2182
2198
  help: z.ZodDefault<z.ZodString>;
2183
2199
  enabled: z.ZodDefault<z.ZodBoolean>;
2184
2200
  content: z.ZodObject<{
@@ -2246,6 +2262,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2246
2262
  type: z.ZodLiteral<"researchOutputTable">;
2247
2263
  columns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2248
2264
  heading: z.ZodDefault<z.ZodString>;
2265
+ commonStandardId: z.ZodOptional<z.ZodString>;
2249
2266
  help: z.ZodDefault<z.ZodString>;
2250
2267
  required: z.ZodDefault<z.ZodBoolean>;
2251
2268
  content: z.ZodObject<{
@@ -2267,6 +2284,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2267
2284
  enabled: z.ZodDefault<z.ZodBoolean>;
2268
2285
  }, z.core.$strip>, z.ZodObject<{
2269
2286
  heading: z.ZodDefault<z.ZodString>;
2287
+ commonStandardId: z.ZodOptional<z.ZodString>;
2270
2288
  help: z.ZodDefault<z.ZodString>;
2271
2289
  content: z.ZodObject<{
2272
2290
  type: z.ZodLiteral<"textArea">;
@@ -2291,14 +2309,15 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2291
2309
  enabled: z.ZodDefault<z.ZodBoolean>;
2292
2310
  }, z.core.$strip>, z.ZodObject<{
2293
2311
  heading: z.ZodDefault<z.ZodString>;
2312
+ commonStandardId: z.ZodOptional<z.ZodString>;
2294
2313
  help: z.ZodDefault<z.ZodString>;
2295
2314
  required: z.ZodDefault<z.ZodBoolean>;
2296
2315
  content: z.ZodObject<{
2297
2316
  type: z.ZodLiteral<"selectBox">;
2298
2317
  options: z.ZodArray<z.ZodObject<{
2299
- selected: z.ZodDefault<z.ZodBoolean>;
2300
2318
  label: z.ZodDefault<z.ZodString>;
2301
2319
  value: z.ZodDefault<z.ZodString>;
2320
+ description: z.ZodOptional<z.ZodString>;
2302
2321
  }, z.core.$strip>>;
2303
2322
  attributes: z.ZodObject<{
2304
2323
  multiple: z.ZodLiteral<false>;
@@ -2316,6 +2335,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2316
2335
  enabled: z.ZodDefault<z.ZodBoolean>;
2317
2336
  }, z.core.$strip>, z.ZodObject<{
2318
2337
  heading: z.ZodDefault<z.ZodString>;
2338
+ commonStandardId: z.ZodOptional<z.ZodString>;
2319
2339
  help: z.ZodDefault<z.ZodString>;
2320
2340
  enabled: z.ZodDefault<z.ZodBoolean>;
2321
2341
  content: z.ZodObject<{
@@ -2324,6 +2344,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2324
2344
  checked: z.ZodDefault<z.ZodBoolean>;
2325
2345
  label: z.ZodDefault<z.ZodString>;
2326
2346
  value: z.ZodDefault<z.ZodString>;
2347
+ description: z.ZodOptional<z.ZodString>;
2327
2348
  }, z.core.$strip>>;
2328
2349
  showCommentField: z.ZodOptional<z.ZodBoolean>;
2329
2350
  attributes: z.ZodObject<{
@@ -2340,14 +2361,15 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2340
2361
  required: z.ZodDefault<z.ZodBoolean>;
2341
2362
  }, z.core.$strip>, z.ZodObject<{
2342
2363
  heading: z.ZodDefault<z.ZodString>;
2364
+ commonStandardId: z.ZodOptional<z.ZodString>;
2343
2365
  help: z.ZodDefault<z.ZodString>;
2344
2366
  enabled: z.ZodDefault<z.ZodBoolean>;
2345
2367
  content: z.ZodObject<{
2346
2368
  type: z.ZodLiteral<"radioButtons">;
2347
2369
  options: z.ZodArray<z.ZodObject<{
2348
- selected: z.ZodDefault<z.ZodBoolean>;
2349
2370
  label: z.ZodDefault<z.ZodString>;
2350
2371
  value: z.ZodDefault<z.ZodString>;
2372
+ description: z.ZodOptional<z.ZodString>;
2351
2373
  }, z.core.$strip>>;
2352
2374
  showCommentField: z.ZodOptional<z.ZodBoolean>;
2353
2375
  attributes: z.ZodObject<{
@@ -2364,6 +2386,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2364
2386
  required: z.ZodDefault<z.ZodBoolean>;
2365
2387
  }, z.core.$strip>, z.ZodObject<{
2366
2388
  heading: z.ZodDefault<z.ZodString>;
2389
+ commonStandardId: z.ZodOptional<z.ZodString>;
2367
2390
  help: z.ZodDefault<z.ZodString>;
2368
2391
  enabled: z.ZodDefault<z.ZodBoolean>;
2369
2392
  content: z.ZodObject<{
@@ -2386,6 +2409,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2386
2409
  required: z.ZodDefault<z.ZodBoolean>;
2387
2410
  }, z.core.$strip>, z.ZodObject<{
2388
2411
  heading: z.ZodDefault<z.ZodString>;
2412
+ commonStandardId: z.ZodOptional<z.ZodString>;
2389
2413
  help: z.ZodDefault<z.ZodString>;
2390
2414
  enabled: z.ZodDefault<z.ZodBoolean>;
2391
2415
  content: z.ZodObject<{
@@ -2414,6 +2438,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2414
2438
  required: z.ZodDefault<z.ZodBoolean>;
2415
2439
  }, z.core.$strip>, z.ZodObject<{
2416
2440
  heading: z.ZodDefault<z.ZodString>;
2441
+ commonStandardId: z.ZodOptional<z.ZodString>;
2417
2442
  help: z.ZodDefault<z.ZodString>;
2418
2443
  enabled: z.ZodDefault<z.ZodBoolean>;
2419
2444
  content: z.ZodObject<{
@@ -2456,6 +2481,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2456
2481
  required: z.ZodDefault<z.ZodBoolean>;
2457
2482
  }, z.core.$strip>, z.ZodObject<{
2458
2483
  heading: z.ZodDefault<z.ZodString>;
2484
+ commonStandardId: z.ZodOptional<z.ZodString>;
2459
2485
  help: z.ZodDefault<z.ZodString>;
2460
2486
  enabled: z.ZodDefault<z.ZodBoolean>;
2461
2487
  content: z.ZodObject<{
@@ -2498,6 +2524,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
2498
2524
  required: z.ZodDefault<z.ZodBoolean>;
2499
2525
  }, z.core.$strip>, z.ZodObject<{
2500
2526
  heading: z.ZodDefault<z.ZodString>;
2527
+ commonStandardId: z.ZodOptional<z.ZodString>;
2501
2528
  help: z.ZodDefault<z.ZodString>;
2502
2529
  enabled: z.ZodDefault<z.ZodBoolean>;
2503
2530
  content: z.ZodObject<{
@@ -2600,6 +2627,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2600
2627
  };
2601
2628
  };
2602
2629
  enabled: boolean;
2630
+ commonStandardId?: string | undefined;
2603
2631
  } | {
2604
2632
  heading: string;
2605
2633
  help: string;
@@ -2624,6 +2652,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2624
2652
  };
2625
2653
  required: boolean;
2626
2654
  enabled: boolean;
2655
+ commonStandardId?: string | undefined;
2627
2656
  } | {
2628
2657
  heading: string;
2629
2658
  help: string;
@@ -2631,9 +2660,9 @@ export declare const DefaultResearchOutputTableQuestion: {
2631
2660
  content: {
2632
2661
  type: "selectBox";
2633
2662
  options: {
2634
- selected: boolean;
2635
2663
  label: string;
2636
2664
  value: string;
2665
+ description?: string | undefined;
2637
2666
  }[];
2638
2667
  attributes: {
2639
2668
  multiple: false;
@@ -2649,6 +2678,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2649
2678
  showCommentField?: boolean | undefined;
2650
2679
  };
2651
2680
  enabled: boolean;
2681
+ commonStandardId?: string | undefined;
2652
2682
  } | {
2653
2683
  heading: string;
2654
2684
  help: string;
@@ -2659,6 +2689,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2659
2689
  checked: boolean;
2660
2690
  label: string;
2661
2691
  value: string;
2692
+ description?: string | undefined;
2662
2693
  }[];
2663
2694
  attributes: {
2664
2695
  label?: string | undefined;
@@ -2673,6 +2704,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2673
2704
  showCommentField?: boolean | undefined;
2674
2705
  };
2675
2706
  required: boolean;
2707
+ commonStandardId?: string | undefined;
2676
2708
  } | {
2677
2709
  heading: string;
2678
2710
  help: string;
@@ -2680,9 +2712,9 @@ export declare const DefaultResearchOutputTableQuestion: {
2680
2712
  content: {
2681
2713
  type: "radioButtons";
2682
2714
  options: {
2683
- selected: boolean;
2684
2715
  label: string;
2685
2716
  value: string;
2717
+ description?: string | undefined;
2686
2718
  }[];
2687
2719
  attributes: {
2688
2720
  label?: string | undefined;
@@ -2697,6 +2729,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2697
2729
  showCommentField?: boolean | undefined;
2698
2730
  };
2699
2731
  required: boolean;
2732
+ commonStandardId?: string | undefined;
2700
2733
  } | {
2701
2734
  heading: string;
2702
2735
  help: string;
@@ -2719,6 +2752,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2719
2752
  showCommentField?: boolean | undefined;
2720
2753
  };
2721
2754
  required: boolean;
2755
+ commonStandardId?: string | undefined;
2722
2756
  } | {
2723
2757
  heading: string;
2724
2758
  help: string;
@@ -2747,6 +2781,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2747
2781
  showCommentField?: boolean | undefined;
2748
2782
  };
2749
2783
  required: boolean;
2784
+ commonStandardId?: string | undefined;
2750
2785
  } | {
2751
2786
  heading: string;
2752
2787
  help: string;
@@ -2789,6 +2824,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2789
2824
  value: string;
2790
2825
  }[];
2791
2826
  required: boolean;
2827
+ commonStandardId?: string | undefined;
2792
2828
  } | {
2793
2829
  heading: string;
2794
2830
  help: string;
@@ -2831,6 +2867,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2831
2867
  value: string;
2832
2868
  }[];
2833
2869
  required: boolean;
2870
+ commonStandardId?: string | undefined;
2834
2871
  } | {
2835
2872
  heading: string;
2836
2873
  help: string;
@@ -2873,6 +2910,7 @@ export declare const DefaultResearchOutputTableQuestion: {
2873
2910
  value: string;
2874
2911
  }[];
2875
2912
  required: boolean;
2913
+ commonStandardId?: string | undefined;
2876
2914
  } | {
2877
2915
  heading: string;
2878
2916
  help: string;
@@ -66,19 +66,27 @@ const ResearchOutputTableColumnPreferenceSchema = zod_1.z.object({
66
66
  label: zod_1.z.string().default(''), // The label of the preference option
67
67
  value: zod_1.z.string().default('') // The value of the preference option
68
68
  });
69
- const ResearchOutputTitleColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Title'), help: zod_1.z.string().default('Enter the title of this research output'), required: zod_1.z.boolean().default(true), content: textQuestions_1.TextQuestionSchema }));
69
+ const ResearchOutputTitleColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Title'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Enter the title of this research output'), required: zod_1.z.boolean().default(true), content: textQuestions_1.TextQuestionSchema }));
70
70
  // Blank out the label and help text as these are set at the column level
71
71
  const DefaultResearchOutputTitleContent = Object.assign(Object.assign({}, textQuestions_1.DefaultTextQuestion), { label: '', help: '' });
72
72
  const DefaultResearchOutputTitleColumn = ResearchOutputTitleColumnSchema.parse({
73
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
74
+ // Any change will also need to be made to `buildDataset` function of
75
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
73
76
  heading: 'Title',
77
+ commonStandardId: 'title',
74
78
  required: true,
75
79
  content: DefaultResearchOutputTitleContent
76
80
  });
77
- const ResearchOutputDescriptionColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Description'), help: zod_1.z.string().default('Enter a brief description of this research output'), content: textQuestions_1.TextAreaQuestionSchema }));
81
+ const ResearchOutputDescriptionColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Description'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Enter a brief description of this research output'), content: textQuestions_1.TextAreaQuestionSchema }));
78
82
  // Blank out the label and help text as these are set at the column level
79
83
  const DefaultResearchOutputDescriptionContent = Object.assign(Object.assign({}, textQuestions_1.DefaultTextAreaQuestion), { label: '', help: '' });
80
84
  const DefaultResearchOutputDescriptionColumn = ResearchOutputDescriptionColumnSchema.parse({
85
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
86
+ // Any change will also need to be made to `buildDataset` function of
87
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
81
88
  heading: 'Description',
89
+ commonStandardId: 'description',
82
90
  enabled: false,
83
91
  content: DefaultResearchOutputDescriptionContent
84
92
  });
@@ -93,9 +101,13 @@ const DefaultResearchOutputTypeContent = optionBasedQuestions_1.SelectBoxQuestio
93
101
  meta: question_1.DefaultMeta,
94
102
  options: DefaultResearchOutputTypeOptions
95
103
  });
96
- const ResearchOutputTypeColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Type'), help: zod_1.z.string().default('Select the type of this research output'), required: zod_1.z.boolean().default(true), content: optionBasedQuestions_1.SelectBoxQuestionSchema }));
104
+ const ResearchOutputTypeColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Type'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Select the type of this research output'), required: zod_1.z.boolean().default(true), content: optionBasedQuestions_1.SelectBoxQuestionSchema }));
97
105
  const DefaultResearchOutputTypeColumn = ResearchOutputTypeColumnSchema.parse({
106
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
107
+ // Any change will also need to be made to `buildDataset` function of
108
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
98
109
  heading: 'Type',
110
+ commonStandardId: 'type',
99
111
  required: true,
100
112
  content: DefaultResearchOutputTypeContent,
101
113
  });
@@ -109,16 +121,20 @@ const DefaultResearchOutputDataFlagsContent = optionBasedQuestions_1.CheckboxesQ
109
121
  meta: question_1.DefaultMeta,
110
122
  options: DefaultResearchOutputDataFlagsOptions
111
123
  });
112
- const ResearchOutputDataFlagsColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Data Flags'), help: zod_1.z.string().default('Mark all of the statements that are true about the dataset'), enabled: zod_1.z.boolean().default(false), content: optionBasedQuestions_1.CheckboxesQuestionSchema }));
124
+ const ResearchOutputDataFlagsColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Data Flags'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Mark all of the statements that are true about the dataset'), enabled: zod_1.z.boolean().default(false), content: optionBasedQuestions_1.CheckboxesQuestionSchema }));
113
125
  const DefaultResearchOutputDataFlagsColumn = ResearchOutputDataFlagsColumnSchema.parse({
126
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
127
+ // Any change will also need to be made to `buildDataset` function of
128
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
114
129
  heading: 'Data Flags',
130
+ commonStandardId: 'data_flags',
115
131
  enabled: false,
116
132
  content: DefaultResearchOutputDataFlagsContent
117
133
  });
118
134
  const DefaultResearchOutputAccessLevelOptions = [
119
- { label: 'Open Access', value: 'open', selected: false },
120
- { label: 'Restricted Access', value: 'restricted', selected: false },
121
- { label: 'Other', value: 'closed', selected: false },
135
+ { label: 'Open Access', value: 'open' },
136
+ { label: 'Restricted Access', value: 'restricted' },
137
+ { label: 'Other', value: 'closed' },
122
138
  ];
123
139
  const DefaultResearchOutputAccessLevelContent = optionBasedQuestions_1.RadioButtonsQuestionSchema.parse({
124
140
  type: 'radioButtons',
@@ -126,25 +142,33 @@ const DefaultResearchOutputAccessLevelContent = optionBasedQuestions_1.RadioButt
126
142
  meta: question_1.DefaultMeta,
127
143
  options: DefaultResearchOutputAccessLevelOptions
128
144
  });
129
- const ResearchOutputAccessLevelColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Access Level'), help: zod_1.z.string().default('Select the access level for this research output'), enabled: zod_1.z.boolean().default(false), content: optionBasedQuestions_1.RadioButtonsQuestionSchema }));
145
+ const ResearchOutputAccessLevelColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Access Level'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Select the access level for this research output'), enabled: zod_1.z.boolean().default(false), content: optionBasedQuestions_1.RadioButtonsQuestionSchema }));
130
146
  const DefaultResearchOutputAccessLevelColumn = ResearchOutputAccessLevelColumnSchema.parse({
147
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
148
+ // Any change will also need to be made to `buildDataset` function of
149
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
131
150
  heading: 'Access Level',
151
+ commonStandardId: 'data_access',
132
152
  enabled: false,
133
153
  content: DefaultResearchOutputAccessLevelContent
134
154
  });
135
- const ResearchOutputReleaseDateColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Anticipated Release Date'), help: zod_1.z.string().default('The anticipated release date for the research output'), enabled: zod_1.z.boolean().default(false), content: dateQuestions_1.DateQuestionSchema }));
155
+ const ResearchOutputReleaseDateColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Anticipated Release Date'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('The anticipated release date for the research output'), enabled: zod_1.z.boolean().default(false), content: dateQuestions_1.DateQuestionSchema }));
136
156
  const DefaultResearchOutputReleaseDateColumn = ResearchOutputReleaseDateColumnSchema.parse({
157
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
158
+ // Any change will also need to be made to `buildDataset` function of
159
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
137
160
  heading: 'Anticipated Release Date',
161
+ commonStandardId: 'issued',
138
162
  enabled: false,
139
163
  content: dateQuestions_1.DefaultDateQuestion,
140
164
  });
141
165
  const DefaultResearchOutputByteSizeOptions = [
142
- { label: 'bytes', value: 'bytes', selected: false },
143
- { label: 'KB (kilobytes)', value: 'kb', selected: true },
144
- { label: 'MB (megabytes)', value: 'mb', selected: false },
145
- { label: 'GB (gigabytes)', value: 'gb', selected: false },
146
- { label: 'TB (terabytes)', value: 'tb', selected: false },
147
- { label: 'PB (petabytes)', value: 'pb', selected: false }
166
+ { label: 'bytes', value: 'bytes' },
167
+ { label: 'KB (kilobytes)', value: 'kb' },
168
+ { label: 'MB (megabytes)', value: 'mb' },
169
+ { label: 'GB (gigabytes)', value: 'gb' },
170
+ { label: 'TB (terabytes)', value: 'tb' },
171
+ { label: 'PB (petabytes)', value: 'pb' }
148
172
  ];
149
173
  const DefaultResearchOutputByteSizeContentAttributes = Object.assign(Object.assign({}, numberQuestions_1.DefaultNumberWithContextQuestion.attributes), { context: DefaultResearchOutputByteSizeOptions });
150
174
  const DefaultResearchOutputByteSizeContent = numberQuestions_1.NumberWithContextQuestionSchema.parse({
@@ -152,29 +176,42 @@ const DefaultResearchOutputByteSizeContent = numberQuestions_1.NumberWithContext
152
176
  attributes: DefaultResearchOutputByteSizeContentAttributes,
153
177
  meta: question_1.DefaultMeta,
154
178
  });
155
- const ResearchOutputByteSizeColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Byte Size'), help: zod_1.z.string().default('The size of the research output in bytes'), enabled: zod_1.z.boolean().default(false), content: numberQuestions_1.NumberWithContextQuestionSchema }));
179
+ const ResearchOutputByteSizeColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Byte Size'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('The size of the research output in bytes'), enabled: zod_1.z.boolean().default(false), content: numberQuestions_1.NumberWithContextQuestionSchema }));
156
180
  const DefaultResearchOutputByteSizeColumn = ResearchOutputByteSizeColumnSchema.parse({
181
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
182
+ // Any change will also need to be made to `buildDataset` function of
183
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
157
184
  heading: 'Byte Size',
185
+ commonStandardId: 'byte_size',
158
186
  enabled: false,
159
187
  content: DefaultResearchOutputByteSizeContent
160
188
  });
161
- const ResearchOutputRepositoryColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Repository'), help: zod_1.z.string().default('Select repository(ies) you would prefer users to deposit in'), enabled: zod_1.z.boolean().default(false), content: graphQLQuestions_1.RepositorySearchQuestionSchema, preferences: zod_1.z.array(ResearchOutputTableColumnPreferenceSchema).default([]) }));
189
+ const ResearchOutputRepositoryColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Repository'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Select repository(ies) you would prefer users to deposit in'), enabled: zod_1.z.boolean().default(false), content: graphQLQuestions_1.RepositorySearchQuestionSchema, preferences: zod_1.z.array(ResearchOutputTableColumnPreferenceSchema).default([]) }));
162
190
  const DefaultResearchOutputRepositoryColumn = ResearchOutputRepositoryColumnSchema.parse({
163
191
  heading: 'Repository(ies)',
192
+ commonStandardId: 'host',
164
193
  enabled: false,
165
194
  content: graphQLQuestions_1.DefaultRepositorySearchQuestion,
166
195
  preferences: []
167
196
  });
168
- const ResearchOutputMetadataStandardColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Metadata Standard'), help: zod_1.z.string().default('Select metadata standard(s) you would prefer users to use'), enabled: zod_1.z.boolean().default(false), content: graphQLQuestions_1.MetadataStandardSearchQuestionSchema, preferences: zod_1.z.array(ResearchOutputTableColumnPreferenceSchema).default([]) }));
197
+ const ResearchOutputMetadataStandardColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('Metadata Standard'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Select metadata standard(s) you would prefer users to use'), enabled: zod_1.z.boolean().default(false), content: graphQLQuestions_1.MetadataStandardSearchQuestionSchema, preferences: zod_1.z.array(ResearchOutputTableColumnPreferenceSchema).default([]) }));
169
198
  const DefaultResearchOutputMetadataStandardColumn = ResearchOutputMetadataStandardColumnSchema.parse({
199
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
200
+ // Any change will also need to be made to `buildDataset` function of
201
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
170
202
  heading: 'Metadata Standard(s)',
203
+ commonStandardId: 'metadata',
171
204
  enabled: false,
172
205
  content: graphQLQuestions_1.DefaultMetadataStandardSearchQuestion,
173
206
  preferences: []
174
207
  });
175
- const ResearchOutputLicenseColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('License'), help: zod_1.z.string().default('Select the license you will apply to the research output'), enabled: zod_1.z.boolean().default(false), content: graphQLQuestions_1.LicenseSearchQuestionSchema, preferences: zod_1.z.array(ResearchOutputTableColumnPreferenceSchema).default([]) }));
208
+ const ResearchOutputLicenseColumnSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.TableColumnSchema.shape), { heading: zod_1.z.string().default('License'), commonStandardId: zod_1.z.string().optional(), help: zod_1.z.string().default('Select the license you will apply to the research output'), enabled: zod_1.z.boolean().default(false), content: graphQLQuestions_1.LicenseSearchQuestionSchema, preferences: zod_1.z.array(ResearchOutputTableColumnPreferenceSchema).default([]) }));
176
209
  const DefaultResearchOutputLicenseColumn = ResearchOutputLicenseColumnSchema.parse({
210
+ // This commonStandardId is tied to how we render the dataset in the RDA Common Standard.
211
+ // Any change will also need to be made to `buildDataset` function of
212
+ // `src/lambda/layer/dmp.ts` in the `dmptool-infrastructure` repo.`
177
213
  heading: 'License',
214
+ commonStandardId: 'license_ref',
178
215
  enabled: false,
179
216
  content: graphQLQuestions_1.DefaultLicenseSearchQuestion,
180
217
  preferences: []