@dmptool/types 2.0.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.
Files changed (144) hide show
  1. package/README.md +70 -1
  2. package/dist/answers/__tests__/defaults.spec.js +80 -21
  3. package/dist/answers/answer.d.ts +2 -0
  4. package/dist/answers/answer.js +4 -2
  5. package/dist/answers/dateAnswers.d.ts +4 -0
  6. package/dist/answers/graphQLAnswers.d.ts +8 -0
  7. package/dist/answers/index.d.ts +37 -0
  8. package/dist/answers/numberAnswers.d.ts +8 -0
  9. package/dist/answers/optionBasedAnswers.d.ts +10 -0
  10. package/dist/answers/tableAnswers.d.ts +94 -0
  11. package/dist/answers/textAnswers.d.ts +8 -0
  12. package/dist/dmp/__tests__/commonStandard.spec.d.ts +1 -0
  13. package/dist/dmp/__tests__/commonStandard.spec.js +210 -0
  14. package/dist/dmp/__tests__/extensions.spec.d.ts +1 -0
  15. package/dist/dmp/__tests__/extensions.spec.js +99 -0
  16. package/dist/dmp/extension.d.ts +1117 -0
  17. package/dist/dmp/extension.js +234 -0
  18. package/dist/dmp/index.d.ts +9 -0
  19. package/dist/dmp/index.js +69 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +1 -0
  22. package/dist/questions/__tests__/defaults.spec.js +2 -2
  23. package/dist/questions/__tests__/optionBasedQuestions.spec.js +8 -4
  24. package/dist/questions/dateQuestions.d.ts +4 -0
  25. package/dist/questions/dateQuestions.js +2 -2
  26. package/dist/questions/index.d.ts +30 -22
  27. package/dist/questions/numberQuestions.d.ts +8 -0
  28. package/dist/questions/numberQuestions.js +4 -4
  29. package/dist/questions/optionBasedQuestions.d.ts +10 -0
  30. package/dist/questions/optionBasedQuestions.js +5 -5
  31. package/dist/questions/tableQuestions.d.ts +393 -25
  32. package/dist/questions/tableQuestions.js +3 -2
  33. package/dist/questions/textQuestions.d.ts +4 -0
  34. package/dist/questions/textQuestions.js +2 -2
  35. package/dist/schemas/affiliationSearchAnswer.schema.json +50 -0
  36. package/dist/schemas/affiliationSearchQuestion.schema.json +142 -0
  37. package/dist/schemas/anyAnswer.schema.json +1537 -0
  38. package/dist/schemas/anyQuestion.schema.json +4828 -0
  39. package/dist/schemas/anyTableColumnAnswer.schema.json +741 -0
  40. package/dist/schemas/anyTableColumnQuestion.schema.json +1560 -0
  41. package/dist/schemas/booleanAnswer.schema.json +36 -0
  42. package/dist/schemas/booleanQuestion.schema.json +55 -0
  43. package/dist/schemas/checkboxesAnswer.schema.json +41 -0
  44. package/dist/schemas/checkboxesQuestion.schema.json +80 -0
  45. package/dist/schemas/currencyAnswer.schema.json +36 -0
  46. package/dist/schemas/currencyQuestion.schema.json +73 -0
  47. package/dist/schemas/dateAnswer.schema.json +36 -0
  48. package/dist/schemas/datePickerAnswer.schema.json +37 -0
  49. package/dist/schemas/datePickerQuestion.schema.json +52 -0
  50. package/dist/schemas/dateQuestion.schema.json +66 -0
  51. package/dist/schemas/dateRangeAnswer.schema.json +50 -0
  52. package/dist/schemas/dateRangeQuestion.schema.json +124 -0
  53. package/dist/schemas/dmp.schema.json +2070 -0
  54. package/dist/schemas/dmpExtension.schema.json +1985 -0
  55. package/dist/schemas/emailAnswer.schema.json +36 -0
  56. package/dist/schemas/emailQuestion.schema.json +71 -0
  57. package/dist/schemas/filteredSearchAnswer.schema.json +40 -0
  58. package/dist/schemas/filteredSearchQuestion.schema.json +130 -0
  59. package/dist/schemas/licenseSearchAnswer.schema.json +54 -0
  60. package/dist/schemas/licenseSearchQuestion.schema.json +140 -0
  61. package/dist/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  62. package/dist/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  63. package/dist/schemas/multiselectBoxAnswer.schema.json +41 -0
  64. package/dist/schemas/multiselectBoxQuestion.schema.json +87 -0
  65. package/dist/schemas/numberAnswer.schema.json +36 -0
  66. package/dist/schemas/numberQuestion.schema.json +68 -0
  67. package/dist/schemas/numberRangeAnswer.schema.json +50 -0
  68. package/dist/schemas/numberRangeQuestion.schema.json +128 -0
  69. package/dist/schemas/numberWithContextAnswer.schema.json +50 -0
  70. package/dist/schemas/numberWithContextQuestion.schema.json +98 -0
  71. package/dist/schemas/radioButtonsAnswer.schema.json +36 -0
  72. package/dist/schemas/radioButtonsQuestion.schema.json +80 -0
  73. package/dist/schemas/repositorySearchAnswer.schema.json +54 -0
  74. package/dist/schemas/repositorySearchQuestion.schema.json +140 -0
  75. package/dist/schemas/researchOutputTableAnswer.schema.json +20065 -0
  76. package/dist/schemas/researchOutputTableQuestion.schema.json +140 -0
  77. package/dist/schemas/selectBoxAnswer.schema.json +36 -0
  78. package/dist/schemas/selectBoxQuestion.schema.json +87 -0
  79. package/dist/schemas/tableAnswer.schema.json +797 -0
  80. package/dist/schemas/tableQuestion.schema.json +1662 -0
  81. package/dist/schemas/textAnswer.schema.json +36 -0
  82. package/dist/schemas/textAreaAnswer.schema.json +36 -0
  83. package/dist/schemas/textAreaQuestion.schema.json +78 -0
  84. package/dist/schemas/textQuestion.schema.json +63 -0
  85. package/dist/schemas/typeaheadSearchAnswer.schema.json +37 -0
  86. package/dist/schemas/typeaheadSearchQuestion.schema.json +120 -0
  87. package/dist/schemas/urlAnswer.schema.json +36 -0
  88. package/dist/schemas/urlQuestion.schema.json +66 -0
  89. package/package.json +12 -4
  90. package/schemas/.placeholder +0 -0
  91. package/schemas/affiliationSearchAnswer.schema.json +50 -0
  92. package/schemas/affiliationSearchQuestion.schema.json +142 -0
  93. package/schemas/anyAnswer.schema.json +1537 -0
  94. package/schemas/anyQuestion.schema.json +4828 -0
  95. package/schemas/anyTableColumnAnswer.schema.json +741 -0
  96. package/schemas/anyTableColumnQuestion.schema.json +1560 -0
  97. package/schemas/booleanAnswer.schema.json +36 -0
  98. package/schemas/booleanQuestion.schema.json +55 -0
  99. package/schemas/checkboxesAnswer.schema.json +41 -0
  100. package/schemas/checkboxesQuestion.schema.json +80 -0
  101. package/schemas/currencyAnswer.schema.json +36 -0
  102. package/schemas/currencyQuestion.schema.json +73 -0
  103. package/schemas/dateAnswer.schema.json +36 -0
  104. package/schemas/datePickerAnswer.schema.json +37 -0
  105. package/schemas/datePickerQuestion.schema.json +52 -0
  106. package/schemas/dateQuestion.schema.json +66 -0
  107. package/schemas/dateRangeAnswer.schema.json +50 -0
  108. package/schemas/dateRangeQuestion.schema.json +124 -0
  109. package/schemas/dmp.schema.json +2070 -0
  110. package/schemas/dmpExtension.schema.json +1985 -0
  111. package/schemas/emailAnswer.schema.json +36 -0
  112. package/schemas/emailQuestion.schema.json +71 -0
  113. package/schemas/filteredSearchAnswer.schema.json +40 -0
  114. package/schemas/filteredSearchQuestion.schema.json +130 -0
  115. package/schemas/licenseSearchAnswer.schema.json +54 -0
  116. package/schemas/licenseSearchQuestion.schema.json +140 -0
  117. package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  118. package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  119. package/schemas/multiselectBoxAnswer.schema.json +41 -0
  120. package/schemas/multiselectBoxQuestion.schema.json +87 -0
  121. package/schemas/numberAnswer.schema.json +36 -0
  122. package/schemas/numberQuestion.schema.json +68 -0
  123. package/schemas/numberRangeAnswer.schema.json +50 -0
  124. package/schemas/numberRangeQuestion.schema.json +128 -0
  125. package/schemas/numberWithContextAnswer.schema.json +50 -0
  126. package/schemas/numberWithContextQuestion.schema.json +98 -0
  127. package/schemas/radioButtonsAnswer.schema.json +36 -0
  128. package/schemas/radioButtonsQuestion.schema.json +80 -0
  129. package/schemas/repositorySearchAnswer.schema.json +54 -0
  130. package/schemas/repositorySearchQuestion.schema.json +140 -0
  131. package/schemas/researchOutputTableAnswer.schema.json +20065 -0
  132. package/schemas/researchOutputTableQuestion.schema.json +140 -0
  133. package/schemas/selectBoxAnswer.schema.json +36 -0
  134. package/schemas/selectBoxQuestion.schema.json +87 -0
  135. package/schemas/tableAnswer.schema.json +797 -0
  136. package/schemas/tableQuestion.schema.json +1662 -0
  137. package/schemas/textAnswer.schema.json +36 -0
  138. package/schemas/textAreaAnswer.schema.json +36 -0
  139. package/schemas/textAreaQuestion.schema.json +78 -0
  140. package/schemas/textQuestion.schema.json +63 -0
  141. package/schemas/typeaheadSearchAnswer.schema.json +37 -0
  142. package/schemas/typeaheadSearchQuestion.schema.json +120 -0
  143. package/schemas/urlAnswer.schema.json +36 -0
  144. package/schemas/urlQuestion.schema.json +66 -0
