@cleardu/types 1.0.232 → 1.0.234

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.
@@ -19,6 +19,14 @@ export declare const BrokerMessages: {
19
19
  FIND_BY_WHERE: string;
20
20
  HIERARCHY_DROPDOWN: string;
21
21
  };
22
+ ACTIVITY: {
23
+ CREATE: string;
24
+ FIND_ONE: string;
25
+ FIND_MANY: string;
26
+ FIND_AND_COUNT_ALL: string;
27
+ UPDATE: string;
28
+ DELETE: string;
29
+ };
22
30
  ROLE: {
23
31
  CREATE: string;
24
32
  FIND_ONE: string;
@@ -40,6 +48,9 @@ export declare const BrokerMessages: {
40
48
  USER_TARGET: {
41
49
  TARGET_CARRY_FORWARD_CRON: string;
42
50
  };
51
+ CAMPAIGN: {
52
+ FIND_ONE: string;
53
+ };
43
54
  };
44
55
  CRM: {
45
56
  CLIENT: {
@@ -22,6 +22,14 @@ exports.BrokerMessages = {
22
22
  FIND_BY_WHERE: 'GET-ALL-USER-BY-WHERE',
23
23
  HIERARCHY_DROPDOWN: 'HIERARCHY-DROPDOWN',
24
24
  },
25
+ ACTIVITY: {
26
+ CREATE: 'CREATE-USER-ACTIVITY',
27
+ FIND_ONE: 'GET-ONE-USER-ACTIVITY',
28
+ FIND_MANY: 'GET-MANY-USER-ACTIVITY',
29
+ FIND_AND_COUNT_ALL: 'FIND-AND-COUNT-ALL-USER-ACTIVITY',
30
+ UPDATE: 'UPDATE-USER-ACTIVITY',
31
+ DELETE: 'DELETE-USER-ACTIVITY',
32
+ },
25
33
  ROLE: {
26
34
  CREATE: 'CREATE-ROLE',
27
35
  FIND_ONE: 'GET-ROLE-DETAILS',
@@ -43,6 +51,9 @@ exports.BrokerMessages = {
43
51
  USER_TARGET: {
44
52
  TARGET_CARRY_FORWARD_CRON: 'USER-TARGET-CARRY-FORWARD-CRON',
45
53
  },
54
+ CAMPAIGN: {
55
+ FIND_ONE: 'USER-CAMPAIGN-FIND-ONE',
56
+ }
46
57
  },
47
58
  CRM: {
48
59
  CLIENT: {
@@ -19,6 +19,15 @@ export const BrokerMessages = {
19
19
  FIND_BY_WHERE: 'GET-ALL-USER-BY-WHERE',
20
20
  HIERARCHY_DROPDOWN: 'HIERARCHY-DROPDOWN',
21
21
  },
22
+ ACTIVITY: {
23
+ CREATE: 'CREATE-USER-ACTIVITY',
24
+ FIND_ONE: 'GET-ONE-USER-ACTIVITY',
25
+ FIND_MANY: 'GET-MANY-USER-ACTIVITY',
26
+ FIND_AND_COUNT_ALL: 'FIND-AND-COUNT-ALL-USER-ACTIVITY',
27
+ UPDATE: 'UPDATE-USER-ACTIVITY',
28
+ DELETE: 'DELETE-USER-ACTIVITY',
29
+
30
+ },
22
31
  ROLE: {
23
32
  CREATE: 'CREATE-ROLE',
24
33
  FIND_ONE: 'GET-ROLE-DETAILS',
@@ -40,6 +49,9 @@ export const BrokerMessages = {
40
49
  USER_TARGET: {
41
50
  TARGET_CARRY_FORWARD_CRON: 'USER-TARGET-CARRY-FORWARD-CRON',
42
51
  },
52
+ CAMPAIGN: {
53
+ FIND_ONE: 'USER-CAMPAIGN-FIND-ONE',
54
+ }
43
55
  },
44
56
  CRM: {
45
57
  CLIENT: {
@@ -1312,3 +1312,13 @@ export declare enum IVRCallStatus {
1312
1312
  FAILED = "FAILED",
1313
1313
  REJECTED = "REJECTED"
1314
1314
  }
1315
+ export declare const userActivityStatesId: {
1316
+ Available: number;
1317
+ IDLE: number;
1318
+ Ready: number;
1319
+ "On-Call": number;
1320
+ Break: number;
1321
+ RINGING: number;
1322
+ "wrap-up": number;
1323
+ "LOG OUT": number;
1324
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IVRCallStatus = exports.WhatsappButtonTypes = exports.whatsAppStatus = exports.smsStatus = exports.messageDirection = exports.languageCodes = exports.templateTypes = exports.CallStatus = exports.RecordType = exports.FileUploadConfig = exports.validateTableCols = exports.Constants = exports.PorvidersType = exports.JobTypeEnum = exports.ParticipantTypeEnum = exports.dispoSubDispo = exports.userModules = exports.SettlementStatus = exports.Disp_CategoryTypeEnum = exports.JobStatusEnum = exports.CallDirectionEnum = exports.DispositionTypeEnum = exports.GenderTypeEnum = exports.CampaignTypeEnum = exports.HIERARCHY_ROLES = exports.RoleNames = exports.RoleTypeEnum = exports.UserTypeEnum = exports.ActInactiveEnumType = exports.Services = void 0;
3
+ exports.userActivityStatesId = exports.IVRCallStatus = exports.WhatsappButtonTypes = exports.whatsAppStatus = exports.smsStatus = exports.messageDirection = exports.languageCodes = exports.templateTypes = exports.CallStatus = exports.RecordType = exports.FileUploadConfig = exports.validateTableCols = exports.Constants = exports.PorvidersType = exports.JobTypeEnum = exports.ParticipantTypeEnum = exports.dispoSubDispo = exports.userModules = exports.SettlementStatus = exports.Disp_CategoryTypeEnum = exports.JobStatusEnum = exports.CallDirectionEnum = exports.DispositionTypeEnum = exports.GenderTypeEnum = exports.CampaignTypeEnum = exports.HIERARCHY_ROLES = exports.RoleNames = exports.RoleTypeEnum = exports.UserTypeEnum = exports.ActInactiveEnumType = exports.Services = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  tslib_1.__exportStar(require("./brokerMessages"), exports);
6
6
  exports.Services = {
@@ -1505,3 +1505,13 @@ var IVRCallStatus;
1505
1505
  IVRCallStatus["FAILED"] = "FAILED";
1506
1506
  IVRCallStatus["REJECTED"] = "REJECTED";
1507
1507
  })(IVRCallStatus || (exports.IVRCallStatus = IVRCallStatus = {}));
1508
+ exports.userActivityStatesId = {
1509
+ "Available": 1,
1510
+ "IDLE": 2,
1511
+ "Ready": 3,
1512
+ "On-Call": 4,
1513
+ "Break": 5,
1514
+ "RINGING": 6,
1515
+ "wrap-up": 7,
1516
+ "LOG OUT": 8,
1517
+ };
@@ -1527,3 +1527,14 @@ export enum IVRCallStatus {
1527
1527
  FAILED = 'FAILED',
1528
1528
  REJECTED = 'REJECTED',
1529
1529
  }
1530
+
1531
+ export const userActivityStatesId = {
1532
+ "Available": 1,
1533
+ "IDLE": 2,
1534
+ "Ready": 3,
1535
+ "On-Call": 4,
1536
+ "Break": 5,
1537
+ "RINGING": 6,
1538
+ "wrap-up": 7,
1539
+ "LOG OUT": 8,
1540
+ };
@@ -31,4 +31,5 @@ export interface IIVRFilterParams extends IListPayload {
31
31
  clientIds?: string;
32
32
  status?: IVRCallStatus;
33
33
  jobId?: string;
34
+ isActive: boolean;
34
35
  }
@@ -22,12 +22,12 @@ export interface ICreateEzshipLeadReq {
22
22
  lastName?: string;
23
23
  phoneNumber: string;
24
24
  uId: string;
25
- agentId?: string;
25
+ agentId?: string;
26
26
  }>;
27
27
  }
28
28
 
29
29
  export interface IDeleteEzshipLeadReq {
30
- campaignId: string;
30
+ campaignId: string;
31
31
  uId: string[];
32
32
  }
33
33
 
@@ -35,4 +35,5 @@ export interface IIVRFilterParams extends IListPayload {
35
35
  clientIds?: string;
36
36
  status?: IVRCallStatus;
37
37
  jobId?: string;
38
- }
38
+ isActive: boolean;
39
+ }
@@ -100,6 +100,7 @@ export interface IPaymentsList extends IListPayload {
100
100
  clientUid: string;
101
101
  fromDate: Date;
102
102
  toDate: Date;
103
+ isActive: boolean;
103
104
  }
104
105
  export interface IPaymentPartition {
105
106
  mainPartitions: string[];
@@ -110,6 +110,7 @@ export interface IPaymentsList extends IListPayload {
110
110
  clientUid: string;
111
111
  fromDate: Date;
112
112
  toDate: Date;
113
+ isActive: boolean;
113
114
  }
114
115
 
115
116
  export interface IPaymentPartition {
@@ -47,6 +47,7 @@ export interface IListSettlement extends Partial<IListPayload> {
47
47
  loanId?: number;
48
48
  userIds?: string;
49
49
  dateFilteOn?: string;
50
+ isActive: boolean;
50
51
  }
51
52
  export interface IClientSettlement extends Partial<ISettlements> {
52
53
  customerId: number;
@@ -51,6 +51,7 @@ export interface IListSettlement extends Partial<IListPayload> {
51
51
  loanId?: number;
52
52
  userIds?: string;
53
53
  dateFilteOn?: string;
54
+ isActive: boolean;
54
55
  }
55
56
 
56
57
  export interface IClientSettlement extends Partial<ISettlements> {
@@ -47,4 +47,5 @@ export interface ISMSFilterParams extends IListPayload {
47
47
  clientIds?: string;
48
48
  status?: smsStatus;
49
49
  jobId?: string;
50
+ isActive: boolean;
50
51
  }
@@ -4,25 +4,25 @@ import { IJob } from '../jobs';
4
4
  import { IListPayload } from '../payload';
5
5
 
6
6
  export interface ISMS extends DatabaseObject {
7
- loanId: number;
8
- messageId?: string;
9
- mobile: string;
10
- message: string;
11
- status: string;
12
- scheduleDate?: Date;
13
- jobId: number;
14
- deliveredAt?: Date;
15
- direction: messageDirection;
16
- templateId?: number;
7
+ loanId: number;
8
+ messageId?: string;
9
+ mobile: string;
10
+ message: string;
11
+ status: string;
12
+ scheduleDate?: Date;
13
+ jobId: number;
14
+ deliveredAt?: Date;
15
+ direction: messageDirection;
16
+ templateId?: number;
17
17
  }
18
18
 
19
19
  export interface IMessageFilesCorrectCSV {
20
- loanNumber: string;
20
+ loanNumber: string;
21
21
  }
22
-
22
+
23
23
  export interface IIncorrectMessageFilesCorrectCSV
24
- extends IMessageFilesCorrectCSV {
25
- errors: string;
24
+ extends IMessageFilesCorrectCSV {
25
+ errors: string;
26
26
  }
27
27
 
28
28
  export interface IMessageFileRecordsParams {
@@ -35,22 +35,23 @@ export interface IMessageFileRecordsParams {
35
35
  createdBy: number;
36
36
  portfolioId?: number;
37
37
  incorrectRecordCount?: number;
38
- ivrSend: boolean;
39
- smsSend: boolean;
38
+ ivrSend: boolean;
39
+ smsSend: boolean;
40
40
  whatsAppSend: boolean;
41
- smsTemplateId?: number;
41
+ smsTemplateId?: number;
42
42
  smsScheduleAt?: Date;
43
43
  smsMessage?: string;
44
- whatsAppTemplateId?: string;
44
+ whatsAppTemplateId?: string;
45
45
  whatsAppScheduleAt?: Date;
46
46
  whatsAppMessage?: string;
47
- ivrDialerCampaignId?: string;
47
+ ivrDialerCampaignId?: string;
48
48
  ivrDialerCampaignName?: string;
49
49
  ivrScheduleAt?: Date;
50
50
  }
51
51
 
52
52
  export interface ISMSFilterParams extends IListPayload {
53
- clientIds?: string;
54
- status?: smsStatus;
55
- jobId?: string;
56
- }
53
+ clientIds?: string;
54
+ status?: smsStatus;
55
+ jobId?: string;
56
+ isActive: boolean;
57
+ }
@@ -1,16 +1,15 @@
1
+ import { DatabaseObject } from "../baseObject";
1
2
  export interface IUserStatus {
2
3
  id?: number;
3
4
  userId: string;
4
5
  status: string;
5
6
  }
6
- export interface IUserActivities {
7
- userId: string;
8
- userName: string;
9
- loginHrs: string;
10
- logoutHrs: string;
11
- activeHrs: string;
12
- avgLogin: string;
13
- avgLogout: string;
7
+ export interface IUserActivities extends DatabaseObject {
8
+ campaignId?: number;
9
+ status?: string;
10
+ state?: number;
11
+ timestamp?: number;
12
+ duration?: number;
14
13
  }
15
14
  export interface IUserActivitiesSearchData {
16
15
  page?: number;
@@ -27,3 +26,23 @@ export interface IUserActivitiesRowsCount {
27
26
  count: number;
28
27
  rows: IUserActivities[];
29
28
  }
29
+ export declare enum UserActivityStatuses {
30
+ LOGIN = "LOGIN",
31
+ DIALER_LOGIN = "DIALER-LOGIN",
32
+ BREAK = "BREAK",
33
+ READY = "READY",
34
+ LOGOUT = "LOGOUT",
35
+ PAUSED = "PAUSED",
36
+ SWITCH = "SWITCH"
37
+ }
38
+ export declare enum UserActivityStates {
39
+ AVAILABLE = "Available",
40
+ IDLE = "IDLE",
41
+ READY = "Ready",
42
+ ON_CALL = "On-Call",
43
+ BREAK = "Break",
44
+ RINGING = "RINGING",
45
+ WRAPUP = "wrap-up",
46
+ WAITING = "WAITING",
47
+ LOGOUT = "LOG OUT"
48
+ }
@@ -1,2 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserActivityStates = exports.UserActivityStatuses = void 0;
4
+ var UserActivityStatuses;
5
+ (function (UserActivityStatuses) {
6
+ UserActivityStatuses["LOGIN"] = "LOGIN";
7
+ UserActivityStatuses["DIALER_LOGIN"] = "DIALER-LOGIN";
8
+ UserActivityStatuses["BREAK"] = "BREAK";
9
+ UserActivityStatuses["READY"] = "READY";
10
+ UserActivityStatuses["LOGOUT"] = "LOGOUT";
11
+ UserActivityStatuses["PAUSED"] = "PAUSED";
12
+ UserActivityStatuses["SWITCH"] = "SWITCH";
13
+ })(UserActivityStatuses || (exports.UserActivityStatuses = UserActivityStatuses = {}));
14
+ var UserActivityStates;
15
+ (function (UserActivityStates) {
16
+ UserActivityStates["AVAILABLE"] = "Available";
17
+ UserActivityStates["IDLE"] = "IDLE";
18
+ UserActivityStates["READY"] = "Ready";
19
+ UserActivityStates["ON_CALL"] = "On-Call";
20
+ UserActivityStates["BREAK"] = "Break";
21
+ UserActivityStates["RINGING"] = "RINGING";
22
+ UserActivityStates["WRAPUP"] = "wrap-up";
23
+ UserActivityStates["WAITING"] = "WAITING";
24
+ UserActivityStates["LOGOUT"] = "LOG OUT";
25
+ })(UserActivityStates || (exports.UserActivityStates = UserActivityStates = {}));
@@ -1,16 +1,16 @@
1
+ import { DatabaseObject } from "../baseObject";
2
+
1
3
  export interface IUserStatus {
2
4
  id?: number;
3
5
  userId: string;
4
6
  status: string;
5
7
  }
6
- export interface IUserActivities {
7
- userId: string;
8
- userName: string;
9
- loginHrs: string;
10
- logoutHrs: string;
11
- activeHrs: string;
12
- avgLogin: string;
13
- avgLogout: string;
8
+ export interface IUserActivities extends DatabaseObject {
9
+ campaignId?: number;
10
+ status?: string;
11
+ state?: number;
12
+ timestamp?: number;
13
+ duration?: number;
14
14
  }
15
15
  export interface IUserActivitiesSearchData {
16
16
  page?: number;
@@ -27,5 +27,26 @@ export interface IUserStatus {
27
27
  export interface IUserActivitiesRowsCount {
28
28
  count: number;
29
29
  rows: IUserActivities[];
30
+ }
31
+
32
+ export enum UserActivityStatuses {
33
+ LOGIN = 'LOGIN',
34
+ DIALER_LOGIN = 'DIALER-LOGIN',
35
+ BREAK = 'BREAK',
36
+ READY = 'READY',
37
+ LOGOUT = 'LOGOUT',
38
+ PAUSED = 'PAUSED',
39
+ SWITCH = 'SWITCH'
30
40
  }
31
-
41
+
42
+ export enum UserActivityStates {
43
+ AVAILABLE = 'Available',
44
+ IDLE = 'IDLE',
45
+ READY = 'Ready',
46
+ ON_CALL = 'On-Call',
47
+ BREAK = 'Break',
48
+ RINGING = 'RINGING',
49
+ WRAPUP = 'wrap-up',
50
+ WAITING = 'WAITING',
51
+ LOGOUT = 'LOG OUT',
52
+ }
@@ -26,4 +26,5 @@ export interface IWhatsAppFilterParams extends IListPayload {
26
26
  clientIds?: string;
27
27
  status?: whatsAppStatus;
28
28
  jobId?: string;
29
+ isActive: boolean;
29
30
  }
@@ -29,4 +29,5 @@ export interface IWhatsAppFilterParams extends IListPayload {
29
29
  clientIds?: string;
30
30
  status?: whatsAppStatus;
31
31
  jobId?: string;
32
- }
32
+ isActive: boolean;
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleardu/types",
3
- "version": "1.0.232",
3
+ "version": "1.0.234",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@aws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",