@stashfin/mysql2 1.4.652 → 1.4.654

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.
@@ -4,6 +4,7 @@ export interface PfmAccountRawDataLinksTable {
4
4
  customer_id: number;
5
5
  account_number: string;
6
6
  link_ref_number: string;
7
+ reference_id: string;
7
8
  session_id?: string;
8
9
  from_date: Date;
9
10
  to_date: Date;
@@ -1,28 +1,30 @@
1
1
  import { RowDataPacket } from 'mysql2';
2
2
  export interface TransactionsTable {
3
- id: number;
4
- customer_id: number | null;
5
- link_ref_number: string | null;
3
+ id?: number;
4
+ customer_id: number;
5
+ transaction_id: string;
6
6
  account_number: string | null;
7
- unique_id: string | null;
8
- reference: string | null;
9
- narration: string | null;
10
- counter_party: string | null;
11
- payment_mode: string | null;
12
- type: string | null;
13
- amount: number | null;
14
- balance: number | null;
7
+ unique_id?: string | null;
8
+ reference?: string | null;
9
+ narration?: string | null;
10
+ counter_party?: string | null;
11
+ payment_mode?: string | null;
12
+ type?: string | null;
13
+ amount?: number | null;
14
+ balance?: number | null;
15
15
  date_of_transaction: Date | null;
16
16
  value_date: Date | null;
17
17
  category: string | null;
18
18
  subcategory: string | null;
19
19
  account: string | null;
20
- merchant_name: string | null;
20
+ merchant_name: string;
21
21
  category_code: string | null;
22
22
  merchant_logo_code: string | null;
23
23
  linked_acc_ref: string | null;
24
24
  recurring: number | null;
25
25
  bank: string | null;
26
+ create_date?: Date;
27
+ update_date?: Date;
26
28
  }
27
29
  export interface TransactionsModel extends TransactionsTable, RowDataPacket {
28
30
  }
@@ -0,0 +1,25 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export declare enum ComplaintStatusEnum {
3
+ Pending = "pending",
4
+ Resolved = "resolved",
5
+ Rejected = "rejected"
6
+ }
7
+ export interface EqxComplaintTable {
8
+ id: string;
9
+ customer_id: number;
10
+ payer_vpa: string;
11
+ payee_vpa: string;
12
+ complaint_ref_no: string;
13
+ payer_name?: string;
14
+ payee_name?: string;
15
+ txn_amount: number;
16
+ status: ComplaintStatusEnum;
17
+ response_code?: string;
18
+ response_message?: string;
19
+ remarks?: string;
20
+ original_txn_id?: string;
21
+ created_at?: Date | null;
22
+ updated_at?: Date | null;
23
+ }
24
+ export interface EqxComplaintModel extends EqxComplaintTable, RowDataPacket {
25
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComplaintStatusEnum = void 0;
4
+ // Enum definitions for specific fields
5
+ var ComplaintStatusEnum;
6
+ (function (ComplaintStatusEnum) {
7
+ ComplaintStatusEnum["Pending"] = "pending";
8
+ ComplaintStatusEnum["Resolved"] = "resolved";
9
+ ComplaintStatusEnum["Rejected"] = "rejected";
10
+ })(ComplaintStatusEnum || (exports.ComplaintStatusEnum = ComplaintStatusEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.652",
3
+ "version": "1.4.654",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",