@dmptool/types 2.1.0 → 2.2.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/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 +2 -2
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +8 -4
- package/dist/questions/dateQuestions.d.ts +4 -0
- package/dist/questions/dateQuestions.js +2 -2
- package/dist/questions/index.d.ts +28 -0
- package/dist/questions/numberQuestions.d.ts +8 -0
- package/dist/questions/numberQuestions.js +4 -4
- package/dist/questions/optionBasedQuestions.d.ts +10 -0
- package/dist/questions/optionBasedQuestions.js +5 -5
- package/dist/questions/tableQuestions.d.ts +70 -0
- 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 +84 -0
- package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
- package/dist/schemas/anyTableColumnQuestion.schema.json +33 -0
- 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 +3 -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 +3 -0
- 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 +3 -0
- 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 +3 -0
- package/dist/schemas/tableAnswer.schema.json +57 -0
- package/dist/schemas/tableQuestion.schema.json +33 -0
- 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 +4828 -0
- package/schemas/anyTableColumnAnswer.schema.json +741 -0
- package/schemas/anyTableColumnQuestion.schema.json +1560 -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 +80 -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 +87 -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 +80 -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 +87 -0
- package/schemas/tableAnswer.schema.json +797 -0
- package/schemas/tableQuestion.schema.json +1662 -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
|
@@ -37,6 +37,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
37
37
|
label: z.ZodString;
|
|
38
38
|
value: z.ZodDefault<z.ZodBoolean>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
40
41
|
meta: z.ZodObject<{
|
|
41
42
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
42
43
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -49,6 +50,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
49
50
|
label: z.ZodDefault<z.ZodString>;
|
|
50
51
|
value: z.ZodDefault<z.ZodString>;
|
|
51
52
|
}, z.core.$strip>>;
|
|
53
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
52
54
|
attributes: z.ZodObject<{
|
|
53
55
|
label: z.ZodOptional<z.ZodString>;
|
|
54
56
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -70,6 +72,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
70
72
|
help: z.ZodOptional<z.ZodString>;
|
|
71
73
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
72
74
|
}, z.core.$strip>;
|
|
75
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
73
76
|
meta: z.ZodObject<{
|
|
74
77
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
75
78
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -85,6 +88,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
85
88
|
help: z.ZodOptional<z.ZodString>;
|
|
86
89
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
87
90
|
}, z.core.$strip>;
|
|
91
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
88
92
|
meta: z.ZodObject<{
|
|
89
93
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
90
94
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -110,6 +114,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
110
114
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
111
115
|
}, z.core.$strip>;
|
|
112
116
|
}, z.core.$strip>;
|
|
117
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
113
118
|
attributes: z.ZodObject<{
|
|
114
119
|
label: z.ZodOptional<z.ZodString>;
|
|
115
120
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -131,6 +136,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
131
136
|
help: z.ZodOptional<z.ZodString>;
|
|
132
137
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
133
138
|
}, z.core.$strip>;
|
|
139
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
134
140
|
meta: z.ZodObject<{
|
|
135
141
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
136
142
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -210,6 +216,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
210
216
|
help: z.ZodOptional<z.ZodString>;
|
|
211
217
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
212
218
|
}, z.core.$strip>;
|
|
219
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
213
220
|
meta: z.ZodObject<{
|
|
214
221
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
215
222
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -231,6 +238,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
231
238
|
help: z.ZodOptional<z.ZodString>;
|
|
232
239
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
233
240
|
}, z.core.$strip>;
|
|
241
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
234
242
|
meta: z.ZodObject<{
|
|
235
243
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
236
244
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -243,6 +251,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
243
251
|
label: z.ZodDefault<z.ZodString>;
|
|
244
252
|
value: z.ZodDefault<z.ZodString>;
|
|
245
253
|
}, z.core.$strip>>;
|
|
254
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
246
255
|
attributes: z.ZodObject<{
|
|
247
256
|
label: z.ZodOptional<z.ZodString>;
|
|
248
257
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -298,6 +307,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
298
307
|
help: z.ZodOptional<z.ZodString>;
|
|
299
308
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
300
309
|
}, z.core.$strip>;
|
|
310
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
301
311
|
meta: z.ZodObject<{
|
|
302
312
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
303
313
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -346,6 +356,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
346
356
|
help: z.ZodOptional<z.ZodString>;
|
|
347
357
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
348
358
|
}, z.core.$strip>;
|
|
359
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
349
360
|
meta: z.ZodObject<{
|
|
350
361
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
351
362
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -395,6 +406,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
395
406
|
label: z.ZodString;
|
|
396
407
|
value: z.ZodDefault<z.ZodBoolean>;
|
|
397
408
|
}, z.core.$strip>;
|
|
409
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
398
410
|
meta: z.ZodObject<{
|
|
399
411
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
400
412
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -407,6 +419,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
407
419
|
label: z.ZodDefault<z.ZodString>;
|
|
408
420
|
value: z.ZodDefault<z.ZodString>;
|
|
409
421
|
}, z.core.$strip>>;
|
|
422
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
410
423
|
attributes: z.ZodObject<{
|
|
411
424
|
label: z.ZodOptional<z.ZodString>;
|
|
412
425
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -428,6 +441,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
428
441
|
help: z.ZodOptional<z.ZodString>;
|
|
429
442
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
430
443
|
}, z.core.$strip>;
|
|
444
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
431
445
|
meta: z.ZodObject<{
|
|
432
446
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
433
447
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -443,6 +457,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
443
457
|
help: z.ZodOptional<z.ZodString>;
|
|
444
458
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
445
459
|
}, z.core.$strip>;
|
|
460
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
446
461
|
meta: z.ZodObject<{
|
|
447
462
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
448
463
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -468,6 +483,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
468
483
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
469
484
|
}, z.core.$strip>;
|
|
470
485
|
}, z.core.$strip>;
|
|
486
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
471
487
|
attributes: z.ZodObject<{
|
|
472
488
|
label: z.ZodOptional<z.ZodString>;
|
|
473
489
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -489,6 +505,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
489
505
|
help: z.ZodOptional<z.ZodString>;
|
|
490
506
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
491
507
|
}, z.core.$strip>;
|
|
508
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
492
509
|
meta: z.ZodObject<{
|
|
493
510
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
494
511
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -568,6 +585,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
568
585
|
help: z.ZodOptional<z.ZodString>;
|
|
569
586
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
570
587
|
}, z.core.$strip>;
|
|
588
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
571
589
|
meta: z.ZodObject<{
|
|
572
590
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
573
591
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -589,6 +607,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
589
607
|
help: z.ZodOptional<z.ZodString>;
|
|
590
608
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
591
609
|
}, z.core.$strip>;
|
|
610
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
592
611
|
meta: z.ZodObject<{
|
|
593
612
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
594
613
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -601,6 +620,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
601
620
|
label: z.ZodDefault<z.ZodString>;
|
|
602
621
|
value: z.ZodDefault<z.ZodString>;
|
|
603
622
|
}, z.core.$strip>>;
|
|
623
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
604
624
|
attributes: z.ZodObject<{
|
|
605
625
|
label: z.ZodOptional<z.ZodString>;
|
|
606
626
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -656,6 +676,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
656
676
|
help: z.ZodOptional<z.ZodString>;
|
|
657
677
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
658
678
|
}, z.core.$strip>;
|
|
679
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
659
680
|
meta: z.ZodObject<{
|
|
660
681
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
661
682
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -704,6 +725,7 @@ export declare const TableColumnSchema: z.ZodObject<{
|
|
|
704
725
|
help: z.ZodOptional<z.ZodString>;
|
|
705
726
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
706
727
|
}, z.core.$strip>;
|
|
728
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
707
729
|
meta: z.ZodObject<{
|
|
708
730
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
709
731
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -731,6 +753,7 @@ export declare const DefaultTableColumn: {
|
|
|
731
753
|
title?: string | undefined;
|
|
732
754
|
usageDescription?: string | undefined;
|
|
733
755
|
};
|
|
756
|
+
showCommentField?: boolean | undefined;
|
|
734
757
|
} | {
|
|
735
758
|
type: "number";
|
|
736
759
|
attributes: {
|
|
@@ -746,6 +769,7 @@ export declare const DefaultTableColumn: {
|
|
|
746
769
|
title?: string | undefined;
|
|
747
770
|
usageDescription?: string | undefined;
|
|
748
771
|
};
|
|
772
|
+
showCommentField?: boolean | undefined;
|
|
749
773
|
} | {
|
|
750
774
|
type: "numberWithContext";
|
|
751
775
|
attributes: {
|
|
@@ -767,6 +791,7 @@ export declare const DefaultTableColumn: {
|
|
|
767
791
|
title?: string | undefined;
|
|
768
792
|
usageDescription?: string | undefined;
|
|
769
793
|
};
|
|
794
|
+
showCommentField?: boolean | undefined;
|
|
770
795
|
} | {
|
|
771
796
|
type: "email";
|
|
772
797
|
attributes: {
|
|
@@ -783,6 +808,7 @@ export declare const DefaultTableColumn: {
|
|
|
783
808
|
title?: string | undefined;
|
|
784
809
|
usageDescription?: string | undefined;
|
|
785
810
|
};
|
|
811
|
+
showCommentField?: boolean | undefined;
|
|
786
812
|
} | {
|
|
787
813
|
type: "textArea";
|
|
788
814
|
attributes: {
|
|
@@ -831,6 +857,7 @@ export declare const DefaultTableColumn: {
|
|
|
831
857
|
title?: string | undefined;
|
|
832
858
|
usageDescription?: string | undefined;
|
|
833
859
|
};
|
|
860
|
+
showCommentField?: boolean | undefined;
|
|
834
861
|
} | {
|
|
835
862
|
type: "date";
|
|
836
863
|
attributes: {
|
|
@@ -846,6 +873,7 @@ export declare const DefaultTableColumn: {
|
|
|
846
873
|
title?: string | undefined;
|
|
847
874
|
usageDescription?: string | undefined;
|
|
848
875
|
};
|
|
876
|
+
showCommentField?: boolean | undefined;
|
|
849
877
|
} | {
|
|
850
878
|
type: "dateRange";
|
|
851
879
|
columns: {
|
|
@@ -876,6 +904,7 @@ export declare const DefaultTableColumn: {
|
|
|
876
904
|
title?: string | undefined;
|
|
877
905
|
usageDescription?: string | undefined;
|
|
878
906
|
};
|
|
907
|
+
showCommentField?: boolean | undefined;
|
|
879
908
|
} | {
|
|
880
909
|
type: "boolean";
|
|
881
910
|
attributes: {
|
|
@@ -887,6 +916,7 @@ export declare const DefaultTableColumn: {
|
|
|
887
916
|
title?: string | undefined;
|
|
888
917
|
usageDescription?: string | undefined;
|
|
889
918
|
};
|
|
919
|
+
showCommentField?: boolean | undefined;
|
|
890
920
|
} | {
|
|
891
921
|
type: "checkBoxes";
|
|
892
922
|
options: {
|
|
@@ -904,6 +934,7 @@ export declare const DefaultTableColumn: {
|
|
|
904
934
|
title?: string | undefined;
|
|
905
935
|
usageDescription?: string | undefined;
|
|
906
936
|
};
|
|
937
|
+
showCommentField?: boolean | undefined;
|
|
907
938
|
} | {
|
|
908
939
|
type: "radioButtons";
|
|
909
940
|
options: {
|
|
@@ -921,6 +952,7 @@ export declare const DefaultTableColumn: {
|
|
|
921
952
|
title?: string | undefined;
|
|
922
953
|
usageDescription?: string | undefined;
|
|
923
954
|
};
|
|
955
|
+
showCommentField?: boolean | undefined;
|
|
924
956
|
} | {
|
|
925
957
|
type: "selectBox";
|
|
926
958
|
options: {
|
|
@@ -939,6 +971,7 @@ export declare const DefaultTableColumn: {
|
|
|
939
971
|
title?: string | undefined;
|
|
940
972
|
usageDescription?: string | undefined;
|
|
941
973
|
};
|
|
974
|
+
showCommentField?: boolean | undefined;
|
|
942
975
|
} | {
|
|
943
976
|
type: "affiliationSearch";
|
|
944
977
|
graphQL: {
|
|
@@ -1115,6 +1148,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1115
1148
|
label: z.ZodString;
|
|
1116
1149
|
value: z.ZodDefault<z.ZodBoolean>;
|
|
1117
1150
|
}, z.core.$strip>;
|
|
1151
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1118
1152
|
meta: z.ZodObject<{
|
|
1119
1153
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1120
1154
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1127,6 +1161,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1127
1161
|
label: z.ZodDefault<z.ZodString>;
|
|
1128
1162
|
value: z.ZodDefault<z.ZodString>;
|
|
1129
1163
|
}, z.core.$strip>>;
|
|
1164
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1130
1165
|
attributes: z.ZodObject<{
|
|
1131
1166
|
label: z.ZodOptional<z.ZodString>;
|
|
1132
1167
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -1148,6 +1183,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1148
1183
|
help: z.ZodOptional<z.ZodString>;
|
|
1149
1184
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1150
1185
|
}, z.core.$strip>;
|
|
1186
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1151
1187
|
meta: z.ZodObject<{
|
|
1152
1188
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1153
1189
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1163,6 +1199,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1163
1199
|
help: z.ZodOptional<z.ZodString>;
|
|
1164
1200
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1165
1201
|
}, z.core.$strip>;
|
|
1202
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1166
1203
|
meta: z.ZodObject<{
|
|
1167
1204
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1168
1205
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1188,6 +1225,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1188
1225
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1189
1226
|
}, z.core.$strip>;
|
|
1190
1227
|
}, z.core.$strip>;
|
|
1228
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1191
1229
|
attributes: z.ZodObject<{
|
|
1192
1230
|
label: z.ZodOptional<z.ZodString>;
|
|
1193
1231
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -1209,6 +1247,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1209
1247
|
help: z.ZodOptional<z.ZodString>;
|
|
1210
1248
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1211
1249
|
}, z.core.$strip>;
|
|
1250
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1212
1251
|
meta: z.ZodObject<{
|
|
1213
1252
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1214
1253
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1288,6 +1327,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1288
1327
|
help: z.ZodOptional<z.ZodString>;
|
|
1289
1328
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1290
1329
|
}, z.core.$strip>;
|
|
1330
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1291
1331
|
meta: z.ZodObject<{
|
|
1292
1332
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1293
1333
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1309,6 +1349,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1309
1349
|
help: z.ZodOptional<z.ZodString>;
|
|
1310
1350
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1311
1351
|
}, z.core.$strip>;
|
|
1352
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1312
1353
|
meta: z.ZodObject<{
|
|
1313
1354
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1314
1355
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1321,6 +1362,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1321
1362
|
label: z.ZodDefault<z.ZodString>;
|
|
1322
1363
|
value: z.ZodDefault<z.ZodString>;
|
|
1323
1364
|
}, z.core.$strip>>;
|
|
1365
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1324
1366
|
attributes: z.ZodObject<{
|
|
1325
1367
|
label: z.ZodOptional<z.ZodString>;
|
|
1326
1368
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -1376,6 +1418,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1376
1418
|
help: z.ZodOptional<z.ZodString>;
|
|
1377
1419
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1378
1420
|
}, z.core.$strip>;
|
|
1421
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1379
1422
|
meta: z.ZodObject<{
|
|
1380
1423
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1381
1424
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1424,6 +1467,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
|
|
|
1424
1467
|
help: z.ZodOptional<z.ZodString>;
|
|
1425
1468
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1426
1469
|
}, z.core.$strip>;
|
|
1470
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1427
1471
|
meta: z.ZodObject<{
|
|
1428
1472
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1429
1473
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1469,6 +1513,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1469
1513
|
title?: string | undefined;
|
|
1470
1514
|
usageDescription?: string | undefined;
|
|
1471
1515
|
};
|
|
1516
|
+
showCommentField?: boolean | undefined;
|
|
1472
1517
|
} | {
|
|
1473
1518
|
type: "number";
|
|
1474
1519
|
attributes: {
|
|
@@ -1484,6 +1529,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1484
1529
|
title?: string | undefined;
|
|
1485
1530
|
usageDescription?: string | undefined;
|
|
1486
1531
|
};
|
|
1532
|
+
showCommentField?: boolean | undefined;
|
|
1487
1533
|
} | {
|
|
1488
1534
|
type: "numberWithContext";
|
|
1489
1535
|
attributes: {
|
|
@@ -1505,6 +1551,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1505
1551
|
title?: string | undefined;
|
|
1506
1552
|
usageDescription?: string | undefined;
|
|
1507
1553
|
};
|
|
1554
|
+
showCommentField?: boolean | undefined;
|
|
1508
1555
|
} | {
|
|
1509
1556
|
type: "email";
|
|
1510
1557
|
attributes: {
|
|
@@ -1521,6 +1568,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1521
1568
|
title?: string | undefined;
|
|
1522
1569
|
usageDescription?: string | undefined;
|
|
1523
1570
|
};
|
|
1571
|
+
showCommentField?: boolean | undefined;
|
|
1524
1572
|
} | {
|
|
1525
1573
|
type: "textArea";
|
|
1526
1574
|
attributes: {
|
|
@@ -1569,6 +1617,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1569
1617
|
title?: string | undefined;
|
|
1570
1618
|
usageDescription?: string | undefined;
|
|
1571
1619
|
};
|
|
1620
|
+
showCommentField?: boolean | undefined;
|
|
1572
1621
|
} | {
|
|
1573
1622
|
type: "date";
|
|
1574
1623
|
attributes: {
|
|
@@ -1584,6 +1633,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1584
1633
|
title?: string | undefined;
|
|
1585
1634
|
usageDescription?: string | undefined;
|
|
1586
1635
|
};
|
|
1636
|
+
showCommentField?: boolean | undefined;
|
|
1587
1637
|
} | {
|
|
1588
1638
|
type: "dateRange";
|
|
1589
1639
|
columns: {
|
|
@@ -1614,6 +1664,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1614
1664
|
title?: string | undefined;
|
|
1615
1665
|
usageDescription?: string | undefined;
|
|
1616
1666
|
};
|
|
1667
|
+
showCommentField?: boolean | undefined;
|
|
1617
1668
|
} | {
|
|
1618
1669
|
type: "boolean";
|
|
1619
1670
|
attributes: {
|
|
@@ -1625,6 +1676,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1625
1676
|
title?: string | undefined;
|
|
1626
1677
|
usageDescription?: string | undefined;
|
|
1627
1678
|
};
|
|
1679
|
+
showCommentField?: boolean | undefined;
|
|
1628
1680
|
} | {
|
|
1629
1681
|
type: "checkBoxes";
|
|
1630
1682
|
options: {
|
|
@@ -1642,6 +1694,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1642
1694
|
title?: string | undefined;
|
|
1643
1695
|
usageDescription?: string | undefined;
|
|
1644
1696
|
};
|
|
1697
|
+
showCommentField?: boolean | undefined;
|
|
1645
1698
|
} | {
|
|
1646
1699
|
type: "radioButtons";
|
|
1647
1700
|
options: {
|
|
@@ -1659,6 +1712,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1659
1712
|
title?: string | undefined;
|
|
1660
1713
|
usageDescription?: string | undefined;
|
|
1661
1714
|
};
|
|
1715
|
+
showCommentField?: boolean | undefined;
|
|
1662
1716
|
} | {
|
|
1663
1717
|
type: "selectBox";
|
|
1664
1718
|
options: {
|
|
@@ -1677,6 +1731,7 @@ export declare const DefaultTableQuestion: {
|
|
|
1677
1731
|
title?: string | undefined;
|
|
1678
1732
|
usageDescription?: string | undefined;
|
|
1679
1733
|
};
|
|
1734
|
+
showCommentField?: boolean | undefined;
|
|
1680
1735
|
} | {
|
|
1681
1736
|
type: "affiliationSearch";
|
|
1682
1737
|
graphQL: {
|
|
@@ -1932,6 +1987,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1932
1987
|
help: z.ZodOptional<z.ZodString>;
|
|
1933
1988
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
1934
1989
|
}, z.core.$strip>;
|
|
1990
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1935
1991
|
meta: z.ZodObject<{
|
|
1936
1992
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
1937
1993
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1950,6 +2006,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1950
2006
|
label: z.ZodDefault<z.ZodString>;
|
|
1951
2007
|
value: z.ZodDefault<z.ZodString>;
|
|
1952
2008
|
}, z.core.$strip>>;
|
|
2009
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1953
2010
|
attributes: z.ZodObject<{
|
|
1954
2011
|
label: z.ZodOptional<z.ZodString>;
|
|
1955
2012
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -1973,6 +2030,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1973
2030
|
label: z.ZodDefault<z.ZodString>;
|
|
1974
2031
|
value: z.ZodDefault<z.ZodString>;
|
|
1975
2032
|
}, z.core.$strip>>;
|
|
2033
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
1976
2034
|
attributes: z.ZodObject<{
|
|
1977
2035
|
label: z.ZodOptional<z.ZodString>;
|
|
1978
2036
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -1999,6 +2057,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1999
2057
|
help: z.ZodOptional<z.ZodString>;
|
|
2000
2058
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2001
2059
|
}, z.core.$strip>;
|
|
2060
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
2002
2061
|
meta: z.ZodObject<{
|
|
2003
2062
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2004
2063
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2026,6 +2085,7 @@ declare const AnyResearchOutputColumnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2026
2085
|
help: z.ZodOptional<z.ZodString>;
|
|
2027
2086
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2028
2087
|
}, z.core.$strip>;
|
|
2088
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
2029
2089
|
meta: z.ZodObject<{
|
|
2030
2090
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2031
2091
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2246,6 +2306,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2246
2306
|
help: z.ZodOptional<z.ZodString>;
|
|
2247
2307
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2248
2308
|
}, z.core.$strip>;
|
|
2309
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
2249
2310
|
meta: z.ZodObject<{
|
|
2250
2311
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2251
2312
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2264,6 +2325,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2264
2325
|
label: z.ZodDefault<z.ZodString>;
|
|
2265
2326
|
value: z.ZodDefault<z.ZodString>;
|
|
2266
2327
|
}, z.core.$strip>>;
|
|
2328
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
2267
2329
|
attributes: z.ZodObject<{
|
|
2268
2330
|
label: z.ZodOptional<z.ZodString>;
|
|
2269
2331
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -2287,6 +2349,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2287
2349
|
label: z.ZodDefault<z.ZodString>;
|
|
2288
2350
|
value: z.ZodDefault<z.ZodString>;
|
|
2289
2351
|
}, z.core.$strip>>;
|
|
2352
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
2290
2353
|
attributes: z.ZodObject<{
|
|
2291
2354
|
label: z.ZodOptional<z.ZodString>;
|
|
2292
2355
|
help: z.ZodOptional<z.ZodString>;
|
|
@@ -2313,6 +2376,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2313
2376
|
help: z.ZodOptional<z.ZodString>;
|
|
2314
2377
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2315
2378
|
}, z.core.$strip>;
|
|
2379
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
2316
2380
|
meta: z.ZodObject<{
|
|
2317
2381
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2318
2382
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2340,6 +2404,7 @@ export declare const ResearchOutputTableQuestionSchema: z.ZodObject<{
|
|
|
2340
2404
|
help: z.ZodOptional<z.ZodString>;
|
|
2341
2405
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
2342
2406
|
}, z.core.$strip>;
|
|
2407
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
2343
2408
|
meta: z.ZodObject<{
|
|
2344
2409
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
2345
2410
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2581,6 +2646,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2581
2646
|
title?: string | undefined;
|
|
2582
2647
|
usageDescription?: string | undefined;
|
|
2583
2648
|
};
|
|
2649
|
+
showCommentField?: boolean | undefined;
|
|
2584
2650
|
};
|
|
2585
2651
|
enabled: boolean;
|
|
2586
2652
|
} | {
|
|
@@ -2604,6 +2670,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2604
2670
|
title?: string | undefined;
|
|
2605
2671
|
usageDescription?: string | undefined;
|
|
2606
2672
|
};
|
|
2673
|
+
showCommentField?: boolean | undefined;
|
|
2607
2674
|
};
|
|
2608
2675
|
required: boolean;
|
|
2609
2676
|
} | {
|
|
@@ -2627,6 +2694,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2627
2694
|
title?: string | undefined;
|
|
2628
2695
|
usageDescription?: string | undefined;
|
|
2629
2696
|
};
|
|
2697
|
+
showCommentField?: boolean | undefined;
|
|
2630
2698
|
};
|
|
2631
2699
|
required: boolean;
|
|
2632
2700
|
} | {
|
|
@@ -2648,6 +2716,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2648
2716
|
title?: string | undefined;
|
|
2649
2717
|
usageDescription?: string | undefined;
|
|
2650
2718
|
};
|
|
2719
|
+
showCommentField?: boolean | undefined;
|
|
2651
2720
|
};
|
|
2652
2721
|
required: boolean;
|
|
2653
2722
|
} | {
|
|
@@ -2675,6 +2744,7 @@ export declare const DefaultResearchOutputTableQuestion: {
|
|
|
2675
2744
|
title?: string | undefined;
|
|
2676
2745
|
usageDescription?: string | undefined;
|
|
2677
2746
|
};
|
|
2747
|
+
showCommentField?: boolean | undefined;
|
|
2678
2748
|
};
|
|
2679
2749
|
required: boolean;
|
|
2680
2750
|
} | {
|
|
@@ -10,6 +10,7 @@ export declare const EmailQuestionSchema: z.ZodObject<{
|
|
|
10
10
|
help: z.ZodOptional<z.ZodString>;
|
|
11
11
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
13
14
|
meta: z.ZodObject<{
|
|
14
15
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
15
16
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -32,6 +33,7 @@ export declare const DefaultEmailQuestion: {
|
|
|
32
33
|
title?: string | undefined;
|
|
33
34
|
usageDescription?: string | undefined;
|
|
34
35
|
};
|
|
36
|
+
showCommentField?: boolean | undefined;
|
|
35
37
|
};
|
|
36
38
|
export declare const TextAreaQuestionSchema: z.ZodObject<{
|
|
37
39
|
type: z.ZodLiteral<"textArea">;
|
|
@@ -113,6 +115,7 @@ export declare const URLQuestionSchema: z.ZodObject<{
|
|
|
113
115
|
help: z.ZodOptional<z.ZodString>;
|
|
114
116
|
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
115
117
|
}, z.core.$strip>;
|
|
118
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
116
119
|
meta: z.ZodObject<{
|
|
117
120
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
118
121
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -134,6 +137,7 @@ export declare const DefaultURLQuestion: {
|
|
|
134
137
|
title?: string | undefined;
|
|
135
138
|
usageDescription?: string | undefined;
|
|
136
139
|
};
|
|
140
|
+
showCommentField?: boolean | undefined;
|
|
137
141
|
};
|
|
138
142
|
export type EmailQuestionType = z.infer<typeof EmailQuestionSchema>;
|
|
139
143
|
export type TextAreaQuestionType = z.infer<typeof TextAreaQuestionSchema>;
|
|
@@ -6,7 +6,7 @@ const question_1 = require("./question");
|
|
|
6
6
|
const TextAttributesSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.BaseAttributesSchema.shape), { maxLength: zod_1.z.number().default(255), minLength: zod_1.z.number().optional(), pattern: zod_1.z.string().optional() }));
|
|
7
7
|
const DefaultTextAttributes = TextAttributesSchema.parse({});
|
|
8
8
|
// Email question and answer
|
|
9
|
-
exports.EmailQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('email'), attributes: zod_1.z.object(Object.assign(Object.assign({}, TextAttributesSchema.shape), { multiple: zod_1.z.boolean().default(false) })) }));
|
|
9
|
+
exports.EmailQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('email'), attributes: zod_1.z.object(Object.assign(Object.assign({}, TextAttributesSchema.shape), { multiple: zod_1.z.boolean().default(false) })), showCommentField: zod_1.z.boolean().optional() }));
|
|
10
10
|
exports.DefaultEmailQuestion = exports.EmailQuestionSchema.parse({
|
|
11
11
|
type: 'email',
|
|
12
12
|
attributes: exports.EmailQuestionSchema.shape.attributes,
|
|
@@ -27,7 +27,7 @@ exports.DefaultTextQuestion = exports.TextQuestionSchema.parse({
|
|
|
27
27
|
meta: question_1.DefaultMeta
|
|
28
28
|
});
|
|
29
29
|
// URL question and answer
|
|
30
|
-
exports.URLQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('url'), attributes: TextAttributesSchema }));
|
|
30
|
+
exports.URLQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('url'), attributes: TextAttributesSchema, showCommentField: zod_1.z.boolean().optional() }));
|
|
31
31
|
exports.DefaultURLQuestion = exports.URLQuestionSchema.parse({
|
|
32
32
|
type: 'url',
|
|
33
33
|
attributes: DefaultTextAttributes,
|