monei-sdk 1.0.1 → 1.0.2
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/README.md +1 -1
- package/dist/client/MoneiClient.js +1 -1
- package/dist/types/wallet.d.ts +27 -0
- package/package.json +12 -6
package/README.md
CHANGED
|
@@ -280,7 +280,7 @@ interface MoneiConfig {
|
|
|
280
280
|
### Available Services
|
|
281
281
|
|
|
282
282
|
- `sdk.user` - User profile and management
|
|
283
|
-
- `sdk.wallet` - Wallet
|
|
283
|
+
- `sdk.wallet` - Wallet and financial operations
|
|
284
284
|
- `sdk.evm` - EVM blockchain operations
|
|
285
285
|
- `sdk.solana` - Solana blockchain operations
|
|
286
286
|
- `sdk.transactions` - Transaction history
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -6,8 +6,21 @@ export interface BalanceResponseDto {
|
|
|
6
6
|
message: string;
|
|
7
7
|
data: BalanceDto;
|
|
8
8
|
}
|
|
9
|
+
interface Customization {
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
interface Customer {
|
|
13
|
+
email: string;
|
|
14
|
+
phoneNumber: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
9
17
|
export interface FundWalletByNairaDto {
|
|
10
18
|
amount: number;
|
|
19
|
+
reference?: string;
|
|
20
|
+
currency?: string;
|
|
21
|
+
redirectUrl?: string;
|
|
22
|
+
customization?: Customization;
|
|
23
|
+
customer?: Customer;
|
|
11
24
|
}
|
|
12
25
|
export interface DepositResponseDto {
|
|
13
26
|
link: string;
|
|
@@ -74,8 +87,11 @@ export interface WithdrawWalletDto {
|
|
|
74
87
|
accountNumber: string;
|
|
75
88
|
transactionPin: string;
|
|
76
89
|
currency?: string;
|
|
90
|
+
reference?: string;
|
|
77
91
|
narration?: string;
|
|
78
92
|
}
|
|
93
|
+
export interface WithdrawResponseDto {
|
|
94
|
+
}
|
|
79
95
|
export interface PeerTransferDto {
|
|
80
96
|
receiver: string;
|
|
81
97
|
amount: number;
|
|
@@ -100,3 +116,14 @@ export interface UserKycInfoDto {
|
|
|
100
116
|
kycStatus: string;
|
|
101
117
|
verifiedAt: string;
|
|
102
118
|
}
|
|
119
|
+
export interface WithdrawDto {
|
|
120
|
+
reference: string;
|
|
121
|
+
status: string;
|
|
122
|
+
amount: number;
|
|
123
|
+
}
|
|
124
|
+
export interface WalletResponseDto {
|
|
125
|
+
statusCode: number;
|
|
126
|
+
message: string;
|
|
127
|
+
data: WithdrawDto;
|
|
128
|
+
}
|
|
129
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monei-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Node.js SDK for Monei API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"prepublishOnly": "npm run build",
|
|
10
10
|
"test": "jest",
|
|
11
|
-
"test:
|
|
11
|
+
"test:unit": "jest test/unit",
|
|
12
|
+
"test:integration": "jest test/integration",
|
|
13
|
+
"test:watch": "jest --watch",
|
|
14
|
+
"test:coverage": "jest --coverage",
|
|
15
|
+
"test:all": "npm run test:unit && npm run test:integration"
|
|
12
16
|
},
|
|
13
17
|
"keywords": [
|
|
14
18
|
"mrmonei",
|
|
@@ -20,13 +24,15 @@
|
|
|
20
24
|
"author": "Ayodeji Osayemi",
|
|
21
25
|
"license": "MIT",
|
|
22
26
|
"dependencies": {
|
|
23
|
-
"axios": "^1.13.2"
|
|
27
|
+
"axios": "^1.13.2",
|
|
28
|
+
"ts-node": "^10.9.2"
|
|
24
29
|
},
|
|
25
30
|
"devDependencies": {
|
|
26
|
-
"@types/jest": "^29.
|
|
31
|
+
"@types/jest": "^29.5.14",
|
|
27
32
|
"@types/node": "^20.0.0",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
33
|
+
"axios-mock-adapter": "^2.1.0",
|
|
34
|
+
"jest": "^29.7.0",
|
|
35
|
+
"ts-jest": "^29.4.5",
|
|
30
36
|
"typescript": "^5.0.0"
|
|
31
37
|
},
|
|
32
38
|
"files": [
|