@stashfin/mysql2 1.4.647 → 1.4.649
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/EqxTransactions.d.ts +1 -0
- package/models/WealthUserV2.d.ts +41 -0
- package/package.json +1 -1
- package/models/EQXCustomerModels.d.ts +0 -24
- package/models/EqxDeviceBindings.d.ts +0 -22
- package/models/EqxDeviceBindings.js +0 -13
- package/models/RewardsOffer.d.ts +0 -33
- package/models/RewardsOffer.js +0 -2
- package/models/WealthWebhook.d.ts +0 -14
- package/models/WealthWebhook.js +0 -2
- /package/models/{EQXCustomerModels.js → WealthUserV2.js} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RowDataPacket } from 'mysql2';
|
|
2
|
+
export interface WealthUserTable {
|
|
3
|
+
customer_id: number;
|
|
4
|
+
first_name: string;
|
|
5
|
+
last_name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
kyc_status?: string;
|
|
9
|
+
user_external_id: string;
|
|
10
|
+
gateway_id: string;
|
|
11
|
+
auth_token?: string;
|
|
12
|
+
auth_token_expiry?: number;
|
|
13
|
+
consent?: string;
|
|
14
|
+
created_at?: Date;
|
|
15
|
+
updated_at?: Date;
|
|
16
|
+
}
|
|
17
|
+
export interface WealthTransactionTable {
|
|
18
|
+
id?: number;
|
|
19
|
+
customer_id: number;
|
|
20
|
+
gateway: string;
|
|
21
|
+
rrn?: string;
|
|
22
|
+
user_external_id?: string;
|
|
23
|
+
amount?: number;
|
|
24
|
+
kyc_status?: 'pending' | 'rejected' | 'completed';
|
|
25
|
+
kyc_stage?: string;
|
|
26
|
+
created_at?: Date;
|
|
27
|
+
updated_at?: Date;
|
|
28
|
+
is_deleted?: boolean;
|
|
29
|
+
is_active?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface WealthEarningTable {
|
|
32
|
+
id: number;
|
|
33
|
+
earnings: number;
|
|
34
|
+
customer_id: number;
|
|
35
|
+
}
|
|
36
|
+
export interface WealthUserModel extends WealthUserTable, RowDataPacket {
|
|
37
|
+
}
|
|
38
|
+
export interface WealthTransactionModel extends WealthTransactionTable, RowDataPacket {
|
|
39
|
+
}
|
|
40
|
+
export interface WealthEarningModel extends WealthEarningTable, RowDataPacket {
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { RowDataPacket } from "mysql2";
|
|
2
|
-
interface EqxCustomersTable {
|
|
3
|
-
id: number;
|
|
4
|
-
mobile: string;
|
|
5
|
-
first_name?: string;
|
|
6
|
-
last_name?: string;
|
|
7
|
-
upi_number?: string;
|
|
8
|
-
upi_onboarding_status?: boolean;
|
|
9
|
-
device_id?: string;
|
|
10
|
-
push_id?: string;
|
|
11
|
-
login_ip?: string;
|
|
12
|
-
vpa?: string;
|
|
13
|
-
referral_code?: string;
|
|
14
|
-
token?: string;
|
|
15
|
-
email?: string;
|
|
16
|
-
biometric_enabled?: boolean;
|
|
17
|
-
status?: string;
|
|
18
|
-
is_deleted?: boolean;
|
|
19
|
-
created_at?: Date;
|
|
20
|
-
updated_at?: Date;
|
|
21
|
-
}
|
|
22
|
-
export interface EqxCustomerModel extends EqxCustomersTable, RowDataPacket {
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { RowDataPacket } from "mysql2";
|
|
2
|
-
export declare enum StatusEnum {
|
|
3
|
-
Pending = "pending",
|
|
4
|
-
Success = "success"
|
|
5
|
-
}
|
|
6
|
-
export declare enum YesNoEnum {
|
|
7
|
-
Y = "Y",
|
|
8
|
-
N = "N"
|
|
9
|
-
}
|
|
10
|
-
export interface DeviceBindingTable {
|
|
11
|
-
id: number;
|
|
12
|
-
customer_id: number;
|
|
13
|
-
device_id: string;
|
|
14
|
-
sim_no?: string | null;
|
|
15
|
-
sim_network?: string | null;
|
|
16
|
-
status: StatusEnum;
|
|
17
|
-
is_active: YesNoEnum;
|
|
18
|
-
created_at?: Date | null;
|
|
19
|
-
updated_at?: Date | null;
|
|
20
|
-
}
|
|
21
|
-
export interface DeviceBindingModel extends DeviceBindingTable, RowDataPacket {
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.YesNoEnum = exports.StatusEnum = void 0;
|
|
4
|
-
var StatusEnum;
|
|
5
|
-
(function (StatusEnum) {
|
|
6
|
-
StatusEnum["Pending"] = "pending";
|
|
7
|
-
StatusEnum["Success"] = "success";
|
|
8
|
-
})(StatusEnum || (exports.StatusEnum = StatusEnum = {}));
|
|
9
|
-
var YesNoEnum;
|
|
10
|
-
(function (YesNoEnum) {
|
|
11
|
-
YesNoEnum["Y"] = "Y";
|
|
12
|
-
YesNoEnum["N"] = "N";
|
|
13
|
-
})(YesNoEnum || (exports.YesNoEnum = YesNoEnum = {}));
|
package/models/RewardsOffer.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { RowDataPacket } from 'mysql2';
|
|
2
|
-
interface Offers {
|
|
3
|
-
id: number;
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
offer_code: string;
|
|
7
|
-
category_id: number;
|
|
8
|
-
total_limit: number;
|
|
9
|
-
user_daily_limit: number;
|
|
10
|
-
user_weekly_limit: number;
|
|
11
|
-
user_monthly_limit: number;
|
|
12
|
-
backup_offer_id: number | null;
|
|
13
|
-
tier: number | null;
|
|
14
|
-
reward_type_id: number;
|
|
15
|
-
reward_nature: string;
|
|
16
|
-
min_value: number;
|
|
17
|
-
max_value: number;
|
|
18
|
-
probability: JSON;
|
|
19
|
-
created_at: Date;
|
|
20
|
-
updated_at: Date;
|
|
21
|
-
}
|
|
22
|
-
interface OfferCodeUsage {
|
|
23
|
-
id: number;
|
|
24
|
-
offer_id: number;
|
|
25
|
-
user_id: number;
|
|
26
|
-
created_at: Date;
|
|
27
|
-
updated_at: Date;
|
|
28
|
-
}
|
|
29
|
-
export interface OffersModel extends Offers, RowDataPacket {
|
|
30
|
-
}
|
|
31
|
-
export interface OfferCodeUsageModel extends OfferCodeUsage, RowDataPacket {
|
|
32
|
-
}
|
|
33
|
-
export {};
|
package/models/RewardsOffer.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RowDataPacket } from 'mysql2';
|
|
2
|
-
export interface WealthWebhookTable {
|
|
3
|
-
id?: number;
|
|
4
|
-
customer_id?: number;
|
|
5
|
-
gateway_id?: string;
|
|
6
|
-
event_type?: string;
|
|
7
|
-
event_property?: string;
|
|
8
|
-
event_status?: string;
|
|
9
|
-
webhook_data?: string;
|
|
10
|
-
created_at?: Date;
|
|
11
|
-
updated_at?: Date;
|
|
12
|
-
}
|
|
13
|
-
export interface WealthWebhookModel extends WealthWebhookTable, RowDataPacket {
|
|
14
|
-
}
|
package/models/WealthWebhook.js
DELETED
|
File without changes
|