@readerseye2/cr_type 1.0.19 → 1.0.21
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.
|
@@ -33,4 +33,10 @@ export interface ChildSessionData extends CommonSessionData {
|
|
|
33
33
|
parent_name: string;
|
|
34
34
|
parent_logo_url?: string;
|
|
35
35
|
}
|
|
36
|
+
export interface AdminSessionData extends CommonSessionData {
|
|
37
|
+
admin_idx: number;
|
|
38
|
+
admin_id: string;
|
|
39
|
+
admin_name: string;
|
|
40
|
+
admin_scope: string;
|
|
41
|
+
}
|
|
36
42
|
export type userSessionData = ParentSessionData | ChildSessionData;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ChatMessageReadRequest, ChatMessageRefreshRequest,
|
|
1
|
+
import { ChatMessageReadRequest, ChatMessageRefreshRequest, MessageRequest } from "./socket-message.types";
|
|
2
2
|
export interface ClientToServerEvents {
|
|
3
3
|
'chat-message:send': (msg: MessageRequest) => void;
|
|
4
4
|
'chat-message:refresh': (msg: ChatMessageRefreshRequest) => void;
|
|
5
5
|
'chat-message:read': (payload: ChatMessageReadRequest) => void;
|
|
6
|
-
'chat-image:send': (payload: ImageMessageRequest) => void;
|
|
7
6
|
}
|
|
@@ -5,15 +5,7 @@ export interface MessageRequest {
|
|
|
5
5
|
receiver_idx: number;
|
|
6
6
|
msg: string;
|
|
7
7
|
temp_id?: string;
|
|
8
|
-
|
|
9
|
-
export interface ImageMessageRequest {
|
|
10
|
-
room_key: string;
|
|
11
|
-
receiver_type: OauthUserType;
|
|
12
|
-
receiver_idx: number;
|
|
13
|
-
file_url: string;
|
|
14
|
-
file_name: string;
|
|
15
|
-
temp_id?: string;
|
|
16
|
-
type: 'image';
|
|
8
|
+
type: "text" | "image";
|
|
17
9
|
}
|
|
18
10
|
export interface MessageResponse {
|
|
19
11
|
msg: string;
|