@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.
package/dist/internal.client.js
CHANGED
|
@@ -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",
|
|
@@ -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
|
}
|