@@ -51,6 +51,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
51
  label: z.ZodString;
52
52
  value: z.ZodDefault<z.ZodBoolean>;
53
53
  }, z.core.$strip>;
54
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
54
55
  meta: z.ZodObject<{
55
56
  schemaVersion: z.ZodDefault<z.ZodString>;
56
57
  title: z.ZodOptional<z.ZodString>;
@@ -63,6 +64,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
64
  label: z.ZodDefault<z.ZodString>;
64
65
  value: z.ZodDefault<z.ZodString>;
65
66
  }, z.core.$strip>>;
67
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
66
68
  attributes: z.ZodObject<{
67
69
  label: z.ZodOptional<z.ZodString>;
68
70
  help: z.ZodOptional<z.ZodString>;
@@ -84,6 +86,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
86
  help: z.ZodOptional<z.ZodString>;
85
87
  labelTranslationKey: z.ZodOptional<z.ZodString>;
86
88
  }, z.core.$strip>;
89
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
87
90
  meta: z.ZodObject<{
88
91
  schemaVersion: z.ZodDefault<z.ZodString>;
89
92
  title: z.ZodOptional<z.ZodString>;
@@ -99,6 +102,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
99
102
  help: z.ZodOptional<z.ZodString>;
100
103
  labelTranslationKey: z.ZodOptional<z.ZodString>;
101
104
  }, z.core.$strip>;
