@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.
@@ -1,36 +1,37 @@
1
- import { DatabaseObject } from '../baseObject';
2
1
  import { IJob } from '../jobs';
3
2
 
4
- export interface IPayments extends DatabaseObject {
5
- borrowerId: number;
6
- clientName?: string;
7
- loanNumber: string;
8
- transactionId?: string;
9
- phone?: string;
10
- email?: string;
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
- paymentDate: Date;
13
- paymentSource?: string;
14
- paymentType?: string;
15
- paymentStatus?: string;
16
- status?: string;
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 IPaymentCorrectCSVData extends DatabaseObject {
21
- borrowerId: number;
22
- clientName: string;
23
- loanNumber: string;
18
+ export interface IPaymentUpdatePaymentRes {
19
+ status: string;
24
20
  transactionId: string;
25
- phone?: string;
26
- email?: string;
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
- paymentDate: Date;
29
- paymentSource?: string;
30
- paymentType?: string;
31
- paymentStatus?: string;
32
- status?: string;
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
- portfolioTargets?: IPortfoliosTarget[];
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
- portfolioTargets?: IPortfoliosTarget[];
17
+ owner?:IUser;
18
+ portfolioClient?:IClients
19
+ targets?: IPortfoliosTarget[];
16
20
  }
@@ -10,7 +10,6 @@ export interface IReassignmentCorrectCSVData extends DatabaseObject {
10
10
  amount: number;
11
11
  paymentDate: Date;
12
12
  paymentSource?: string;
13
- paymentType?: string;
14
13
  paymentStatus?: string;
15
14
  status?: string;
16
15
  note?: string;
@@ -11,7 +11,6 @@ export interface IReassignmentCorrectCSVData extends DatabaseObject {
11
11
  amount: number;
12
12
  paymentDate: Date;
13
13
  paymentSource?: string;
14
- paymentType?: string;
15
14
  paymentStatus?: string;
16
15
  status?: string;
17
16
  note?: string;
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleardu/types",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@aws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",