@stashfin/mysql2 1.4.259 → 1.4.261

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.
@@ -0,0 +1,43 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export interface CoApplicantDataTable {
3
+ id?: bigint;
4
+ customer_id: number;
5
+ co_applicant_name: string | null;
6
+ relationship?: string | null;
7
+ house_flat_no?: string | null;
8
+ address_line_1?: string | null;
9
+ address_line_2?: string | null;
10
+ address?: string | null;
11
+ landmark?: string | null;
12
+ state_id?: number | null;
13
+ city_id?: number | null;
14
+ pin?: number | null;
15
+ current_house_flat_no?: string | null;
16
+ current_address_line_1?: string | null;
17
+ current_address_line_2?: string | null;
18
+ current_address?: string | null;
19
+ current_landmark?: string | null;
20
+ current_state_id?: number | null;
21
+ current_city_id?: number | null;
22
+ current_pin?: number | null;
23
+ alternate_contact_number?: string | null;
24
+ father_name?: string | null;
25
+ company_name?: string | null;
26
+ aadhar?: string | null;
27
+ mobile_verified?: 'yes' | 'no' | null;
28
+ email_verified?: 'yes' | 'no' | null;
29
+ status?: string | null;
30
+ avg_salary?: number | null;
31
+ aadhar_name?: string | null;
32
+ latitude?: string | null;
33
+ longitude?: string | null;
34
+ marital_status?: 'single' | 'married' | 'divorced' | 'widowed' | null;
35
+ salary_date?: Date | null;
36
+ phone_matched?: 'yes' | 'no' | null;
37
+ dob_matched?: 'yes' | 'no' | null;
38
+ nsdl_dob_matched?: 'yes' | 'no' | null;
39
+ created_at?: Date | null;
40
+ updated_at?: Date | null;
41
+ }
42
+ export interface CoApplicantDataModel extends CoApplicantDataTable, RowDataPacket {
43
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,43 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export interface GuarantorTable {
3
+ id?: bigint;
4
+ customer_id: number;
5
+ co_applicant_name: string | null;
6
+ relationship?: string | null;
7
+ house_flat_no?: string | null;
8
+ address_line_1?: string | null;
9
+ address_line_2?: string | null;
10
+ address?: string | null;
11
+ landmark?: string | null;
12
+ state_id?: number | null;
13
+ city_id?: number | null;
14
+ pin?: number | null;
15
+ current_house_flat_no?: string | null;
16
+ current_address_line_1?: string | null;
17
+ current_address_line_2?: string | null;
18
+ current_address?: string | null;
19
+ current_landmark?: string | null;
20
+ current_state_id?: number | null;
21
+ current_city_id?: number | null;
22
+ current_pin?: number | null;
23
+ alternate_contact_number?: string | null;
24
+ father_name?: string | null;
25
+ company_name?: string | null;
26
+ aadhar?: string | null;
27
+ mobile_verified?: 'yes' | 'no' | null;
28
+ email_verified?: 'yes' | 'no' | null;
29
+ status?: string | null;
30
+ avg_salary?: number | null;
31
+ aadhar_name?: string | null;
32
+ latitude?: string | null;
33
+ longitude?: string | null;
34
+ marital_status?: 'single' | 'married' | 'divorced' | 'widowed' | null;
35
+ salary_date?: Date | null;
36
+ phone_matched?: 'yes' | 'no' | null;
37
+ dob_matched?: 'yes' | 'no' | null;
38
+ nsdl_dob_matched?: 'yes' | 'no' | null;
39
+ created_at?: Date | null;
40
+ updated_at?: Date | null;
41
+ }
42
+ export interface GuarantorModel extends GuarantorTable, RowDataPacket {
43
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface PartnerDocumentsTable {
3
+ id?: number;
4
+ akara_lead_id?: number | null;
5
+ akara_loan_id?: number | null;
6
+ partner_lead_id?: number | null;
7
+ partner_loan_id?: number | null;
8
+ doc_type?: string | null;
9
+ doc_path?: string | null;
10
+ doc_password?: string | null;
11
+ is_received?: 'yes' | 'no' | 'failed' | null;
12
+ received_date?: Date | null;
13
+ is_verified?: 'yes' | 'no' | 'failed' | null;
14
+ request?: Record<string, any> | null;
15
+ response?: Record<string, any> | null;
16
+ reference_id?: string | null;
17
+ created_at?: Date;
18
+ updated_at?: Date | null;
19
+ }
20
+ export interface PartnerDocumentsModel extends PartnerDocumentsTable, RowDataPacket {
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,41 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface PartnerLoansTable {
3
+ id?: number;
4
+ customer_id: number;
5
+ loan_id?: number;
6
+ partner_name?: string;
7
+ partner_code?: string;
8
+ product_code?: 'PL' | 'LAMF' | 'EV';
9
+ downpayment_amount?: number;
10
+ installment_amount?: number;
11
+ loan_status?: number;
12
+ lead_status?: number;
13
+ status?: string;
14
+ loan_creation_date?: Date;
15
+ loan_approval_date?: Date;
16
+ loan_disbursal_date?: Date;
17
+ loan_closure_date?: Date;
18
+ loan_amount?: number;
19
+ approved_amount?: number;
20
+ approved_tenure?: string;
21
+ approved_rate?: number;
22
+ approved_disbursal_date?: Date;
23
+ approved_emi_start_date?: Date;
24
+ rate_per_day?: number;
25
+ disbursal_amount?: number;
26
+ disbursal_mode?: number;
27
+ processing_fees?: number;
28
+ other_fees?: number;
29
+ other_calculate_gst?: number;
30
+ spdc_amount?: number;
31
+ loan_tenure?: number;
32
+ loan_rate?: number;
33
+ create_date?: Date;
34
+ update_date?: Date;
35
+ upfront?: number;
36
+ closing_date?: Date;
37
+ advance_emi_total?: number;
38
+ advance_emi_tenure?: number;
39
+ }
40
+ export interface PartnerLoansModel extends PartnerLoansTable, RowDataPacket {
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,7 @@ export interface PartnerTable {
11
11
  skip_bre?: number;
12
12
  run_account_aggregator?: number;
13
13
  active?: number;
14
+ pan_validation: "yes" | "no";
14
15
  will_support_automated_disbursal?: number;
15
16
  perform_internal_checks: number;
16
17
  min_amount: number;
@@ -7,7 +7,19 @@ export interface PartnerCustomerTable {
7
7
  partner_lead_status?: number;
8
8
  utm_source: string;
9
9
  partner_loan_status?: number;
10
- create_date: Date;
10
+ phone_matched?: 'yes' | 'no' | null;
11
+ dob_matched?: 'yes' | 'no' | null;
12
+ nsdl_dob_matched?: 'yes' | 'no' | null;
13
+ alternate_contact_number?: string | null;
14
+ mobile_verified?: 'yes' | 'no' | null;
15
+ email_verified?: 'yes' | 'no' | null;
16
+ dedupe_check_step?: number | null;
17
+ profile_ingestion_step?: number | null;
18
+ kyc_doc_update_step?: number | null;
19
+ loan_agreement_update_step?: number | null;
20
+ enach_subscription_step?: number | null;
21
+ loan_disbursal_step?: number | null;
22
+ create_date?: Date;
11
23
  update_date: Date;
12
24
  }
13
25
  export interface PartnerCustomerModel extends PartnerCustomerTable, RowDataPacket {
@@ -0,0 +1,14 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface PincodesTable {
3
+ id: number;
4
+ office_name: string;
5
+ pin_code: string;
6
+ city: string;
7
+ state_name?: string | null;
8
+ is_blocked?: boolean | null;
9
+ is_elv_blocked?: boolean | null;
10
+ is_frdm_blocked?: boolean | null;
11
+ state_id?: number | null;
12
+ }
13
+ export interface PincodesModel extends PincodesTable, RowDataPacket {
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface StCityTable {
3
+ id: number;
4
+ state_id: number | null;
5
+ city_name: string | null;
6
+ status?: boolean | null;
7
+ pin_code?: string | null;
8
+ is_operational?: boolean | null;
9
+ is_elevate_operational?: number | null;
10
+ min_age?: number | null;
11
+ max_age?: number | null;
12
+ collection_state_id?: number | null;
13
+ elev8_HighIntRate?: boolean | null;
14
+ }
15
+ export interface StCityModel extends StCityTable, RowDataPacket {
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,7 +11,7 @@ export interface StCustomerDetailTable {
11
11
  e_phone?: Buffer | null;
12
12
  company_name?: string | null;
13
13
  salary?: string | null;
14
- salary_date?: number | null;
14
+ salary_date?: Date | string;
15
15
  mode_of_salary?: number | null;
16
16
  dob?: Date | null;
17
17
  age?: string | null;
@@ -0,0 +1,20 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface StStateTable {
3
+ id: number;
4
+ state_name: string;
5
+ state_code: string;
6
+ minPinPrefix?: number | null;
7
+ maxPinPrefix?: number | null;
8
+ status: boolean;
9
+ is_operational?: boolean | null;
10
+ cibil_state_code?: string | null;
11
+ incred_state_code?: number | null;
12
+ equifax_state_code?: string | null;
13
+ isg_state_code?: string | null;
14
+ credavenue_state_code?: string | null;
15
+ nr_state_code?: string | null;
16
+ arka_is_operational?: boolean | null;
17
+ crif_state_code?: string | null;
18
+ }
19
+ export interface StStateModel extends StStateTable, RowDataPacket {
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.259",
3
+ "version": "1.4.261",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",