105
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
102
106
  meta: z.ZodObject<{
103
107
  schemaVersion: z.ZodDefault<z.ZodString>;
104
108
  title: z.ZodOptional<z.ZodString>;
@@ -124,6 +128,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
124
128
  labelTranslationKey: z.ZodOptional<z.ZodString>;
125
129
  }, z.core.$strip>;
126
130
  }, z.core.$strip>;
131
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
127
132
  attributes: z.ZodObject<{
128
133
  label: z.ZodOptional<z.ZodString>;
129
134
  help: z.ZodOptional<z.ZodString>;
@@ -145,6 +150,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
145
150
  help: z.ZodOptional<z.ZodString>;
146
151
  labelTranslationKey: z.ZodOptional<z.ZodString>;
147
152
  }, z.core.$strip>;
153
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
148
154
  meta: z.ZodObject<{
149
155
  schemaVersion: z.ZodDefault<z.ZodString>;
150
156
  title: z.ZodOptional<z.ZodString>;
@@ -227,6 +233,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
227
233
  help: z.ZodOptional<z.ZodString>;
228
234
  labelTranslationKey: z.ZodOptional<z.ZodString>;
229
235
  }, z.core.$strip>;
236
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
230
237
  meta: z.ZodObject<{
231
238
  schemaVersion: z.ZodDefault<z.ZodString>;
232
239
  title: z.ZodOptional<z.ZodString>;
@@ -242,6 +249,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
242
249
  help: z.ZodOptional<z.ZodString>;
243
250
  labelTranslationKey: z.ZodOptional<z.ZodString>;
244
251
  }, z.core.$strip>;
252
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
245
253
  meta: z.ZodObject<{
246
254
  schemaVersion: z.ZodDefault<z.ZodString>;
247
255
  title: z.ZodOptional<z.ZodString>;
@@ -267,6 +275,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
267
275
  help: z.ZodOptional<z.ZodString>;
268
276
  }, z.core.$strip>;
269
277
  }, z.core.$strip>;
278
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
270
279
  attributes: z.ZodObject<{
271
280
  label: z.ZodOptional<z.ZodString>;
272
281
  help: z.ZodOptional<z.ZodString>;
@@ -284,6 +293,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
284
293
  label: z.ZodDefault<z.ZodString>;
285
294
  value: z.ZodDefault<z.ZodString>;
286
295
  }, z.core.$strip>>;
296
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
287
297
  attributes: z.ZodObject<{
288
298
  label: z.ZodOptional<z.ZodString>;
289
299
  help: z.ZodOptional<z.ZodString>;
@@ -390,6 +400,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
400
  help: z.ZodOptional<z.ZodString>;
391
401
  labelTranslationKey: z.ZodOptional<z.ZodString>;
392
402
  }, z.core.$strip>;
