@in.pulse-crm/sdk 2.6.3 → 2.6.4
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,7 +1,7 @@
|
|
|
1
1
|
import { SocketServerAdminRoom, SocketServerChatRoom, SocketServerInternalChatRoom, SocketServerReportsRoom, SocketServerRoom } from "./socket-rooms.types";
|
|
2
2
|
import { MessageResponse } from "./response.types";
|
|
3
3
|
import { WppMessage, WppMessageStatus } from "./whatsapp.types";
|
|
4
|
-
import { InternalChat, InternalMessage } from "./internal.types";
|
|
4
|
+
import { InternalChat, InternalChatMember, InternalMessage } from "./internal.types";
|
|
5
5
|
export declare enum SocketEventType {
|
|
6
6
|
WppChatStarted = "wpp_chat_started",
|
|
7
7
|
WppChatFinished = "wpp_chat_finished",
|
|
@@ -82,7 +82,7 @@ export interface WppMessageReactionEventData {
|
|
|
82
82
|
}
|
|
83
83
|
export interface InternalChatStartedEventData {
|
|
84
84
|
chat: InternalChat & {
|
|
85
|
-
participants:
|
|
85
|
+
participants: InternalChatMember[];
|
|
86
86
|
messages: InternalMessage[];
|
|
87
87
|
};
|
|
88
88
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./socket-rooms.types";
|
|
8
8
|
import { MessageResponse } from "./response.types";
|
|
9
9
|
import { WppMessage, WppMessageStatus } from "./whatsapp.types";
|
|
10
|
-
import { InternalChat, InternalMessage } from "./internal.types";
|
|
10
|
+
import { InternalChat, InternalChatMember, InternalMessage } from "./internal.types";
|
|
11
11
|
|
|
12
12
|
export enum SocketEventType {
|
|
13
13
|
WppChatStarted = "wpp_chat_started",
|
|
@@ -184,7 +184,7 @@ export interface WppMessageReactionEventData {
|
|
|
184
184
|
reaction: string;
|
|
185
185
|
}
|
|
186
186
|
export interface InternalChatStartedEventData {
|
|
187
|
-
chat: InternalChat & { participants:
|
|
187
|
+
chat: InternalChat & { participants: InternalChatMember[], messages: InternalMessage[] };
|
|
188
188
|
}
|
|
189
189
|
export interface InternalChatFinishedEventData {
|
|
190
190
|
chatId: number;
|