zenodo 2.0.0 → 3.0.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 (122) hide show
  1. package/README.md +12 -0
  2. package/lib/Zenodo.d.ts +76 -4
  3. package/lib/Zenodo.d.ts.map +1 -1
  4. package/lib/Zenodo.js +150 -19
  5. package/lib/Zenodo.js.map +1 -1
  6. package/lib/ZenodoAuthenticationStates.d.ts +21 -0
  7. package/lib/ZenodoAuthenticationStates.d.ts.map +1 -0
  8. package/lib/ZenodoAuthenticationStates.js +20 -0
  9. package/lib/ZenodoAuthenticationStates.js.map +1 -0
  10. package/lib/ZenodoFile.d.ts +2 -38
  11. package/lib/ZenodoFile.d.ts.map +1 -1
  12. package/lib/ZenodoFile.js +3 -18
  13. package/lib/ZenodoFile.js.map +1 -1
  14. package/lib/depositions/Deposition.d.ts +90 -6
  15. package/lib/depositions/Deposition.d.ts.map +1 -1
  16. package/lib/depositions/Deposition.js +198 -29
  17. package/lib/depositions/Deposition.js.map +1 -1
  18. package/lib/depositions/ListDepositionsOptions.d.ts +4 -2
  19. package/lib/depositions/ListDepositionsOptions.d.ts.map +1 -1
  20. package/lib/depositions/ListDepositionsOptions.js +1 -2
  21. package/lib/depositions/Record.d.ts +10 -0
  22. package/lib/depositions/Record.d.ts.map +1 -0
  23. package/lib/depositions/Record.js +19 -0
  24. package/lib/depositions/Record.js.map +1 -0
  25. package/lib/fetchZenodo.d.ts +44 -1
  26. package/lib/fetchZenodo.d.ts.map +1 -1
  27. package/lib/fetchZenodo.js +214 -15
  28. package/lib/fetchZenodo.js.map +1 -1
  29. package/lib/index.d.ts +3 -1
  30. package/lib/index.d.ts.map +1 -1
  31. package/lib/index.js +3 -17
  32. package/lib/index.js.map +1 -1
  33. package/lib/responseStatuses.js +1 -4
  34. package/lib/responseStatuses.js.map +1 -1
  35. package/lib/utilities/ZenodoDepositionSchema.d.ts +473 -0
  36. package/lib/utilities/ZenodoDepositionSchema.d.ts.map +1 -0
  37. package/lib/utilities/ZenodoDepositionSchema.js +80 -0
  38. package/lib/utilities/ZenodoDepositionSchema.js.map +1 -0
  39. package/lib/utilities/ZenodoFileSchema.d.ts +39 -0
  40. package/lib/utilities/ZenodoFileSchema.d.ts.map +1 -0
  41. package/lib/utilities/ZenodoFileSchema.js +37 -0
  42. package/lib/utilities/ZenodoFileSchema.js.map +1 -0
  43. package/lib/utilities/ZenodoMetadataSchema.d.ts +400 -0
  44. package/lib/utilities/ZenodoMetadataSchema.d.ts.map +1 -0
  45. package/lib/utilities/ZenodoMetadataSchema.js +602 -0
  46. package/lib/utilities/ZenodoMetadataSchema.js.map +1 -0
  47. package/lib/utilities/ZenodoRecordSchema.d.ts +544 -0
  48. package/lib/utilities/ZenodoRecordSchema.d.ts.map +1 -0
  49. package/lib/utilities/ZenodoRecordSchema.js +70 -0
  50. package/lib/utilities/ZenodoRecordSchema.js.map +1 -0
  51. package/lib/utilities/ZenodoReviewSchema.d.ts +112 -0
  52. package/lib/utilities/ZenodoReviewSchema.d.ts.map +1 -0
  53. package/lib/utilities/ZenodoReviewSchema.js +80 -0
  54. package/lib/utilities/ZenodoReviewSchema.js.map +1 -0
  55. package/lib/utilities/licensesEnum.d.ts +4 -0
  56. package/lib/utilities/licensesEnum.d.ts.map +1 -0
  57. package/lib/utilities/licensesEnum.js +449 -0
  58. package/lib/utilities/licensesEnum.js.map +1 -0
  59. package/lib/utilities/schemaValidation.d.ts +50 -0
  60. package/lib/utilities/schemaValidation.d.ts.map +1 -0
  61. package/lib/utilities/schemaValidation.js +124 -0
  62. package/lib/utilities/schemaValidation.js.map +1 -0
  63. package/lib/utilities/zipFiles.d.ts +9 -0
  64. package/lib/utilities/zipFiles.d.ts.map +1 -0
  65. package/lib/utilities/zipFiles.js +28 -0
  66. package/lib/utilities/zipFiles.js.map +1 -0
  67. package/package.json +28 -22
  68. package/src/Zenodo.ts +180 -10
  69. package/src/ZenodoAuthenticationStates.ts +22 -0
  70. package/src/ZenodoFile.ts +4 -18
  71. package/src/depositions/Deposition.ts +236 -24
  72. package/src/depositions/ListDepositionsOptions.ts +4 -2
  73. package/src/depositions/Record.ts +25 -0
  74. package/src/fetchZenodo.ts +402 -16
  75. package/src/index.ts +5 -1
  76. package/src/utilities/ZenodoDepositionSchema.ts +90 -0
  77. package/src/utilities/ZenodoFileSchema.ts +40 -0
  78. package/src/utilities/ZenodoMetadataSchema.ts +608 -0
  79. package/src/utilities/ZenodoRecordSchema.ts +75 -0
  80. package/src/utilities/ZenodoReviewSchema.ts +84 -0
  81. package/src/utilities/licensesEnum.ts +448 -0
  82. package/src/utilities/schemaValidation.ts +150 -0
  83. package/src/utilities/zipFiles.ts +36 -0
  84. package/lib/depositions/depositionSchema.d.ts +0 -982
  85. package/lib/depositions/depositionSchema.d.ts.map +0 -1
  86. package/lib/depositions/depositionSchema.js +0 -141
  87. package/lib/depositions/depositionSchema.js.map +0 -1
  88. package/lib-esm/Zenodo.d.ts +0 -19
  89. package/lib-esm/Zenodo.d.ts.map +0 -1
  90. package/lib-esm/Zenodo.js +0 -51
  91. package/lib-esm/Zenodo.js.map +0 -1
  92. package/lib-esm/ZenodoFile.d.ts +0 -45
  93. package/lib-esm/ZenodoFile.d.ts.map +0 -1
  94. package/lib-esm/ZenodoFile.js +0 -33
  95. package/lib-esm/ZenodoFile.js.map +0 -1
  96. package/lib-esm/depositions/Deposition.d.ts +0 -14
  97. package/lib-esm/depositions/Deposition.d.ts.map +0 -1
  98. package/lib-esm/depositions/Deposition.js +0 -51
  99. package/lib-esm/depositions/Deposition.js.map +0 -1
  100. package/lib-esm/depositions/ListDepositionsOptions.d.ts +0 -32
  101. package/lib-esm/depositions/ListDepositionsOptions.d.ts.map +0 -1
  102. package/lib-esm/depositions/ListDepositionsOptions.js +0 -2
  103. package/lib-esm/depositions/ListDepositionsOptions.js.map +0 -1
  104. package/lib-esm/depositions/depositionSchema.d.ts +0 -982
  105. package/lib-esm/depositions/depositionSchema.d.ts.map +0 -1
  106. package/lib-esm/depositions/depositionSchema.js +0 -138
  107. package/lib-esm/depositions/depositionSchema.js.map +0 -1
  108. package/lib-esm/fetchZenodo.d.ts +0 -12
  109. package/lib-esm/fetchZenodo.d.ts.map +0 -1
  110. package/lib-esm/fetchZenodo.js +0 -31
  111. package/lib-esm/fetchZenodo.js.map +0 -1
  112. package/lib-esm/index.d.ts +0 -2
  113. package/lib-esm/index.d.ts.map +0 -1
  114. package/lib-esm/index.js +0 -2
  115. package/lib-esm/index.js.map +0 -1
  116. package/lib-esm/responseStatuses.d.ts +0 -8
  117. package/lib-esm/responseStatuses.d.ts.map +0 -1
  118. package/lib-esm/responseStatuses.js +0 -68
  119. package/lib-esm/responseStatuses.js.map +0 -1
  120. package/src/__tests__/Zenodo.test.ts +0 -79
  121. package/src/__tests__/getConfig.ts +0 -9
  122. package/src/depositions/depositionSchema.ts +0 -154
