@stashfin/mysql2 1.4.270 → 1.4.272
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/Affiliate.d.ts +17 -0
- package/models/Affiliate.js +0 -1
- package/models/Banners.d.ts +21 -0
- package/models/Banners.js +2 -0
- package/models/PartnerDocuments.d.ts +1 -0
- package/models/StCustomerDetail.d.ts +3 -3
- package/package.json +1 -1
package/models/Affiliate.d.ts
CHANGED
|
@@ -42,7 +42,24 @@ export interface AffiliateOrdersTable {
|
|
|
42
42
|
updated_at?: Date;
|
|
43
43
|
expected_confirmation_at: string;
|
|
44
44
|
}
|
|
45
|
+
export interface AllBrandsView {
|
|
46
|
+
brands: BrandView[];
|
|
47
|
+
}
|
|
48
|
+
export interface BrandView {
|
|
49
|
+
id: number;
|
|
50
|
+
priority: string;
|
|
51
|
+
percent: number;
|
|
52
|
+
amount: number;
|
|
53
|
+
logo: string;
|
|
54
|
+
name: string;
|
|
55
|
+
top_label: string;
|
|
56
|
+
bottom_label: string;
|
|
57
|
+
}
|
|
45
58
|
export interface CampaignModel extends CampaignTable, RowDataPacket {
|
|
46
59
|
}
|
|
47
60
|
export interface AffiliateOrdersModel extends AffiliateOrdersTable, RowDataPacket {
|
|
48
61
|
}
|
|
62
|
+
export interface AllBrandsViewModel extends AllBrandsView, RowDataPacket {
|
|
63
|
+
}
|
|
64
|
+
export interface BrandViewModel extends BrandView, RowDataPacket {
|
|
65
|
+
}
|
package/models/Affiliate.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export type JSONPrimitive = string | number | boolean | null;
|
|
3
|
+
export type JSONValue = JSONObject | JSONArray;
|
|
4
|
+
export type JSONObject = {
|
|
5
|
+
[member: string]: JSONPrimitive;
|
|
6
|
+
};
|
|
7
|
+
export type JSONArray = Array<JSONValue>;
|
|
8
|
+
export interface BannerTable {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
image_url: string;
|
|
12
|
+
web_url?: string | null;
|
|
13
|
+
landing_page?: string | null;
|
|
14
|
+
api_mode?: string | null;
|
|
15
|
+
app_version: number;
|
|
16
|
+
status: string;
|
|
17
|
+
created_at: Date;
|
|
18
|
+
updated_at: Date;
|
|
19
|
+
}
|
|
20
|
+
export interface BannerModel extends BannerTable, RowDataPacket {
|
|
21
|
+
}
|
|
@@ -5,6 +5,7 @@ export interface PartnerDocumentsTable {
|
|
|
5
5
|
akara_loan_id?: number | null;
|
|
6
6
|
partner_lead_id?: number | null;
|
|
7
7
|
partner_loan_id?: number | null;
|
|
8
|
+
category?: 'kyc' | 'loan' | null;
|
|
8
9
|
doc_type?: string | null;
|
|
9
10
|
doc_path?: string | null;
|
|
10
11
|
doc_password?: string | null;
|
|
@@ -26,8 +26,8 @@ export interface StCustomerDetailTable {
|
|
|
26
26
|
e_aadhar_number?: Buffer | null;
|
|
27
27
|
aadhar_name?: string | null;
|
|
28
28
|
profile_pic?: string | null;
|
|
29
|
-
profile_pic_status?:
|
|
30
|
-
create_date
|
|
29
|
+
profile_pic_status?: number | null;
|
|
30
|
+
create_date?: Date;
|
|
31
31
|
is_otp_done?: boolean | null;
|
|
32
32
|
is_email_verify_done?: boolean;
|
|
33
33
|
is_perfios_on?: number | null;
|
|
@@ -63,7 +63,7 @@ export interface StCustomerDetailTable {
|
|
|
63
63
|
fngr_print?: number;
|
|
64
64
|
customer_mpin?: string;
|
|
65
65
|
razor_id?: number;
|
|
66
|
-
update_date
|
|
66
|
+
update_date?: Date;
|
|
67
67
|
ovd_id?: number | null;
|
|
68
68
|
ovd_number?: string | null;
|
|
69
69
|
e_ovd_number?: Buffer | null;
|