403
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
393
404
  meta: z.ZodObject<{
394
405
  schemaVersion: z.ZodDefault<z.ZodString>;
395
406
  title: z.ZodOptional<z.ZodString>;
@@ -408,6 +419,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
408
419
  label: z.ZodDefault<z.ZodString>;
409
420
  value: z.ZodDefault<z.ZodString>;
410
421
  }, z.core.$strip>>;
422
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
411
423
  attributes: z.ZodObject<{
412
424
  label: z.ZodOptional<z.ZodString>;
413
425
  help: z.ZodOptional<z.ZodString>;
@@ -431,6 +443,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
431
443
  label: z.ZodDefault<z.ZodString>;
432
444
  value: z.ZodDefault<z.ZodString>;
433
445
  }, z.core.$strip>>;
446
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
434
447
  attributes: z.ZodObject<{
435
448
  label: z.ZodOptional<z.ZodString>;
436
449
  help: z.ZodOptional<z.ZodString>;
@@ -457,6 +470,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
457
470
  help: z.ZodOptional<z.ZodString>;
458
471
  labelTranslationKey: z.ZodOptional<z.ZodString>;
459
472
  }, z.core.$strip>;
473
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
460
474
  meta: z.ZodObject<{
461
475
  schemaVersion: z.ZodDefault<z.ZodString>;
462
476
  title: z.ZodOptional<z.ZodString>;
@@ -484,6 +498,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
498
  help: z.ZodOptional<z.ZodString>;
485
499
  labelTranslationKey: z.ZodOptional<z.ZodString>;
486
500
  }, z.core.$strip>;
