@dmptool/types 1.2.6 → 2.1.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 (103) hide show
  1. package/README.md +1 -1
  2. package/dist/answers/__tests__/defaults.spec.js +216 -0
  3. package/dist/answers/answer.d.ts +29 -14
  4. package/dist/answers/answer.js +11 -5
  5. package/dist/answers/dateAnswers.d.ts +20 -47
  6. package/dist/answers/dateAnswers.js +20 -10
  7. package/dist/answers/graphQLAnswers.d.ts +48 -120
  8. package/dist/answers/graphQLAnswers.js +46 -21
  9. package/dist/answers/index.d.ts +155 -1439
  10. package/dist/answers/index.js +26 -1
  11. package/dist/answers/numberAnswers.d.ts +38 -92
  12. package/dist/answers/numberAnswers.js +38 -19
  13. package/dist/answers/optionBasedAnswers.d.ts +42 -87
  14. package/dist/answers/optionBasedAnswers.js +37 -21
  15. package/dist/answers/tableAnswers.d.ts +348 -3032
  16. package/dist/answers/tableAnswers.js +25 -61
  17. package/dist/answers/textAnswers.d.ts +32 -68
  18. package/dist/answers/textAnswers.js +30 -17
  19. package/dist/dmp/__tests__/commonStandard.spec.d.ts +1 -0
  20. package/dist/dmp/__tests__/commonStandard.spec.js +210 -0
  21. package/dist/dmp/__tests__/extensions.spec.d.ts +1 -0
  22. package/dist/dmp/__tests__/extensions.spec.js +99 -0
  23. package/dist/dmp/extension.d.ts +1006 -0
  24. package/dist/dmp/extension.js +234 -0
  25. package/dist/dmp/index.d.ts +9 -0
  26. package/dist/dmp/index.js +23 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/questions/__tests__/dateQuestions.spec.js +3 -0
  30. package/dist/questions/__tests__/defaults.spec.d.ts +1 -0
  31. package/dist/questions/__tests__/defaults.spec.js +668 -0
  32. package/dist/questions/__tests__/optionBasedQuestions.spec.js +3 -2
  33. package/dist/questions/__tests__/tableQuestion.spec.js +22 -23
  34. package/dist/questions/__tests__/textQuestions.spec.js +32 -0
  35. package/dist/questions/dateQuestions.d.ts +45 -191
  36. package/dist/questions/dateQuestions.js +26 -23
  37. package/dist/questions/graphQLQuestions.d.ts +262 -556
  38. package/dist/questions/graphQLQuestions.js +225 -223
  39. package/dist/questions/index.d.ts +670 -7441
  40. package/dist/questions/index.js +26 -1
  41. package/dist/questions/numberQuestions.d.ts +85 -331
  42. package/dist/questions/numberQuestions.js +50 -36
  43. package/dist/questions/optionBasedQuestions.d.ts +83 -290
  44. package/dist/questions/optionBasedQuestions.js +58 -41
  45. package/dist/questions/question.d.ts +72 -35
  46. package/dist/questions/question.js +14 -5
  47. package/dist/questions/tableQuestions.d.ts +2228 -9599
  48. package/dist/questions/tableQuestions.js +185 -192
  49. package/dist/questions/textQuestions.d.ts +70 -226
  50. package/dist/questions/textQuestions.js +31 -31
  51. package/dist/schemas/affiliationSearchAnswer.schema.json +35 -33
  52. package/dist/schemas/affiliationSearchQuestion.schema.json +124 -122
  53. package/dist/schemas/anyAnswer.schema.json +1229 -408
  54. package/dist/schemas/anyQuestion.schema.json +4312 -2023
  55. package/dist/schemas/anyTableColumnAnswer.schema.json +535 -314
  56. package/dist/schemas/anyTableColumnQuestion.schema.json +1309 -874
  57. package/dist/schemas/booleanAnswer.schema.json +22 -23
  58. package/dist/schemas/booleanQuestion.schema.json +39 -43
  59. package/dist/schemas/checkboxesAnswer.schema.json +27 -28
  60. package/dist/schemas/checkboxesQuestion.schema.json +63 -62
  61. package/dist/schemas/currencyAnswer.schema.json +22 -23
  62. package/dist/schemas/currencyQuestion.schema.json +57 -54
  63. package/dist/schemas/dateAnswer.schema.json +22 -23
  64. package/dist/schemas/dateQuestion.schema.json +50 -49
  65. package/dist/schemas/dateRangeAnswer.schema.json +35 -33
  66. package/dist/schemas/dateRangeQuestion.schema.json +87 -78
  67. package/dist/schemas/dmp.schema.json +2070 -0
  68. package/dist/schemas/dmpExtension.schema.json +1874 -0
  69. package/dist/schemas/emailAnswer.schema.json +22 -23
  70. package/dist/schemas/emailQuestion.schema.json +55 -53
  71. package/dist/schemas/licenseSearchAnswer.schema.json +40 -38
  72. package/dist/schemas/licenseSearchQuestion.schema.json +122 -146
  73. package/dist/schemas/metadataStandardSearchAnswer.schema.json +40 -38
  74. package/dist/schemas/metadataStandardSearchQuestion.schema.json +123 -156
  75. package/dist/schemas/multiselectBoxAnswer.schema.json +27 -28
  76. package/dist/schemas/multiselectBoxQuestion.schema.json +70 -71
  77. package/dist/schemas/numberAnswer.schema.json +22 -23
  78. package/dist/schemas/numberQuestion.schema.json +52 -50
  79. package/dist/schemas/numberRangeAnswer.schema.json +35 -33
  80. package/dist/schemas/numberRangeQuestion.schema.json +91 -60
  81. package/dist/schemas/numberWithContextAnswer.schema.json +35 -33
  82. package/dist/schemas/numberWithContextQuestion.schema.json +81 -70
  83. package/dist/schemas/radioButtonsAnswer.schema.json +22 -23
  84. package/dist/schemas/radioButtonsQuestion.schema.json +63 -62
  85. package/dist/schemas/repositorySearchAnswer.schema.json +40 -38
  86. package/dist/schemas/repositorySearchQuestion.schema.json +122 -162
  87. package/dist/schemas/researchOutputTableAnswer.schema.json +16622 -411
  88. package/dist/schemas/researchOutputTableQuestion.schema.json +114 -1157
  89. package/dist/schemas/selectBoxAnswer.schema.json +22 -23
  90. package/dist/schemas/selectBoxQuestion.schema.json +70 -71
  91. package/dist/schemas/tableAnswer.schema.json +581 -360
  92. package/dist/schemas/tableQuestion.schema.json +1388 -942
  93. package/dist/schemas/textAnswer.schema.json +22 -23
  94. package/dist/schemas/textAreaAnswer.schema.json +22 -23
  95. package/dist/schemas/textAreaQuestion.schema.json +65 -57
  96. package/dist/schemas/textQuestion.schema.json +50 -49
  97. package/dist/schemas/urlAnswer.schema.json +22 -23
  98. package/dist/schemas/urlQuestion.schema.json +50 -49
  99. package/package.json +6 -4
  100. package/dist/answers/__tests__/usage.spec.js +0 -178
  101. package/dist/questions/__tests__/usage.spec.d.ts +0 -8
  102. package/dist/questions/__tests__/usage.spec.js +0 -473
  103. /package/dist/answers/__tests__/{usage.spec.d.ts → defaults.spec.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { DateAnswerType, DateRangeAnswerType } from './dateAnswers';
3
- import { AffiliationSearchAnswerType, LicenseSearchAnswerType, MetadataStandardSearchAnswerType, RepositorySearchAnswerType } from './graphQLAnswers';
4
- import { BooleanAnswerType, CheckboxesAnswerType, RadioButtonsAnswerType, SelectBoxAnswerType, MultiselectBoxAnswerType } from './optionBasedAnswers';
5
- import { CurrencyAnswerType, NumberAnswerType, NumberRangeAnswerType, NumberWithContextAnswerType } from './numberAnswers';
6
- import { ResearchOutputTableAnswerType, TableAnswerType } from './tableAnswers';
7
- import { EmailAnswerType, TextAnswerType, TextAreaAnswerType, URLAnswerType } from './textAnswers';
8
- import { QuestionFormatsEnum } from '../questions';
2
+ import { DateAnswerType, DateRangeAnswerType, DefaultDateAnswer, DefaultDateRangeAnswer } from './dateAnswers';
3
+ import { AffiliationSearchAnswerType, DefaultAffiliationSearchAnswer, DefaultLicenseSearchAnswer, DefaultMetadataStandardSearchAnswer, DefaultRepositorySearchAnswer, LicenseSearchAnswerType, MetadataStandardSearchAnswerType, RepositorySearchAnswerType } from './graphQLAnswers';
4
+ import { BooleanAnswerType, CheckboxesAnswerType, RadioButtonsAnswerType, SelectBoxAnswerType, MultiselectBoxAnswerType, DefaultBooleanAnswer, DefaultCheckboxesAnswer, DefaultMultiselectBoxAnswer, DefaultSelectBoxAnswer, DefaultRadioButtonsAnswer } from './optionBasedAnswers';
5
+ import { CurrencyAnswerType, DefaultCurrencyAnswer, DefaultNumberAnswer, DefaultNumberRangeAnswer, DefaultNumberWithContextAnswer, NumberAnswerType, NumberRangeAnswerType, NumberWithContextAnswerType } from './numberAnswers';
6
+ import { DefaultResearchOutputTableAnswer, DefaultTableAnswer, ResearchOutputTableAnswerType, TableAnswerType } from './tableAnswers';
7
+ import { DefaultEmailAnswer, DefaultTextAnswer, DefaultTextAreaAnswer, DefaultURLAnswer, EmailAnswerType, TextAnswerType, TextAreaAnswerType, URLAnswerType } from './textAnswers';
8
+ import { QuestionFormatsEnum } from "../questions";
9
9
  export * from './answer';
10
10
  export * from './dateAnswers';
11
11
  export * from './graphQLAnswers';
@@ -13,1555 +13,269 @@ export * from './numberAnswers';
13
13
  export * from './optionBasedAnswers';
14
14
  export * from './tableAnswers';
15
15
  export * from './textAnswers';
16
- export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
17
- meta: z.ZodDefault<z.ZodObject<{
18
- schemaVersion: z.ZodDefault<z.ZodString>;
19
- }, "strip", z.ZodTypeAny, {
20
- schemaVersion: string;
21
- }, {
22
- schemaVersion?: string | undefined;
23
- }>>;
24
- } & {
16
+ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
17
  type: z.ZodLiteral<"affiliationSearch">;
26
- answer: z.ZodDefault<z.ZodObject<{
18
+ answer: z.ZodObject<{
27
19
  affiliationId: z.ZodDefault<z.ZodString>;
28
20
  affiliationName: z.ZodDefault<z.ZodString>;
29
- }, "strip", z.ZodTypeAny, {
30
- affiliationId: string;
31
- affiliationName: string;
32
- }, {
33
- affiliationId?: string | undefined;
34
- affiliationName?: string | undefined;
35
- }>>;
36
- }, "strip", z.ZodTypeAny, {
37
- type: "affiliationSearch";
38
- meta: {
39
- schemaVersion: string;
40
- };
41
- answer: {
42
- affiliationId: string;
43
- affiliationName: string;
44
- };
45
- }, {
46
- type: "affiliationSearch";
47
- meta?: {
48
- schemaVersion?: string | undefined;
49
- } | undefined;
50
- answer?: {
51
- affiliationId?: string | undefined;
52
- affiliationName?: string | undefined;
53
- } | undefined;
54
- }>, z.ZodObject<{
55
- meta: z.ZodDefault<z.ZodObject<{
21
+ }, z.core.$strip>;
22
+ meta: z.ZodObject<{
56
23
  schemaVersion: z.ZodDefault<z.ZodString>;
57
- }, "strip", z.ZodTypeAny, {
58
- schemaVersion: string;
59
- }, {
60
- schemaVersion?: string | undefined;
61
- }>>;
62
- } & {
24
+ }, z.core.$strip>;
25
+ }, z.core.$strip>, z.ZodObject<{
63
26
  type: z.ZodLiteral<"boolean">;
64
27
  answer: z.ZodDefault<z.ZodBoolean>;
65
- }, "strip", z.ZodTypeAny, {
66
- type: "boolean";
67
- meta: {
68
- schemaVersion: string;
69
- };
70
- answer: boolean;
71
- }, {
72
- type: "boolean";
73
- meta?: {
74
- schemaVersion?: string | undefined;
75
- } | undefined;
76
- answer?: boolean | undefined;
77
- }>, z.ZodObject<{
78
- meta: z.ZodDefault<z.ZodObject<{
28
+ meta: z.ZodObject<{
79
29
  schemaVersion: z.ZodDefault<z.ZodString>;
80
- }, "strip", z.ZodTypeAny, {
81
- schemaVersion: string;
82
- }, {
83
- schemaVersion?: string | undefined;
84
- }>>;
85
- } & {
30
+ }, z.core.$strip>;
31
+ }, z.core.$strip>, z.ZodObject<{
86
32
  type: z.ZodLiteral<"checkBoxes">;
87
- answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
88
- }, "strip", z.ZodTypeAny, {
89
- type: "checkBoxes";
90
- meta: {
91
- schemaVersion: string;
92
- };
93
- answer: string[];
94
- }, {
95
- type: "checkBoxes";
96
- meta?: {
97
- schemaVersion?: string | undefined;
98
- } | undefined;
99
- answer?: string[] | undefined;
100
- }>, z.ZodObject<{
101
- meta: z.ZodDefault<z.ZodObject<{
33
+ answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
34
+ meta: z.ZodObject<{
102
35
  schemaVersion: z.ZodDefault<z.ZodString>;
103
- }, "strip", z.ZodTypeAny, {
104
- schemaVersion: string;
105
- }, {
106
- schemaVersion?: string | undefined;
107
- }>>;
108
- } & {
36
+ }, z.core.$strip>;
37
+ }, z.core.$strip>, z.ZodObject<{
109
38
  type: z.ZodLiteral<"currency">;
110
39
  answer: z.ZodDefault<z.ZodNumber>;
111
- }, "strip", z.ZodTypeAny, {
112
- type: "currency";
113
- meta: {
114
- schemaVersion: string;
115
- };
116
- answer: number;
117
- }, {
118
- type: "currency";
119
- meta?: {
120
- schemaVersion?: string | undefined;
121
- } | undefined;
122
- answer?: number | undefined;
123
- }>, z.ZodObject<{
124
- meta: z.ZodDefault<z.ZodObject<{
40
+ meta: z.ZodObject<{
125
41
  schemaVersion: z.ZodDefault<z.ZodString>;
126
- }, "strip", z.ZodTypeAny, {
127
- schemaVersion: string;
128
- }, {
129
- schemaVersion?: string | undefined;
130
- }>>;
131
- } & {
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>, z.ZodObject<{
132
44
  type: z.ZodLiteral<"date">;
133
45
  answer: z.ZodDefault<z.ZodString>;
134
- }, "strip", z.ZodTypeAny, {
135
- type: "date";
136
- meta: {
137
- schemaVersion: string;
138
- };
139
- answer: string;
140
- }, {
141
- type: "date";
142
- meta?: {
143
- schemaVersion?: string | undefined;
144
- } | undefined;
145
- answer?: string | undefined;
146
- }>, z.ZodObject<{
147
- meta: z.ZodDefault<z.ZodObject<{
46
+ meta: z.ZodObject<{
148
47
  schemaVersion: z.ZodDefault<z.ZodString>;
149
- }, "strip", z.ZodTypeAny, {
150
- schemaVersion: string;
151
- }, {
152
- schemaVersion?: string | undefined;
153
- }>>;
154
- } & {
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>, z.ZodObject<{
155
50
  type: z.ZodLiteral<"dateRange">;
156
- answer: z.ZodDefault<z.ZodObject<{
51
+ answer: z.ZodObject<{
157
52
  start: z.ZodDefault<z.ZodString>;
158
53
  end: z.ZodDefault<z.ZodString>;
159
- }, "strip", z.ZodTypeAny, {
160
- start: string;
161
- end: string;
162
- }, {
163
- start?: string | undefined;
164
- end?: string | undefined;
165
- }>>;
166
- }, "strip", z.ZodTypeAny, {
167
- type: "dateRange";
168
- meta: {
169
- schemaVersion: string;
170
- };
171
- answer: {
172
- start: string;
173
- end: string;
174
- };
175
- }, {
176
- type: "dateRange";
177
- meta?: {
178
- schemaVersion?: string | undefined;
179
- } | undefined;
180
- answer?: {
181
- start?: string | undefined;
182
- end?: string | undefined;
183
- } | undefined;
184
- }>, z.ZodObject<{
185
- meta: z.ZodDefault<z.ZodObject<{
54
+ }, z.core.$strip>;
55
+ meta: z.ZodObject<{
186
56
  schemaVersion: z.ZodDefault<z.ZodString>;
187
- }, "strip", z.ZodTypeAny, {
188
- schemaVersion: string;
189
- }, {
190
- schemaVersion?: string | undefined;
191
- }>>;
192
- } & {
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>, z.ZodObject<{
193
59
  type: z.ZodLiteral<"email">;
194
60
  answer: z.ZodDefault<z.ZodString>;
195
- }, "strip", z.ZodTypeAny, {
196
- type: "email";
197
- meta: {
198
- schemaVersion: string;
199
- };
200
- answer: string;
201
- }, {
202
- type: "email";
203
- meta?: {
204
- schemaVersion?: string | undefined;
205
- } | undefined;
206
- answer?: string | undefined;
207
- }>, z.ZodObject<{
208
- meta: z.ZodDefault<z.ZodObject<{
61
+ meta: z.ZodObject<{
209
62
  schemaVersion: z.ZodDefault<z.ZodString>;
210
- }, "strip", z.ZodTypeAny, {
211
- schemaVersion: string;
212
- }, {
213
- schemaVersion?: string | undefined;
214
- }>>;
215
- } & {
63
+ }, z.core.$strip>;
64
+ }, z.core.$strip>, z.ZodObject<{
216
65
  type: z.ZodLiteral<"licenseSearch">;
217
- answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
66
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
218
67
  licenseId: z.ZodDefault<z.ZodString>;
219
68
  licenseName: z.ZodDefault<z.ZodString>;
220
- }, "strip", z.ZodTypeAny, {
221
- licenseId: string;
222
- licenseName: string;
223
- }, {
224
- licenseId?: string | undefined;
225
- licenseName?: string | undefined;
226
- }>>, "many">>;
227
- }, "strip", z.ZodTypeAny, {
228
- type: "licenseSearch";
229
- meta: {
230
- schemaVersion: string;
231
- };
232
- answer: {
233
- licenseId: string;
234
- licenseName: string;
235
- }[];
236
- }, {
237
- type: "licenseSearch";
238
- meta?: {
239
- schemaVersion?: string | undefined;
240
- } | undefined;
241
- answer?: ({
242
- licenseId?: string | undefined;
243
- licenseName?: string | undefined;
244
- } | undefined)[] | undefined;
245
- }>, z.ZodObject<{
246
- meta: z.ZodDefault<z.ZodObject<{
69
+ }, z.core.$strip>>>;
70
+ meta: z.ZodObject<{
247
71
  schemaVersion: z.ZodDefault<z.ZodString>;
248
- }, "strip", z.ZodTypeAny, {
249
- schemaVersion: string;
250
- }, {
251
- schemaVersion?: string | undefined;
252
- }>>;
253
- } & {
72
+ }, z.core.$strip>;
73
+ }, z.core.$strip>, z.ZodObject<{
254
74
  type: z.ZodLiteral<"metadataStandardSearch">;
255
- answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
75
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
256
76
  metadataStandardId: z.ZodDefault<z.ZodString>;
257
77
  metadataStandardName: z.ZodDefault<z.ZodString>;
258
- }, "strip", z.ZodTypeAny, {
259
- metadataStandardId: string;
260
- metadataStandardName: string;
261
- }, {
262
- metadataStandardId?: string | undefined;
263
- metadataStandardName?: string | undefined;
264
- }>>, "many">>;
265
- }, "strip", z.ZodTypeAny, {
266
- type: "metadataStandardSearch";
267
- meta: {
268
- schemaVersion: string;
269
- };
270
- answer: {
271
- metadataStandardId: string;
272
- metadataStandardName: string;
273
- }[];
274
- }, {
275
- type: "metadataStandardSearch";
276
- meta?: {
277
- schemaVersion?: string | undefined;
278
- } | undefined;
279
- answer?: ({
280
- metadataStandardId?: string | undefined;
281
- metadataStandardName?: string | undefined;
282
- } | undefined)[] | undefined;
283
- }>, z.ZodObject<{
284
- meta: z.ZodDefault<z.ZodObject<{
78
+ }, z.core.$strip>>>;
79
+ meta: z.ZodObject<{
285
80
  schemaVersion: z.ZodDefault<z.ZodString>;
286
- }, "strip", z.ZodTypeAny, {
287
- schemaVersion: string;
288
- }, {
289
- schemaVersion?: string | undefined;
290
- }>>;
291
- } & {
81
+ }, z.core.$strip>;
82
+ }, z.core.$strip>, z.ZodObject<{
292
83
  type: z.ZodLiteral<"multiselectBox">;
293
- answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
294
- }, "strip", z.ZodTypeAny, {
295
- type: "multiselectBox";
296
- meta: {
297
- schemaVersion: string;
298
- };
299
- answer: string[];
300
- }, {
301
- type: "multiselectBox";
302
- meta?: {
303
- schemaVersion?: string | undefined;
304
- } | undefined;
305
- answer?: string[] | undefined;
306
- }>, z.ZodObject<{
307
- meta: z.ZodDefault<z.ZodObject<{
84
+ answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
85
+ meta: z.ZodObject<{
308
86
  schemaVersion: z.ZodDefault<z.ZodString>;
309
- }, "strip", z.ZodTypeAny, {
310
- schemaVersion: string;
311
- }, {
312
- schemaVersion?: string | undefined;
313
- }>>;
314
- } & {
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>, z.ZodObject<{
315
89
  type: z.ZodLiteral<"number">;
316
90
  answer: z.ZodDefault<z.ZodNumber>;
317
- }, "strip", z.ZodTypeAny, {
318
- type: "number";
319
- meta: {
320
- schemaVersion: string;
321
- };
322
- answer: number;
323
- }, {
324
- type: "number";
325
- meta?: {
326
- schemaVersion?: string | undefined;
327
- } | undefined;
328
- answer?: number | undefined;
329
- }>, z.ZodObject<{
330
- meta: z.ZodDefault<z.ZodObject<{
91
+ meta: z.ZodObject<{
331
92
  schemaVersion: z.ZodDefault<z.ZodString>;
332
- }, "strip", z.ZodTypeAny, {
333
- schemaVersion: string;
334
- }, {
335
- schemaVersion?: string | undefined;
336
- }>>;
337
- } & {
93
+ }, z.core.$strip>;
94
+ }, z.core.$strip>, z.ZodObject<{
338
95
  type: z.ZodLiteral<"numberRange">;
339
- answer: z.ZodDefault<z.ZodObject<{
96
+ answer: z.ZodObject<{
340
97
  start: z.ZodDefault<z.ZodNumber>;
341
98
  end: z.ZodDefault<z.ZodNumber>;
342
- }, "strip", z.ZodTypeAny, {
343
- start: number;
344
- end: number;
345
- }, {
346
- start?: number | undefined;
347
- end?: number | undefined;
348
- }>>;
349
- }, "strip", z.ZodTypeAny, {
350
- type: "numberRange";
351
- meta: {
352
- schemaVersion: string;
353
- };
354
- answer: {
355
- start: number;
356
- end: number;
357
- };
358
- }, {
359
- type: "numberRange";
360
- meta?: {
361
- schemaVersion?: string | undefined;
362
- } | undefined;
363
- answer?: {
364
- start?: number | undefined;
365
- end?: number | undefined;
366
- } | undefined;
367
- }>, z.ZodObject<{
368
- meta: z.ZodDefault<z.ZodObject<{
99
+ }, z.core.$strip>;
100
+ meta: z.ZodObject<{
369
101
  schemaVersion: z.ZodDefault<z.ZodString>;
370
- }, "strip", z.ZodTypeAny, {
371
- schemaVersion: string;
372
- }, {
373
- schemaVersion?: string | undefined;
374
- }>>;
375
- } & {
102
+ }, z.core.$strip>;
103
+ }, z.core.$strip>, z.ZodObject<{
376
104
  type: z.ZodLiteral<"radioButtons">;
377
105
  answer: z.ZodDefault<z.ZodString>;
378
- }, "strip", z.ZodTypeAny, {
379
- type: "radioButtons";
380
- meta: {
381
- schemaVersion: string;
382
- };
383
- answer: string;
384
- }, {
385
- type: "radioButtons";
386
- meta?: {
387
- schemaVersion?: string | undefined;
388
- } | undefined;
389
- answer?: string | undefined;
390
- }>, z.ZodObject<{
391
- meta: z.ZodDefault<z.ZodObject<{
106
+ meta: z.ZodObject<{
392
107
  schemaVersion: z.ZodDefault<z.ZodString>;
393
- }, "strip", z.ZodTypeAny, {
394
- schemaVersion: string;
395
- }, {
396
- schemaVersion?: string | undefined;
397
- }>>;
398
- } & {
108
+ }, z.core.$strip>;
109
+ }, z.core.$strip>, z.ZodObject<{
399
110
  type: z.ZodLiteral<"repositorySearch">;
400
- answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
111
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
401
112
  repositoryId: z.ZodDefault<z.ZodString>;
402
113
  repositoryName: z.ZodDefault<z.ZodString>;
403
- }, "strip", z.ZodTypeAny, {
404
- repositoryId: string;
405
- repositoryName: string;
406
- }, {
407
- repositoryId?: string | undefined;
408
- repositoryName?: string | undefined;
409
- }>>, "many">>;
410
- }, "strip", z.ZodTypeAny, {
411
- type: "repositorySearch";
412
- meta: {
413
- schemaVersion: string;
414
- };
415
- answer: {
416
- repositoryId: string;
417
- repositoryName: string;
418
- }[];
419
- }, {
420
- type: "repositorySearch";
421
- meta?: {
422
- schemaVersion?: string | undefined;
423
- } | undefined;
424
- answer?: ({
425
- repositoryId?: string | undefined;
426
- repositoryName?: string | undefined;
427
- } | undefined)[] | undefined;
428
- }>, z.ZodObject<{
429
- meta: z.ZodDefault<z.ZodObject<{
114
+ }, z.core.$strip>>>;
115
+ meta: z.ZodObject<{
430
116
  schemaVersion: z.ZodDefault<z.ZodString>;
431
- }, "strip", z.ZodTypeAny, {
432
- schemaVersion: string;
433
- }, {
434
- schemaVersion?: string | undefined;
435
- }>>;
436
- } & {
117
+ }, z.core.$strip>;
118
+ }, z.core.$strip>, z.ZodObject<{
437
119
  type: z.ZodLiteral<"selectBox">;
438
120
  answer: z.ZodDefault<z.ZodString>;
439
- }, "strip", z.ZodTypeAny, {
440
- type: "selectBox";
441
- meta: {
442
- schemaVersion: string;
443
- };
444
- answer: string;
445
- }, {
446
- type: "selectBox";
447
- meta?: {
448
- schemaVersion?: string | undefined;
449
- } | undefined;
450
- answer?: string | undefined;
451
- }>, z.ZodObject<{
452
- meta: z.ZodDefault<z.ZodObject<{
121
+ meta: z.ZodObject<{
453
122
  schemaVersion: z.ZodDefault<z.ZodString>;
454
- }, "strip", z.ZodTypeAny, {
455
- schemaVersion: string;
456
- }, {
457
- schemaVersion?: string | undefined;
458
- }>>;
459
- } & {
123
+ }, z.core.$strip>;
124
+ }, z.core.$strip>, z.ZodObject<{
460
125
  type: z.ZodLiteral<"table">;
461
- columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
462
- answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
463
- columns: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
464
- meta: z.ZodDefault<z.ZodObject<{
465
- schemaVersion: z.ZodDefault<z.ZodString>;
466
- }, "strip", z.ZodTypeAny, {
467
- schemaVersion: string;
468
- }, {
469
- schemaVersion?: string | undefined;
470
- }>>;
471
- } & {
126
+ columnHeadings: z.ZodDefault<z.ZodArray<z.ZodString>>;
127
+ answer: z.ZodArray<z.ZodObject<{
128
+ columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
472
129
  type: z.ZodLiteral<"affiliationSearch">;
473
- answer: z.ZodDefault<z.ZodObject<{
130
+ answer: z.ZodObject<{
474
131
  affiliationId: z.ZodDefault<z.ZodString>;
475
132
  affiliationName: z.ZodDefault<z.ZodString>;
476
- }, "strip", z.ZodTypeAny, {
477
- affiliationId: string;
478
- affiliationName: string;
479
- }, {
480
- affiliationId?: string | undefined;
481
- affiliationName?: string | undefined;
482
- }>>;
483
- }, "strip", z.ZodTypeAny, {
484
- type: "affiliationSearch";
485
- meta: {
486
- schemaVersion: string;
487
- };
488
- answer: {
489
- affiliationId: string;
490
- affiliationName: string;
491
- };
492
- }, {
493
- type: "affiliationSearch";
494
- meta?: {
495
- schemaVersion?: string | undefined;
496
- } | undefined;
497
- answer?: {
498
- affiliationId?: string | undefined;
499
- affiliationName?: string | undefined;
500
- } | undefined;
501
- }>, z.ZodObject<{
502
- meta: z.ZodDefault<z.ZodObject<{
133
+ }, z.core.$strip>;
134
+ meta: z.ZodObject<{
503
135
  schemaVersion: z.ZodDefault<z.ZodString>;
504
- }, "strip", z.ZodTypeAny, {
505
- schemaVersion: string;
506
- }, {
507
- schemaVersion?: string | undefined;
508
- }>>;
509
- } & {
136
+ }, z.core.$strip>;
137
+ }, z.core.$strip>, z.ZodObject<{
510
138
  type: z.ZodLiteral<"boolean">;
511
139
  answer: z.ZodDefault<z.ZodBoolean>;
512
- }, "strip", z.ZodTypeAny, {
513
- type: "boolean";
514
- meta: {
515
- schemaVersion: string;
516
- };
517
- answer: boolean;
518
- }, {
519
- type: "boolean";
520
- meta?: {
521
- schemaVersion?: string | undefined;
522
- } | undefined;
523
- answer?: boolean | undefined;
524
- }>, z.ZodObject<{
525
- meta: z.ZodDefault<z.ZodObject<{
140
+ meta: z.ZodObject<{
526
141
  schemaVersion: z.ZodDefault<z.ZodString>;
527
- }, "strip", z.ZodTypeAny, {
528
- schemaVersion: string;
529
- }, {
530
- schemaVersion?: string | undefined;
531
- }>>;
532
- } & {
142
+ }, z.core.$strip>;
143
+ }, z.core.$strip>, z.ZodObject<{
533
144
  type: z.ZodLiteral<"checkBoxes">;
534
- answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
535
- }, "strip", z.ZodTypeAny, {
536
- type: "checkBoxes";
537
- meta: {
538
- schemaVersion: string;
539
- };
540
- answer: string[];
541
- }, {
542
- type: "checkBoxes";
543
- meta?: {
544
- schemaVersion?: string | undefined;
545
- } | undefined;
546
- answer?: string[] | undefined;
547
- }>, z.ZodObject<{
548
- meta: z.ZodDefault<z.ZodObject<{
145
+ answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
146
+ meta: z.ZodObject<{
549
147
  schemaVersion: z.ZodDefault<z.ZodString>;
550
- }, "strip", z.ZodTypeAny, {
551
- schemaVersion: string;
552
- }, {
553
- schemaVersion?: string | undefined;
554
- }>>;
555
- } & {
148
+ }, z.core.$strip>;
149
+ }, z.core.$strip>, z.ZodObject<{
556
150
  type: z.ZodLiteral<"currency">;
557
151
  answer: z.ZodDefault<z.ZodNumber>;
558
- }, "strip", z.ZodTypeAny, {
559
- type: "currency";
560
- meta: {
561
- schemaVersion: string;
562
- };
563
- answer: number;
564
- }, {
565
- type: "currency";
566
- meta?: {
567
- schemaVersion?: string | undefined;
568
- } | undefined;
569
- answer?: number | undefined;
570
- }>, z.ZodObject<{
571
- meta: z.ZodDefault<z.ZodObject<{
152
+ meta: z.ZodObject<{
572
153
  schemaVersion: z.ZodDefault<z.ZodString>;
573
- }, "strip", z.ZodTypeAny, {
574
- schemaVersion: string;
575
- }, {
576
- schemaVersion?: string | undefined;
577
- }>>;
578
- } & {
154
+ }, z.core.$strip>;
155
+ }, z.core.$strip>, z.ZodObject<{
579
156
  type: z.ZodLiteral<"date">;
580
157
  answer: z.ZodDefault<z.ZodString>;
581
- }, "strip", z.ZodTypeAny, {
582
- type: "date";
583
- meta: {
584
- schemaVersion: string;
585
- };
586
- answer: string;
587
- }, {
588
- type: "date";
589
- meta?: {
590
- schemaVersion?: string | undefined;
591
- } | undefined;
592
- answer?: string | undefined;
593
- }>, z.ZodObject<{
594
- meta: z.ZodDefault<z.ZodObject<{
158
+ meta: z.ZodObject<{
595
159
  schemaVersion: z.ZodDefault<z.ZodString>;
596
- }, "strip", z.ZodTypeAny, {
597
- schemaVersion: string;
598
- }, {
599
- schemaVersion?: string | undefined;
600
- }>>;
601
- } & {
160
+ }, z.core.$strip>;
161
+ }, z.core.$strip>, z.ZodObject<{
602
162
  type: z.ZodLiteral<"dateRange">;
603
- answer: z.ZodDefault<z.ZodObject<{
163
+ answer: z.ZodObject<{
604
164
  start: z.ZodDefault<z.ZodString>;
605
165
  end: z.ZodDefault<z.ZodString>;
606
- }, "strip", z.ZodTypeAny, {
607
- start: string;
608
- end: string;
609
- }, {
610
- start?: string | undefined;
611
- end?: string | undefined;
612
- }>>;
613
- }, "strip", z.ZodTypeAny, {
614
- type: "dateRange";
615
- meta: {
616
- schemaVersion: string;
617
- };
618
- answer: {
619
- start: string;
620
- end: string;
621
- };
622
- }, {
623
- type: "dateRange";
624
- meta?: {
625
- schemaVersion?: string | undefined;
626
- } | undefined;
627
- answer?: {
628
- start?: string | undefined;
629
- end?: string | undefined;
630
- } | undefined;
631
- }>, z.ZodObject<{
632
- meta: z.ZodDefault<z.ZodObject<{
166
+ }, z.core.$strip>;
167
+ meta: z.ZodObject<{
633
168
  schemaVersion: z.ZodDefault<z.ZodString>;
634
- }, "strip", z.ZodTypeAny, {
635
- schemaVersion: string;
636
- }, {
637
- schemaVersion?: string | undefined;
638
- }>>;
639
- } & {
169
+ }, z.core.$strip>;
170
+ }, z.core.$strip>, z.ZodObject<{
640
171
  type: z.ZodLiteral<"email">;
641
172
  answer: z.ZodDefault<z.ZodString>;
642
- }, "strip", z.ZodTypeAny, {
643
- type: "email";
644
- meta: {
645
- schemaVersion: string;
646
- };
647
- answer: string;
648
- }, {
649
- type: "email";
650
- meta?: {
651
- schemaVersion?: string | undefined;
652
- } | undefined;
653
- answer?: string | undefined;
654
- }>, z.ZodObject<{
655
- meta: z.ZodDefault<z.ZodObject<{
173
+ meta: z.ZodObject<{
656
174
  schemaVersion: z.ZodDefault<z.ZodString>;
657
- }, "strip", z.ZodTypeAny, {
658
- schemaVersion: string;
659
- }, {
660
- schemaVersion?: string | undefined;
661
- }>>;
662
- } & {
175
+ }, z.core.$strip>;
176
+ }, z.core.$strip>, z.ZodObject<{
663
177
  type: z.ZodLiteral<"licenseSearch">;
664
- answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
178
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
665
179
  licenseId: z.ZodDefault<z.ZodString>;
666
180
  licenseName: z.ZodDefault<z.ZodString>;
667
- }, "strip", z.ZodTypeAny, {
668
- licenseId: string;
669
- licenseName: string;
670
- }, {
671
- licenseId?: string | undefined;
672
- licenseName?: string | undefined;
673
- }>>, "many">>;
674
- }, "strip", z.ZodTypeAny, {
675
- type: "licenseSearch";
676
- meta: {
677
- schemaVersion: string;
678
- };
679
- answer: {
680
- licenseId: string;
681
- licenseName: string;
682
- }[];
683
- }, {
684
- type: "licenseSearch";
685
- meta?: {
686
- schemaVersion?: string | undefined;
687
- } | undefined;
688
- answer?: ({
689
- licenseId?: string | undefined;
690
- licenseName?: string | undefined;
691
- } | undefined)[] | undefined;
692
- }>, z.ZodObject<{
693
- meta: z.ZodDefault<z.ZodObject<{
181
+ }, z.core.$strip>>>;
182
+ meta: z.ZodObject<{
694
183
  schemaVersion: z.ZodDefault<z.ZodString>;
695
- }, "strip", z.ZodTypeAny, {
696
- schemaVersion: string;
697
- }, {
698
- schemaVersion?: string | undefined;
699
- }>>;
700
- } & {
184
+ }, z.core.$strip>;
185
+ }, z.core.$strip>, z.ZodObject<{
701
186
  type: z.ZodLiteral<"metadataStandardSearch">;
702
- answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
187
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
703
188
  metadataStandardId: z.ZodDefault<z.ZodString>;
704
189
  metadataStandardName: z.ZodDefault<z.ZodString>;
705
- }, "strip", z.ZodTypeAny, {
706
- metadataStandardId: string;
707
- metadataStandardName: string;
708
- }, {
709
- metadataStandardId?: string | undefined;
710
- metadataStandardName?: string | undefined;
711
- }>>, "many">>;
712
- }, "strip", z.ZodTypeAny, {
713
- type: "metadataStandardSearch";
714
- meta: {
715
- schemaVersion: string;
716
- };
717
- answer: {
718
- metadataStandardId: string;
719
- metadataStandardName: string;
720
- }[];
721
- }, {
722
- type: "metadataStandardSearch";
723
- meta?: {
724
- schemaVersion?: string | undefined;
725
- } | undefined;
726
- answer?: ({
727
- metadataStandardId?: string | undefined;
728
- metadataStandardName?: string | undefined;
729
- } | undefined)[] | undefined;
730
- }>, z.ZodObject<{
731
- meta: z.ZodDefault<z.ZodObject<{
190
+ }, z.core.$strip>>>;
191
+ meta: z.ZodObject<{
732
192
  schemaVersion: z.ZodDefault<z.ZodString>;
733
- }, "strip", z.ZodTypeAny, {
734
- schemaVersion: string;
735
- }, {
736
- schemaVersion?: string | undefined;
737
- }>>;
738
- } & {
193
+ }, z.core.$strip>;
194
+ }, z.core.$strip>, z.ZodObject<{
739
195
  type: z.ZodLiteral<"multiselectBox">;
740
- answer: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
741
- }, "strip", z.ZodTypeAny, {
742
- type: "multiselectBox";
743
- meta: {
744
- schemaVersion: string;
745
- };
746
- answer: string[];
747
- }, {
748
- type: "multiselectBox";
749
- meta?: {
750
- schemaVersion?: string | undefined;
751
- } | undefined;
752
- answer?: string[] | undefined;
753
- }>, z.ZodObject<{
754
- meta: z.ZodDefault<z.ZodObject<{
196
+ answer: z.ZodDefault<z.ZodArray<z.ZodString>>;
197
+ meta: z.ZodObject<{
755
198
  schemaVersion: z.ZodDefault<z.ZodString>;
756
- }, "strip", z.ZodTypeAny, {
757
- schemaVersion: string;
758
- }, {
759
- schemaVersion?: string | undefined;
760
- }>>;
761
- } & {
199
+ }, z.core.$strip>;
200
+ }, z.core.$strip>, z.ZodObject<{
762
201
  type: z.ZodLiteral<"number">;
763
202
  answer: z.ZodDefault<z.ZodNumber>;
764
- }, "strip", z.ZodTypeAny, {
765
- type: "number";
766
- meta: {
767
- schemaVersion: string;
768
- };
769
- answer: number;
770
- }, {
771
- type: "number";
772
- meta?: {
773
- schemaVersion?: string | undefined;
774
- } | undefined;
775
- answer?: number | undefined;
776
- }>, z.ZodObject<{
777
- meta: z.ZodDefault<z.ZodObject<{
203
+ meta: z.ZodObject<{
778
204
  schemaVersion: z.ZodDefault<z.ZodString>;
779
- }, "strip", z.ZodTypeAny, {
780
- schemaVersion: string;
781
- }, {
782
- schemaVersion?: string | undefined;
783
- }>>;
784
- } & {
205
+ }, z.core.$strip>;
206
+ }, z.core.$strip>, z.ZodObject<{
785
207
  type: z.ZodLiteral<"numberWithContext">;
786
208
  answer: z.ZodObject<{
787
209
  value: z.ZodDefault<z.ZodNumber>;
788
210
  context: z.ZodDefault<z.ZodString>;
789
- }, "strip", z.ZodTypeAny, {
790
- value: number;
791
- context: string;
792
- }, {
793
- value?: number | undefined;
794
- context?: string | undefined;
795
- }>;
796
- }, "strip", z.ZodTypeAny, {
797
- type: "numberWithContext";
798
- meta: {
799
- schemaVersion: string;
800
- };
801
- answer: {
802
- value: number;
803
- context: string;
804
- };
805
- }, {
806
- type: "numberWithContext";
807
- answer: {
808
- value?: number | undefined;
809
- context?: string | undefined;
810
- };
811
- meta?: {
812
- schemaVersion?: string | undefined;
813
- } | undefined;
814
- }>, z.ZodObject<{
815
- meta: z.ZodDefault<z.ZodObject<{
211
+ }, z.core.$strip>;
212
+ meta: z.ZodObject<{
816
213
  schemaVersion: z.ZodDefault<z.ZodString>;
817
- }, "strip", z.ZodTypeAny, {
818
- schemaVersion: string;
819
- }, {
820
- schemaVersion?: string | undefined;
821
- }>>;
822
- } & {
214
+ }, z.core.$strip>;
215
+ }, z.core.$strip>, z.ZodObject<{
823
216
  type: z.ZodLiteral<"radioButtons">;
824
217
  answer: z.ZodDefault<z.ZodString>;
825
- }, "strip", z.ZodTypeAny, {
826
- type: "radioButtons";
827
- meta: {
828
- schemaVersion: string;
829
- };
830
- answer: string;
831
- }, {
832
- type: "radioButtons";
833
- meta?: {
834
- schemaVersion?: string | undefined;
835
- } | undefined;
836
- answer?: string | undefined;
837
- }>, z.ZodObject<{
838
- meta: z.ZodDefault<z.ZodObject<{
218
+ meta: z.ZodObject<{
839
219
  schemaVersion: z.ZodDefault<z.ZodString>;
840
- }, "strip", z.ZodTypeAny, {
841
- schemaVersion: string;
842
- }, {
843
- schemaVersion?: string | undefined;
844
- }>>;
845
- } & {
220
+ }, z.core.$strip>;
221
+ }, z.core.$strip>, z.ZodObject<{
846
222
  type: z.ZodLiteral<"repositorySearch">;
847
- answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
223
+ answer: z.ZodDefault<z.ZodArray<z.ZodObject<{
848
224
  repositoryId: z.ZodDefault<z.ZodString>;
849
225
  repositoryName: z.ZodDefault<z.ZodString>;
850
- }, "strip", z.ZodTypeAny, {
851
- repositoryId: string;
852
- repositoryName: string;
853
- }, {
854
- repositoryId?: string | undefined;
855
- repositoryName?: string | undefined;
856
- }>>, "many">>;
857
- }, "strip", z.ZodTypeAny, {
858
- type: "repositorySearch";
859
- meta: {
860
- schemaVersion: string;
861
- };
862
- answer: {
863
- repositoryId: string;
864
- repositoryName: string;
865
- }[];
866
- }, {
867
- type: "repositorySearch";
868
- meta?: {
869
- schemaVersion?: string | undefined;
870
- } | undefined;
871
- answer?: ({
872
- repositoryId?: string | undefined;
873
- repositoryName?: string | undefined;
874
- } | undefined)[] | undefined;
875
- }>, z.ZodObject<{
876
- meta: z.ZodDefault<z.ZodObject<{
226
+ }, z.core.$strip>>>;
227
+ meta: z.ZodObject<{
877
228
  schemaVersion: z.ZodDefault<z.ZodString>;
878
- }, "strip", z.ZodTypeAny, {
879
- schemaVersion: string;
880
- }, {
881
- schemaVersion?: string | undefined;
882
- }>>;
883
- } & {
229
+ }, z.core.$strip>;
230
+ }, z.core.$strip>, z.ZodObject<{
884
231
  type: z.ZodLiteral<"selectBox">;
885
232
  answer: z.ZodDefault<z.ZodString>;
886
- }, "strip", z.ZodTypeAny, {
887
- type: "selectBox";
888
- meta: {
889
- schemaVersion: string;
890
- };
891
- answer: string;
892
- }, {
893
- type: "selectBox";
894
- meta?: {
895
- schemaVersion?: string | undefined;
896
- } | undefined;
897
- answer?: string | undefined;
898
- }>, z.ZodObject<{
899
- meta: z.ZodDefault<z.ZodObject<{
233
+ meta: z.ZodObject<{
900
234
  schemaVersion: z.ZodDefault<z.ZodString>;
901
- }, "strip", z.ZodTypeAny, {
902
- schemaVersion: string;
903
- }, {
904
- schemaVersion?: string | undefined;
905
- }>>;
906
- } & {
235
+ }, z.core.$strip>;
236
+ }, z.core.$strip>, z.ZodObject<{
907
237
  type: z.ZodLiteral<"text">;
908
238
  answer: z.ZodDefault<z.ZodString>;
909
- }, "strip", z.ZodTypeAny, {
910
- type: "text";
911
- meta: {
912
- schemaVersion: string;
913
- };
914
- answer: string;
915
- }, {
916
- type: "text";
917
- meta?: {
918
- schemaVersion?: string | undefined;
919
- } | undefined;
920
- answer?: string | undefined;
921
- }>, z.ZodObject<{
922
- meta: z.ZodDefault<z.ZodObject<{
239
+ meta: z.ZodObject<{
923
240
  schemaVersion: z.ZodDefault<z.ZodString>;
924
- }, "strip", z.ZodTypeAny, {
925
- schemaVersion: string;
926
- }, {
927
- schemaVersion?: string | undefined;
928
- }>>;
929
- } & {
241
+ }, z.core.$strip>;
242
+ }, z.core.$strip>, z.ZodObject<{
930
243
  type: z.ZodLiteral<"textArea">;
931
244
  answer: z.ZodDefault<z.ZodString>;
932
- }, "strip", z.ZodTypeAny, {
933
- type: "textArea";
934
- meta: {
935
- schemaVersion: string;
936
- };
937
- answer: string;
938
- }, {
939
- type: "textArea";
940
- meta?: {
941
- schemaVersion?: string | undefined;
942
- } | undefined;
943
- answer?: string | undefined;
944
- }>, z.ZodObject<{
945
- meta: z.ZodDefault<z.ZodObject<{
245
+ meta: z.ZodObject<{
946
246
  schemaVersion: z.ZodDefault<z.ZodString>;
947
- }, "strip", z.ZodTypeAny, {
948
- schemaVersion: string;
949
- }, {
950
- schemaVersion?: string | undefined;
951
- }>>;
952
- } & {
247
+ }, z.core.$strip>;
248
+ }, z.core.$strip>, z.ZodObject<{
953
249
  type: z.ZodLiteral<"url">;
954
250
  answer: z.ZodDefault<z.ZodString>;
955
- }, "strip", z.ZodTypeAny, {
956
- type: "url";
957
- meta: {
958
- schemaVersion: string;
959
- };
960
- answer: string;
961
- }, {
962
- type: "url";
963
- meta?: {
964
- schemaVersion?: string | undefined;
965
- } | undefined;
966
- answer?: string | undefined;
967
- }>]>, "many">;
968
- }, "strip", z.ZodTypeAny, {
969
- columns: ({
970
- type: "date";
971
- meta: {
972
- schemaVersion: string;
973
- };
974
- answer: string;
975
- } | {
976
- type: "dateRange";
977
- meta: {
978
- schemaVersion: string;
979
- };
980
- answer: {
981
- start: string;
982
- end: string;
983
- };
984
- } | {
985
- type: "affiliationSearch";
986
- meta: {
987
- schemaVersion: string;
988
- };
989
- answer: {
990
- affiliationId: string;
991
- affiliationName: string;
992
- };
993
- } | {
994
- type: "licenseSearch";
995
- meta: {
996
- schemaVersion: string;
997
- };
998
- answer: {
999
- licenseId: string;
1000
- licenseName: string;
1001
- }[];
1002
- } | {
1003
- type: "metadataStandardSearch";
1004
- meta: {
1005
- schemaVersion: string;
1006
- };
1007
- answer: {
1008
- metadataStandardId: string;
1009
- metadataStandardName: string;
1010
- }[];
1011
- } | {
1012
- type: "repositorySearch";
1013
- meta: {
1014
- schemaVersion: string;
1015
- };
1016
- answer: {
1017
- repositoryId: string;
1018
- repositoryName: string;
1019
- }[];
1020
- } | {
1021
- type: "boolean";
1022
- meta: {
1023
- schemaVersion: string;
1024
- };
1025
- answer: boolean;
1026
- } | {
1027
- type: "checkBoxes";
1028
- meta: {
1029
- schemaVersion: string;
1030
- };
1031
- answer: string[];
1032
- } | {
1033
- type: "radioButtons";
1034
- meta: {
1035
- schemaVersion: string;
1036
- };
1037
- answer: string;
1038
- } | {
1039
- type: "selectBox";
1040
- meta: {
1041
- schemaVersion: string;
1042
- };
1043
- answer: string;
1044
- } | {
1045
- type: "multiselectBox";
1046
- meta: {
1047
- schemaVersion: string;
1048
- };
1049
- answer: string[];
1050
- } | {
1051
- type: "currency";
1052
- meta: {
1053
- schemaVersion: string;
1054
- };
1055
- answer: number;
1056
- } | {
1057
- type: "number";
1058
- meta: {
1059
- schemaVersion: string;
1060
- };
1061
- answer: number;
1062
- } | {
1063
- type: "numberWithContext";
1064
- meta: {
1065
- schemaVersion: string;
1066
- };
1067
- answer: {
1068
- value: number;
1069
- context: string;
1070
- };
1071
- } | {
1072
- type: "email";
1073
- meta: {
1074
- schemaVersion: string;
1075
- };
1076
- answer: string;
1077
- } | {
1078
- type: "text";
1079
- meta: {
1080
- schemaVersion: string;
1081
- };
1082
- answer: string;
1083
- } | {
1084
- type: "textArea";
1085
- meta: {
1086
- schemaVersion: string;
1087
- };
1088
- answer: string;
1089
- } | {
1090
- type: "url";
1091
- meta: {
1092
- schemaVersion: string;
1093
- };
1094
- answer: string;
1095
- })[];
1096
- }, {
1097
- columns: ({
1098
- type: "date";
1099
- meta?: {
1100
- schemaVersion?: string | undefined;
1101
- } | undefined;
1102
- answer?: string | undefined;
1103
- } | {
1104
- type: "dateRange";
1105
- meta?: {
1106
- schemaVersion?: string | undefined;
1107
- } | undefined;
1108
- answer?: {
1109
- start?: string | undefined;
1110
- end?: string | undefined;
1111
- } | undefined;
1112
- } | {
1113
- type: "affiliationSearch";
1114
- meta?: {
1115
- schemaVersion?: string | undefined;
1116
- } | undefined;
1117
- answer?: {
1118
- affiliationId?: string | undefined;
1119
- affiliationName?: string | undefined;
1120
- } | undefined;
1121
- } | {
1122
- type: "licenseSearch";
1123
- meta?: {
1124
- schemaVersion?: string | undefined;
1125
- } | undefined;
1126
- answer?: ({
1127
- licenseId?: string | undefined;
1128
- licenseName?: string | undefined;
1129
- } | undefined)[] | undefined;
1130
- } | {
1131
- type: "metadataStandardSearch";
1132
- meta?: {
1133
- schemaVersion?: string | undefined;
1134
- } | undefined;
1135
- answer?: ({
1136
- metadataStandardId?: string | undefined;
1137
- metadataStandardName?: string | undefined;
1138
- } | undefined)[] | undefined;
1139
- } | {
1140
- type: "repositorySearch";
1141
- meta?: {
1142
- schemaVersion?: string | undefined;
1143
- } | undefined;
1144
- answer?: ({
1145
- repositoryId?: string | undefined;
1146
- repositoryName?: string | undefined;
1147
- } | undefined)[] | undefined;
1148
- } | {
1149
- type: "boolean";
1150
- meta?: {
1151
- schemaVersion?: string | undefined;
1152
- } | undefined;
1153
- answer?: boolean | undefined;
1154
- } | {
1155
- type: "checkBoxes";
1156
- meta?: {
1157
- schemaVersion?: string | undefined;
1158
- } | undefined;
1159
- answer?: string[] | undefined;
1160
- } | {
1161
- type: "radioButtons";
1162
- meta?: {
1163
- schemaVersion?: string | undefined;
1164
- } | undefined;
1165
- answer?: string | undefined;
1166
- } | {
1167
- type: "selectBox";
1168
- meta?: {
1169
- schemaVersion?: string | undefined;
1170
- } | undefined;
1171
- answer?: string | undefined;
1172
- } | {
1173
- type: "multiselectBox";
1174
- meta?: {
1175
- schemaVersion?: string | undefined;
1176
- } | undefined;
1177
- answer?: string[] | undefined;
1178
- } | {
1179
- type: "currency";
1180
- meta?: {
1181
- schemaVersion?: string | undefined;
1182
- } | undefined;
1183
- answer?: number | undefined;
1184
- } | {
1185
- type: "number";
1186
- meta?: {
1187
- schemaVersion?: string | undefined;
1188
- } | undefined;
1189
- answer?: number | undefined;
1190
- } | {
1191
- type: "numberWithContext";
1192
- answer: {
1193
- value?: number | undefined;
1194
- context?: string | undefined;
1195
- };
1196
- meta?: {
1197
- schemaVersion?: string | undefined;
1198
- } | undefined;
1199
- } | {
1200
- type: "email";
1201
- meta?: {
1202
- schemaVersion?: string | undefined;
1203
- } | undefined;
1204
- answer?: string | undefined;
1205
- } | {
1206
- type: "text";
1207
- meta?: {
1208
- schemaVersion?: string | undefined;
1209
- } | undefined;
1210
- answer?: string | undefined;
1211
- } | {
1212
- type: "textArea";
1213
- meta?: {
1214
- schemaVersion?: string | undefined;
1215
- } | undefined;
1216
- answer?: string | undefined;
1217
- } | {
1218
- type: "url";
1219
- meta?: {
1220
- schemaVersion?: string | undefined;
1221
- } | undefined;
1222
- answer?: string | undefined;
1223
- })[];
1224
- }>, "many">>;
1225
- }, "strip", z.ZodTypeAny, {
1226
- type: "table";
1227
- meta: {
1228
- schemaVersion: string;
1229
- };
1230
- answer: {
1231
- columns: ({
1232
- type: "date";
1233
- meta: {
1234
- schemaVersion: string;
1235
- };
1236
- answer: string;
1237
- } | {
1238
- type: "dateRange";
1239
- meta: {
1240
- schemaVersion: string;
1241
- };
1242
- answer: {
1243
- start: string;
1244
- end: string;
1245
- };
1246
- } | {
1247
- type: "affiliationSearch";
1248
- meta: {
1249
- schemaVersion: string;
1250
- };
1251
- answer: {
1252
- affiliationId: string;
1253
- affiliationName: string;
1254
- };
1255
- } | {
1256
- type: "licenseSearch";
1257
- meta: {
1258
- schemaVersion: string;
1259
- };
1260
- answer: {
1261
- licenseId: string;
1262
- licenseName: string;
1263
- }[];
1264
- } | {
1265
- type: "metadataStandardSearch";
1266
- meta: {
1267
- schemaVersion: string;
1268
- };
1269
- answer: {
1270
- metadataStandardId: string;
1271
- metadataStandardName: string;
1272
- }[];
1273
- } | {
1274
- type: "repositorySearch";
1275
- meta: {
1276
- schemaVersion: string;
1277
- };
1278
- answer: {
1279
- repositoryId: string;
1280
- repositoryName: string;
1281
- }[];
1282
- } | {
1283
- type: "boolean";
1284
- meta: {
1285
- schemaVersion: string;
1286
- };
1287
- answer: boolean;
1288
- } | {
1289
- type: "checkBoxes";
1290
- meta: {
1291
- schemaVersion: string;
1292
- };
1293
- answer: string[];
1294
- } | {
1295
- type: "radioButtons";
1296
- meta: {
1297
- schemaVersion: string;
1298
- };
1299
- answer: string;
1300
- } | {
1301
- type: "selectBox";
1302
- meta: {
1303
- schemaVersion: string;
1304
- };
1305
- answer: string;
1306
- } | {
1307
- type: "multiselectBox";
1308
- meta: {
1309
- schemaVersion: string;
1310
- };
1311
- answer: string[];
1312
- } | {
1313
- type: "currency";
1314
- meta: {
1315
- schemaVersion: string;
1316
- };
1317
- answer: number;
1318
- } | {
1319
- type: "number";
1320
- meta: {
1321
- schemaVersion: string;
1322
- };
1323
- answer: number;
1324
- } | {
1325
- type: "numberWithContext";
1326
- meta: {
1327
- schemaVersion: string;
1328
- };
1329
- answer: {
1330
- value: number;
1331
- context: string;
1332
- };
1333
- } | {
1334
- type: "email";
1335
- meta: {
1336
- schemaVersion: string;
1337
- };
1338
- answer: string;
1339
- } | {
1340
- type: "text";
1341
- meta: {
1342
- schemaVersion: string;
1343
- };
1344
- answer: string;
1345
- } | {
1346
- type: "textArea";
1347
- meta: {
1348
- schemaVersion: string;
1349
- };
1350
- answer: string;
1351
- } | {
1352
- type: "url";
1353
- meta: {
1354
- schemaVersion: string;
1355
- };
1356
- answer: string;
1357
- })[];
1358
- }[];
1359
- columnHeadings: string[];
1360
- }, {
1361
- type: "table";
1362
- meta?: {
1363
- schemaVersion?: string | undefined;
1364
- } | undefined;
1365
- answer?: {
1366
- columns: ({
1367
- type: "date";
1368
- meta?: {
1369
- schemaVersion?: string | undefined;
1370
- } | undefined;
1371
- answer?: string | undefined;
1372
- } | {
1373
- type: "dateRange";
1374
- meta?: {
1375
- schemaVersion?: string | undefined;
1376
- } | undefined;
1377
- answer?: {
1378
- start?: string | undefined;
1379
- end?: string | undefined;
1380
- } | undefined;
1381
- } | {
1382
- type: "affiliationSearch";
1383
- meta?: {
1384
- schemaVersion?: string | undefined;
1385
- } | undefined;
1386
- answer?: {
1387
- affiliationId?: string | undefined;
1388
- affiliationName?: string | undefined;
1389
- } | undefined;
1390
- } | {
1391
- type: "licenseSearch";
1392
- meta?: {
1393
- schemaVersion?: string | undefined;
1394
- } | undefined;
1395
- answer?: ({
1396
- licenseId?: string | undefined;
1397
- licenseName?: string | undefined;
1398
- } | undefined)[] | undefined;
1399
- } | {
1400
- type: "metadataStandardSearch";
1401
- meta?: {
1402
- schemaVersion?: string | undefined;
1403
- } | undefined;
1404
- answer?: ({
1405
- metadataStandardId?: string | undefined;
1406
- metadataStandardName?: string | undefined;
1407
- } | undefined)[] | undefined;
1408
- } | {
1409
- type: "repositorySearch";
1410
- meta?: {
1411
- schemaVersion?: string | undefined;
1412
- } | undefined;
1413
- answer?: ({
1414
- repositoryId?: string | undefined;
1415
- repositoryName?: string | undefined;
1416
- } | undefined)[] | undefined;
1417
- } | {
1418
- type: "boolean";
1419
- meta?: {
1420
- schemaVersion?: string | undefined;
1421
- } | undefined;
1422
- answer?: boolean | undefined;
1423
- } | {
1424
- type: "checkBoxes";
1425
- meta?: {
1426
- schemaVersion?: string | undefined;
1427
- } | undefined;
1428
- answer?: string[] | undefined;
1429
- } | {
1430
- type: "radioButtons";
1431
- meta?: {
1432
- schemaVersion?: string | undefined;
1433
- } | undefined;
1434
- answer?: string | undefined;
1435
- } | {
1436
- type: "selectBox";
1437
- meta?: {
1438
- schemaVersion?: string | undefined;
1439
- } | undefined;
1440
- answer?: string | undefined;
1441
- } | {
1442
- type: "multiselectBox";
1443
- meta?: {
1444
- schemaVersion?: string | undefined;
1445
- } | undefined;
1446
- answer?: string[] | undefined;
1447
- } | {
1448
- type: "currency";
1449
- meta?: {
1450
- schemaVersion?: string | undefined;
1451
- } | undefined;
1452
- answer?: number | undefined;
1453
- } | {
1454
- type: "number";
1455
- meta?: {
1456
- schemaVersion?: string | undefined;
1457
- } | undefined;
1458
- answer?: number | undefined;
1459
- } | {
1460
- type: "numberWithContext";
1461
- answer: {
1462
- value?: number | undefined;
1463
- context?: string | undefined;
1464
- };
1465
- meta?: {
1466
- schemaVersion?: string | undefined;
1467
- } | undefined;
1468
- } | {
1469
- type: "email";
1470
- meta?: {
1471
- schemaVersion?: string | undefined;
1472
- } | undefined;
1473
- answer?: string | undefined;
1474
- } | {
1475
- type: "text";
1476
- meta?: {
1477
- schemaVersion?: string | undefined;
1478
- } | undefined;
1479
- answer?: string | undefined;
1480
- } | {
1481
- type: "textArea";
1482
- meta?: {
1483
- schemaVersion?: string | undefined;
1484
- } | undefined;
1485
- answer?: string | undefined;
1486
- } | {
1487
- type: "url";
1488
- meta?: {
1489
- schemaVersion?: string | undefined;
1490
- } | undefined;
1491
- answer?: string | undefined;
1492
- })[];
1493
- }[] | undefined;
1494
- columnHeadings?: string[] | undefined;
1495
- }>, z.ZodObject<{
1496
- meta: z.ZodDefault<z.ZodObject<{
251
+ meta: z.ZodObject<{
252
+ schemaVersion: z.ZodDefault<z.ZodString>;
253
+ }, z.core.$strip>;
254
+ }, z.core.$strip>], "type">>;
255
+ }, z.core.$strip>>;
256
+ meta: z.ZodObject<{
1497
257
  schemaVersion: z.ZodDefault<z.ZodString>;
1498
- }, "strip", z.ZodTypeAny, {
1499
- schemaVersion: string;
1500
- }, {
1501
- schemaVersion?: string | undefined;
1502
- }>>;
1503
- } & {
258
+ }, z.core.$strip>;
259
+ }, z.core.$strip>, z.ZodObject<{
1504
260
  type: z.ZodLiteral<"text">;
1505
261
  answer: z.ZodDefault<z.ZodString>;
1506
- }, "strip", z.ZodTypeAny, {
1507
- type: "text";
1508
- meta: {
1509
- schemaVersion: string;
1510
- };
1511
- answer: string;
1512
- }, {
1513
- type: "text";
1514
- meta?: {
1515
- schemaVersion?: string | undefined;
1516
- } | undefined;
1517
- answer?: string | undefined;
1518
- }>, z.ZodObject<{
1519
- meta: z.ZodDefault<z.ZodObject<{
262
+ meta: z.ZodObject<{
1520
263
  schemaVersion: z.ZodDefault<z.ZodString>;
1521
- }, "strip", z.ZodTypeAny, {
1522
- schemaVersion: string;
1523
- }, {
1524
- schemaVersion?: string | undefined;
1525
- }>>;
1526
- } & {
264
+ }, z.core.$strip>;
265
+ }, z.core.$strip>, z.ZodObject<{
1527
266
  type: z.ZodLiteral<"textArea">;
1528
267
  answer: z.ZodDefault<z.ZodString>;
1529
- }, "strip", z.ZodTypeAny, {
1530
- type: "textArea";
1531
- meta: {
1532
- schemaVersion: string;
1533
- };
1534
- answer: string;
1535
- }, {
1536
- type: "textArea";
1537
- meta?: {
1538
- schemaVersion?: string | undefined;
1539
- } | undefined;
1540
- answer?: string | undefined;
1541
- }>, z.ZodObject<{
1542
- meta: z.ZodDefault<z.ZodObject<{
268
+ meta: z.ZodObject<{
1543
269
  schemaVersion: z.ZodDefault<z.ZodString>;
1544
- }, "strip", z.ZodTypeAny, {
1545
- schemaVersion: string;
1546
- }, {
1547
- schemaVersion?: string | undefined;
1548
- }>>;
1549
- } & {
270
+ }, z.core.$strip>;
271
+ }, z.core.$strip>, z.ZodObject<{
1550
272
  type: z.ZodLiteral<"url">;
1551
273
  answer: z.ZodDefault<z.ZodString>;
1552
- }, "strip", z.ZodTypeAny, {
1553
- type: "url";
1554
- meta: {
1555
- schemaVersion: string;
1556
- };
1557
- answer: string;
1558
- }, {
1559
- type: "url";
1560
- meta?: {
1561
- schemaVersion?: string | undefined;
1562
- } | undefined;
1563
- answer?: string | undefined;
1564
- }>]>;
274
+ meta: z.ZodObject<{
275
+ schemaVersion: z.ZodDefault<z.ZodString>;
276
+ }, z.core.$strip>;
277
+ }, z.core.$strip>], "type">;
278
+ export declare const AnyAnswerJSONSchema: z.core.JSONSchema.JSONSchema;
1565
279
  export declare const AnswerSchemaMap: Record<z.infer<typeof QuestionFormatsEnum>, z.ZodTypeAny>;
