@openneuro/server 4.25.1-orcid-demo.2 → 4.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/models/metadata.ts +2 -2
- package/src/models/reviewer.ts +2 -2
- package/src/models/upload.ts +2 -2
- package/src/models/user.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openneuro/server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.26.1",
|
|
4
4
|
"description": "Core service for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/server.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@elastic/elasticsearch": "8.13.1",
|
|
22
22
|
"@graphql-tools/schema": "^10.0.0",
|
|
23
23
|
"@keyv/redis": "^2.7.0",
|
|
24
|
-
"@openneuro/search": "^4.
|
|
24
|
+
"@openneuro/search": "^4.26.1",
|
|
25
25
|
"@passport-next/passport-google-oauth2": "^1.0.0",
|
|
26
26
|
"@sentry/node": "^4.5.3",
|
|
27
27
|
"base64url": "^3.0.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"ts-node": "9.1.1",
|
|
64
64
|
"typescript": "5.1.6",
|
|
65
65
|
"underscore": "^1.8.3",
|
|
66
|
-
"uuid": "
|
|
66
|
+
"uuid": "10.0.0",
|
|
67
67
|
"xmldoc": "^1.1.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "059df1d714c883d1f5966c0b3968b073bf0120e3"
|
|
90
90
|
}
|
package/src/models/metadata.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v4 as uuidv4 } from "uuid"
|
|
2
2
|
import mongoose, { Document } from "mongoose"
|
|
3
3
|
const { Schema, model } = mongoose
|
|
4
4
|
|
|
@@ -29,7 +29,7 @@ export interface MetadataDocument extends Document {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
const metadataSchema = new Schema({
|
|
32
|
-
datasetId: { type: String, default:
|
|
32
|
+
datasetId: { type: String, default: uuidv4 }, // OpenNeuro id
|
|
33
33
|
datasetName: String,
|
|
34
34
|
datasetUrl: String, // @id type
|
|
35
35
|
dataProcessed: Boolean, // 'true' | 'false' | 'user input string'
|
package/src/models/reviewer.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v4 as uuidv4 } from "uuid"
|
|
2
2
|
import mongoose, { Document } from "mongoose"
|
|
3
3
|
const { Schema, model } = mongoose
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ export interface ReviewerDocument extends Document {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const reviewerSchema = new Schema({
|
|
13
|
-
id: { type: String, required: true, default:
|
|
13
|
+
id: { type: String, required: true, default: uuidv4 },
|
|
14
14
|
datasetId: { type: String, required: true },
|
|
15
15
|
expiration: {
|
|
16
16
|
type: Date,
|
package/src/models/upload.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v4 as uuidv4 } from "uuid"
|
|
2
2
|
import mongoose, { Document } from "mongoose"
|
|
3
3
|
const { Schema, model } = mongoose
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ export interface UploadDocument extends Document {
|
|
|
15
15
|
* newFiles excludes files in existing commits, as those are handled by other resolvers
|
|
16
16
|
*/
|
|
17
17
|
const uploadSchema = new Schema({
|
|
18
|
-
id: { type: String, required: true, default:
|
|
18
|
+
id: { type: String, required: true, default: uuidv4 },
|
|
19
19
|
datasetId: { type: String, required: true },
|
|
20
20
|
estimatedSize: Number,
|
|
21
21
|
complete: { type: Boolean, default: false, required: true },
|
package/src/models/user.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { v4 as uuidv4 } from "uuid"
|
|
2
2
|
import mongoose, { Document } from "mongoose"
|
|
3
3
|
const { Schema, model } = mongoose
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ export interface UserDocument extends Document {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const userSchema = new Schema({
|
|
20
|
-
id: { type: String, default:
|
|
20
|
+
id: { type: String, default: uuidv4 }, // OpenNeuro id
|
|
21
21
|
email: String,
|
|
22
22
|
name: String,
|
|
23
23
|
provider: String, // Login provider
|