@stashfin/mysql2 1.4.623 → 1.4.624

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 });
@@ -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 });
@@ -0,0 +1,15 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ type TncStatus = 'DRAFT' | 'PUBLISHED' | 'DEPRECATED';
3
+ interface TncTable {
4
+ id: number;
5
+ version: string;
6
+ content: string;
7
+ title: string;
8
+ status: TncStatus;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ effective_from: Date;
12
+ }
13
+ export interface TncModel extends TncTable, RowDataPacket {
14
+ }
15
+ export {};
package/models/TnC.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export interface UserTncAcceptanceTable {
3
+ id: number;
4
+ customer_id: number;
5
+ tnc_id: number;
6
+ created_at?: Date;
7
+ ip_address?: string;
8
+ user_agent?: string;
9
+ updated_at?: Date;
10
+ }
11
+ export interface UserTncAcceptanceModel extends UserTncAcceptanceTable, RowDataPacket {
12
+ }
@@ -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.623",
3
+ "version": "1.4.624",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",