@stashfin/mysql2 1.4.215 → 1.4.217
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/models/CholaEvents.d.ts +13 -0
- package/models/CholaEvents.js +2 -0
- package/models/Colender.d.ts +18 -0
- package/models/Colender.js +2 -0
- package/models/Customer.d.ts +2 -0
- package/models/CustomerBanksModel.d.ts +17 -0
- package/models/CustomerBanksModel.js +2 -0
- package/models/clCustomer.d.ts +9 -13
- package/models/clDocuments.d.ts +19 -0
- package/models/clDocuments.js +2 -0
- package/models/clInstallment.d.ts +28 -29
- package/models/clLoans.d.ts +24 -24
- package/models/clPayments.d.ts +14 -0
- package/models/clPayments.js +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface cholaEventsTable {
|
|
3
|
+
id: string;
|
|
4
|
+
customer_id: number;
|
|
5
|
+
loan_id: number | null;
|
|
6
|
+
colender_id: number;
|
|
7
|
+
event_name?: string | null;
|
|
8
|
+
reference_id?: string | null;
|
|
9
|
+
message?: string | null;
|
|
10
|
+
status?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface cholaEventsModel extends cholaEventsTable, RowDataPacket {
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface ColenderTable {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
xirr: number;
|
|
6
|
+
lender_share: number;
|
|
7
|
+
website?: string | null;
|
|
8
|
+
full_name: string;
|
|
9
|
+
officers?: Record<string, any> | null;
|
|
10
|
+
risk_premium?: number | null;
|
|
11
|
+
priority?: number | null;
|
|
12
|
+
polices?: Record<string, any> | null;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
|
+
is_active?: 'active' | 'deactive' | null;
|
|
16
|
+
}
|
|
17
|
+
export interface ColenderModel extends ColenderTable, RowDataPacket {
|
|
18
|
+
}
|
package/models/Customer.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export interface CustomerTable {
|
|
|
48
48
|
enach_amount?: number | null;
|
|
49
49
|
max_loc_limit?: number | null;
|
|
50
50
|
sanction_amount?: number | null;
|
|
51
|
+
new_sanctioned_limit?: number | null;
|
|
51
52
|
lead_status?: string | null;
|
|
52
53
|
/** Defaults to: active. */
|
|
53
54
|
status?: 'active' | 'inactive' | null;
|
|
@@ -110,6 +111,7 @@ export interface DemographicsTable {
|
|
|
110
111
|
created_at?: Date | null;
|
|
111
112
|
updated_at?: Date | null;
|
|
112
113
|
nsdl_dob_matched?: number | null;
|
|
114
|
+
lamf_amount?: number | null;
|
|
113
115
|
okyc_dob?: string | null;
|
|
114
116
|
dob_attempts?: number | null;
|
|
115
117
|
cli_enabled?: number | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface BankAccountTable {
|
|
3
|
+
id: number;
|
|
4
|
+
customer_id: bigint;
|
|
5
|
+
bank_name?: string | null;
|
|
6
|
+
ifsc_code?: string | null;
|
|
7
|
+
account_number: string;
|
|
8
|
+
holder_name?: string | null;
|
|
9
|
+
source?: string | null;
|
|
10
|
+
address?: string | null;
|
|
11
|
+
status?: 'active' | 'inactive' | null;
|
|
12
|
+
is_primary?: boolean;
|
|
13
|
+
created_at?: Date;
|
|
14
|
+
updated_at?: Date;
|
|
15
|
+
}
|
|
16
|
+
export interface BankAccountModel extends BankAccountTable, RowDataPacket {
|
|
17
|
+
}
|
package/models/clCustomer.d.ts
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { RowDataPacket } from 'mysql2';
|
|
2
2
|
export interface clCustomersTable {
|
|
3
|
+
id?: number;
|
|
3
4
|
customer_id: number;
|
|
4
|
-
line_expiry_date: any;
|
|
5
|
-
revised_salary: number;
|
|
6
|
-
external_customer_id: string | number;
|
|
7
|
-
status: string;
|
|
8
|
-
approved_limit: number;
|
|
9
|
-
metadata: any;
|
|
10
|
-
is_active: string;
|
|
11
|
-
loan_id: number;
|
|
12
|
-
organisationId: string | number;
|
|
13
|
-
requestId: string | number;
|
|
14
5
|
colender_id: number;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
external_customer_id?: string;
|
|
7
|
+
status: 'akara_rejected' | 'akara_approved' | 'colender_failed' | 'colender_rejected' | 'colender_pending' | 'approved';
|
|
8
|
+
approved_limit?: number;
|
|
9
|
+
metadata?: Record<string, any>;
|
|
10
|
+
line_expiry_date?: Date;
|
|
11
|
+
is_active?: 'yes' | 'no';
|
|
12
|
+
created_at?: Date;
|
|
13
|
+
updated_at?: Date;
|
|
18
14
|
}
|
|
19
15
|
export interface clCustomerModel extends clCustomersTable, RowDataPacket {
|
|
20
16
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface clDocumentsTable {
|
|
3
|
+
id?: bigint;
|
|
4
|
+
customer_id: number;
|
|
5
|
+
loan_id?: number | null;
|
|
6
|
+
colender_id: number;
|
|
7
|
+
doc_name: string;
|
|
8
|
+
doc_path?: string;
|
|
9
|
+
doc_password?: string;
|
|
10
|
+
is_sent?: 'yes' | 'no' | 'failed';
|
|
11
|
+
doc_type?: string;
|
|
12
|
+
doc_number?: string;
|
|
13
|
+
sent_date?: Date;
|
|
14
|
+
refrence_id?: string;
|
|
15
|
+
created_at?: Date;
|
|
16
|
+
updated_at?: Date;
|
|
17
|
+
}
|
|
18
|
+
export interface clDocumentsModel extends clDocumentsTable, RowDataPacket {
|
|
19
|
+
}
|
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { RowDataPacket } from 'mysql2';
|
|
2
|
-
export interface ClInstallmentsTable
|
|
3
|
-
id:
|
|
4
|
-
customer_id:
|
|
5
|
-
loan_id:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
[key: string]: string | number | undefined | object | boolean | Date | null;
|
|
2
|
+
export interface ClInstallmentsTable {
|
|
3
|
+
id: bigint;
|
|
4
|
+
customer_id: bigint | null;
|
|
5
|
+
loan_id: bigint | null;
|
|
6
|
+
colender_id?: number | null;
|
|
7
|
+
seq_no: number | null;
|
|
8
|
+
amount: number | null;
|
|
9
|
+
principal: number | null;
|
|
10
|
+
interest: number | null;
|
|
11
|
+
penalty?: number | null;
|
|
12
|
+
r_principal?: number | null;
|
|
13
|
+
r_interest?: number | null;
|
|
14
|
+
r_penalty?: number | null;
|
|
15
|
+
r_pif_principal?: number | null;
|
|
16
|
+
r_pif_interest?: number | null;
|
|
17
|
+
r_pif_penalty?: number | null;
|
|
18
|
+
status?: 'active' | 'closed' | 'delayed' | 'paid' | 'future' | 'foreclosed' | null;
|
|
19
|
+
dpd?: number | null;
|
|
20
|
+
due_date: Date | string;
|
|
21
|
+
discount?: number | null;
|
|
22
|
+
starting_balance?: number | null;
|
|
23
|
+
ending_balance?: number | null;
|
|
24
|
+
metadata?: Record<string, any> | null;
|
|
25
|
+
closed_at?: Date | null;
|
|
26
|
+
created_at?: Date | null;
|
|
27
|
+
updated_at?: Date | null;
|
|
28
|
+
is_active?: boolean;
|
|
29
|
+
is_deleted?: boolean;
|
|
31
30
|
}
|
|
32
31
|
export interface clInstallmentsModel extends ClInstallmentsTable, RowDataPacket {
|
|
33
32
|
}
|
package/models/clLoans.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { RowDataPacket } from 'mysql2';
|
|
2
2
|
export interface clLoanTable {
|
|
3
|
-
id
|
|
4
|
-
co_lender_id
|
|
5
|
-
colender_loan_id
|
|
6
|
-
loan_id:
|
|
7
|
-
customer_id
|
|
8
|
-
cl_approved_amount
|
|
9
|
-
|
|
10
|
-
tenure
|
|
11
|
-
roi
|
|
12
|
-
processing_fee
|
|
13
|
-
cl_upfront_charges
|
|
14
|
-
|
|
15
|
-
cl_disbursed_amount
|
|
16
|
-
akara_disbursed_amount
|
|
17
|
-
contribution
|
|
18
|
-
status
|
|
19
|
-
disbursal_utr
|
|
20
|
-
cl_spdc
|
|
21
|
-
akara_spdc
|
|
22
|
-
cl_disbursed_date
|
|
23
|
-
cl_disbursed_amount_gst
|
|
24
|
-
metadata
|
|
25
|
-
created_at
|
|
26
|
-
updated_at
|
|
3
|
+
id?: number;
|
|
4
|
+
co_lender_id?: number | null;
|
|
5
|
+
colender_loan_id?: string | null;
|
|
6
|
+
loan_id: number;
|
|
7
|
+
customer_id?: number | null;
|
|
8
|
+
cl_approved_amount?: number | null;
|
|
9
|
+
akara_approved_amount?: number | null;
|
|
10
|
+
tenure?: number | null;
|
|
11
|
+
roi?: number | null;
|
|
12
|
+
processing_fee?: number | null;
|
|
13
|
+
cl_upfront_charges?: number | null;
|
|
14
|
+
akara_upfront_charges?: number | null;
|
|
15
|
+
cl_disbursed_amount?: number | null;
|
|
16
|
+
akara_disbursed_amount?: number | null;
|
|
17
|
+
contribution?: number | null;
|
|
18
|
+
status?: 'initiated' | 'in_progress' | 'disbursed' | 'rejected' | null;
|
|
19
|
+
disbursal_utr?: string | null;
|
|
20
|
+
cl_spdc?: number | null;
|
|
21
|
+
akara_spdc?: number | null;
|
|
22
|
+
cl_disbursed_date?: Date | null;
|
|
23
|
+
cl_disbursed_amount_gst?: number | null;
|
|
24
|
+
metadata?: Record<string, any> | null;
|
|
25
|
+
created_at?: Date | null;
|
|
26
|
+
updated_at?: Date | null;
|
|
27
27
|
}
|
|
28
28
|
export interface clLoansModel extends clLoanTable, RowDataPacket {
|
|
29
29
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface clPaymentsTable {
|
|
3
|
+
id?: number;
|
|
4
|
+
customer_id: bigint;
|
|
5
|
+
loan_id: bigint;
|
|
6
|
+
seq_no?: number;
|
|
7
|
+
payment_mode?: string;
|
|
8
|
+
colender_payment_id?: string;
|
|
9
|
+
metadata?: object;
|
|
10
|
+
created_at?: Date;
|
|
11
|
+
updated_at?: Date;
|
|
12
|
+
}
|
|
13
|
+
export interface clPaymentsModel extends clPaymentsTable, RowDataPacket {
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stashfin/mysql2",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.217",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"author": "Yogesh Randive",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@stashfin/mysql2": "^1.4.215",
|
|
18
19
|
"mysql2": "^3.9.9"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|