@stashfin/mysql2 1.4.604 → 1.4.606

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.
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,9 @@ export interface MetaData {
11
11
  title: string;
12
12
  eligibilityCriteria: string;
13
13
  steps: string[];
14
+ eligibility: string[];
15
+ tnc: string[];
16
+ minimun_investment: string;
14
17
  }
15
18
  export interface Stat {
16
19
  count: number;
@@ -0,0 +1,12 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface CustomerBankDetailsTable {
3
+ customer_id?: number;
4
+ is_primary: number;
5
+ account_no: string;
6
+ account_status: number;
7
+ ifsc_code: string;
8
+ create_date: Date;
9
+ customer_name: string;
10
+ }
11
+ export interface CustomerBankDetailsModel extends CustomerBankDetailsTable, RowDataPacket {
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface StCustomerDetailsTable {
3
+ id?: number;
4
+ first_name: string;
5
+ middle_name?: string | null;
6
+ last_name: string;
7
+ pan?: string | null;
8
+ dob?: string | null;
9
+ email?: string | null;
10
+ phone: string | null;
11
+ is_otp_done: boolean;
12
+ is_email_verify_done: boolean;
13
+ }
14
+ export interface StCustomerDetailsModel extends StCustomerDetailsTable, RowDataPacket {
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,6 +18,9 @@ interface EqxCustomersTable {
18
18
  auth_token?: string | null;
19
19
  refresh_token?: string | null;
20
20
  profile_id?: number | null;
21
+ dob?: Date | null;
22
+ pin_code?: string | null;
23
+ pan_number?: string | null;
21
24
  vpa?: string | null;
22
25
  biometric_enabled: YesNoEnum;
23
26
  tnc_accepted: YesNoEnum;
package/models/Offer.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- import { RowDataPacket } from "mysql2";
2
- import { MetaData, Rules, Stat } from "./Common";
1
+ import { RowDataPacket } from 'mysql2';
2
+ import { MetaData, Rules, Stat } from './Common';
3
3
  export interface OfferTable {
4
4
  id: number;
5
5
  title: string;
6
+ sub_title: string;
7
+ validity: string;
6
8
  reward_type: string;
7
9
  amount: number;
8
10
  sc_type: string;
@@ -20,14 +22,14 @@ export interface OfferTable {
20
22
  is_active: boolean;
21
23
  deleted: boolean;
22
24
  csv_segment: number;
23
- sc_expiry: Date;
24
- expiry: Date;
25
+ sc_expiry: Date | string;
26
+ expiry: Date | string;
25
27
  rules: Rules;
26
28
  metaData: MetaData;
27
29
  stats: Stat;
28
- created_at: Date;
29
- updated_at: Date;
30
- created_by: string;
30
+ created_at: Date | string;
31
+ updated_at: Date | string;
32
+ created_by: string | Date;
31
33
  }
32
34
  export interface OfferModel extends OfferTable, RowDataPacket {
33
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.604",
3
+ "version": "1.4.606",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",