mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
wip: get active session
This commit is contained in:
1 parent
423548804a
commit
963655c1f7
7 files changed
+69
-12
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export * from './src/quest.js'
|
||||
export * from './quest.js'
|
||||
export * from './session.js'
|
||||
|
||||
export const passwordPolicy = {
|
||||
minLength: 8,
|
||||
@@ -0,0 +1,15 @@
|
||||
export interface SessionSummaryResponse {
|
||||
_id: string
|
||||
user: string
|
||||
quest: string
|
||||
status: string
|
||||
createdAt: Date
|
||||
lastActivityAt: Date
|
||||
}
|
||||
|
||||
export interface SessionDetailResponse extends SessionSummaryResponse {
|
||||
hints: string[][]
|
||||
tasks: string[][]
|
||||
responses: string[][]
|
||||
graph: any
|
||||
}
|
||||
@@ -4,7 +4,8 @@
|
||||
"composite": true,
|
||||
"module": "Node16",
|
||||
"moduleResolution": "node16",
|
||||
"outDir": "./dist"
|
||||
"outDir": "./dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": ["*.js", "*.ts", "src/**/*.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
|
||||
Reference in new issue
Block a user