hububb-models 1.0.35 → 1.0.36
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/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { ChatMember } from './thread';
|
|
2
|
-
type SeenBy = Record<string, number>;
|
|
3
2
|
export interface ChatMessage {
|
|
4
3
|
id: string;
|
|
5
4
|
threadId: string;
|
|
5
|
+
authorId: string;
|
|
6
6
|
author: ChatMember;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
lastSeen?: number;
|
|
10
|
-
createdAt: number;
|
|
7
|
+
body: string;
|
|
8
|
+
contentType: string;
|
|
11
9
|
}
|
|
12
|
-
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { ChatMember } from './thread';
|
|
2
2
|
|
|
3
|
-
type SeenBy = Record<string, number>;
|
|
4
|
-
|
|
5
3
|
export interface ChatMessage {
|
|
6
4
|
id: string;
|
|
7
5
|
threadId: string;
|
|
6
|
+
authorId: string;
|
|
8
7
|
author: ChatMember;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
lastSeen?: number;
|
|
12
|
-
createdAt: number;
|
|
8
|
+
body: string;
|
|
9
|
+
contentType: string;
|
|
13
10
|
}
|
|
@@ -6,10 +6,11 @@ export interface ChatMember {
|
|
|
6
6
|
fullName: string;
|
|
7
7
|
}
|
|
8
8
|
export interface ChatThread {
|
|
9
|
-
id
|
|
10
|
-
|
|
9
|
+
id?: string;
|
|
10
|
+
messages: ChatMessage[];
|
|
11
11
|
lastMessage?: ChatMessage;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
participantIds: string[];
|
|
13
|
+
participants?: ChatMember[];
|
|
14
|
+
type: 'ONE_TO_ONE' | 'GROUP';
|
|
15
|
+
unreadCount?: number;
|
|
15
16
|
}
|
|
@@ -8,10 +8,11 @@ export interface ChatMember {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface ChatThread {
|
|
11
|
-
id
|
|
12
|
-
|
|
11
|
+
id?: string;
|
|
12
|
+
messages: ChatMessage[];
|
|
13
13
|
lastMessage?: ChatMessage;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
participantIds: string[];
|
|
15
|
+
participants?: ChatMember[];
|
|
16
|
+
type: 'ONE_TO_ONE' | 'GROUP';
|
|
17
|
+
unreadCount?: number;
|
|
17
18
|
}
|