@readerseye2/cr_type 1.0.75 → 1.0.76
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChatMessageReadRequest, ChatMessageRefreshRequest, MessageRequest } from "./socket-message.types";
|
|
2
2
|
import { SessionStartPayload, SessionEndPayload, SessionProgressPayload, SessionEventPayload, SessionSubscribePayload } from "./reading-section.types";
|
|
3
3
|
import { MonitorStartPayload, MonitorStopPayload } from "./monitor.types";
|
|
4
|
+
import { RecordingStartPayload, RecordingStopPayload } from "./recording.types";
|
|
4
5
|
export interface ClientToServerEvents {
|
|
5
6
|
'chat-message:send': (msg: MessageRequest) => void;
|
|
6
7
|
'chat-message:refresh': (msg: ChatMessageRefreshRequest) => void;
|
|
@@ -24,5 +25,10 @@ export interface MonitorAdminToServerEvents {
|
|
|
24
25
|
'monitor:start': (payload: MonitorStartPayload) => void;
|
|
25
26
|
'monitor:stop': (payload: MonitorStopPayload) => void;
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
/** 녹화 이벤트 (Admin/Parent → Server) - P2.2 Recording System */
|
|
29
|
+
export interface RecordingAdminToServerEvents {
|
|
30
|
+
'recording:start': (payload: RecordingStartPayload) => void;
|
|
31
|
+
'recording:stop': (payload: RecordingStopPayload) => void;
|
|
32
|
+
}
|
|
33
|
+
export interface AdminClientToServerEvents extends ClientToServerEvents, NoticeToServerEvents, ReadingAdminToServerEvents, MonitorAdminToServerEvents, RecordingAdminToServerEvents {
|
|
28
34
|
}
|
|
@@ -2,6 +2,7 @@ import { MessageReadResponse, MessageResponse, NoticeMessageResult } from "./soc
|
|
|
2
2
|
import { ReadingSessionInfo, SocketViewerEvent, ViewerSnapshot } from "./reading-section.types";
|
|
3
3
|
import { ConnectedUser, ConnectedUsersGrouped } from "./connected-user.types";
|
|
4
4
|
import { MonitorStartedPayload, MonitorChunkPayload, MonitorSessionChangedPayload, MonitorStoppedPayload, MonitorErrorPayload } from "./monitor.types";
|
|
5
|
+
import { RecordingStartedPayload, RecordingStoppedPayload, RecordingChunkPayload, SegmentStartedPayload, SegmentEndedPayload } from "./recording.types";
|
|
5
6
|
export interface ServerToClientEvents {
|
|
6
7
|
connect: () => void;
|
|
7
8
|
disconnect: () => void;
|
|
@@ -69,5 +70,16 @@ export interface MonitorServerToClientEvents {
|
|
|
69
70
|
'monitor:stopped': (payload: MonitorStoppedPayload) => void;
|
|
70
71
|
'monitor:error': (payload: MonitorErrorPayload) => void;
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
+
/** 녹화 이벤트 (Admin/Parent에게 전송) - P2.2 Recording System */
|
|
74
|
+
export interface RecordingServerToClientEvents {
|
|
75
|
+
'recording:started': (payload: RecordingStartedPayload) => void;
|
|
76
|
+
'recording:stopped': (payload: RecordingStoppedPayload) => void;
|
|
77
|
+
'recording:chunk': (payload: RecordingChunkPayload) => void;
|
|
78
|
+
'recording:segment-started': (payload: SegmentStartedPayload) => void;
|
|
79
|
+
'recording:segment-ended': (payload: SegmentEndedPayload) => void;
|
|
80
|
+
'recording:error': (payload: {
|
|
81
|
+
message: string;
|
|
82
|
+
}) => void;
|
|
83
|
+
}
|
|
84
|
+
export interface AdminServerToClientEvents extends ServerToClientEvents, NoticeToClientEvents, ReadingServerToClientEvents, UserServerToClientEvents, MonitorServerToClientEvents, RecordingServerToClientEvents {
|
|
73
85
|
}
|