@cleardu/types 1.0.91 → 1.0.94
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 +6 -0
- package/constants/brokerMessages/index.js +8 -2
- package/constants/brokerMessages/index.ts +8 -2
- package/constants/index.d.ts +2 -1
- package/constants/index.js +35 -34
- package/constants/index.ts +119 -118
- package/interfaces/loans/index.d.ts +45 -0
- package/interfaces/loans/index.ts +49 -0
- package/interfaces/loansActivityHistory/index.d.ts +10 -0
- package/interfaces/loansActivityHistory/index.js +2 -0
- package/interfaces/loansActivityHistory/index.ts +11 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DatabaseObject } from '../baseObject';
|
|
2
2
|
import { IBorrowers } from '../borrowers';
|
|
3
|
+
import { IClients } from '../clients';
|
|
4
|
+
import { IPortfolios } from '../portfolios';
|
|
5
|
+
import { ITags } from '../tags';
|
|
3
6
|
export interface ILoans extends DatabaseObject {
|
|
4
7
|
borrowerId?: number;
|
|
5
8
|
isActive?: boolean;
|
|
@@ -57,6 +60,30 @@ export interface ILoans extends DatabaseObject {
|
|
|
57
60
|
campaignId?: number;
|
|
58
61
|
loanBorrower?: IBorrowers;
|
|
59
62
|
portfolioId: number;
|
|
63
|
+
loanTags?: ITags[];
|
|
64
|
+
client?: IClients;
|
|
65
|
+
loanPortfolio?: IPortfolios;
|
|
66
|
+
}
|
|
67
|
+
export interface ILoanMapingUser extends ILoans {
|
|
68
|
+
loanUsers?: ILoanUsers[];
|
|
69
|
+
}
|
|
70
|
+
export interface ILoanUsers {
|
|
71
|
+
id: number;
|
|
72
|
+
uId: string;
|
|
73
|
+
userId: number;
|
|
74
|
+
mappingUser?: MappingUser;
|
|
75
|
+
mappingCampaign?: MappingCampaign;
|
|
76
|
+
}
|
|
77
|
+
export interface MappingUser {
|
|
78
|
+
id: number;
|
|
79
|
+
uId: string;
|
|
80
|
+
firstName: string;
|
|
81
|
+
lastName: string;
|
|
82
|
+
}
|
|
83
|
+
export interface MappingCampaign {
|
|
84
|
+
id: string;
|
|
85
|
+
uId: string;
|
|
86
|
+
name: string;
|
|
60
87
|
}
|
|
61
88
|
export interface Changes {
|
|
62
89
|
borrowerChanges?: {
|
|
@@ -83,3 +110,21 @@ export interface DialerData {
|
|
|
83
110
|
uId: string;
|
|
84
111
|
agentId?: string;
|
|
85
112
|
}
|
|
113
|
+
export interface ILoanActivityHistoryPayload {
|
|
114
|
+
loanId: number;
|
|
115
|
+
fromDate?: string;
|
|
116
|
+
toDate?: string;
|
|
117
|
+
page: number;
|
|
118
|
+
size: number;
|
|
119
|
+
q: string;
|
|
120
|
+
}
|
|
121
|
+
export interface IActivityHistory {
|
|
122
|
+
loanId: number;
|
|
123
|
+
clientBorrowerId: string;
|
|
124
|
+
action: string;
|
|
125
|
+
status: string;
|
|
126
|
+
disposition: string;
|
|
127
|
+
type: string;
|
|
128
|
+
referenceId: number;
|
|
129
|
+
createdBy: number;
|
|
130
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DatabaseObject } from '../baseObject';
|
|
2
2
|
import { IBorrowers } from '../borrowers';
|
|
3
|
+
import { IClients } from '../clients';
|
|
4
|
+
import { IPortfolios } from '../portfolios';
|
|
5
|
+
import { ITags } from '../tags';
|
|
3
6
|
|
|
4
7
|
export interface ILoans extends DatabaseObject {
|
|
5
8
|
borrowerId?: number;
|
|
@@ -58,6 +61,33 @@ export interface ILoans extends DatabaseObject {
|
|
|
58
61
|
campaignId?: number;
|
|
59
62
|
loanBorrower?: IBorrowers;
|
|
60
63
|
portfolioId: number;
|
|
64
|
+
loanTags?: ITags[];
|
|
65
|
+
client?: IClients;
|
|
66
|
+
loanPortfolio?: IPortfolios;
|
|
67
|
+
}
|
|
68
|
+
export interface ILoanMapingUser extends ILoans {
|
|
69
|
+
loanUsers?: ILoanUsers[];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface ILoanUsers {
|
|
73
|
+
id: number;
|
|
74
|
+
uId: string;
|
|
75
|
+
userId: number;
|
|
76
|
+
mappingUser?: MappingUser;
|
|
77
|
+
mappingCampaign?: MappingCampaign;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface MappingUser {
|
|
81
|
+
id: number;
|
|
82
|
+
uId: string;
|
|
83
|
+
firstName: string;
|
|
84
|
+
lastName: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface MappingCampaign {
|
|
88
|
+
id: string;
|
|
89
|
+
uId: string;
|
|
90
|
+
name: string;
|
|
61
91
|
}
|
|
62
92
|
|
|
63
93
|
export interface Changes {
|
|
@@ -87,3 +117,22 @@ export interface DialerData {
|
|
|
87
117
|
uId: string;
|
|
88
118
|
agentId?: string; // Optional field, only added for 'Progressive' campaigns
|
|
89
119
|
}
|
|
120
|
+
|
|
121
|
+
export interface ILoanActivityHistoryPayload {
|
|
122
|
+
loanId: number;
|
|
123
|
+
fromDate?: string;
|
|
124
|
+
toDate?: string;
|
|
125
|
+
page: number;
|
|
126
|
+
size: number;
|
|
127
|
+
q: string;
|
|
128
|
+
}
|
|
129
|
+
export interface IActivityHistory {
|
|
130
|
+
loanId: number;
|
|
131
|
+
clientBorrowerId: string;
|
|
132
|
+
action: string;
|
|
133
|
+
status: string;
|
|
134
|
+
disposition: string;
|
|
135
|
+
type: string;
|
|
136
|
+
referenceId: number;
|
|
137
|
+
createdBy: number;
|
|
138
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
export interface ILoansActivityHistory extends DatabaseObject {
|
|
3
|
+
loanId: number;
|
|
4
|
+
clientBorrowerId: string;
|
|
5
|
+
action: string;
|
|
6
|
+
status: string;
|
|
7
|
+
disposition: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
referenceId: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
|
|
3
|
+
export interface ILoansActivityHistory extends DatabaseObject {
|
|
4
|
+
loanId: number;
|
|
5
|
+
clientBorrowerId: string;
|
|
6
|
+
action: string;
|
|
7
|
+
status: string;
|
|
8
|
+
disposition: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
referenceId: number;
|
|
11
|
+
}
|