@dmptool/types 2.1.0 → 2.2.1

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 (122) 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/extension.d.ts +111 -0
  13. package/dist/dmp/index.js +48 -2
  14. package/dist/questions/__tests__/defaults.spec.js +12 -12
  15. package/dist/questions/__tests__/optionBasedQuestions.spec.js +25 -16
  16. package/dist/questions/dateQuestions.d.ts +4 -0
  17. package/dist/questions/dateQuestions.js +2 -2
  18. package/dist/questions/index.d.ts +38 -7
  19. package/dist/questions/numberQuestions.d.ts +8 -0
  20. package/dist/questions/numberQuestions.js +4 -4
  21. package/dist/questions/optionBasedQuestions.d.ts +18 -6
  22. package/dist/questions/optionBasedQuestions.js +23 -10
  23. package/dist/questions/tableQuestions.d.ts +94 -16
  24. package/dist/questions/tableQuestions.js +9 -9
  25. package/dist/questions/textQuestions.d.ts +4 -0
  26. package/dist/questions/textQuestions.js +2 -2
  27. package/dist/schemas/affiliationSearchAnswer.schema.json +3 -0
  28. package/dist/schemas/anyAnswer.schema.json +111 -0
  29. package/dist/schemas/anyQuestion.schema.json +114 -35
  30. package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
  31. package/dist/schemas/anyTableColumnQuestion.schema.json +42 -10
  32. package/dist/schemas/booleanAnswer.schema.json +3 -0
  33. package/dist/schemas/booleanQuestion.schema.json +3 -0
  34. package/dist/schemas/checkboxesAnswer.schema.json +3 -0
  35. package/dist/schemas/checkboxesQuestion.schema.json +6 -0
  36. package/dist/schemas/currencyAnswer.schema.json +3 -0
  37. package/dist/schemas/currencyQuestion.schema.json +3 -0
  38. package/dist/schemas/dateAnswer.schema.json +3 -0
  39. package/dist/schemas/dateQuestion.schema.json +3 -0
  40. package/dist/schemas/dateRangeAnswer.schema.json +3 -0
  41. package/dist/schemas/dateRangeQuestion.schema.json +3 -0
  42. package/dist/schemas/dmpExtension.schema.json +111 -0
  43. package/dist/schemas/emailAnswer.schema.json +3 -0
  44. package/dist/schemas/emailQuestion.schema.json +3 -0
  45. package/dist/schemas/licenseSearchAnswer.schema.json +3 -0
  46. package/dist/schemas/metadataStandardSearchAnswer.schema.json +3 -0
  47. package/dist/schemas/multiselectBoxAnswer.schema.json +3 -0
  48. package/dist/schemas/multiselectBoxQuestion.schema.json +6 -5
  49. package/dist/schemas/numberAnswer.schema.json +3 -0
  50. package/dist/schemas/numberQuestion.schema.json +3 -0
  51. package/dist/schemas/numberRangeAnswer.schema.json +3 -0
  52. package/dist/schemas/numberRangeQuestion.schema.json +3 -0
  53. package/dist/schemas/numberWithContextAnswer.schema.json +3 -0
  54. package/dist/schemas/numberWithContextQuestion.schema.json +3 -0
  55. package/dist/schemas/radioButtonsAnswer.schema.json +3 -0
  56. package/dist/schemas/radioButtonsQuestion.schema.json +6 -5
  57. package/dist/schemas/repositorySearchAnswer.schema.json +3 -0
  58. package/dist/schemas/researchOutputTableAnswer.schema.json +3344 -9
  59. package/dist/schemas/selectBoxAnswer.schema.json +3 -0
  60. package/dist/schemas/selectBoxQuestion.schema.json +6 -5
  61. package/dist/schemas/tableAnswer.schema.json +57 -0
  62. package/dist/schemas/tableQuestion.schema.json +42 -10
  63. package/dist/schemas/textAnswer.schema.json +3 -0
  64. package/dist/schemas/textAreaAnswer.schema.json +3 -0
  65. package/dist/schemas/urlAnswer.schema.json +3 -0
  66. package/dist/schemas/urlQuestion.schema.json +3 -0
  67. package/package.json +9 -4
  68. package/schemas/.placeholder +0 -0
  69. package/schemas/affiliationSearchAnswer.schema.json +50 -0
  70. package/schemas/affiliationSearchQuestion.schema.json +142 -0
  71. package/schemas/anyAnswer.schema.json +1537 -0
  72. package/schemas/anyQuestion.schema.json +4823 -0
  73. package/schemas/anyTableColumnAnswer.schema.json +741 -0
  74. package/schemas/anyTableColumnQuestion.schema.json +1559 -0
  75. package/schemas/booleanAnswer.schema.json +36 -0
  76. package/schemas/booleanQuestion.schema.json +55 -0
  77. package/schemas/checkboxesAnswer.schema.json +41 -0
  78. package/schemas/checkboxesQuestion.schema.json +83 -0
  79. package/schemas/currencyAnswer.schema.json +36 -0
  80. package/schemas/currencyQuestion.schema.json +73 -0
  81. package/schemas/dateAnswer.schema.json +36 -0
  82. package/schemas/datePickerAnswer.schema.json +37 -0
  83. package/schemas/datePickerQuestion.schema.json +52 -0
  84. package/schemas/dateQuestion.schema.json +66 -0
  85. package/schemas/dateRangeAnswer.schema.json +50 -0
  86. package/schemas/dateRangeQuestion.schema.json +124 -0
  87. package/schemas/dmp.schema.json +2070 -0
  88. package/schemas/dmpExtension.schema.json +1985 -0
  89. package/schemas/emailAnswer.schema.json +36 -0
  90. package/schemas/emailQuestion.schema.json +71 -0
  91. package/schemas/filteredSearchAnswer.schema.json +40 -0
  92. package/schemas/filteredSearchQuestion.schema.json +130 -0
  93. package/schemas/licenseSearchAnswer.schema.json +54 -0
  94. package/schemas/licenseSearchQuestion.schema.json +140 -0
  95. package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  96. package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  97. package/schemas/multiselectBoxAnswer.schema.json +41 -0
  98. package/schemas/multiselectBoxQuestion.schema.json +85 -0
  99. package/schemas/numberAnswer.schema.json +36 -0
  100. package/schemas/numberQuestion.schema.json +68 -0
  101. package/schemas/numberRangeAnswer.schema.json +50 -0
  102. package/schemas/numberRangeQuestion.schema.json +128 -0
  103. package/schemas/numberWithContextAnswer.schema.json +50 -0
  104. package/schemas/numberWithContextQuestion.schema.json +98 -0
  105. package/schemas/radioButtonsAnswer.schema.json +36 -0
  106. package/schemas/radioButtonsQuestion.schema.json +78 -0
  107. package/schemas/repositorySearchAnswer.schema.json +54 -0
  108. package/schemas/repositorySearchQuestion.schema.json +140 -0
  109. package/schemas/researchOutputTableAnswer.schema.json +20065 -0
  110. package/schemas/researchOutputTableQuestion.schema.json +140 -0
  111. package/schemas/selectBoxAnswer.schema.json +36 -0
  112. package/schemas/selectBoxQuestion.schema.json +85 -0
  113. package/schemas/tableAnswer.schema.json +797 -0
  114. package/schemas/tableQuestion.schema.json +1661 -0
  115. package/schemas/textAnswer.schema.json +36 -0
  116. package/schemas/textAreaAnswer.schema.json +36 -0
  117. package/schemas/textAreaQuestion.schema.json +78 -0
  118. package/schemas/textQuestion.schema.json +63 -0
  119. package/schemas/typeaheadSearchAnswer.schema.json +37 -0
  120. package/schemas/typeaheadSearchQuestion.schema.json +120 -0
  121. package/schemas/urlAnswer.schema.json +36 -0
  122. package/schemas/urlQuestion.schema.json +66 -0
