@gaia-project/site-lib
Advanced tools
Comparing version 1.5.3 to 2.0.0
@@ -30,10 +30,13 @@ "use strict"; | ||
}, | ||
currentPlayer: { | ||
type: mongoose_1.Schema.Types.ObjectId, | ||
ref: "User" | ||
}, | ||
nextMoveDeadline: { | ||
type: Date, | ||
sparse: true | ||
}, | ||
currentPlayer: [{ | ||
_id: { | ||
type: mongoose_1.Schema.Types.ObjectId, | ||
ref: "User", | ||
index: true | ||
}, | ||
deadline: { | ||
type: Date, | ||
index: true | ||
} | ||
}], | ||
lastMove: { | ||
@@ -40,0 +43,0 @@ type: Date, |
@@ -14,5 +14,8 @@ export interface PlayerInfo<T = string> { | ||
creator: T; | ||
currentPlayer: T; | ||
nextMoveDeadline: Date; | ||
currentPlayer: Array <{ | ||
_id: T, | ||
timerStart: Date, | ||
deadline: Date | ||
}>; | ||
@@ -56,5 +59,5 @@ /** Game data */ | ||
lastMove: Date; | ||
updatedAt: Date; | ||
createdAt: Date; | ||
lastMove: Date; | ||
} | ||
@@ -61,0 +64,0 @@ |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "1.5.3", | ||
"version": "2.0.0", | ||
"description": "Shared typedefs & schemas", | ||
@@ -17,0 +17,0 @@ "main": "index.ts", |
@@ -30,10 +30,13 @@ import { Schema } from "mongoose"; | ||
}, | ||
currentPlayer: { | ||
type: Schema.Types.ObjectId, | ||
ref: "User" | ||
}, | ||
nextMoveDeadline: { | ||
type: Date, | ||
sparse: true | ||
}, | ||
currentPlayer: [{ | ||
_id: { | ||
type: Schema.Types.ObjectId, | ||
ref: "User", | ||
index: true | ||
}, | ||
deadline: { | ||
type: Date, | ||
index: true | ||
} | ||
}], | ||
lastMove: { | ||
@@ -40,0 +43,0 @@ type: Date, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21476
682