@in.pulse-crm/sdk 2.2.8 → 2.2.9
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,6 +1,6 @@
|
|
|
1
1
|
import { SocketServerAdminRoom, SocketServerChatRoom, SocketServerReportsRoom, SocketServerRoom } from "./socket-rooms.types";
|
|
2
2
|
import { MessageResponse } from "./response.types";
|
|
3
|
-
import { WppMessageStatus } from "./whatsapp.types";
|
|
3
|
+
import { WppMessage, WppMessageStatus } from "./whatsapp.types";
|
|
4
4
|
export declare enum SocketEventType {
|
|
5
5
|
WppChatStarted = "wpp_chat_started",
|
|
6
6
|
WppChatFinished = "wpp_chat_finished",
|
|
@@ -50,7 +50,7 @@ export interface WppChatFinishedEventData {
|
|
|
50
50
|
chatId: number;
|
|
51
51
|
}
|
|
52
52
|
export interface WppMessageEventData {
|
|
53
|
-
|
|
53
|
+
message: WppMessage;
|
|
54
54
|
}
|
|
55
55
|
export interface WppMessageStatusEventData {
|
|
56
56
|
messageId: number;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
SocketServerRoom,
|
|
6
6
|
} from "./socket-rooms.types";
|
|
7
7
|
import { MessageResponse } from "./response.types";
|
|
8
|
-
import { WppMessageStatus } from "./whatsapp.types";
|
|
8
|
+
import { WppMessage, WppMessageStatus } from "./whatsapp.types";
|
|
9
9
|
|
|
10
10
|
export enum SocketEventType {
|
|
11
11
|
WppChatStarted = "wpp_chat_started",
|
|
@@ -119,7 +119,7 @@ export interface WppChatFinishedEventData {
|
|
|
119
119
|
chatId: number;
|
|
120
120
|
}
|
|
121
121
|
export interface WppMessageEventData {
|
|
122
|
-
|
|
122
|
+
message: WppMessage;
|
|
123
123
|
}
|
|
124
124
|
export interface WppMessageStatusEventData {
|
|
125
125
|
messageId: number;
|