@@ -1,982 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const depositionMetadataSchema: z.ZodObject<{
3
- upload_type: z.ZodEnum<["publication", "poster", "presentation", "dataset", "image", "video", "software", "lesson", "physicalobject", "other"]>;
4
- publication_type: z.ZodOptional<z.ZodString>;
5
- image_type: z.ZodOptional<z.ZodString>;
6
- publication_date: z.ZodOptional<z.ZodString>;
7
- title: z.ZodString;
8
- creators: z.ZodArray<z.ZodObject<{
9
- name: z.ZodString;
10
- affiliation: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
11
- orcid: z.ZodOptional<z.ZodString>;
12
- gnd: z.ZodOptional<z.ZodString>;
13
- }, "strip", z.ZodTypeAny, {
14
- name: string;
15
- affiliation?: string | null | undefined;
16
- orcid?: string | undefined;
17
- gnd?: string | undefined;
18
- }, {
19
- name: string;
20
- affiliation?: string | null | undefined;
21
- orcid?: string | undefined;
22
- gnd?: string | undefined;
23
- }>, "many">;
24
- description: z.ZodString;
25
- access_right: z.ZodEnum<["open", "embargoed", "restricted", "closed"]>;
26
- license: z.ZodOptional<z.ZodString>;
27
- embargo_date: z.ZodOptional<z.ZodString>;
28
- access_conditions: z.ZodOptional<z.ZodString>;
29
- doi: z.ZodOptional<z.ZodString>;
30
- prereserve_doi: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
31
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
- notes: z.ZodOptional<z.ZodString>;
33
- related_identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
- identifier: z.ZodString;
35
- relation: z.ZodString;
36
- resource_type: z.ZodOptional<z.ZodString>;
37
- }, "strip", z.ZodTypeAny, {
38
- identifier: string;
39
- relation: string;
40
- resource_type?: string | undefined;
41
- }, {
42
- identifier: string;
43
- relation: string;
44
- resource_type?: string | undefined;
45
- }>, "many">>;
46
- contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
- name: z.ZodString;
48
- type: z.ZodString;
49
- affiliation: z.ZodOptional<z.ZodString>;
50
- orcid: z.ZodOptional<z.ZodString>;
51
- gnd: z.ZodOptional<z.ZodString>;
52
- }, "strip", z.ZodTypeAny, {
53
- type: string;
54
- name: string;
55
- affiliation?: string | undefined;
56
- orcid?: string | undefined;
57
- gnd?: string | undefined;
58
- }, {
59
- type: string;
60
- name: string;
61
- affiliation?: string | undefined;
62
- orcid?: string | undefined;
63
- gnd?: string | undefined;
64
- }>, "many">>;
65
- references: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66
- communities: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
- identifier: z.ZodString;
68
- }, "strip", z.ZodTypeAny, {
69
- identifier: string;
70
- }, {
71
- identifier: string;
72
- }>, "many">>;
73
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
- id: z.ZodString;
75
- }, "strip", z.ZodTypeAny, {
76
- id: string;
77
- }, {
78
- id: string;
79
- }>, "many">>;
80
- journal_title: z.ZodOptional<z.ZodString>;
81
- journal_volume: z.ZodOptional<z.ZodString>;
82
- journal_issue: z.ZodOptional<z.ZodString>;
83
- journal_pages: z.ZodOptional<z.ZodString>;
84
- conference_title: z.ZodOptional<z.ZodString>;
85
- conference_acronym: z.ZodOptional<z.ZodString>;
86
- conference_dates: z.ZodOptional<z.ZodString>;
87
- conference_place: z.ZodOptional<z.ZodString>;
88
- conference_url: z.ZodOptional<z.ZodString>;
89
- conference_session: z.ZodOptional<z.ZodString>;
90
- conference_session_part: z.ZodOptional<z.ZodString>;
91
- imprint_publisher: z.ZodOptional<z.ZodString>;
92
- imprint_isbn: z.ZodOptional<z.ZodString>;
93
- imprint_place: z.ZodOptional<z.ZodString>;
94
- partof_title: z.ZodOptional<z.ZodString>;
95
- partof_pages: z.ZodOptional<z.ZodString>;
96
- thesis_supervisors: z.ZodOptional<z.ZodArray<z.ZodObject<{
97
- name: z.ZodString;
98
- affiliation: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
99
- orcid: z.ZodOptional<z.ZodString>;
100
- gnd: z.ZodOptional<z.ZodString>;
101
- }, "strip", z.ZodTypeAny, {
102
- name: string;
103
- affiliation?: string | null | undefined;
104
- orcid?: string | undefined;
105
- gnd?: string | undefined;
106
- }, {
107
- name: string;
108
- affiliation?: string | null | undefined;
109
- orcid?: string | undefined;
110
- gnd?: string | undefined;
111
- }>, "many">>;
112
- thesis_university: z.ZodOptional<z.ZodString>;
113
- subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
- term: z.ZodString;
115
- identifier: z.ZodString;
116
- scheme: z.ZodString;
117
- }, "strip", z.ZodTypeAny, {
118
- identifier: string;
119
- term: string;
120
- scheme: string;
121
- }, {
122
- identifier: string;
123
- term: string;
124
- scheme: string;
125
- }>, "many">>;
126
- version: z.ZodOptional<z.ZodString>;
127
- language: z.ZodOptional<z.ZodString>;
128
- locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
- lat: z.ZodOptional<z.ZodNumber>;
130
- lon: z.ZodOptional<z.ZodNumber>;
131
- place: z.ZodString;
132
- description: z.ZodOptional<z.ZodString>;
133
- }, "strip", z.ZodTypeAny, {
134
- place: string;
135
- lat?: number | undefined;
136
- lon?: number | undefined;
137
- description?: string | undefined;
138
- }, {
139
- place: string;
140
- lat?: number | undefined;
141
- lon?: number | undefined;
142
- description?: string | undefined;
143
- }>, "many">>;
144
- dates: z.ZodOptional<z.ZodArray<z.ZodObject<{
145
- start: z.ZodOptional<z.ZodString>;
146
- end: z.ZodOptional<z.ZodString>;
147
- type: z.ZodString;
148
- description: z.ZodOptional<z.ZodString>;
149
- }, "strip", z.ZodTypeAny, {
150
- type: string;
151
- description?: string | undefined;
152
- start?: string | undefined;
153
- end?: string | undefined;
154
- }, {
155
- type: string;
156
- description?: string | undefined;
157
- start?: string | undefined;
158
- end?: string | undefined;
159
- }>, "many">>;
160
- method: z.ZodOptional<z.ZodString>;
161
- }, "strip", z.ZodTypeAny, {
162
- description: string;
163
- upload_type: "publication" | "poster" | "presentation" | "dataset" | "image" | "video" | "software" | "lesson" | "physicalobject" | "other";
164
- title: string;
165
- creators: {
166
- name: string;
167
- affiliation?: string | null | undefined;
168
- orcid?: string | undefined;
169
- gnd?: string | undefined;
170
- }[];
171
- access_right: "open" | "embargoed" | "restricted" | "closed";
172
- method?: string | undefined;
173
- publication_type?: string | undefined;
174
- image_type?: string | undefined;
175
- publication_date?: string | undefined;
176
- license?: string | undefined;
177
- embargo_date?: string | undefined;
178
- access_conditions?: string | undefined;
179
- doi?: string | undefined;
180
- prereserve_doi?: boolean | Record<string, unknown> | undefined;
181
- keywords?: string[] | undefined;
182
- notes?: string | undefined;
183
- related_identifiers?: {
184
- identifier: string;
185
- relation: string;
186
- resource_type?: string | undefined;
187
- }[] | undefined;
188
- contributors?: {
189
- type: string;
190
- name: string;
191
- affiliation?: string | undefined;
192
- orcid?: string | undefined;
193
- gnd?: string | undefined;
194
- }[] | undefined;
195
- references?: string[] | undefined;
196
- communities?: {
197
- identifier: string;
198
- }[] | undefined;
199
- grants?: {
200
- id: string;
201
- }[] | undefined;
202
- journal_title?: string | undefined;
203
- journal_volume?: string | undefined;
204
- journal_issue?: string | undefined;
205
- journal_pages?: string | undefined;
206
- conference_title?: string | undefined;
207
- conference_acronym?: string | undefined;
208
- conference_dates?: string | undefined;
209
- conference_place?: string | undefined;
210
- conference_url?: string | undefined;
211
- conference_session?: string | undefined;
212
- conference_session_part?: string | undefined;
213
- imprint_publisher?: string | undefined;
214
- imprint_isbn?: string | undefined;
215
- imprint_place?: string | undefined;
216
- partof_title?: string | undefined;
217
- partof_pages?: string | undefined;
218
- thesis_supervisors?: {
219
- name: string;
220
- affiliation?: string | null | undefined;
221
- orcid?: string | undefined;
222
- gnd?: string | undefined;
223
- }[] | undefined;
224
- thesis_university?: string | undefined;
225
- subjects?: {
226
- identifier: string;
227
- term: string;
228
- scheme: string;
229
- }[] | undefined;
230
- version?: string | undefined;
231
- language?: string | undefined;
232
- locations?: {
233
- place: string;
234
- lat?: number | undefined;
235
- lon?: number | undefined;
236
- description?: string | undefined;
237
- }[] | undefined;
238
- dates?: {
239
- type: string;
240
- description?: string | undefined;
241
- start?: string | undefined;
242
- end?: string | undefined;
243
- }[] | undefined;
244
- }, {
245
- description: string;
246
- upload_type: "publication" | "poster" | "presentation" | "dataset" | "image" | "video" | "software" | "lesson" | "physicalobject" | "other";
247
- title: string;
248
- creators: {
249
- name: string;
250
- affiliation?: string | null | undefined;
251
- orcid?: string | undefined;
252
- gnd?: string | undefined;
253
- }[];
254
- access_right: "open" | "embargoed" | "restricted" | "closed";
255
- method?: string | undefined;
256
- publication_type?: string | undefined;
257
- image_type?: string | undefined;
258
- publication_date?: string | undefined;
259
- license?: string | undefined;
260
- embargo_date?: string | undefined;
261
- access_conditions?: string | undefined;
262
- doi?: string | undefined;
263
- prereserve_doi?: boolean | Record<string, unknown> | undefined;
264
- keywords?: string[] | undefined;
265
- notes?: string | undefined;
266
- related_identifiers?: {
267
- identifier: string;
268
- relation: string;
269
- resource_type?: string | undefined;
270
- }[] | undefined;
271
- contributors?: {
272
- type: string;
273
- name: string;
274
- affiliation?: string | undefined;
275
- orcid?: string | undefined;
276
- gnd?: string | undefined;
277
- }[] | undefined;
278
- references?: string[] | undefined;
279
- communities?: {
280
- identifier: string;
281
- }[] | undefined;
282
- grants?: {
283
- id: string;
284
- }[] | undefined;
285
- journal_title?: string | undefined;
286
- journal_volume?: string | undefined;
287
- journal_issue?: string | undefined;
288
- journal_pages?: string | undefined;
289
- conference_title?: string | undefined;
290
- conference_acronym?: string | undefined;
291
- conference_dates?: string | undefined;
292
- conference_place?: string | undefined;
293
- conference_url?: string | undefined;
294
- conference_session?: string | undefined;
295
- conference_session_part?: string | undefined;
296
- imprint_publisher?: string | undefined;
297
- imprint_isbn?: string | undefined;
298
- imprint_place?: string | undefined;
299
- partof_title?: string | undefined;
300
- partof_pages?: string | undefined;
301
- thesis_supervisors?: {
302
- name: string;
303
- affiliation?: string | null | undefined;
304
- orcid?: string | undefined;
305
- gnd?: string | undefined;
306
- }[] | undefined;
307
- thesis_university?: string | undefined;
308
- subjects?: {
309
- identifier: string;
310
- term: string;
311
- scheme: string;
312
- }[] | undefined;
313
- version?: string | undefined;
314
- language?: string | undefined;
315
- locations?: {
316
- place: string;
317
- lat?: number | undefined;
318
- lon?: number | undefined;
319
- description?: string | undefined;
320
- }[] | undefined;
321
- dates?: {
322
- type: string;
323
- description?: string | undefined;
324
- start?: string | undefined;
325
- end?: string | undefined;
326
- }[] | undefined;
327
- }>;
328
- export type DepositionMetadata = z.infer<typeof depositionMetadataSchema>;
329
- export declare const zenodoDepositionSchema: z.ZodObject<{
330
- created: z.ZodEffects<z.ZodString, string, string>;
331
- modified: z.ZodEffects<z.ZodString, string, string>;
332
- id: z.ZodNumber;
333
- metadata: z.ZodObject<{
334
- upload_type: z.ZodEnum<["publication", "poster", "presentation", "dataset", "image", "video", "software", "lesson", "physicalobject", "other"]>;
335
- publication_type: z.ZodOptional<z.ZodString>;
336
- image_type: z.ZodOptional<z.ZodString>;
337
- publication_date: z.ZodOptional<z.ZodString>;
338
- title: z.ZodString;
339
- creators: z.ZodArray<z.ZodObject<{
340
- name: z.ZodString;
341
- affiliation: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
342
- orcid: z.ZodOptional<z.ZodString>;
343
- gnd: z.ZodOptional<z.ZodString>;
344
- }, "strip", z.ZodTypeAny, {
345
- name: string;
346
- affiliation?: string | null | undefined;
347
- orcid?: string | undefined;
348
- gnd?: string | undefined;
349
- }, {
350
- name: string;
351
- affiliation?: string | null | undefined;
352
- orcid?: string | undefined;
353
- gnd?: string | undefined;
354
- }>, "many">;
355
- description: z.ZodString;
356
- access_right: z.ZodEnum<["open", "embargoed", "restricted", "closed"]>;
357
- license: z.ZodOptional<z.ZodString>;
358
- embargo_date: z.ZodOptional<z.ZodString>;
359
- access_conditions: z.ZodOptional<z.ZodString>;
360
- doi: z.ZodOptional<z.ZodString>;
361
- prereserve_doi: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
362
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
363
- notes: z.ZodOptional<z.ZodString>;
364
- related_identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
- identifier: z.ZodString;
366
- relation: z.ZodString;
367
- resource_type: z.ZodOptional<z.ZodString>;
368
- }, "strip", z.ZodTypeAny, {
369
- identifier: string;
370
- relation: string;
371
- resource_type?: string | undefined;
372
- }, {
373
- identifier: string;
374
- relation: string;
375
- resource_type?: string | undefined;
376
- }>, "many">>;
377
- contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{
378
- name: z.ZodString;
379
- type: z.ZodString;
380
- affiliation: z.ZodOptional<z.ZodString>;
381
- orcid: z.ZodOptional<z.ZodString>;
382
- gnd: z.ZodOptional<z.ZodString>;
383
- }, "strip", z.ZodTypeAny, {
384
- type: string;
385
- name: string;
386
- affiliation?: string | undefined;
387
- orcid?: string | undefined;
388
- gnd?: string | undefined;
389
- }, {
390
- type: string;
391
- name: string;
392
- affiliation?: string | undefined;
393
- orcid?: string | undefined;
394
- gnd?: string | undefined;
395
- }>, "many">>;
396
- references: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
397
- communities: z.ZodOptional<z.ZodArray<z.ZodObject<{
398
- identifier: z.ZodString;
399
- }, "strip", z.ZodTypeAny, {
400
- identifier: string;
401
- }, {
402
- identifier: string;
403
- }>, "many">>;
404
- grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
405
- id: z.ZodString;
406
- }, "strip", z.ZodTypeAny, {
407
- id: string;
408
- }, {
409
- id: string;
410
- }>, "many">>;
411
- journal_title: z.ZodOptional<z.ZodString>;
412
- journal_volume: z.ZodOptional<z.ZodString>;
413
- journal_issue: z.ZodOptional<z.ZodString>;
414
- journal_pages: z.ZodOptional<z.ZodString>;
415
- conference_title: z.ZodOptional<z.ZodString>;
416
- conference_acronym: z.ZodOptional<z.ZodString>;
417
- conference_dates: z.ZodOptional<z.ZodString>;
418
- conference_place: z.ZodOptional<z.ZodString>;
419
- conference_url: z.ZodOptional<z.ZodString>;
420
- conference_session: z.ZodOptional<z.ZodString>;
421
- conference_session_part: z.ZodOptional<z.ZodString>;
422
- imprint_publisher: z.ZodOptional<z.ZodString>;
423
- imprint_isbn: z.ZodOptional<z.ZodString>;
424
- imprint_place: z.ZodOptional<z.ZodString>;
425
- partof_title: z.ZodOptional<z.ZodString>;
426
- partof_pages: z.ZodOptional<z.ZodString>;
427
- thesis_supervisors: z.ZodOptional<z.ZodArray<z.ZodObject<{
428
- name: z.ZodString;
429
- affiliation: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
430
- orcid: z.ZodOptional<z.ZodString>;
431
- gnd: z.ZodOptional<z.ZodString>;
432
- }, "strip", z.ZodTypeAny, {
433
- name: string;
434
- affiliation?: string | null | undefined;
435
- orcid?: string | undefined;
436
- gnd?: string | undefined;
437
- }, {
438
- name: string;
439
- affiliation?: string | null | undefined;
440
- orcid?: string | undefined;
441
- gnd?: string | undefined;
442
- }>, "many">>;
443
- thesis_university: z.ZodOptional<z.ZodString>;
444
- subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
445
- term: z.ZodString;
446
- identifier: z.ZodString;
447
- scheme: z.ZodString;
448
- }, "strip", z.ZodTypeAny, {
449
- identifier: string;
450
- term: string;
451
- scheme: string;
452
- }, {
453
- identifier: string;
454
- term: string;
455
- scheme: string;
456
- }>, "many">>;
457
- version: z.ZodOptional<z.ZodString>;
458
- language: z.ZodOptional<z.ZodString>;
459
- locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
- lat: z.ZodOptional<z.ZodNumber>;
461
- lon: z.ZodOptional<z.ZodNumber>;
462
- place: z.ZodString;
463
- description: z.ZodOptional<z.ZodString>;
464
- }, "strip", z.ZodTypeAny, {
465
- place: string;
466
- lat?: number | undefined;
467
- lon?: number | undefined;
468
- description?: string | undefined;
469
- }, {
470
- place: string;
471
- lat?: number | undefined;
472
- lon?: number | undefined;
473
- description?: string | undefined;
474
- }>, "many">>;
475
- dates: z.ZodOptional<z.ZodArray<z.ZodObject<{
476
- start: z.ZodOptional<z.ZodString>;
477
- end: z.ZodOptional<z.ZodString>;
478
- type: z.ZodString;
479
- description: z.ZodOptional<z.ZodString>;
480
- }, "strip", z.ZodTypeAny, {
481
- type: string;
482
- description?: string | undefined;
483
- start?: string | undefined;
484
- end?: string | undefined;
485
- }, {
486
- type: string;
487
- description?: string | undefined;
488
- start?: string | undefined;
489
- end?: string | undefined;
490
- }>, "many">>;
491
- method: z.ZodOptional<z.ZodString>;
492
- }, "strip", z.ZodTypeAny, {
493
- description: string;
494
- upload_type: "publication" | "poster" | "presentation" | "dataset" | "image" | "video" | "software" | "lesson" | "physicalobject" | "other";
495
- title: string;
496
- creators: {
497
- name: string;
498
- affiliation?: string | null | undefined;
499
- orcid?: string | undefined;
500
- gnd?: string | undefined;
501
- }[];
502
- access_right: "open" | "embargoed" | "restricted" | "closed";
503
- method?: string | undefined;
504
- publication_type?: string | undefined;
505
- image_type?: string | undefined;
506
- publication_date?: string | undefined;
507
- license?: string | undefined;
508
- embargo_date?: string | undefined;
509
- access_conditions?: string | undefined;
510
- doi?: string | undefined;
511
- prereserve_doi?: boolean | Record<string, unknown> | undefined;
512
- keywords?: string[] | undefined;
513
- notes?: string | undefined;
514
- related_identifiers?: {
515
- identifier: string;
516
- relation: string;
517
- resource_type?: string | undefined;
518
- }[] | undefined;
519
- contributors?: {
520
- type: string;
521
- name: string;
522
- affiliation?: string | undefined;
523
- orcid?: string | undefined;
524
- gnd?: string | undefined;
525
- }[] | undefined;
526
- references?: string[] | undefined;
527
- communities?: {
528
- identifier: string;
529
- }[] | undefined;
530
- grants?: {
531
- id: string;
532
- }[] | undefined;
533
- journal_title?: string | undefined;
534
- journal_volume?: string | undefined;
535
- journal_issue?: string | undefined;
536
- journal_pages?: string | undefined;
537
- conference_title?: string | undefined;
538
- conference_acronym?: string | undefined;
539
- conference_dates?: string | undefined;
540
- conference_place?: string | undefined;
541
- conference_url?: string | undefined;
542
- conference_session?: string | undefined;
543
- conference_session_part?: string | undefined;
544
- imprint_publisher?: string | undefined;
545
- imprint_isbn?: string | undefined;
546
- imprint_place?: string | undefined;
547
- partof_title?: string | undefined;
548
- partof_pages?: string | undefined;
549
- thesis_supervisors?: {
550
- name: string;
551
- affiliation?: string | null | undefined;
552
- orcid?: string | undefined;
553
- gnd?: string | undefined;
554
- }[] | undefined;
555
- thesis_university?: string | undefined;
556
- subjects?: {
557
- identifier: string;
558
- term: string;
559
- scheme: string;
560
- }[] | undefined;
561
- version?: string | undefined;
562
- language?: string | undefined;
563
- locations?: {
564
- place: string;
565
- lat?: number | undefined;
566
- lon?: number | undefined;
567
- description?: string | undefined;
568
- }[] | undefined;
569
- dates?: {
570
- type: string;
571
- description?: string | undefined;
572
- start?: string | undefined;
573
- end?: string | undefined;
574
- }[] | undefined;
575
- }, {
576
- description: string;
577
- upload_type: "publication" | "poster" | "presentation" | "dataset" | "image" | "video" | "software" | "lesson" | "physicalobject" | "other";
578
- title: string;
579
- creators: {
580
- name: string;
581
- affiliation?: string | null | undefined;
582
- orcid?: string | undefined;
583
- gnd?: string | undefined;
584
- }[];
585
- access_right: "open" | "embargoed" | "restricted" | "closed";
586
- method?: string | undefined;
587
- publication_type?: string | undefined;
588
- image_type?: string | undefined;
589
- publication_date?: string | undefined;
590
- license?: string | undefined;
591
- embargo_date?: string | undefined;
592
- access_conditions?: string | undefined;
593
- doi?: string | undefined;
594
- prereserve_doi?: boolean | Record<string, unknown> | undefined;
595
- keywords?: string[] | undefined;
596
- notes?: string | undefined;
597
- related_identifiers?: {
598
- identifier: string;
599
- relation: string;
600
- resource_type?: string | undefined;
601
- }[] | undefined;
602
- contributors?: {
603
- type: string;
604
- name: string;
605
- affiliation?: string | undefined;
606
- orcid?: string | undefined;
607
- gnd?: string | undefined;
608
- }[] | undefined;
609
- references?: string[] | undefined;
610
- communities?: {
611
- identifier: string;
612
- }[] | undefined;
613
- grants?: {
614
- id: string;
615
- }[] | undefined;
616
- journal_title?: string | undefined;
617
- journal_volume?: string | undefined;
618
- journal_issue?: string | undefined;
619
- journal_pages?: string | undefined;
620
- conference_title?: string | undefined;
621
- conference_acronym?: string | undefined;
622
- conference_dates?: string | undefined;
623
- conference_place?: string | undefined;
624
- conference_url?: string | undefined;
625
- conference_session?: string | undefined;
626
- conference_session_part?: string | undefined;
627
- imprint_publisher?: string | undefined;
628
- imprint_isbn?: string | undefined;
629
- imprint_place?: string | undefined;
630
- partof_title?: string | undefined;
631
- partof_pages?: string | undefined;
632
- thesis_supervisors?: {
633
- name: string;
634
- affiliation?: string | null | undefined;
635
- orcid?: string | undefined;
636
- gnd?: string | undefined;
637
- }[] | undefined;
638
- thesis_university?: string | undefined;
639
- subjects?: {
640
- identifier: string;
641
- term: string;
642
- scheme: string;
643
- }[] | undefined;
644
- version?: string | undefined;
645
- language?: string | undefined;
646
- locations?: {
647
- place: string;
648
- lat?: number | undefined;
649
- lon?: number | undefined;
650
- description?: string | undefined;
651
- }[] | undefined;
652
- dates?: {
653
- type: string;
654
- description?: string | undefined;
655
- start?: string | undefined;
656
- end?: string | undefined;
657
- }[] | undefined;
658
- }>;
659
- title: z.ZodString;
660
- doi: z.ZodOptional<z.ZodString>;
661
- doi_url: z.ZodOptional<z.ZodString>;
662
- record_url: z.ZodOptional<z.ZodString>;
663
- links: z.ZodObject<{
664
- self: z.ZodString;
665
- html: z.ZodString;
666
- badge: z.ZodString;
667
- files: z.ZodString;
668
- latest_draft: z.ZodString;
669
- latest_draft_html: z.ZodString;
670
- publish: z.ZodString;
671
- edit: z.ZodString;
672
- discard: z.ZodString;
673
- newversion: z.ZodString;
674
- registerconceptdoi: z.ZodString;
675
- }, "strip", z.ZodString, z.objectOutputType<{
676
- self: z.ZodString;
677
- html: z.ZodString;
678
- badge: z.ZodString;
679
- files: z.ZodString;
680
- latest_draft: z.ZodString;
681
- latest_draft_html: z.ZodString;
682
- publish: z.ZodString;
683
- edit: z.ZodString;
684
- discard: z.ZodString;
685
- newversion: z.ZodString;
686
- registerconceptdoi: z.ZodString;
687
- }, z.ZodString, "strip">, z.objectInputType<{
688
- self: z.ZodString;
689
- html: z.ZodString;
690
- badge: z.ZodString;
691
- files: z.ZodString;
692
- latest_draft: z.ZodString;
693
- latest_draft_html: z.ZodString;
694
- publish: z.ZodString;
695
- edit: z.ZodString;
696
- discard: z.ZodString;
697
- newversion: z.ZodString;
698
- registerconceptdoi: z.ZodString;
699
- }, z.ZodString, "strip">>;
700
- record_id: z.ZodOptional<z.ZodNumber>;
701
- owner: z.ZodNumber;
702
- files: z.ZodArray<z.ZodObject<{
703
- id: z.ZodString;
704
- filename: z.ZodString;
705
- filesize: z.ZodNumber;
706
- checksum: z.ZodString;
707
- links: z.ZodObject<{
708
- download: z.ZodString;
709
- self: z.ZodString;
710
- }, "strip", z.ZodTypeAny, {
711
- download: string;
712
- self: string;
713
- }, {
714
- download: string;
715
- self: string;
716
- }>;
717
- }, "strip", z.ZodTypeAny, {
718
- id: string;
719
- filename: string;
720
- filesize: number;
721
- checksum: string;
722
- links: {
723
- download: string;
724
- self: string;
725
- };
726
- }, {
727
- id: string;
728
- filename: string;
729
- filesize: number;
730
- checksum: string;
731
- links: {
732
- download: string;
733
- self: string;
734
- };
735
- }>, "many">;
736
- state: z.ZodEnum<["unsubmitted", "inprogress", "done", "error"]>;
737
- submitted: z.ZodBoolean;
738
- }, "strip", z.ZodTypeAny, {
739
- id: number;
740
- links: {
741
- self: string;
742
- html: string;
743
- badge: string;
744
- files: string;
745
- latest_draft: string;
746
- latest_draft_html: string;
747
- publish: string;
748
- edit: string;
749
- discard: string;
750
- newversion: string;
751
- registerconceptdoi: string;
752
- } & {
753
- [k: string]: string;
754
- };
755
- files: {
756
- id: string;
757
- filename: string;
758
- filesize: number;
759
- checksum: string;
760
- links: {
761
- download: string;
762
- self: string;
763
- };
764
- }[];
765
- title: string;
766
- created: string;
767
- modified: string;
768
- metadata: {
769
- description: string;
770
- upload_type: "publication" | "poster" | "presentation" | "dataset" | "image" | "video" | "software" | "lesson" | "physicalobject" | "other";
771
- title: string;
772
- creators: {
773
- name: string;
774
- affiliation?: string | null | undefined;
775
- orcid?: string | undefined;
776
- gnd?: string | undefined;
777
- }[];
778
- access_right: "open" | "embargoed" | "restricted" | "closed";
779
- method?: string | undefined;
780
- publication_type?: string | undefined;
781
- image_type?: string | undefined;
782
- publication_date?: string | undefined;
783
- license?: string | undefined;
784
- embargo_date?: string | undefined;
785
- access_conditions?: string | undefined;
786
- doi?: string | undefined;
787
- prereserve_doi?: boolean | Record<string, unknown> | undefined;
788
- keywords?: string[] | undefined;
789
- notes?: string | undefined;
790
- related_identifiers?: {
791
- identifier: string;
792
- relation: string;
793
- resource_type?: string | undefined;
794
- }[] | undefined;
795
- contributors?: {
796
- type: string;
797
- name: string;
798
- affiliation?: string | undefined;
799
- orcid?: string | undefined;
800
- gnd?: string | undefined;
801
- }[] | undefined;
802
- references?: string[] | undefined;
803
- communities?: {
804
- identifier: string;
805
- }[] | undefined;
806
- grants?: {
807
- id: string;
808
- }[] | undefined;
809
- journal_title?: string | undefined;
810
- journal_volume?: string | undefined;
811
- journal_issue?: string | undefined;
812
- journal_pages?: string | undefined;
813
- conference_title?: string | undefined;
814
- conference_acronym?: string | undefined;
815
- conference_dates?: string | undefined;
816
- conference_place?: string | undefined;
817
- conference_url?: string | undefined;
818
- conference_session?: string | undefined;
819
- conference_session_part?: string | undefined;
820
- imprint_publisher?: string | undefined;
821
- imprint_isbn?: string | undefined;
822
- imprint_place?: string | undefined;
823
- partof_title?: string | undefined;
824
- partof_pages?: string | undefined;
825
- thesis_supervisors?: {
826
- name: string;
827
- affiliation?: string | null | undefined;
828
- orcid?: string | undefined;
829
- gnd?: string | undefined;
830
- }[] | undefined;
831
- thesis_university?: string | undefined;
832
- subjects?: {
833
- identifier: string;
834
- term: string;
835
- scheme: string;
836
- }[] | undefined;
837
- version?: string | undefined;
838
- language?: string | undefined;
839
- locations?: {
840
- place: string;
841
- lat?: number | undefined;
842
- lon?: number | undefined;
843
- description?: string | undefined;
844
- }[] | undefined;
845
- dates?: {
846
- type: string;
847
- description?: string | undefined;
848
- start?: string | undefined;
849
- end?: string | undefined;
850
- }[] | undefined;
851
- };
852
- owner: number;
853
- state: "unsubmitted" | "inprogress" | "done" | "error";
854
- submitted: boolean;
855
- doi?: string | undefined;
856
- doi_url?: string | undefined;
857
- record_url?: string | undefined;
858
- record_id?: number | undefined;
859
- }, {
860
- id: number;
861
- links: {
862
- self: string;
863
- html: string;
864
- badge: string;
865
- files: string;
866
- latest_draft: string;
867
- latest_draft_html: string;
868
- publish: string;
869
- edit: string;
870
- discard: string;
871
- newversion: string;
872
- registerconceptdoi: string;
873
- } & {
874
- [k: string]: string;
875
- };
876
- files: {
877
- id: string;
878
- filename: string;
879
- filesize: number;
880
- checksum: string;
881
- links: {
882
- download: string;
883
- self: string;
884
- };
885
- }[];
886
- title: string;
887
- created: string;
888
- modified: string;
889
- metadata: {
890
- description: string;
891
- upload_type: "publication" | "poster" | "presentation" | "dataset" | "image" | "video" | "software" | "lesson" | "physicalobject" | "other";
892
- title: string;
893
- creators: {
894
- name: string;
895
- affiliation?: string | null | undefined;
896
- orcid?: string | undefined;
897
- gnd?: string | undefined;
898
- }[];
899
- access_right: "open" | "embargoed" | "restricted" | "closed";
900
- method?: string | undefined;
901
- publication_type?: string | undefined;
902
- image_type?: string | undefined;
903
- publication_date?: string | undefined;
904
- license?: string | undefined;
905
- embargo_date?: string | undefined;
906
- access_conditions?: string | undefined;
907
- doi?: string | undefined;
908
- prereserve_doi?: boolean | Record<string, unknown> | undefined;
909
- keywords?: string[] | undefined;
910
- notes?: string | undefined;
911
- related_identifiers?: {
912
- identifier: string;
913
- relation: string;
914
- resource_type?: string | undefined;
915
- }[] | undefined;
916
- contributors?: {
917
- type: string;
918
- name: string;
919
- affiliation?: string | undefined;
920
- orcid?: string | undefined;
921
- gnd?: string | undefined;
922
- }[] | undefined;
923
- references?: string[] | undefined;
924
- communities?: {
925
- identifier: string;
926
- }[] | undefined;
927
- grants?: {
928
- id: string;
929
- }[] | undefined;
930
- journal_title?: string | undefined;
931
- journal_volume?: string | undefined;
932
- journal_issue?: string | undefined;
933
- journal_pages?: string | undefined;
934
- conference_title?: string | undefined;
935
- conference_acronym?: string | undefined;
936
- conference_dates?: string | undefined;
937
- conference_place?: string | undefined;
938
- conference_url?: string | undefined;
939
- conference_session?: string | undefined;
940
- conference_session_part?: string | undefined;
941
- imprint_publisher?: string | undefined;
942
- imprint_isbn?: string | undefined;
943
- imprint_place?: string | undefined;
944
- partof_title?: string | undefined;
945
- partof_pages?: string | undefined;
946
- thesis_supervisors?: {
947
- name: string;
948
- affiliation?: string | null | undefined;
949
- orcid?: string | undefined;
950
- gnd?: string | undefined;
951
- }[] | undefined;
952
- thesis_university?: string | undefined;
953
- subjects?: {
954
- identifier: string;
955
- term: string;
956
- scheme: string;
957
- }[] | undefined;
958
- version?: string | undefined;
959
- language?: string | undefined;
960
- locations?: {
961
- place: string;
962
- lat?: number | undefined;
963
- lon?: number | undefined;
964
- description?: string | undefined;
965
- }[] | undefined;
966
- dates?: {
967
- type: string;
968
- description?: string | undefined;
969
- start?: string | undefined;
970
- end?: string | undefined;
971
- }[] | undefined;
972
- };
973
- owner: number;
974
- state: "unsubmitted" | "inprogress" | "done" | "error";
975
- submitted: boolean;
976
- doi?: string | undefined;
977
- doi_url?: string | undefined;
978
- record_url?: string | undefined;
979
- record_id?: number | undefined;
980
- }>;
981
- export type ZenodoDeposition = z.infer<typeof zenodoDepositionSchema>;
982
- //# sourceMappingURL=depositionSchema.d.ts.map