@stashfin/mysql2 1.4.8 → 1.4.9
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 +7 -3
- package/models/StashCash.d.ts +5 -5
- package/package.json +1 -1
package/models/Offer.d.ts
CHANGED
|
@@ -13,20 +13,24 @@ interface MetaData {
|
|
|
13
13
|
eligibilityCriteria: string;
|
|
14
14
|
steps: string[];
|
|
15
15
|
}
|
|
16
|
+
interface Stat {
|
|
17
|
+
count: number;
|
|
18
|
+
total: number;
|
|
19
|
+
}
|
|
16
20
|
export interface OfferTable {
|
|
17
21
|
id: number;
|
|
18
22
|
title: string;
|
|
19
23
|
reward_type: string;
|
|
20
24
|
amount: number;
|
|
21
|
-
|
|
25
|
+
sc_type: string;
|
|
22
26
|
discount_type: string;
|
|
23
27
|
max_value: number;
|
|
24
28
|
rpu: number;
|
|
25
29
|
budget: number;
|
|
26
30
|
icon: string;
|
|
27
31
|
event_name: string;
|
|
32
|
+
event_sub_type: string;
|
|
28
33
|
description: string;
|
|
29
|
-
validity: number;
|
|
30
34
|
redirect_url: string;
|
|
31
35
|
offer_type: string;
|
|
32
36
|
start_required: boolean;
|
|
@@ -37,7 +41,7 @@ export interface OfferTable {
|
|
|
37
41
|
expiry: Date;
|
|
38
42
|
rules: Rules;
|
|
39
43
|
metaData: MetaData;
|
|
40
|
-
stats:
|
|
44
|
+
stats: Stat;
|
|
41
45
|
created_at: Date;
|
|
42
46
|
updated_at: Date;
|
|
43
47
|
created_by: string;
|
package/models/StashCash.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ export interface StashCashTable {
|
|
|
9
9
|
created_at?: Date | null;
|
|
10
10
|
updated_at?: Date | null;
|
|
11
11
|
user_guide?: boolean;
|
|
12
|
-
is_active?:
|
|
13
|
-
is_deleted?:
|
|
12
|
+
is_active?: boolean;
|
|
13
|
+
is_deleted?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export interface StashCashTrascationTable {
|
|
16
16
|
id?: number;
|
|
17
17
|
customer_id?: number;
|
|
18
18
|
campaign_id?: number;
|
|
19
|
-
txn_id:
|
|
19
|
+
txn_id: string;
|
|
20
20
|
sc_type: string;
|
|
21
21
|
amount?: number;
|
|
22
22
|
remaining: number;
|
|
@@ -27,8 +27,8 @@ export interface StashCashTrascationTable {
|
|
|
27
27
|
/** Defaults to: CURRENT_TIMESTAMP. */
|
|
28
28
|
created_at?: Date | null;
|
|
29
29
|
updated_at?: Date | null;
|
|
30
|
-
is_active?:
|
|
31
|
-
is_deleted?:
|
|
30
|
+
is_active?: boolean;
|
|
31
|
+
is_deleted?: boolean;
|
|
32
32
|
}
|
|
33
33
|
export interface StashCashModel extends StashCashTable, RowDataPacket {
|
|
34
34
|
}
|