@in.pulse-crm/sdk 2.12.7 → 2.12.9

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.
@@ -9,6 +9,10 @@ export interface WppContact {
9
9
  isBlocked: boolean;
10
10
  isOnlyAdmin: boolean;
11
11
  lastOutOfHoursReplySentAt?: Date | null;
12
+ sectors?: {
13
+ contactId: number;
14
+ sectorId: number;
15
+ }[];
12
16
  }
13
17
  export interface WppContactWithCustomer {
14
18
  id: number;
@@ -26,6 +30,7 @@ export interface WppContactWithCustomer {
26
30
  customer: Customer | null;
27
31
  chatingWith: string | null;
28
32
  lastOutOfHoursReplySentAt: Date | null;
33
+ sectorIds: number[];
29
34
  }
30
35
  export interface PaginatedContactsResponse {
31
36
  data: WppContactWithCustomer[];
@@ -191,7 +196,7 @@ export interface PaginatedNotificationsResponse {
191
196
  notifications: AppNotification[];
192
197
  totalCount: number;
193
198
  }
194
- export type Frequency = 'ONCE' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
199
+ export type Frequency = "ONCE" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
195
200
  export interface AutomaticResponseSchedule {
196
201
  id?: number;
197
202
  frequency: Frequency;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.12.7",
3
+ "version": "2.12.9",
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",
@@ -10,6 +10,10 @@ export interface WppContact {
10
10
  isBlocked: boolean;
11
11
  isOnlyAdmin: boolean;
12
12
  lastOutOfHoursReplySentAt?: Date | null;
13
+ sectors?: {
14
+ contactId: number;
15
+ sectorId: number;
16
+ }[];
13
17
  }
14
18
 
15
19
  export interface WppContactWithCustomer {
@@ -28,6 +32,7 @@ export interface WppContactWithCustomer {
28
32
  customer: Customer | null;
29
33
  chatingWith: string | null;
30
34
  lastOutOfHoursReplySentAt: Date | null;
35
+ sectorIds: number[];
31
36
  }
32
37
 
33
38
  export interface PaginatedContactsResponse {
@@ -217,45 +222,45 @@ export interface PaginatedNotificationsResponse {
217
222
  notifications: AppNotification[];
218
223
  totalCount: number;
219
224
  }
220
- export type Frequency = 'ONCE' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
225
+ export type Frequency = "ONCE" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
221
226
 
222
227
  export interface AutomaticResponseSchedule {
223
- id?: number;
228
+ id?: number;
224
229
 
225
- frequency: Frequency;
226
- daysOfWeek?: number[] | null;
227
- dayOfMonth?: number | null;
228
- month?: number | null;
230
+ frequency: Frequency;
231
+ daysOfWeek?: number[] | null;
232
+ dayOfMonth?: number | null;
233
+ month?: number | null;
229
234
 
230
- startDate?: string | null;
231
- endDate?: string | null;
235
+ startDate?: string | null;
236
+ endDate?: string | null;
232
237
 
233
- startTime: string;
234
- endTime: string;
235
- timezone?: string | null;
238
+ startTime: string;
239
+ endTime: string;
240
+ timezone?: string | null;
236
241
 
237
- dayOfWeek?: number | null;
242
+ dayOfWeek?: number | null;
238
243
  }
239
244
 
240
245
  export interface AutomaticResponseRule {
241
- id: number;
242
- name: string;
243
- message: string;
244
- isEnabled: boolean;
245
- isGlobal: boolean;
246
- cooldownSeconds: number;
247
- fileId: number | null;
248
- schedules: AutomaticResponseSchedule[];
249
- userAssignments: { userId: number }[];
246
+ id: number;
247
+ name: string;
248
+ message: string;
249
+ isEnabled: boolean;
250
+ isGlobal: boolean;
251
+ cooldownSeconds: number;
252
+ fileId: number | null;
253
+ schedules: AutomaticResponseSchedule[];
254
+ userAssignments: { userId: number }[];
250
255
  }
251
256
 
252
257
  export interface AutomaticResponseRuleDTO {
253
- name: string;
254
- message: string;
255
- isEnabled: boolean;
256
- isGlobal: boolean;
257
- cooldownSeconds: number;
258
- fileId?: number | null;
259
- userIds: number[];
260
- schedules: Omit<AutomaticResponseSchedule, "id">[];
261
- }
258
+ name: string;
259
+ message: string;
260
+ isEnabled: boolean;
261
+ isGlobal: boolean;
262
+ cooldownSeconds: number;
263
+ fileId?: number | null;
264
+ userIds: number[];
265
+ schedules: Omit<AutomaticResponseSchedule, "id">[];
266
+ }