@stashfin/mysql2 1.4.3 → 1.4.5
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/index.js +2 -2
- package/models/UserKYCPan.d.ts +8 -5
- package/models/WealthUser.d.ts +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -53,7 +53,7 @@ class MysqlConnector {
|
|
|
53
53
|
const sql = `INSERT INTO ${tableName} (${keys.join(', ')}) VALUES (${keys
|
|
54
54
|
.map(() => '?')
|
|
55
55
|
.join(', ')})`;
|
|
56
|
-
return
|
|
56
|
+
return this.executeResult(sql, values);
|
|
57
57
|
}
|
|
58
58
|
async updateData(tableName,
|
|
59
59
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -64,7 +64,7 @@ class MysqlConnector {
|
|
|
64
64
|
.map((key) => `${key} = ?`)
|
|
65
65
|
.join(', ')} WHERE ${condition}`;
|
|
66
66
|
const finalValues = [...values, ...(conditionValues || [])];
|
|
67
|
-
return
|
|
67
|
+
return this.executeResult(sql, finalValues);
|
|
68
68
|
}
|
|
69
69
|
async close() {
|
|
70
70
|
await this.pool.end();
|
package/models/UserKYCPan.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { RowDataPacket } from 'mysql2';
|
|
2
2
|
export interface KYCPanTable {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
pan_number: string;
|
|
4
|
+
father_name: string;
|
|
5
|
+
dob?: string;
|
|
6
|
+
first_name?: string;
|
|
7
|
+
middle_name?: string;
|
|
8
|
+
last_name?: string;
|
|
6
9
|
}
|
|
7
10
|
export interface KYCPanFileTable {
|
|
8
11
|
pan_proof: string;
|
|
9
12
|
user_id: number;
|
|
10
13
|
}
|
|
11
|
-
export interface KYCPanModel extends RowDataPacket {
|
|
14
|
+
export interface KYCPanModel extends KYCPanTable, RowDataPacket {
|
|
12
15
|
}
|
|
13
|
-
export interface KYCPanFileModel extends RowDataPacket {
|
|
16
|
+
export interface KYCPanFileModel extends KYCPanFileTable, RowDataPacket {
|
|
14
17
|
}
|
package/models/WealthUser.d.ts
CHANGED
|
@@ -4,10 +4,9 @@ export interface WealthUserTable {
|
|
|
4
4
|
user_external_id: string;
|
|
5
5
|
gateway_id: string;
|
|
6
6
|
grip_user_auth_token?: string;
|
|
7
|
-
grip_user_refresh_token?: string;
|
|
8
7
|
grip_user_auth_token_expiry?: number;
|
|
9
|
-
grip_user_refresh_token_expiry?: number;
|
|
10
8
|
grip_user_consent?: string;
|
|
9
|
+
grip_user_kyc_status?: string;
|
|
11
10
|
created_at?: Date;
|
|
12
11
|
updated_at?: Date;
|
|
13
12
|
}
|