@cleardu/types 1.0.43 → 1.0.44
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 +37 -1
- package/constants/brokerMessages/index.js +37 -1
- package/constants/brokerMessages/index.ts +38 -1
- package/constants/index.d.ts +5 -1
- package/constants/index.js +5 -1
- package/constants/index.ts +12 -2
- package/interfaces/baseObject/index.d.ts +1 -1
- package/interfaces/baseObject/index.ts +1 -1
- package/interfaces/borrowers/index.d.ts +1 -0
- package/interfaces/borrowers/index.ts +1 -0
- package/interfaces/index.d.ts +1 -0
- package/interfaces/index.js +1 -0
- package/interfaces/index.ts +1 -1
- package/interfaces/jobs/index.d.ts +2 -2
- package/interfaces/jobs/index.ts +2 -8
- package/interfaces/loans/index.d.ts +2 -0
- package/interfaces/loans/index.ts +2 -0
- package/interfaces/paymentAccounts/index.d.ts +17 -1
- package/interfaces/paymentAccounts/index.ts +19 -1
- package/interfaces/paymentLinks/index.d.ts +9 -0
- package/interfaces/paymentLinks/index.js +2 -0
- package/interfaces/paymentLinks/index.ts +10 -0
- package/interfaces/payments/index.d.ts +80 -27
- package/interfaces/payments/index.ts +85 -26
- package/interfaces/portfolios/index.d.ts +5 -1
- package/interfaces/portfolios/index.ts +5 -1
- package/interfaces/reassignment/index.d.ts +0 -1
- package/interfaces/reassignment/index.ts +0 -1
- package/interfaces/users/index.d.ts +9 -2
- package/interfaces/users/index.ts +10 -3
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { DatabaseObject } from '../baseObject';
|
|
2
1
|
import { IJob } from '../jobs';
|
|
3
2
|
|
|
4
|
-
export interface IPayments
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
export interface IPayments {
|
|
4
|
+
id?: number;
|
|
5
|
+
uId?: string;
|
|
6
|
+
source: string;
|
|
7
|
+
loanId: number;
|
|
8
|
+
paymentLinkId?: number;
|
|
9
|
+
paymentAccountId?: number;
|
|
11
10
|
amount: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
note?: string;
|
|
11
|
+
status: string;
|
|
12
|
+
fileId?: number;
|
|
13
|
+
transactionId?: string;
|
|
14
|
+
extraInfo?: JSON;
|
|
15
|
+
paymentDate?: Date;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
clientName: string;
|
|
23
|
-
loanNumber: string;
|
|
18
|
+
export interface IPaymentUpdatePaymentRes {
|
|
19
|
+
status: string;
|
|
24
20
|
transactionId: string;
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
extraInfo: JSON;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IPaymentCorrectCSVData {
|
|
25
|
+
source: string;
|
|
26
|
+
loanNumber: string;
|
|
27
|
+
paymentLinkId?: number;
|
|
28
|
+
paymentAccountId?: number;
|
|
27
29
|
amount: number;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
note?: string;
|
|
30
|
+
status: string;
|
|
31
|
+
fileId?: number;
|
|
32
|
+
transactionId?: string;
|
|
33
|
+
extraInfo?: JSON;
|
|
34
|
+
paymentDate?: Date;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export interface IIncorrectPaymentCSVData extends IPaymentCorrectCSVData {
|
|
@@ -44,3 +45,61 @@ export interface IPaymentValidRecordsParams {
|
|
|
44
45
|
currentJob: IJob;
|
|
45
46
|
clientId: number;
|
|
46
47
|
}
|
|
48
|
+
|
|
49
|
+
export interface IPaymentAccountConfig {
|
|
50
|
+
merchantId: string;
|
|
51
|
+
accessKey: string;
|
|
52
|
+
secretKey: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface IEnkashInitPayment {
|
|
56
|
+
orderId: string;
|
|
57
|
+
amount: {
|
|
58
|
+
value: number;
|
|
59
|
+
currency: string;
|
|
60
|
+
};
|
|
61
|
+
returnUrl?: string;
|
|
62
|
+
notifyUrl?: string;
|
|
63
|
+
customerInfo?: {
|
|
64
|
+
firstName?: string;
|
|
65
|
+
lastName?: string;
|
|
66
|
+
address?: {
|
|
67
|
+
streetName?: string;
|
|
68
|
+
city?: string;
|
|
69
|
+
state?: string;
|
|
70
|
+
country?: string;
|
|
71
|
+
zipcode?: string;
|
|
72
|
+
};
|
|
73
|
+
email?: string;
|
|
74
|
+
phoneNumber?: string;
|
|
75
|
+
};
|
|
76
|
+
customParameters?: {
|
|
77
|
+
property1?: string;
|
|
78
|
+
property2?: string;
|
|
79
|
+
};
|
|
80
|
+
description?: string;
|
|
81
|
+
paymentDetail?: {
|
|
82
|
+
accountNumber?: string;
|
|
83
|
+
ifsc?: string;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface IEnkashInitPaymentResPayload {
|
|
88
|
+
payload: {
|
|
89
|
+
redirectionUrl: string;
|
|
90
|
+
orderId: string;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface IEnkashInitPaymentResponse {
|
|
95
|
+
response_code: number;
|
|
96
|
+
response_message: string;
|
|
97
|
+
payload: IEnkashInitPaymentResPayload;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface IEnkashAuthResponse {
|
|
101
|
+
token: string;
|
|
102
|
+
expiry: number;
|
|
103
|
+
resultCode: number;
|
|
104
|
+
resultMessage: string;
|
|
105
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
import { IClients } from '../clients';
|
|
2
3
|
import { IPortfoliosTarget } from '../portfoliosTarget';
|
|
4
|
+
import { IUser } from '../users';
|
|
3
5
|
export interface IPortfolios extends DatabaseObject {
|
|
4
6
|
name: string;
|
|
5
7
|
clientId: number;
|
|
@@ -11,5 +13,7 @@ export interface IPortfolios extends DatabaseObject {
|
|
|
11
13
|
maxWavier: number;
|
|
12
14
|
colorCode?: string;
|
|
13
15
|
isActive: boolean;
|
|
14
|
-
|
|
16
|
+
owner?: IUser;
|
|
17
|
+
portfolioClient?: IClients;
|
|
18
|
+
targets?: IPortfoliosTarget[];
|
|
15
19
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
import { IClients } from '../clients';
|
|
2
3
|
import { IPortfoliosTarget } from '../portfoliosTarget';
|
|
4
|
+
import { IUser } from '../users';
|
|
3
5
|
|
|
4
6
|
export interface IPortfolios extends DatabaseObject {
|
|
5
7
|
name: string;
|
|
@@ -12,5 +14,7 @@ export interface IPortfolios extends DatabaseObject {
|
|
|
12
14
|
maxWavier: number;
|
|
13
15
|
colorCode?: string;
|
|
14
16
|
isActive: boolean;
|
|
15
|
-
|
|
17
|
+
owner?:IUser;
|
|
18
|
+
portfolioClient?:IClients
|
|
19
|
+
targets?: IPortfoliosTarget[];
|
|
16
20
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserTypeEnum } from '../../constants';
|
|
2
2
|
import { DatabaseObject } from '../baseObject';
|
|
3
|
+
import { IRole } from '../role';
|
|
3
4
|
import { IUserTask } from '../userTasks';
|
|
4
5
|
export interface IUser extends DatabaseObject {
|
|
5
6
|
firstName: string;
|
|
@@ -8,8 +9,8 @@ export interface IUser extends DatabaseObject {
|
|
|
8
9
|
password: string;
|
|
9
10
|
isActive: boolean;
|
|
10
11
|
mobile: string;
|
|
11
|
-
dob?: Date;
|
|
12
|
-
doj?: Date;
|
|
12
|
+
dob?: Date | string;
|
|
13
|
+
doj?: Date | string;
|
|
13
14
|
landMark?: string;
|
|
14
15
|
cityId: number;
|
|
15
16
|
stateId: number;
|
|
@@ -26,6 +27,7 @@ export interface IUser extends DatabaseObject {
|
|
|
26
27
|
centerId?: number;
|
|
27
28
|
signatureKey?: string | null;
|
|
28
29
|
fileName?: string | null;
|
|
30
|
+
role?: IRole;
|
|
29
31
|
tasks?: IUserTask[];
|
|
30
32
|
}
|
|
31
33
|
export interface ILoginUser {
|
|
@@ -63,3 +65,8 @@ export interface ICurrentUser {
|
|
|
63
65
|
dialerUserUuid?: string;
|
|
64
66
|
dialerId?: number;
|
|
65
67
|
}
|
|
68
|
+
export interface ICampaignUserMap {
|
|
69
|
+
userId: string[];
|
|
70
|
+
add: boolean;
|
|
71
|
+
campaignId?: string;
|
|
72
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserTypeEnum } from '../../constants';
|
|
2
2
|
import { DatabaseObject } from '../baseObject';
|
|
3
|
+
import { IRole } from '../role';
|
|
3
4
|
import { IUserTask } from '../userTasks';
|
|
4
5
|
|
|
5
6
|
export interface IUser extends DatabaseObject {
|
|
@@ -12,8 +13,8 @@ export interface IUser extends DatabaseObject {
|
|
|
12
13
|
|
|
13
14
|
// contact detail
|
|
14
15
|
mobile: string;
|
|
15
|
-
dob?: Date;
|
|
16
|
-
doj?: Date;
|
|
16
|
+
dob?: Date | string;
|
|
17
|
+
doj?: Date | string;
|
|
17
18
|
landMark?: string;
|
|
18
19
|
cityId: number;
|
|
19
20
|
stateId: number;
|
|
@@ -33,7 +34,7 @@ export interface IUser extends DatabaseObject {
|
|
|
33
34
|
// document detail
|
|
34
35
|
signatureKey?: string | null;
|
|
35
36
|
fileName?: string | null;
|
|
36
|
-
|
|
37
|
+
role?: IRole;
|
|
37
38
|
tasks?: IUserTask[];
|
|
38
39
|
}
|
|
39
40
|
|
|
@@ -74,3 +75,9 @@ export interface ICurrentUser {
|
|
|
74
75
|
dialerUserUuid?: string;
|
|
75
76
|
dialerId?: number;
|
|
76
77
|
}
|
|
78
|
+
|
|
79
|
+
export interface ICampaignUserMap {
|
|
80
|
+
userId: string[];
|
|
81
|
+
add: boolean;
|
|
82
|
+
campaignId?: string;
|
|
83
|
+
}
|