@cleardu/types 1.0.51 → 1.0.53

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.
@@ -121,6 +121,7 @@ export declare const BrokerMessages: {
121
121
  CITIES: string;
122
122
  STATES: string;
123
123
  DISPOSITIONS: string;
124
+ VALIDATE_MODEL: string;
124
125
  };
125
126
  BORROWER_DISPOSITION: {
126
127
  CREATE: string;
@@ -161,6 +162,19 @@ export declare const BrokerMessages: {
161
162
  CLIENT_DETAILS: string;
162
163
  };
163
164
  };
165
+ DISPOSITIONS: {
166
+ CREATE: string;
167
+ UPDATE: string;
168
+ FIND_ALL: string;
169
+ FIND_ONE: string;
170
+ };
171
+ CLIENT_DISPOSITIONS: {
172
+ CREATE: string;
173
+ UPDATE: string;
174
+ FIND_ALL: string;
175
+ FIND_ONE: string;
176
+ DELETE: string;
177
+ };
164
178
  };
165
179
  CDR: {
166
180
  PROCESSCDR: string;
@@ -124,6 +124,7 @@ exports.BrokerMessages = {
124
124
  CITIES: 'OPTIONS-CITY',
125
125
  STATES: 'OPTIONS-STATE',
126
126
  DISPOSITIONS: 'OPTIONS-DISPOSITIONS',
127
+ VALIDATE_MODEL: 'VALIDATE_MODEL'
127
128
  },
128
129
  BORROWER_DISPOSITION: {
129
130
  CREATE: 'CREATE_DISPOSITION',
@@ -164,6 +165,19 @@ exports.BrokerMessages = {
164
165
  CLIENT_DETAILS: 'OUTBOUND-CLIENT-DETAILS',
165
166
  },
166
167
  },
168
+ DISPOSITIONS: {
169
+ CREATE: 'CREATE-DISPOSITION-SUBDISPOSITION',
170
+ UPDATE: 'UPDATE-DISPOSITION-SUBDISPOSITION',
171
+ FIND_ALL: 'LIST-DISPOSITION-SUBDISPOSITION',
172
+ FIND_ONE: 'GET-DISPOSITION-SUBDISPOSITION-DETAIL',
173
+ },
174
+ CLIENT_DISPOSITIONS: {
175
+ CREATE: 'CREATE-CLIENT-DISPOSITION-SUBDISPOSITION',
176
+ UPDATE: 'UPDATE-CLIENT-DISPOSITION-SUBDISPOSITION',
177
+ FIND_ALL: 'LIST-CLIENT-DISPOSITION-SUBDISPOSITION',
178
+ FIND_ONE: 'GET-CLIENT-DISPOSITION-SUBDISPOSITION-DETAIL',
179
+ DELETE: 'DELETE-CLIENT-DISPOSITION-SUBDISPOSITION',
180
+ },
167
181
  },
168
182
  CDR: {
169
183
  PROCESSCDR: 'PROCESS-CDR',
@@ -121,6 +121,7 @@ export const BrokerMessages = {
121
121
  CITIES: 'OPTIONS-CITY',
122
122
  STATES: 'OPTIONS-STATE',
123
123
  DISPOSITIONS: 'OPTIONS-DISPOSITIONS',
124
+ VALIDATE_MODEL:'VALIDATE_MODEL'
124
125
  },
125
126
  BORROWER_DISPOSITION: {
126
127
  CREATE: 'CREATE_DISPOSITION',
@@ -162,6 +163,19 @@ export const BrokerMessages = {
162
163
  CLIENT_DETAILS: 'OUTBOUND-CLIENT-DETAILS',
163
164
  },
164
165
  },
166
+ DISPOSITIONS: {
167
+ CREATE: 'CREATE-DISPOSITION-SUBDISPOSITION',
168
+ UPDATE: 'UPDATE-DISPOSITION-SUBDISPOSITION',
169
+ FIND_ALL: 'LIST-DISPOSITION-SUBDISPOSITION',
170
+ FIND_ONE: 'GET-DISPOSITION-SUBDISPOSITION-DETAIL',
171
+ },
172
+ CLIENT_DISPOSITIONS: {
173
+ CREATE: 'CREATE-CLIENT-DISPOSITION-SUBDISPOSITION',
174
+ UPDATE: 'UPDATE-CLIENT-DISPOSITION-SUBDISPOSITION',
175
+ FIND_ALL: 'LIST-CLIENT-DISPOSITION-SUBDISPOSITION',
176
+ FIND_ONE: 'GET-CLIENT-DISPOSITION-SUBDISPOSITION-DETAIL',
177
+ DELETE: 'DELETE-CLIENT-DISPOSITION-SUBDISPOSITION',
178
+ },
165
179
  },
