@readerseye2/cr_type 1.0.133 → 1.0.135

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.
@@ -16,7 +16,7 @@ export interface CalibrationPeriod {
16
16
  /** 캘리브레이션 결과 품질 (0~1, 기기 제공) */
17
17
  quality?: number;
18
18
  }
19
- /** 퀴즈 시도 결과 (개별 퀴즈) */
19
+ /** 퀴즈 시도 결과 (개별 퀴즈, 서버 저장용) */
20
20
  export interface QuizAttemptResult {
21
21
  quizId: string;
22
22
  /** 획득 점수 */
@@ -30,6 +30,36 @@ export interface QuizAttemptResult {
30
30
  timedOut: boolean;
31
31
  attemptedAt: string;
32
32
  }
33
+ /** 문항별 퀴즈 결과 (뷰어 콜백용, 선택지 포함) */
34
+ export interface QuizQuestionResult {
35
+ qid: string;
36
+ index: number;
37
+ question?: string;
38
+ score: number;
39
+ isCorrect: boolean;
40
+ selected: number[];
41
+ correctIdxes: number[];
42
+ /** 소요 시간 (ms) */
43
+ ms: number;
44
+ timedOut: boolean;
45
+ }
46
+ /** 섹션 퀴즈 전체 결과 (뷰어 onQuizComplete 콜백) */
47
+ export interface QuizResult {
48
+ sectionId: string;
49
+ /** 총 문항 수 */
50
+ total: number;
51
+ /** 정답 수 */
52
+ correct: number;
53
+ /** 정답률 (0~1) */
54
+ rate: number;
55
+ /** 배점 합계 */
56
+ totalScore: number;
57
+ /** 획득 점수 합계 */
58
+ gainedScore: number;
59
+ /** 총 소요 시간 (ms) */
60
+ timeMsTotal: number;
61
+ perQuestion: QuizQuestionResult[];
62
+ }
33
63
  /** 찾아본 단어 기록 */
34
64
  export interface LookedUpWord {
35
65
  /** 원문 텍스트 */
@@ -122,6 +152,8 @@ export interface ChildSectionProgress {
122
152
  totalBlinks: number;
123
153
  /** 찾아본 단어 목록 (unique text 기준) */
124
154
  lookedUpWords: LookedUpWord[];
155
+ /** 개별 퀴즈 결과 (quizId 기준 최신 1건만 유지, 재시도 시 덮어쓰기) */
156
+ quizResults: QuizAttemptResult[];
125
157
  quizScore: number;
126
158
  quizMaxScore: number;
127
159
  quizCorrectCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.133",
3
+ "version": "1.0.135",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",