@readerseye2/cr_type 1.0.159 → 1.0.161
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.
- package/dist/book/book-api.type.d.ts +15 -15
- package/dist/book/book-api.type.js +2 -2
- package/dist/book/book-log.type.d.ts +14 -14
- package/dist/book/book-log.type.js +2 -2
- package/dist/book/book.const.d.ts +274 -274
- package/dist/book/book.const.js +119 -119
- package/dist/book/legacy.book.type.d.ts +164 -164
- package/dist/book/legacy.book.type.js +41 -41
- package/dist/gaze/eye-tracker.types.d.ts +1 -1
- package/dist/socket/socket-clientToServerEvents.type.d.ts +12 -1
- package/dist/socket/socket-serverToClientEvents.type.d.ts +7 -0
- package/package.json +27 -27
|
@@ -22,6 +22,10 @@ export interface ClientToServerEvents {
|
|
|
22
22
|
'session:unsubscribe': (payload: SessionSubscribePayload) => void;
|
|
23
23
|
/** 읽기 진행 보고 (5초 주기 자동저장) */
|
|
24
24
|
'progress:reading-save': (payload: ReadingProgressReport) => void;
|
|
25
|
+
/** 자녀 읽기 상태 구독 시작 */
|
|
26
|
+
'reading:watch-children': (childIdxList: number[]) => void;
|
|
27
|
+
/** 자녀 읽기 상태 구독 해제 */
|
|
28
|
+
'reading:unwatch-children': () => void;
|
|
25
29
|
}
|
|
26
30
|
export interface NoticeToServerEvents {
|
|
27
31
|
'notice-message:send': (msg: MessageRequest) => void;
|
|
@@ -30,6 +34,13 @@ export interface NoticeToServerEvents {
|
|
|
30
34
|
export interface UserAdminToServerEvents {
|
|
31
35
|
'user:list': () => void;
|
|
32
36
|
}
|
|
37
|
+
/** 실시간 읽기 모니터링 구독 (Admin용) */
|
|
38
|
+
export interface ReadingWatchAdminToServerEvents {
|
|
39
|
+
/** 자녀 읽기 상태 구독 시작 */
|
|
40
|
+
'reading:watch-children': (childIdxList: number[]) => void;
|
|
41
|
+
/** 자녀 읽기 상태 구독 해제 */
|
|
42
|
+
'reading:unwatch-children': () => void;
|
|
43
|
+
}
|
|
33
44
|
/** 통합 세션 관리 이벤트 (Admin/Parent용) */
|
|
34
45
|
export interface SessionAdminToServerEvents {
|
|
35
46
|
/** 활성 세션 목록 조회 */
|
|
@@ -49,5 +60,5 @@ export interface SessionAdminToServerEvents {
|
|
|
49
60
|
/** 세그먼트 상세 조회 */
|
|
50
61
|
'session:get-segment': (payload: UnifiedSegmentGetPayload) => void;
|
|
51
62
|
}
|
|
52
|
-
export interface AdminClientToServerEvents extends ClientToServerEvents, NoticeToServerEvents, UserAdminToServerEvents, SessionAdminToServerEvents {
|
|
63
|
+
export interface AdminClientToServerEvents extends ClientToServerEvents, NoticeToServerEvents, UserAdminToServerEvents, SessionAdminToServerEvents, ReadingWatchAdminToServerEvents {
|
|
53
64
|
}
|
|
@@ -3,6 +3,7 @@ import { ViewerSnapshot } from "./reading-section.types";
|
|
|
3
3
|
import { ViewerEvent } from "./viewer-events.types";
|
|
4
4
|
import { ConnectedUser, ConnectedUsersGrouped } from "./connected-user.types";
|
|
5
5
|
import { UnifiedSessionInfo, SessionSegmentChangedPayload, UnifiedChunkFile, GazeDataPayload, SessionHistoryListResult, SessionHistoryGetResult, UnifiedChunksResult, UnifiedSegmentResult, SessionHistoryDeleteResult } from "./unified-session.types";
|
|
6
|
+
import { LiveReadingState } from "../book/child-reading-progress.type";
|
|
6
7
|
export interface ServerToClientEvents {
|
|
7
8
|
connect: () => void;
|
|
8
9
|
disconnect: () => void;
|
|
@@ -56,6 +57,12 @@ export interface ServerToClientEvents {
|
|
|
56
57
|
'session:error': (payload: {
|
|
57
58
|
message: string;
|
|
58
59
|
}) => void;
|
|
60
|
+
/** 자녀 읽기 실시간 상태 (5초 주기) */
|
|
61
|
+
'reading:child-live': (payload: LiveReadingState) => void;
|
|
62
|
+
/** 자녀 읽기 종료 (세션 종료 또는 TTL 만료) */
|
|
63
|
+
'reading:child-offline': (payload: {
|
|
64
|
+
testeeIdx: number;
|
|
65
|
+
}) => void;
|
|
59
66
|
}
|
|
60
67
|
export interface NoticeToClientEvents {
|
|
61
68
|
'notice-message:result': (payload: NoticeMessageResult) => void;
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@readerseye2/cr_type",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "CheckReading shared TypeScript types",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"deploy_npm": "npm version patch && npm publish --access public",
|
|
12
|
-
"build": "tsc --project tsconfig.json",
|
|
13
|
-
"prepare": "npm run build"
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://github.com/bnri/CR_type.git"
|
|
18
|
-
},
|
|
19
|
-
"author": "guripong",
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"typescript": "^5.8.3"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@readerseye2/cr_type",
|
|
3
|
+
"version": "1.0.161",
|
|
4
|
+
"description": "CheckReading shared TypeScript types",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"deploy_npm": "npm version patch && npm publish --access public",
|
|
12
|
+
"build": "tsc --project tsconfig.json",
|
|
13
|
+
"prepare": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/bnri/CR_type.git"
|
|
18
|
+
},
|
|
19
|
+
"author": "guripong",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "^5.8.3"
|
|
26
|
+
}
|
|
27
|
+
}
|