@stashfin/mysql2 1.4.37 → 1.4.39

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.
Files changed (85) hide show
  1. package/{dist/models → models}/Customer.d.ts +15 -0
  2. package/{dist/models → models}/ReferAndEarn.d.ts +1 -0
  3. package/package.json +1 -1
  4. package/README.md +0 -55
  5. package/dist/index copy.d.ts +0 -17
  6. package/dist/index copy.js +0 -73
  7. package/dist/models/location.d.ts +0 -19
  8. package/dist/models/location.js +0 -2
  9. package/dist/package.json +0 -23
  10. package/src/index.ts +0 -128
  11. package/src/indexPromise.ts +0 -112
  12. package/src/models/BBPSCustomerBillProviders.ts +0 -27
  13. package/src/models/BBPSProviders.ts +0 -24
  14. package/src/models/BBPSTransactions.ts +0 -28
  15. package/src/models/BBPSUtilities.ts +0 -14
  16. package/src/models/BBPSVendor.ts +0 -12
  17. package/src/models/Common.ts +0 -21
  18. package/src/models/Customer.ts +0 -169
  19. package/src/models/DashboardBlock.ts +0 -32
  20. package/src/models/Installments.ts +0 -37
  21. package/src/models/JourneySteps.ts +0 -24
  22. package/src/models/KycDetails.ts +0 -20
  23. package/src/models/Loans.ts +0 -47
  24. package/src/models/Location.ts +0 -19
  25. package/src/models/Offer.ts +0 -37
  26. package/src/models/PanDetails.ts +0 -19
  27. package/src/models/ReferAndEarn.ts +0 -50
  28. package/src/models/StashCash.ts +0 -46
  29. package/src/models/User.ts +0 -21
  30. package/src/models/UserAuthToken.ts +0 -12
  31. package/src/models/UserDetails.ts +0 -12
  32. package/src/models/UserKYCBank.ts +0 -9
  33. package/src/models/UserKYCPan.ts +0 -15
  34. package/src/models/WealthUser.ts +0 -36
  35. package/tsconfig.json +0 -16
  36. /package/{dist/index.d.ts → index.d.ts} +0 -0
  37. /package/{dist/index.js → index.js} +0 -0
  38. /package/{dist/indexPromise.d.ts → indexPromise.d.ts} +0 -0
  39. /package/{dist/indexPromise.js → indexPromise.js} +0 -0
  40. /package/{dist/models → models}/BBPSCustomerBillProviders.d.ts +0 -0
  41. /package/{dist/models → models}/BBPSCustomerBillProviders.js +0 -0
  42. /package/{dist/models → models}/BBPSProviders.d.ts +0 -0
  43. /package/{dist/models → models}/BBPSProviders.js +0 -0
  44. /package/{dist/models → models}/BBPSTransactions.d.ts +0 -0
  45. /package/{dist/models → models}/BBPSTransactions.js +0 -0
  46. /package/{dist/models → models}/BBPSUtilities.d.ts +0 -0
  47. /package/{dist/models → models}/BBPSUtilities.js +0 -0
  48. /package/{dist/models → models}/BBPSVendor.d.ts +0 -0
  49. /package/{dist/models → models}/BBPSVendor.js +0 -0
  50. /package/{dist/models → models}/Banners.d.ts +0 -0
  51. /package/{dist/models → models}/Banners.js +0 -0
  52. /package/{dist/models → models}/Common.d.ts +0 -0
  53. /package/{dist/models → models}/Common.js +0 -0
  54. /package/{dist/models → models}/Customer.js +0 -0
  55. /package/{dist/models → models}/DashboardBlock.d.ts +0 -0
  56. /package/{dist/models → models}/DashboardBlock.js +0 -0
  57. /package/{dist/models → models}/Installments.d.ts +0 -0
  58. /package/{dist/models → models}/Installments.js +0 -0
  59. /package/{dist/models → models}/JourneySteps.d.ts +0 -0
  60. /package/{dist/models → models}/JourneySteps.js +0 -0
  61. /package/{dist/models → models}/KycDetails.d.ts +0 -0
  62. /package/{dist/models → models}/KycDetails.js +0 -0
  63. /package/{dist/models → models}/Loans.d.ts +0 -0
  64. /package/{dist/models → models}/Loans.js +0 -0
  65. /package/{dist/models → models}/Location.d.ts +0 -0
  66. /package/{dist/models → models}/Location.js +0 -0
  67. /package/{dist/models → models}/Offer.d.ts +0 -0
  68. /package/{dist/models → models}/Offer.js +0 -0
  69. /package/{dist/models → models}/PanDetails.d.ts +0 -0
  70. /package/{dist/models → models}/PanDetails.js +0 -0
  71. /package/{dist/models → models}/ReferAndEarn.js +0 -0
  72. /package/{dist/models → models}/StashCash.d.ts +0 -0
  73. /package/{dist/models → models}/StashCash.js +0 -0
  74. /package/{dist/models → models}/User.d.ts +0 -0
  75. /package/{dist/models → models}/User.js +0 -0
  76. /package/{dist/models → models}/UserAuthToken.d.ts +0 -0
  77. /package/{dist/models → models}/UserAuthToken.js +0 -0
  78. /package/{dist/models → models}/UserDetails.d.ts +0 -0
  79. /package/{dist/models → models}/UserDetails.js +0 -0
  80. /package/{dist/models → models}/UserKYCBank.d.ts +0 -0
  81. /package/{dist/models → models}/UserKYCBank.js +0 -0
  82. /package/{dist/models → models}/UserKYCPan.d.ts +0 -0
  83. /package/{dist/models → models}/UserKYCPan.js +0 -0
  84. /package/{dist/models → models}/WealthUser.d.ts +0 -0
  85. /package/{dist/models → models}/WealthUser.js +0 -0