501
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
487
502
  meta: z.ZodObject<{
488
503
  schemaVersion: z.ZodDefault<z.ZodString>;
489
504
  title: z.ZodOptional<z.ZodString>;
@@ -623,33 +638,13 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
623
638
  enabled: z.ZodDefault<z.ZodBoolean>;
624
639
  content: z.ZodObject<{
625
640
  attributes: z.ZodObject<{
626
- maxLength: z.ZodDefault<z.ZodNumber>;
627
- minLength: z.ZodOptional<z.ZodNumber>;
628
- pattern: z.ZodOptional<z.ZodString>;
629
- labelTranslationKey: z.ZodOptional<z.ZodString>;
630
- label: z.ZodOptional<z.ZodString>;
631
- help: z.ZodOptional<z.ZodString>;
632
- }, z.core.$strip>;
633
- type: z.ZodLiteral<"text">;
634
- meta: z.ZodObject<{
635
- schemaVersion: z.ZodDefault<z.ZodString>;
636
- title: z.ZodOptional<z.ZodString>;
637
- usageDescription: z.ZodOptional<z.ZodString>;
638
- }, z.core.$strip>;
639
- }, z.core.$strip>;
640
- required: z.ZodDefault<z.ZodBoolean>;
641
- }, z.core.$strip>, z.ZodObject<{
642
- heading: z.ZodDefault<z.ZodString>;
643
- help: z.ZodDefault<z.ZodString>;
644
- enabled: z.ZodDefault<z.ZodBoolean>;
645
- content: z.ZodObject<{
646
- attributes: z.ZodObject<{
647
- maxLength: z.ZodDefault<z.ZodNumber>;
648
641
  minLength: z.ZodOptional<z.ZodNumber>;
649
642
  pattern: z.ZodOptional<z.ZodString>;
650
643
  labelTranslationKey: z.ZodOptional<z.ZodString>;
651
644
  label: z.ZodOptional<z.ZodString>;
652
645
  help: z.ZodOptional<z.ZodString>;
646
+ maxLength: z.ZodOptional<z.ZodNumber>;
647
+ defaultValue: z.ZodOptional<z.ZodString>;
653
648
  }, z.core.$strip>;
654
649
  type: z.ZodLiteral<"text">;
655
650
  meta: z.ZodObject<{
@@ -688,6 +683,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
688
683
  help: z.ZodOptional<z.ZodString>;
689
684
  labelTranslationKey: z.ZodOptional<z.ZodString>;
690
685
  }, z.core.$strip>;
686
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
691
687
  meta: z.ZodObject<{
692
688
  schemaVersion: z.ZodDefault<z.ZodString>;
693
689
  title: z.ZodOptional<z.ZodString>;
@@ -738,6 +734,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
738
734
  label: z.ZodString;
739
735
  value: z.ZodDefault<z.ZodBoolean>;
740
736
  }, z.core.$strip>;
737
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
741
738
  meta: z.ZodObject<{
742
739
  schemaVersion: z.ZodDefault<z.ZodString>;
743
740
  title: z.ZodOptional<z.ZodString>;
@@ -750,6 +747,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
750
747
  label: z.ZodDefault<z.ZodString>;
751
748
  value: z.ZodDefault<z.ZodString>;
752
749
  }, z.core.$strip>>;
750
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
753
751
  attributes: z.ZodObject<{
754
752
  label: z.ZodOptional<z.ZodString>;
755
753
  help: z.ZodOptional<z.ZodString>;
@@ -771,6 +769,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
771
769
  help: z.ZodOptional<z.ZodString>;
772
770
  labelTranslationKey: z.ZodOptional<z.ZodString>;
773
771
  }, z.core.$strip>;
772
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
774
773
  meta: z.ZodObject<{
775
774
  schemaVersion: z.ZodDefault<z.ZodString>;
776
775
  title: z.ZodOptional<z.ZodString>;
@@ -786,6 +785,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
786
785
  help: z.ZodOptional<z.ZodString>;
787
786
  labelTranslationKey: z.ZodOptional<z.ZodString>;
788
787
  }, z.core.$strip>;
788
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
789
789
  meta: z.ZodObject<{
790
790
  schemaVersion: z.ZodDefault<z.ZodString>;
791
791
  title: z.ZodOptional<z.ZodString>;
@@ -811,6 +811,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
811
811
  labelTranslationKey: z.ZodOptional<z.ZodString>;
812
812
  }, z.core.$strip>;
813
813
  }, z.core.$strip>;
814
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
814
815
  attributes: z.ZodObject<{
815
816
  label: z.ZodOptional<z.ZodString>;
816
817
  help: z.ZodOptional<z.ZodString>;
@@ -832,6 +833,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
832
833
  help: z.ZodOptional<z.ZodString>;
833
834
  labelTranslationKey: z.ZodOptional<z.ZodString>;
834
835
  }, z.core.$strip>;
836
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
835
837
  meta: z.ZodObject<{
836
838
  schemaVersion: z.ZodDefault<z.ZodString>;
837
839
  title: z.ZodOptional<z.ZodString>;
@@ -911,6 +913,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
911
913
  help: z.ZodOptional<z.ZodString>;
912
914
  labelTranslationKey: z.ZodOptional<z.ZodString>;
913
915
  }, z.core.$strip>;
916
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
914
917
  meta: z.ZodObject<{
915
918
  schemaVersion: z.ZodDefault<z.ZodString>;
916
919
  title: z.ZodOptional<z.ZodString>;
@@ -932,6 +935,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
932
935
  help: z.ZodOptional<z.ZodString>;
933
936
  labelTranslationKey: z.ZodOptional<z.ZodString>;
934
937
  }, z.core.$strip>;
938
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
935
939
  meta: z.ZodObject<{
936
940
  schemaVersion: z.ZodDefault<z.ZodString>;
937
941
  title: z.ZodOptional<z.ZodString>;
@@ -944,6 +948,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
944
948
  label: z.ZodDefault<z.ZodString>;
945
949
  value: z.ZodDefault<z.ZodString>;
946
950
  }, z.core.$strip>>;
951
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
947
952
  attributes: z.ZodObject<{
948
953
  label: z.ZodOptional<z.ZodString>;
949
954
  help: z.ZodOptional<z.ZodString>;
@@ -999,6 +1004,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
999
1004
  help: z.ZodOptional<z.ZodString>;
1000
1005
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1001
1006
  }, z.core.$strip>;
1007
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
1002
1008
  meta: z.ZodObject<{
1003
1009
  schemaVersion: z.ZodDefault<z.ZodString>;
1004
1010
  title: z.ZodOptional<z.ZodString>;
@@ -1047,6 +1053,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1047
1053
  help: z.ZodOptional<z.ZodString>;
1048
1054
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1049
1055
  }, z.core.$strip>;
1056
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
1050
1057
  meta: z.ZodObject<{
1051
1058
  schemaVersion: z.ZodDefault<z.ZodString>;
1052
1059
  title: z.ZodOptional<z.ZodString>;
@@ -1112,6 +1119,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1112
1119
  help: z.ZodOptional<z.ZodString>;
1113
1120
  labelTranslationKey: z.ZodOptional<z.ZodString>;
1114
1121
  }, z.core.$strip>;
1122
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
1115
1123
  meta: z.ZodObject<{
1116
1124
  schemaVersion: z.ZodDefault<z.ZodString>;
1117
1125
  title: z.ZodOptional<z.ZodString>;
@@ -10,6 +10,7 @@ export declare const CurrencyQuestionSchema: 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 DefaultCurrencyQuestion: {
32
33
  title?: string | undefined;
33
34
  usageDescription?: string | undefined;
34
35
  };
36
+ showCommentField?: boolean | undefined;
35
37
  };
36
38
  export declare const NumberQuestionSchema: z.ZodObject<{
37
39
  type: z.ZodLiteral<"number">;
@@ -43,6 +45,7 @@ export declare const NumberQuestionSchema: z.ZodObject<{
43
45
  help: z.ZodOptional<z.ZodString>;
44
46
  labelTranslationKey: z.ZodOptional<z.ZodString>;
45
47
  }, z.core.$strip>;
48
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
46
49
  meta: z.ZodObject<{
47
50
  schemaVersion: z.ZodDefault<z.ZodString>;
48
51
  title: z.ZodOptional<z.ZodString>;
@@ -64,6 +67,7 @@ export declare const DefaultNumberQuestion: {
64
67
  title?: string | undefined;
65
68
  usageDescription?: string | undefined;
66
69
  };
70
+ showCommentField?: boolean | undefined;
67
71
  };
68
72
  export declare const NumberRangeQuestionSchema: z.ZodObject<{
69
73
  type: z.ZodLiteral<"numberRange">;
@@ -85,6 +89,7 @@ export declare const NumberRangeQuestionSchema: z.ZodObject<{
85
89
  help: z.ZodOptional<z.ZodString>;
86
90
  }, z.core.$strip>;
87
91
  }, z.core.$strip>;
92
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
88
93
  attributes: z.ZodObject<{
89
94
  label: z.ZodOptional<z.ZodString>;
90
95
  help: z.ZodOptional<z.ZodString>;
@@ -126,6 +131,7 @@ export declare const DefaultNumberRangeQuestion: {
126
131
  title?: string | undefined;
127
132
  usageDescription?: string | undefined;
128
133
  };
134
+ showCommentField?: boolean | undefined;
129
135
  };
130
136
  export declare const NumberWithContextQuestionSchema: z.ZodObject<{
131
137
  type: z.ZodLiteral<"numberWithContext">;
@@ -143,6 +149,7 @@ export declare const NumberWithContextQuestionSchema: z.ZodObject<{
143
149
  help: z.ZodOptional<z.ZodString>;
144
150
  labelTranslationKey: z.ZodOptional<z.ZodString>;
145
151
  }, z.core.$strip>;
152
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
146
153
  meta: z.ZodObject<{
147
154
  schemaVersion: z.ZodDefault<z.ZodString>;
148
155
  title: z.ZodOptional<z.ZodString>;
@@ -170,6 +177,7 @@ export declare const DefaultNumberWithContextQuestion: {
170
177
  title?: string | undefined;
171
178
  usageDescription?: string | undefined;
172
179
  };
180
+ showCommentField?: boolean | undefined;
173
181
  };
174
182
  export type CurrencyQuestionType = z.infer<typeof CurrencyQuestionSchema>;
175
183
  export type NumberQuestionType = z.infer<typeof NumberQuestionSchema>;
@@ -6,13 +6,13 @@ const question_1 = require("./question");
6
6
  const NumberAttributesSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.BaseAttributesSchema.shape), { max: zod_1.z.number().optional(), min: zod_1.z.number().default(0), step: zod_1.z.number().default(1) // For floats, use a decimal with the level of precision: 0.01
7
7
  }));