1566
280
  export type AnyAnswerType = z.infer<typeof AnyAnswerSchema>;
1567
281
  export interface AnswerTypeMap {
@@ -1587,3 +301,5 @@ export interface AnswerTypeMap {
1587
301
  textArea: TextAreaAnswerType;
1588
302
  url: URLAnswerType;
1589
303
  }
304
+ export type AllDefaultAnswerTypes = typeof DefaultAffiliationSearchAnswer | typeof DefaultBooleanAnswer | typeof DefaultCheckboxesAnswer | typeof DefaultCurrencyAnswer | typeof DefaultDateAnswer | typeof DefaultDateRangeAnswer | typeof DefaultEmailAnswer | typeof DefaultLicenseSearchAnswer | typeof DefaultMetadataStandardSearchAnswer | typeof DefaultMultiselectBoxAnswer | typeof DefaultNumberAnswer | typeof DefaultNumberRangeAnswer | typeof DefaultNumberWithContextAnswer | typeof DefaultRadioButtonsAnswer | typeof DefaultRepositorySearchAnswer | typeof DefaultResearchOutputTableAnswer | typeof DefaultSelectBoxAnswer | typeof DefaultTableAnswer | typeof DefaultTextAnswer | typeof DefaultTextAreaAnswer | typeof DefaultURLAnswer;
305
+ export declare const AnswerDefaultMap: Record<z.infer<typeof QuestionFormatsEnum>, AllDefaultAnswerTypes>;