@stashfin/mysql2 1.4.252 → 1.4.254
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/CmsData.d.ts +31 -0
- package/models/CmsData.js +2 -0
- package/models/EqxComms.d.ts +3 -3
- package/models/EqxMandates.d.ts +22 -0
- package/models/EqxMandates.js +2 -0
- package/models/EqxTransactions.d.ts +2 -0
- package/models/ReferAndEarn.d.ts +13 -0
- package/models/StCustomerDetail.d.ts +88 -0
- package/models/StCustomerDetail.js +2 -0
- package/models/StCustomerReferralProgram.d.ts +10 -0
- package/models/StCustomerReferralProgram.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RowDataPacket } from "mysql2";
|
|
2
|
+
export interface CMSBanner {
|
|
3
|
+
name: string;
|
|
4
|
+
image_url: string;
|
|
5
|
+
redirect_url: string;
|
|
6
|
+
}
|
|
7
|
+
export interface HowItWorks {
|
|
8
|
+
data: {
|
|
9
|
+
key_points: string[];
|
|
10
|
+
};
|
|
11
|
+
metadata: {
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface InviteText {
|
|
16
|
+
text: string;
|
|
17
|
+
redirect_url: string;
|
|
18
|
+
}
|
|
19
|
+
export type CMSValue = CMSBanner[] | HowItWorks | InviteText | null;
|
|
20
|
+
export interface CMSDataTable {
|
|
21
|
+
id: number;
|
|
22
|
+
identifier_uid: string;
|
|
23
|
+
identifier_type: string;
|
|
24
|
+
created_at: Date | null;
|
|
25
|
+
updated_at: Date | null;
|
|
26
|
+
key: string;
|
|
27
|
+
value: CMSValue;
|
|
28
|
+
is_active: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface CMSDataModel extends CMSDataTable, RowDataPacket {
|
|
31
|
+
}
|
package/models/EqxComms.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ export interface CommunicationLogTable {
|
|
|
6
6
|
template_id: string;
|
|
7
7
|
channel: string;
|
|
8
8
|
template_data: JSONValue;
|
|
9
|
-
|
|
9
|
+
status: number;
|
|
10
10
|
message: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
created_at: Date;
|
|
12
|
+
updated_at: Date;
|
|
13
13
|
request_id: string;
|
|
14
14
|
expiry_date: Date;
|
|
15
15
|
is_deleted: number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RowDataPacket } from "mysql2";
|
|
2
|
+
export interface UPIMandatesTable {
|
|
3
|
+
id?: number;
|
|
4
|
+
customer_id: number;
|
|
5
|
+
payee_details: JSON;
|
|
6
|
+
payer_details: JSON;
|
|
7
|
+
mandate_details: JSON;
|
|
8
|
+
amount: number;
|
|
9
|
+
payee_mobile: string;
|
|
10
|
+
vpa: string;
|
|
11
|
+
status: string;
|
|
12
|
+
start_date: string;
|
|
13
|
+
end_date: string;
|
|
14
|
+
note?: string;
|
|
15
|
+
txn_id: string;
|
|
16
|
+
umn: string;
|
|
17
|
+
expiry: string;
|
|
18
|
+
created_at?: Date;
|
|
19
|
+
updated_at?: Date;
|
|
20
|
+
}
|
|
21
|
+
export interface UPIMandatesModel extends UPIMandatesTable, RowDataPacket {
|
|
22
|
+
}
|
|
@@ -34,9 +34,11 @@ export interface UPITransactionTable {
|
|
|
34
34
|
payee_acc_provider?: string;
|
|
35
35
|
payee_acc_type?: string;
|
|
36
36
|
payee_ifsc?: string;
|
|
37
|
+
payee_type?: string;
|
|
37
38
|
payee_code?: string;
|
|
38
39
|
response_code?: string;
|
|
39
40
|
response_message?: string;
|
|
41
|
+
meta_data?: string;
|
|
40
42
|
paid_at?: Date;
|
|
41
43
|
created_at?: Date;
|
|
42
44
|
updated_at?: Date;
|
package/models/ReferAndEarn.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { RowDataPacket } from "mysql2";
|
|
2
2
|
import { MetaData, Rules, Stat } from "./Common";
|
|
3
|
+
export interface StatusAttributes {
|
|
4
|
+
account_creation?: boolean;
|
|
5
|
+
first_emi_paid?: boolean;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
3
8
|
export interface ReferEarnTrackingTable {
|
|
4
9
|
id?: number;
|
|
5
10
|
referrer_id: number;
|
|
@@ -7,6 +12,9 @@ export interface ReferEarnTrackingTable {
|
|
|
7
12
|
product?: string;
|
|
8
13
|
product_sub_type?: string;
|
|
9
14
|
status: string;
|
|
15
|
+
status_attributes: StatusAttributes;
|
|
16
|
+
referrer_earning: number;
|
|
17
|
+
referred_earning: number;
|
|
10
18
|
deleted: boolean;
|
|
11
19
|
expiry?: Date;
|
|
12
20
|
created_at: Date;
|
|
@@ -41,7 +49,12 @@ export interface ReferralOfferTable {
|
|
|
41
49
|
updated_at: Date;
|
|
42
50
|
created_by: string;
|
|
43
51
|
}
|
|
52
|
+
export interface TotalReferrerEarningsTable {
|
|
53
|
+
total_referrer_earnings: number | null;
|
|
54
|
+
}
|
|
44
55
|
export interface ReferEarnTrackingModel extends ReferEarnTrackingTable, RowDataPacket {
|
|
45
56
|
}
|
|
46
57
|
export interface ReferralOfferModel extends ReferralOfferTable, RowDataPacket {
|
|
47
58
|
}
|
|
59
|
+
export interface TotalReferrerEarningsModel extends TotalReferrerEarningsTable, RowDataPacket {
|
|
60
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { RowDataPacket } from "mysql2";
|
|
2
|
+
export interface StCustomerDetailTable {
|
|
3
|
+
id: number;
|
|
4
|
+
first_name?: string | null;
|
|
5
|
+
middle_name?: string | null;
|
|
6
|
+
last_name?: string | null;
|
|
7
|
+
email?: string | null;
|
|
8
|
+
e_email?: Buffer | null;
|
|
9
|
+
password?: string | null;
|
|
10
|
+
phone?: string | null;
|
|
11
|
+
e_phone?: Buffer | null;
|
|
12
|
+
company_name?: string | null;
|
|
13
|
+
salary?: string | null;
|
|
14
|
+
salary_date?: number | null;
|
|
15
|
+
mode_of_salary?: number | null;
|
|
16
|
+
dob?: Date | null;
|
|
17
|
+
age?: string | null;
|
|
18
|
+
gender?: string | null;
|
|
19
|
+
marital_status?: string | null;
|
|
20
|
+
father_name?: string | null;
|
|
21
|
+
pin_code?: string | null;
|
|
22
|
+
occupation?: string | null;
|
|
23
|
+
pan_number?: string | null;
|
|
24
|
+
e_pan_number?: Buffer | null;
|
|
25
|
+
aadhar_number?: string | null;
|
|
26
|
+
e_aadhar_number?: Buffer | null;
|
|
27
|
+
aadhar_name?: string | null;
|
|
28
|
+
profile_pic?: string | null;
|
|
29
|
+
profile_pic_status?: boolean | null;
|
|
30
|
+
create_date: Date;
|
|
31
|
+
is_otp_done?: boolean | null;
|
|
32
|
+
is_email_verify_done?: boolean;
|
|
33
|
+
is_perfios_on?: number | null;
|
|
34
|
+
upload_bank_statement?: boolean;
|
|
35
|
+
can_reapply?: number;
|
|
36
|
+
last_login?: Date | null;
|
|
37
|
+
reject_date?: Date | null;
|
|
38
|
+
outgoing_emi?: number | null;
|
|
39
|
+
status?: boolean | null;
|
|
40
|
+
otp?: string | null;
|
|
41
|
+
otp_time?: Date | null;
|
|
42
|
+
add_user_id?: number | null;
|
|
43
|
+
source?: string | null;
|
|
44
|
+
manually_registered?: boolean;
|
|
45
|
+
loan_form_step?: boolean;
|
|
46
|
+
update_user_id?: number | null;
|
|
47
|
+
is_campaign?: boolean | null;
|
|
48
|
+
is_truecaller_verified?: boolean;
|
|
49
|
+
language?: string | null;
|
|
50
|
+
repeat_perfios_on: boolean;
|
|
51
|
+
target_for_card?: boolean | null;
|
|
52
|
+
move_to_s3?: boolean;
|
|
53
|
+
gst_number?: string | null;
|
|
54
|
+
organization_id?: number | null;
|
|
55
|
+
firebase_reg_id?: string | null;
|
|
56
|
+
Mothers_Maiden_name?: string | null;
|
|
57
|
+
Customer_Rent?: number | null;
|
|
58
|
+
signature_status?: boolean;
|
|
59
|
+
whatsapp_status?: string | null;
|
|
60
|
+
whatsapp_resource_name?: string | null;
|
|
61
|
+
linkedin_status?: boolean;
|
|
62
|
+
m_pin?: number;
|
|
63
|
+
fngr_print?: number;
|
|
64
|
+
customer_mpin?: string;
|
|
65
|
+
razor_id?: number;
|
|
66
|
+
update_date: Date;
|
|
67
|
+
ovd_id?: number | null;
|
|
68
|
+
ovd_number?: string | null;
|
|
69
|
+
e_ovd_number?: Buffer | null;
|
|
70
|
+
bill_date?: number | null;
|
|
71
|
+
number_in_cibil?: boolean | null;
|
|
72
|
+
biometric_device?: string;
|
|
73
|
+
biometric?: boolean;
|
|
74
|
+
merchant_verify?: boolean | null;
|
|
75
|
+
firebase_update_Date?: Date | null;
|
|
76
|
+
metadata?: Record<string, any> | null;
|
|
77
|
+
crn?: number | null;
|
|
78
|
+
phone_hash?: string | null;
|
|
79
|
+
selfie_metadata?: Record<string, any> | null;
|
|
80
|
+
unlinked?: number;
|
|
81
|
+
e_email_s?: Buffer | null;
|
|
82
|
+
e_phone_s?: Buffer | null;
|
|
83
|
+
e_pan_number_s?: Buffer | null;
|
|
84
|
+
e_aadhar_number_s?: Buffer | null;
|
|
85
|
+
e_ovd_number_s?: Buffer | null;
|
|
86
|
+
}
|
|
87
|
+
export interface StCustomerDetailModel extends StCustomerDetailTable, RowDataPacket {
|
|
88
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RowDataPacket } from "mysql2";
|
|
2
|
+
export interface StCustomerReferralProgramTable {
|
|
3
|
+
id: number;
|
|
4
|
+
customer_id: number;
|
|
5
|
+
refer_code: string;
|
|
6
|
+
create_date: Date | null;
|
|
7
|
+
ba_counter: number;
|
|
8
|
+
}
|
|
9
|
+
export interface StCustomerReferralProgramModel extends StCustomerReferralProgramTable, RowDataPacket {
|
|
10
|
+
}
|