8
8
  const DefaultNumberAttributes = NumberAttributesSchema.parse({});
9
- exports.CurrencyQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('currency'), attributes: zod_1.z.object(Object.assign(Object.assign({}, NumberAttributesSchema.shape), { denomination: zod_1.z.string().default('USD') })) }));
9
+ exports.CurrencyQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('currency'), attributes: zod_1.z.object(Object.assign(Object.assign({}, NumberAttributesSchema.shape), { denomination: zod_1.z.string().default('USD') })), showCommentField: zod_1.z.boolean().optional() }));
10
10
  exports.DefaultCurrencyQuestion = exports.CurrencyQuestionSchema.parse({
11
11
  type: 'currency',
12
12
  attributes: DefaultNumberAttributes,
13
13
  meta: question_1.DefaultMeta
14
14
  });
15
- exports.NumberQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('number'), attributes: NumberAttributesSchema }));
15
+ exports.NumberQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('number'), attributes: NumberAttributesSchema, showCommentField: zod_1.z.boolean().optional() }));
16
16
  exports.DefaultNumberQuestion = exports.NumberQuestionSchema.parse({
17
17
  type: 'number',
18
18
  attributes: DefaultNumberAttributes,
@@ -23,7 +23,7 @@ const NumberRangeEndColumnSchema = zod_1.z.object(Object.assign(Object.assign({}
23
23
  exports.NumberRangeQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('numberRange'), columns: zod_1.z.object({
24
24
  start: NumberRangeStartColumnSchema,
25
25
  end: NumberRangeEndColumnSchema
26
- }) }));
26
+ }), showCommentField: zod_1.z.boolean().optional() }));
27
27
  exports.DefaultNumberRangeQuestion = exports.NumberRangeQuestionSchema.parse({
28
28
  type: 'numberRange',
29
29
  attributes: question_1.BaseAttributesSchema.parse({}),
@@ -42,7 +42,7 @@ const NumberWithContextAttributesSchema = zod_1.z.object(Object.assign(Object.as
42
42
  selected: zod_1.z.boolean().default(false)
43
43
  })) }));