166
180
  CDR: {
167
181
  PROCESSCDR: 'PROCESS-CDR',
@@ -81,7 +81,8 @@ export declare const userModules: {
81
81
  AuditLog: number;
82
82
  LiveChat: number;
83
83
  Files: number;
84
- Mapping: number;
84
+ Dispositions: number;
85
+ CampaignMapping: number;
85
86
  };
86
87
  export declare const dispoSubDispo: {
87
88
  dispositions: {
@@ -185,3 +186,20 @@ export declare const Constants: {
185
186
  duplicateLoans: loanRecordType;
186
187
  };
187
188
  };
189
+ export declare const validateTableCols: {
190
+ userScreen: {
191
+ key: string;
192
+ table: string;
193
+ cols: string[];
194
+ };
195
+ campaignScreen: {
196
+ key: string;
197
+ table: string;
198
+ cols: string[];
199
+ };
200
+ clientScreen: {
201
+ key: string;
202
+ table: string;
203
+ cols: string[];
204
+ };
205
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Constants = exports.PorvidersType = exports.JobTypeEnum = exports.ParticipantTypeEnum = exports.dispoSubDispo = exports.userModules = exports.Disp_CategoryTypeEnum = exports.JobStatusEnum = exports.CallDirectionEnum = exports.DispositionTypeEnum = exports.GenderTypeEnum = exports.CampaignTypeEnum = exports.RoleTypeEnum = exports.UserTypeEnum = exports.ActInactiveEnumType = exports.Services = void 0;
3
+ exports.validateTableCols = exports.Constants = exports.PorvidersType = exports.JobTypeEnum = exports.ParticipantTypeEnum = exports.dispoSubDispo = exports.userModules = exports.Disp_CategoryTypeEnum = exports.JobStatusEnum = exports.CallDirectionEnum = exports.DispositionTypeEnum = exports.GenderTypeEnum = exports.CampaignTypeEnum = 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 = {
@@ -96,7 +96,8 @@ exports.userModules = {
96
96
  AuditLog: 24,
97
97
  LiveChat: 25,
98
98
  Files: 26,
99
- Mapping: 27,
99
+ Dispositions: 27,
100
+ CampaignMapping: 27,
100
101
  };
101
102
  exports.dispoSubDispo = {
102
103
  dispositions: {
@@ -201,3 +202,20 @@ exports.Constants = {
201
202
  duplicateLoans: 'duplicateLoans',
202
203
  },
203
204
  };
205
+ exports.validateTableCols = {
206
+ userScreen: {
207
+ key: 'userScreen',
208
+ table: 'User',
209
+ cols: ['email', 'name', 'extention'],
210
+ },
211
+ campaignScreen: {
212
+ key: 'campaignScreen',
213
+ table: 'Campaign',
214
+ cols: ['name'],
215
+ },
216
+ clientScreen: {
217
+ key: 'clientScreen',
218
+ table: 'Client',
219
+ cols: ['email', 'name'],
220
+ },
221
+ };
@@ -93,7 +93,8 @@ export const userModules = {
93
93
  AuditLog: 24,
94
94
  LiveChat: 25,
95
95
  Files: 26,
96
- Mapping: 27,
96
+ Dispositions: 27,
97
+ CampaignMapping: 27,
97
98
  };
98
99
 
99
100
  export const dispoSubDispo = {
@@ -215,3 +216,20 @@ export const Constants = {
215
216
  duplicateLoans: 'duplicateLoans' as loanRecordType,
216
217
  },
217
218
  };
219
+ export const validateTableCols = {
220
+ userScreen: {
221
+ key: 'userScreen',
222
+ table: 'User',
223
+ cols: ['email', 'name', 'extention'],
224
+ },
225
+ campaignScreen: {
226
+ key: 'campaignScreen',
227
+ table: 'Campaign',
228
+ cols: ['name'],
229
+ },
230
+ clientScreen: {
231
+ key: 'clientScreen',
232
+ table: 'Client',
233
+ cols: ['email', 'name'],
234
+ },
235
+ };
@@ -0,0 +1,136 @@
1
+ export declare const validations: {
2
+ Client: {
3
+ name: {
4
+ required: {
5
+ value: boolean;
6
+ message: string;
7
+ };
8
+ maxLength: {
9
+ value: number;
10
+ message: string;
11
+ };
12
+ };
13
+ password: {
14
+ required: {
15
+ value: boolean;
16
+ message: string;
17
+ };
18
+ pattern: {
19
+ value: RegExp;
20
+ message: string;
21
+ };
22
+ };
23
+ };
24
+ User: {
25
+ firstName: {
26
+ required: {
27
+ value: boolean;
28
+ message: string;
29
+ };
30
+ maxLength: {
31
+ value: number;
32
+ message: string;
33
+ };
34
+ };
35
+ lastName: {
36
+ required: {
37
+ value: boolean;
38
+ message: string;
39
+ };
40
+ maxLength: {
41
+ value: number;
42
+ message: string;
43
+ };
44
+ };
45
+ userType: {
46
+ required: {
47
+ value: boolean;
48
+ message: string;
49
+ };
50
+ };
51
+ extension: {
52
+ minLength: {
53
+ value: number;
54
+ message: string;
55
+ };
56
+ maxLength: {
57
+ value: number;
58
+ message: string;
59
+ };
60
+ };
61
+ email: {
62
+ required: {
63
+ value: boolean;
64
+ message: string;
65
+ };
66
+ pattern: {
67
+ value: RegExp;
68
+ message: string;
69
+ };
70
+ };
71
+ };
72
+ Campaign: {
73
+ name: {
74
+ required: {
75
+ value: boolean;
76
+ message: string;
77
+ };
78
+ maxLength: {
79
+ value: number;
80
+ message: string;
81
+ };
82
+ };
83
+ dialerMethod: {
84
+ required: {
85
+ value: boolean;
86
+ message: string;
87
+ };
88
+ };
89
+ ratio: {
90
+ required: {
91
+ value: boolean;
92
+ message: string;
93
+ };
94
+ };
95
+ client: {
96
+ required: {
97
+ value: boolean;
98
+ message: string;
99
+ };
100
+ };
101
+ };
102
+ Role: {
103
+ name: {
104
+ required: {
105
+ value: boolean;
106
+ message: string;
107
+ };
108
+ maxLength: {
109
+ value: number;
110
+ message: string;
111
+ };
112
+ };
113
+ };
114
+ Portfolio: {
115
+ name: {
116
+ required: {
117
+ value: boolean;
118
+ message: string;
119
+ };
120
+ maxLength: {
121
+ value: number;
122
+ message: string;
123
+ };
124
+ };
125
+ client: {
126
+ required: {
127
+ value: boolean;
128
+ message: string;
129
+ };
130
+ owner: {
131
+ value: boolean;
132
+ message: string;
133
+ };
134
+ };
135
+ };
136
+ };
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validations = void 0;
4
+ exports.validations = {
5
+ Client: {
6
+ name: {
7
+ required: {
8
+ value: true,
9
+ message: 'Client name is required.',
10
+ },
11
+ maxLength: {
12
+ value: 30,
13
+ message: 'Client must be less than 30 characters',
14
+ },
15
+ },
16
+ password: {
17
+ required: {
18
+ value: true,
19
+ message: 'Password is required.',
20
+ },
21
+ //TODO Add Regex for password
22
+ pattern: {
23
+ value: /^(?=.*[~`!@#$%^&*()--+={}\[\]|\\:;"'<>,.?/_₹]).*$/,
24
+ message: 'Enter valid password',
25
+ },
26
+ },
27
+ },
28
+ User: {
29
+ firstName: {
30
+ required: {
31
+ value: true,
32
+ message: 'First name is required.',
33
+ },
34
+ maxLength: {
35
+ value: 30,
36
+ message: 'First name must be less than 30 characters',
37
+ },
38
+ },
39
+ lastName: {
40
+ required: {
41
+ value: true,
42
+ message: 'Last name is required.',
43
+ },
44
+ maxLength: {
45
+ value: 30,
46
+ message: 'Last name must be less than 30 characters',
47
+ },
48
+ },
49
+ userType: {
50
+ required: {
51
+ value: true,
52
+ message: 'User type is required.',
53
+ },
54
+ },
55
+ extension: {
56
+ minLength: {
57
+ value: 4,
58
+ message: 'Extension Number must be greater than 4 characters.',
59
+ },
60
+ maxLength: {
61
+ value: 4,
62
+ message: 'Extension Number must not be greater than 4 characters.',
63
+ },
64
+ },
65
+ email: {
66
+ required: {
67
+ value: true,
68
+ message: 'Email is required.',
69
+ },
70
+ pattern: {
71
+ value: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
72
+ message: 'Please Enter Valid Email Address.',
73
+ },
74
+ },
75
+ },
76
+ Campaign: {
77
+ name: {
78
+ required: {
79
+ value: true,
80
+ message: 'Name is required.',
81
+ },
82
+ maxLength: {
83
+ value: 30,
84
+ message: 'Name must be less than 30 characters',
85
+ },
86
+ },
87
+ dialerMethod: {
88
+ required: {
89
+ value: true,
90
+ message: 'Dial Method is required.',
91
+ },
92
+ },
93
+ ratio: {
94
+ required: {
95
+ value: true,
96
+ message: 'Ratio is required.',
97
+ },
98
+ },
99
+ client: {
100
+ required: {
101
+ value: true,
102
+ message: 'Client is required.',
103
+ },
104
+ },
105
+ },
106
+ Role: {
107
+ name: {
108
+ required: {
109
+ value: true,
110
+ message: 'Name is required.',
111
+ },
112
+ maxLength: {
113
+ value: 30,
114
+ message: 'Name must be less than 30 characters',
115
+ },
116
+ },
117
+ },
118
+ Portfolio: {
119
+ name: {
120
+ required: {
121
+ value: true,
122
+ message: 'Name is required.',
123
+ },
124
+ maxLength: {
125
+ value: 30,
126
+ message: 'Name must be less than 30 characters',
127
+ },
128
+ },
129
+ client: {
130
+ required: {
131
+ value: true,
132
+ message: 'Client is required',
133
+ },
134
+ owner: {
135
+ value: true,
136
+ message: 'Portfolio Owner is required.',
137
+ },
138
+ },
139
+ },
140
+ };
@@ -0,0 +1,142 @@
1
+ export const validations = {
2
+ Client: {
3
+ name: {
4
+ required: {
5
+ value: true,
6
+ message: 'Client name is required.',
7
+ },
8
+ maxLength: {
9
+ value: 30,
10
+ message: 'Client must be less than 30 characters',
11
+ },
12
+ },
13
+
14
+ password: {
15
+ required: {
16
+ value: true,
17
+ message: 'Password is required.',
18
+ },
19
+ //TODO Add Regex for password
20
+ pattern: {
21
+ value: /^(?=.*[~`!@#$%^&*()--+={}\[\]|\\:;"'<>,.?/_₹]).*$/,
22
+ message: 'Enter valid password',
23
+ },
24
+ },
25
+ },
26
+
27
+ User: {
28
+ firstName: {
29
+ required: {
30
+ value: true,
31
+ message: 'First name is required.',
32
+ },
33
+ maxLength: {
34
+ value: 30,
35
+ message: 'First name must be less than 30 characters',
36
+ },
37
+ },
38
+ lastName: {
39
+ required: {
40
+ value: true,
41
+ message: 'Last name is required.',
42
+ },
43
+ maxLength: {
44
+ value: 30,
45
+ message: 'Last name must be less than 30 characters',
46
+ },
47
+ },
48
+ userType: {
49
+ required: {
50
+ value: true,
51
+ message: 'User type is required.',
52
+ },
53
+ },
54
+ extension: {
55
+ minLength: {
56
+ value: 4,
57
+ message: 'Extension Number must be greater than 4 characters.',
58
+ },
59
+ maxLength: {
60
+ value: 4,
61
+ message: 'Extension Number must not be greater than 4 characters.',
62
+ },
63
+ },
64
+ email: {
65
+ required: {
66
+ value: true,
67
+ message: 'Email is required.',
68
+ },
69
+ pattern: {
70
+ value: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
71
+ message: 'Please Enter Valid Email Address.',
72
+ },
73
+ },
74
+ },
75
+
76
+ Campaign: {
77
+ name: {
78
+ required: {
79
+ value: true,
80
+ message: 'Name is required.',
81
+ },
82
+ maxLength: {
83
+ value: 30,
84
+ message: 'Name must be less than 30 characters',
85
+ },
86
+ },
87
+ dialerMethod: {
88
+ required: {
89
+ value: true,
90
+ message: 'Dial Method is required.',
91
+ },
92
+ },
93
+ ratio: {
94
+ required: {
95
+ value: true,
96
+ message: 'Ratio is required.',
97
+ },
98
+ },
99
+ client: {
100
+ required: {
101
+ value: true,
102
+ message: 'Client is required.',
103
+ },
104
+ },
105
+ },
106
+
107
+ Role: {
108
+ name: {
109
+ required: {
110
+ value: true,
111
+ message: 'Name is required.',
112
+ },
113
+ maxLength: {
114
+ value: 30,
115
+ message: 'Name must be less than 30 characters',
116
+ },
117
+ },
118
+ },
119
+
120
+ Portfolio: {
121
+ name: {
122
+ required: {
123
+ value: true,
124
+ message: 'Name is required.',
125
+ },
126
+ maxLength: {
127
+ value: 30,
128
+ message: 'Name must be less than 30 characters',
129
+ },
130
+ },
131
+ client: {
132
+ required: {
133
+ value: true,
134
+ message: 'Client is required',
135
+ },
136
+ owner: {
137
+ value: true,
138
+ message: 'Portfolio Owner is required.',
139
+ },
140
+ },
141
+ },
142
+ };
@@ -0,0 +1,7 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+ export interface IClientDispositions extends DatabaseObject {
3
+ clientId: number;
4
+ dispositionId: number;
5
+ name: string;
6
+ isActive: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { DatabaseObject } from '../baseObject';
2
+
3
+ export interface IClientDispositions extends DatabaseObject {
4
+ clientId: number;
5
+ dispositionId: number;
6
+ name: string;
7
+ isActive: boolean;
8
+ }
@@ -0,0 +1,5 @@
1
+ export interface IValidate {
2
+ field: string;
3
+ value: string;
4
+ module: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IValidate {
2
+ field: string;
3
+ value: string;
4
+ module:string;
5
+ }
@@ -4,10 +4,13 @@ export * from './borrowersDispositions';
4
4
  export * from './borrowersHistory';
5
5
  export * from './break';
6
6
  export * from './campaigns';
7
+ export * from './cdr';
7
8
  export * from './centers';
8
9
  export * from './cities';
10
+ export * from './clientDispositions';
9
11
  export * from './clients';
10
12
  export * from './clientStates';
13
+ export * from './common';
11
14
  export * from './dialers';
12
15
  export * from './dispositions';
13
16
  export * from './docCategory';
@@ -23,13 +26,16 @@ export * from './loginDetails';
23
26
  export * from './merchants';
24
27
  export * from './modules';
25
28
  export * from './payload';
29
+ export * from './paymentAccounts';
30
+ export * from './paymentLinks';
26
31
  export * from './payments';
27
32
  export * from './permissions';
28
33
  export * from './portfolios';
34
+ export * from './portfoliosTarget';
35
+ export * from './reassignment';
29
36
  export * from './responseType';
30
37
  export * from './role';
31
38
  export * from './rolePermissions';
32
- export * from './users';
33
39
  export * from './settlementHistory';
34
40
  export * from './settlementNotes';
35
41
  export * from './settlements';
@@ -40,11 +46,6 @@ export * from './statsHourlyCall';
40
46
  export * from './users';
41
47
  export * from './userTaskCustomers';
42
48
  export * from './userTasks';
43
- export * from './portfoliosTarget';
44
- export * from './reassignment';
45
- export * from './paymentAccounts';
46
- export * from './cdr';
47
- export * from './paymentLinks';
48
49
  import { ConnectionOptions, Dialect, ReplicationOptions } from 'sequelize/types';
49
50
  export interface DBConnection extends ConnectionOptions {
50
51
  host: string;