zenodo 3.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/lib/Zenodo.d.ts +22 -31
  2. package/lib/Zenodo.d.ts.map +1 -1
  3. package/lib/Zenodo.js +39 -45
  4. package/lib/Zenodo.js.map +1 -1
  5. package/lib/ZenodoAuthenticationStates.d.ts +6 -5
  6. package/lib/ZenodoAuthenticationStates.d.ts.map +1 -1
  7. package/lib/ZenodoAuthenticationStates.js +3 -5
  8. package/lib/ZenodoAuthenticationStates.js.map +1 -1
  9. package/lib/ZenodoFile.d.ts +26 -1
  10. package/lib/ZenodoFile.d.ts.map +1 -1
  11. package/lib/ZenodoFile.js +2 -3
  12. package/lib/ZenodoFile.js.map +1 -1
  13. package/lib/fetchZenodo.d.ts +2 -2
  14. package/lib/fetchZenodo.d.ts.map +1 -1
  15. package/lib/fetchZenodo.js +94 -11
  16. package/lib/fetchZenodo.js.map +1 -1
  17. package/lib/index.d.ts +0 -1
  18. package/lib/index.d.ts.map +1 -1
  19. package/lib/index.js +0 -1
  20. package/lib/index.js.map +1 -1
  21. package/lib/records/ListDepositionsOptions.d.ts.map +1 -0
  22. package/lib/records/ListDepositionsOptions.js.map +1 -0
  23. package/lib/records/Record.d.ts +36 -0
  24. package/lib/records/Record.d.ts.map +1 -0
  25. package/lib/records/Record.js +231 -0
  26. package/lib/records/Record.js.map +1 -0
  27. package/lib/records/RecordType.d.ts +518 -0
  28. package/lib/records/RecordType.d.ts.map +1 -0
  29. package/lib/records/RecordType.js +2 -0
  30. package/lib/records/RecordType.js.map +1 -0
  31. package/lib/records/RequestType.d.ts +37 -0
  32. package/lib/records/RequestType.d.ts.map +1 -0
  33. package/lib/records/RequestType.js +2 -0
  34. package/lib/records/RequestType.js.map +1 -0
  35. package/lib/utilities/zipFiles.js +1 -1
  36. package/lib/utilities/zipFiles.js.map +1 -1
  37. package/package.json +23 -22
  38. package/src/Zenodo.ts +59 -59
  39. package/src/ZenodoAuthenticationStates.ts +6 -5
  40. package/src/ZenodoFile.ts +24 -4
  41. package/src/fetchZenodo.ts +105 -18
  42. package/src/index.ts +0 -2
  43. package/src/records/Record.ts +311 -0
  44. package/src/records/RecordType.ts +485 -0
  45. package/src/records/RequestType.ts +37 -0
  46. package/src/utilities/zipFiles.ts +1 -1
  47. package/lib/depositions/Deposition.d.ts +0 -98
  48. package/lib/depositions/Deposition.d.ts.map +0 -1
  49. package/lib/depositions/Deposition.js +0 -224
  50. package/lib/depositions/Deposition.js.map +0 -1
  51. package/lib/depositions/ListDepositionsOptions.d.ts.map +0 -1
  52. package/lib/depositions/ListDepositionsOptions.js.map +0 -1
  53. package/lib/depositions/Record.d.ts +0 -10
  54. package/lib/depositions/Record.d.ts.map +0 -1
  55. package/lib/depositions/Record.js +0 -19
  56. package/lib/depositions/Record.js.map +0 -1
  57. package/lib/utilities/ZenodoDepositionSchema.d.ts +0 -473
  58. package/lib/utilities/ZenodoDepositionSchema.d.ts.map +0 -1
  59. package/lib/utilities/ZenodoDepositionSchema.js +0 -80
  60. package/lib/utilities/ZenodoDepositionSchema.js.map +0 -1
  61. package/lib/utilities/ZenodoFileSchema.d.ts +0 -39
  62. package/lib/utilities/ZenodoFileSchema.d.ts.map +0 -1
  63. package/lib/utilities/ZenodoFileSchema.js +0 -37
  64. package/lib/utilities/ZenodoFileSchema.js.map +0 -1
  65. package/lib/utilities/ZenodoMetadataSchema.d.ts +0 -400
  66. package/lib/utilities/ZenodoMetadataSchema.d.ts.map +0 -1
  67. package/lib/utilities/ZenodoMetadataSchema.js +0 -602
  68. package/lib/utilities/ZenodoMetadataSchema.js.map +0 -1
  69. package/lib/utilities/ZenodoRecordSchema.d.ts +0 -544
  70. package/lib/utilities/ZenodoRecordSchema.d.ts.map +0 -1
  71. package/lib/utilities/ZenodoRecordSchema.js +0 -70
  72. package/lib/utilities/ZenodoRecordSchema.js.map +0 -1
  73. package/lib/utilities/ZenodoReviewSchema.d.ts +0 -112
  74. package/lib/utilities/ZenodoReviewSchema.d.ts.map +0 -1
  75. package/lib/utilities/ZenodoReviewSchema.js +0 -80
  76. package/lib/utilities/ZenodoReviewSchema.js.map +0 -1
  77. package/lib/utilities/licensesEnum.d.ts +0 -4
  78. package/lib/utilities/licensesEnum.d.ts.map +0 -1
  79. package/lib/utilities/licensesEnum.js +0 -449
  80. package/lib/utilities/licensesEnum.js.map +0 -1
  81. package/lib/utilities/schemaValidation.d.ts +0 -50
  82. package/lib/utilities/schemaValidation.d.ts.map +0 -1
  83. package/lib/utilities/schemaValidation.js +0 -124
  84. package/lib/utilities/schemaValidation.js.map +0 -1
  85. package/src/depositions/Deposition.ts +0 -272
  86. package/src/depositions/Record.ts +0 -25
  87. package/src/utilities/ZenodoDepositionSchema.ts +0 -90
  88. package/src/utilities/ZenodoFileSchema.ts +0 -40
  89. package/src/utilities/ZenodoMetadataSchema.ts +0 -608
  90. package/src/utilities/ZenodoRecordSchema.ts +0 -75
  91. package/src/utilities/ZenodoReviewSchema.ts +0 -84
  92. package/src/utilities/licensesEnum.ts +0 -448
  93. package/src/utilities/schemaValidation.ts +0 -150
  94. /package/lib/{depositions → records}/ListDepositionsOptions.d.ts +0 -0
  95. /package/lib/{depositions → records}/ListDepositionsOptions.js +0 -0
  96. /package/src/{depositions → records}/ListDepositionsOptions.ts +0 -0