44
44
  const DefaultNumberWithContextAttributes = NumberWithContextAttributesSchema.parse(Object.assign(Object.assign({}, exports.DefaultNumberQuestion.attributes), { context: [] }));
45
- exports.NumberWithContextQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('numberWithContext'), attributes: NumberWithContextAttributesSchema }));
45
+ exports.NumberWithContextQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('numberWithContext'), attributes: NumberWithContextAttributesSchema, showCommentField: zod_1.z.boolean().optional() }));
46
46
  exports.DefaultNumberWithContextQuestion = exports.NumberWithContextQuestionSchema.parse({
47
47
  type: 'numberWithContext',
48
48
  attributes: DefaultNumberWithContextAttributes,
@@ -5,6 +5,7 @@ export declare const BooleanQuestionSchema: z.ZodObject<{
5
5
  label: z.ZodString;
6
6
  value: z.ZodDefault<z.ZodBoolean>;
7
7
  }, z.core.$strip>;
8
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
8
9
  meta: z.ZodObject<{
9
10
  schemaVersion: z.ZodDefault<z.ZodString>;
10
11
  title: z.ZodOptional<z.ZodString>;
@@ -22,6 +23,7 @@ export declare const DefaultBooleanQuestion: {
22
23
  title?: string | undefined;
23
24
  usageDescription?: string | undefined;
24
25
  };
26
+ showCommentField?: boolean | undefined;
25
27
  };
26
28
  export declare const CheckboxesQuestionSchema: z.ZodObject<{
27
29
  type: z.ZodLiteral<"checkBoxes">;
@@ -30,6 +32,7 @@ export declare const CheckboxesQuestionSchema: z.ZodObject<{
30
32
  label: z.ZodDefault<z.ZodString>;
31
33
  value: z.ZodDefault<z.ZodString>;
32
34
  }, z.core.$strip>>;
35
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
33
36
  attributes: z.ZodObject<{
34
37
  label: z.ZodOptional<z.ZodString>;
35
38
  help: z.ZodOptional<z.ZodString>;
@@ -58,6 +61,7 @@ export declare const DefaultCheckboxesQuestion: {
58
61
  title?: string | undefined;
59
62
  usageDescription?: string | undefined;
60
63
  };
64
+ showCommentField?: boolean | undefined;
61
65
  };
62
66
  export declare const RadioButtonsQuestionSchema: z.ZodObject<{
63
67
  type: z.ZodLiteral<"radioButtons">;
@@ -66,6 +70,7 @@ export declare const RadioButtonsQuestionSchema: z.ZodObject<{
66
70
  label: z.ZodDefault<z.ZodString>;
67
71
  value: z.ZodDefault<z.ZodString>;
68
72
  }, z.core.$strip>>;
73
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
69
74
  attributes: z.ZodObject<{
70
75
  label: z.ZodOptional<z.ZodString>;
71
76
  help: z.ZodOptional<z.ZodString>;
@@ -94,6 +99,7 @@ export declare const DefaultRadioButtonsQuestion: {
94
99
  title?: string | undefined;
95
100
  usageDescription?: string | undefined;
96
101
  };
102
+ showCommentField?: boolean | undefined;
97
103
  };
98
104
  export declare const SelectBoxQuestionSchema: z.ZodObject<{
99
105
  type: z.ZodLiteral<"selectBox">;
@@ -108,6 +114,7 @@ export declare const SelectBoxQuestionSchema: z.ZodObject<{
108
114
  help: z.ZodOptional<z.ZodString>;
109
115
  labelTranslationKey: z.ZodOptional<z.ZodString>;
110
116
  }, z.core.$strip>;
117
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
111
118
  meta: z.ZodObject<{
112
119
  schemaVersion: z.ZodDefault<z.ZodString>;
113
120
  title: z.ZodOptional<z.ZodString>;
@@ -132,6 +139,7 @@ export declare const DefaultSelectBoxQuestion: {
132
139
  title?: string | undefined;
133
140
  usageDescription?: string | undefined;
134
141
  };
142
+ showCommentField?: boolean | undefined;
135
143
  };
136
144
  export declare const MultiselectBoxQuestionSchema: z.ZodObject<{
137
145
  type: z.ZodLiteral<"multiselectBox">;
@@ -146,6 +154,7 @@ export declare const MultiselectBoxQuestionSchema: z.ZodObject<{
146
154
  help: z.ZodOptional<z.ZodString>;
147
155
  labelTranslationKey: z.ZodOptional<z.ZodString>;
148
156
  }, z.core.$strip>;
157
+ showCommentField: z.ZodOptional<z.ZodBoolean>;
149
158
  meta: z.ZodObject<{
150
159
  schemaVersion: z.ZodDefault<z.ZodString>;
151
160
  title: z.ZodOptional<z.ZodString>;
@@ -170,6 +179,7 @@ export declare const DefaultMultiselectBoxQuestion: {
170
179
  title?: string | undefined;
171
180
  usageDescription?: string | undefined;
172
181
  };
182
+ showCommentField?: boolean | undefined;
173
183
  };
174
184
  export type BooleanQuestionType = z.infer<typeof BooleanQuestionSchema>;
175
185
  export type CheckboxesQuestionType = z.infer<typeof CheckboxesQuestionSchema>;
@@ -20,7 +20,7 @@ const DefaultSelectBoxAttributes = selectBoxAttributes.parse({
20
20
  exports.BooleanQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('boolean'), attributes: zod_1.z.object({
21
21
  label: zod_1.z.string(),
22
22
  value: zod_1.z.boolean().default(false),
23
- }) }));
23
+ }), showCommentField: zod_1.z.boolean().optional() }));
24
24
  exports.DefaultBooleanQuestion = exports.BooleanQuestionSchema.parse({
25
25
  type: 'boolean',
26
26
  attributes: {
@@ -30,7 +30,7 @@ exports.DefaultBooleanQuestion = exports.BooleanQuestionSchema.parse({
30
30
  meta: question_1.DefaultMeta
31
31
  });
32
32
  // Check boxes question and answer
33
- exports.CheckboxesQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('checkBoxes'), options: zod_1.z.array(CheckedOptionSchema) }));
33
+ exports.CheckboxesQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('checkBoxes'), options: zod_1.z.array(CheckedOptionSchema), showCommentField: zod_1.z.boolean().optional() }));
34
34
  exports.DefaultCheckboxesQuestion = exports.CheckboxesQuestionSchema.parse({
35
35
  type: 'checkBoxes',
36
36
  attributes: CheckedOptionSchema,
@@ -38,7 +38,7 @@ exports.DefaultCheckboxesQuestion = exports.CheckboxesQuestionSchema.parse({
38
38
  options: [DefaultCheckedOption]
39
39
  });
40
40
  // Radio buttons question and answer
41
- exports.RadioButtonsQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('radioButtons'), options: zod_1.z.array(SelectedOptionSchema) }));
41
+ exports.RadioButtonsQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('radioButtons'), options: zod_1.z.array(SelectedOptionSchema), showCommentField: zod_1.z.boolean().optional() }));
42
42
  exports.DefaultRadioButtonsQuestion = exports.RadioButtonsQuestionSchema.parse({
43
43
  type: 'radioButtons',
44
44
  attributes: DefaultSelectBoxAttributes,
@@ -46,7 +46,7 @@ exports.DefaultRadioButtonsQuestion = exports.RadioButtonsQuestionSchema.parse({
46
46
  options: [DefaultSelectedOption]
47
47
  });
48
48
  // Select box question and answer
49
- exports.SelectBoxQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('selectBox'), options: zod_1.z.array(SelectedOptionSchema), attributes: selectBoxAttributes }));
49
+ exports.SelectBoxQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, question_1.QuestionSchema.shape), { type: zod_1.z.literal('selectBox'), options: zod_1.z.array(SelectedOptionSchema), attributes: selectBoxAttributes, showCommentField: zod_1.z.boolean().optional() }));
50
50
  exports.DefaultSelectBoxQuestion = exports.SelectBoxQuestionSchema.parse({
51
51
  type: 'selectBox',
52
52
  attributes: DefaultSelectBoxAttributes,
@@ -58,7 +58,7 @@ const DefaultMultiselectBoxAttributes = multiselectBoxAttributes.parse({
58
58
  multiple: true
59
59
  });
60
60
  // Multi-select box question and answer
61
- exports.MultiselectBoxQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.SelectBoxQuestionSchema.shape), { type: zod_1.z.literal('multiselectBox'), options: zod_1.z.array(SelectedOptionSchema), attributes: multiselectBoxAttributes }));
61
+ exports.MultiselectBoxQuestionSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.SelectBoxQuestionSchema.shape), { type: zod_1.z.literal('multiselectBox'), options: zod_1.z.array(SelectedOptionSchema), attributes: multiselectBoxAttributes, showCommentField: zod_1.z.boolean().optional() }));
62
62
  exports.DefaultMultiselectBoxQuestion = exports.MultiselectBoxQuestionSchema.parse({
63
63
  type: 'multiselectBox',
64
64
  attributes: DefaultMultiselectBoxAttributes,