@in.pulse-crm/sdk 2.5.2 → 2.5.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.
|
@@ -24,5 +24,5 @@ export default class WhatsappClient extends ApiClient {
|
|
|
24
24
|
}[]>;
|
|
25
25
|
setAuth(token: string): void;
|
|
26
26
|
getChatsMonitor(messages?: boolean, contact?: boolean, token?: string | null): Promise<WppChatsAndMessages>;
|
|
27
|
-
|
|
27
|
+
transferAttendance(id: number, userId: number): Promise<void>;
|
|
28
28
|
}
|
package/dist/whatsapp.client.js
CHANGED
|
@@ -115,7 +115,7 @@ class WhatsappClient extends api_client_1.default {
|
|
|
115
115
|
});
|
|
116
116
|
return res.data;
|
|
117
117
|
}
|
|
118
|
-
async
|
|
118
|
+
async transferAttendance(id, userId) {
|
|
119
119
|
const url = `/api/whatsapp/chats/${id}/transfer`;
|
|
120
120
|
const body = { userId };
|
|
121
121
|
await this.httpClient.post(url, body);
|
package/package.json
CHANGED
package/src/whatsapp.client.ts
CHANGED
|
@@ -201,7 +201,7 @@ export default class WhatsappClient extends ApiClient {
|
|
|
201
201
|
|
|
202
202
|
return res.data;
|
|
203
203
|
}
|
|
204
|
-
public async
|
|
204
|
+
public async transferAttendance(id: number, userId: number) {
|
|
205
205
|
const url = `/api/whatsapp/chats/${id}/transfer`;
|
|
206
206
|
const body = { userId };
|
|
207
207
|
|