@in.pulse-crm/sdk 2.8.4 → 2.8.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.8.4",
3
+ "version": "2.8.6",
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",
@@ -81,7 +81,9 @@ export default class InternalChatClient extends ApiClient {
81
81
  data.sendAsDocument && formData.append("sendAsDocument", "true");
82
82
  data.file && formData.append("file", data.file);
83
83
  data.fileId && formData.append("fileId", data.fileId.toString());
84
-
84
+ if (data.mentions && data.mentions.length > 0) {
85
+ formData.append("mentions", JSON.stringify(data.mentions));
86
+ }
85
87
  await this.ax.post<DataResponse<InternalMessage>>(
86
88
  url,
87
89
  formData,
@@ -69,4 +69,10 @@ export interface InternalSendMessageData {
69
69
  text: string;
70
70
  file?: File;
71
71
  fileId?: number;
72
+ mentions?: MentionData[];
72
73
  }
74
+ export interface MentionData {
75
+ userId: number;
76
+ name: string;
77
+ phone: string;
78
+ }
@@ -112,6 +112,7 @@ export enum WppChatPriority {
112
112
  export type WppChatWithDetails = WppChat & {
113
113
  contact: WppContact | null;
114
114
  customer: Customer | null;
115
+ schedule: WppSchedule | null;
115
116
  };
116
117
  export type WppChatsAndMessages = {
117
118
  chats: WppChatWithDetails[];
@@ -161,5 +162,7 @@ export interface Schedule {
161
162
  scheduleDate: string;
162
163
  scheduledBy: number;
163
164
  scheduledFor: number;
165
+ scheduledAt: string;
166
+ chatId: number | null;
164
167
  contact: WppContact;
165
168
  }