@stashfin/mysql2 1.4.260 → 1.4.262
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/Banners.d.ts +21 -0
- package/models/Banners.js +2 -0
- package/models/Campaign.d.ts +11 -0
- package/models/Campaign.js +2 -0
- package/models/CampaignCustomerLead.d.ts +10 -0
- package/models/CampaignCustomerLead.js +2 -0
- package/models/CampaignQuestion.d.ts +13 -0
- package/models/CampaignQuestion.js +2 -0
- package/models/CampaignQuestionResponse.d.ts +11 -0
- package/models/CampaignQuestionResponse.js +2 -0
- package/models/CoApplicantData.d.ts +26 -18
- package/models/Guarantor.d.ts +26 -18
- package/models/PartnerLoans.d.ts +41 -0
- package/models/PartnerLoans.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export type JSONPrimitive = string | number | boolean | null;
|
|
3
|
+
export type JSONValue = JSONObject | JSONArray;
|
|
4
|
+
export type JSONObject = {
|
|
5
|
+
[member: string]: JSONPrimitive;
|
|
6
|
+
};
|
|
7
|
+
export type JSONArray = Array<JSONValue>;
|
|
8
|
+
export interface BannerTable {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
image_url: string;
|
|
12
|
+
web_url?: string | null;
|
|
13
|
+
landing_page?: string | null;
|
|
14
|
+
api_mode?: string | null;
|
|
15
|
+
app_version: number;
|
|
16
|
+
status: string;
|
|
17
|
+
created_at: Date;
|
|
18
|
+
updated_at: Date;
|
|
19
|
+
}
|
|
20
|
+
export interface BannerModel extends BannerTable, RowDataPacket {
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface CampaignTable {
|
|
3
|
+
id?: number;
|
|
4
|
+
type: string;
|
|
5
|
+
name: Date;
|
|
6
|
+
is_active: true;
|
|
7
|
+
created_at: Date;
|
|
8
|
+
updated_at: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface CampaignModel extends CampaignTable, RowDataPacket {
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface CampaignCustomerLeadTable {
|
|
3
|
+
id?: number;
|
|
4
|
+
campaign_id: number;
|
|
5
|
+
customer_id: number;
|
|
6
|
+
created_at: Date;
|
|
7
|
+
updated_at: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface CampaignCustomerLeadModel extends CampaignCustomerLeadTable, RowDataPacket {
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface CampaignQuestionTable {
|
|
3
|
+
id?: number;
|
|
4
|
+
campaign_id: number;
|
|
5
|
+
question: string;
|
|
6
|
+
response_options: JSON;
|
|
7
|
+
resposne_type: string;
|
|
8
|
+
is_mandatory: false;
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
11
|
+
}
|
|
12
|
+
export interface CampaignQuestionModel extends CampaignQuestionTable, RowDataPacket {
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface CampaignQuestionResponseTable {
|
|
3
|
+
id?: number;
|
|
4
|
+
campaign_customer_lead_id: number;
|
|
5
|
+
question_id: number;
|
|
6
|
+
value: string;
|
|
7
|
+
created_at: Date;
|
|
8
|
+
updated_at: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface CampaignQuestionResponseModel extends CampaignQuestionResponseTable, RowDataPacket {
|
|
11
|
+
}
|
|
@@ -12,24 +12,32 @@ export interface CoApplicantDataTable {
|
|
|
12
12
|
state_id?: number | null;
|
|
13
13
|
city_id?: number | null;
|
|
14
14
|
pin?: number | null;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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;
|
|
33
41
|
}
|
|
34
42
|
export interface CoApplicantDataModel extends CoApplicantDataTable, RowDataPacket {
|
|
35
43
|
}
|
package/models/Guarantor.d.ts
CHANGED
|
@@ -12,24 +12,32 @@ export interface GuarantorTable {
|
|
|
12
12
|
state_id?: number | null;
|
|
13
13
|
city_id?: number | null;
|
|
14
14
|
pin?: number | null;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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;
|
|
33
41
|
}
|
|
34
42
|
export interface GuarantorModel extends GuarantorTable, RowDataPacket {
|
|
35
43
|
}
|
|
@@ -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
|
+
}
|