@dmptool/types 1.1.2 → 1.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 (78) hide show
  1. package/README.md +119 -47
  2. package/dist/answers/__tests__/answers.spec.js +20 -28
  3. package/dist/answers/__tests__/usage.spec.d.ts +1 -0
  4. package/dist/answers/__tests__/usage.spec.js +175 -0
  5. package/dist/answers/answer.d.ts +12 -15
  6. package/dist/answers/answer.js +3 -4
  7. package/dist/answers/dateAnswers.d.ts +30 -30
  8. package/dist/answers/dateAnswers.js +6 -5
  9. package/dist/answers/graphQLAnswers.d.ts +25 -25
  10. package/dist/answers/graphQLAnswers.js +4 -4
  11. package/dist/answers/index.d.ts +860 -1088
  12. package/dist/answers/index.js +2 -2
  13. package/dist/answers/numberAnswers.d.ts +41 -41
  14. package/dist/answers/numberAnswers.js +8 -8
  15. package/dist/answers/optionBasedAnswers.d.ts +55 -55
  16. package/dist/answers/optionBasedAnswers.js +10 -10
  17. package/dist/answers/tableAnswers.d.ts +811 -1772
  18. package/dist/answers/tableAnswers.js +12 -8
  19. package/dist/answers/textAnswers.d.ts +44 -44
  20. package/dist/answers/textAnswers.js +8 -8
  21. package/dist/questions/__tests__/graphQLQuestions.spec.js +6 -4
  22. package/dist/questions/__tests__/optionBasedQuestions.spec.js +4 -12
  23. package/dist/questions/__tests__/usage.spec.d.ts +8 -0
  24. package/dist/questions/__tests__/usage.spec.js +312 -0
  25. package/dist/questions/dateQuestions.d.ts +90 -101
  26. package/dist/questions/dateQuestions.js +15 -34
  27. package/dist/questions/graphQLQuestions.d.ts +176 -182
  28. package/dist/questions/graphQLQuestions.js +44 -45
  29. package/dist/questions/index.d.ts +1791 -2170
  30. package/dist/questions/index.js +2 -2
  31. package/dist/questions/numberQuestions.d.ts +126 -142
  32. package/dist/questions/numberQuestions.js +11 -45
  33. package/dist/questions/optionBasedQuestions.d.ts +197 -225
  34. package/dist/questions/optionBasedQuestions.js +24 -88
  35. package/dist/questions/question.d.ts +24 -56
  36. package/dist/questions/question.js +78 -18
  37. package/dist/questions/tableQuestions.d.ts +2637 -2930
  38. package/dist/questions/tableQuestions.js +9 -21
  39. package/dist/questions/textQuestions.d.ts +125 -145
  40. package/dist/questions/textQuestions.js +16 -57
  41. package/dist/schemas/affiliationSearchAnswer.schema.json +9 -12
  42. package/dist/schemas/affiliationSearchQuestion.schema.json +57 -50
  43. package/dist/schemas/anyAnswer.schema.json +228 -237
  44. package/dist/schemas/anyQuestion.schema.json +349 -517
  45. package/dist/schemas/anyTableColumnAnswer.schema.json +93 -106
  46. package/dist/schemas/anyTableColumnQuestion.schema.json +259 -382
  47. package/dist/schemas/booleanAnswer.schema.json +8 -11
  48. package/dist/schemas/booleanQuestion.schema.json +9 -15
  49. package/dist/schemas/checkboxesAnswer.schema.json +13 -14
  50. package/dist/schemas/checkboxesQuestion.schema.json +18 -24
  51. package/dist/schemas/currencyAnswer.schema.json +8 -11
  52. package/dist/schemas/currencyQuestion.schema.json +13 -17
  53. package/dist/schemas/dateAnswer.schema.json +8 -11
  54. package/dist/schemas/dateQuestion.schema.json +9 -15
  55. package/dist/schemas/dateRangeAnswer.schema.json +16 -21
  56. package/dist/schemas/dateRangeQuestion.schema.json +40 -21
  57. package/dist/schemas/emailAnswer.schema.json +8 -11
  58. package/dist/schemas/emailQuestion.schema.json +11 -16
  59. package/dist/schemas/filteredSearchQuestion.schema.json +0 -3
  60. package/dist/schemas/multiselectBoxAnswer.schema.json +13 -14
  61. package/dist/schemas/multiselectBoxQuestion.schema.json +20 -25
  62. package/dist/schemas/numberAnswer.schema.json +8 -11
  63. package/dist/schemas/numberQuestion.schema.json +11 -16
  64. package/dist/schemas/numberRangeAnswer.schema.json +17 -22
  65. package/dist/schemas/numberRangeQuestion.schema.json +22 -21
  66. package/dist/schemas/radioButtonsAnswer.schema.json +8 -11
  67. package/dist/schemas/radioButtonsQuestion.schema.json +18 -24
  68. package/dist/schemas/selectBoxAnswer.schema.json +8 -11
  69. package/dist/schemas/selectBoxQuestion.schema.json +20 -25
  70. package/dist/schemas/tableAnswer.schema.json +337 -343
  71. package/dist/schemas/tableQuestion.schema.json +279 -416
  72. package/dist/schemas/textAnswer.schema.json +8 -11
  73. package/dist/schemas/textAreaAnswer.schema.json +8 -11
  74. package/dist/schemas/textAreaQuestion.schema.json +13 -17
  75. package/dist/schemas/textQuestion.schema.json +9 -15
  76. package/dist/schemas/urlAnswer.schema.json +8 -11
  77. package/dist/schemas/urlQuestion.schema.json +9 -15
  78. package/package.json +1 -1
