@stashfin/mysql2 1.4.242 → 1.4.243

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,35 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ declare enum YesNoEnum {
3
+ Y = "Y",
4
+ N = "N"
5
+ }
6
+ declare enum StatusEnum {
7
+ Active = "active",
8
+ Inactive = "inactive"
9
+ }
10
+ interface EqxCustomersTable {
11
+ id: number;
12
+ first_name?: string;
13
+ last_name?: string | null;
14
+ mobile: string;
15
+ email?: string | null;
16
+ referral_code?: string | null;
17
+ push_id?: string | null;
18
+ auth_token?: string | null;
19
+ refresh_token?: string | null;
20
+ profile_id?: number | null;
21
+ vpa?: string | null;
22
+ biometric_enabled: YesNoEnum;
23
+ tnc_accepted: YesNoEnum;
24
+ device_id: string;
25
+ login_ip?: string | null;
26
+ status: StatusEnum;
27
+ upi_linked: YesNoEnum;
28
+ is_deleted: YesNoEnum;
29
+ login_date?: Date;
30
+ created_at?: Date | null;
31
+ updated_at?: Date | null;
32
+ }
33
+ export interface EqxCustomerModel extends EqxCustomersTable, RowDataPacket {
34
+ }
35
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var YesNoEnum;
4
+ (function (YesNoEnum) {
5
+ YesNoEnum["Y"] = "Y";
6
+ YesNoEnum["N"] = "N";
7
+ })(YesNoEnum || (YesNoEnum = {}));
8
+ var StatusEnum;
9
+ (function (StatusEnum) {
10
+ StatusEnum["Active"] = "active";
11
+ StatusEnum["Inactive"] = "inactive";
12
+ })(StatusEnum || (StatusEnum = {}));
@@ -0,0 +1,22 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export declare enum StatusEnum {
3
+ Pending = "pending",
4
+ Success = "success"
5
+ }
6
+ export declare enum YesNoEnum {
7
+ Y = "Y",
8
+ N = "N"
9
+ }
10
+ export interface DeviceBindingTable {
11
+ id: number;
12
+ customer_id: number;
13
+ device_id: string;
14
+ sim_no?: string | null;
15
+ sim_network?: string | null;
16
+ status: StatusEnum;
17
+ is_active: YesNoEnum;
18
+ created_at?: Date | null;
19
+ updated_at?: Date | null;
20
+ }
21
+ export interface DeviceBindingModel extends DeviceBindingTable, RowDataPacket {
22
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YesNoEnum = exports.StatusEnum = void 0;
4
+ var StatusEnum;
5
+ (function (StatusEnum) {
6
+ StatusEnum["Pending"] = "pending";
7
+ StatusEnum["Success"] = "success";
8
+ })(StatusEnum || (exports.StatusEnum = StatusEnum = {}));
9
+ var YesNoEnum;
10
+ (function (YesNoEnum) {
11
+ YesNoEnum["Y"] = "Y";
12
+ YesNoEnum["N"] = "N";
13
+ })(YesNoEnum || (exports.YesNoEnum = YesNoEnum = {}));
@@ -0,0 +1,31 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export declare enum YesNoEnum {
3
+ Y = "Y",
4
+ N = "N"
5
+ }
6
+ export declare enum AccountStatusEnum {
7
+ Linked = "linked",
8
+ Delinked = "delinked"
9
+ }
10
+ export interface LinkedAccountTable {
11
+ id: number;
12
+ customer_id: number;
13
+ acc_number: string;
14
+ acc_ref_number?: string | null;
15
+ acc_type?: string | null;
16
+ acc_name?: string | null;
17
+ aeba?: string | null;
18
+ mbeba?: string | null;
19
+ mmid?: string | null;
20
+ ifsc?: string | null;
21
+ vpa?: string | null;
22
+ default_credit: YesNoEnum;
23
+ default_debit: YesNoEnum;
24
+ is_primary: YesNoEnum;
25
+ status: AccountStatusEnum;
26
+ is_active: YesNoEnum;
27
+ created_at?: Date | null;
28
+ updated_at?: Date | null;
29
+ }
30
+ export interface LinkedAccountModel extends LinkedAccountTable, RowDataPacket {
31
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountStatusEnum = exports.YesNoEnum = void 0;
4
+ var YesNoEnum;
5
+ (function (YesNoEnum) {
6
+ YesNoEnum["Y"] = "Y";
7
+ YesNoEnum["N"] = "N";
8
+ })(YesNoEnum || (exports.YesNoEnum = YesNoEnum = {}));
9
+ var AccountStatusEnum;
10
+ (function (AccountStatusEnum) {
11
+ AccountStatusEnum["Linked"] = "linked";
12
+ AccountStatusEnum["Delinked"] = "delinked";
13
+ })(AccountStatusEnum || (exports.AccountStatusEnum = AccountStatusEnum = {}));
@@ -0,0 +1,21 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export declare enum YesNoEnum {
3
+ Y = "Y",
4
+ N = "N"
5
+ }
6
+ export declare enum UPIStatusEnum {
7
+ Linked = "linked",
8
+ Delinked = "delinked"
9
+ }
10
+ export interface UPINumberTable {
11
+ id: number;
12
+ customer_id: number;
13
+ upi_number: string;
14
+ is_primary: YesNoEnum;
15
+ status: UPIStatusEnum;
16
+ is_deleted: YesNoEnum;
17
+ created_at?: Date | null;
18
+ updated_at?: Date | null;
19
+ }
20
+ export interface UPINumberModel extends UPINumberTable, RowDataPacket {
21
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UPIStatusEnum = exports.YesNoEnum = void 0;
4
+ // Enum definitions for specific fields
5
+ var YesNoEnum;
6
+ (function (YesNoEnum) {
7
+ YesNoEnum["Y"] = "Y";
8
+ YesNoEnum["N"] = "N";
9
+ })(YesNoEnum || (exports.YesNoEnum = YesNoEnum = {}));
10
+ var UPIStatusEnum;
11
+ (function (UPIStatusEnum) {
12
+ UPIStatusEnum["Linked"] = "linked";
13
+ UPIStatusEnum["Delinked"] = "delinked";
14
+ })(UPIStatusEnum || (exports.UPIStatusEnum = UPIStatusEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.242",
3
+ "version": "1.4.243",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",