@in.pulse-crm/sdk 2.3.3 → 2.3.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.
@@ -29,7 +29,7 @@ class WhatsappClient extends api_client_1.default {
29
29
  async markContactMessagesAsRead(contactId) {
30
30
  const url = "/api/whatsapp/messages/mark-as-read";
31
31
  const body = { contactId };
32
- const { data: res } = await this.httpClient.post(url, body);
32
+ const { data: res } = await this.httpClient.patch(url, body);
33
33
  return res.data;
34
34
  }
35
35
  setAuth(token) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.3.3",
3
+ "version": "2.3.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",
@@ -57,7 +57,7 @@ export default class WhatsappClient extends ApiClient {
57
57
  const url = "/api/whatsapp/messages/mark-as-read";
58
58
  const body = { contactId };
59
59
  const { data: res } =
60
- await this.httpClient.post<MarkChatAsReadResponse>(url, body);
60
+ await this.httpClient.patch<MarkChatAsReadResponse>(url, body);
61
61
 
62
62
  return res.data;
63
63
  }