@qrush/types 2.1.86 → 2.1.87
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/Conversation.d.ts +28 -1
- package/package.json +1 -1
package/dist/Conversation.d.ts
CHANGED
|
@@ -42,12 +42,15 @@ export interface IConversation {
|
|
|
42
42
|
deletedAt: {
|
|
43
43
|
[uid: string]: Timestamp;
|
|
44
44
|
};
|
|
45
|
+
groupName?: string;
|
|
46
|
+
adminIds?: string[];
|
|
47
|
+
createdBy?: string;
|
|
45
48
|
}
|
|
46
49
|
export interface IMessage {
|
|
47
50
|
senderId: string;
|
|
48
51
|
senderName: string;
|
|
49
52
|
content: string;
|
|
50
|
-
type: 'text' | 'image' | 'request' | 'shared';
|
|
53
|
+
type: 'text' | 'image' | 'request' | 'shared' | 'system';
|
|
51
54
|
createdAt: Timestamp;
|
|
52
55
|
readBy?: {
|
|
53
56
|
[uid: string]: Timestamp;
|
|
@@ -62,3 +65,27 @@ export interface IMessage {
|
|
|
62
65
|
};
|
|
63
66
|
attachment?: IAttachment;
|
|
64
67
|
}
|
|
68
|
+
export interface ICreateGroupChatRequest {
|
|
69
|
+
memberUIDs: string[];
|
|
70
|
+
initialMessage?: string;
|
|
71
|
+
attachment?: IAttachment;
|
|
72
|
+
}
|
|
73
|
+
export interface ICreateGroupChatResponse {
|
|
74
|
+
conversationId: string;
|
|
75
|
+
}
|
|
76
|
+
export interface IAddGroupMembersRequest {
|
|
77
|
+
conversationId: string;
|
|
78
|
+
memberUIDs: string[];
|
|
79
|
+
}
|
|
80
|
+
export interface IRemoveGroupMemberRequest {
|
|
81
|
+
conversationId: string;
|
|
82
|
+
memberUID: string;
|
|
83
|
+
}
|
|
84
|
+
export interface ILeaveGroupRequest {
|
|
85
|
+
conversationId: string;
|
|
86
|
+
newAdminUID?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface IUpdateGroupInfoRequest {
|
|
89
|
+
conversationId: string;
|
|
90
|
+
groupName?: string;
|
|
91
|
+
}
|