@@ -25,6 +25,7 @@ export declare const DefaultNarrative: {
25
25
  meta: {
26
26
  schemaVersion: string;
27
27
  };
28
+ comment?: string | undefined;
28
29
  } | {
29
30
  type: "dateRange";
30
31
  answer: {
@@ -34,6 +35,7 @@ export declare const DefaultNarrative: {
34
35
  meta: {
35
36
  schemaVersion: string;
36
37
  };
38
+ comment?: string | undefined;
37
39
  } | {
38
40
  type: "affiliationSearch";
39
41
  answer: {
@@ -43,6 +45,7 @@ export declare const DefaultNarrative: {
43
45
  meta: {
44
46
  schemaVersion: string;
45
47
  };
48
+ comment?: string | undefined;
46
49
  } | {
47
50
  type: "licenseSearch";
48
51
  answer: {
@@ -52,6 +55,7 @@ export declare const DefaultNarrative: {
52
55
  meta: {
53
56
  schemaVersion: string;
54
57
  };
58
+ comment?: string | undefined;
55
59
  } | {
56
60
  type: "metadataStandardSearch";
57
61
  answer: {
@@ -61,6 +65,7 @@ export declare const DefaultNarrative: {
61
65
  meta: {
62
66
  schemaVersion: string;
63
67
  };
68
+ comment?: string | undefined;
64
69
  } | {
65
70
  type: "repositorySearch";
66
71
  answer: {
@@ -70,48 +75,56 @@ export declare const DefaultNarrative: {
70
75
  meta: {
71
76
  schemaVersion: string;
72
77
  };
78
+ comment?: string | undefined;
73
79
  } | {
74
80
  type: "boolean";
75
81
  answer: boolean;
76
82
  meta: {
77
83
  schemaVersion: string;
78
84
  };
85
+ comment?: string | undefined;
79
86
  } | {
80
87
  type: "checkBoxes";
81
88
  answer: string[];
82
89
  meta: {
83
90
  schemaVersion: string;
84
91
  };
92
+ comment?: string | undefined;
85
93
  } | {
86
94
  type: "radioButtons";
87
95
  answer: string;
88
96
  meta: {
89
97
  schemaVersion: string;
90
98
  };
99
+ comment?: string | undefined;
91
100
  } | {
92
101
  type: "selectBox";
93
102
  answer: string;
94
103
  meta: {
95
104
  schemaVersion: string;
96
105
  };
106
+ comment?: string | undefined;
97
107
  } | {
98
108
  type: "multiselectBox";
99
109
  answer: string[];
100
110
  meta: {
101
111
  schemaVersion: string;
102
112
  };
113
+ comment?: string | undefined;
103
114
  } | {
104
115
  type: "currency";
105
116
  answer: number;
106
117
  meta: {
107
118
  schemaVersion: string;
108
119
  };
120
+ comment?: string | undefined;
109
121
  } | {
110
122
  type: "number";
111
123
  answer: number;
112
124
  meta: {
113
125
  schemaVersion: string;
114
126
  };
127
+ comment?: string | undefined;
115
128
  } | {
116
129
  type: "numberRange";
117
130
  answer: {
@@ -121,30 +134,35 @@ export declare const DefaultNarrative: {
121
134
  meta: {
122
135
  schemaVersion: string;
123
136
  };
137
+ comment?: string | undefined;
124
138
  } | {
125
139
  type: "email";
126
140
  answer: string;
127
141
  meta: {
128
142
  schemaVersion: string;
129
143
  };
144
+ comment?: string | undefined;
130
145
  } | {
131
146
  type: "text";
132
147
  answer: string;
133
148
  meta: {
134
149
  schemaVersion: string;
135
150
  };
151
+ comment?: string | undefined;
136
152
  } | {
137
153
  type: "textArea";
138
154
  answer: string;
139
155
  meta: {
140
156
  schemaVersion: string;
141
157
  };
158
+ comment?: string | undefined;
142
159
  } | {
143
160
  type: "url";
144
161
  answer: string;
145
162
  meta: {
146
163
  schemaVersion: string;
147
164
  };
165
+ comment?: string | undefined;
148
166
  } | {
149
167
  type: "table";
150
168
  columnHeadings: string[];
@@ -155,6 +173,7 @@ export declare const DefaultNarrative: {
155
173
  meta: {
156
174
  schemaVersion: string;
157
175
  };
176
+ comment?: string | undefined;
158
177
  } | {
159
178
  type: "dateRange";
160
179
  answer: {
@@ -164,6 +183,7 @@ export declare const DefaultNarrative: {
164
183
  meta: {
165
184
  schemaVersion: string;
166
185
  };
186
+ comment?: string | undefined;
167
187
  } | {
168
188
  type: "affiliationSearch";
169
189
  answer: {
@@ -173,6 +193,7 @@ export declare const DefaultNarrative: {
173
193
  meta: {
174
194
  schemaVersion: string;
175
195
  };
196
+ comment?: string | undefined;
176
197
  } | {
177
198
  type: "licenseSearch";
178
199
  answer: {
@@ -182,6 +203,7 @@ export declare const DefaultNarrative: {
182
203
  meta: {
183
204
  schemaVersion: string;
184
205
  };
206
+ comment?: string | undefined;
185
207
  } | {
186
208
  type: "metadataStandardSearch";
187
209
  answer: {
@@ -191,6 +213,7 @@ export declare const DefaultNarrative: {
191
213
  meta: {
192
214
  schemaVersion: string;
193
215
  };
216
+ comment?: string | undefined;
194
217
  } | {
195
218
  type: "repositorySearch";
196
219
  answer: {
@@ -200,48 +223,56 @@ export declare const DefaultNarrative: {
200
223
  meta: {
201
224
  schemaVersion: string;
202
225
  };
226
+ comment?: string | undefined;
203
227
  } | {
204
228
  type: "boolean";
205
229
  answer: boolean;
206
230
  meta: {
207
231
  schemaVersion: string;
208
232
  };
233
+ comment?: string | undefined;
209
234
  } | {
210
235
  type: "checkBoxes";
211
236
  answer: string[];
212
237
  meta: {
213
238
  schemaVersion: string;
214
239
  };
240
+ comment?: string | undefined;
215
241
  } | {
216
242
  type: "radioButtons";
217
243
  answer: string;
218
244
  meta: {
219
245
  schemaVersion: string;
220
246
  };
247
+ comment?: string | undefined;
221
248
  } | {
222
249
  type: "selectBox";
223
250
  answer: string;
224
251
  meta: {
225
252
  schemaVersion: string;
226
253
  };
254
+ comment?: string | undefined;
227
255
  } | {
228
256
  type: "multiselectBox";
229
257
  answer: string[];
230
258
  meta: {
231
259
  schemaVersion: string;
232
260
  };
261
+ comment?: string | undefined;
233
262
  } | {
234
263
  type: "currency";
235
264
  answer: number;
236
265
  meta: {
237
266
  schemaVersion: string;
238
267
  };
268
+ comment?: string | undefined;
239
269
  } | {
240
270
  type: "number";
241
271
  answer: number;
242
272
  meta: {
243
273
  schemaVersion: string;
244
274
  };
275
+ comment?: string | undefined;
245
276
  } | {
246
277
  type: "numberWithContext";
247
278
  answer: {
@@ -251,35 +282,41 @@ export declare const DefaultNarrative: {
251
282
  meta: {
252
283
  schemaVersion: string;
253
284
  };
285
+ comment?: string | undefined;
254
286
  } | {
255
287
  type: "email";
256
288
  answer: string;
257
289
  meta: {
258
290
  schemaVersion: string;
259
291
  };
292
+ comment?: string | undefined;
260
293
  } | {
261
294
  type: "text";
262
295
  answer: string;
263
296
  meta: {
264
297
  schemaVersion: string;
265
298
  };
299
+ comment?: string | undefined;
266
300
  } | {
267
301
  type: "textArea";
268
302
  answer: string;
269
303
  meta: {
270
304
  schemaVersion: string;
271
305
  };
306
+ comment?: string | undefined;
272
307
  } | {
273
308
  type: "url";
274
309
  answer: string;
275
310
  meta: {
276
311
  schemaVersion: string;
277
312
  };
313
+ comment?: string | undefined;
278
314
  })[];
279
315
  }[];
280
316
  meta: {
281
317
  schemaVersion: string;
282
318
  };
319
+ comment?: string | undefined;
283
320
  };
284
321
  } | undefined;
285
322
  }[];
@@ -331,30 +368,35 @@ export declare const ExtensionSchema: z.ZodObject<{
331
368
  meta: z.ZodObject<{
332
369
  schemaVersion: z.ZodDefault<z.ZodString>;
333
370
  }, z.core.$strip>;
371
+ comment: z.ZodOptional<z.ZodString>;
334
372
  }, z.core.$strip>, z.ZodObject<{
335
373
  type: z.ZodLiteral<"boolean">;
336
374
  answer: z.ZodDefault<z.ZodBoolean>;
337
375
  meta: z.ZodObject<{
338
376
  schemaVersion: z.ZodDefault<z.ZodString>;
339
377
  }, z.core.$strip>;
378
+ comment: z.ZodOptional<z.ZodString>;
340
379
  }, z.core.$strip>, z.ZodObject<{
341
380
  type: z.ZodLiteral<"checkBoxes">;
342
381
  answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
343
382
  meta: z.ZodObject<{
344
383
  schemaVersion: z.ZodDefault<z.ZodString>;
345
384
  }, z.core.$strip>;
385
+ comment: z.ZodOptional<z.ZodString>;
346
386
  }, z.core.$strip>, z.ZodObject<{
347
387
  type: z.ZodLiteral<"currency">;
348
388
  answer: z.ZodDefault<z.ZodNumber>;
349
389
  meta: z.ZodObject<{
350
390
  schemaVersion: z.ZodDefault<z.ZodString>;
351
391
  }, z.core.$strip>;
392
+ comment: z.ZodOptional<z.ZodString>;
352
393
  }, z.core.$strip>, z.ZodObject<{
353
394
  type: z.ZodLiteral<"date">;
354
395
  answer: z.ZodDefault<z.ZodString>;
355
396
  meta: z.ZodObject<{
356
397
  schemaVersion: z.ZodDefault<z.ZodString>;
357
398
  }, z.core.$strip>;
399
+ comment: z.ZodOptional<z.ZodString>;
358
400
  }, z.core.$strip>, z.ZodObject<{
359
401
  type: z.ZodLiteral<"dateRange">;
360
402
  answer: z.ZodObject<{
@@ -364,12 +406,14 @@ export declare const ExtensionSchema: z.ZodObject<{
364
406
  meta: z.ZodObject<{
365
407
  schemaVersion: z.ZodDefault<z.ZodString>;
366
408
  }, z.core.$strip>;
409
+ comment: z.ZodOptional<z.ZodString>;
367
410
  }, z.core.$strip>, z.ZodObject<{
368
411
  type: z.ZodLiteral<"email">;
369
412
  answer: z.ZodDefault<z.ZodString>;
370
413
  meta: z.ZodObject<{
371
414
  schemaVersion: z.ZodDefault<z.ZodString>;
372
415
  }, z.core.$strip>;
416
+ comment: z.ZodOptional<z.ZodString>;
373
417
  }, z.core.$strip>, z.ZodObject<{
374
418
  type: z.ZodLiteral<"licenseSearch">;
375
419
  answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -379,6 +423,7 @@ export declare const ExtensionSchema: z.ZodObject<{
379
423
  meta: z.ZodObject<{
380
424
  schemaVersion: z.ZodDefault<z.ZodString>;
381
425
  }, z.core.$strip>;
426
+ comment: z.ZodOptional<z.ZodString>;
382
427
  }, z.core.$strip>, z.ZodObject<{
383
428
  type: z.ZodLiteral<"metadataStandardSearch">;
384
429
  answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -388,18 +433,21 @@ export declare const ExtensionSchema: z.ZodObject<{
388
433
  meta: z.ZodObject<{
389
434
  schemaVersion: z.ZodDefault<z.ZodString>;
390
435
  }, z.core.$strip>;
436
+ comment: z.ZodOptional<z.ZodString>;
391
437
  }, z.core.$strip>, z.ZodObject<{
392
438
  type: z.ZodLiteral<"multiselectBox">;
393
439
  answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
394
440
  meta: z.ZodObject<{
395
441
  schemaVersion: z.ZodDefault<z.ZodString>;
396
442
  }, z.core.$strip>;
443
+ comment: z.ZodOptional<z.ZodString>;
397
444
  }, z.core.$strip>, z.ZodObject<{
398
445
  type: z.ZodLiteral<"number">;
399
446
  answer: z.ZodDefault<z.ZodNumber>;
400
447
  meta: z.ZodObject<{
401
448
  schemaVersion: z.ZodDefault<z.ZodString>;
402
449
  }, z.core.$strip>;
450
+ comment: z.ZodOptional<z.ZodString>;
403
451
  }, z.core.$strip>, z.ZodObject<{
404
452
  type: z.ZodLiteral<"numberRange">;
405
453
  answer: z.ZodObject<{
@@ -409,12 +457,14 @@ export declare const ExtensionSchema: z.ZodObject<{
409
457
  meta: z.ZodObject<{
410
458
  schemaVersion: z.ZodDefault<z.ZodString>;
411
459
  }, z.core.$strip>;
460
+ comment: z.ZodOptional<z.ZodString>;
412
461
  }, z.core.$strip>, z.ZodObject<{
413
462
  type: z.ZodLiteral<"radioButtons">;
414
463
  answer: z.ZodDefault<z.ZodString>;
415
464
  meta: z.ZodObject<{
416
465
  schemaVersion: z.ZodDefault<z.ZodString>;
417
466
  }, z.core.$strip>;
467
+ comment: z.ZodOptional<z.ZodString>;
418
468
  }, z.core.$strip>, z.ZodObject<{
419
469
  type: z.ZodLiteral<"repositorySearch">;
420
470
  answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -424,12 +474,14 @@ export declare const ExtensionSchema: z.ZodObject<{
424
474
  meta: z.ZodObject<{
425
475
  schemaVersion: z.ZodDefault<z.ZodString>;
426
476
  }, z.core.$strip>;
477
+ comment: z.ZodOptional<z.ZodString>;
427
478
  }, z.core.$strip>, z.ZodObject<{
428
479
  type: z.ZodLiteral<"selectBox">;
429
480
  answer: z.ZodDefault<z.ZodString>;
430
481
  meta: z.ZodObject<{
431
482
  schemaVersion: z.ZodDefault<z.ZodString>;
432
483
  }, z.core.$strip>;
484
+ comment: z.ZodOptional<z.ZodString>;
433
485
  }, z.core.$strip>, z.ZodObject<{
434
486
  type: z.ZodLiteral<"table">;
435
487
  columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -443,30 +495,35 @@ export declare const ExtensionSchema: z.ZodObject<{
443
495
  meta: z.ZodObject<{
444
496
  schemaVersion: z.ZodDefault<z.ZodString>;
445
497
  }, z.core.$strip>;
498
+ comment: z.ZodOptional<z.ZodString>;
446
499
  }, z.core.$strip>, z.ZodObject<{
447
500
  type: z.ZodLiteral<"boolean">;
448
501
  answer: z.ZodDefault<z.ZodBoolean>;
449
502
  meta: z.ZodObject<{
450
503
  schemaVersion: z.ZodDefault<z.ZodString>;
451
504
  }, z.core.$strip>;
505
+ comment: z.ZodOptional<z.ZodString>;
452
506
  }, z.core.$strip>, z.ZodObject<{
453
507
  type: z.ZodLiteral<"checkBoxes">;
454
508
  answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
455
509
  meta: z.ZodObject<{
456
510
  schemaVersion: z.ZodDefault<z.ZodString>;
457
511
  }, z.core.$strip>;
512
+ comment: z.ZodOptional<z.ZodString>;
458
513
  }, z.core.$strip>, z.ZodObject<{
459
514
  type: z.ZodLiteral<"currency">;
460
515
  answer: z.ZodDefault<z.ZodNumber>;
461
516
  meta: z.ZodObject<{
462
517
  schemaVersion: z.ZodDefault<z.ZodString>;
463
518
  }, z.core.$strip>;
519
+ comment: z.ZodOptional<z.ZodString>;
464
520
  }, z.core.$strip>, z.ZodObject<{
465
521
  type: z.ZodLiteral<"date">;
466
522
  answer: z.ZodDefault<z.ZodString>;
467
523
  meta: z.ZodObject<{
468
524
  schemaVersion: z.ZodDefault<z.ZodString>;
469
525
  }, z.core.$strip>;
526
+ comment: z.ZodOptional<z.ZodString>;
470
527
  }, z.core.$strip>, z.ZodObject<{
471
528
  type: z.ZodLiteral<"dateRange">;
472
529
  answer: z.ZodObject<{
@@ -476,12 +533,14 @@ export declare const ExtensionSchema: z.ZodObject<{
476
533
  meta: z.ZodObject<{
477
534
  schemaVersion: z.ZodDefault<z.ZodString>;
478
535
  }, z.core.$strip>;
536
+ comment: z.ZodOptional<z.ZodString>;
479
537
  }, z.core.$strip>, z.ZodObject<{
480
538
  type: z.ZodLiteral<"email">;
481
539
  answer: z.ZodDefault<z.ZodString>;
482
540
  meta: z.ZodObject<{
483
541
  schemaVersion: z.ZodDefault<z.ZodString>;
484
542
  }, z.core.$strip>;
543
+ comment: z.ZodOptional<z.ZodString>;
485
544
  }, z.core.$strip>, z.ZodObject<{
486
545
  type: z.ZodLiteral<"licenseSearch">;
487
546
  answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -491,6 +550,7 @@ export declare const ExtensionSchema: z.ZodObject<{
491
550
  meta: z.ZodObject<{
492
551
  schemaVersion: z.ZodDefault<z.ZodString>;
493
552
  }, z.core.$strip>;
553
+ comment: z.ZodOptional<z.ZodString>;
494
554
  }, z.core.$strip>, z.ZodObject<{
495
555
  type: z.ZodLiteral<"metadataStandardSearch">;
496
556
  answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -500,18 +560,21 @@ export declare const ExtensionSchema: z.ZodObject<{
500
560
  meta: z.ZodObject<{
501
561
  schemaVersion: z.ZodDefault<z.ZodString>;
502
562
  }, z.core.$strip>;
563
+ comment: z.ZodOptional<z.ZodString>;
503
564
  }, z.core.$strip>, z.ZodObject<{
504
565
  type: z.ZodLiteral<"multiselectBox">;
505
566
  answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
506
567
  meta: z.ZodObject<{
507
568
  schemaVersion: z.ZodDefault<z.ZodString>;
508
569
  }, z.core.$strip>;
570
+ comment: z.ZodOptional<z.ZodString>;
509
571
  }, z.core.$strip>, z.ZodObject<{
510
572
  type: z.ZodLiteral<"number">;
511
573
  answer: z.ZodDefault<z.ZodNumber>;
512
574
  meta: z.ZodObject<{
513
575
  schemaVersion: z.ZodDefault<z.ZodString>;
514
576
  }, z.core.$strip>;
577
+ comment: z.ZodOptional<z.ZodString>;
515
578
  }, z.core.$strip>, z.ZodObject<{
516
579
  type: z.ZodLiteral<"numberWithContext">;
517
580
  answer: z.ZodObject<{
@@ -521,12 +584,14 @@ export declare const ExtensionSchema: z.ZodObject<{
521
584
  meta: z.ZodObject<{
522
585
  schemaVersion: z.ZodDefault<z.ZodString>;
523
586
  }, z.core.$strip>;
587
+ comment: z.ZodOptional<z.ZodString>;
524
588
  }, z.core.$strip>, z.ZodObject<{
525
589
  type: z.ZodLiteral<"radioButtons">;
526
590
  answer: z.ZodDefault<z.ZodString>;
527
591
  meta: z.ZodObject<{
528
592
  schemaVersion: z.ZodDefault<z.ZodString>;
529
593
  }, z.core.$strip>;
594
+ comment: z.ZodOptional<z.ZodString>;
530
595
  }, z.core.$strip>, z.ZodObject<{
531
596
  type: z.ZodLiteral<"repositorySearch">;
532
597
  answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -536,53 +601,62 @@ export declare const ExtensionSchema: z.ZodObject<{
536
601
  meta: z.ZodObject<{
537
602
  schemaVersion: z.ZodDefault<z.ZodString>;
538
603
  }, z.core.$strip>;
604
+ comment: z.ZodOptional<z.ZodString>;
539
605
  }, z.core.$strip>, z.ZodObject<{
540
606
  type: z.ZodLiteral<"selectBox">;
541
607
  answer: z.ZodDefault<z.ZodString>;
542
608
  meta: z.ZodObject<{
543
609
  schemaVersion: z.ZodDefault<z.ZodString>;
544
610
  }, z.core.$strip>;
611
+ comment: z.ZodOptional<z.ZodString>;
545
612
  }, z.core.$strip>, z.ZodObject<{
546
613
  type: z.ZodLiteral<"text">;
547
614
  answer: z.ZodDefault<z.ZodString>;
548
615
  meta: z.ZodObject<{
549
616
  schemaVersion: z.ZodDefault<z.ZodString>;
550
617
  }, z.core.$strip>;
618
+ comment: z.ZodOptional<z.ZodString>;
551
619
  }, z.core.$strip>, z.ZodObject<{
552
620
  type: z.ZodLiteral<"textArea">;
553
621
  answer: z.ZodDefault<z.ZodString>;
554
622
  meta: z.ZodObject<{
555
623
  schemaVersion: z.ZodDefault<z.ZodString>;
556
624
  }, z.core.$strip>;
625
+ comment: z.ZodOptional<z.ZodString>;
557
626
  }, z.core.$strip>, z.ZodObject<{
558
627
  type: z.ZodLiteral<"url">;
559
628
  answer: z.ZodDefault<z.ZodString>;
560
629
  meta: z.ZodObject<{
561
630
  schemaVersion: z.ZodDefault<z.ZodString>;
562
631
  }, z.core.$strip>;
632
+ comment: z.ZodOptional<z.ZodString>;
563
633
  }, z.core.$strip>], "type">>;
564
634
  }, z.core.$strip>>;
565
635
  meta: z.ZodObject<{
566
636
  schemaVersion: z.ZodDefault<z.ZodString>;
567
637
  }, z.core.$strip>;
638
+ comment: z.ZodOptional<z.ZodString>;
568
639
  }, z.core.$strip>, z.ZodObject<{
569
640
  type: z.ZodLiteral<"text">;
570
641
  answer: z.ZodDefault<z.ZodString>;
571
642
  meta: z.ZodObject<{
572
643
  schemaVersion: z.ZodDefault<z.ZodString>;
573
644
  }, z.core.$strip>;
645
+ comment: z.ZodOptional<z.ZodString>;
574
646
  }, z.core.$strip>, z.ZodObject<{
575
647
  type: z.ZodLiteral<"textArea">;
576
648
  answer: z.ZodDefault<z.ZodString>;
577
649
  meta: z.ZodObject<{
578
650
  schemaVersion: z.ZodDefault<z.ZodString>;
579
651
  }, z.core.$strip>;
652
+ comment: z.ZodOptional<z.ZodString>;
580
653
  }, z.core.$strip>, z.ZodObject<{
581
654
  type: z.ZodLiteral<"url">;
582
655
  answer: z.ZodDefault<z.ZodString>;
583
656
  meta: z.ZodObject<{
584
657
  schemaVersion: z.ZodDefault<z.ZodString>;
585
658
  }, z.core.$strip>;
659
+ comment: z.ZodOptional<z.ZodString>;
586
660
  }, z.core.$strip>], "type">;
587
661
  }, z.core.$strip>>;
588
662
  }, z.core.$strip>>;
@@ -699,6 +773,7 @@ export declare const DefaultExtensionSchema: {
699
773
  meta: {
700
774
  schemaVersion: string;
701
775
  };
776
+ comment?: string | undefined;
702
777
  } | {
703
778
  type: "dateRange";
704
779
  answer: {
@@ -708,6 +783,7 @@ export declare const DefaultExtensionSchema: {
708
783
  meta: {
709
784
  schemaVersion: string;
710
785
  };
786
+ comment?: string | undefined;
711
787
  } | {
712
788
  type: "affiliationSearch";
713
789
  answer: {
@@ -717,6 +793,7 @@ export declare const DefaultExtensionSchema: {
717
793
  meta: {
718
794
  schemaVersion: string;
719
795
  };
796
+ comment?: string | undefined;
720
797
  } | {
721
798
  type: "licenseSearch";
722
799
  answer: {
@@ -726,6 +803,7 @@ export declare const DefaultExtensionSchema: {
726
803
  meta: {
727
804
  schemaVersion: string;
728
805
  };
806
+ comment?: string | undefined;
729
807
  } | {
730
808
  type: "metadataStandardSearch";
731
809
  answer: {
@@ -735,6 +813,7 @@ export declare const DefaultExtensionSchema: {
735
813
  meta: {
736
814
  schemaVersion: string;
737
815
  };
816
+ comment?: string | undefined;
738
817
  } | {
739
818
  type: "repositorySearch";
740
819
  answer: {
@@ -744,48 +823,56 @@ export declare const DefaultExtensionSchema: {
744
823
  meta: {
745
824
  schemaVersion: string;
746
825
  };
826
+ comment?: string | undefined;
747
827
  } | {
748
828
  type: "boolean";
749
829
  answer: boolean;
750
830
  meta: {
751
831
  schemaVersion: string;
752
832
  };
833
+ comment?: string | undefined;
753
834
  } | {
754
835
  type: "checkBoxes";
755
836
  answer: string[];
756
837
  meta: {
757
838
  schemaVersion: string;
758
839
  };
840
+ comment?: string | undefined;
759
841
  } | {
760
842
  type: "radioButtons";
761
843
  answer: string;
762
844
  meta: {
763
845
  schemaVersion: string;
764
846
  };
847
+ comment?: string | undefined;
765
848
  } | {
766
849
  type: "selectBox";
767
850
  answer: string;
768
851
  meta: {
769
852
  schemaVersion: string;
770
853
  };
854
+ comment?: string | undefined;
771
855
  } | {
772
856
  type: "multiselectBox";
773
857
  answer: string[];
774
858
  meta: {
775
859
  schemaVersion: string;
776
860
  };
861
+ comment?: string | undefined;
777
862
  } | {
778
863
  type: "currency";
779
864
  answer: number;
780
865
  meta: {
781
866
  schemaVersion: string;
782
867
  };
868
+ comment?: string | undefined;
783
869
  } | {
784
870
  type: "number";
785
871
  answer: number;
786
872
  meta: {
787
873
  schemaVersion: string;
788
874
  };
875
+ comment?: string | undefined;
789
876
  } | {
790
877
  type: "numberRange";
791
878
  answer: {
@@ -795,30 +882,35 @@ export declare const DefaultExtensionSchema: {
795
882
  meta: {
796
883
  schemaVersion: string;
797
884
  };
885
+ comment?: string | undefined;
798
886
  } | {
799
887
  type: "email";
800
888
  answer: string;
801
889
  meta: {
802
890
  schemaVersion: string;
803
891
  };
892
+ comment?: string | undefined;
804
893
  } | {
805
894
  type: "text";
806
895
  answer: string;
807
896
  meta: {
808
897
  schemaVersion: string;
809
898
  };
899
+ comment?: string | undefined;
810
900
  } | {
811
901
  type: "textArea";
812
902
  answer: string;
813
903
  meta: {
814
904
  schemaVersion: string;
815
905
  };
906
+ comment?: string | undefined;
816
907
  } | {
817
908
  type: "url";
818
909
  answer: string;
819
910
  meta: {
820
911
  schemaVersion: string;
821
912
  };
913
+ comment?: string | undefined;
822
914
  } | {
823
915
  type: "table";
824
916
  columnHeadings: string[];
@@ -829,6 +921,7 @@ export declare const DefaultExtensionSchema: {
829
921
  meta: {
830
922
  schemaVersion: string;
831
923
  };
924
+ comment?: string | undefined;
832
925
  } | {
833
926
  type: "dateRange";
834
927
  answer: {
@@ -838,6 +931,7 @@ export declare const DefaultExtensionSchema: {
838
931
  meta: {
839
932
  schemaVersion: string;
840
933
  };
934
+ comment?: string | undefined;
841
935
  } | {
842
936
  type: "affiliationSearch";
843
937
  answer: {
@@ -847,6 +941,7 @@ export declare const DefaultExtensionSchema: {
847
941
  meta: {
848
942
  schemaVersion: string;
849
943
  };
944
+ comment?: string | undefined;
850
945
  } | {
851
946
  type: "licenseSearch";
852
947
  answer: {
@@ -856,6 +951,7 @@ export declare const DefaultExtensionSchema: {
856
951
  meta: {
857
952
  schemaVersion: string;
858
953
  };
954
+ comment?: string | undefined;
859
955
  } | {
860
956
  type: "metadataStandardSearch";
861
957
  answer: {
@@ -865,6 +961,7 @@ export declare const DefaultExtensionSchema: {
865
961
  meta: {
866
962
  schemaVersion: string;
867
963
  };
964
+ comment?: string | undefined;
868
965
  } | {
869
966
  type: "repositorySearch";
870
967
  answer: {
@@ -874,48 +971,56 @@ export declare const DefaultExtensionSchema: {
874
971
  meta: {
875
972
  schemaVersion: string;
876
973
  };
974
+ comment?: string | undefined;
877
975
  } | {
878
976
  type: "boolean";
879
977
  answer: boolean;
880
978
  meta: {
881
979
  schemaVersion: string;
882
980
  };
981
+ comment?: string | undefined;
883
982
  } | {
884
983
  type: "checkBoxes";
885
984
  answer: string[];
886
985
  meta: {
887
986
  schemaVersion: string;
888
987
  };
988
+ comment?: string | undefined;
889
989
  } | {
890
990
  type: "radioButtons";
891
991
  answer: string;
892
992
  meta: {
893
993
  schemaVersion: string;
894
994
  };
995
+ comment?: string | undefined;
895
996
  } | {
896
997
  type: "selectBox";
897
998
  answer: string;
898
999
  meta: {
899
1000
  schemaVersion: string;
900
1001
  };
1002
+ comment?: string | undefined;
901
1003
  } | {
902
1004
  type: "multiselectBox";
903
1005
  answer: string[];
904
1006
  meta: {
905
1007
  schemaVersion: string;
906
1008
  };
1009
+ comment?: string | undefined;
907
1010
  } | {
908
1011
  type: "currency";
909
1012
  answer: number;
910
1013
  meta: {
911
1014
  schemaVersion: string;
912
1015
  };
1016
+ comment?: string | undefined;
913
1017
  } | {
914
1018
  type: "number";
915
1019
  answer: number;
916
1020
  meta: {
917
1021
  schemaVersion: string;
918
1022
  };
1023
+ comment?: string | undefined;
919
1024
  } | {
920
1025
  type: "numberWithContext";
921
1026
  answer: {
@@ -925,35 +1030,41 @@ export declare const DefaultExtensionSchema: {
925
1030
  meta: {
926
1031
  schemaVersion: string;
927
1032
  };
1033
+ comment?: string | undefined;
928
1034
  } | {
929
1035
  type: "email";
930
1036
  answer: string;
931
1037
  meta: {
932
1038
  schemaVersion: string;
933
1039
  };
1040
+ comment?: string | undefined;
934
1041
  } | {
935
1042
  type: "text";
936
1043
  answer: string;
937
1044
  meta: {
938
1045
  schemaVersion: string;
939
1046
  };
1047
+ comment?: string | undefined;
940
1048
  } | {
941
1049
  type: "textArea";
942
1050
  answer: string;
943
1051
  meta: {
944
1052
  schemaVersion: string;
945
1053
  };
1054
+ comment?: string | undefined;
946
1055
  } | {
947
1056
  type: "url";
948
1057
  answer: string;
949
1058
  meta: {
950
1059
  schemaVersion: string;
951
1060
  };
1061
+ comment?: string | undefined;
952
1062
  })[];
953
1063
  }[];
954
1064
  meta: {
955
1065
  schemaVersion: string;
956
1066
  };
1067
+ comment?: string | undefined;
957
1068
  };
958
1069
  } | undefined;
959
1070
  }[];