@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
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ The available question schemas/types are:
|
|
|
24
24
|
- `DateQuestion` A date field. Supports `YYYY-MM-DD` format.
|
|
25
25
|
- `DateRangeQuestion` A series of 2 date fields. Meant to capture "From" and "To" or "Start" and "End" dates.
|
|
26
26
|
- `EmailQuestion` An email address. Supports multiple emails that are comma separated.
|
|
27
|
-
- `LicenseSearch` A GraphQL enabled question to
|
|
27
|
+
- `LicenseSearch` A GraphQL enabled question to fetch all Licenses
|
|
28
28
|
- `MetadataStandardSearch` A GraphQL enabled question to search for relevant Metadata Standards
|
|
29
29
|
- `MultiselectBoxQuestion` A select box that allows for multiple selections
|
|
30
30
|
- `NumberQuestion` A numeric field. Supports both integers and floats.
|
package/dist/answers/answer.d.ts
CHANGED
|
@@ -36,4 +36,32 @@ export declare const DefaultAnswer: {
|
|
|
36
36
|
comment?: string | undefined;
|
|
37
37
|
};
|
|
38
38
|
export type AnswerType = z.infer<typeof AnswerSchema>;
|
|
39
|
-
export declare const AnswerJSONSchema: z.core.
|
|
39
|
+
export declare const AnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
40
|
+
type: z.ZodEnum<{
|
|
41
|
+
number: "number";
|
|
42
|
+
boolean: "boolean";
|
|
43
|
+
affiliationSearch: "affiliationSearch";
|
|
44
|
+
checkBoxes: "checkBoxes";
|
|
45
|
+
currency: "currency";
|
|
46
|
+
date: "date";
|
|
47
|
+
dateRange: "dateRange";
|
|
48
|
+
email: "email";
|
|
49
|
+
licenseSearch: "licenseSearch";
|
|
50
|
+
metadataStandardSearch: "metadataStandardSearch";
|
|
51
|
+
multiselectBox: "multiselectBox";
|
|
52
|
+
numberRange: "numberRange";
|
|
53
|
+
numberWithContext: "numberWithContext";
|
|
54
|
+
radioButtons: "radioButtons";
|
|
55
|
+
repositorySearch: "repositorySearch";
|
|
56
|
+
researchOutputTable: "researchOutputTable";
|
|
57
|
+
selectBox: "selectBox";
|
|
58
|
+
table: "table";
|
|
59
|
+
text: "text";
|
|
60
|
+
textArea: "textArea";
|
|
61
|
+
url: "url";
|
|
62
|
+
}>;
|
|
63
|
+
meta: z.ZodObject<{
|
|
64
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
@@ -39,5 +39,22 @@ export declare const DefaultDateRangeAnswer: {
|
|
|
39
39
|
};
|
|
40
40
|
export type DateAnswerType = z.infer<typeof DateAnswerSchema>;
|
|
41
41
|
export type DateRangeAnswerType = z.infer<typeof DateRangeAnswerSchema>;
|
|
42
|
-
export declare const DateAnswerJSONSchema: z.core.
|
|
43
|
-
|
|
42
|
+
export declare const DateAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<"date">;
|
|
44
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
45
|
+
meta: z.ZodObject<{
|
|
46
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
export declare const DateRangeAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<"dateRange">;
|
|
52
|
+
answer: z.ZodObject<{
|
|
53
|
+
start: z.ZodDefault<z.ZodString>;
|
|
54
|
+
end: z.ZodDefault<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
meta: z.ZodObject<{
|
|
57
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
@@ -91,7 +91,47 @@ export type AffiliationSearchAnswerType = z.infer<typeof AffiliationSearchAnswer
|
|
|
91
91
|
export type LicenseSearchAnswerType = z.infer<typeof LicenseSearchAnswerSchema>;
|
|
92
92
|
export type MetadataStandardSearchAnswerType = z.infer<typeof MetadataStandardSearchAnswerSchema>;
|
|
93
93
|
export type RepositorySearchAnswerType = z.infer<typeof RepositorySearchAnswerSchema>;
|
|
94
|
-
export declare const AffiliationSearchAnswerJSONSchema: z.core.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
export declare const AffiliationSearchAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
96
|
+
answer: z.ZodObject<{
|
|
97
|
+
affiliationId: z.ZodDefault<z.ZodString>;
|
|
98
|
+
affiliationName: z.ZodDefault<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
meta: z.ZodObject<{
|
|
101
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
export declare const LicenseSearchAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
106
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
107
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
108
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
109
|
+
licenseName: z.ZodDefault<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
meta: z.ZodObject<{
|
|
112
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
export declare const MetadataStandardSearchAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
117
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
118
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
119
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
120
|
+
metadataStandardName: z.ZodDefault<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
meta: z.ZodObject<{
|
|
123
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
export declare const RepositorySearchAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
128
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
129
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
130
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
131
|
+
repositoryName: z.ZodDefault<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
133
|
+
meta: z.ZodObject<{
|
|
134
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>;
|
package/dist/answers/index.d.ts
CHANGED
|
@@ -414,7 +414,407 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
414
414
|
}, z.core.$strip>;
|
|
415
415
|
comment: z.ZodOptional<z.ZodString>;
|
|
416
416
|
}, z.core.$strip>], "type">;
|
|
417
|
-
export declare const AnyAnswerJSONSchema: z.core.
|
|
417
|
+
export declare const AnyAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
418
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
419
|
+
answer: z.ZodObject<{
|
|
420
|
+
affiliationId: z.ZodDefault<z.ZodString>;
|
|
421
|
+
affiliationName: z.ZodDefault<z.ZodString>;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
meta: z.ZodObject<{
|
|
424
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
428
|
+
type: z.ZodLiteral<"boolean">;
|
|
429
|
+
answer: z.ZodDefault<z.ZodBoolean>;
|
|
430
|
+
meta: z.ZodObject<{
|
|
431
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
435
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
436
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
437
|
+
meta: z.ZodObject<{
|
|
438
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
442
|
+
type: z.ZodLiteral<"currency">;
|
|
443
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
444
|
+
meta: z.ZodObject<{
|
|
445
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
449
|
+
type: z.ZodLiteral<"date">;
|
|
450
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
451
|
+
meta: z.ZodObject<{
|
|
452
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
456
|
+
type: z.ZodLiteral<"dateRange">;
|
|
457
|
+
answer: z.ZodObject<{
|
|
458
|
+
start: z.ZodDefault<z.ZodString>;
|
|
459
|
+
end: z.ZodDefault<z.ZodString>;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
meta: z.ZodObject<{
|
|
462
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
466
|
+
type: z.ZodLiteral<"email">;
|
|
467
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
468
|
+
meta: z.ZodObject<{
|
|
469
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
470
|
+
}, z.core.$strip>;
|
|
471
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
473
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
474
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
475
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
476
|
+
licenseName: z.ZodDefault<z.ZodString>;
|
|
477
|
+
}, z.core.$strip>>>;
|
|
478
|
+
meta: z.ZodObject<{
|
|
479
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
483
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
484
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
485
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
486
|
+
metadataStandardName: z.ZodDefault<z.ZodString>;
|
|
487
|
+
}, z.core.$strip>>>;
|
|
488
|
+
meta: z.ZodObject<{
|
|
489
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
493
|
+
type: z.ZodLiteral<"multiselectBox">;
|
|
494
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
495
|
+
meta: z.ZodObject<{
|
|
496
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
499
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
500
|
+
type: z.ZodLiteral<"number">;
|
|
501
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
502
|
+
meta: z.ZodObject<{
|
|
503
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
504
|
+
}, z.core.$strip>;
|
|
505
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
507
|
+
type: z.ZodLiteral<"numberRange">;
|
|
508
|
+
answer: z.ZodObject<{
|
|
509
|
+
start: z.ZodDefault<z.ZodNumber>;
|
|
510
|
+
end: z.ZodDefault<z.ZodNumber>;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
meta: z.ZodObject<{
|
|
513
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
514
|
+
}, z.core.$strip>;
|
|
515
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
517
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
518
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
519
|
+
meta: z.ZodObject<{
|
|
520
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
524
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
525
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
526
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
527
|
+
repositoryName: z.ZodDefault<z.ZodString>;
|
|
528
|
+
}, z.core.$strip>>>;
|
|
529
|
+
meta: z.ZodObject<{
|
|
530
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
533
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
534
|
+
type: z.ZodLiteral<"researchOutputTable">;
|
|
535
|
+
columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
536
|
+
answer: z.ZodArray<z.ZodObject<{
|
|
537
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
538
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
539
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
540
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
541
|
+
meta: z.ZodObject<{
|
|
542
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
547
|
+
type: z.ZodLiteral<"date">;
|
|
548
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
549
|
+
meta: z.ZodObject<{
|
|
550
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
551
|
+
}, z.core.$strip>;
|
|
552
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
554
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
555
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
556
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
557
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
558
|
+
licenseName: z.ZodDefault<z.ZodString>;
|
|
559
|
+
}, z.core.$strip>>>;
|
|
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
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
566
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
567
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
568
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
569
|
+
metadataStandardName: z.ZodDefault<z.ZodString>;
|
|
570
|
+
}, z.core.$strip>>>;
|
|
571
|
+
meta: z.ZodObject<{
|
|
572
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
576
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
577
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
578
|
+
answer: z.ZodObject<{
|
|
579
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
580
|
+
context: z.ZodDefault<z.ZodString>;
|
|
581
|
+
}, z.core.$strip>;
|
|
582
|
+
meta: z.ZodObject<{
|
|
583
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
584
|
+
}, z.core.$strip>;
|
|
585
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
587
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
588
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
589
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
590
|
+
meta: z.ZodObject<{
|
|
591
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
592
|
+
}, z.core.$strip>;
|
|
593
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
596
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
597
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
598
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
599
|
+
repositoryName: z.ZodDefault<z.ZodString>;
|
|
600
|
+
}, z.core.$strip>>>;
|
|
601
|
+
meta: z.ZodObject<{
|
|
602
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
603
|
+
}, z.core.$strip>;
|
|
604
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
606
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
607
|
+
type: z.ZodLiteral<"selectBox">;
|
|
608
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
609
|
+
meta: z.ZodObject<{
|
|
610
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
614
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
615
|
+
type: z.ZodLiteral<"text">;
|
|
616
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
617
|
+
meta: z.ZodObject<{
|
|
618
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
619
|
+
}, z.core.$strip>;
|
|
620
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
621
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
622
|
+
commonStandardId: z.ZodOptional<z.ZodString>;
|
|
623
|
+
type: z.ZodLiteral<"textArea">;
|
|
624
|
+
answer: z.ZodDefault<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>], "type">>;
|
|
630
|
+
}, z.core.$strip>>;
|
|
631
|
+
meta: z.ZodObject<{
|
|
632
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
633
|
+
}, z.core.$strip>;
|
|
634
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
635
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
636
|
+
type: z.ZodLiteral<"selectBox">;
|
|
637
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
638
|
+
meta: z.ZodObject<{
|
|
639
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
640
|
+
}, z.core.$strip>;
|
|
641
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
643
|
+
type: z.ZodLiteral<"table">;
|
|
644
|
+
columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
645
|
+
answer: z.ZodArray<z.ZodObject<{
|
|
646
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
647
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
648
|
+
answer: z.ZodObject<{
|
|
649
|
+
affiliationId: z.ZodDefault<z.ZodString>;
|
|
650
|
+
affiliationName: z.ZodDefault<z.ZodString>;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
meta: z.ZodObject<{
|
|
653
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
654
|
+
}, z.core.$strip>;
|
|
655
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
656
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
657
|
+
type: z.ZodLiteral<"boolean">;
|
|
658
|
+
answer: z.ZodDefault<z.ZodBoolean>;
|
|
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<"checkBoxes">;
|
|
665
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
666
|
+
meta: z.ZodObject<{
|
|
667
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
668
|
+
}, z.core.$strip>;
|
|
669
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
670
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
671
|
+
type: z.ZodLiteral<"currency">;
|
|
672
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
673
|
+
meta: z.ZodObject<{
|
|
674
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
675
|
+
}, z.core.$strip>;
|
|
676
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
677
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
678
|
+
type: z.ZodLiteral<"date">;
|
|
679
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
680
|
+
meta: z.ZodObject<{
|
|
681
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
682
|
+
}, z.core.$strip>;
|
|
683
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
685
|
+
type: z.ZodLiteral<"dateRange">;
|
|
686
|
+
answer: z.ZodObject<{
|
|
687
|
+
start: z.ZodDefault<z.ZodString>;
|
|
688
|
+
end: 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
|
+
type: z.ZodLiteral<"email">;
|
|
696
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
697
|
+
meta: z.ZodObject<{
|
|
698
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
699
|
+
}, z.core.$strip>;
|
|
700
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
701
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
702
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
703
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
704
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
705
|
+
licenseName: z.ZodDefault<z.ZodString>;
|
|
706
|
+
}, z.core.$strip>>>;
|
|
707
|
+
meta: z.ZodObject<{
|
|
708
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
709
|
+
}, z.core.$strip>;
|
|
710
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
711
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
712
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
713
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
714
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
715
|
+
metadataStandardName: z.ZodDefault<z.ZodString>;
|
|
716
|
+
}, z.core.$strip>>>;
|
|
717
|
+
meta: z.ZodObject<{
|
|
718
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
721
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
722
|
+
type: z.ZodLiteral<"multiselectBox">;
|
|
723
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
724
|
+
meta: z.ZodObject<{
|
|
725
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
726
|
+
}, z.core.$strip>;
|
|
727
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
729
|
+
type: z.ZodLiteral<"number">;
|
|
730
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
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
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
737
|
+
answer: z.ZodObject<{
|
|
738
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
739
|
+
context: z.ZodDefault<z.ZodString>;
|
|
740
|
+
}, z.core.$strip>;
|
|
741
|
+
meta: z.ZodObject<{
|
|
742
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
743
|
+
}, z.core.$strip>;
|
|
744
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
745
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
746
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
747
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
748
|
+
meta: z.ZodObject<{
|
|
749
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
750
|
+
}, z.core.$strip>;
|
|
751
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
752
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
753
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
754
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
755
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
756
|
+
repositoryName: z.ZodDefault<z.ZodString>;
|
|
757
|
+
}, z.core.$strip>>>;
|
|
758
|
+
meta: z.ZodObject<{
|
|
759
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
763
|
+
type: z.ZodLiteral<"selectBox">;
|
|
764
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
765
|
+
meta: z.ZodObject<{
|
|
766
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
769
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
770
|
+
type: z.ZodLiteral<"text">;
|
|
771
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
772
|
+
meta: z.ZodObject<{
|
|
773
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
774
|
+
}, z.core.$strip>;
|
|
775
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
776
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
777
|
+
type: z.ZodLiteral<"textArea">;
|
|
778
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
779
|
+
meta: z.ZodObject<{
|
|
780
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
781
|
+
}, z.core.$strip>;
|
|
782
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
783
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
784
|
+
type: z.ZodLiteral<"url">;
|
|
785
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
786
|
+
meta: z.ZodObject<{
|
|
787
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
788
|
+
}, z.core.$strip>;
|
|
789
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
790
|
+
}, z.core.$strip>], "type">>;
|
|
791
|
+
}, z.core.$strip>>;
|
|
792
|
+
meta: z.ZodObject<{
|
|
793
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
794
|
+
}, z.core.$strip>;
|
|
795
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
796
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
797
|
+
type: z.ZodLiteral<"text">;
|
|
798
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
799
|
+
meta: z.ZodObject<{
|
|
800
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
801
|
+
}, z.core.$strip>;
|
|
802
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
803
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
804
|
+
type: z.ZodLiteral<"textArea">;
|
|
805
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
806
|
+
meta: z.ZodObject<{
|
|
807
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
808
|
+
}, z.core.$strip>;
|
|
809
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
810
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
811
|
+
type: z.ZodLiteral<"url">;
|
|
812
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
813
|
+
meta: z.ZodObject<{
|
|
814
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
815
|
+
}, z.core.$strip>;
|
|
816
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
817
|
+
}, z.core.$strip>], "type">>;
|
|
418
818
|
export declare const AnswerSchemaMap: Record<z.infer<typeof QuestionFormatsEnum>, z.ZodTypeAny>;
|
|
419
819
|
export type AnyAnswerType = z.infer<typeof AnyAnswerSchema>;
|
|
420
820
|
export interface AnswerTypeMap {
|
|
@@ -79,7 +79,41 @@ export type CurrencyAnswerType = z.infer<typeof CurrencyAnswerSchema>;
|
|
|
79
79
|
export type NumberAnswerType = z.infer<typeof NumberAnswerSchema>;
|
|
80
80
|
export type NumberRangeAnswerType = z.infer<typeof NumberRangeAnswerSchema>;
|
|
81
81
|
export type NumberWithContextAnswerType = z.infer<typeof NumberWithContextAnswerSchema>;
|
|
82
|
-
export declare const CurrencyAnswerJSONSchema: z.core.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
export declare const CurrencyAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
83
|
+
type: z.ZodLiteral<"currency">;
|
|
84
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
85
|
+
meta: z.ZodObject<{
|
|
86
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
export declare const NumberAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"number">;
|
|
92
|
+
answer: z.ZodDefault<z.ZodNumber>;
|
|
93
|
+
meta: z.ZodObject<{
|
|
94
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
export declare const NumberRangeAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"numberRange">;
|
|
100
|
+
answer: z.ZodObject<{
|
|
101
|
+
start: z.ZodDefault<z.ZodNumber>;
|
|
102
|
+
end: z.ZodDefault<z.ZodNumber>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
meta: z.ZodObject<{
|
|
105
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
export declare const NumberWithContextAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
111
|
+
answer: z.ZodObject<{
|
|
112
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
113
|
+
context: z.ZodDefault<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
meta: z.ZodObject<{
|
|
116
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
@@ -84,8 +84,43 @@ export type CheckboxesAnswerType = z.infer<typeof CheckboxesAnswerSchema>;
|
|
|
84
84
|
export type RadioButtonsAnswerType = z.infer<typeof RadioButtonsAnswerSchema>;
|
|
85
85
|
export type SelectBoxAnswerType = z.infer<typeof SelectBoxAnswerSchema>;
|
|
86
86
|
export type MultiselectBoxAnswerType = z.infer<typeof MultiselectBoxAnswerSchema>;
|
|
87
|
-
export declare const BooleanAnswerJSONSchema: z.core.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
export declare const BooleanAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<"boolean">;
|
|
89
|
+
answer: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
meta: z.ZodObject<{
|
|
91
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
export declare const CheckboxesAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
97
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
|
+
meta: z.ZodObject<{
|
|
99
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
export declare const RadioButtonsAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
105
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
106
|
+
meta: z.ZodObject<{
|
|
107
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
export declare const SelectBoxAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<"selectBox">;
|
|
113
|
+
answer: z.ZodDefault<z.ZodString>;
|
|
114
|
+
meta: z.ZodObject<{
|
|
115
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
export declare const MultiselectBoxAnswerJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
120
|
+
type: z.ZodLiteral<"multiselectBox">;
|
|
121
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
122
|
+
meta: z.ZodObject<{
|
|
123
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>>;
|