@@ -1,54 +1,50 @@
1
1
  import { z } from "zod";
2
- export declare const BooleanQuestionSchema: z.ZodObject<{} & {
2
+ export declare const BooleanQuestionSchema: z.ZodObject<{
3
+ meta: z.ZodDefault<z.ZodObject<{
4
+ schemaVersion: z.ZodDefault<z.ZodString>;
5
+ title: z.ZodOptional<z.ZodString>;
6
+ usageDescription: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ schemaVersion: string;
9
+ title?: string | undefined;
10
+ usageDescription?: string | undefined;
11
+ }, {
12
+ schemaVersion?: string | undefined;
13
+ title?: string | undefined;
14
+ usageDescription?: string | undefined;
15
+ }>>;
16
+ } & {
3
17
  type: z.ZodLiteral<"boolean">;
4
- attributes: z.ZodOptional<z.ZodObject<{
18
+ attributes: z.ZodDefault<z.ZodObject<{
5
19
  label: z.ZodOptional<z.ZodString>;
6
20
  help: z.ZodOptional<z.ZodString>;
7
21
  labelTranslationKey: z.ZodOptional<z.ZodString>;
8
22
  } & {
9
- checked: z.ZodOptional<z.ZodBoolean>;
23
+ checked: z.ZodDefault<z.ZodBoolean>;
10
24
  }, "strip", z.ZodTypeAny, {
25
+ checked: boolean;
11
26
  label?: string | undefined;
12
27
  help?: string | undefined;
13
28
  labelTranslationKey?: string | undefined;
14
- checked?: boolean | undefined;
15
29
  }, {
16
30
  label?: string | undefined;
17
31
  help?: string | undefined;
18
32
  labelTranslationKey?: string | undefined;
19
33
  checked?: boolean | undefined;
20
34
  }>>;
21
- meta: z.ZodOptional<z.ZodObject<{
22
- schemaVersion: z.ZodLiteral<"1.0">;
23
- } & {
24
- title: z.ZodOptional<z.ZodLiteral<"Yes/No Field">>;
25
- usageDescription: z.ZodOptional<z.ZodLiteral<"For questions that require a simple Yes/No response.">>;
26
- defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
27
- }, "strip", z.ZodTypeAny, {
28
- schemaVersion: "1.0";
29
- title?: "Yes/No Field" | undefined;
30
- usageDescription?: "For questions that require a simple Yes/No response." | undefined;
31
- defaultJSON?: string | undefined;
32
- }, {
33
- schemaVersion: "1.0";
34
- title?: "Yes/No Field" | undefined;
35
- usageDescription?: "For questions that require a simple Yes/No response." | undefined;
36
- defaultJSON?: string | undefined;
37
- }>>;
38
35
  }, "strip", z.ZodTypeAny, {
39
36
  type: "boolean";
40
- attributes?: {
37
+ attributes: {
38
+ checked: boolean;
41
39
  label?: string | undefined;
42
40
  help?: string | undefined;
43
41
  labelTranslationKey?: string | undefined;
44
- checked?: boolean | undefined;
45
- } | undefined;
46
- meta?: {
47
- schemaVersion: "1.0";
48
- title?: "Yes/No Field" | undefined;
49
- usageDescription?: "For questions that require a simple Yes/No response." | undefined;
50
- defaultJSON?: string | undefined;
51
- } | undefined;
42
+ };
43
+ meta: {
44
+ schemaVersion: string;
45
+ title?: string | undefined;
46
+ usageDescription?: string | undefined;
47
+ };
52
48
  }, {
53
49
  type: "boolean";
54
50
  attributes?: {
@@ -58,197 +54,198 @@ export declare const BooleanQuestionSchema: z.ZodObject<{} & {
58
54
  checked?: boolean | undefined;
59
55
  } | undefined;
60
56
  meta?: {
61
- schemaVersion: "1.0";
62
- title?: "Yes/No Field" | undefined;
63
- usageDescription?: "For questions that require a simple Yes/No response." | undefined;
64
- defaultJSON?: string | undefined;
57
+ schemaVersion?: string | undefined;
58
+ title?: string | undefined;
59
+ usageDescription?: string | undefined;
65
60
  } | undefined;
66
61
  }>;
67
62
  export declare const CheckboxesQuestionSchema: z.ZodObject<{
68
- attributes: z.ZodOptional<z.ZodObject<{
69
- label: z.ZodOptional<z.ZodString>;
70
- help: z.ZodOptional<z.ZodString>;
71
- labelTranslationKey: z.ZodOptional<z.ZodString>;
63
+ meta: z.ZodDefault<z.ZodObject<{
64
+ schemaVersion: z.ZodDefault<z.ZodString>;
65
+ title: z.ZodOptional<z.ZodString>;
66
+ usageDescription: z.ZodOptional<z.ZodString>;
72
67
  }, "strip", z.ZodTypeAny, {
73
- label?: string | undefined;
74
- help?: string | undefined;
75
- labelTranslationKey?: string | undefined;
68
+ schemaVersion: string;
69
+ title?: string | undefined;
70
+ usageDescription?: string | undefined;
76
71
  }, {
77
- label?: string | undefined;
78
- help?: string | undefined;
79
- labelTranslationKey?: string | undefined;
72
+ schemaVersion?: string | undefined;
73
+ title?: string | undefined;
74
+ usageDescription?: string | undefined;
80
75
  }>>;
81
76
  } & {
82
77
  type: z.ZodLiteral<"checkBoxes">;
83
- options: z.ZodArray<z.ZodObject<{
84
- label: z.ZodString;
85
- value: z.ZodString;
78
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
79
+ label: z.ZodDefault<z.ZodString>;
80
+ value: z.ZodDefault<z.ZodString>;
86
81
  } & {
87
- checked: z.ZodOptional<z.ZodBoolean>;
82
+ checked: z.ZodDefault<z.ZodBoolean>;
88
83
  }, "strip", z.ZodTypeAny, {
89
84
  value: string;
90
85
  label: string;
91
- checked?: boolean | undefined;
86
+ checked: boolean;
92
87
  }, {
93
- value: string;
94
- label: string;
88
+ value?: string | undefined;
89
+ label?: string | undefined;
95
90
  checked?: boolean | undefined;
96
- }>, "many">;
97
- meta: z.ZodOptional<z.ZodObject<{
98
- schemaVersion: z.ZodLiteral<"1.0">;
99
- } & {
100
- title: z.ZodOptional<z.ZodLiteral<"Check Boxes">>;
101
- usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users can select multiple options.">>;
102
- defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
91
+ }>, "many">>;
92
+ attributes: z.ZodDefault<z.ZodObject<{
93
+ label: z.ZodOptional<z.ZodString>;
94
+ help: z.ZodOptional<z.ZodString>;
95
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
103
96
  }, "strip", z.ZodTypeAny, {
104
- schemaVersion: "1.0";
105
- title?: "Check Boxes" | undefined;
106
- usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
107
- defaultJSON?: string | undefined;
97
+ label?: string | undefined;
98
+ help?: string | undefined;
99
+ labelTranslationKey?: string | undefined;
108
100
  }, {
109
- schemaVersion: "1.0";
110
- title?: "Check Boxes" | undefined;
111
- usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
112
- defaultJSON?: string | undefined;
101
+ label?: string | undefined;
102
+ help?: string | undefined;
103
+ labelTranslationKey?: string | undefined;
113
104
  }>>;
114
105
  }, "strip", z.ZodTypeAny, {
115
106
  options: {
116
107
  value: string;
117
108
  label: string;
118
- checked?: boolean | undefined;
109
+ checked: boolean;
119
110
  }[];
120
111
  type: "checkBoxes";
121
- attributes?: {
112
+ attributes: {
122
113
  label?: string | undefined;
123
114
  help?: string | undefined;
124
115
  labelTranslationKey?: string | undefined;
125
- } | undefined;
126
- meta?: {
127
- schemaVersion: "1.0";
128
- title?: "Check Boxes" | undefined;
129
- usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
130
- defaultJSON?: string | undefined;
131
- } | undefined;
116
+ };
117
+ meta: {
118
+ schemaVersion: string;
119
+ title?: string | undefined;
120
+ usageDescription?: string | undefined;
121
+ };
132
122
  }, {
133
- options: {
134
- value: string;
135
- label: string;
136
- checked?: boolean | undefined;
137
- }[];
138
123
  type: "checkBoxes";
124
+ options?: {
125
+ value?: string | undefined;
126
+ label?: string | undefined;
127
+ checked?: boolean | undefined;
128
+ }[] | undefined;
139
129
  attributes?: {
140
130
  label?: string | undefined;
141
131
  help?: string | undefined;
142
132
  labelTranslationKey?: string | undefined;
143
133
  } | undefined;
144
134
  meta?: {
145
- schemaVersion: "1.0";
146
- title?: "Check Boxes" | undefined;
147
- usageDescription?: "For multiple choice questions where users can select multiple options." | undefined;
148
- defaultJSON?: string | undefined;
135
+ schemaVersion?: string | undefined;
136
+ title?: string | undefined;
137
+ usageDescription?: string | undefined;
149
138
  } | undefined;
150
139
  }>;
151
140
  export declare const RadioButtonsQuestionSchema: z.ZodObject<{
152
- attributes: z.ZodOptional<z.ZodObject<{
153
- label: z.ZodOptional<z.ZodString>;
154
- help: z.ZodOptional<z.ZodString>;
155
- labelTranslationKey: z.ZodOptional<z.ZodString>;
141
+ meta: z.ZodDefault<z.ZodObject<{
142
+ schemaVersion: z.ZodDefault<z.ZodString>;
143
+ title: z.ZodOptional<z.ZodString>;
144
+ usageDescription: z.ZodOptional<z.ZodString>;
156
145
  }, "strip", z.ZodTypeAny, {
157
- label?: string | undefined;
158
- help?: string | undefined;
159
- labelTranslationKey?: string | undefined;
146
+ schemaVersion: string;
147
+ title?: string | undefined;
148
+ usageDescription?: string | undefined;
160
149
  }, {
161
- label?: string | undefined;
162
- help?: string | undefined;
163
- labelTranslationKey?: string | undefined;
150
+ schemaVersion?: string | undefined;
151
+ title?: string | undefined;
152
+ usageDescription?: string | undefined;
164
153
  }>>;
165
154
  } & {
166
155
  type: z.ZodLiteral<"radioButtons">;
167
- options: z.ZodArray<z.ZodObject<{
168
- label: z.ZodString;
169
- value: z.ZodString;
156
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
157
+ label: z.ZodDefault<z.ZodString>;
158
+ value: z.ZodDefault<z.ZodString>;
170
159
  } & {
171
- selected: z.ZodOptional<z.ZodBoolean>;
160
+ selected: z.ZodDefault<z.ZodBoolean>;
172
161
  }, "strip", z.ZodTypeAny, {
173
162
  value: string;
174
163
  label: string;
175
- selected?: boolean | undefined;
164
+ selected: boolean;
176
165
  }, {
177
- value: string;
178
- label: string;
166
+ value?: string | undefined;
167
+ label?: string | undefined;
179
168
  selected?: boolean | undefined;
180
- }>, "many">;
181
- meta: z.ZodOptional<z.ZodObject<{
182
- schemaVersion: z.ZodLiteral<"1.0">;
183
- } & {
184
- title: z.ZodOptional<z.ZodLiteral<"Radio Buttons">>;
185
- usageDescription: z.ZodOptional<z.ZodLiteral<"For multiple choice questions where users select just one option.">>;
186
- defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
169
+ }>, "many">>;
170
+ attributes: z.ZodDefault<z.ZodObject<{
171
+ label: z.ZodOptional<z.ZodString>;
172
+ help: z.ZodOptional<z.ZodString>;
173
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
187
174
  }, "strip", z.ZodTypeAny, {
188
- schemaVersion: "1.0";
189
- title?: "Radio Buttons" | undefined;
190
- usageDescription?: "For multiple choice questions where users select just one option." | undefined;
191
- defaultJSON?: string | undefined;
175
+ label?: string | undefined;
176
+ help?: string | undefined;
177
+ labelTranslationKey?: string | undefined;
192
178
  }, {
193
- schemaVersion: "1.0";
194
- title?: "Radio Buttons" | undefined;
195
- usageDescription?: "For multiple choice questions where users select just one option." | undefined;
196
- defaultJSON?: string | undefined;
179
+ label?: string | undefined;
180
+ help?: string | undefined;
181
+ labelTranslationKey?: string | undefined;
197
182
  }>>;
198
183
  }, "strip", z.ZodTypeAny, {
199
184
  options: {
200
185
  value: string;
201
186
  label: string;
202
- selected?: boolean | undefined;
187
+ selected: boolean;
203
188
  }[];
204
189
  type: "radioButtons";
205
- attributes?: {
190
+ attributes: {
206
191
  label?: string | undefined;
207
192
  help?: string | undefined;
208
193
  labelTranslationKey?: string | undefined;
209
- } | undefined;
210
- meta?: {
211
- schemaVersion: "1.0";
212
- title?: "Radio Buttons" | undefined;
213
- usageDescription?: "For multiple choice questions where users select just one option." | undefined;
214
- defaultJSON?: string | undefined;
215
- } | undefined;
194
+ };
195
+ meta: {
196
+ schemaVersion: string;
197
+ title?: string | undefined;
198
+ usageDescription?: string | undefined;
199
+ };
216
200
  }, {
217
- options: {
218
- value: string;
219
- label: string;
220
- selected?: boolean | undefined;
221
- }[];
222
201
  type: "radioButtons";
202
+ options?: {
203
+ value?: string | undefined;
204
+ label?: string | undefined;
205
+ selected?: boolean | undefined;
206
+ }[] | undefined;
223
207
  attributes?: {
224
208
  label?: string | undefined;
225
209
  help?: string | undefined;
226
210
  labelTranslationKey?: string | undefined;
227
211
  } | undefined;
228
212
  meta?: {
229
- schemaVersion: "1.0";
230
- title?: "Radio Buttons" | undefined;
231
- usageDescription?: "For multiple choice questions where users select just one option." | undefined;
232
- defaultJSON?: string | undefined;
213
+ schemaVersion?: string | undefined;
214
+ title?: string | undefined;
215
+ usageDescription?: string | undefined;
233
216
  } | undefined;
234
217
  }>;
235
- export declare const SelectBoxQuestionSchema: z.ZodObject<{} & {
218
+ export declare const SelectBoxQuestionSchema: z.ZodObject<{
219
+ meta: z.ZodDefault<z.ZodObject<{
220
+ schemaVersion: z.ZodDefault<z.ZodString>;
221
+ title: z.ZodOptional<z.ZodString>;
222
+ usageDescription: z.ZodOptional<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ schemaVersion: string;
225
+ title?: string | undefined;
226
+ usageDescription?: string | undefined;
227
+ }, {
228
+ schemaVersion?: string | undefined;
229
+ title?: string | undefined;
230
+ usageDescription?: string | undefined;
231
+ }>>;
232
+ } & {
236
233
  type: z.ZodLiteral<"selectBox">;
237
- options: z.ZodArray<z.ZodObject<{
238
- label: z.ZodString;
239
- value: z.ZodString;
234
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
235
+ label: z.ZodDefault<z.ZodString>;
236
+ value: z.ZodDefault<z.ZodString>;
240
237
  } & {
241
- selected: z.ZodOptional<z.ZodBoolean>;
238
+ selected: z.ZodDefault<z.ZodBoolean>;
242
239
  }, "strip", z.ZodTypeAny, {
243
240
  value: string;
244
241
  label: string;
245
- selected?: boolean | undefined;
242
+ selected: boolean;
246
243
  }, {
247
- value: string;
248
- label: string;
244
+ value?: string | undefined;
245
+ label?: string | undefined;
249
246
  selected?: boolean | undefined;
250
- }>, "many">;
251
- attributes: z.ZodObject<{
247
+ }>, "many">>;
248
+ attributes: z.ZodDefault<z.ZodObject<{
252
249
  label: z.ZodOptional<z.ZodString>;
253
250
  help: z.ZodOptional<z.ZodString>;
254
251
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -264,29 +261,12 @@ export declare const SelectBoxQuestionSchema: z.ZodObject<{} & {
264
261
  label?: string | undefined;
265
262
  help?: string | undefined;
266
263
  labelTranslationKey?: string | undefined;
267
- }>;
268
- meta: z.ZodOptional<z.ZodObject<{
269
- schemaVersion: z.ZodLiteral<"1.0">;
270
- } & {
271
- title: z.ZodOptional<z.ZodLiteral<"Select Box">>;
272
- usageDescription: z.ZodOptional<z.ZodLiteral<"For questions where users select one option from a list.">>;
273
- defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
274
- }, "strip", z.ZodTypeAny, {
275
- schemaVersion: "1.0";
276
- title?: "Select Box" | undefined;
277
- usageDescription?: "For questions where users select one option from a list." | undefined;
278
- defaultJSON?: string | undefined;
279
- }, {
280
- schemaVersion: "1.0";
281
- title?: "Select Box" | undefined;
282
- usageDescription?: "For questions where users select one option from a list." | undefined;
283
- defaultJSON?: string | undefined;
284
264
  }>>;
285
265
  }, "strip", z.ZodTypeAny, {
286
266
  options: {
287
267
  value: string;
288
268
  label: string;
289
- selected?: boolean | undefined;
269
+ selected: boolean;
290
270
  }[];
291
271
  type: "selectBox";
292
272
  attributes: {
@@ -295,50 +275,61 @@ export declare const SelectBoxQuestionSchema: z.ZodObject<{} & {
295
275
  help?: string | undefined;
296
276
  labelTranslationKey?: string | undefined;
297
277
  };
298
- meta?: {
299
- schemaVersion: "1.0";
300
- title?: "Select Box" | undefined;
301
- usageDescription?: "For questions where users select one option from a list." | undefined;
302
- defaultJSON?: string | undefined;
303
- } | undefined;
278
+ meta: {
279
+ schemaVersion: string;
280
+ title?: string | undefined;
281
+ usageDescription?: string | undefined;
282
+ };
304
283
  }, {
305
- options: {
306
- value: string;
307
- label: string;
308
- selected?: boolean | undefined;
309
- }[];
310
284
  type: "selectBox";
311
- attributes: {
285
+ options?: {
286
+ value?: string | undefined;
287
+ label?: string | undefined;
288
+ selected?: boolean | undefined;
289
+ }[] | undefined;
290
+ attributes?: {
312
291
  multiple: false;
313
292
  label?: string | undefined;
314
293
  help?: string | undefined;
315
294
  labelTranslationKey?: string | undefined;
316
- };
295
+ } | undefined;
317
296
  meta?: {
318
- schemaVersion: "1.0";
319
- title?: "Select Box" | undefined;
320
- usageDescription?: "For questions where users select one option from a list." | undefined;
321
- defaultJSON?: string | undefined;
297
+ schemaVersion?: string | undefined;
298
+ title?: string | undefined;
299
+ usageDescription?: string | undefined;
322
300
  } | undefined;
323
301
  }>;
324
302
  export declare const MultiselectBoxQuestionSchema: z.ZodObject<{
325
- options: z.ZodArray<z.ZodObject<{
326
- label: z.ZodString;
327
- value: z.ZodString;
303
+ meta: z.ZodDefault<z.ZodObject<{
304
+ schemaVersion: z.ZodDefault<z.ZodString>;
305
+ title: z.ZodOptional<z.ZodString>;
306
+ usageDescription: z.ZodOptional<z.ZodString>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ schemaVersion: string;
309
+ title?: string | undefined;
310
+ usageDescription?: string | undefined;
311
+ }, {
312
+ schemaVersion?: string | undefined;
313
+ title?: string | undefined;
314
+ usageDescription?: string | undefined;
315
+ }>>;
316
+ } & {
317
+ type: z.ZodLiteral<"multiselectBox">;
318
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
319
+ label: z.ZodDefault<z.ZodString>;
320
+ value: z.ZodDefault<z.ZodString>;
328
321
  } & {
329
- selected: z.ZodOptional<z.ZodBoolean>;
322
+ selected: z.ZodDefault<z.ZodBoolean>;
330
323
  }, "strip", z.ZodTypeAny, {
331
324
  value: string;
332
325
  label: string;
333
- selected?: boolean | undefined;
326
+ selected: boolean;
334
327
  }, {
335
- value: string;
336
- label: string;
328
+ value?: string | undefined;
329
+ label?: string | undefined;
337
330
  selected?: boolean | undefined;
338
- }>, "many">;
339
- } & {
340
- type: z.ZodLiteral<"multiselectBox">;
341
- attributes: z.ZodObject<{
331
+ }>, "many">>;
332
+ attributes: z.ZodDefault<z.ZodObject<{
342
333
  label: z.ZodOptional<z.ZodString>;
343
334
  help: z.ZodOptional<z.ZodString>;
344
335
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -354,29 +345,12 @@ export declare const MultiselectBoxQuestionSchema: z.ZodObject<{
354
345
  label?: string | undefined;
355
346
  help?: string | undefined;
356
347
  labelTranslationKey?: string | undefined;
357
- }>;
358
- meta: z.ZodOptional<z.ZodObject<{
359
- schemaVersion: z.ZodLiteral<"1.0">;
360
- } & {
361
- title: z.ZodOptional<z.ZodLiteral<"Multi-select Box">>;
362
- usageDescription: z.ZodOptional<z.ZodLiteral<"For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses.">>;
363
- defaultJSON: z.ZodOptional<z.ZodLiteral<string>>;
364
- }, "strip", z.ZodTypeAny, {
365
- schemaVersion: "1.0";
366
- title?: "Multi-select Box" | undefined;
367
- usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
368
- defaultJSON?: string | undefined;
369
- }, {
370
- schemaVersion: "1.0";
371
- title?: "Multi-select Box" | undefined;
372
- usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
373
- defaultJSON?: string | undefined;
374
348
  }>>;
375
349
  }, "strip", z.ZodTypeAny, {
376
350
  options: {
377
351
  value: string;
378
352
  label: string;
379
- selected?: boolean | undefined;
353
+ selected: boolean;
380
354
  }[];
381
355
  type: "multiselectBox";
382
356
  attributes: {
@@ -385,30 +359,28 @@ export declare const MultiselectBoxQuestionSchema: z.ZodObject<{
385
359
  help?: string | undefined;
386
360
  labelTranslationKey?: string | undefined;
387
361
  };
388
- meta?: {
389
- schemaVersion: "1.0";
390
- title?: "Multi-select Box" | undefined;
391
- usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
392
- defaultJSON?: string | undefined;
393
- } | undefined;
362
+ meta: {
363
+ schemaVersion: string;
364
+ title?: string | undefined;
365
+ usageDescription?: string | undefined;
366
+ };
394
367
  }, {
395
- options: {
396
- value: string;
397
- label: string;
398
- selected?: boolean | undefined;
399
- }[];
400
368
  type: "multiselectBox";
401
- attributes: {
369
+ options?: {
370
+ value?: string | undefined;
371
+ label?: string | undefined;
372
+ selected?: boolean | undefined;
373
+ }[] | undefined;
374
+ attributes?: {
402
375
  multiple: true;
403
376
  label?: string | undefined;
404
377
  help?: string | undefined;
405
378
  labelTranslationKey?: string | undefined;
406
- };
379
+ } | undefined;
407
380
  meta?: {
408
- schemaVersion: "1.0";
409
- title?: "Multi-select Box" | undefined;
410
- usageDescription?: "For questions where multiple answers are valid. Allows users to select several options from a predefined list, providing flexibility in responses." | undefined;
411
- defaultJSON?: string | undefined;
381
+ schemaVersion?: string | undefined;
382
+ title?: string | undefined;
383
+ usageDescription?: string | undefined;
412
384
  } | undefined;
413
385
  }>;
414
386
  export type BooleanQuestionType = z.infer<typeof BooleanQuestionSchema>;