@stashfin/mysql2 1.4.614 → 1.4.615

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
@@ -25,7 +25,7 @@ export interface OfferTable {
25
25
  sc_expiry: Date | string;
26
26
  expiry: Date | string;
27
27
  rules: Rules;
28
- metaData: MetaData;
28
+ metadata: MetaData;
29
29
  stats: Stat;
30
30
  created_at: Date | string;
31
31
  updated_at: Date | string;
@@ -12,13 +12,24 @@ export interface WealthTransactionTable {
12
12
  updated_at?: Date;
13
13
  is_deleted?: number;
14
14
  is_active?: number;
15
+ cashback_transaction_id?: number;
16
+ cashback_amount?: number;
17
+ cashback_status?: string;
15
18
  }
16
- export interface WealthEarningTable {
17
- id: number;
19
+ export interface EarningsTable {
20
+ id?: number;
18
21
  earnings: number;
19
22
  customer_id: number;
23
+ type: string;
24
+ offer_id: number;
25
+ offer_name: string;
26
+ status?: string;
27
+ is_deleted?: boolean;
28
+ is_active?: boolean;
29
+ created_at?: string;
30
+ updated_at?: string;
20
31
  }
21
- export interface WealthTransactionModel extends WealthTransactionTable, RowDataPacket {
32
+ export interface EarningsModel extends EarningsTable, RowDataPacket {
22
33
  }
23
- export interface WealthEarningModel extends WealthEarningTable, RowDataPacket {
34
+ export interface WealthTransactionModel extends WealthTransactionTable, RowDataPacket {
24
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.614",
3
+ "version": "1.4.615",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",