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