@dmptool/types 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/answers/__tests__/answers.spec.js +122 -6
- package/dist/answers/answer.d.ts +3 -3
- package/dist/answers/graphQLAnswers.d.ts +120 -25
- package/dist/answers/graphQLAnswers.js +22 -5
- package/dist/answers/index.d.ts +498 -31
- package/dist/answers/index.js +11 -2
- package/dist/answers/numberAnswers.d.ts +40 -0
- package/dist/answers/numberAnswers.js +8 -1
- package/dist/answers/tableAnswers.d.ts +1688 -75
- package/dist/answers/tableAnswers.js +63 -2
- package/dist/questions/__tests__/graphQLQuestions.spec.js +177 -39
- package/dist/questions/__tests__/numberQuestions.spec.js +36 -0
- package/dist/questions/__tests__/tableQuestion.spec.js +145 -0
- package/dist/questions/__tests__/usage.spec.js +162 -1
- package/dist/questions/graphQLQuestions.d.ts +420 -60
- package/dist/questions/graphQLQuestions.js +257 -11
- package/dist/questions/index.d.ts +4849 -189
- package/dist/questions/index.js +9 -2
- package/dist/questions/numberQuestions.d.ts +105 -0
- package/dist/questions/numberQuestions.js +12 -1
- package/dist/questions/question.d.ts +4 -4
- package/dist/questions/question.js +25 -4
- package/dist/questions/tableQuestions.d.ts +5930 -679
- package/dist/questions/tableQuestions.js +175 -3
- package/dist/schemas/anyAnswer.schema.json +226 -69
- package/dist/schemas/anyQuestion.schema.json +829 -101
- package/dist/schemas/anyTableColumnAnswer.schema.json +116 -5
- package/dist/schemas/anyTableColumnQuestion.schema.json +326 -24
- package/dist/schemas/licenseSearchAnswer.schema.json +49 -0
- package/dist/schemas/licenseSearchQuestion.schema.json +164 -0
- package/dist/schemas/metadataStandardSearchAnswer.schema.json +49 -0
- package/dist/schemas/metadataStandardSearchQuestion.schema.json +174 -0
- package/dist/schemas/numberWithContextAnswer.schema.json +45 -0
- package/dist/schemas/numberWithContextQuestion.schema.json +84 -0
- package/dist/schemas/repositorySearchAnswer.schema.json +49 -0
- package/dist/schemas/repositorySearchQuestion.schema.json +180 -0
- package/dist/schemas/researchOutputTableAnswer.schema.json +519 -0
- package/dist/schemas/researchOutputTableQuestion.schema.json +1183 -0
- package/dist/schemas/tableAnswer.schema.json +116 -5
- package/dist/schemas/tableQuestion.schema.json +348 -24
- package/package.json +9 -5
package/dist/answers/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DateAnswerType, DateRangeAnswerType } from './dateAnswers';
|
|
3
|
-
import { AffiliationSearchAnswerType } from './graphQLAnswers';
|
|
3
|
+
import { AffiliationSearchAnswerType, LicenseSearchAnswerType, MetadataStandardSearchAnswerType, RepositorySearchAnswerType } from './graphQLAnswers';
|
|
4
4
|
import { BooleanAnswerType, CheckboxesAnswerType, RadioButtonsAnswerType, SelectBoxAnswerType, MultiselectBoxAnswerType } from './optionBasedAnswers';
|
|
5
|
-
import { CurrencyAnswerType, NumberAnswerType, NumberRangeAnswerType } from './numberAnswers';
|
|
6
|
-
import { TableAnswerType } from './tableAnswers';
|
|
5
|
+
import { CurrencyAnswerType, NumberAnswerType, NumberRangeAnswerType, NumberWithContextAnswerType } from './numberAnswers';
|
|
6
|
+
import { ResearchOutputTableAnswerType, TableAnswerType } from './tableAnswers';
|
|
7
7
|
import { EmailAnswerType, TextAnswerType, TextAreaAnswerType, URLAnswerType } from './textAnswers';
|
|
8
8
|
import { QuestionFormatsEnum } from '../questions';
|
|
9
9
|
export * from './answer';
|
|
@@ -21,6 +21,44 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
21
21
|
}, {
|
|
22
22
|
schemaVersion?: string | undefined;
|
|
23
23
|
}>>;
|
|
24
|
+
} & {
|
|
25
|
+
type: z.ZodLiteral<"affiliationSearch">;
|
|
26
|
+
answer: z.ZodDefault<z.ZodObject<{
|
|
27
|
+
affiliationId: z.ZodDefault<z.ZodString>;
|
|
28
|
+
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<{
|
|
56
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
schemaVersion: string;
|
|
59
|
+
}, {
|
|
60
|
+
schemaVersion?: string | undefined;
|
|
61
|
+
}>>;
|
|
24
62
|
} & {
|
|
25
63
|
type: z.ZodLiteral<"boolean">;
|
|
26
64
|
answer: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -174,6 +212,105 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
174
212
|
}, {
|
|
175
213
|
schemaVersion?: string | undefined;
|
|
176
214
|
}>>;
|
|
215
|
+
} & {
|
|
216
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
217
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
|
|
218
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
219
|
+
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<{
|
|
247
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
schemaVersion: string;
|
|
250
|
+
}, {
|
|
251
|
+
schemaVersion?: string | undefined;
|
|
252
|
+
}>>;
|
|
253
|
+
} & {
|
|
254
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
255
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
|
|
256
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
257
|
+
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<{
|
|
285
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
schemaVersion: string;
|
|
288
|
+
}, {
|
|
289
|
+
schemaVersion?: string | undefined;
|
|
290
|
+
}>>;
|
|
291
|
+
} & {
|
|
292
|
+
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<{
|
|
308
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
schemaVersion: string;
|
|
311
|
+
}, {
|
|
312
|
+
schemaVersion?: string | undefined;
|
|
313
|
+
}>>;
|
|
177
314
|
} & {
|
|
178
315
|
type: z.ZodLiteral<"number">;
|
|
179
316
|
answer: z.ZodDefault<z.ZodNumber>;
|
|
@@ -197,6 +334,44 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
197
334
|
}, {
|
|
198
335
|
schemaVersion?: string | undefined;
|
|
199
336
|
}>>;
|
|
337
|
+
} & {
|
|
338
|
+
type: z.ZodLiteral<"numberRange">;
|
|
339
|
+
answer: z.ZodDefault<z.ZodObject<{
|
|
340
|
+
start: z.ZodDefault<z.ZodNumber>;
|
|
341
|
+
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<{
|
|
369
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
370
|
+
}, "strip", z.ZodTypeAny, {
|
|
371
|
+
schemaVersion: string;
|
|
372
|
+
}, {
|
|
373
|
+
schemaVersion?: string | undefined;
|
|
374
|
+
}>>;
|
|
200
375
|
} & {
|
|
201
376
|
type: z.ZodLiteral<"radioButtons">;
|
|
202
377
|
answer: z.ZodDefault<z.ZodString>;
|
|
@@ -220,6 +395,44 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
220
395
|
}, {
|
|
221
396
|
schemaVersion?: string | undefined;
|
|
222
397
|
}>>;
|
|
398
|
+
} & {
|
|
399
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
400
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
|
|
401
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
402
|
+
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<{
|
|
430
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
|
432
|
+
schemaVersion: string;
|
|
433
|
+
}, {
|
|
434
|
+
schemaVersion?: string | undefined;
|
|
435
|
+
}>>;
|
|
223
436
|
} & {
|
|
224
437
|
type: z.ZodLiteral<"selectBox">;
|
|
225
438
|
answer: z.ZodDefault<z.ZodString>;
|
|
@@ -447,20 +660,73 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
447
660
|
schemaVersion?: string | undefined;
|
|
448
661
|
}>>;
|
|
449
662
|
} & {
|
|
450
|
-
type: z.ZodLiteral<"
|
|
451
|
-
answer: z.ZodDefault<z.ZodArray<z.
|
|
663
|
+
type: z.ZodLiteral<"licenseSearch">;
|
|
664
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
|
|
665
|
+
licenseId: z.ZodDefault<z.ZodString>;
|
|
666
|
+
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">>;
|
|
452
674
|
}, "strip", z.ZodTypeAny, {
|
|
453
|
-
type: "
|
|
675
|
+
type: "licenseSearch";
|
|
454
676
|
meta: {
|
|
455
677
|
schemaVersion: string;
|
|
456
678
|
};
|
|
457
|
-
answer:
|
|
679
|
+
answer: {
|
|
680
|
+
licenseId: string;
|
|
681
|
+
licenseName: string;
|
|
682
|
+
}[];
|
|
458
683
|
}, {
|
|
459
|
-
type: "
|
|
684
|
+
type: "licenseSearch";
|
|
460
685
|
meta?: {
|
|
461
686
|
schemaVersion?: string | undefined;
|
|
462
687
|
} | undefined;
|
|
463
|
-
answer?:
|
|
688
|
+
answer?: ({
|
|
689
|
+
licenseId?: string | undefined;
|
|
690
|
+
licenseName?: string | undefined;
|
|
691
|
+
} | undefined)[] | undefined;
|
|
692
|
+
}>, z.ZodObject<{
|
|
693
|
+
meta: z.ZodDefault<z.ZodObject<{
|
|
694
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
695
|
+
}, "strip", z.ZodTypeAny, {
|
|
696
|
+
schemaVersion: string;
|
|
697
|
+
}, {
|
|
698
|
+
schemaVersion?: string | undefined;
|
|
699
|
+
}>>;
|
|
700
|
+
} & {
|
|
701
|
+
type: z.ZodLiteral<"metadataStandardSearch">;
|
|
702
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
|
|
703
|
+
metadataStandardId: z.ZodDefault<z.ZodString>;
|
|
704
|
+
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;
|
|
464
730
|
}>, z.ZodObject<{
|
|
465
731
|
meta: z.ZodDefault<z.ZodObject<{
|
|
466
732
|
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
@@ -515,6 +781,44 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
515
781
|
}, {
|
|
516
782
|
schemaVersion?: string | undefined;
|
|
517
783
|
}>>;
|
|
784
|
+
} & {
|
|
785
|
+
type: z.ZodLiteral<"numberWithContext">;
|
|
786
|
+
answer: z.ZodObject<{
|
|
787
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
788
|
+
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<{
|
|
816
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
817
|
+
}, "strip", z.ZodTypeAny, {
|
|
818
|
+
schemaVersion: string;
|
|
819
|
+
}, {
|
|
820
|
+
schemaVersion?: string | undefined;
|
|
821
|
+
}>>;
|
|
518
822
|
} & {
|
|
519
823
|
type: z.ZodLiteral<"radioButtons">;
|
|
520
824
|
answer: z.ZodDefault<z.ZodString>;
|
|
@@ -538,6 +842,44 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
538
842
|
}, {
|
|
539
843
|
schemaVersion?: string | undefined;
|
|
540
844
|
}>>;
|
|
845
|
+
} & {
|
|
846
|
+
type: z.ZodLiteral<"repositorySearch">;
|
|
847
|
+
answer: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodObject<{
|
|
848
|
+
repositoryId: z.ZodDefault<z.ZodString>;
|
|
849
|
+
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<{
|
|
877
|
+
schemaVersion: z.ZodDefault<z.ZodString>;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
schemaVersion: string;
|
|
880
|
+
}, {
|
|
881
|
+
schemaVersion?: string | undefined;
|
|
882
|
+
}>>;
|
|
541
883
|
} & {
|
|
542
884
|
type: z.ZodLiteral<"selectBox">;
|
|
543
885
|
answer: z.ZodDefault<z.ZodString>;
|
|
@@ -640,20 +982,41 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
640
982
|
end: string;
|
|
641
983
|
};
|
|
642
984
|
} | {
|
|
643
|
-
type: "
|
|
985
|
+
type: "affiliationSearch";
|
|
644
986
|
meta: {
|
|
645
987
|
schemaVersion: string;
|
|
646
988
|
};
|
|
647
|
-
answer:
|
|
989
|
+
answer: {
|
|
990
|
+
affiliationId: string;
|
|
991
|
+
affiliationName: string;
|
|
992
|
+
};
|
|
648
993
|
} | {
|
|
649
|
-
type: "
|
|
994
|
+
type: "licenseSearch";
|
|
650
995
|
meta: {
|
|
651
996
|
schemaVersion: string;
|
|
652
997
|
};
|
|
653
998
|
answer: {
|
|
654
|
-
|
|
655
|
-
|
|
999
|
+
licenseId: string;
|
|
1000
|
+
licenseName: string;
|
|
1001
|
+
}[];
|
|
1002
|
+
} | {
|
|
1003
|
+
type: "metadataStandardSearch";
|
|
1004
|
+
meta: {
|
|
1005
|
+
schemaVersion: string;
|
|
656
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
|
+
}[];
|
|
657
1020
|
} | {
|
|
658
1021
|
type: "boolean";
|
|
659
1022
|
meta: {
|
|
@@ -696,6 +1059,15 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
696
1059
|
schemaVersion: string;
|
|
697
1060
|
};
|
|
698
1061
|
answer: number;
|
|
1062
|
+
} | {
|
|
1063
|
+
type: "numberWithContext";
|
|
1064
|
+
meta: {
|
|
1065
|
+
schemaVersion: string;
|
|
1066
|
+
};
|
|
1067
|
+
answer: {
|
|
1068
|
+
value: number;
|
|
1069
|
+
context: string;
|
|
1070
|
+
};
|
|
699
1071
|
} | {
|
|
700
1072
|
type: "email";
|
|
701
1073
|
meta: {
|
|
@@ -737,12 +1109,6 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
737
1109
|
start?: string | undefined;
|
|
738
1110
|
end?: string | undefined;
|
|
739
1111
|
} | undefined;
|
|
740
|
-
} | {
|
|
741
|
-
type: "filteredSearch";
|
|
742
|
-
meta?: {
|
|
743
|
-
schemaVersion?: string | undefined;
|
|
744
|
-
} | undefined;
|
|
745
|
-
answer?: string[] | undefined;
|
|
746
1112
|
} | {
|
|
747
1113
|
type: "affiliationSearch";
|
|
748
1114
|
meta?: {
|
|
@@ -752,6 +1118,33 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
752
1118
|
affiliationId?: string | undefined;
|
|
753
1119
|
affiliationName?: string | undefined;
|
|
754
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;
|
|
755
1148
|
} | {
|
|
756
1149
|
type: "boolean";
|
|
757
1150
|
meta?: {
|
|
@@ -794,6 +1187,15 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
794
1187
|
schemaVersion?: string | undefined;
|
|
795
1188
|
} | undefined;
|
|
796
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;
|
|
797
1199
|
} | {
|
|
798
1200
|
type: "email";
|
|
799
1201
|
meta?: {
|
|
@@ -842,20 +1244,41 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
842
1244
|
end: string;
|
|
843
1245
|
};
|
|
844
1246
|
} | {
|
|
845
|
-
type: "
|
|
1247
|
+
type: "affiliationSearch";
|
|
846
1248
|
meta: {
|
|
847
1249
|
schemaVersion: string;
|
|
848
1250
|
};
|
|
849
|
-
answer:
|
|
1251
|
+
answer: {
|
|
1252
|
+
affiliationId: string;
|
|
1253
|
+
affiliationName: string;
|
|
1254
|
+
};
|
|
850
1255
|
} | {
|
|
851
|
-
type: "
|
|
1256
|
+
type: "licenseSearch";
|
|
852
1257
|
meta: {
|
|
853
1258
|
schemaVersion: string;
|
|
854
1259
|
};
|
|
855
1260
|
answer: {
|
|
856
|
-
|
|
857
|
-
|
|
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;
|
|
858
1277
|
};
|
|
1278
|
+
answer: {
|
|
1279
|
+
repositoryId: string;
|
|
1280
|
+
repositoryName: string;
|
|
1281
|
+
}[];
|
|
859
1282
|
} | {
|
|
860
1283
|
type: "boolean";
|
|
861
1284
|
meta: {
|
|
@@ -898,6 +1321,15 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
898
1321
|
schemaVersion: string;
|
|
899
1322
|
};
|
|
900
1323
|
answer: number;
|
|
1324
|
+
} | {
|
|
1325
|
+
type: "numberWithContext";
|
|
1326
|
+
meta: {
|
|
1327
|
+
schemaVersion: string;
|
|
1328
|
+
};
|
|
1329
|
+
answer: {
|
|
1330
|
+
value: number;
|
|
1331
|
+
context: string;
|
|
1332
|
+
};
|
|
901
1333
|
} | {
|
|
902
1334
|
type: "email";
|
|
903
1335
|
meta: {
|
|
@@ -946,12 +1378,6 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
946
1378
|
start?: string | undefined;
|
|
947
1379
|
end?: string | undefined;
|
|
948
1380
|
} | undefined;
|
|
949
|
-
} | {
|
|
950
|
-
type: "filteredSearch";
|
|
951
|
-
meta?: {
|
|
952
|
-
schemaVersion?: string | undefined;
|
|
953
|
-
} | undefined;
|
|
954
|
-
answer?: string[] | undefined;
|
|
955
1381
|
} | {
|
|
956
1382
|
type: "affiliationSearch";
|
|
957
1383
|
meta?: {
|
|
@@ -961,6 +1387,33 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
961
1387
|
affiliationId?: string | undefined;
|
|
962
1388
|
affiliationName?: string | undefined;
|
|
963
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;
|
|
964
1417
|
} | {
|
|
965
1418
|
type: "boolean";
|
|
966
1419
|
meta?: {
|
|
@@ -1003,6 +1456,15 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1003
1456
|
schemaVersion?: string | undefined;
|
|
1004
1457
|
} | undefined;
|
|
1005
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;
|
|
1006
1468
|
} | {
|
|
1007
1469
|
type: "email";
|
|
1008
1470
|
meta?: {
|
|
@@ -1110,10 +1572,15 @@ export interface AnswerTypeMap {
|
|
|
1110
1572
|
date: DateAnswerType;
|
|
1111
1573
|
dateRange: DateRangeAnswerType;
|
|
1112
1574
|
email: EmailAnswerType;
|
|
1575
|
+
licenseSearch: LicenseSearchAnswerType;
|
|
1576
|
+
metadataStandardSearch: MetadataStandardSearchAnswerType;
|
|
1113
1577
|
multiselectBox: MultiselectBoxAnswerType;
|
|
1114
1578
|
number: NumberAnswerType;
|
|
1115
1579
|
numberRange: NumberRangeAnswerType;
|
|
1580
|
+
numberWithContext: NumberWithContextAnswerType;
|
|
1116
1581
|
radioButtons: RadioButtonsAnswerType;
|
|
1582
|
+
repositorySearch: RepositorySearchAnswerType;
|
|
1583
|
+
researchOutputTable: ResearchOutputTableAnswerType;
|
|
1117
1584
|
selectBox: SelectBoxAnswerType;
|
|
1118
1585
|
table: TableAnswerType;
|
|
1119
1586
|
text: TextAnswerType;
|