| 2 | import { CORRECT_FLAG, INITIAL_PROGRESS, HINTS } from "@shared/schema"; |
| 3 | |
| 4 | export interface IStorage { |
| 5 | getProgress(sessionId: string): Promise<Progress>; |
| 6 | updateProgress(sessionId: string, progress: Progress): Promise<Progress>; |
| 7 | getAttempts(sessionId: string): Promise<number>; |
| 8 | incrementAttempts(sessionId: string): Promise<number>; |
| 9 | validateFlag(sessionId: string, flag: string): Promise<FlagResponse>; |
| 10 | getHints(sessionId: string): Promise<Hint[]>; |
| 11 | updateHints(sessionId: string, hints: Hint[]): Promise<Hint[]>; |
| 12 | } |
| 13 | |
| 14 | interface SessionData { |
| 15 | progress: Progress; |
no outgoing calls
no test coverage detected