@@ -1,169 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
- export type JSONPrimitive = string | number | boolean | null;
3
- export type JSONValue = JSONObject | JSONArray;
4
- export type JSONObject = { [member: string]: JSONPrimitive };
5
- export type JSONArray = Array<JSONValue>;
6
-
7
- // Interface for the customers table
8
- export interface CustomerTable {
9
- id: number;
10
- mobile: string;
11
- email?: string | null;
12
- first_name?: string | null;
13
- middle_name?: string | null;
14
- last_name?: string | null;
15
- father_name?: string | null;
16
- mother_maiden_name?: string | null;
17
- dob?: Date | null;
18
- company_name?: string | null;
19
- official_email?: string | null;
20
- pincode?: string | null;
21
- mpin?: string | null;
22
- pan?: string | null;
23
- aadhaar?: string | null;
24
- mobile_verified?: number | null;
25
- email_verified?: number | null;
26
- ip?: string | null;
27
- device_id?: string | null;
28
- is_registered?: number | null;
29
- mobile_hash?: string | null;
30
- email_hash?: string | null;
31
- os_version?: string | null;
32
- push_id?: string | null;
33
- auth_token?: string | null;
34
- app_version?: string | null;
35
- biometric_enabled?: number | null;
36
- journey_sequence?: number | null;
37
- category?: string | null;
38
- loc_limit?: number | null;
39
- /** Defaults to: active. */
40
- status?: 'active' | 'inactive' | null;
41
- source?: string | null;
42
- tnc_version?: string | null;
43
- login_date?: Date | null;
44
- min_tenure?: number | null;
45
- max_tenure?: number | null;
46
- roi?: number | null;
47
- processing_rate?: number | null;
48
- agent_id?: number | null;
49
- /** Defaults to: new */
50
- application_type?: string | null;
51
- /** Defaults to: incomplete */
52
- application_status?: string | null;
53
- /** Defaults to: organic */
54
- customer_type?: string | null;
55
- /** Defaults to: CURRENT_TIMESTAMP. */
56
- created_at?: Date | null;
57
- /** Defaults to: CURRENT_TIMESTAMP. */
58
- updated_at?: Date | null;
59
- /** Defaults to: 1. */
60
- is_active?: number | null;
61
- /** Defaults to: 0. */
62
- is_deleted?: number | null;
63
- journey_updated_at?: Date | null;
64
- }
65
-
66
- // Interface for the demographics table
67
- export interface DemographicsTable {
68
- id?: number;
69
- customer_id: number;
70
- aadhaar_name?: string | null;
71
- crn?: string | null;
72
- device?: JSONValue | null;
73
- gender?: string | null;
74
- gst_no?: string | null;
75
- language?: string | null;
76
- latitude?: number | null;
77
- longitude?: number | null;
78
- marital_status?: string | null;
79
- occupation?: string | null;
80
- office_addr?: JSONValue | null;
81
- organization?: string | null;
82
- pan_url?: string | null;
83
- perm_addr?: JSONValue | null;
84
- res_addr?: JSONValue | null;
85
- salary?: number | null;
86
- salary_date?: Date | null;
87
- salary_mode?: string | null;
88
- selfie_url?: string | null;
89
- kyc_type?: string | null;
90
- emi_date?: Date | null;
91
- phone_matched?: number | null;
92
- dob_matched?: number | null;
93
- /** Defaults to: CURRENT_TIMESTAMP. */
94
- created_at?: Date | null;
95
- updated_at?: Date | null;
96
- nsdl_dob_matched?: number | null;
97
- okyc_dob?: string | null;
98
- dob_attempts?: number | null;
99
- is_upgradable?: number | null;
100
- has_imps?: number | null;
101
- journey_inactive?: number | null;
102
- repeat_journey?: number | null;
103
- }
104
-
105
- export interface CustomerBanksTable {
106
- id?: number;
107
- customer_id: number;
108
- account_number: string;
109
- address?: string | null;
110
- bank_name?: string | null;
111
- ifsc_code?: string | null;
112
- /** Defaults to: active. */
113
- status?: 'active' | 'inactive';
114
- is_primary?: boolean;
115
- /** Defaults to: CURRENT_TIMESTAMP. */
116
- created_at?: Date | null;
117
- updated_at?: Date | null;
118
- }
119
- export interface CustomerReferenceTable {
120
- id: number;
121
- customer_id: number;
122
- reference_name: string;
123
- relationship: 'Family' | 'Friend' | 'Colleague' | 'Other';
124
- mobile_number: string;
125
- email?: string;
126
- address: string;
127
- state_id: number;
128
- city_id: number;
129
- pincode: string;
130
- created_at?: Date | null;
131
- }
132
-
133
- export interface CustomerDocumentsTable {
134
- id?: number;
135
- customer_id?: number | null;
136
- pan_url?: string | null;
137
- aadhaar_url?: string | null;
138
- address_proof_url?: string | null;
139
- created_at?: Date | null;
140
- updated_at?: Date | null;
141
- }
142
-
143
- // Interface for the customer_device_history table
144
- export interface CustomerDeviceHistoryTable {
145
- id: number;
146
- customer_id: number;
147
- device?: string | null;
148
- device_id: string;
149
- ip?: string | null;
150
- os_version?: string | null;
151
- push_id?: string | null;
152
- app_version?: string | null;
153
- is_rooted?: boolean;
154
- created_at?: Date | null;
155
- updated_at?: Date | null;
156
- }
157
-
158
- // MySQL-specific interfaces extending RowDataPacket
159
- export interface CustomerModel extends CustomerTable, RowDataPacket { }
160
- export interface CustomerBanksModel extends CustomerBanksTable, RowDataPacket { }
161
- export interface CustomerDocumentsModel
162
- extends CustomerDocumentsTable,
163
- RowDataPacket { }
164
- export interface DemographicsModel extends DemographicsTable, RowDataPacket { }
165
- export interface CustomerReferenceModel
166
- extends CustomerReferenceTable,
167
- RowDataPacket { }
168
-
169
- export interface CustomerDeviceHistoryModel extends CustomerDeviceHistoryTable, RowDataPacket {}
@@ -1,32 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
- export type JSONPrimitive = string | number | boolean | null;
3
- export type JSONValue = JSONObject | JSONArray;
4
- export type JSONObject = { [member: string]: JSONPrimitive };
5
- export type JSONArray = Array<JSONValue>;
6
-
7
- export interface DashboardBlock {
8
- block_name: string;
9
- block_title: string;
10
- block_code: string;
11
- text: string;
12
- sub_text: string;
13
- image_url: string;
14
- video_url?: string;
15
- video_length?: number;
16
- action_url?: string;
17
- landing_page?: string;
18
- api_mode?: string;
19
- app_version: string;
20
- old_customers: boolean;
21
- is_new?: boolean;
22
- action_type?: string;
23
- color1?: string;
24
- color2?: string;
25
- image_trailing?: string;
26
- tag?: JSONValue ;
27
- overlay_image?: string;
28
-
29
- }
30
-
31
-
32
- export interface DashboardBlockModel extends DashboardBlock, RowDataPacket {}
@@ -1,37 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
- export type JSONPrimitive = string | number | boolean | null;
3
- export type JSONValue = JSONObject | JSONArray;
4
- export type JSONObject = { [member: string]: JSONPrimitive };
5
- export type JSONArray = Array<JSONValue>;
6
-
7
- // Interface for the Installments table
8
- export interface InstallmentsTable {
9
- id?: number | null;
10
- customer_id: number | null;
11
- loan_id?: number | null;
12
- seq_no: number | null;
13
- amount?: number | null;
14
- principal?: number | null;
15
- interest?: number | null;
16
- penalty?: number | null;
17
- r_principal?: number | null;
18
- r_interest?: number | null;
19
- r_penalty?: number | null;
20
- r_pif_principal?: number | null;
21
- r_pif_interest?: number | null;
22
- r_pif_penalty?: number | null;
23
- status?: 'active' | 'closed' | 'delayed' | 'paid' | 'future' | null;
24
- dpd?: number | null;
25
- due_date?: Date | null;
26
- discount?: number | null;
27
- starting_balance?: number | null;
28
- ending_balance?: number | null;
29
- closed_at?: Date | null;
30
- created_at?: Date | null;
31
- updated_at?: Date | null;
32
- is_active?: number | null;
33
- is_deleted?: number | null;
34
- }
35
-
36
- // MySQL-specific interfaces extending RowDataPacket
37
- export interface InstallmentsModel extends InstallmentsTable, RowDataPacket {}
@@ -1,24 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- export type JSONPrimitive = string | number | boolean | null;
4
- export type JSONValue = JSONObject | JSONArray;
5
- export type JSONObject = { [member: string]: JSONPrimitive };
6
- export type JSONArray = Array<JSONValue>;
7
-
8
- /**
9
- * Exposes all fields present in journey_steps as a typescript
10
- * interface.
11
- */
12
- export interface JourneySteps {
13
- id: number;
14
- category: string;
15
- step: string;
16
- data: JSONValue;
17
- sequence?: number | null;
18
- fields?: string | null;
19
- /** Defaults to: CURRENT_TIMESTAMP. */
20
- created_at?: Date | null;
21
- updated_at?: Date | null;
22
- }
23
-
24
- export interface JourneyStepsModel extends JourneySteps, RowDataPacket {}
@@ -1,20 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
- export type JSONPrimitive = string | number | boolean | null;
3
- export type JSONValue = JSONObject | JSONArray;
4
- export type JSONObject = { [member: string]: JSONPrimitive };
5
- export type JSONArray = Array<JSONValue>;
6
-
7
- export interface KycDetailsTable {
8
- id?: number;
9
- customer_id?: number | null;
10
- partner?: string | null;
11
- response?: JSONValue | null;
12
- txn_id?: string | null;
13
- /** Defaults to: CURRENT_TIMESTAMP. */
14
- created_at?: Date | null;
15
- /** Defaults to: CURRENT_TIMESTAMP. */
16
- updated_at?: Date | null;
17
- }
18
-
19
- // MySQL-specific interfaces extending RowDataPacket
20
- export interface KycDetailsModel extends KycDetailsTable, RowDataPacket {}
@@ -1,47 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
- export type JSONPrimitive = string | number | boolean | null;
3
- export type JSONValue = JSONObject | JSONArray;
4
- export type JSONObject = { [member: string]: JSONPrimitive };
5
- export type JSONArray = Array<JSONValue>;
6
-
7
- // Interface for the loan table
8
- export interface LoansTable {
9
- id?: number | null;
10
- customer_id: number | null;
11
- category?: string | null;
12
- ref_id: string | null;
13
- amount?: number | null;
14
- disbursal_amount?: number | null;
15
- bill_amount?: number | null;
16
- bill_date?: Date | null;
17
- roi?: number | null;
18
- tenure: number | null;
19
- fees?: JSONValue;
20
- daily_roi?: string | null;
21
- /** Defaults to: processing_fee. */
22
- disbursal_mode?:
23
- | 'IMPS'
24
- | 'NEFT'
25
- |null;
26
- /** Defaults to: active. */
27
- status?: 'pending' |'active' | 'close' | 'restructured'|'rejected'|'approved'|'cancelled'| null;
28
- source?: 'app' | 'thirdparty' | null;
29
- ip?: string | null;
30
- approval_date?: Date | null;
31
- disbursal_date?: string | null;
32
- closure_date?: Date | null;
33
- is_auto_processing?: number | null;
34
- remarks?: string | null;
35
- restructure_id?: number | null;
36
- emi_start_date?: Date | null;
37
- created_at?: Date | null;
38
- /** Defaults to: CURRENT_TIMESTAMP. */
39
- updated_at?: Date | null;
40
- /** Defaults to: 1. */
41
- is_active?: number | null;
42
- /** Defaults to: 0. */
43
- is_deleted?: number | null;
44
- }
45
-
46
- // MySQL-specific interfaces extending RowDataPacket
47
- export interface LoansModel extends LoansTable, RowDataPacket {}
@@ -1,19 +0,0 @@
1
-
2
- import { RowDataPacket } from 'mysql2';
3
- export type JSONPrimitive = string | number | boolean | null;
4
- export type JSONValue = JSONObject | JSONArray;
5
- export type JSONObject = { [member: string]: JSONPrimitive };
6
- export type JSONArray = Array<JSONValue>;
7
-
8
- export interface State {
9
- id: number;
10
- name: string;
11
- }
12
-
13
- export interface City {
14
- id: number;
15
- name: string;
16
- }
17
-
18
- export interface StateModel extends State, RowDataPacket {}
19
- export interface CityModel extends City, RowDataPacket {}
@@ -1,37 +0,0 @@
1
- import { RowDataPacket } from "mysql2";
2
- import { MetaData, Rules, Stat } from "./Common";
3
-
4
- export interface OfferTable {
5
- id: number;
6
- title: string;
7
- reward_type: string;
8
- amount: number;
9
- sc_type: string;
10
- discount_type: string;
11
- max_value: number;
12
- rpu: number;
13
- budget: number;
14
- icon: string;
15
- event_name: string;
16
- event_sub_type: string;
17
- description: string;
18
- redirect_url: string;
19
- offer_type: string;
20
- start_required: boolean;
21
- is_active: boolean;
22
- deleted: boolean;
23
- csv_segment: number;
24
- sc_expiry: Date;
25
- expiry: Date;
26
- rules: Rules;
27
- metaData: MetaData;
28
- stats: Stat;
29
- created_at: Date;
30
- updated_at: Date;
31
- created_by: string;
32
- }
33
-
34
- export interface OfferModel extends OfferTable, RowDataPacket { }
35
-
36
-
37
-
@@ -1,19 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
- export type JSONPrimitive = string | number | boolean | null;
3
- export type JSONValue = JSONObject | JSONArray;
4
- export type JSONObject = { [member: string]: JSONPrimitive };
5
- export type JSONArray = Array<JSONValue>;
6
-
7
- export interface PanDetailsTable {
8
- id?: number;
9
- pan?: string | null;
10
- customer_id?: number | null;
11
- response?: JSONValue | null;
12
- /** Defaults to: CURRENT_TIMESTAMP. */
13
- created_at?: Date | null;
14
- /** Defaults to: CURRENT_TIMESTAMP. */
15
- updated_at?: Date | null;
16
- }
17
-
18
- // MySQL-specific interfaces extending RowDataPacket
19
- export interface PanDetailsModel extends PanDetailsTable, RowDataPacket {}
@@ -1,50 +0,0 @@
1
- import { RowDataPacket } from "mysql2";
2
- import { MetaData, Rules, Stat } from "./Common";
3
-
4
- export interface ReferEarnTrackingTable {
5
- id?: number;
6
- referrer_id: number;
7
- referred_id: number;
8
- product?: string;
9
- product_sub_type?: string;
10
- status: string;
11
- deleted: boolean;
12
- expiry?: Date;
13
- created_at: Date;
14
- updated_at: Date;
15
- }
16
-
17
- export interface CommissionRule {
18
- first: number;
19
- trailing: number;
20
- }
21
-
22
- export interface ReferralOfferTable {
23
- id: number;
24
- title: string;
25
- reward_type: string;
26
- amount: number;
27
- sc_type: string;
28
- icon: string;
29
- product_name: string;
30
- product_sub_type: string;
31
- description: string;
32
- redirect_url: string;
33
- is_active: boolean;
34
- deleted: boolean;
35
- csv_segment: number;
36
- sc_expiry: Date;
37
- expiry: Date;
38
- commission_rule: CommissionRule;
39
- rules: Rules;
40
- metaData: MetaData;
41
- stats: Stat;
42
- created_at: Date;
43
- updated_at: Date;
44
- created_by: string;
45
- }
46
-
47
-
48
- export interface ReferEarnTrackingModel extends ReferEarnTrackingTable, RowDataPacket { }
49
- export interface ReferralOfferModel extends ReferralOfferTable, RowDataPacket { }
50
-
@@ -1,46 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- // Interface for the stashcash table
4
- export interface StashCashTable {
5
- id?: number;
6
- customer_id: number;
7
- /** Defaults to: 0 */
8
- locked: number;
9
- unlocked: number;
10
- /** Defaults to: CURRENT_TIMESTAMP. */
11
- created_at?: Date | null;
12
- updated_at?: Date | null;
13
- user_guide?: boolean;
14
- is_active?: boolean;
15
- is_deleted?: boolean;
16
- }
17
-
18
- // Interface for the demographics table
19
- export interface StashCashTrascationTable {
20
- id?: number;
21
- customer_id?: number;
22
- campaign_id?: number;
23
- campaign_name: string;
24
- txn_id: string;
25
- sc_type: string;
26
- amount: number;
27
- locked: number;
28
- unlocked: number;
29
- remaining: number;
30
- txn_type: 'debit' | 'credit';
31
- sub_type: 'rewarded' | 'paid' | 'expired' | 'reversed' | 'transferred';
32
- status?: 'pending' | 'success' | 'failure';
33
- expiry?: Date | null;
34
- is_expired: boolean;
35
- /** Defaults to: CURRENT_TIMESTAMP. */
36
- created_at?: Date | null;
37
- updated_at?: Date | null;
38
- is_active?: boolean;
39
- is_deleted?: boolean;
40
- }
41
-
42
- // MySQL-specific interfaces extending RowDataPacket
43
- export interface StashCashModel extends StashCashTable, RowDataPacket {}
44
- export interface StashCashTrascationModel
45
- extends StashCashTrascationTable,
46
- RowDataPacket {}
@@ -1,21 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- export interface UserTable {
4
- id?: number;
5
- name: string;
6
- email: string;
7
- }
8
-
9
- export interface UserAddressTable {
10
- userId: number;
11
- address: string;
12
- }
13
-
14
- export interface UserModel extends UserTable, RowDataPacket {}
15
-
16
- export interface UserAddressModel
17
- extends UserTable,
18
- UserAddressTable,
19
- RowDataPacket {}
20
-
21
-
@@ -1,12 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- export interface UserAuthTokenTable{
4
- token : string,
5
- create_time : string,
6
- update_time : string,
7
- user_id : number,
8
- published : number,
9
- device_id : string
10
- }
11
-
12
- export interface UserAuthTokenModel extends RowDataPacket {}
@@ -1,12 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- export interface UserDetailTable{
4
- id : string
5
- first_name : string,
6
- middle_name : string,
7
- last_name : string,
8
- email : string,
9
- phone : string
10
- }
11
-
12
- export interface UserDetailModel extends UserDetailTable, RowDataPacket {}
@@ -1,9 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- export interface UserKYCBankTable {
4
- customer_id : number,
5
- account_no : number,
6
- ifsc_code : number
7
- }
8
-
9
- export interface UserKYCBankModel extends RowDataPacket {}
@@ -1,15 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- export interface KYCPanTable {
4
- pan_numeber : number,
5
- customer_id : number,
6
- is_active : number
7
- }
8
-
9
- export interface KYCPanFileTable{
10
- pan_proof : string,
11
- user_id : number
12
- }
13
-
14
- export interface KYCPanModel extends RowDataPacket {}
15
- export interface KYCPanFileModel extends RowDataPacket {}
@@ -1,36 +0,0 @@
1
- import { RowDataPacket } from 'mysql2';
2
-
3
- export interface WealthUserTable {
4
- customer_id: number;
5
- user_external_id: string;
6
- gateway_id: string;
7
- grip_user_auth_token?: string;
8
- grip_user_auth_token_expiry?: number;
9
- grip_user_consent?: string;
10
- created_at?: Date;
11
- updated_at?: Date;
12
- }
13
-
14
- export interface WealthTransactionTable {
15
- id?: number;
16
- customer_id: number;
17
- gateway: string;
18
- user_external_id: string;
19
- total_transactions?: number;
20
- total_transactions_amount?: number;
21
- kyc_status?: 'pending' | 'rejected' | 'completed';
22
- kyc_last_completed_step?: string;
23
- }
24
-
25
- export interface WealthEarningTable {
26
- id: number,
27
- earnings: number,
28
- customer_id : number
29
- }
30
-
31
- export interface WealthUserModel extends WealthUserTable, RowDataPacket {}
32
- export interface WealthTransactionModel
33
- extends WealthTransactionTable,
34
- RowDataPacket {}
35
- export interface WealthEarningModel extends WealthEarningTable, RowDataPacket{}
36
-
package/tsconfig.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2022",
4
- "module": "commonjs",
5
- "moduleResolution": "node",
6
- "declaration": true,
7
- "strict": true,
8
- "incremental": true,
9
- "esModuleInterop": true,
10
- "skipLibCheck": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "rootDir": "./src",
13
- "outDir": "./dist",
14
- "composite": true
15
- }
16
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes