@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.
- package/README.md +119 -47
- package/dist/answers/__tests__/answers.spec.js +20 -28
- package/dist/answers/__tests__/usage.spec.d.ts +1 -0
- package/dist/answers/__tests__/usage.spec.js +175 -0
- package/dist/answers/answer.d.ts +12 -15
- package/dist/answers/answer.js +3 -4
- package/dist/answers/dateAnswers.d.ts +30 -30
- package/dist/answers/dateAnswers.js +6 -5
- package/dist/answers/graphQLAnswers.d.ts +25 -25
- package/dist/answers/graphQLAnswers.js +4 -4
- package/dist/answers/index.d.ts +860 -1088
- package/dist/answers/index.js +2 -2
- package/dist/answers/numberAnswers.d.ts +41 -41
- package/dist/answers/numberAnswers.js +8 -8
- package/dist/answers/optionBasedAnswers.d.ts +55 -55
- package/dist/answers/optionBasedAnswers.js +10 -10
- package/dist/answers/tableAnswers.d.ts +811 -1772
- package/dist/answers/tableAnswers.js +12 -8
- package/dist/answers/textAnswers.d.ts +44 -44
- package/dist/answers/textAnswers.js +8 -8
- package/dist/questions/__tests__/graphQLQuestions.spec.js +6 -4
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +4 -12
- package/dist/questions/__tests__/usage.spec.d.ts +8 -0
- package/dist/questions/__tests__/usage.spec.js +312 -0
- package/dist/questions/dateQuestions.d.ts +90 -101
- package/dist/questions/dateQuestions.js +15 -34
- package/dist/questions/graphQLQuestions.d.ts +176 -182
- package/dist/questions/graphQLQuestions.js +44 -45
- package/dist/questions/index.d.ts +1791 -2170
- package/dist/questions/index.js +2 -2
- package/dist/questions/numberQuestions.d.ts +126 -142
- package/dist/questions/numberQuestions.js +11 -45
- package/dist/questions/optionBasedQuestions.d.ts +197 -225
- package/dist/questions/optionBasedQuestions.js +24 -88
- package/dist/questions/question.d.ts +24 -56
- package/dist/questions/question.js +78 -18
- package/dist/questions/tableQuestions.d.ts +2637 -2930
- package/dist/questions/tableQuestions.js +9 -21
- package/dist/questions/textQuestions.d.ts +125 -145
- package/dist/questions/textQuestions.js +16 -57
- package/dist/schemas/affiliationSearchAnswer.schema.json +9 -12
- package/dist/schemas/affiliationSearchQuestion.schema.json +57 -50
- package/dist/schemas/anyAnswer.schema.json +228 -237
- package/dist/schemas/anyQuestion.schema.json +349 -517
- package/dist/schemas/anyTableColumnAnswer.schema.json +93 -106
- package/dist/schemas/anyTableColumnQuestion.schema.json +259 -382
- package/dist/schemas/booleanAnswer.schema.json +8 -11
- package/dist/schemas/booleanQuestion.schema.json +9 -15
- package/dist/schemas/checkboxesAnswer.schema.json +13 -14
- package/dist/schemas/checkboxesQuestion.schema.json +18 -24
- package/dist/schemas/currencyAnswer.schema.json +8 -11
- package/dist/schemas/currencyQuestion.schema.json +13 -17
- package/dist/schemas/dateAnswer.schema.json +8 -11
- package/dist/schemas/dateQuestion.schema.json +9 -15
- package/dist/schemas/dateRangeAnswer.schema.json +16 -21
- package/dist/schemas/dateRangeQuestion.schema.json +40 -21
- package/dist/schemas/emailAnswer.schema.json +8 -11
- package/dist/schemas/emailQuestion.schema.json +11 -16
- package/dist/schemas/filteredSearchQuestion.schema.json +0 -3
- package/dist/schemas/multiselectBoxAnswer.schema.json +13 -14
- package/dist/schemas/multiselectBoxQuestion.schema.json +20 -25
- package/dist/schemas/numberAnswer.schema.json +8 -11
- package/dist/schemas/numberQuestion.schema.json +11 -16
- package/dist/schemas/numberRangeAnswer.schema.json +17 -22
- package/dist/schemas/numberRangeQuestion.schema.json +22 -21
- package/dist/schemas/radioButtonsAnswer.schema.json +8 -11
- package/dist/schemas/radioButtonsQuestion.schema.json +18 -24
- package/dist/schemas/selectBoxAnswer.schema.json +8 -11
- package/dist/schemas/selectBoxQuestion.schema.json +20 -25
- package/dist/schemas/tableAnswer.schema.json +337 -343
- package/dist/schemas/tableQuestion.schema.json +279 -416
- package/dist/schemas/textAnswer.schema.json +8 -11
- package/dist/schemas/textAreaAnswer.schema.json +8 -11
- package/dist/schemas/textAreaQuestion.schema.json +13 -17
- package/dist/schemas/textQuestion.schema.json +9 -15
- package/dist/schemas/urlAnswer.schema.json +8 -11
- package/dist/schemas/urlQuestion.schema.json +9 -15
- 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.
|
|
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.
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
|
62
|
-
title?:
|
|
63
|
-
usageDescription?:
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
schemaVersion: string;
|
|
69
|
+
title?: string | undefined;
|
|
70
|
+
usageDescription?: string | undefined;
|
|
76
71
|
}, {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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.
|
|
82
|
+
checked: z.ZodDefault<z.ZodBoolean>;
|
|
88
83
|
}, "strip", z.ZodTypeAny, {
|
|
89
84
|
value: string;
|
|
90
85
|
label: string;
|
|
91
|
-
checked
|
|
86
|
+
checked: boolean;
|
|
92
87
|
}, {
|
|
93
|
-
value
|
|
94
|
-
label
|
|
88
|
+
value?: string | undefined;
|
|
89
|
+
label?: string | undefined;
|
|
95
90
|
checked?: boolean | undefined;
|
|
96
|
-
}>, "many"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
defaultJSON?: string | undefined;
|
|
97
|
+
label?: string | undefined;
|
|
98
|
+
help?: string | undefined;
|
|
99
|
+
labelTranslationKey?: string | undefined;
|
|
108
100
|
}, {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
|
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
|
-
}
|
|
126
|
-
meta
|
|
127
|
-
schemaVersion:
|
|
128
|
-
title?:
|
|
129
|
-
usageDescription?:
|
|
130
|
-
|
|
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
|
|
146
|
-
title?:
|
|
147
|
-
usageDescription?:
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
146
|
+
schemaVersion: string;
|
|
147
|
+
title?: string | undefined;
|
|
148
|
+
usageDescription?: string | undefined;
|
|
160
149
|
}, {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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.
|
|
160
|
+
selected: z.ZodDefault<z.ZodBoolean>;
|
|
172
161
|
}, "strip", z.ZodTypeAny, {
|
|
173
162
|
value: string;
|
|
174
163
|
label: string;
|
|
175
|
-
selected
|
|
164
|
+
selected: boolean;
|
|
176
165
|
}, {
|
|
177
|
-
value
|
|
178
|
-
label
|
|
166
|
+
value?: string | undefined;
|
|
167
|
+
label?: string | undefined;
|
|
179
168
|
selected?: boolean | undefined;
|
|
180
|
-
}>, "many"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
defaultJSON?: string | undefined;
|
|
175
|
+
label?: string | undefined;
|
|
176
|
+
help?: string | undefined;
|
|
177
|
+
labelTranslationKey?: string | undefined;
|
|
192
178
|
}, {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
|
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
|
-
}
|
|
210
|
-
meta
|
|
211
|
-
schemaVersion:
|
|
212
|
-
title?:
|
|
213
|
-
usageDescription?:
|
|
214
|
-
|
|
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
|
|
230
|
-
title?:
|
|
231
|
-
usageDescription?:
|
|
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.
|
|
238
|
+
selected: z.ZodDefault<z.ZodBoolean>;
|
|
242
239
|
}, "strip", z.ZodTypeAny, {
|
|
243
240
|
value: string;
|
|
244
241
|
label: string;
|
|
245
|
-
selected
|
|
242
|
+
selected: boolean;
|
|
246
243
|
}, {
|
|
247
|
-
value
|
|
248
|
-
label
|
|
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
|
|
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:
|
|
300
|
-
title?:
|
|
301
|
-
usageDescription?:
|
|
302
|
-
|
|
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
|
-
|
|
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
|
|
319
|
-
title?:
|
|
320
|
-
usageDescription?:
|
|
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
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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.
|
|
322
|
+
selected: z.ZodDefault<z.ZodBoolean>;
|
|
330
323
|
}, "strip", z.ZodTypeAny, {
|
|
331
324
|
value: string;
|
|
332
325
|
label: string;
|
|
333
|
-
selected
|
|
326
|
+
selected: boolean;
|
|
334
327
|
}, {
|
|
335
|
-
value
|
|
336
|
-
label
|
|
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
|
|
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:
|
|
390
|
-
title?:
|
|
391
|
-
usageDescription?:
|
|
392
|
-
|
|
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
|
-
|
|
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
|
|
409
|
-
title?:
|
|
410
|
-
usageDescription?:
|
|
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>;
|