@dmptool/types 3.1.0 → 3.1.2
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/README.md +1 -1
- package/dist/answers/answer.d.ts +29 -1
- package/dist/answers/dateAnswers.d.ts +19 -2
- package/dist/answers/graphQLAnswers.d.ts +44 -4
- package/dist/answers/index.d.ts +401 -1
- package/dist/answers/numberAnswers.d.ts +38 -4
- package/dist/answers/optionBasedAnswers.d.ts +40 -5
- package/dist/answers/tableAnswers.d.ts +645 -5
- package/dist/answers/textAnswers.d.ts +32 -4
- package/dist/dmp/index.d.ts +505 -1
- package/dist/dmp/index.js +2 -4
- package/dist/questions/dateQuestions.d.ts +49 -2
- package/dist/questions/graphQLQuestions.d.ts +132 -4
- package/dist/questions/index.d.ts +1143 -1
- package/dist/questions/numberQuestions.d.ts +90 -4
- package/dist/questions/optionBasedQuestions.d.ts +95 -5
- package/dist/questions/tableQuestions.d.ts +1116 -3
- package/dist/questions/textQuestions.d.ts +74 -4
- package/dist/schemas/researchOutputTableAnswer.schema.json +8 -4724
- package/package.json +14 -11
- package/schemas/researchOutputTableAnswer.schema.json +8 -4724
|
@@ -67,7 +67,35 @@ export type EmailAnswerType = z.infer<typeof EmailAnswerSchema>;
|
|
|
67
67
|
export type TextAnswerType = z.infer<typeof TextAnswerSchema>;
|
|
68
68
|
export type TextAreaAnswerType = z.infer<typeof TextAreaAnswerSchema>;
|
|
69
69
|
export type URLAnswerType = z.infer<typeof URLAnswerSchema>;
|
|
70
|
-
export declare const EmailAnswerJSONSchema: z.core.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
export declare const EmailAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"email">;
|
|
72
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
73
|
+
meta: z.ZodObject<{
|
|
74
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
export declare const TextAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"text">;
|
|
80
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
81
|
+
meta: z.ZodObject<{
|
|
82
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
export declare const TextAreaAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<"textArea">;
|
|
88
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
89
|
+
meta: z.ZodObject<{
|
|
90
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
export declare const URLAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"url">;
|
|
96
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
97
|
+
meta: z.ZodObject<{
|
|
98
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>>;
|
package/dist/dmp/index.d.ts
CHANGED
|
@@ -511,7 +511,511 @@ export declare const DMPToolExtensionSchema: z.ZodObject<{
|
|
|
511
511
|
}, z.core.$strip>;
|
|
512
512
|
}, z.core.$strip>>>;
|
|
513
513
|
}, z.core.$strip>;
|
|
514
|
-
export declare const ExtensionJSONSchema: z.core.
|
|
514
|
+
export declare const ExtensionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
515
|
+
rda_schema_version: z.ZodDefault<z.ZodString>;
|
|
516
|
+
provenance: z.ZodString;
|
|
517
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
518
|
+
[x: string]: string;
|
|
519
|
+
}>>;
|
|
520
|
+
privacy: z.ZodDefault<z.ZodEnum<{
|
|
521
|
+
[x: string]: string;
|
|
522
|
+
}>>;
|
|
523
|
+
featured: z.ZodDefault<z.ZodEnum<{
|
|
524
|
+
yes: "yes";
|
|
525
|
+
no: "no";
|
|
526
|
+
}>>;
|
|
527
|
+
registered: z.ZodOptional<z.ZodISODateTime>;
|
|
528
|
+
tombstoned: z.ZodOptional<z.ZodISODateTime>;
|
|
529
|
+
narrative: z.ZodOptional<z.ZodObject<{
|
|
530
|
+
download_url: z.ZodOptional<z.ZodString>;
|
|
531
|
+
template: z.ZodOptional<z.ZodObject<{
|
|
532
|
+
id: z.ZodNumber;
|
|
533
|
+
title: z.ZodString;
|
|
534
|
+
description: z.ZodOptional<z.ZodString>;
|
|
535
|
+
version: z.ZodOptional<z.ZodString>;
|
|
536
|
+
section: z.ZodArray<z.ZodObject<{
|
|
537
|
+
id: z.ZodNumber;
|
|
538
|
+
order: z.ZodNumber;
|
|
539
|
+
title: z.ZodString;
|
|
540
|
+
description: z.ZodOptional<z.ZodString>;
|
|
541
|
+
question: z.ZodArray<z.ZodObject<{
|
|
542
|
+
id: z.ZodNumber;
|
|
543
|
+
order: z.ZodNumber;
|
|
544
|
+
text: z.ZodString;
|
|
545
|
+
answer: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
id: z.ZodNumber;
|
|
547
|
+
json: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
548
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
549
|
+
answer: z.ZodObject<{
|
|
550
|
+
affiliationId: z.ZodDefault<z.ZodString>;
|
|
551
|
+
affiliationName: z.ZodDefault<z.ZodString>;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
meta: z.ZodObject<{
|
|
554
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
557
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
558
|
+
type: z.ZodLiteral<"boolean">;
|
|
559
|
+
answer: z.ZodDefault<z.ZodBoolean>;
|
|
560
|
+
meta: z.ZodObject<{
|
|
561
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
562
|
+
}, z.core.$strip>;
|
|
563
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
566
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
567
|
+
meta: z.ZodObject<{
|
|
568
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
571
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
572
|
+
type: z.ZodLiteral<"currency">;
|
|
573
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
574
|
+
meta: z.ZodObject<{
|
|
575
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
579
|
+
type: z.ZodLiteral<"date">;
|
|
580
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
581
|
+
meta: z.ZodObject<{
|
|
582
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
583
|
+
}, z.core.$strip>;
|
|
584
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
586
|
+
type: z.ZodLiteral<"dateRange">;
|
|
587
|
+
answer: z.ZodObject<{
|
|
588
|
+
start: z.ZodDefault<z.ZodString>;
|
|
589
|
+
end: z.ZodDefault<z.ZodString>;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
meta: z.ZodObject<{
|
|
592
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
593
|
+
}, z.core.$strip>;
|
|
594
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
596
|
+
type: z.ZodLiteral<"email">;
|
|
597
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
598
|
+
meta: z.ZodObject<{
|
|
599
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
600
|
+
}, z.core.$strip>;
|
|
601
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
602
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
603
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
604
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
605
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
606
|
+
licenseName: z.ZodDefault<z.ZodString>;
|
|
607
|
+
}, z.core.$strip>>>;
|
|
608
|
+
meta: z.ZodObject<{
|
|
609
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
610
|
+
}, z.core.$strip>;
|
|
611
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
612
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
613
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
614
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
615
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
616
|
+
metadataStandardName: z.ZodDefault<z.ZodString>;
|
|
617
|
+
}, z.core.$strip>>>;
|
|
618
|
+
meta: z.ZodObject<{
|
|
619
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
620
|
+
}, z.core.$strip>;
|
|
621
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
623
|
+
type: z.ZodLiteral<"multiselectBox">;
|
|
624
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
625
|
+
meta: z.ZodObject<{
|
|
626
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
627
|
+
}, z.core.$strip>;
|
|
628
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
630
|
+
type: z.ZodLiteral<"number">;
|
|
631
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
632
|
+
meta: z.ZodObject<{
|
|
633
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
634
|
+
}, z.core.$strip>;
|
|
635
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
636
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
637
|
+
type: z.ZodLiteral<"numberRange">;
|
|
638
|
+
answer: z.ZodObject<{
|
|
639
|
+
start: z.ZodDefault<z.ZodNumber>;
|
|
640
|
+
end: z.ZodDefault<z.ZodNumber>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
meta: z.ZodObject<{
|
|
643
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
644
|
+
}, z.core.$strip>;
|
|
645
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
647
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
648
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
649
|
+
meta: z.ZodObject<{
|
|
650
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
653
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
654
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
655
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
656
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
657
|
+
repositoryName: z.ZodDefault<z.ZodString>;
|
|
658
|
+
}, z.core.$strip>>>;
|
|
659
|
+
meta: z.ZodObject<{
|
|
660
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
661
|
+
}, z.core.$strip>;
|
|
662
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
663
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
664
|
+
type: z.ZodLiteral<"researchOutputTable">;
|
|
665
|
+
columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
666
|
+
answer: z.ZodArray<z.ZodObject<{
|
|
667
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
668
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
669
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
670
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
671
|
+
meta: z.ZodObject<{
|
|
672
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
673
|
+
}, z.core.$strip>;
|
|
674
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
676
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
677
|
+
type: z.ZodLiteral<"date">;
|
|
678
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
679
|
+
meta: z.ZodObject<{
|
|
680
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
683
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
684
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
685
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
686
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
687
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
688
|
+
licenseName: z.ZodDefault<z.ZodString>;
|
|
689
|
+
}, z.core.$strip>>>;
|
|
690
|
+
meta: z.ZodObject<{
|
|
691
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
692
|
+
}, z.core.$strip>;
|
|
693
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
694
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
695
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
696
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
697
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
698
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
699
|
+
metadataStandardName: z.ZodDefault<z.ZodString>;
|
|
700
|
+
}, z.core.$strip>>>;
|
|
701
|
+
meta: z.ZodObject<{
|
|
702
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
703
|
+
}, z.core.$strip>;
|
|
704
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
707
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
708
|
+
answer: z.ZodObject<{
|
|
709
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
710
|
+
context: z.ZodDefault<z.ZodString>;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
meta: z.ZodObject<{
|
|
713
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
714
|
+
}, z.core.$strip>;
|
|
715
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
717
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
718
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
719
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
720
|
+
meta: z.ZodObject<{
|
|
721
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
724
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
725
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
726
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
727
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
728
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
729
|
+
repositoryName: z.ZodDefault<z.ZodString>;
|
|
730
|
+
}, z.core.$strip>>>;
|
|
731
|
+
meta: z.ZodObject<{
|
|
732
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
733
|
+
}, z.core.$strip>;
|
|
734
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
736
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
737
|
+
type: z.ZodLiteral<"selectBox">;
|
|
738
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
739
|
+
meta: z.ZodObject<{
|
|
740
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
741
|
+
}, z.core.$strip>;
|
|
742
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
744
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
745
|
+
type: z.ZodLiteral<"text">;
|
|
746
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
747
|
+
meta: z.ZodObject<{
|
|
748
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
749
|
+
}, z.core.$strip>;
|
|
750
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
751
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
752
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
753
|
+
type: z.ZodLiteral<"textArea">;
|
|
754
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
755
|
+
meta: z.ZodObject<{
|
|
756
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
757
|
+
}, z.core.$strip>;
|
|
758
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
759
|
+
}, z.core.$strip>], "type">>;
|
|
760
|
+
}, z.core.$strip>>;
|
|
761
|
+
meta: z.ZodObject<{
|
|
762
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
763
|
+
}, z.core.$strip>;
|
|
764
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
766
|
+
type: z.ZodLiteral<"selectBox">;
|
|
767
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
768
|
+
meta: z.ZodObject<{
|
|
769
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
770
|
+
}, z.core.$strip>;
|
|
771
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
772
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
773
|
+
type: z.ZodLiteral<"table">;
|
|
774
|
+
columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
775
|
+
answer: z.ZodArray<z.ZodObject<{
|
|
776
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
777
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
778
|
+
answer: z.ZodObject<{
|
|
779
|
+
affiliationId: z.ZodDefault<z.ZodString>;
|
|
780
|
+
affiliationName: z.ZodDefault<z.ZodString>;
|
|
781
|
+
}, z.core.$strip>;
|
|
782
|
+
meta: z.ZodObject<{
|
|
783
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
784
|
+
}, z.core.$strip>;
|
|
785
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
786
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
787
|
+
type: z.ZodLiteral<"boolean">;
|
|
788
|
+
answer: z.ZodDefault<z.ZodBoolean>;
|
|
789
|
+
meta: z.ZodObject<{
|
|
790
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
791
|
+
}, z.core.$strip>;
|
|
792
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
793
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
794
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
795
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
796
|
+
meta: z.ZodObject<{
|
|
797
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
798
|
+
}, z.core.$strip>;
|
|
799
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
800
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
801
|
+
type: z.ZodLiteral<"currency">;
|
|
802
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
803
|
+
meta: z.ZodObject<{
|
|
804
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
805
|
+
}, z.core.$strip>;
|
|
806
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
807
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
808
|
+
type: z.ZodLiteral<"date">;
|
|
809
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
810
|
+
meta: z.ZodObject<{
|
|
811
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
812
|
+
}, z.core.$strip>;
|
|
813
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
815
|
+
type: z.ZodLiteral<"dateRange">;
|
|
816
|
+
answer: z.ZodObject<{
|
|
817
|
+
start: z.ZodDefault<z.ZodString>;
|
|
818
|
+
end: z.ZodDefault<z.ZodString>;
|
|
819
|
+
}, z.core.$strip>;
|
|
820
|
+
meta: z.ZodObject<{
|
|
821
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
822
|
+
}, z.core.$strip>;
|
|
823
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
824
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
825
|
+
type: z.ZodLiteral<"email">;
|
|
826
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
827
|
+
meta: z.ZodObject<{
|
|
828
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
829
|
+
}, z.core.$strip>;
|
|
830
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
831
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
833
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
834
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
835
|
+
licenseName: z.ZodDefault<z.ZodString>;
|
|
836
|
+
}, z.core.$strip>>>;
|
|
837
|
+
meta: z.ZodObject<{
|
|
838
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
839
|
+
}, z.core.$strip>;
|
|
840
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
842
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
843
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
844
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
845
|
+
metadataStandardName: z.ZodDefault<z.ZodString>;
|
|
846
|
+
}, z.core.$strip>>>;
|
|
847
|
+
meta: z.ZodObject<{
|
|
848
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
849
|
+
}, z.core.$strip>;
|
|
850
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
852
|
+
type: z.ZodLiteral<"multiselectBox">;
|
|
853
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
854
|
+
meta: z.ZodObject<{
|
|
855
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
856
|
+
}, z.core.$strip>;
|
|
857
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
859
|
+
type: z.ZodLiteral<"number">;
|
|
860
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
861
|
+
meta: z.ZodObject<{
|
|
862
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
863
|
+
}, z.core.$strip>;
|
|
864
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
865
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
866
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
867
|
+
answer: z.ZodObject<{
|
|
868
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
869
|
+
context: z.ZodDefault<z.ZodString>;
|
|
870
|
+
}, z.core.$strip>;
|
|
871
|
+
meta: z.ZodObject<{
|
|
872
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
873
|
+
}, z.core.$strip>;
|
|
874
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
875
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
876
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
877
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
878
|
+
meta: z.ZodObject<{
|
|
879
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
880
|
+
}, z.core.$strip>;
|
|
881
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
884
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
885
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
886
|
+
repositoryName: z.ZodDefault<z.ZodString>;
|
|
887
|
+
}, z.core.$strip>>>;
|
|
888
|
+
meta: z.ZodObject<{
|
|
889
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
892
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
893
|
+
type: z.ZodLiteral<"selectBox">;
|
|
894
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
895
|
+
meta: z.ZodObject<{
|
|
896
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
897
|
+
}, z.core.$strip>;
|
|
898
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
899
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
900
|
+
type: z.ZodLiteral<"text">;
|
|
901
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
902
|
+
meta: z.ZodObject<{
|
|
903
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
904
|
+
}, z.core.$strip>;
|
|
905
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
906
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
907
|
+
type: z.ZodLiteral<"textArea">;
|
|
908
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
909
|
+
meta: z.ZodObject<{
|
|
910
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
913
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
914
|
+
type: z.ZodLiteral<"url">;
|
|
915
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
916
|
+
meta: z.ZodObject<{
|
|
917
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
918
|
+
}, z.core.$strip>;
|
|
919
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
920
|
+
}, z.core.$strip>], "type">>;
|
|
921
|
+
}, z.core.$strip>>;
|
|
922
|
+
meta: z.ZodObject<{
|
|
923
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
924
|
+
}, z.core.$strip>;
|
|
925
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
926
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
927
|
+
type: z.ZodLiteral<"text">;
|
|
928
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
929
|
+
meta: z.ZodObject<{
|
|
930
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
931
|
+
}, z.core.$strip>;
|
|
932
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
933
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
934
|
+
type: z.ZodLiteral<"textArea">;
|
|
935
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
936
|
+
meta: z.ZodObject<{
|
|
937
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
938
|
+
}, z.core.$strip>;
|
|
939
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
940
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
941
|
+
type: z.ZodLiteral<"url">;
|
|
942
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
943
|
+
meta: z.ZodObject<{
|
|
944
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
945
|
+
}, z.core.$strip>;
|
|
946
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
947
|
+
}, z.core.$strip>], "type">;
|
|
948
|
+
}, z.core.$strip>>;
|
|
949
|
+
}, z.core.$strip>>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
951
|
+
}, z.core.$strip>>;
|
|
952
|
+
}, z.core.$strip>>;
|
|
953
|
+
research_domain: z.ZodOptional<z.ZodObject<{
|
|
954
|
+
name: z.ZodString;
|
|
955
|
+
research_domain_identifier: z.ZodOptional<z.ZodObject<{
|
|
956
|
+
identifier: z.ZodString;
|
|
957
|
+
type: z.ZodEnum<{
|
|
958
|
+
[x: string]: string;
|
|
959
|
+
}>;
|
|
960
|
+
}, z.core.$strip>>;
|
|
961
|
+
}, z.core.$strip>>;
|
|
962
|
+
research_facility: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
963
|
+
name: z.ZodString;
|
|
964
|
+
type: z.ZodEnum<{
|
|
965
|
+
[x: string]: string;
|
|
966
|
+
}>;
|
|
967
|
+
research_facility_identifier: z.ZodOptional<z.ZodObject<{
|
|
968
|
+
identifier: z.ZodString;
|
|
969
|
+
type: z.ZodEnum<{
|
|
970
|
+
[x: string]: string;
|
|
971
|
+
}>;
|
|
972
|
+
}, z.core.$strip>>;
|
|
973
|
+
}, z.core.$strip>>>;
|
|
974
|
+
version: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
975
|
+
access_url: z.ZodString;
|
|
976
|
+
version: z.ZodISODateTime;
|
|
977
|
+
}, z.core.$strip>>>;
|
|
978
|
+
funding_opportunity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
979
|
+
project_id: z.ZodObject<{
|
|
980
|
+
identifier: z.ZodString;
|
|
981
|
+
type: z.ZodEnum<{
|
|
982
|
+
[x: string]: string;
|
|
983
|
+
}>;
|
|
984
|
+
}, z.core.$strip>;
|
|
985
|
+
funder_id: z.ZodObject<{
|
|
986
|
+
identifier: z.ZodString;
|
|
987
|
+
type: z.ZodEnum<{
|
|
988
|
+
[x: string]: string;
|
|
989
|
+
}>;
|
|
990
|
+
}, z.core.$strip>;
|
|
991
|
+
opportunity_identifier: z.ZodObject<{
|
|
992
|
+
identifier: z.ZodString;
|
|
993
|
+
type: z.ZodEnum<{
|
|
994
|
+
[x: string]: string;
|
|
995
|
+
}>;
|
|
996
|
+
}, z.core.$strip>;
|
|
997
|
+
}, z.core.$strip>>>;
|
|
998
|
+
funding_project: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
999
|
+
project_id: z.ZodObject<{
|
|
1000
|
+
identifier: z.ZodString;
|
|
1001
|
+
type: z.ZodEnum<{
|
|
1002
|
+
[x: string]: string;
|
|
1003
|
+
}>;
|
|
1004
|
+
}, z.core.$strip>;
|
|
1005
|
+
funder_id: z.ZodObject<{
|
|
1006
|
+
identifier: z.ZodString;
|
|
1007
|
+
type: z.ZodEnum<{
|
|
1008
|
+
[x: string]: string;
|
|
1009
|
+
}>;
|
|
1010
|
+
}, z.core.$strip>;
|
|
1011
|
+
project_identifier: z.ZodObject<{
|
|
1012
|
+
identifier: z.ZodString;
|
|
1013
|
+
type: z.ZodEnum<{
|
|
1014
|
+
[x: string]: string;
|
|
1015
|
+
}>;
|
|
1016
|
+
}, z.core.$strip>;
|
|
1017
|
+
}, z.core.$strip>>>;
|
|
1018
|
+
}, z.core.$strip>>;
|
|
515
1019
|
type RDAInner = RDACommonStandardDMPType extends {
|
|
516
1020
|
dmp: infer T;
|
|
517
1021
|
} ? T : any;
|
package/dist/dmp/index.js
CHANGED
|
@@ -30,10 +30,8 @@ catch (_a) {
|
|
|
30
30
|
// Fallback for environments that need runtime resolution
|
|
31
31
|
if (typeof window === 'undefined') {
|
|
32
32
|
// Only try fs operations on server
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
36
|
-
const path = require("path");
|
|
33
|
+
const fs = eval('require')("fs"); // eval prevents bundlers from trying to include fs in browser builds
|
|
34
|
+
const path = eval('require')("path");
|
|
37
35
|
// Convert the downloaded JSON schema into types
|
|
38
36
|
// First try resolving via the package export (works when installed from GitHub branch or npm)
|
|
39
37
|
function resolveSchemaPath() {
|
|
@@ -99,5 +99,52 @@ export declare const DefaultDateRangeQuestion: {
|
|
|
99
99
|
};
|
|
100
100
|
export type DateQuestionType = z.infer<typeof DateQuestionSchema>;
|
|
101
101
|
export type DateRangeQuestionType = z.infer<typeof DateRangeQuestionSchema>;
|
|
102
|
-
export declare const DateQuestionJSONSchema: z.core.
|
|
103
|
-
|
|
102
|
+
export declare const DateQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
103
|
+
type: z.ZodLiteral<"date">;
|
|
104
|
+
attributes: z.ZodObject<{
|
|
105
|
+
max: z.ZodOptional<z.ZodString>;
|
|
106
|
+
min: z.ZodOptional<z.ZodString>;
|
|
107
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
108
|
+
label: z.ZodOptional<z.ZodString>;
|
|
109
|
+
help: z.ZodOptional<z.ZodString>;
|
|
110
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
meta: z.ZodObject<{
|
|
114
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
115
|
+
title: z.ZodOptional<z.ZodString>;
|
|
116
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
export declare const DateRangeQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
120
|
+
type: z.ZodLiteral<"dateRange">;
|
|
121
|
+
columns: z.ZodObject<{
|
|
122
|
+
start: z.ZodObject<{
|
|
123
|
+
label: z.ZodDefault<z.ZodString>;
|
|
124
|
+
max: z.ZodOptional<z.ZodString>;
|
|
125
|
+
min: z.ZodOptional<z.ZodString>;
|
|
126
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
127
|
+
help: z.ZodOptional<z.ZodString>;
|
|
128
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
end: z.ZodObject<{
|
|
131
|
+
label: z.ZodDefault<z.ZodString>;
|
|
132
|
+
max: z.ZodOptional<z.ZodString>;
|
|
133
|
+
min: z.ZodOptional<z.ZodString>;
|
|
134
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
135
|
+
help: z.ZodOptional<z.ZodString>;
|
|
136
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
attributes: z.ZodObject<{
|
|
141
|
+
label: z.ZodOptional<z.ZodString>;
|
|
142
|
+
help: z.ZodOptional<z.ZodString>;
|
|
143
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
meta: z.ZodObject<{
|
|
146
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
147
|
+
title: z.ZodOptional<z.ZodString>;
|
|
148
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
}, z.core.$strip>>;
|