@in.pulse-crm/sdk 2.10.3 → 2.10.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.
|
@@ -28,6 +28,8 @@ export interface WppMessage {
|
|
|
28
28
|
instance: string;
|
|
29
29
|
wwebjsId?: string | null;
|
|
30
30
|
wabaId?: string | null;
|
|
31
|
+
gupshupId?: string | null;
|
|
32
|
+
gupshupRequestId?: string | null;
|
|
31
33
|
from: string;
|
|
32
34
|
to: string;
|
|
33
35
|
type: string;
|
|
@@ -43,9 +45,13 @@ export interface WppMessage {
|
|
|
43
45
|
fileName?: string | null;
|
|
44
46
|
fileType?: string | null;
|
|
45
47
|
fileSize?: string | null;
|
|
48
|
+
wwebjsIdStanza: string | null;
|
|
49
|
+
sentAt: Date;
|
|
50
|
+
userId: number | null;
|
|
51
|
+
billingCategory: string | null;
|
|
46
52
|
}
|
|
47
53
|
export interface ForwardMessagesData {
|
|
48
|
-
sourceType:
|
|
54
|
+
sourceType: "whatsapp" | "internal";
|
|
49
55
|
messageIds: number[];
|
|
50
56
|
whatsappTargets?: Array<{
|
|
51
57
|
id: string;
|
|
@@ -197,5 +203,5 @@ export interface AutomaticResponseRuleDTO {
|
|
|
197
203
|
cooldownSeconds: number;
|
|
198
204
|
fileId?: number | null;
|
|
199
205
|
userIds: number[];
|
|
200
|
-
schedules: Omit<AutomaticResponseSchedule,
|
|
206
|
+
schedules: Omit<AutomaticResponseSchedule, "id">[];
|
|
201
207
|
}
|
package/package.json
CHANGED
|
@@ -31,6 +31,8 @@ export interface WppMessage {
|
|
|
31
31
|
instance: string;
|
|
32
32
|
wwebjsId?: string | null;
|
|
33
33
|
wabaId?: string | null;
|
|
34
|
+
gupshupId?: string | null;
|
|
35
|
+
gupshupRequestId?: string | null;
|
|
34
36
|
from: string;
|
|
35
37
|
to: string;
|
|
36
38
|
type: string;
|
|
@@ -46,12 +48,16 @@ export interface WppMessage {
|
|
|
46
48
|
fileName?: string | null;
|
|
47
49
|
fileType?: string | null;
|
|
48
50
|
fileSize?: string | null;
|
|
51
|
+
wwebjsIdStanza: string | null;
|
|
52
|
+
sentAt: Date;
|
|
53
|
+
userId: number | null;
|
|
54
|
+
billingCategory: string | null;
|
|
49
55
|
}
|
|
50
56
|
export interface ForwardMessagesData {
|
|
51
|
-
sourceType:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
sourceType: "whatsapp" | "internal";
|
|
58
|
+
messageIds: number[];
|
|
59
|
+
whatsappTargets?: Array<{ id: string; isGroup: boolean }>;
|
|
60
|
+
internalTargets?: Array<{ id: number }>;
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
export interface WppChat {
|
|
@@ -171,58 +177,56 @@ export interface WppSchedule {
|
|
|
171
177
|
contact: WppContact;
|
|
172
178
|
}
|
|
173
179
|
export type NotificationType =
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
| "CHAT_AUTO_FINISHED"
|
|
181
|
+
| "CHAT_TRANSFERRED"
|
|
182
|
+
| "CHAT_REASSIGNED"
|
|
183
|
+
| "ALERT"
|
|
184
|
+
| "INFO"
|
|
185
|
+
| "WARNING"
|
|
186
|
+
| "ERROR";
|
|
182
187
|
|
|
183
188
|
export interface AppNotification {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
id: number;
|
|
190
|
+
title: string;
|
|
191
|
+
description: string;
|
|
192
|
+
read: boolean;
|
|
193
|
+
instance: string;
|
|
194
|
+
userId: number | null;
|
|
195
|
+
chatId: number | null;
|
|
196
|
+
type: NotificationType;
|
|
197
|
+
createdAt: string;
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
export interface PaginatedNotificationsResponse {
|
|
196
|
-
|
|
197
|
-
|
|
201
|
+
notifications: AppNotification[];
|
|
202
|
+
totalCount: number;
|
|
198
203
|
}
|
|
199
204
|
export interface AutomaticResponseSchedule {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
205
|
+
id?: number;
|
|
206
|
+
dayOfWeek: number;
|
|
207
|
+
startTime: string;
|
|
208
|
+
endTime: string;
|
|
204
209
|
}
|
|
205
210
|
|
|
206
211
|
export interface AutomaticResponseRule {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
id: number;
|
|
213
|
+
name: string;
|
|
214
|
+
message: string;
|
|
215
|
+
isEnabled: boolean;
|
|
216
|
+
isGlobal: boolean;
|
|
217
|
+
cooldownSeconds: number;
|
|
218
|
+
fileId: number | null;
|
|
219
|
+
schedules: AutomaticResponseSchedule[];
|
|
220
|
+
userAssignments: { userId: number }[];
|
|
216
221
|
}
|
|
217
222
|
|
|
218
223
|
export interface AutomaticResponseRuleDTO {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
name: string;
|
|
225
|
+
message: string;
|
|
226
|
+
isEnabled: boolean;
|
|
227
|
+
isGlobal: boolean;
|
|
228
|
+
cooldownSeconds: number;
|
|
229
|
+
fileId?: number | null;
|
|
230
|
+
userIds: number[];
|
|
231
|
+
schedules: Omit<AutomaticResponseSchedule, "id">[];
|
|
227
232
|
}
|
|
228
|
-
|