@stashfin/mysql2 1.4.30 → 1.4.34
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/Common.d.ts +18 -0
- package/models/Common.js +2 -0
- package/models/Customer.d.ts +8 -0
- package/models/Offer.d.ts +1 -19
- package/models/PanDetails.d.ts +1 -1
- package/models/ReferAndEarn.d.ts +2 -20
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Rule {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
operator: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Rules {
|
|
7
|
+
data: Rule[];
|
|
8
|
+
}
|
|
9
|
+
export interface MetaData {
|
|
10
|
+
icon: string;
|
|
11
|
+
title: string;
|
|
12
|
+
eligibilityCriteria: string;
|
|
13
|
+
steps: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface Stat {
|
|
16
|
+
count: number;
|
|
17
|
+
total: number;
|
|
18
|
+
}
|
package/models/Common.js
ADDED
package/models/Customer.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export interface CustomerTable {
|
|
|
60
60
|
is_active?: number | null;
|
|
61
61
|
/** Defaults to: 0. */
|
|
62
62
|
is_deleted?: number | null;
|
|
63
|
+
journey_updated_at?: Date | null;
|
|
63
64
|
}
|
|
64
65
|
export interface DemographicsTable {
|
|
65
66
|
id?: number;
|
|
@@ -90,6 +91,13 @@ export interface DemographicsTable {
|
|
|
90
91
|
/** Defaults to: CURRENT_TIMESTAMP. */
|
|
91
92
|
created_at?: Date | null;
|
|
92
93
|
updated_at?: Date | null;
|
|
94
|
+
nsdl_dob_matched?: number | null;
|
|
95
|
+
okyc_dob?: string | null;
|
|
96
|
+
dob_attempts?: number | null;
|
|
97
|
+
is_upgradable?: number | null;
|
|
98
|
+
has_imps?: number | null;
|
|
99
|
+
journey_inactive?: number | null;
|
|
100
|
+
repeat_journey?: number | null;
|
|
93
101
|
}
|
|
94
102
|
export interface CustomerBanksTable {
|
|
95
103
|
id?: number;
|
package/models/Offer.d.ts
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
import { RowDataPacket } from "mysql2";
|
|
2
|
-
|
|
3
|
-
key: string;
|
|
4
|
-
value: string | number;
|
|
5
|
-
operator: string;
|
|
6
|
-
}
|
|
7
|
-
interface Rules {
|
|
8
|
-
data: Rule[];
|
|
9
|
-
}
|
|
10
|
-
interface MetaData {
|
|
11
|
-
icon: string;
|
|
12
|
-
title: string;
|
|
13
|
-
eligibilityCriteria: string;
|
|
14
|
-
steps: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface Stat {
|
|
17
|
-
count: number;
|
|
18
|
-
total: number;
|
|
19
|
-
}
|
|
2
|
+
import { MetaData, Rules, Stat } from "./Common";
|
|
20
3
|
export interface OfferTable {
|
|
21
4
|
id: number;
|
|
22
5
|
title: string;
|
|
@@ -48,4 +31,3 @@ export interface OfferTable {
|
|
|
48
31
|
}
|
|
49
32
|
export interface OfferModel extends OfferTable, RowDataPacket {
|
|
50
33
|
}
|
|
51
|
-
export {};
|
package/models/PanDetails.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ export interface PanDetailsTable {
|
|
|
14
14
|
/** Defaults to: CURRENT_TIMESTAMP. */
|
|
15
15
|
updated_at?: Date | null;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface PanDetailsModel extends PanDetailsTable, RowDataPacket {
|
|
18
18
|
}
|
package/models/ReferAndEarn.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RowDataPacket } from "mysql2";
|
|
2
|
+
import { MetaData, Rules, Stat } from "./Common";
|
|
2
3
|
export interface ReferEarnTrackingTable {
|
|
3
4
|
id?: number;
|
|
4
5
|
referrer_id: number;
|
|
@@ -11,28 +12,10 @@ export interface ReferEarnTrackingTable {
|
|
|
11
12
|
created_at: Date;
|
|
12
13
|
updated_at: Date;
|
|
13
14
|
}
|
|
14
|
-
interface
|
|
15
|
-
key: string;
|
|
16
|
-
value: string | number;
|
|
17
|
-
operator: string;
|
|
18
|
-
}
|
|
19
|
-
interface CommissionRule {
|
|
15
|
+
export interface CommissionRule {
|
|
20
16
|
first: number;
|
|
21
17
|
trailing: number;
|
|
22
18
|
}
|
|
23
|
-
interface Rules {
|
|
24
|
-
data: Rule[];
|
|
25
|
-
}
|
|
26
|
-
interface MetaData {
|
|
27
|
-
icon: string;
|
|
28
|
-
title: string;
|
|
29
|
-
eligibilityCriteria: string;
|
|
30
|
-
steps: string[];
|
|
31
|
-
}
|
|
32
|
-
export interface Stat {
|
|
33
|
-
count: number;
|
|
34
|
-
total: number;
|
|
35
|
-
}
|
|
36
19
|
export interface ReferralOfferTable {
|
|
37
20
|
id: number;
|
|
38
21
|
title: string;
|
|
@@ -61,4 +44,3 @@ export interface ReferEarnTrackingModel extends ReferEarnTrackingTable, RowDataP
|
|
|
61
44
|
}
|
|
62
45
|
export interface ReferralOfferModel extends ReferralOfferTable, RowDataPacket {
|
|
63
46
|
}
|
|
64
|
-
export {};
|