This commit is contained in:
21
packages/shared/src/contracts/puzzleResultPreview.ts
Normal file
21
packages/shared/src/contracts/puzzleResultPreview.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { PuzzleResultDraft } from './puzzleAgentDraft';
|
||||
|
||||
export interface PuzzleResultPreviewBlocker {
|
||||
id: string;
|
||||
code: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PuzzleResultPreviewFinding {
|
||||
id: string;
|
||||
severity: 'info' | 'warning' | 'blocker';
|
||||
code: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface PuzzleResultPreviewEnvelope {
|
||||
draft: PuzzleResultDraft;
|
||||
blockers: PuzzleResultPreviewBlocker[];
|
||||
qualityFindings: PuzzleResultPreviewFinding[];
|
||||
publishReady: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user