@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
- tranferAttendance(id: number, userId: number): Promise<void>;
27
+ transferAttendance(id: number, userId: number): Promise<void>;
28
28
  }
@@ -115,7 +115,7 @@ class WhatsappClient extends api_client_1.default {
115
115
  });
116
116
  return res.data;
117
117
  }
118
- async tranferAttendance(id, userId) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.5.2",
3
+ "version": "2.5.4",
4
4
  "description": "SDKs for abstraction of api consumption of in.pulse-crm application",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -201,7 +201,7 @@ export default class WhatsappClient extends ApiClient {
201
201
 
202
202
  return res.data;
203
203
  }
204
- public async tranferAttendance(id: number, userId: number) {
204
+ public async transferAttendance(id: number, userId: number) {
205
205
  const url = `/api/whatsapp/chats/${id}/transfer`;
206
206
  const body = { userId };
207
207