@cleardu/types 1.0.376 → 1.0.378
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 +5 -0
- package/constants/brokerMessages/index.js +5 -0
- package/constants/brokerMessages/index.ts +5 -0
- package/constants/index.d.ts +2 -1
- package/constants/index.js +1 -0
- package/constants/index.ts +1 -0
- package/interfaces/allocationTypes/index.d.ts +4 -2
- package/interfaces/allocationTypes/index.ts +4 -2
- package/interfaces/borrowers/index.d.ts +1 -0
- package/interfaces/borrowers/index.ts +1 -0
- package/interfaces/borrowersDispositions/index.d.ts +8 -2
- package/interfaces/borrowersDispositions/index.ts +8 -3
- package/interfaces/clientLoanContacts/index.d.ts +10 -0
- package/interfaces/clientLoanContacts/index.js +2 -0
- package/interfaces/clientLoanContacts/index.ts +11 -0
- package/interfaces/index.d.ts +1 -0
- package/interfaces/index.js +1 -0
- package/interfaces/index.ts +1 -0
- package/interfaces/loanGroups/index.d.ts +1 -0
- package/interfaces/loanGroups/index.ts +1 -0
- package/interfaces/loanMappings/index.d.ts +9 -1
- package/interfaces/loanMappings/index.ts +10 -1
- package/interfaces/loans/index.d.ts +1 -1
- package/interfaces/loans/index.ts +1 -1
- package/interfaces/whatsapp/index.d.ts +3 -0
- package/interfaces/whatsapp/index.ts +10 -7
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -161,6 +161,10 @@ export declare const BrokerMessages: {
|
|
|
161
161
|
PARTICIPANTS: {
|
|
162
162
|
FIND_ALL: string;
|
|
163
163
|
};
|
|
164
|
+
CLIENT_LOAN_CONTACTS: {
|
|
165
|
+
FIND_ALL: string;
|
|
166
|
+
};
|
|
167
|
+
UPDATE_LOAN_ALLOCATION: string;
|
|
164
168
|
};
|
|
165
169
|
MIGRATE_BORROWER_STATS: string;
|
|
166
170
|
ACTIVITY_HISTORY: {
|
|
@@ -351,6 +355,7 @@ export declare const BrokerMessages: {
|
|
|
351
355
|
};
|
|
352
356
|
COUMMUNICATION_DASHBOARD: {
|
|
353
357
|
GET_COMMUNICATION_LIST: string;
|
|
358
|
+
ALLOCATION_TYPE_ASSIGN: string;
|
|
354
359
|
SUMMARY: {
|
|
355
360
|
SMS_COUNT: string;
|
|
356
361
|
WHATSAPP_COUNT: string;
|
|
@@ -164,6 +164,10 @@ exports.BrokerMessages = {
|
|
|
164
164
|
PARTICIPANTS: {
|
|
165
165
|
FIND_ALL: 'GET-ALL-LOAN-PARTICIPANTS-LIST',
|
|
166
166
|
},
|
|
167
|
+
CLIENT_LOAN_CONTACTS: {
|
|
168
|
+
FIND_ALL: 'GET-ALL-CLIENT-LOAN-CONTACTS-LIST',
|
|
169
|
+
},
|
|
170
|
+
UPDATE_LOAN_ALLOCATION: 'UPDATE-LOAN-ALLOCATION',
|
|
167
171
|
},
|
|
168
172
|
MIGRATE_BORROWER_STATS: 'MIGRATE-BORROWER-STATS',
|
|
169
173
|
ACTIVITY_HISTORY: {
|
|
@@ -354,6 +358,7 @@ exports.BrokerMessages = {
|
|
|
354
358
|
},
|
|
355
359
|
COUMMUNICATION_DASHBOARD: {
|
|
356
360
|
GET_COMMUNICATION_LIST: 'COUMMUNICATION-DASHBOARD-LIST',
|
|
361
|
+
ALLOCATION_TYPE_ASSIGN: 'ALLOCATION_TYPE_ASSIGN',
|
|
357
362
|
SUMMARY: {
|
|
358
363
|
SMS_COUNT: 'SMS-COUNT',
|
|
359
364
|
WHATSAPP_COUNT: 'WHATSAPP-COUNT',
|
|
@@ -161,6 +161,10 @@ export const BrokerMessages = {
|
|
|
161
161
|
PARTICIPANTS: {
|
|
162
162
|
FIND_ALL: 'GET-ALL-LOAN-PARTICIPANTS-LIST',
|
|
163
163
|
},
|
|
164
|
+
CLIENT_LOAN_CONTACTS: {
|
|
165
|
+
FIND_ALL: 'GET-ALL-CLIENT-LOAN-CONTACTS-LIST',
|
|
166
|
+
},
|
|
167
|
+
UPDATE_LOAN_ALLOCATION: 'UPDATE-LOAN-ALLOCATION',
|
|
164
168
|
},
|
|
165
169
|
MIGRATE_BORROWER_STATS: 'MIGRATE-BORROWER-STATS',
|
|
166
170
|
ACTIVITY_HISTORY: {
|
|
@@ -354,6 +358,7 @@ export const BrokerMessages = {
|
|
|
354
358
|
},
|
|
355
359
|
COUMMUNICATION_DASHBOARD: {
|
|
356
360
|
GET_COMMUNICATION_LIST: 'COUMMUNICATION-DASHBOARD-LIST',
|
|
361
|
+
ALLOCATION_TYPE_ASSIGN: 'ALLOCATION_TYPE_ASSIGN',
|
|
357
362
|
SUMMARY: {
|
|
358
363
|
SMS_COUNT: 'SMS-COUNT',
|
|
359
364
|
WHATSAPP_COUNT: 'WHATSAPP-COUNT',
|
package/constants/index.d.ts
CHANGED
|
@@ -212,7 +212,8 @@ export declare enum JobTypeEnum {
|
|
|
212
212
|
LOAN_PAYMENT_HISTORY_STATUS = "loan-payment-history-status",
|
|
213
213
|
MANUAL_IVR_SMS_WHATSAPP_SENT = "MANUAL-IVR-SMS-WHASTSAPP-SENT",
|
|
214
214
|
DO_NOT_CALL_FILE = "DO-NOT-CALL-FILE",
|
|
215
|
-
CUSTOMER_FILE_ORIGINAL_POS_UPDATE = "CUSTOMER-FILE-ORIGINAL-POS-UPDATE"
|
|
215
|
+
CUSTOMER_FILE_ORIGINAL_POS_UPDATE = "CUSTOMER-FILE-ORIGINAL-POS-UPDATE",
|
|
216
|
+
ALLOCATION_TYPE = "ALLOCATION-TYPE-PARSER"
|
|
216
217
|
}
|
|
217
218
|
export declare enum PaymentStatus {
|
|
218
219
|
UNPAID = 1,
|
package/constants/index.js
CHANGED
|
@@ -251,6 +251,7 @@ var JobTypeEnum;
|
|
|
251
251
|
JobTypeEnum["MANUAL_IVR_SMS_WHATSAPP_SENT"] = "MANUAL-IVR-SMS-WHASTSAPP-SENT";
|
|
252
252
|
JobTypeEnum["DO_NOT_CALL_FILE"] = "DO-NOT-CALL-FILE";
|
|
253
253
|
JobTypeEnum["CUSTOMER_FILE_ORIGINAL_POS_UPDATE"] = "CUSTOMER-FILE-ORIGINAL-POS-UPDATE";
|
|
254
|
+
JobTypeEnum["ALLOCATION_TYPE"] = "ALLOCATION-TYPE-PARSER";
|
|
254
255
|
})(JobTypeEnum || (exports.JobTypeEnum = JobTypeEnum = {}));
|
|
255
256
|
var PaymentStatus;
|
|
256
257
|
(function (PaymentStatus) {
|
package/constants/index.ts
CHANGED
|
@@ -257,6 +257,7 @@ export enum JobTypeEnum {
|
|
|
257
257
|
MANUAL_IVR_SMS_WHATSAPP_SENT = 'MANUAL-IVR-SMS-WHASTSAPP-SENT',
|
|
258
258
|
DO_NOT_CALL_FILE = 'DO-NOT-CALL-FILE',
|
|
259
259
|
CUSTOMER_FILE_ORIGINAL_POS_UPDATE = 'CUSTOMER-FILE-ORIGINAL-POS-UPDATE',
|
|
260
|
+
ALLOCATION_TYPE = 'ALLOCATION-TYPE-PARSER',
|
|
260
261
|
}
|
|
261
262
|
|
|
262
263
|
export enum PaymentStatus {
|
|
@@ -9,14 +9,16 @@ export interface IAllocationTypes extends DatabaseObject {
|
|
|
9
9
|
}
|
|
10
10
|
export interface CreateUpdateAllocation {
|
|
11
11
|
name: string;
|
|
12
|
-
isDefault
|
|
12
|
+
isDefault?: boolean;
|
|
13
13
|
colorCode: string;
|
|
14
|
-
isActive
|
|
14
|
+
isActive?: boolean;
|
|
15
15
|
createdBy: number;
|
|
16
16
|
}
|
|
17
17
|
export interface IAllocationTypeCSVCorrectData {
|
|
18
18
|
loanNumber: string;
|
|
19
19
|
allocationType: string;
|
|
20
|
+
loanId?: number;
|
|
21
|
+
allocationTypeId?: number;
|
|
20
22
|
}
|
|
21
23
|
export interface IAllocationTypeCSVInCorrectData extends IAllocationTypeCSVCorrectData {
|
|
22
24
|
errors: string;
|
|
@@ -11,15 +11,17 @@ export interface IAllocationTypes extends DatabaseObject {
|
|
|
11
11
|
|
|
12
12
|
export interface CreateUpdateAllocation {
|
|
13
13
|
name: string;
|
|
14
|
-
isDefault
|
|
14
|
+
isDefault?: boolean;
|
|
15
15
|
colorCode: string;
|
|
16
|
-
isActive
|
|
16
|
+
isActive?: boolean;
|
|
17
17
|
createdBy: number;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface IAllocationTypeCSVCorrectData {
|
|
21
21
|
loanNumber: string;
|
|
22
22
|
allocationType: string;
|
|
23
|
+
loanId?: number;
|
|
24
|
+
allocationTypeId?: number;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export interface IAllocationTypeCSVInCorrectData
|
|
@@ -142,6 +142,7 @@ export interface BorrowerFilters extends IListPayload {
|
|
|
142
142
|
paymentHistoryStatusNotInCm?: string;
|
|
143
143
|
isBestDispo?: boolean;
|
|
144
144
|
newAssigned?: boolean;
|
|
145
|
+
allocationTypeId?: string;
|
|
145
146
|
}
|
|
146
147
|
export interface FilterBorrower {
|
|
147
148
|
filters: BorrowerFilters;
|
|
@@ -14,8 +14,14 @@ export interface IBorrowersDispositions extends DatabaseObject {
|
|
|
14
14
|
transactionId?: string;
|
|
15
15
|
paymentMode?: string;
|
|
16
16
|
isHotPtp?: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
}
|
|
18
|
+
export interface ICreateBorrowerDisposition extends IBorrowersDispositions {
|
|
19
|
+
callDirection?: string;
|
|
20
|
+
dispositionName?: string;
|
|
21
|
+
subDispositionName?: string;
|
|
22
|
+
isEndCall?: boolean;
|
|
23
|
+
pause?: boolean;
|
|
24
|
+
break?: string;
|
|
19
25
|
}
|
|
20
26
|
export interface ILoanDispositionFilterParams extends IListPayload {
|
|
21
27
|
clientIds?: string;
|
|
@@ -16,10 +16,15 @@ export interface IBorrowersDispositions extends DatabaseObject {
|
|
|
16
16
|
transactionId?: string;
|
|
17
17
|
paymentMode?: string;
|
|
18
18
|
isHotPtp?: boolean;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
export interface ICreateBorrowerDisposition extends IBorrowersDispositions {
|
|
22
|
+
callDirection?: string;
|
|
23
|
+
dispositionName?: string;
|
|
24
|
+
subDispositionName?: string;
|
|
25
|
+
isEndCall?: boolean;
|
|
26
|
+
pause?: boolean;
|
|
27
|
+
break?: string;
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
export interface ILoanDispositionFilterParams extends IListPayload {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
import { IListPayload } from '../payload';
|
|
3
|
+
export interface IClientLoanContacts extends DatabaseObject {
|
|
4
|
+
loanId: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
mobile?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IClientLoanContactsFindAll extends IListPayload {
|
|
9
|
+
loanId: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
import { IListPayload } from '../payload';
|
|
3
|
+
export interface IClientLoanContacts extends DatabaseObject {
|
|
4
|
+
loanId: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
mobile?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface IClientLoanContactsFindAll extends IListPayload {
|
|
10
|
+
loanId: string;
|
|
11
|
+
}
|
package/interfaces/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export * from './DNCNumbers';
|
|
|
67
67
|
export * from './DNCNumbersHistory';
|
|
68
68
|
export * from './clientPerformanceReport';
|
|
69
69
|
export * from './allocationTypes';
|
|
70
|
+
export * from './clientLoanContacts';
|
|
70
71
|
import { ConnectionOptions, Dialect, ReplicationOptions } from 'sequelize/types';
|
|
71
72
|
export interface DBConnection extends ConnectionOptions {
|
|
72
73
|
host: string;
|
package/interfaces/index.js
CHANGED
|
@@ -70,3 +70,4 @@ tslib_1.__exportStar(require("./DNCNumbers"), exports);
|
|
|
70
70
|
tslib_1.__exportStar(require("./DNCNumbersHistory"), exports);
|
|
71
71
|
tslib_1.__exportStar(require("./clientPerformanceReport"), exports);
|
|
72
72
|
tslib_1.__exportStar(require("./allocationTypes"), exports);
|
|
73
|
+
tslib_1.__exportStar(require("./clientLoanContacts"), exports);
|
package/interfaces/index.ts
CHANGED
|
@@ -17,11 +17,12 @@ export interface ICreateLoanMappingsData {
|
|
|
17
17
|
filters?: ICreateMappingFilters;
|
|
18
18
|
}
|
|
19
19
|
export interface ICreateMappingFilters {
|
|
20
|
+
allocationTypeId?: number;
|
|
20
21
|
clientId?: number;
|
|
21
22
|
campaignIds?: number[];
|
|
22
23
|
userIds?: number[];
|
|
23
24
|
excludeIds?: number[];
|
|
24
|
-
|
|
25
|
+
includeIds: number[];
|
|
25
26
|
q?: string;
|
|
26
27
|
}
|
|
27
28
|
export interface IAllocationInfo {
|
|
@@ -34,3 +35,10 @@ export interface IAllocationInfo {
|
|
|
34
35
|
oldLoanIds: number[];
|
|
35
36
|
newLoanIds: number[];
|
|
36
37
|
}
|
|
38
|
+
export interface IUpdateLoanAllocationType {
|
|
39
|
+
setAllocationTypeId?: number;
|
|
40
|
+
createdBy: number;
|
|
41
|
+
userId?: number;
|
|
42
|
+
allSelected?: boolean;
|
|
43
|
+
filters?: ICreateMappingFilters;
|
|
44
|
+
}
|
|
@@ -20,11 +20,12 @@ export interface ICreateLoanMappingsData {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface ICreateMappingFilters {
|
|
23
|
+
allocationTypeId?: number;
|
|
23
24
|
clientId?: number;
|
|
24
25
|
campaignIds?: number[];
|
|
25
26
|
userIds?: number[];
|
|
26
27
|
excludeIds?: number[];
|
|
27
|
-
|
|
28
|
+
includeIds: number[];
|
|
28
29
|
q?: string;
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -38,3 +39,11 @@ export interface IAllocationInfo {
|
|
|
38
39
|
oldLoanIds: number[];
|
|
39
40
|
newLoanIds: number[];
|
|
40
41
|
}
|
|
42
|
+
|
|
43
|
+
export interface IUpdateLoanAllocationType {
|
|
44
|
+
setAllocationTypeId?: number;
|
|
45
|
+
createdBy: number;
|
|
46
|
+
userId?: number;
|
|
47
|
+
allSelected?: boolean;
|
|
48
|
+
filters?: ICreateMappingFilters;
|
|
49
|
+
}
|
|
@@ -72,7 +72,7 @@ export interface ILoans extends DatabaseObject {
|
|
|
72
72
|
latestRealizePaymentAmount?: number | null;
|
|
73
73
|
paymentHistoryStatus?: PaymentHistoryStatus;
|
|
74
74
|
isDNC: boolean;
|
|
75
|
-
|
|
75
|
+
allocationTypeId: number;
|
|
76
76
|
}
|
|
77
77
|
export interface ILoanMapingUser extends ILoans {
|
|
78
78
|
loanUsers?: ILoanUsers[];
|
|
@@ -73,7 +73,7 @@ export interface ILoans extends DatabaseObject {
|
|
|
73
73
|
latestRealizePaymentAmount?: number | null;
|
|
74
74
|
paymentHistoryStatus?: PaymentHistoryStatus;
|
|
75
75
|
isDNC: boolean;
|
|
76
|
-
|
|
76
|
+
allocationTypeId: number;
|
|
77
77
|
}
|
|
78
78
|
export interface ILoanMapingUser extends ILoans {
|
|
79
79
|
loanUsers?: ILoanUsers[];
|
|
@@ -46,6 +46,7 @@ export interface CommunicationSummaryFilters extends IListPayload {
|
|
|
46
46
|
clientIds?: string;
|
|
47
47
|
userIds?: string;
|
|
48
48
|
responseType?: string;
|
|
49
|
+
allocationTypeId?: string;
|
|
49
50
|
}
|
|
50
51
|
export interface ICommunicationDashboardLoansActionsFilters {
|
|
51
52
|
communicationType: communicationType.WHATSAPP | communicationType.SMS | communicationType.IVR;
|
|
@@ -60,10 +61,12 @@ export interface ICommunicationDashboardLoansActionsFilters {
|
|
|
60
61
|
status?: 'SCHEDULED' | 'QUEUED' | 'SENT' | 'PROCESSING' | 'DELIVERED' | 'FAILED' | 'SEEN' | 'READED' | 'RESPONSED' | 'DELIVRD' | 'REJECTD' | 'UNDELIV' | 'CALLED' | 'REJECTED';
|
|
61
62
|
excludeIds?: number[];
|
|
62
63
|
includeIds?: number[];
|
|
64
|
+
allocationTypeId?: string;
|
|
63
65
|
}
|
|
64
66
|
export interface ICommunicationDashboardLoansActions {
|
|
65
67
|
filters: ICommunicationDashboardLoansActionsFilters;
|
|
66
68
|
allSelected: boolean;
|
|
69
|
+
setAllocationTypeId?: number;
|
|
67
70
|
}
|
|
68
71
|
interface IMessage {
|
|
69
72
|
content: {
|
|
@@ -52,6 +52,7 @@ export interface CommunicationSummaryFilters extends IListPayload {
|
|
|
52
52
|
clientIds?: string;
|
|
53
53
|
userIds?: string;
|
|
54
54
|
responseType?: string;
|
|
55
|
+
allocationTypeId?: string;
|
|
55
56
|
}
|
|
56
57
|
export interface ICommunicationDashboardLoansActionsFilters {
|
|
57
58
|
communicationType:
|
|
@@ -83,11 +84,13 @@ export interface ICommunicationDashboardLoansActionsFilters {
|
|
|
83
84
|
| 'REJECTED';
|
|
84
85
|
excludeIds?: number[];
|
|
85
86
|
includeIds?: number[];
|
|
87
|
+
allocationTypeId?: string;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
export interface ICommunicationDashboardLoansActions {
|
|
89
91
|
filters: ICommunicationDashboardLoansActionsFilters;
|
|
90
92
|
allSelected: boolean;
|
|
93
|
+
setAllocationTypeId?: number;
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
interface IMessage {
|
|
@@ -117,13 +120,13 @@ export interface IWablyMessagesPayload {
|
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
export interface wablyWhatsAppSendRes {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
success: boolean;
|
|
124
|
+
status: number;
|
|
125
|
+
result: {
|
|
126
|
+
status: string;
|
|
127
|
+
recipient: string;
|
|
128
|
+
messageId: string;
|
|
129
|
+
};
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
interface wablyWhatsAppTemplateCategory {
|