@stashfin/mysql2 1.4.4 → 1.4.6

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.
package/models/Offer.d.ts CHANGED
@@ -7,14 +7,8 @@ interface Rule {
7
7
  interface Rules {
8
8
  data: Rule[];
9
9
  }
10
- interface MetaData {
11
- icon: string;
12
- title: string;
13
- eligibilityCriteria: string;
14
- steps: string[];
15
- }
16
10
  export interface OfferTable {
17
- id: number;
11
+ id: bigint;
18
12
  title: string;
19
13
  reward_type: string;
20
14
  amount: number;
@@ -33,13 +27,11 @@ export interface OfferTable {
33
27
  is_active: boolean;
34
28
  deleted: boolean;
35
29
  csv_segment: number;
36
- sc_expiry: Date;
37
- expiry: Date;
30
+ expiry: string;
38
31
  rules: Rules;
39
- metaData: MetaData;
40
32
  stats: string;
41
- created_at: Date;
42
- updated_at: Date;
33
+ created_at: string;
34
+ updated_at: string;
43
35
  created_by: string;
44
36
  }
45
37
  export interface OfferModel extends OfferTable, RowDataPacket {
@@ -2,32 +2,29 @@ import { RowDataPacket } from 'mysql2';
2
2
  export interface StashCashTable {
3
3
  id?: number;
4
4
  customer_id: number;
5
- /** Defaults to: 0 */
6
5
  locked: number;
7
6
  unlocked: number;
8
- /** Defaults to: CURRENT_TIMESTAMP. */
9
- created_at?: Date | null;
10
- updated_at?: Date | null;
11
- is_active?: string | 'Y';
12
- is_deleted?: string | 'N';
7
+ created_at: Date;
8
+ updated_at: Date;
9
+ is_active: boolean;
10
+ is_deleted: boolean;
13
11
  }
14
12
  export interface StashCashTrascationTable {
15
13
  id?: number;
16
- customer_id?: number;
17
- campaign_id?: number;
14
+ customer_id: number;
15
+ campaign_id: number;
18
16
  txn_id: number;
19
17
  sc_type: string;
20
- amount?: number;
18
+ amount: number;
19
+ balance: number;
21
20
  remaining: number;
22
- txn_type: 'debit' | 'credit' | 'expired' | 'reversal';
23
- /** Defaults to: active. */
24
- status?: 'active' | 'inactive';
25
- expiry?: Date | null;
26
- /** Defaults to: CURRENT_TIMESTAMP. */
27
- created_at?: Date | null;
28
- updated_at?: Date | null;
29
- is_active?: string | 'Y';
30
- is_deleted?: string | 'N';
21
+ txn_type: string;
22
+ status: string;
23
+ expiry: Date;
24
+ created_at: Date;
25
+ updated_at: Date;
26
+ is_active: boolean;
27
+ is_deleted: boolean;
31
28
  }
32
29
  export interface StashCashModel extends StashCashTable, RowDataPacket {
33
30
  }
@@ -7,5 +7,5 @@ export interface UserAuthTokenTable {
7
7
  published: number;
8
8
  device_id: string;
9
9
  }
10
- export interface UserAuthTokenModel extends RowDataPacket {
10
+ export interface UserAuthTokenModel extends UserAuthTokenTable, RowDataPacket {
11
11
  }
@@ -1,8 +1,8 @@
1
1
  import { RowDataPacket } from 'mysql2';
2
2
  export interface UserKYCBankTable {
3
3
  customer_id: number;
4
- account_no: number;
5
- ifsc_code: number;
4
+ account_no: string;
5
+ ifsc_code: string;
6
6
  }
7
- export interface UserKYCBankModel extends RowDataPacket {
7
+ export interface UserKYCBankModel extends UserKYCBankTable, RowDataPacket {
8
8
  }
@@ -1,14 +1,17 @@
1
1
  import { RowDataPacket } from 'mysql2';
2
2
  export interface KYCPanTable {
3
- pan_numeber: number;
4
- customer_id: number;
5
- is_active: number;
3
+ pan_number: string;
4
+ father_name: string;
5
+ dob: string;
6
+ first_name: string;
7
+ middle_name: string;
8
+ last_name: string;
6
9
  }
7
10
  export interface KYCPanFileTable {
8
11
  pan_proof: string;
9
12
  user_id: number;
10
13
  }
11
- export interface KYCPanModel extends RowDataPacket {
14
+ export interface KYCPanModel extends KYCPanTable, RowDataPacket {
12
15
  }
13
- export interface KYCPanFileModel extends RowDataPacket {
16
+ export interface KYCPanFileModel extends KYCPanFileTable, RowDataPacket {
14
17
  }
@@ -6,6 +6,7 @@ export interface WealthUserTable {
6
6
  grip_user_auth_token?: string;
7
7
  grip_user_auth_token_expiry?: number;
8
8
  grip_user_consent?: string;
9
+ grip_user_kyc_status?: string;
9
10
  created_at?: Date;
10
11
  updated_at?: Date;
11
12
  }
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc --build",
9
- "build:ws": "tsc --build && copy package.json dist/",
10
9
  "postbuild": "cp package.json dist/ ",
11
10
  "publish:patch": "npm version patch && npm run build && cd dist && npm publish --access public",
12
11
  "publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public"
@@ -16,8 +15,5 @@
16
15
  "license": "ISC",
17
16
  "dependencies": {
18
17
  "mysql2": "^3.9.9"
19
- },
20
- "devDependencies": {
21
- "cpy-cli": "^5.0.0"
22
18
  }
23
19
  }