@dmptool/types 2.1.0 → 2.2.1
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 +70 -1
- package/dist/answers/__tests__/defaults.spec.js +80 -21
- package/dist/answers/answer.d.ts +2 -0
- package/dist/answers/answer.js +4 -2
- package/dist/answers/dateAnswers.d.ts +4 -0
- package/dist/answers/graphQLAnswers.d.ts +8 -0
- package/dist/answers/index.d.ts +37 -0
- package/dist/answers/numberAnswers.d.ts +8 -0
- package/dist/answers/optionBasedAnswers.d.ts +10 -0
- package/dist/answers/tableAnswers.d.ts +94 -0
- package/dist/answers/textAnswers.d.ts +8 -0
- package/dist/dmp/extension.d.ts +111 -0
- package/dist/dmp/index.js +48 -2
- package/dist/questions/__tests__/defaults.spec.js +12 -12
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +25 -16
- package/dist/questions/dateQuestions.d.ts +4 -0
- package/dist/questions/dateQuestions.js +2 -2
- package/dist/questions/index.d.ts +38 -7
- package/dist/questions/numberQuestions.d.ts +8 -0
- package/dist/questions/numberQuestions.js +4 -4
- package/dist/questions/optionBasedQuestions.d.ts +18 -6
- package/dist/questions/optionBasedQuestions.js +23 -10
- package/dist/questions/tableQuestions.d.ts +94 -16
- package/dist/questions/tableQuestions.js +9 -9
- package/dist/questions/textQuestions.d.ts +4 -0
- package/dist/questions/textQuestions.js +2 -2
- package/dist/schemas/affiliationSearchAnswer.schema.json +3 -0
- package/dist/schemas/anyAnswer.schema.json +111 -0
- package/dist/schemas/anyQuestion.schema.json +114 -35
- package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
- package/dist/schemas/anyTableColumnQuestion.schema.json +42 -10
- package/dist/schemas/booleanAnswer.schema.json +3 -0
- package/dist/schemas/booleanQuestion.schema.json +3 -0
- package/dist/schemas/checkboxesAnswer.schema.json +3 -0
- package/dist/schemas/checkboxesQuestion.schema.json +6 -0
- package/dist/schemas/currencyAnswer.schema.json +3 -0
- package/dist/schemas/currencyQuestion.schema.json +3 -0
- package/dist/schemas/dateAnswer.schema.json +3 -0
- package/dist/schemas/dateQuestion.schema.json +3 -0
- package/dist/schemas/dateRangeAnswer.schema.json +3 -0
- package/dist/schemas/dateRangeQuestion.schema.json +3 -0
- package/dist/schemas/dmpExtension.schema.json +111 -0
- package/dist/schemas/emailAnswer.schema.json +3 -0
- package/dist/schemas/emailQuestion.schema.json +3 -0
- package/dist/schemas/licenseSearchAnswer.schema.json +3 -0
- package/dist/schemas/metadataStandardSearchAnswer.schema.json +3 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +3 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +6 -5
- package/dist/schemas/numberAnswer.schema.json +3 -0
- package/dist/schemas/numberQuestion.schema.json +3 -0
- package/dist/schemas/numberRangeAnswer.schema.json +3 -0
- package/dist/schemas/numberRangeQuestion.schema.json +3 -0
- package/dist/schemas/numberWithContextAnswer.schema.json +3 -0
- package/dist/schemas/numberWithContextQuestion.schema.json +3 -0
- package/dist/schemas/radioButtonsAnswer.schema.json +3 -0
- package/dist/schemas/radioButtonsQuestion.schema.json +6 -5
- package/dist/schemas/repositorySearchAnswer.schema.json +3 -0
- package/dist/schemas/researchOutputTableAnswer.schema.json +3344 -9
- package/dist/schemas/selectBoxAnswer.schema.json +3 -0
- package/dist/schemas/selectBoxQuestion.schema.json +6 -5
- package/dist/schemas/tableAnswer.schema.json +57 -0
- package/dist/schemas/tableQuestion.schema.json +42 -10
- package/dist/schemas/textAnswer.schema.json +3 -0
- package/dist/schemas/textAreaAnswer.schema.json +3 -0
- package/dist/schemas/urlAnswer.schema.json +3 -0
- package/dist/schemas/urlQuestion.schema.json +3 -0
- package/package.json +9 -4
- package/schemas/.placeholder +0 -0
- package/schemas/affiliationSearchAnswer.schema.json +50 -0
- package/schemas/affiliationSearchQuestion.schema.json +142 -0
- package/schemas/anyAnswer.schema.json +1537 -0
- package/schemas/anyQuestion.schema.json +4823 -0
- package/schemas/anyTableColumnAnswer.schema.json +741 -0
- package/schemas/anyTableColumnQuestion.schema.json +1559 -0
- package/schemas/booleanAnswer.schema.json +36 -0
- package/schemas/booleanQuestion.schema.json +55 -0
- package/schemas/checkboxesAnswer.schema.json +41 -0
- package/schemas/checkboxesQuestion.schema.json +83 -0
- package/schemas/currencyAnswer.schema.json +36 -0
- package/schemas/currencyQuestion.schema.json +73 -0
- package/schemas/dateAnswer.schema.json +36 -0
- package/schemas/datePickerAnswer.schema.json +37 -0
- package/schemas/datePickerQuestion.schema.json +52 -0
- package/schemas/dateQuestion.schema.json +66 -0
- package/schemas/dateRangeAnswer.schema.json +50 -0
- package/schemas/dateRangeQuestion.schema.json +124 -0
- package/schemas/dmp.schema.json +2070 -0
- package/schemas/dmpExtension.schema.json +1985 -0
- package/schemas/emailAnswer.schema.json +36 -0
- package/schemas/emailQuestion.schema.json +71 -0
- package/schemas/filteredSearchAnswer.schema.json +40 -0
- package/schemas/filteredSearchQuestion.schema.json +130 -0
- package/schemas/licenseSearchAnswer.schema.json +54 -0
- package/schemas/licenseSearchQuestion.schema.json +140 -0
- package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
- package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
- package/schemas/multiselectBoxAnswer.schema.json +41 -0
- package/schemas/multiselectBoxQuestion.schema.json +85 -0
- package/schemas/numberAnswer.schema.json +36 -0
- package/schemas/numberQuestion.schema.json +68 -0
- package/schemas/numberRangeAnswer.schema.json +50 -0
- package/schemas/numberRangeQuestion.schema.json +128 -0
- package/schemas/numberWithContextAnswer.schema.json +50 -0
- package/schemas/numberWithContextQuestion.schema.json +98 -0
- package/schemas/radioButtonsAnswer.schema.json +36 -0
- package/schemas/radioButtonsQuestion.schema.json +78 -0
- package/schemas/repositorySearchAnswer.schema.json +54 -0
- package/schemas/repositorySearchQuestion.schema.json +140 -0
- package/schemas/researchOutputTableAnswer.schema.json +20065 -0
- package/schemas/researchOutputTableQuestion.schema.json +140 -0
- package/schemas/selectBoxAnswer.schema.json +36 -0
- package/schemas/selectBoxQuestion.schema.json +85 -0
- package/schemas/tableAnswer.schema.json +797 -0
- package/schemas/tableQuestion.schema.json +1661 -0
- package/schemas/textAnswer.schema.json +36 -0
- package/schemas/textAreaAnswer.schema.json +36 -0
- package/schemas/textAreaQuestion.schema.json +78 -0
- package/schemas/textQuestion.schema.json +63 -0
- package/schemas/typeaheadSearchAnswer.schema.json +37 -0
- package/schemas/typeaheadSearchQuestion.schema.json +120 -0
- package/schemas/urlAnswer.schema.json +36 -0
- package/schemas/urlQuestion.schema.json +66 -0
|
@@ -5,6 +5,7 @@ export declare const EmailAnswerSchema: z.ZodObject<{
|
|
|
5
5
|
meta: z.ZodObject<{
|
|
6
6
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
8
9
|
}, z.core.$strip>;
|
|
9
10
|
export declare const DefaultEmailAnswer: {
|
|
10
11
|
type: "email";
|
|
@@ -12,6 +13,7 @@ export declare const DefaultEmailAnswer: {
|
|
|
12
13
|
meta: {
|
|
13
14
|
schemaVersion: string;
|
|
14
15
|
};
|
|
16
|
+
comment?: string | undefined;
|
|
15
17
|
};
|
|
16
18
|
export declare const TextAnswerSchema: z.ZodObject<{
|
|
17
19
|
type: z.ZodLiteral<"text">;
|
|
@@ -19,6 +21,7 @@ export declare const TextAnswerSchema: z.ZodObject<{
|
|
|
19
21
|
meta: z.ZodObject<{
|
|
20
22
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
21
23
|
}, z.core.$strip>;
|
|
24
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
22
25
|
}, z.core.$strip>;
|
|
23
26
|
export declare const DefaultTextAnswer: {
|
|
24
27
|
type: "text";
|
|
@@ -26,6 +29,7 @@ export declare const DefaultTextAnswer: {
|
|
|
26
29
|
meta: {
|
|
27
30
|
schemaVersion: string;
|
|
28
31
|
};
|
|
32
|
+
comment?: string | undefined;
|
|
29
33
|
};
|
|
30
34
|
export declare const TextAreaAnswerSchema: z.ZodObject<{
|
|
31
35
|
type: z.ZodLiteral<"textArea">;
|
|
@@ -33,6 +37,7 @@ export declare const TextAreaAnswerSchema: z.ZodObject<{
|
|
|
33
37
|
meta: z.ZodObject<{
|
|
34
38
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
35
39
|
}, z.core.$strip>;
|
|
40
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
36
41
|
}, z.core.$strip>;
|
|
37
42
|
export declare const DefaultTextAreaAnswer: {
|
|
38
43
|
type: "textArea";
|
|
@@ -40,6 +45,7 @@ export declare const DefaultTextAreaAnswer: {
|
|
|
40
45
|
meta: {
|
|
41
46
|
schemaVersion: string;
|
|
42
47
|
};
|
|
48
|
+
comment?: string | undefined;
|
|
43
49
|
};
|
|
44
50
|
export declare const URLAnswerSchema: z.ZodObject<{
|
|
45
51
|
type: z.ZodLiteral<"url">;
|
|
@@ -47,6 +53,7 @@ export declare const URLAnswerSchema: z.ZodObject<{
|
|
|
47
53
|
meta: z.ZodObject<{
|
|
48
54
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
49
55
|
}, z.core.$strip>;
|
|
56
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
50
57
|
}, z.core.$strip>;
|
|
51
58
|
export declare const DefaultURLAnswer: {
|
|
52
59
|
type: "url";
|
|
@@ -54,6 +61,7 @@ export declare const DefaultURLAnswer: {
|
|
|
54
61
|
meta: {
|
|
55
62
|
schemaVersion: string;
|
|
56
63
|
};
|
|
64
|
+
comment?: string | undefined;
|
|
57
65
|
};
|
|
58
66
|
export type EmailAnswerType = z.infer<typeof EmailAnswerSchema>;
|
|
59
67
|
export type TextAnswerType = z.infer<typeof TextAnswerSchema>;
|