@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: 'whatsapp' | 'internal';
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, 'id'>[];
206
+ schedules: Omit<AutomaticResponseSchedule, "id">[];
201
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.10.3",
3
+ "version": "2.10.4",
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",
@@ -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: 'whatsapp' | 'internal';
52
- messageIds: number[];
53
- whatsappTargets?: Array<{ id: string; isGroup: boolean }>;
54
- internalTargets?: Array<{ id: number }>;
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
- | "CHAT_AUTO_FINISHED"
175
- | "CHAT_TRANSFERRED"
176
- | "CHAT_REASSIGNED"
177
- | "ALERT"
178
- | "INFO"
179
- | "WARNING"
180
- | "ERROR";
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
- id: number;
185
- title: string;
186
- description: string;
187
- read: boolean;
188
- instance: string;
189
- userId: number | null;
190
- chatId: number | null;
191
- type: NotificationType;
192
- createdAt: string;
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
- notifications: AppNotification[];
197
- totalCount: number;
201
+ notifications: AppNotification[];
202
+ totalCount: number;
198
203
  }
199
204
  export interface AutomaticResponseSchedule {
200
- id?: number;
201
- dayOfWeek: number;
202
- startTime: string;
203
- endTime: string;
205
+ id?: number;
206
+ dayOfWeek: number;
207
+ startTime: string;
208
+ endTime: string;
204
209
  }
205
210
 
206
211
  export interface AutomaticResponseRule {
207
- id: number;
208
- name: string;
209
- message: string;
210
- isEnabled: boolean;
211
- isGlobal: boolean;
212
- cooldownSeconds: number;
213
- fileId: number | null;
214
- schedules: AutomaticResponseSchedule[];
215
- userAssignments: { userId: number }[];
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
- name: string;
220
- message: string;
221
- isEnabled: boolean;
222
- isGlobal: boolean;
223
- cooldownSeconds: number;
224
- fileId?: number | null;
225
- userIds: number[];
226
- schedules: Omit<AutomaticResponseSchedule, 'id'>[];
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
-