@dmptool/types 2.2.1 → 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.
- package/dist/answers/__tests__/answers.spec.js +27 -14
- package/dist/answers/__tests__/defaults.spec.js +2 -0
- package/dist/answers/index.d.ts +102 -0
- package/dist/answers/index.js +1 -0
- package/dist/answers/tableAnswers.d.ts +614 -136
- package/dist/answers/tableAnswers.js +43 -20
- package/dist/dmp/__tests__/commonStandard.spec.js +26 -22
- package/dist/dmp/__tests__/extensions.spec.js +21 -15
- package/dist/dmp/extension.d.ts +385 -92
- package/dist/dmp/extension.js +49 -103
- package/dist/dmp/index.d.ts +515 -2
- package/dist/dmp/index.js +11 -1
- package/dist/questions/__tests__/defaults.spec.js +10 -0
- package/dist/questions/__tests__/tableQuestion.spec.js +5 -0
- package/dist/questions/index.d.ts +10 -0
- package/dist/questions/tableQuestions.d.ts +30 -0
- package/dist/questions/tableQuestions.js +47 -10
- package/dist/schemas/anyAnswer.schema.json +514 -0
- package/dist/schemas/anyQuestion.schema.json +30 -0
- package/dist/schemas/dmpExtension.schema.json +636 -140
- package/dist/schemas/researchOutputTableAnswer.schema.json +6047 -11983
- package/package.json +1 -1
- package/schemas/anyAnswer.schema.json +514 -0
- package/schemas/anyQuestion.schema.json +30 -0
- package/schemas/dmpExtension.schema.json +636 -140
- package/schemas/researchOutputTableAnswer.schema.json +6047 -11983
|
@@ -78,6 +78,7 @@ describe("ResearchOutputTableQuestionSchema", () => {
|
|
|
78
78
|
columns: [
|
|
79
79
|
{
|
|
80
80
|
heading: "Title",
|
|
81
|
+
commonStandardId: 'title',
|
|
81
82
|
required: true,
|
|
82
83
|
enabled: true,
|
|
83
84
|
content: {
|
|
@@ -88,6 +89,7 @@ describe("ResearchOutputTableQuestionSchema", () => {
|
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
heading: "Output Type",
|
|
92
|
+
commonStandardId: 'type',
|
|
91
93
|
required: true,
|
|
92
94
|
enabled: true,
|
|
93
95
|
content: {
|
|
@@ -106,6 +108,7 @@ describe("ResearchOutputTableQuestionSchema", () => {
|
|
|
106
108
|
},
|
|
107
109
|
{
|
|
108
110
|
heading: "Byte Size",
|
|
111
|
+
commonStandardId: 'byte_size',
|
|
109
112
|
required: false,
|
|
110
113
|
enabled: true,
|
|
111
114
|
content: {
|
|
@@ -135,6 +138,7 @@ describe("ResearchOutputTableQuestionSchema", () => {
|
|
|
135
138
|
},
|
|
136
139
|
{
|
|
137
140
|
heading: "Repositories",
|
|
141
|
+
commonStandardId: 'host',
|
|
138
142
|
required: false,
|
|
139
143
|
enabled: true,
|
|
140
144
|
preferences: [
|
|
@@ -202,6 +206,7 @@ describe("ResearchOutputTableQuestionSchema", () => {
|
|
|
202
206
|
columns: [
|
|
203
207
|
{
|
|
204
208
|
heading: "Title",
|
|
209
|
+
commonStandardId: 'title',
|
|
205
210
|
content: {
|
|
206
211
|
type: "invalid",
|
|
207
212
|
meta: {
|
|
@@ -341,6 +341,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
341
341
|
type: z.ZodLiteral<"researchOutputTable">;
|
|
342
342
|
columns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
343
343
|
heading: z.ZodDefault<z.ZodString>;
|
|
344
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
344
345
|
help: z.ZodDefault<z.ZodString>;
|
|
345
346
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
346
347
|
content: z.ZodObject<{
|
|
@@ -362,6 +363,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
362
363
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
363
364
|
}, z.core.$strip>, z.ZodObject<{
|
|
364
365
|
heading: z.ZodDefault<z.ZodString>;
|
|
366
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
365
367
|
help: z.ZodDefault<z.ZodString>;
|
|
366
368
|
content: z.ZodObject<{
|
|
367
369
|
type: z.ZodLiteral<"textArea">;
|
|
@@ -386,6 +388,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
386
388
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
387
389
|
}, z.core.$strip>, z.ZodObject<{
|
|
388
390
|
heading: z.ZodDefault<z.ZodString>;
|
|
391
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
389
392
|
help: z.ZodDefault<z.ZodString>;
|
|
390
393
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
391
394
|
content: z.ZodObject<{
|
|
@@ -411,6 +414,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
411
414
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
412
415
|
}, z.core.$strip>, z.ZodObject<{
|
|
413
416
|
heading: z.ZodDefault<z.ZodString>;
|
|
417
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
414
418
|
help: z.ZodDefault<z.ZodString>;
|
|
415
419
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
416
420
|
content: z.ZodObject<{
|
|
@@ -436,6 +440,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
436
440
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
437
441
|
}, z.core.$strip>, z.ZodObject<{
|
|
438
442
|
heading: z.ZodDefault<z.ZodString>;
|
|
443
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
439
444
|
help: z.ZodDefault<z.ZodString>;
|
|
440
445
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
441
446
|
content: z.ZodObject<{
|
|
@@ -460,6 +465,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
460
465
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
461
466
|
}, z.core.$strip>, z.ZodObject<{
|
|
462
467
|
heading: z.ZodDefault<z.ZodString>;
|
|
468
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
463
469
|
help: z.ZodDefault<z.ZodString>;
|
|
464
470
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
465
471
|
content: z.ZodObject<{
|
|
@@ -482,6 +488,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
482
488
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
483
489
|
}, z.core.$strip>, z.ZodObject<{
|
|
484
490
|
heading: z.ZodDefault<z.ZodString>;
|
|
491
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
485
492
|
help: z.ZodDefault<z.ZodString>;
|
|
486
493
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
487
494
|
content: z.ZodObject<{
|
|
@@ -510,6 +517,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
510
517
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
511
518
|
}, z.core.$strip>, z.ZodObject<{
|
|
512
519
|
heading: z.ZodDefault<z.ZodString>;
|
|
520
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
513
521
|
help: z.ZodDefault<z.ZodString>;
|
|
514
522
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
515
523
|
content: z.ZodObject<{
|
|
@@ -552,6 +560,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
552
560
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
553
561
|
}, z.core.$strip>, z.ZodObject<{
|
|
554
562
|
heading: z.ZodDefault<z.ZodString>;
|
|
563
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
555
564
|
help: z.ZodDefault<z.ZodString>;
|
|
556
565
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
557
566
|
content: z.ZodObject<{
|
|
@@ -594,6 +603,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
594
603
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
595
604
|
}, z.core.$strip>, z.ZodObject<{
|
|
596
605
|
heading: z.ZodDefault<z.ZodString>;
|
|
606
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
597
607
|
help: z.ZodDefault<z.ZodString>;
|
|
598
608
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
599
609
|
content: z.ZodObject<{
|
|
@@ -1932,6 +1932,7 @@ export declare const DefaultResearchOutputCustomColumn: {
|
|
|
1932
1932
|
};
|
|
1933
1933
|
declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1934
1934
|
heading: z.ZodDefault<z.ZodString>;
|
|
1935
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
1935
1936
|
help: z.ZodDefault<z.ZodString>;
|
|
1936
1937
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1937
1938
|
content: z.ZodObject<{
|
|
@@ -1953,6 +1954,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1953
1954
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1954
1955
|
}, z.core.$strip>, z.ZodObject<{
|
|
1955
1956
|
heading: z.ZodDefault<z.ZodString>;
|
|
1957
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
1956
1958
|
help: z.ZodDefault<z.ZodString>;
|
|
1957
1959
|
content: z.ZodObject<{
|
|
1958
1960
|
type: z.ZodLiteral<"textArea">;
|
|
@@ -1977,6 +1979,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1977
1979
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1978
1980
|
}, z.core.$strip>, z.ZodObject<{
|
|
1979
1981
|
heading: z.ZodDefault<z.ZodString>;
|
|
1982
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
1980
1983
|
help: z.ZodDefault<z.ZodString>;
|
|
1981
1984
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1982
1985
|
content: z.ZodObject<{
|
|
@@ -2002,6 +2005,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2002
2005
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2003
2006
|
}, z.core.$strip>, z.ZodObject<{
|
|
2004
2007
|
heading: z.ZodDefault<z.ZodString>;
|
|
2008
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2005
2009
|
help: z.ZodDefault<z.ZodString>;
|
|
2006
2010
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2007
2011
|
content: z.ZodObject<{
|
|
@@ -2027,6 +2031,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2027
2031
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2028
2032
|
}, z.core.$strip>, z.ZodObject<{
|
|
2029
2033
|
heading: z.ZodDefault<z.ZodString>;
|
|
2034
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2030
2035
|
help: z.ZodDefault<z.ZodString>;
|
|
2031
2036
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2032
2037
|
content: z.ZodObject<{
|
|
@@ -2051,6 +2056,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2051
2056
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2052
2057
|
}, z.core.$strip>, z.ZodObject<{
|
|
2053
2058
|
heading: z.ZodDefault<z.ZodString>;
|
|
2059
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2054
2060
|
help: z.ZodDefault<z.ZodString>;
|
|
2055
2061
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2056
2062
|
content: z.ZodObject<{
|
|
@@ -2073,6 +2079,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2073
2079
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2074
2080
|
}, z.core.$strip>, z.ZodObject<{
|
|
2075
2081
|
heading: z.ZodDefault<z.ZodString>;
|
|
2082
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2076
2083
|
help: z.ZodDefault<z.ZodString>;
|
|
2077
2084
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2078
2085
|
content: z.ZodObject<{
|
|
@@ -2101,6 +2108,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2101
2108
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2102
2109
|
}, z.core.$strip>, z.ZodObject<{
|
|
2103
2110
|
heading: z.ZodDefault<z.ZodString>;
|
|
2111
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2104
2112
|
help: z.ZodDefault<z.ZodString>;
|
|
2105
2113
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2106
2114
|
content: z.ZodObject<{
|
|
@@ -2143,6 +2151,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2143
2151
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2144
2152
|
}, z.core.$strip>, z.ZodObject<{
|
|
2145
2153
|
heading: z.ZodDefault<z.ZodString>;
|
|
2154
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2146
2155
|
help: z.ZodDefault<z.ZodString>;
|
|
2147
2156
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2148
2157
|
content: z.ZodObject<{
|
|
@@ -2185,6 +2194,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2185
2194
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2186
2195
|
}, z.core.$strip>, z.ZodObject<{
|
|
2187
2196
|
heading: z.ZodDefault<z.ZodString>;
|
|
2197
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2188
2198
|
help: z.ZodDefault<z.ZodString>;
|
|
2189
2199
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2190
2200
|
content: z.ZodObject<{
|
|
@@ -2252,6 +2262,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2252
2262
|
type: z.ZodLiteral<"researchOutputTable">;
|
|
2253
2263
|
columns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2254
2264
|
heading: z.ZodDefault<z.ZodString>;
|
|
2265
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2255
2266
|
help: z.ZodDefault<z.ZodString>;
|
|
2256
2267
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2257
2268
|
content: z.ZodObject<{
|
|
@@ -2273,6 +2284,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2273
2284
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2274
2285
|
}, z.core.$strip>, z.ZodObject<{
|
|
2275
2286
|
heading: z.ZodDefault<z.ZodString>;
|
|
2287
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2276
2288
|
help: z.ZodDefault<z.ZodString>;
|
|
2277
2289
|
content: z.ZodObject<{
|
|
2278
2290
|
type: z.ZodLiteral<"textArea">;
|
|
@@ -2297,6 +2309,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2297
2309
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2298
2310
|
}, z.core.$strip>, z.ZodObject<{
|
|
2299
2311
|
heading: z.ZodDefault<z.ZodString>;
|
|
2312
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2300
2313
|
help: z.ZodDefault<z.ZodString>;
|
|
2301
2314
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2302
2315
|
content: z.ZodObject<{
|
|
@@ -2322,6 +2335,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2322
2335
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2323
2336
|
}, z.core.$strip>, z.ZodObject<{
|
|
2324
2337
|
heading: z.ZodDefault<z.ZodString>;
|
|
2338
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2325
2339
|
help: z.ZodDefault<z.ZodString>;
|
|
2326
2340
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2327
2341
|
content: z.ZodObject<{
|
|
@@ -2347,6 +2361,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2347
2361
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2348
2362
|
}, z.core.$strip>, z.ZodObject<{
|
|
2349
2363
|
heading: z.ZodDefault<z.ZodString>;
|
|
2364
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2350
2365
|
help: z.ZodDefault<z.ZodString>;
|
|
2351
2366
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2352
2367
|
content: z.ZodObject<{
|
|
@@ -2371,6 +2386,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2371
2386
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2372
2387
|
}, z.core.$strip>, z.ZodObject<{
|
|
2373
2388
|
heading: z.ZodDefault<z.ZodString>;
|
|
2389
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2374
2390
|
help: z.ZodDefault<z.ZodString>;
|
|
2375
2391
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2376
2392
|
content: z.ZodObject<{
|
|
@@ -2393,6 +2409,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2393
2409
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2394
2410
|
}, z.core.$strip>, z.ZodObject<{
|
|
2395
2411
|
heading: z.ZodDefault<z.ZodString>;
|
|
2412
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2396
2413
|
help: z.ZodDefault<z.ZodString>;
|
|
2397
2414
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2398
2415
|
content: z.ZodObject<{
|
|
@@ -2421,6 +2438,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2421
2438
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2422
2439
|
}, z.core.$strip>, z.ZodObject<{
|
|
2423
2440
|
heading: z.ZodDefault<z.ZodString>;
|
|
2441
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2424
2442
|
help: z.ZodDefault<z.ZodString>;
|
|
2425
2443
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2426
2444
|
content: z.ZodObject<{
|
|
@@ -2463,6 +2481,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2463
2481
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2464
2482
|
}, z.core.$strip>, z.ZodObject<{
|
|
2465
2483
|
heading: z.ZodDefault<z.ZodString>;
|
|
2484
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2466
2485
|
help: z.ZodDefault<z.ZodString>;
|
|
2467
2486
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2468
2487
|
content: z.ZodObject<{
|
|
@@ -2505,6 +2524,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2505
2524
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2506
2525
|
}, z.core.$strip>, z.ZodObject<{
|
|
2507
2526
|
heading: z.ZodDefault<z.ZodString>;
|
|
2527
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
2508
2528
|
help: z.ZodDefault<z.ZodString>;
|
|
2509
2529
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2510
2530
|
content: z.ZodObject<{
|
|
@@ -2607,6 +2627,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2607
2627
|
};
|
|
2608
2628
|
};
|
|
2609
2629
|
enabled: boolean;
|
|
2630
|
+
commonStandardId?: string | undefined;
|
|
2610
2631
|
} | {
|
|
2611
2632
|
heading: string;
|
|
2612
2633
|
help: string;
|
|
@@ -2631,6 +2652,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2631
2652
|
};
|
|
2632
2653
|
required: boolean;
|
|
2633
2654
|
enabled: boolean;
|
|
2655
|
+
commonStandardId?: string | undefined;
|
|
2634
2656
|
} | {
|
|
2635
2657
|
heading: string;
|
|
2636
2658
|
help: string;
|
|
@@ -2656,6 +2678,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2656
2678
|
showCommentField?: boolean | undefined;
|
|
2657
2679
|
};
|
|
2658
2680
|
enabled: boolean;
|
|
2681
|
+
commonStandardId?: string | undefined;
|
|
2659
2682
|
} | {
|
|
2660
2683
|
heading: string;
|
|
2661
2684
|
help: string;
|
|
@@ -2681,6 +2704,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2681
2704
|
showCommentField?: boolean | undefined;
|
|
2682
2705
|
};
|
|
2683
2706
|
required: boolean;
|
|
2707
|
+
commonStandardId?: string | undefined;
|
|
2684
2708
|
} | {
|
|
2685
2709
|
heading: string;
|
|
2686
2710
|
help: string;
|
|
@@ -2705,6 +2729,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2705
2729
|
showCommentField?: boolean | undefined;
|
|
2706
2730
|
};
|
|
2707
2731
|
required: boolean;
|
|
2732
|
+
commonStandardId?: string | undefined;
|
|
2708
2733
|
} | {
|
|
2709
2734
|
heading: string;
|
|
2710
2735
|
help: string;
|
|
@@ -2727,6 +2752,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2727
2752
|
showCommentField?: boolean | undefined;
|
|
2728
2753
|
};
|
|
2729
2754
|
required: boolean;
|
|
2755
|
+
commonStandardId?: string | undefined;
|
|
2730
2756
|
} | {
|
|
2731
2757
|
heading: string;
|
|
2732
2758
|
help: string;
|
|
@@ -2755,6 +2781,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2755
2781
|
showCommentField?: boolean | undefined;
|
|
2756
2782
|
};
|
|
2757
2783
|
required: boolean;
|
|
2784
|
+
commonStandardId?: string | undefined;
|
|
2758
2785
|
} | {
|
|
2759
2786
|
heading: string;
|
|
2760
2787
|
help: string;
|
|
@@ -2797,6 +2824,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2797
2824
|
value: string;
|
|
2798
2825
|
}[];
|
|
2799
2826
|
required: boolean;
|
|
2827
|
+
commonStandardId?: string | undefined;
|
|
2800
2828
|
} | {
|
|
2801
2829
|
heading: string;
|
|
2802
2830
|
help: string;
|
|
@@ -2839,6 +2867,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2839
2867
|
value: string;
|
|
2840
2868
|
}[];
|
|
2841
2869
|
required: boolean;
|
|
2870
|
+
commonStandardId?: string | undefined;
|
|
2842
2871
|
} | {
|
|
2843
2872
|
heading: string;
|
|
2844
2873
|
help: string;
|
|
@@ -2881,6 +2910,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2881
2910
|
value: string;
|
|
2882
2911
|
}[];
|
|
2883
2912
|
required: boolean;
|
|
2913
|
+
commonStandardId?: string | undefined;
|
|
2884
2914
|
} | {
|
|
2885
2915
|
heading: string;
|
|
2886
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,9 +121,13 @@ 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
|
});
|
|
@@ -126,15 +142,23 @@ 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
|
});
|
|
@@ -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: []
|