@dmptool/types 3.1.1 → 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/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/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
|
@@ -183,7 +183,93 @@ export type CurrencyQuestionType = z.infer<typeof CurrencyQuestionSchema>;
|
|
|
183
183
|
export type NumberQuestionType = z.infer<typeof NumberQuestionSchema>;
|
|
184
184
|
export type NumberRangeQuestionType = z.infer<typeof NumberRangeQuestionSchema>;
|
|
185
185
|
export type NumberWithContextQuestionType = z.infer<typeof NumberWithContextQuestionSchema>;
|
|
186
|
-
export declare const CurrencyQuestionJSONSchema: z.core.
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
export declare const CurrencyQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
187
|
+
type: z.ZodLiteral<"currency">;
|
|
188
|
+
attributes: z.ZodObject<{
|
|
189
|
+
denomination: z.ZodDefault<z.ZodString>;
|
|
190
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
193
|
+
label: z.ZodOptional<z.ZodString>;
|
|
194
|
+
help: z.ZodOptional<z.ZodString>;
|
|
195
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
meta: z.ZodObject<{
|
|
199
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
200
|
+
title: z.ZodOptional<z.ZodString>;
|
|
201
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
}, z.core.$strip>>;
|
|
204
|
+
export declare const NumberQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
205
|
+
type: z.ZodLiteral<"number">;
|
|
206
|
+
attributes: z.ZodObject<{
|
|
207
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
209
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
210
|
+
label: z.ZodOptional<z.ZodString>;
|
|
211
|
+
help: z.ZodOptional<z.ZodString>;
|
|
212
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
meta: z.ZodObject<{
|
|
216
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
217
|
+
title: z.ZodOptional<z.ZodString>;
|
|
218
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
export declare const NumberRangeQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
222
|
+
type: z.ZodLiteral<"numberRange">;
|
|
223
|
+
columns: z.ZodObject<{
|
|
224
|
+
start: z.ZodObject<{
|
|
225
|
+
label: z.ZodDefault<z.ZodString>;
|
|
226
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
227
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
229
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
230
|
+
help: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
end: z.ZodObject<{
|
|
233
|
+
label: z.ZodDefault<z.ZodString>;
|
|
234
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
235
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
237
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
238
|
+
help: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
attributes: z.ZodObject<{
|
|
243
|
+
label: z.ZodOptional<z.ZodString>;
|
|
244
|
+
help: z.ZodOptional<z.ZodString>;
|
|
245
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
meta: z.ZodObject<{
|
|
248
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
249
|
+
title: z.ZodOptional<z.ZodString>;
|
|
250
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
export declare const NumberWithContextQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
254
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
255
|
+
attributes: z.ZodObject<{
|
|
256
|
+
context: z.ZodArray<z.ZodObject<{
|
|
257
|
+
label: z.ZodDefault<z.ZodString>;
|
|
258
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
259
|
+
value: z.ZodDefault<z.ZodString>;
|
|
260
|
+
selected: z.ZodDefault<z.ZodBoolean>;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
264
|
+
step: z.ZodDefault<z.ZodNumber>;
|
|
265
|
+
label: z.ZodOptional<z.ZodString>;
|
|
266
|
+
help: z.ZodOptional<z.ZodString>;
|
|
267
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
meta: z.ZodObject<{
|
|
271
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
272
|
+
title: z.ZodOptional<z.ZodString>;
|
|
273
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
}, z.core.$strip>>;
|
|
@@ -194,8 +194,98 @@ export type CheckboxesQuestionType = z.infer<typeof CheckboxesQuestionSchema>;
|
|
|
194
194
|
export type RadioButtonsQuestionType = z.infer<typeof RadioButtonsQuestionSchema>;
|
|
195
195
|
export type SelectBoxQuestionType = z.infer<typeof SelectBoxQuestionSchema>;
|
|
196
196
|
export type MultiselectBoxQuestionType = z.infer<typeof MultiselectBoxQuestionSchema>;
|
|
197
|
-
export declare const BooleanQuestionJSONSchema: z.core.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
197
|
+
export declare const BooleanQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
198
|
+
type: z.ZodLiteral<"boolean">;
|
|
199
|
+
attributes: z.ZodObject<{
|
|
200
|
+
label: z.ZodString;
|
|
201
|
+
value: z.ZodDefault<z.ZodBoolean>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
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 CheckboxesQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
211
|
+
type: z.ZodLiteral<"checkBoxes">;
|
|
212
|
+
options: z.ZodArray<z.ZodObject<{
|
|
213
|
+
label: z.ZodDefault<z.ZodString>;
|
|
214
|
+
value: z.ZodDefault<z.ZodString>;
|
|
215
|
+
description: z.ZodOptional<z.ZodString>;
|
|
216
|
+
selected: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
217
|
+
}, z.core.$strip>>;
|
|
218
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
attributes: z.ZodObject<{
|
|
220
|
+
label: z.ZodOptional<z.ZodString>;
|
|
221
|
+
help: z.ZodOptional<z.ZodString>;
|
|
222
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
meta: z.ZodObject<{
|
|
225
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
226
|
+
title: z.ZodOptional<z.ZodString>;
|
|
227
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
export declare const RadioButtonsQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
231
|
+
type: z.ZodLiteral<"radioButtons">;
|
|
232
|
+
options: z.ZodArray<z.ZodObject<{
|
|
233
|
+
label: z.ZodDefault<z.ZodString>;
|
|
234
|
+
value: z.ZodDefault<z.ZodString>;
|
|
235
|
+
description: z.ZodOptional<z.ZodString>;
|
|
236
|
+
selected: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
attributes: z.ZodObject<{
|
|
240
|
+
label: z.ZodOptional<z.ZodString>;
|
|
241
|
+
help: z.ZodOptional<z.ZodString>;
|
|
242
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
meta: z.ZodObject<{
|
|
245
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
246
|
+
title: z.ZodOptional<z.ZodString>;
|
|
247
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
export declare const SelectBoxQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
251
|
+
type: z.ZodLiteral<"selectBox">;
|
|
252
|
+
options: z.ZodArray<z.ZodObject<{
|
|
253
|
+
label: z.ZodDefault<z.ZodString>;
|
|
254
|
+
value: z.ZodDefault<z.ZodString>;
|
|
255
|
+
description: z.ZodOptional<z.ZodString>;
|
|
256
|
+
selected: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
attributes: z.ZodObject<{
|
|
259
|
+
multiple: z.ZodLiteral<false>;
|
|
260
|
+
label: z.ZodOptional<z.ZodString>;
|
|
261
|
+
help: z.ZodOptional<z.ZodString>;
|
|
262
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
265
|
+
meta: z.ZodObject<{
|
|
266
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
267
|
+
title: z.ZodOptional<z.ZodString>;
|
|
268
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
export declare const MultiselectBoxQuestionJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
272
|
+
type: z.ZodLiteral<"multiselectBox">;
|
|
273
|
+
options: z.ZodArray<z.ZodObject<{
|
|
274
|
+
label: z.ZodDefault<z.ZodString>;
|
|
275
|
+
value: z.ZodDefault<z.ZodString>;
|
|
276
|
+
description: z.ZodOptional<z.ZodString>;
|
|
277
|
+
selected: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
attributes: z.ZodObject<{
|
|
280
|
+
multiple: z.ZodLiteral<true>;
|
|
281
|
+
label: z.ZodOptional<z.ZodString>;
|
|
282
|
+
help: z.ZodOptional<z.ZodString>;
|
|
283
|
+
labelTranslationKey: z.ZodOptional<z.ZodString>;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
showCommentField: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
meta: z.ZodObject<{
|
|
287
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
288
|
+
title: z.ZodOptional<z.ZodString>;
|
|
289
|
+
usageDescription: z.ZodOptional<z.ZodString>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
}, z.core.$strip>>;
|