@stashfin/mysql2 1.4.15 → 1.4.17

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.
@@ -83,6 +83,9 @@ export interface DemographicsTable {
83
83
  salary_date?: Date | null;
84
84
  salary_mode?: string | null;
85
85
  selfie_url?: string | null;
86
+ kyc_type?: string | null;
87
+ phone_matched?: number | null;
88
+ dob_matched?: number | null;
86
89
  /** Defaults to: CURRENT_TIMESTAMP. */
87
90
  created_at?: Date | null;
88
91
  updated_at?: Date | null;
@@ -101,9 +104,24 @@ export interface CustomerBanksTable {
101
104
  created_at?: Date | null;
102
105
  updated_at?: Date | null;
103
106
  }
107
+ export interface CustomerReferenceTable {
108
+ id: number;
109
+ customer_id: number;
110
+ reference_name: string;
111
+ relationship: 'Family' | 'Friend' | 'Colleague' | 'Other';
112
+ mobile_number: string;
113
+ email?: string;
114
+ address: string;
115
+ state_id: number;
116
+ city_id: number;
117
+ pincode: string;
118
+ created_at?: Date | null;
119
+ }
104
120
  export interface CustomerModel extends CustomerTable, RowDataPacket {
105
121
  }
106
122
  export interface CustomerBanksModel extends CustomerBanksTable, RowDataPacket {
107
123
  }
108
124
  export interface DemographicsModel extends DemographicsTable, RowDataPacket {
109
125
  }
126
+ export interface CustomerReferenceModel extends CustomerReferenceTable, RowDataPacket {
127
+ }
@@ -0,0 +1,20 @@
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 KycDetailsTable {
9
+ id?: number;
10
+ id_customer?: number | null;
11
+ partner?: string | null;
12
+ response?: JSONValue | null;
13
+ txn_id?: string | null;
14
+ /** Defaults to: CURRENT_TIMESTAMP. */
15
+ created_at?: Date | null;
16
+ /** Defaults to: CURRENT_TIMESTAMP. */
17
+ updated_at?: Date | null;
18
+ }
19
+ export interface KycDetailsModel extends KycDetailsTable, RowDataPacket {
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
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 PanDetailsTable {
9
+ id?: number;
10
+ id_customer?: number | null;
11
+ response?: JSONValue | null;
12
+ /** Defaults to: CURRENT_TIMESTAMP. */
13
+ created_at?: Date | null;
14
+ /** Defaults to: CURRENT_TIMESTAMP. */
15
+ updated_at?: Date | null;
16
+ }
17
+ export interface KycDetailsModel extends PanDetailsTable, RowDataPacket {
18
+ }
@@ -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.15",
3
+ "version": "1.4.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",