@dmptool/types 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/answers/answer.d.ts +29 -1
- package/dist/answers/dateAnswers.d.ts +19 -2
- package/dist/answers/graphQLAnswers.d.ts +44 -4
- package/dist/answers/index.d.ts +401 -1
- package/dist/answers/numberAnswers.d.ts +38 -4
- package/dist/answers/optionBasedAnswers.d.ts +40 -5
- package/dist/answers/tableAnswers.d.ts +645 -5
- package/dist/answers/textAnswers.d.ts +32 -4
- package/dist/dmp/index.d.ts +505 -1
- package/dist/dmp/index.js +2 -4
- package/dist/questions/dateQuestions.d.ts +49 -2
- package/dist/questions/graphQLQuestions.d.ts +132 -4
- package/dist/questions/index.d.ts +1143 -1
- package/dist/questions/numberQuestions.d.ts +90 -4
- package/dist/questions/optionBasedQuestions.d.ts +95 -5
- package/dist/questions/tableQuestions.d.ts +1116 -3
- package/dist/questions/textQuestions.d.ts +74 -4
- package/dist/schemas/researchOutputTableAnswer.schema.json +8 -4724
- package/package.json +14 -11
- package/schemas/researchOutputTableAnswer.schema.json +8 -4724
|
@@ -151,7 +151,77 @@ export type EmailQuestionType = z.infer<typeof EmailQuestionSchema>;
|
|
|
151
151
|
export type TextAreaQuestionType = z.infer<typeof TextAreaQuestionSchema>;
|
|
152
152
|
export type TextQuestionType = z.infer<typeof TextQuestionSchema>;
|
|
153
153
|
export type URLQuestionType = z.infer<typeof URLQuestionSchema>;
|
|
154
|
-
export declare const EmailQuestionJSONSchema: z.core.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
export declare const EmailQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
155
|
+
type: z.ZodLiteral<"email">;
|
|
156
|
+
attributes: z.ZodObject<{
|
|
157
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
158
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
159
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
161
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
162
|
+
label: z.ZodOptional<z.ZodString>;
|
|
163
|
+
help: z.ZodOptional<z.ZodString>;
|
|
164
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
meta: z.ZodObject<{
|
|
168
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
169
|
+
title: z.ZodOptional<z.ZodString>;
|
|
170
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
export declare const TextAreaQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"textArea">;
|
|
175
|
+
attributes: z.ZodObject<{
|
|
176
|
+
cols: z.ZodDefault<z.ZodNumber>;
|
|
177
|
+
rows: z.ZodDefault<z.ZodNumber>;
|
|
178
|
+
asRichText: z.ZodDefault<z.ZodBoolean>;
|
|
179
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
180
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
182
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
183
|
+
label: z.ZodOptional<z.ZodString>;
|
|
184
|
+
help: z.ZodOptional<z.ZodString>;
|
|
185
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
meta: z.ZodObject<{
|
|
188
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
189
|
+
title: z.ZodOptional<z.ZodString>;
|
|
190
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
export declare const TextQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
194
|
+
type: z.ZodLiteral<"text">;
|
|
195
|
+
attributes: z.ZodObject<{
|
|
196
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
197
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
199
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
200
|
+
label: z.ZodOptional<z.ZodString>;
|
|
201
|
+
help: z.ZodOptional<z.ZodString>;
|
|
202
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
meta: z.ZodObject<{
|
|
205
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
206
|
+
title: z.ZodOptional<z.ZodString>;
|
|
207
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
export declare const URLQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
211
|
+
type: z.ZodLiteral<"url">;
|
|
212
|
+
attributes: z.ZodObject<{
|
|
213
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
214
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
216
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
217
|
+
label: z.ZodOptional<z.ZodString>;
|
|
218
|
+
help: z.ZodOptional<z.ZodString>;
|
|
219
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
meta: z.ZodObject<{
|
|
223
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
224
|
+
title: z.ZodOptional<z.ZodString>;
|
|
225
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
}, z.core.$strip>>;
|