@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 =
|
|
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
|
@@ -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 =
|
|
225
|
+
export type Frequency = "ONCE" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
|
|
221
226
|
|
|
222
227
|
export interface AutomaticResponseSchedule {
|
|
223
|
-
|
|
228
|
+
id?: number;
|
|
224
229
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
230
|
+
frequency: Frequency;
|
|
231
|
+
daysOfWeek?: number[] | null;
|
|
232
|
+
dayOfMonth?: number | null;
|
|
233
|
+
month?: number | null;
|
|
229
234
|
|
|
230
|
-
|
|
231
|
-
|
|
235
|
+
startDate?: string | null;
|
|
236
|
+
endDate?: string | null;
|
|
232
237
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
startTime: string;
|
|
239
|
+
endTime: string;
|
|
240
|
+
timezone?: string | null;
|
|
236
241
|
|
|
237
|
-
|
|
242
|
+
dayOfWeek?: number | null;
|
|
238
243
|
}
|
|
239
244
|
|
|
240
245
|
export interface AutomaticResponseRule {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
+
}
|