@cleardu/types 1.0.52 → 1.0.54
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.
- package/constants/brokerMessages/index.d.ts +28 -1
- package/constants/brokerMessages/index.js +28 -1
- package/constants/brokerMessages/index.ts +28 -1
- package/constants/index.d.ts +31 -1
- package/constants/index.js +44 -2
- package/constants/index.ts +46 -1
- package/constants/validations/index.d.ts +158 -0
- package/constants/validations/index.js +162 -0
- package/constants/validations/index.ts +165 -0
- package/interfaces/borrowers/index.d.ts +2 -1
- package/interfaces/borrowers/index.ts +2 -1
- package/interfaces/borrowersLoansHistory/index.d.ts +4 -4
- package/interfaces/borrowersLoansHistory/index.ts +4 -4
- package/interfaces/break/index.d.ts +2 -2
- package/interfaces/break/index.ts +2 -2
- package/interfaces/cdr/index.d.ts +13 -0
- package/interfaces/cdr/index.ts +14 -1
- package/interfaces/clientDispositions/index.d.ts +7 -0
- package/interfaces/clientDispositions/index.ts +8 -0
- package/interfaces/common/index.d.ts +13 -0
- package/interfaces/common/index.js +2 -0
- package/interfaces/common/index.ts +11 -0
- package/interfaces/dispositions/index.d.ts +2 -2
- package/interfaces/dispositions/index.ts +2 -2
- package/interfaces/idObject/index.d.ts +1 -1
- package/interfaces/idObject/index.ts +1 -1
- package/interfaces/index.d.ts +9 -2
- package/interfaces/index.js +9 -2
- package/interfaces/index.ts +12 -5
- package/interfaces/jobs/index.d.ts +6 -1
- package/interfaces/jobs/index.ts +7 -1
- package/interfaces/loanMappings/index.d.ts +17 -0
- package/interfaces/loanMappings/index.js +2 -0
- package/interfaces/loanMappings/index.ts +19 -0
- package/interfaces/loans/index.d.ts +25 -0
- package/interfaces/loans/index.ts +28 -0
- package/interfaces/payments/index.d.ts +6 -0
- package/interfaces/payments/index.ts +7 -0
- package/interfaces/reassignment/index.d.ts +6 -12
- package/interfaces/reassignment/index.ts +6 -12
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/interfaces/loanHistory/index.d.ts +0 -3
- package/interfaces/loanHistory/index.ts +0 -3
- /package/interfaces/{loanHistory → clientDispositions}/index.js +0 -0
|
@@ -106,6 +106,9 @@ export declare const BrokerMessages: {
|
|
|
106
106
|
REMOVE: string;
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
+
LOAN_MAPPING: {
|
|
110
|
+
CREATE: string;
|
|
111
|
+
};
|
|
109
112
|
BORROWER_DISPOSITION: {
|
|
110
113
|
CREATE: string;
|
|
111
114
|
AGENT_DISPOSITIONS: string;
|
|
@@ -121,6 +124,7 @@ export declare const BrokerMessages: {
|
|
|
121
124
|
CITIES: string;
|
|
122
125
|
STATES: string;
|
|
123
126
|
DISPOSITIONS: string;
|
|
127
|
+
VALIDATE_MODEL: string;
|
|
124
128
|
};
|
|
125
129
|
BORROWER_DISPOSITION: {
|
|
126
130
|
CREATE: string;
|
|
@@ -149,11 +153,13 @@ export declare const BrokerMessages: {
|
|
|
149
153
|
FIND_ONE: string;
|
|
150
154
|
FIND_ALL: string;
|
|
151
155
|
};
|
|
152
|
-
|
|
156
|
+
REPORT: {
|
|
153
157
|
INBOUND: {
|
|
154
158
|
DAILY_CALL: string;
|
|
155
159
|
HOURLY_CALL_DETAILS: string;
|
|
156
160
|
CLIENT_DETAILS: string;
|
|
161
|
+
AGGREGATE_CALL_STATES: string;
|
|
162
|
+
AGGREGATE_Client_CALL_STATES: string;
|
|
157
163
|
};
|
|
158
164
|
OUTBOUND: {
|
|
159
165
|
DAILY_CALL: string;
|
|
@@ -161,6 +167,27 @@ export declare const BrokerMessages: {
|
|
|
161
167
|
CLIENT_DETAILS: string;
|
|
162
168
|
};
|
|
163
169
|
};
|
|
170
|
+
DISPOSITIONS: {
|
|
171
|
+
CREATE: string;
|
|
172
|
+
UPDATE: string;
|
|
173
|
+
FIND_ALL: string;
|
|
174
|
+
FIND_ONE: string;
|
|
175
|
+
};
|
|
176
|
+
CLIENT_DISPOSITIONS: {
|
|
177
|
+
CREATE: string;
|
|
178
|
+
UPDATE: string;
|
|
179
|
+
FIND_ALL: string;
|
|
180
|
+
FIND_ONE: string;
|
|
181
|
+
DELETE: string;
|
|
182
|
+
};
|
|
183
|
+
BREAKS: {
|
|
184
|
+
CREATE: string;
|
|
185
|
+
UPDATE: string;
|
|
186
|
+
FIND_ONE: string;
|
|
187
|
+
FIND_ALL: string;
|
|
188
|
+
AVAILABILITY: string;
|
|
189
|
+
DROPDOWN: string;
|
|
190
|
+
};
|
|
164
191
|
};
|
|
165
192
|
CDR: {
|
|
166
193
|
PROCESSCDR: string;
|
|
@@ -109,6 +109,9 @@ exports.BrokerMessages = {
|
|
|
109
109
|
REMOVE: 'REMOVE-TAG',
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
|
+
LOAN_MAPPING: {
|
|
113
|
+
CREATE: 'CREATE_LOAN_MAPPING',
|
|
114
|
+
},
|
|
112
115
|
BORROWER_DISPOSITION: {
|
|
113
116
|
CREATE: 'CREATE_DISPOSITION',
|
|
114
117
|
AGENT_DISPOSITIONS: 'AGENT-DISPOSITIONS-ALL',
|
|
@@ -124,6 +127,7 @@ exports.BrokerMessages = {
|
|
|
124
127
|
CITIES: 'OPTIONS-CITY',
|
|
125
128
|
STATES: 'OPTIONS-STATE',
|
|
126
129
|
DISPOSITIONS: 'OPTIONS-DISPOSITIONS',
|
|
130
|
+
VALIDATE_MODEL: 'VALIDATE_MODEL',
|
|
127
131
|
},
|
|
128
132
|
BORROWER_DISPOSITION: {
|
|
129
133
|
CREATE: 'CREATE_DISPOSITION',
|
|
@@ -152,11 +156,13 @@ exports.BrokerMessages = {
|
|
|
152
156
|
FIND_ONE: 'PAYMENT-FIND_ONE',
|
|
153
157
|
FIND_ALL: 'PAYMENT-FIND_ALL',
|
|
154
158
|
},
|
|
155
|
-
|
|
159
|
+
REPORT: {
|
|
156
160
|
INBOUND: {
|
|
157
161
|
DAILY_CALL: 'INBOUND-DAILY-CALL',
|
|
158
162
|
HOURLY_CALL_DETAILS: 'HOURLY-CALL-DETAILS',
|
|
159
163
|
CLIENT_DETAILS: 'INBOUND-CLIENT-DETAILS',
|
|
164
|
+
AGGREGATE_CALL_STATES: 'AGGREGATE-CALL-STATES',
|
|
165
|
+
AGGREGATE_Client_CALL_STATES: 'AGGREGATE-CALL-STATES',
|
|
160
166
|
},
|
|
161
167
|
OUTBOUND: {
|
|
162
168
|
DAILY_CALL: 'OUTBOUND-DAILY-CALL',
|
|
@@ -164,6 +170,27 @@ exports.BrokerMessages = {
|
|
|
164
170
|
CLIENT_DETAILS: 'OUTBOUND-CLIENT-DETAILS',
|
|
165
171
|
},
|
|
166
172
|
},
|
|
173
|
+
DISPOSITIONS: {
|
|
174
|
+
CREATE: 'CREATE-DISPOSITION-SUBDISPOSITION',
|
|
175
|
+
UPDATE: 'UPDATE-DISPOSITION-SUBDISPOSITION',
|
|
176
|
+
FIND_ALL: 'LIST-DISPOSITION-SUBDISPOSITION',
|
|
177
|
+
FIND_ONE: 'GET-DISPOSITION-SUBDISPOSITION-DETAIL',
|
|
178
|
+
},
|
|
179
|
+
CLIENT_DISPOSITIONS: {
|
|
180
|
+
CREATE: 'CREATE-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
181
|
+
UPDATE: 'UPDATE-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
182
|
+
FIND_ALL: 'LIST-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
183
|
+
FIND_ONE: 'GET-CLIENT-DISPOSITION-SUBDISPOSITION-DETAIL',
|
|
184
|
+
DELETE: 'DELETE-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
185
|
+
},
|
|
186
|
+
BREAKS: {
|
|
187
|
+
CREATE: 'CREATE-BREAK',
|
|
188
|
+
UPDATE: 'UPDATE-BREAK',
|
|
189
|
+
FIND_ONE: 'GET-BREAK-DETAIL',
|
|
190
|
+
FIND_ALL: 'LIST-BREAKS',
|
|
191
|
+
AVAILABILITY: 'BREAKS-AVAILABILITY',
|
|
192
|
+
DROPDOWN: 'BREAKS-DROPDOWN',
|
|
193
|
+
},
|
|
167
194
|
},
|
|
168
195
|
CDR: {
|
|
169
196
|
PROCESSCDR: 'PROCESS-CDR',
|
|
@@ -106,6 +106,9 @@ export const BrokerMessages = {
|
|
|
106
106
|
REMOVE: 'REMOVE-TAG',
|
|
107
107
|
},
|
|
108
108
|
},
|
|
109
|
+
LOAN_MAPPING: {
|
|
110
|
+
CREATE: 'CREATE_LOAN_MAPPING',
|
|
111
|
+
},
|
|
109
112
|
BORROWER_DISPOSITION: {
|
|
110
113
|
CREATE: 'CREATE_DISPOSITION',
|
|
111
114
|
AGENT_DISPOSITIONS: 'AGENT-DISPOSITIONS-ALL',
|
|
@@ -121,6 +124,7 @@ export const BrokerMessages = {
|
|
|
121
124
|
CITIES: 'OPTIONS-CITY',
|
|
122
125
|
STATES: 'OPTIONS-STATE',
|
|
123
126
|
DISPOSITIONS: 'OPTIONS-DISPOSITIONS',
|
|
127
|
+
VALIDATE_MODEL: 'VALIDATE_MODEL',
|
|
124
128
|
},
|
|
125
129
|
BORROWER_DISPOSITION: {
|
|
126
130
|
CREATE: 'CREATE_DISPOSITION',
|
|
@@ -150,11 +154,13 @@ export const BrokerMessages = {
|
|
|
150
154
|
FIND_ONE: 'PAYMENT-FIND_ONE',
|
|
151
155
|
FIND_ALL: 'PAYMENT-FIND_ALL',
|
|
152
156
|
},
|
|
153
|
-
|
|
157
|
+
REPORT: {
|
|
154
158
|
INBOUND: {
|
|
155
159
|
DAILY_CALL: 'INBOUND-DAILY-CALL',
|
|
156
160
|
HOURLY_CALL_DETAILS: 'HOURLY-CALL-DETAILS',
|
|
157
161
|
CLIENT_DETAILS: 'INBOUND-CLIENT-DETAILS',
|
|
162
|
+
AGGREGATE_CALL_STATES: 'AGGREGATE-CALL-STATES',
|
|
163
|
+
AGGREGATE_Client_CALL_STATES: 'AGGREGATE-CALL-STATES',
|
|
158
164
|
},
|
|
159
165
|
OUTBOUND: {
|
|
160
166
|
DAILY_CALL: 'OUTBOUND-DAILY-CALL',
|
|
@@ -162,6 +168,27 @@ export const BrokerMessages = {
|
|
|
162
168
|
CLIENT_DETAILS: 'OUTBOUND-CLIENT-DETAILS',
|
|
163
169
|
},
|
|
164
170
|
},
|
|
171
|
+
DISPOSITIONS: {
|
|
172
|
+
CREATE: 'CREATE-DISPOSITION-SUBDISPOSITION',
|
|
173
|
+
UPDATE: 'UPDATE-DISPOSITION-SUBDISPOSITION',
|
|
174
|
+
FIND_ALL: 'LIST-DISPOSITION-SUBDISPOSITION',
|
|
175
|
+
FIND_ONE: 'GET-DISPOSITION-SUBDISPOSITION-DETAIL',
|
|
176
|
+
},
|
|
177
|
+
CLIENT_DISPOSITIONS: {
|
|
178
|
+
CREATE: 'CREATE-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
179
|
+
UPDATE: 'UPDATE-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
180
|
+
FIND_ALL: 'LIST-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
181
|
+
FIND_ONE: 'GET-CLIENT-DISPOSITION-SUBDISPOSITION-DETAIL',
|
|
182
|
+
DELETE: 'DELETE-CLIENT-DISPOSITION-SUBDISPOSITION',
|
|
183
|
+
},
|
|
184
|
+
BREAKS: {
|
|
185
|
+
CREATE: 'CREATE-BREAK',
|
|
186
|
+
UPDATE: 'UPDATE-BREAK',
|
|
187
|
+
FIND_ONE: 'GET-BREAK-DETAIL',
|
|
188
|
+
FIND_ALL: 'LIST-BREAKS',
|
|
189
|
+
AVAILABILITY: 'BREAKS-AVAILABILITY',
|
|
190
|
+
DROPDOWN: 'BREAKS-DROPDOWN',
|
|
191
|
+
},
|
|
165
192
|
},
|
|
166
193
|
CDR: {
|
|
167
194
|
PROCESSCDR: 'PROCESS-CDR',
|
package/constants/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IUploadProps } from '../interfaces';
|
|
1
2
|
export * from './brokerMessages';
|
|
2
3
|
export declare const Services: {
|
|
3
4
|
AWS_SERVICE: string;
|
|
@@ -81,7 +82,9 @@ export declare const userModules: {
|
|
|
81
82
|
AuditLog: number;
|
|
82
83
|
LiveChat: number;
|
|
83
84
|
Files: number;
|
|
84
|
-
|
|
85
|
+
Dispositions: number;
|
|
86
|
+
CampaignMapping: number;
|
|
87
|
+
Centers: number;
|
|
85
88
|
};
|
|
86
89
|
export declare const dispoSubDispo: {
|
|
87
90
|
dispositions: {
|
|
@@ -184,4 +187,31 @@ export declare const Constants: {
|
|
|
184
187
|
loansId: loanRecordType;
|
|
185
188
|
duplicateLoans: loanRecordType;
|
|
186
189
|
};
|
|
190
|
+
DOC_KEYS: {
|
|
191
|
+
CUSTOMER_FILE: string;
|
|
192
|
+
PAYMENT_FILE: string;
|
|
193
|
+
REASSIGNMENT_FILE: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
export declare const validateTableCols: {
|
|
197
|
+
userScreen: {
|
|
198
|
+
key: string;
|
|
199
|
+
table: string;
|
|
200
|
+
cols: string[];
|
|
201
|
+
};
|
|
202
|
+
campaignScreen: {
|
|
203
|
+
key: string;
|
|
204
|
+
table: string;
|
|
205
|
+
cols: string[];
|
|
206
|
+
};
|
|
207
|
+
clientScreen: {
|
|
208
|
+
key: string;
|
|
209
|
+
table: string;
|
|
210
|
+
cols: string[];
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
export declare const FileUploadConfig: {
|
|
214
|
+
borrower: IUploadProps;
|
|
215
|
+
payment: IUploadProps;
|
|
216
|
+
borrower_reassignment: IUploadProps;
|
|
187
217
|
};
|
package/constants/index.js
CHANGED
|
@@ -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.FileUploadConfig = 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,9 @@ exports.userModules = {
|
|
|
96
96
|
AuditLog: 24,
|
|
97
97
|
LiveChat: 25,
|
|
98
98
|
Files: 26,
|
|
99
|
-
|
|
99
|
+
Dispositions: 27,
|
|
100
|
+
CampaignMapping: 28,
|
|
101
|
+
Centers: 29,
|
|
100
102
|
};
|
|
101
103
|
exports.dispoSubDispo = {
|
|
102
104
|
dispositions: {
|
|
@@ -200,4 +202,44 @@ exports.Constants = {
|
|
|
200
202
|
loansId: 'loansId',
|
|
201
203
|
duplicateLoans: 'duplicateLoans',
|
|
202
204
|
},
|
|
205
|
+
DOC_KEYS: {
|
|
206
|
+
CUSTOMER_FILE: 'customer-file-parser',
|
|
207
|
+
PAYMENT_FILE: 'payment-file-parser',
|
|
208
|
+
REASSIGNMENT_FILE: 'reassign-file-parser',
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
exports.validateTableCols = {
|
|
212
|
+
userScreen: {
|
|
213
|
+
key: 'userScreen',
|
|
214
|
+
table: 'User',
|
|
215
|
+
cols: ['email', 'name', 'extensionNumber'],
|
|
216
|
+
},
|
|
217
|
+
campaignScreen: {
|
|
218
|
+
key: 'campaignScreen',
|
|
219
|
+
table: 'Campaigns',
|
|
220
|
+
cols: ['name'],
|
|
221
|
+
},
|
|
222
|
+
clientScreen: {
|
|
223
|
+
key: 'clientScreen',
|
|
224
|
+
table: 'Clients',
|
|
225
|
+
cols: ['email', 'name'],
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
exports.FileUploadConfig = {
|
|
229
|
+
borrower: {
|
|
230
|
+
acceptType: '.csv',
|
|
231
|
+
docKey: exports.Constants.DOC_KEYS.CUSTOMER_FILE,
|
|
232
|
+
headers: [
|
|
233
|
+
{ label: 'Client', value: 'clientId' },
|
|
234
|
+
{ label: 'Portfolio', value: 'portfolioId' },
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
payment: {
|
|
238
|
+
acceptType: '.csv',
|
|
239
|
+
docKey: exports.Constants.DOC_KEYS.PAYMENT_FILE,
|
|
240
|
+
},
|
|
241
|
+
borrower_reassignment: {
|
|
242
|
+
acceptType: '.csv',
|
|
243
|
+
docKey: exports.Constants.DOC_KEYS.REASSIGNMENT_FILE,
|
|
244
|
+
},
|
|
203
245
|
};
|
package/constants/index.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IUploadProps } from '../interfaces';
|
|
2
|
+
|
|
1
3
|
export * from './brokerMessages';
|
|
2
4
|
export const Services = {
|
|
3
5
|
AWS_SERVICE: 'AWS_SERVICE',
|
|
@@ -93,7 +95,9 @@ export const userModules = {
|
|
|
93
95
|
AuditLog: 24,
|
|
94
96
|
LiveChat: 25,
|
|
95
97
|
Files: 26,
|
|
96
|
-
|
|
98
|
+
Dispositions: 27,
|
|
99
|
+
CampaignMapping: 28,
|
|
100
|
+
Centers: 29,
|
|
97
101
|
};
|
|
98
102
|
|
|
99
103
|
export const dispoSubDispo = {
|
|
@@ -214,4 +218,45 @@ export const Constants = {
|
|
|
214
218
|
loansId: 'loansId' as loanRecordType,
|
|
215
219
|
duplicateLoans: 'duplicateLoans' as loanRecordType,
|
|
216
220
|
},
|
|
221
|
+
DOC_KEYS: {
|
|
222
|
+
CUSTOMER_FILE: 'customer-file-parser',
|
|
223
|
+
PAYMENT_FILE: 'payment-file-parser',
|
|
224
|
+
REASSIGNMENT_FILE: 'reassign-file-parser',
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
export const validateTableCols = {
|
|
228
|
+
userScreen: {
|
|
229
|
+
key: 'userScreen',
|
|
230
|
+
table: 'User',
|
|
231
|
+
cols: ['email', 'name', 'extensionNumber'],
|
|
232
|
+
},
|
|
233
|
+
campaignScreen: {
|
|
234
|
+
key: 'campaignScreen',
|
|
235
|
+
table: 'Campaigns',
|
|
236
|
+
cols: ['name'],
|
|
237
|
+
},
|
|
238
|
+
clientScreen: {
|
|
239
|
+
key: 'clientScreen',
|
|
240
|
+
table: 'Clients',
|
|
241
|
+
cols: ['email', 'name'],
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export const FileUploadConfig = {
|
|
246
|
+
borrower: {
|
|
247
|
+
acceptType: '.csv',
|
|
248
|
+
docKey: Constants.DOC_KEYS.CUSTOMER_FILE,
|
|
249
|
+
headers: [
|
|
250
|
+
{ label: 'Client', value: 'clientId' },
|
|
251
|
+
{ label: 'Portfolio', value: 'portfolioId' },
|
|
252
|
+
],
|
|
253
|
+
} as IUploadProps,
|
|
254
|
+
payment: {
|
|
255
|
+
acceptType: '.csv',
|
|
256
|
+
docKey: Constants.DOC_KEYS.PAYMENT_FILE,
|
|
257
|
+
} as IUploadProps,
|
|
258
|
+
borrower_reassignment: {
|
|
259
|
+
acceptType: '.csv',
|
|
260
|
+
docKey: Constants.DOC_KEYS.REASSIGNMENT_FILE,
|
|
261
|
+
} as IUploadProps,
|
|
217
262
|
};
|
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
role: {
|
|
52
|
+
required: {
|
|
53
|
+
value: boolean;
|
|
54
|
+
message: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
extension: {
|
|
58
|
+
equal: {
|
|
59
|
+
value: number;
|
|
60
|
+
message: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
email: {
|
|
64
|
+
required: {
|
|
65
|
+
value: boolean;
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
pattern: {
|
|
69
|
+
value: RegExp;
|
|
70
|
+
message: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
Campaign: {
|
|
75
|
+
name: {
|
|
76
|
+
required: {
|
|
77
|
+
value: boolean;
|
|
78
|
+
message: string;
|
|
79
|
+
};
|
|
80
|
+
maxLength: {
|
|
81
|
+
value: number;
|
|
82
|
+
message: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
dialerMethod: {
|
|
86
|
+
required: {
|
|
87
|
+
value: boolean;
|
|
88
|
+
message: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
campaignType: {
|
|
92
|
+
required: {
|
|
93
|
+
value: boolean;
|
|
94
|
+
message: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
ratio: {
|
|
98
|
+
required: {
|
|
99
|
+
value: boolean;
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
client: {
|
|
104
|
+
required: {
|
|
105
|
+
value: boolean;
|
|
106
|
+
message: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
Role: {
|
|
111
|
+
name: {
|
|
112
|
+
required: {
|
|
113
|
+
value: boolean;
|
|
114
|
+
message: string;
|
|
115
|
+
};
|
|
116
|
+
maxLength: {
|
|
117
|
+
value: number;
|
|
118
|
+
message: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
roleType: {
|
|
122
|
+
required: {
|
|
123
|
+
value: boolean;
|
|
124
|
+
message: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
parentRole: {
|
|
128
|
+
required: {
|
|
129
|
+
value: boolean;
|
|
130
|
+
message: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
Portfolio: {
|
|
135
|
+
name: {
|
|
136
|
+
required: {
|
|
137
|
+
value: boolean;
|
|
138
|
+
message: string;
|
|
139
|
+
};
|
|
140
|
+
maxLength: {
|
|
141
|
+
value: number;
|
|
142
|
+
message: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
client: {
|
|
146
|
+
required: {
|
|
147
|
+
value: boolean;
|
|
148
|
+
message: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
owner: {
|
|
152
|
+
required: {
|
|
153
|
+
value: boolean;
|
|
154
|
+
message: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
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: 'Name is required.',
|
|
10
|
+
},
|
|
11
|
+
maxLength: {
|
|
12
|
+
value: 30,
|
|
13
|
+
message: 'Name 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
|
+
role: {
|
|
56
|
+
required: {
|
|
57
|
+
value: true,
|
|
58
|
+
message: 'Role is required.',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
extension: {
|
|
62
|
+
equal: {
|
|
63
|
+
value: 4,
|
|
64
|
+
message: 'Extension Number must be equal to 4 characters.',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
email: {
|
|
68
|
+
required: {
|
|
69
|
+
value: true,
|
|
70
|
+
message: 'Email is required.',
|
|
71
|
+
},
|
|
72
|
+
pattern: {
|
|
73
|
+
value: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
|
|
74
|
+
message: 'Please Enter Valid Email Address.',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
Campaign: {
|
|
79
|
+
name: {
|
|
80
|
+
required: {
|
|
81
|
+
value: true,
|
|
82
|
+
message: 'Name is required.',
|
|
83
|
+
},
|
|
84
|
+
maxLength: {
|
|
85
|
+
value: 30,
|
|
86
|
+
message: 'Name must be less than 30 characters',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
dialerMethod: {
|
|
90
|
+
required: {
|
|
91
|
+
value: true,
|
|
92
|
+
message: 'Dial Method is required.',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
campaignType: {
|
|
96
|
+
required: {
|
|
97
|
+
value: true,
|
|
98
|
+
message: 'Campaign type is required.',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
ratio: {
|
|
102
|
+
required: {
|
|
103
|
+
value: true,
|
|
104
|
+
message: 'Ratio is required.',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
client: {
|
|
108
|
+
required: {
|
|
109
|
+
value: true,
|
|
110
|
+
message: 'Client is required.',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
Role: {
|
|
115
|
+
name: {
|
|
116
|
+
required: {
|
|
117
|
+
value: true,
|
|
118
|
+
message: 'Name is required.',
|
|
119
|
+
},
|
|
120
|
+
maxLength: {
|
|
121
|
+
value: 30,
|
|
122
|
+
message: 'Name must be less than 30 characters',
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
roleType: {
|
|
126
|
+
required: {
|
|
127
|
+
value: true,
|
|
128
|
+
message: 'View type is required.',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
parentRole: {
|
|
132
|
+
required: {
|
|
133
|
+
value: true,
|
|
134
|
+
message: 'Parent role is required.',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
Portfolio: {
|
|
139
|
+
name: {
|
|
140
|
+
required: {
|
|
141
|
+
value: true,
|
|
142
|
+
message: 'Name is required.',
|
|
143
|
+
},
|
|
144
|
+
maxLength: {
|
|
145
|
+
value: 30,
|
|
146
|
+
message: 'Name must be less than 30 characters',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
client: {
|
|
150
|
+
required: {
|
|
151
|
+
value: true,
|
|
152
|
+
message: 'Client is required',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
owner: {
|
|
156
|
+
required: {
|
|
157
|
+
value: true,
|
|
158
|
+
message: 'Portfolio owner is required.',
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
};
|