@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
package/src/internal.client.ts
CHANGED
|
@@ -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,
|
|
@@ -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
|
}
|