@stashfin/mysql2 1.4.39 → 1.4.40
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/Bureau.d.ts +120 -0
- package/models/Bureau.js +2 -0
- package/models/Customer.d.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface genericInter {
|
|
3
|
+
[key: string]: string | number | JSON | undefined | Date | null | boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface BureauReportTable {
|
|
6
|
+
id?: number;
|
|
7
|
+
customer_id: number;
|
|
8
|
+
score?: number;
|
|
9
|
+
bureau_id?: number;
|
|
10
|
+
product_code?: string;
|
|
11
|
+
member_reference_no?: string;
|
|
12
|
+
enquiry_control_no?: string;
|
|
13
|
+
pull_source?: string;
|
|
14
|
+
response_message?: string;
|
|
15
|
+
report_path?: string;
|
|
16
|
+
dob?: Date;
|
|
17
|
+
gender?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
occupation?: string;
|
|
20
|
+
income?: number;
|
|
21
|
+
extra_params?: JSON;
|
|
22
|
+
created_at?: Date;
|
|
23
|
+
updated_at?: Date;
|
|
24
|
+
is_active?: boolean;
|
|
25
|
+
is_deleted?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface BureauAccountTypeTable {
|
|
28
|
+
id: number;
|
|
29
|
+
account_type?: string;
|
|
30
|
+
min_value?: number;
|
|
31
|
+
operation?: string;
|
|
32
|
+
max_value?: number;
|
|
33
|
+
loanType?: string;
|
|
34
|
+
account_type_code_equifax?: string;
|
|
35
|
+
account_type_code_cibil?: string;
|
|
36
|
+
sf_account_type?: string;
|
|
37
|
+
account_type_crif?: string;
|
|
38
|
+
created_at?: Date;
|
|
39
|
+
updated_at?: Date;
|
|
40
|
+
is_active?: boolean;
|
|
41
|
+
is_deleted?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface BureauDemogsTable extends genericInter {
|
|
44
|
+
id?: number;
|
|
45
|
+
report_id?: number;
|
|
46
|
+
type?: string;
|
|
47
|
+
sub_type?: string;
|
|
48
|
+
value?: string;
|
|
49
|
+
reported_date?: Date;
|
|
50
|
+
extra_params?: JSON;
|
|
51
|
+
pin_code?: number;
|
|
52
|
+
city?: number;
|
|
53
|
+
created_at?: Date;
|
|
54
|
+
updated_at?: Date;
|
|
55
|
+
is_active?: boolean;
|
|
56
|
+
is_deleted?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface BureauAccountListTable {
|
|
59
|
+
id?: number;
|
|
60
|
+
report_id?: number;
|
|
61
|
+
account_type?: number;
|
|
62
|
+
current_balance?: number;
|
|
63
|
+
date_closed?: Date;
|
|
64
|
+
last_payment_date?: Date;
|
|
65
|
+
disbursed_date?: Date;
|
|
66
|
+
date_reported?: Date;
|
|
67
|
+
sanctioned_amount?: number;
|
|
68
|
+
ownership_indicator?: string;
|
|
69
|
+
reporting_member?: string;
|
|
70
|
+
suit_filed?: string;
|
|
71
|
+
overdue_amount?: number;
|
|
72
|
+
settled_status?: string;
|
|
73
|
+
credit_limit?: number;
|
|
74
|
+
emi_amount?: number;
|
|
75
|
+
account_status?: number;
|
|
76
|
+
extra_params?: JSON;
|
|
77
|
+
created_at?: Date;
|
|
78
|
+
updated_at?: Date;
|
|
79
|
+
is_active?: boolean;
|
|
80
|
+
is_deleted?: boolean;
|
|
81
|
+
account_history: BureauAccountHistoryTable[];
|
|
82
|
+
}
|
|
83
|
+
export interface BureauAccountHistoryTable extends genericInter {
|
|
84
|
+
id?: number;
|
|
85
|
+
report_id?: number;
|
|
86
|
+
account_list_id?: number;
|
|
87
|
+
history_date?: Date;
|
|
88
|
+
month_number?: number;
|
|
89
|
+
dpd_char?: string;
|
|
90
|
+
dpd?: number;
|
|
91
|
+
extra_params?: JSON;
|
|
92
|
+
created_at?: Date;
|
|
93
|
+
updated_at?: Date;
|
|
94
|
+
is_active?: boolean;
|
|
95
|
+
is_deleted?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface BureauEnquiryTable extends genericInter {
|
|
98
|
+
id?: number;
|
|
99
|
+
report_id?: number;
|
|
100
|
+
date_reported?: Date;
|
|
101
|
+
enquiry_purpose?: number;
|
|
102
|
+
reporting_member?: string;
|
|
103
|
+
extra_params?: JSON;
|
|
104
|
+
created_at?: Date;
|
|
105
|
+
updated_at?: Date;
|
|
106
|
+
is_active?: boolean;
|
|
107
|
+
is_deleted?: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface BureauReportModel extends BureauReportTable, RowDataPacket {
|
|
110
|
+
}
|
|
111
|
+
export interface BureauDemogsModel extends BureauDemogsTable, RowDataPacket {
|
|
112
|
+
}
|
|
113
|
+
export interface BureauAccountListModel extends BureauAccountListTable, RowDataPacket {
|
|
114
|
+
}
|
|
115
|
+
export interface BureauAccountHistoryModel extends BureauAccountHistoryTable, RowDataPacket {
|
|
116
|
+
}
|
|
117
|
+
export interface BureaunquiryModel extends BureauEnquiryTable, RowDataPacket {
|
|
118
|
+
}
|
|
119
|
+
export interface BureauAccountTypeModel extends BureauAccountTypeTable, RowDataPacket {
|
|
120
|
+
}
|
package/models/Bureau.js
ADDED
package/models/Customer.d.ts
CHANGED
|
@@ -98,6 +98,10 @@ export interface DemographicsTable {
|
|
|
98
98
|
has_imps?: number | null;
|
|
99
99
|
journey_inactive?: number | null;
|
|
100
100
|
repeat_journey?: number | null;
|
|
101
|
+
mobile_network?: string | null;
|
|
102
|
+
nsdl_dob?: Date | null;
|
|
103
|
+
state?: string | null;
|
|
104
|
+
avg_salary?: number | null;
|
|
101
105
|
}
|
|
102
106
|
export interface CustomerBanksTable {
|
|
103
107
|
id?: number;
|
|
@@ -148,6 +152,22 @@ export interface CustomerDeviceHistoryTable {
|
|
|
148
152
|
created_at?: Date | null;
|
|
149
153
|
updated_at?: Date | null;
|
|
150
154
|
}
|
|
155
|
+
export interface UsersApp {
|
|
156
|
+
id?: number;
|
|
157
|
+
customer_id: number;
|
|
158
|
+
app_name: string;
|
|
159
|
+
app_id: string;
|
|
160
|
+
app_category: string;
|
|
161
|
+
created_at?: Date;
|
|
162
|
+
updated_at?: Date;
|
|
163
|
+
}
|
|
164
|
+
export interface SuspendedCustomer {
|
|
165
|
+
id?: number;
|
|
166
|
+
mobile: string;
|
|
167
|
+
email?: string | null;
|
|
168
|
+
created_at?: Date;
|
|
169
|
+
updated_at?: Date;
|
|
170
|
+
}
|
|
151
171
|
export interface CustomerModel extends CustomerTable, RowDataPacket {
|
|
152
172
|
}
|
|
153
173
|
export interface CustomerBanksModel extends CustomerBanksTable, RowDataPacket {
|
|
@@ -160,3 +180,7 @@ export interface CustomerReferenceModel extends CustomerReferenceTable, RowDataP
|
|
|
160
180
|
}
|
|
161
181
|
export interface CustomerDeviceHistoryModel extends CustomerDeviceHistoryTable, RowDataPacket {
|
|
162
182
|
}
|
|
183
|
+
export interface UsersAppModel extends UsersApp, RowDataPacket {
|
|
184
|
+
}
|
|
185
|
+
export interface SuspendedCustomerModel extends SuspendedCustomer, RowDataPacket {
|
|
186
|
+
}
|