|
1 | | -/* |
2 | | -{ |
3 | | - "status": "OK", |
4 | | - "data": { |
5 | | - "oldVersion": { |
6 | | - "versionNumber": "1.0", |
7 | | - "lastUpdatedDate": "2024-10-24T15:17:11Z" |
8 | | - }, |
9 | | - "newVersion": { |
10 | | - "versionNumber": "DRAFT", |
11 | | - "lastUpdatedDate": "2024-10-24T15:17:16Z" |
12 | | - }, |
13 | | - "metadataChanges": [ |
14 | | - { |
15 | | - "blockName": "Citation Metadata", |
16 | | - "changed": [ |
17 | | - { |
18 | | - "fieldName": "Author", |
19 | | - "oldValue": "Finch, Fiona; (Birds Inc.)", |
20 | | - "newValue": "Finch, Fiona; (Birds Inc.); Poe, Edgar Allen; (Baltimore Poets); Mulligan, Hercules; (Sons of Liberty)" |
21 | | - }, |
22 | | - { |
23 | | - "fieldName": "Subject", |
24 | | - "oldValue": "Medicine, Health and Life Sciences", |
25 | | - "newValue": "Medicine, Health and Life Sciences; Astronomy and Astrophysics; Other" |
26 | | - }, |
27 | | - { |
28 | | - "fieldName": "Producer", |
29 | | - "oldValue": "", |
30 | | - "newValue": "Allen, Irwin; (MGM); Spielberg, Stephen; (ILM)" |
31 | | - } |
32 | | - ] |
33 | | - }, |
34 | | - { |
35 | | - "blockName": "Life Sciences Metadata", |
36 | | - "changed": [ |
37 | | - { |
38 | | - "fieldName": "Design Type", |
39 | | - "oldValue": "", |
40 | | - "newValue": "Parallel Group Design; Nested Case Control Design" |
41 | | - } |
42 | | - ] |
43 | | - } |
44 | | - ], |
45 | | - "filesAdded": [ |
46 | | - { |
47 | | - "fileName": "test.tab", |
48 | | - "filePath": "data/subdir1", |
49 | | - "MD5": "77c7f03a7d7772907b43f0b322cef723", |
50 | | - "type": "text/tab-separated-values", |
51 | | - "fileId": 42, |
52 | | - "description": "my description", |
53 | | - "isRestricted": false, |
54 | | - "categories": [ |
55 | | - "Data" |
56 | | - ], |
57 | | - "tags": [ |
58 | | - "Survey" |
59 | | - ] |
60 | | - } |
61 | | - ], |
62 | | - "filesRemoved": [ |
63 | | - { |
64 | | - "fileName": "dataverseproject_logo.jpg", |
65 | | - "filePath": "data/subdir1", |
66 | | - "MD5": "c1edbefa86a55c5037873370ae7fd7b6", |
67 | | - "type": "image/jpeg", |
68 | | - "fileId": 40, |
69 | | - "description": "my description", |
70 | | - "isRestricted": false, |
71 | | - "categories": [ |
72 | | - "Data" |
73 | | - ] |
74 | | - } |
75 | | - ], |
76 | | - "filesReplaced": [ |
77 | | - { |
78 | | - "oldFile": { |
79 | | - "fileName": "favicon-16x16.png", |
80 | | - "filePath": "data/subdir1", |
81 | | - "MD5": "d3c852e7ecb92fd105ba4018116a9be8", |
82 | | - "type": "image/png", |
83 | | - "fileId": 41, |
84 | | - "description": "my description", |
85 | | - "isRestricted": false, |
86 | | - "categories": [ |
87 | | - "Data" |
88 | | - ] |
89 | | - }, |
90 | | - "newFile": { |
91 | | - "fileName": "favicon-32x32.png", |
92 | | - "filePath": "data/subdir1", |
93 | | - "MD5": "c931f7add8b6a1f9a691046b77c231fa", |
94 | | - "type": "image/png", |
95 | | - "fileId": 43, |
96 | | - "description": "my description", |
97 | | - "isRestricted": false, |
98 | | - "categories": [ |
99 | | - "Data" |
100 | | - ] |
101 | | - } |
102 | | - } |
103 | | - ], |
104 | | - "fileChanges": [ |
105 | | - { |
106 | | - "fileName": "dataverse-icon-1200.png", |
107 | | - "MD5": "a23eb44803d9127bc6e055f77b869816", |
108 | | - "fileId": 39, |
109 | | - "changed": [ |
110 | | - { |
111 | | - "fieldName": "isRestricted", |
112 | | - "oldValue": "false", |
113 | | - "newValue": "true" |
114 | | - } |
115 | | - ] |
116 | | - } |
117 | | - ], |
118 | | - "TermsOfAccess": { |
119 | | - "changed": [ |
120 | | - { |
121 | | - "fieldName": "Data Access Place", |
122 | | - "oldValue": "", |
123 | | - "newValue": "Somewhere" |
124 | | - } |
125 | | - ] |
126 | | - } |
127 | | - } |
128 | | -} |
129 | | - */ |
130 | | - |
131 | 1 | export interface DatasetVersionDiffPayload { |
132 | 2 | oldVersion: VersionSummaryPayload |
133 | 3 | newVersion: VersionSummaryPayload |
|
0 commit comments