@vserifsaglam/chat-react-client 1.0.4 → 1.0.6
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/README.md +12 -4
- package/dist/hooks/useMessageManagements.d.ts +2 -2
- package/dist/index.js +33 -17
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -17
- package/dist/index.modern.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export interface MessageSentEvent {
|
|
|
57
57
|
is_read: boolean;
|
|
58
58
|
attachments?: Attachment[];
|
|
59
59
|
conversation_uid?: string;
|
|
60
|
+
metadata?: Record<string, any>;
|
|
60
61
|
}
|
|
61
62
|
export interface MessageEditedEvent {
|
|
62
63
|
msg_id: number;
|
|
@@ -150,6 +151,7 @@ export interface Message {
|
|
|
150
151
|
status: string;
|
|
151
152
|
is_read: boolean;
|
|
152
153
|
attachments?: Attachment[];
|
|
154
|
+
metadata?: Record<string, any>;
|
|
153
155
|
}
|
|
154
156
|
export interface MessagesPagination {
|
|
155
157
|
page: number;
|
|
@@ -167,6 +169,7 @@ export interface SendMessageRequest {
|
|
|
167
169
|
attachments?: number[];
|
|
168
170
|
conversation_uid?: string;
|
|
169
171
|
isAppointment?: boolean;
|
|
172
|
+
metadata?: Record<string, any>;
|
|
170
173
|
}
|
|
171
174
|
export interface UpdateMessageRequest {
|
|
172
175
|
content: string;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vserifsaglam/chat-react-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Frontend library to easliy connect to the chat",
|
|
5
|
-
"author": "vahit",
|
|
5
|
+
"author": "vahit",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "",
|
|
8
8
|
"main": "dist/index.js",
|