@readerseye2/cr_type 1.0.132 → 1.0.134

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
  /** 원문 텍스트 */
@@ -1,5 +1,5 @@
1
1
  /** 지원하는 시선추적 프로바이더 타입 */
2
- export type EyeTrackerType = 'eyedid' | 'seeso' | 'custom' | 'fake' | 'webgazer' | 'android_seeso';
2
+ export type EyeTrackerType = 'eyedid' | 'seeso' | 'custom' | 'fake' | 'webgazer' | 'android_seeso' | 'android_eyedid';
3
3
  /** 단일 시선 샘플 (0~1 정규화 좌표) */
4
4
  export interface GazeData {
5
5
  /** 정규화된 X 좌표 (0~1, 좌→우) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.132",
3
+ "version": "1.0.134",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",