@stashfin/mysql2 1.4.82 → 1.4.83
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/Customer.d.ts +32 -6
- package/models/Customer.js +10 -0
- package/package.json +1 -1
package/models/Customer.d.ts
CHANGED
|
@@ -5,6 +5,13 @@ export type JSONObject = {
|
|
|
5
5
|
[member: string]: JSONPrimitive;
|
|
6
6
|
};
|
|
7
7
|
export type JSONArray = Array<JSONValue>;
|
|
8
|
+
export declare enum Category {
|
|
9
|
+
libr8 = "libr8",
|
|
10
|
+
elev8 = "elev8",
|
|
11
|
+
freedom = "freedom",
|
|
12
|
+
cb = "cb",
|
|
13
|
+
sentinel = "sentinel"
|
|
14
|
+
}
|
|
8
15
|
export interface CustomerTable {
|
|
9
16
|
id: number;
|
|
10
17
|
mobile: string;
|
|
@@ -32,7 +39,7 @@ export interface CustomerTable {
|
|
|
32
39
|
app_version?: string | null;
|
|
33
40
|
biometric_enabled?: number | null;
|
|
34
41
|
journey_sequence?: number | null;
|
|
35
|
-
category?:
|
|
42
|
+
category?: Category | null;
|
|
36
43
|
loc_limit?: number | null;
|
|
37
44
|
/** Defaults to: active. */
|
|
38
45
|
status?: 'active' | 'inactive' | null;
|
|
@@ -197,18 +204,35 @@ export interface SuspendedAppsTable {
|
|
|
197
204
|
}
|
|
198
205
|
export interface AaTransactionsTable {
|
|
199
206
|
id?: number;
|
|
200
|
-
|
|
207
|
+
amount?: number | null;
|
|
208
|
+
balance?: number | null;
|
|
209
|
+
category?: string | null;
|
|
210
|
+
categoryCode?: string | null;
|
|
211
|
+
customer_id?: number | null;
|
|
212
|
+
merchantName?: string | null;
|
|
213
|
+
narration?: string | null;
|
|
214
|
+
payment_mode?: string | null;
|
|
215
|
+
reference?: string | null;
|
|
216
|
+
subcategory?: string | null;
|
|
217
|
+
txn_date?: Date | null;
|
|
218
|
+
txn_id?: string | null;
|
|
219
|
+
type?: string | null;
|
|
220
|
+
created_at?: Date | null;
|
|
221
|
+
updated_at?: Date | null;
|
|
222
|
+
}
|
|
223
|
+
export interface AaDetailsTable {
|
|
224
|
+
id?: number;
|
|
225
|
+
account?: JSONValue | null;
|
|
226
|
+
analytics?: JSONValue | null;
|
|
201
227
|
customer_id?: number | null;
|
|
202
|
-
loan_id?: number | null;
|
|
203
|
-
processed_by?: number | null;
|
|
204
228
|
reference_id?: string | null;
|
|
205
229
|
sub_status?: string | null;
|
|
206
230
|
template?: string | null;
|
|
207
231
|
tracking_id?: string | null;
|
|
208
232
|
trans_status?: string | null;
|
|
209
|
-
/** Defaults to: CURRENT_TIMESTAMP. */
|
|
210
|
-
updated_at?: Date | null;
|
|
211
233
|
created_at?: Date | null;
|
|
234
|
+
updated_at?: Date | null;
|
|
235
|
+
vua_id?: string | null;
|
|
212
236
|
}
|
|
213
237
|
export interface CustomerModel extends CustomerTable, RowDataPacket {
|
|
214
238
|
}
|
|
@@ -234,3 +258,5 @@ export interface SuspendedAppsModel extends SuspendedAppsTable, RowDataPacket {
|
|
|
234
258
|
}
|
|
235
259
|
export interface AaTransactionsModel extends AaTransactionsTable, RowDataPacket {
|
|
236
260
|
}
|
|
261
|
+
export interface AaDetailsModel extends AaDetailsTable, RowDataPacket {
|
|
262
|
+
}
|
package/models/Customer.js
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Category = void 0;
|
|
4
|
+
// Interface for the customers table
|
|
5
|
+
var Category;
|
|
6
|
+
(function (Category) {
|
|
7
|
+
Category["libr8"] = "libr8";
|
|
8
|
+
Category["elev8"] = "elev8";
|
|
9
|
+
Category["freedom"] = "freedom";
|
|
10
|
+
Category["cb"] = "cb";
|
|
11
|
+
Category["sentinel"] = "sentinel";
|
|
12
|
+
})(Category || (exports.Category = Category = {}));
|