@@ -0,0 +1,518 @@
1
+ /**
2
+ * An identifier.
3
+ */
4
+ export type Identifier = string | number;
5
+ /**
6
+ * Type of name.
7
+ */
8
+ export type NameType = 'personal' | 'organizational';
9
+ /**
10
+ * A scheme.
11
+ */
12
+ export type Scheme = string;
13
+ export type Affiliations = Affiliation[];
14
+ export type Subjects = Subject[];
15
+ export type GeoJSONGeometry = GeoJSONPoint | GeoJSONLineString | GeoJSONPolygon | GeoJSONMultiPoint | GeoJSONMultiLineString | GeoJSONMultiPolygon;
16
+ /**
17
+ * An agent (user, software process, community, ...).
18
+ */
19
+ export type Agent = User | null;
20
+ export interface ZenodoRecord {
21
+ $schema?: string;
22
+ id?: Identifier;
23
+ pid?: InternalPid;
24
+ /**
25
+ * External persistent identifiers for a record including e.g. OAI-PMH identifier, minted DOIs and more. PIDs are registered in the PIDStore.
26
+ */
27
+ pids?: Record<string, ExternalPid>;
28
+ links?: {
29
+ self?: string;
30
+ self_html?: string;
31
+ preview_html?: string;
32
+ reserve_doi?: string;
33
+ doi?: string;
34
+ doi_html?: string;
35
+ parent_doi?: string;
36
+ parent_doi_html?: string;
37
+ self_iiif_manifest?: string;
38
+ self_iiif_sequence?: string;
39
+ files?: string;
40
+ media_files?: string;
41
+ archive?: string;
42
+ archive_media?: string;
43
+ versions?: string;
44
+ record?: string;
45
+ record_html?: string;
46
+ publish?: string;
47
+ review?: string;
48
+ access_links?: string;
49
+ access_grants?: string;
50
+ access_users?: string;
51
+ access_request?: string;
52
+ access?: string;
53
+ communities?: string;
54
+ communities_suggestions?: string;
55
+ requests?: string;
56
+ };
57
+ metadata?: ZenodoMetadata;
58
+ /**
59
+ * Configured additional metadata
60
+ */
61
+ custom_fields?: Record<string, unknown>;
62
+ /**
63
+ * Tombstone information for the record.
64
+ */
65
+ tombstone?: {
66
+ /**
67
+ * Reason for record removal.
68
+ */
69
+ removal_reason?: {
70
+ id?: Identifier;
71
+ };
72
+ /**
73
+ * Public note about the removal.
74
+ */
75
+ note?: string;
76
+ removed_by?: Agent;
77
+ /**
78
+ * ISO8601 formatted timestamp in UTC.
79
+ */
80
+ removal_date?: string;
81
+ /**
82
+ * The record citation text to be displayed on the tombstone page.
83
+ */
84
+ citation_text?: string;
85
+ /**
86
+ * Whether or not the tombstone page is publicly visible.
87
+ */
88
+ is_visible?: boolean;
89
+ };
90
+ internal_notes?: Array<{
91
+ id?: string;
92
+ note?: string;
93
+ /**
94
+ * ISO8601 formatted timestamp in UTC.
95
+ */
96
+ timestamp?: string;
97
+ added_by?: Agent;
98
+ [k: string]: unknown;
99
+ }>;
100
+ /**
101
+ * Record provenance.
102
+ */
103
+ provenance?: {
104
+ created_by?: Agent;
105
+ on_behalf_of?: Agent;
106
+ };
107
+ /**
108
+ * Record access control and ownership.
109
+ */
110
+ access?: ZenodoRecordAccess;
111
+ files?: FilesSimple;
112
+ media_files?: FilesSimple;
113
+ notes?: string[];
114
+ status?: string;
115
+ }
116
+ /**
117
+ * An internal persistent identifier object.
118
+ */
119
+ export interface InternalPid {
120
+ /**
121
+ * Primary key of the PID object.
122
+ */
123
+ pk: number;
124
+ /**
125
+ * The status of the PID (from Invenio-PIDStore).
126
+ */
127
+ status: 'N' | 'K' | 'R' | 'M' | 'D';
128
+ /**
129
+ * The type of the persistent identifier.
130
+ */
131
+ pid_type?: string;
132
+ /**
133
+ * The type of the associated object.
134
+ */
135
+ obj_type?: string;
136
+ }
137
+ /**
138
+ * An external persistent identifier object.
139
+ */
140
+ export interface ExternalPid {
141
+ identifier?: Identifier;
142
+ /**
143
+ * The provider of the persistent identifier.
144
+ */
145
+ provider?: string;
146
+ /**
147
+ * Client identifier for the specific PID.
148
+ */
149
+ client?: string;
150
+ }
151
+ /**
152
+ * Record access control and ownership.
153
+ */
154
+ export interface ZenodoRecordAccess {
155
+ /**
156
+ * Record metadata visibility. Zenodo only exposes the public value —
157
+ * fully private records are not an option the platform supports.
158
+ */
159
+ record?: 'public';
160
+ /**
161
+ * Files visibility (public or restricted).
162
+ */
163
+ files?: 'public' | 'restricted';
164
+ /**
165
+ * Description of the embargo on the record.
166
+ */
167
+ embargo?: {
168
+ /**
169
+ * Whether or not the embargo is (still) active.
170
+ */
171
+ active?: boolean | null;
172
+ /**
173
+ * Embargo date of record (ISO8601 formatted date time in UTC). At this time both metadata and files will be made public.
174
+ */
175
+ until?: string | null;
176
+ /**
177
+ * The reason why the record is under embargo.
178
+ */
179
+ reason?: string | null;
180
+ };
181
+ }
182
+ /**
183
+ * Resource metadata.
184
+ */
185
+ export interface ZenodoMetadata {
186
+ resource_type?: ResourceType;
187
+ /**
188
+ * Creators of the resource.
189
+ */
190
+ creators?: Array<{
191
+ person_or_org?: PersonOrOrg;
192
+ role?: Role;
193
+ affiliations?: Affiliations;
194
+ }>;
195
+ /**
196
+ * Primary title of the record.
197
+ */
198
+ title?: string;
199
+ /**
200
+ * Additional record titles.
201
+ */
202
+ additional_titles?: Array<{
203
+ /**
204
+ * Additional title of the record.
205
+ */
206
+ title?: string;
207
+ type?: TitleType;
208
+ lang?: Language;
209
+ }>;
210
+ publisher?: string;
211
+ /**
212
+ * Record publication date (EDTF level 0 format).
213
+ */
214
+ publication_date?: string;
215
+ subjects?: Subjects;
216
+ /**
217
+ * Contributors in order of importance.
218
+ */
219
+ contributors?: Array<{
220
+ person_or_org?: PersonOrOrg;
221
+ role?: Role;
222
+ affiliations?: Affiliations;
223
+ }>;
224
+ /**
225
+ * Date, datetime or date interval.
226
+ */
227
+ dates?: Array<{
228
+ /**
229
+ * Date, datetime or date interval in EDTF level 0 format
230
+ */
231
+ date?: string;
232
+ type?: DateType;
233
+ /**
234
+ * Description of the date, datetime or date interval e.g. 'Accepted' or 'Available' (CV).
235
+ */
236
+ description?: string;
237
+ }>;
238
+ /**
239
+ * The primary languages of the resource. ISO 639-3 language code.
240
+ */
241
+ languages?: Language[];
242
+ /**
243
+ * Alternate identifiers for the record.
244
+ */
245
+ identifiers?: IdentifiersWithScheme[];
246
+ related_identifiers?: Array<{
247
+ identifier?: Identifier;
248
+ scheme?: Scheme;
249
+ relation_type?: RelationType;
250
+ resource_type?: ResourceType;
251
+ }>;
252
+ sizes?: string[];
253
+ formats?: string[];
254
+ /**
255
+ * Record version tag.
256
+ */
257
+ version?: string;
258
+ /**
259
+ * Any license or copyright information for this resource.
260
+ */
261
+ rights?: Array<{
262
+ id?: Identifier;
263
+ /**
264
+ * The license name or license itself. Free text.
265
+ */
266
+ title?: Record<string, unknown>;
267
+ /**
268
+ * The license description Free text.
269
+ */
270
+ description?: Record<string, unknown>;
271
+ link?: string;
272
+ }>;
273
+ /**
274
+ * Copyright for record (may contain HTML).
275
+ */
276
+ copyright?: string;
277
+ /**
278
+ * Description for record (may contain HTML).
279
+ */
280
+ description?: string;
281
+ additional_descriptions?: Array<{
282
+ /**
283
+ * Description for record.
284
+ */
285
+ description?: string;
286
+ type?: DescriptionType;
287
+ lang?: Language;
288
+ }>;
289
+ /**
290
+ * Geographical locations relevant to this record.
291
+ */
292
+ locations?: {
293
+ features?: [
294
+ {
295
+ geometry?: GeoJSONGeometry & {
296
+ type?: unknown;
297
+ coordinates?: unknown;
298
+ };
299
+ identifiers?: IdentifiersWithScheme[];
300
+ /**
301
+ * Place of the location
302
+ */
303
+ place?: string;
304
+ /**
305
+ * Description of the location
306
+ */
307
+ description?: string;
308
+ },
309
+ ...Array<{
310
+ geometry?: GeoJSONGeometry & {
311
+ type?: unknown;
312
+ coordinates?: unknown;
313
+ };
314
+ identifiers?: IdentifiersWithScheme[];
315
+ /**
316
+ * Place of the location
317
+ */
318
+ place?: string;
319
+ /**
320
+ * Description of the location
321
+ */
322
+ description?: string;
323
+ }>
324
+ ];
325
+ };
326
+ funding?: Array<{
327
+ funder?: {
328
+ name?: string;
329
+ id?: Identifier;
330
+ };
331
+ award?: {
332
+ title?: Record<string, unknown>;
333
+ number?: string;
334
+ id?: Identifier;
335
+ identifiers?: IdentifiersWithScheme[];
336
+ };
337
+ }>;
338
+ references?: Array<{
339
+ /**
340
+ * A reference string.
341
+ */
342
+ reference?: string;
343
+ identifier?: Identifier;
344
+ scheme?: Scheme;
345
+ }>;
346
+ }
347
+ /**
348
+ * A resource type.
349
+ */
350
+ export interface ResourceType {
351
+ id?: Identifier;
352
+ }
353
+ export interface PersonOrOrg {
354
+ name?: string;
355
+ type?: NameType;
356
+ given_name?: string;
357
+ family_name?: string;
358
+ identifiers?: IdentifiersWithScheme[];
359
+ }
360
+ /**
361
+ * Identifiers object with identifier value and scheme in separate keys.
362
+ */
363
+ export interface IdentifiersWithScheme {
364
+ identifier?: Identifier;
365
+ scheme?: Scheme;
366
+ }
367
+ /**
368
+ * Role of creator/contributor.
369
+ */
370
+ export interface Role {
371
+ id?: Identifier;
372
+ }
373
+ export interface Affiliation {
374
+ id?: Identifier;
375
+ name?: string;
376
+ }
377
+ /**
378
+ * Type of title.
379
+ */
380
+ export interface TitleType {
381
+ id?: Identifier;
382
+ }
383
+ export interface Language {
384
+ id?: string;
385
+ }
386
+ /**
387
+ * Term related to entry.
388
+ */
389
+ export interface Subject {
390
+ id?: Identifier;
391
+ subject?: string;
392
+ }
393
+ /**
394
+ * Type of the date.
395
+ */
396
+ export interface DateType {
397
+ id?: Identifier;
398
+ }
399
+ /**
400
+ * A relation type.
401
+ */
402
+ export interface RelationType {
403
+ id?: Identifier;
404
+ }
405
+ /**
406
+ * A description type.
407
+ */
408
+ export interface DescriptionType {
409
+ id?: string;
410
+ }
411
+ export interface GeoJSONPoint {
412
+ type: 'Point';
413
+ coordinates: [number, number, ...number[]];
414
+ }
415
+ export interface GeoJSONLineString {
416
+ type: 'LineString';
417
+ coordinates: [
418
+ [
419
+ number,
420
+ number,
421
+ ...number[]
422
+ ],
423
+ [
424
+ number,
425
+ number,
426
+ ...number[]
427
+ ],
428
+ ...Array<[number, number, ...number[]]>
429
+ ];
430
+ }
431
+ export interface GeoJSONPolygon {
432
+ type: 'Polygon';
433
+ coordinates: Array<[
434
+ [
435
+ number,
436
+ number,
437
+ ...number[]
438
+ ],
439
+ [
440
+ number,
441
+ number,
442
+ ...number[]
443
+ ],
444
+ [
445
+ number,
446
+ number,
447
+ ...number[]
448
+ ],
449
+ [
450
+ number,
451
+ number,
452
+ ...number[]
453
+ ],
454
+ ...Array<[number, number, ...number[]]>
455
+ ]>;
456
+ }
457
+ export interface GeoJSONMultiPoint {
458
+ type: 'MultiPoint';
459
+ coordinates: Array<[number, number, ...number[]]>;
460
+ }
461
+ export interface GeoJSONMultiLineString {
462
+ type: 'MultiLineString';
463
+ coordinates: Array<[
464
+ [
465
+ number,
466
+ number,
467
+ ...number[]
468
+ ],
469
+ [
470
+ number,
471
+ number,
472
+ ...number[]
473
+ ],
474
+ ...Array<[number, number, ...number[]]>
475
+ ]>;
476
+ }
477
+ export interface GeoJSONMultiPolygon {
478
+ type: 'MultiPolygon';
479
+ coordinates: Array<Array<[
480
+ [
481
+ number,
482
+ number,
483
+ ...number[]
484
+ ],
485
+ [
486
+ number,
487
+ number,
488
+ ...number[]
489
+ ],
490
+ [
491
+ number,
492
+ number,
493
+ ...number[]
494
+ ],
495
+ [
496
+ number,
497
+ number,
498
+ ...number[]
499
+ ],
500
+ ...Array<[number, number, ...number[]]>
501
+ ]>>;
502
+ }
503
+ /**
504
+ * User object.
505
+ */
506
+ export interface User {
507
+ user?: string | number;
508
+ }
509
+ /**
510
+ * Files associated with the object.
511
+ */
512
+ export interface FilesSimple {
513
+ /**
514
+ * Set to false for metadata only records.
515
+ */
516
+ enabled?: boolean;
517
+ }
518
+ //# sourceMappingURL=RecordType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordType.d.ts","sourceRoot":"","sources":["../../src/records/RecordType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,gBAAgB,CAAC;AACrD;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,MAAM,YAAY,GAAG,WAAW,EAAE,CAAC;AACzC,MAAM,MAAM,QAAQ,GAAG,OAAO,EAAE,CAAC;AACjC,MAAM,MAAM,eAAe,GACvB,YAAY,GACZ,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,sBAAsB,GACtB,mBAAmB,CAAC;AACxB;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhC,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,GAAG,CAAC,EAAE,WA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C;CACH;AACD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,EAAE,KAAK,CAChB,KAAK,CACH;QACE;YAAC,MAAM;YAAE,MAAM;YAAE,GAAG,MAAM,EAAE;SAAC;QAC7B;YAAC,MAAM;YAAE,MAAM;YAAE,GAAG,MAAM,EAAE;SAAC;QAC7B;YAAC,MAAM;YAAE,MAAM;YAAE,GAAG,MAAM,EAAE;SAAC;QAC7B;YAAC,MAAM;YAAE,MAAM;YAAE,GAAG,MAAM,EAAE;SAAC;QAC7B,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;KACxC,CACF,CACF,CAAC;CACH;AACD;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RecordType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordType.js","sourceRoot":"","sources":["../../src/records/RecordType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * An identifier.
3
+ */
4
+ export type Identifier = string;
5
+ export interface ZenodoReview {
6
+ $schema?: string;
7
+ id?: Identifier;
8
+ created?: string;
9
+ created_by?: {
10
+ user?: Identifier;
11
+ };
12
+ expires_at?: string;
13
+ is_closed?: boolean;
14
+ is_expired?: boolean;
15
+ is_open?: boolean;
16
+ links?: {
17
+ actions?: {
18
+ submit?: string;
19
+ };
20
+ comments?: string;
21
+ self?: string;
22
+ self_html?: string;
23
+ timeline?: string;
24
+ };
25
+ number: string;
26
+ receiver?: {
27
+ community?: Identifier;
28
+ };
29
+ revision_id?: number;
30
+ status?: string;
31
+ topic?: {
32
+ record?: Identifier;
33
+ };
34
+ type?: string;
35
+ updated?: string;
36
+ }
37
+ //# sourceMappingURL=RequestType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestType.d.ts","sourceRoot":"","sources":["../../src/records/RequestType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,UAAU,CAAC;KACnB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE;YACR,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE;QACT,SAAS,CAAC,EAAE,UAAU,CAAC;KACxB,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,UAAU,CAAC;KACrB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=RequestType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestType.js","sourceRoot":"","sources":["../../src/records/RequestType.ts"],"names":[],"mappings":""}
@@ -14,7 +14,7 @@ export async function zipFiles(files, zipName) {
14
14
  const zipFileStream = new TransformStream();
15
15
  const zipFileBlobPromise = new Response(zipFileStream.readable).blob();
16
16
  const zipWriter = new ZipWriter(zipFileStream.writable);
17
- const attachmentPromises = files.map((file) => zipWriter.add(file.name, file.stream()));
17
+ const attachmentPromises = files.map((file) => zipWriter.add(`${zipName}/${file.name}`, file.stream()));
18
18
  await Promise.all(attachmentPromises);
19
19
  await zipWriter.close();
20
20
  const zipFileBlob = await zipFileBlobPromise;
@@ -1 +1 @@
1
- {"version":3,"file":"zipFiles.js","sourceRoot":"","sources":["../../src/utilities/zipFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEtD,SAAS,CAAC;IACR,oBAAoB,EAAE,IAAI;IAC1B,aAAa,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,KAAa,EAAE,OAAe;IAC3D,MAAM,aAAa,GAAG,IAAI,eAAe,EAAE,CAAC;IAC5C,MAAM,kBAAkB,GAAG,IAAI,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;IACvE,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAExD,MAAM,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC5C,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CACxC,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IACtC,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;IAExB,MAAM,WAAW,GAAG,MAAM,kBAAkB,CAAC;IAE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AAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,IAAI,IAAI,CAAC,CAAC,WAAW,CAAC,EAAE,GAAG,OAAO,MAAM,EAAE;QAC/C,IAAI,EAAE,iBAAiB;KACxB,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "zenodo",
3
- "version": "3.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Node.js library to access the Zenodo API",
5
5
  "type": "module",
6
- "exports": "./lib/index.js",
6
+ "exports": {
7
+ ".": "./lib/index.js"
8
+ },
7
9
  "files": [
8
- "src",
9
- "lib"
10
+ "lib",
11
+ "src"
10
12
  ],
11
13
  "scripts": {
12
14
  "build": "npm run tsc && cheminfo-build --entry lib/index.js --root Zenodo",
@@ -36,25 +38,24 @@
36
38
  },
37
39
  "homepage": "https://github.com/cheminfo/zenodo#readme",
38
40
  "dependencies": {
39
- "@zip.js/zip.js": "^2.7.62",
40
- "ajv": "^8.17.1",
41
- "ajv-formats": "^3.0.1",
42
- "delay": "^6.0.0",
43
- "orcid-utils": "^1.2.2"
41
+ "@zip.js/zip.js": "^2.8.26",
42
+ "delay": "^7.0.0",
43
+ "ml-spectra-processing": "^14.27.0",
44
+ "orcid-utils": "^1.2.3"
44
45
  },
45
46
  "devDependencies": {
46
- "@types/node": "^24.0.3",
47
- "@vitest/coverage-v8": "^3.2.3",
48
- "@zakodium/tsconfig": "^1.0.2",
49
- "cheminfo-build": "^1.2.1",
50
- "cheminfo-types": "^1.8.1",
51
- "dotenv": "^16.5.0",
52
- "eslint": "^9.29.0",
53
- "eslint-config-cheminfo-typescript": "^18.0.1",
54
- "fifo-logger": "^1.0.0",
55
- "json-schema-to-ts": "^3.1.1",
56
- "prettier": "^3.5.3",
57
- "rimraf": "^6.0.1",
58
- "vitest": "^3.2.3"
47
+ "@types/node": "^25.6.0",
48
+ "@vitest/coverage-v8": "^4.1.4",
49
+ "@zakodium/tsconfig": "^1.0.5",
50
+ "cheminfo-build": "^1.3.2",
51
+ "cheminfo-types": "^1.15.0",
52
+ "dotenv": "^17.4.2",
53
+ "eslint": "^9.39.2",
54
+ "eslint-config-cheminfo-typescript": "^21.2.0",
55
+ "fifo-logger": "^2.0.1",
56
+ "prettier": "^3.8.2",
57
+ "rimraf": "^6.1.3",
58
+ "typescript": "^5.9.3",
59
+ "vitest": "^4.1.4"
59
60
  }
60
61
  }