@stashfin/mysql2 1.4.40 → 1.4.42

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.
@@ -3,10 +3,11 @@ export interface genericInter {
3
3
  [key: string]: string | number | JSON | undefined | Date | null | boolean;
4
4
  }
5
5
  export interface BureauReportTable {
6
- id?: number;
6
+ id: number;
7
7
  customer_id: number;
8
8
  score?: number;
9
9
  bureau_id?: number;
10
+ status?: string;
10
11
  product_code?: string;
11
12
  member_reference_no?: string;
12
13
  enquiry_control_no?: string;
@@ -19,8 +20,8 @@ export interface BureauReportTable {
19
20
  occupation?: string;
20
21
  income?: number;
21
22
  extra_params?: JSON;
22
- created_at?: Date;
23
- updated_at?: Date;
23
+ created_at?: Date | null;
24
+ updated_at?: Date | null;
24
25
  is_active?: boolean;
25
26
  is_deleted?: boolean;
26
27
  }
@@ -35,8 +36,8 @@ export interface BureauAccountTypeTable {
35
36
  account_type_code_cibil?: string;
36
37
  sf_account_type?: string;
37
38
  account_type_crif?: string;
38
- created_at?: Date;
39
- updated_at?: Date;
39
+ created_at?: Date | null;
40
+ updated_at?: Date | null;
40
41
  is_active?: boolean;
41
42
  is_deleted?: boolean;
42
43
  }
@@ -50,12 +51,12 @@ export interface BureauDemogsTable extends genericInter {
50
51
  extra_params?: JSON;
51
52
  pin_code?: number;
52
53
  city?: number;
53
- created_at?: Date;
54
- updated_at?: Date;
54
+ created_at?: Date | null;
55
+ updated_at?: Date | null;
55
56
  is_active?: boolean;
56
57
  is_deleted?: boolean;
57
58
  }
58
- export interface BureauAccountListTable {
59
+ export interface BureauAccountListTable extends genericInter {
59
60
  id?: number;
60
61
  report_id?: number;
61
62
  account_type?: number;
@@ -72,13 +73,13 @@ export interface BureauAccountListTable {
72
73
  settled_status?: string;
73
74
  credit_limit?: number;
74
75
  emi_amount?: number;
76
+ create_date?: Date;
75
77
  account_status?: number;
76
78
  extra_params?: JSON;
77
- created_at?: Date;
78
- updated_at?: Date;
79
+ created_at?: Date | null;
80
+ updated_at?: Date | null;
79
81
  is_active?: boolean;
80
82
  is_deleted?: boolean;
81
- account_history: BureauAccountHistoryTable[];
82
83
  }
83
84
  export interface BureauAccountHistoryTable extends genericInter {
84
85
  id?: number;
@@ -88,21 +89,21 @@ export interface BureauAccountHistoryTable extends genericInter {
88
89
  month_number?: number;
89
90
  dpd_char?: string;
90
91
  dpd?: number;
92
+ create_date?: Date;
91
93
  extra_params?: JSON;
92
- created_at?: Date;
93
- updated_at?: Date;
94
+ created_at?: Date | null;
95
+ updated_at?: Date | null;
94
96
  is_active?: boolean;
95
97
  is_deleted?: boolean;
96
98
  }
97
99
  export interface BureauEnquiryTable extends genericInter {
98
- id?: number;
99
100
  report_id?: number;
100
101
  date_reported?: Date;
101
102
  enquiry_purpose?: number;
102
103
  reporting_member?: string;
103
104
  extra_params?: JSON;
104
- created_at?: Date;
105
- updated_at?: Date;
105
+ created_at?: Date | null;
106
+ updated_at?: Date | null;
106
107
  is_active?: boolean;
107
108
  is_deleted?: boolean;
108
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.40",
3
+ "version": "1.4.42",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,21 +0,0 @@
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
- }
package/models/Banners.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });