@in.pulse-crm/sdk 2.8.6 → 2.8.7

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.
@@ -48,6 +48,9 @@ class InternalChatClient extends api_client_1.default {
48
48
  data.sendAsDocument && formData.append("sendAsDocument", "true");
49
49
  data.file && formData.append("file", data.file);
50
50
  data.fileId && formData.append("fileId", data.fileId.toString());
51
+ if (data.mentions && data.mentions.length > 0) {
52
+ formData.append("mentions", JSON.stringify(data.mentions));
53
+ }
51
54
  await this.ax.post(url, formData, {
52
55
  headers: {
53
56
  "Content-Type": "multipart/form-data",
@@ -64,4 +64,10 @@ export interface InternalSendMessageData {
64
64
  text: string;
65
65
  file?: File;
66
66
  fileId?: number;
67
+ mentions?: MentionData[];
68
+ }
69
+ export interface MentionData {
70
+ userId: number;
71
+ name: string;
72
+ phone: string;
67
73
  }
@@ -93,6 +93,7 @@ export declare enum WppChatPriority {
93
93
  export type WppChatWithDetails = WppChat & {
94
94
  contact: WppContact | null;
95
95
  customer: Customer | null;
96
+ schedule: WppSchedule | null;
96
97
  };
97
98
  export type WppChatsAndMessages = {
98
99
  chats: WppChatWithDetails[];
@@ -139,5 +140,7 @@ export interface Schedule {
139
140
  scheduleDate: string;
140
141
  scheduledBy: number;
141
142
  scheduledFor: number;
143
+ scheduledAt: string;
144
+ chatId: number | null;
142
145
  contact: WppContact;
143
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
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",