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