@temboplus/tembo-dashboard 0.0.26-beta.0 → 0.0.26-beta.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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/common-schemas.d.ts +244 -0
- package/dist/lib/models/statement-entry.model.d.ts +2 -2
- package/dist/lib/models/transaction-summary.model.d.ts +2 -2
- package/dist/lib/models/wallet-info.model.d.ts +28 -7
- package/dist/lib/types.d.ts +1 -1
- package/dist/modules/auth/auth.api-contract.d.ts +61 -16
- package/dist/modules/collection/collection.api-contract.d.ts +197 -95
- package/dist/modules/collection/collection.model.d.ts +2 -2
- package/dist/modules/collection/collection.repository.d.ts +1 -10
- package/dist/modules/collection/collection.types.d.ts +2 -1
- package/dist/modules/payout/payout.api-contract.d.ts +145 -94
- package/dist/modules/payout/payout.model.d.ts +2 -2
- package/dist/modules/payout/payout.repository.d.ts +1 -9
- package/dist/modules/payout/payout.types.d.ts +5 -2
- package/dist/modules/wallet/index.d.ts +4 -0
- package/dist/modules/wallet/wallet.api-contract.d.ts +535 -0
- package/dist/modules/wallet/wallet.model.d.ts +35 -0
- package/dist/modules/wallet/wallet.repository.d.ts +22 -0
- package/dist/modules/wallet/wallet.types.d.ts +127 -0
- package/package.json +2 -2
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum WALLET_TYPE {
|
|
3
|
+
DEFAULT_DISBURSEMENT = "DEFAULT DISBURSEMENT",
|
|
4
|
+
DEFAULT_COLLECTION = "DEFAULT COLLECTION",
|
|
5
|
+
COLLECTION = "COLLECTION",
|
|
6
|
+
DISBURSEMENT = "DISBURSEMENT"
|
|
7
|
+
}
|
|
8
|
+
export declare const WalletDTOSchemas: {
|
|
9
|
+
wallet: z.ZodObject<{
|
|
10
|
+
accountNo: z.ZodString;
|
|
11
|
+
accountName: z.ZodString;
|
|
12
|
+
type: z.ZodString;
|
|
13
|
+
balance: z.ZodNumber;
|
|
14
|
+
currency: z.ZodString;
|
|
15
|
+
countryCode: z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
type: string;
|
|
18
|
+
balance: number;
|
|
19
|
+
accountName: string;
|
|
20
|
+
accountNo: string;
|
|
21
|
+
countryCode: string;
|
|
22
|
+
currency: string;
|
|
23
|
+
}, {
|
|
24
|
+
type: string;
|
|
25
|
+
balance: number;
|
|
26
|
+
accountName: string;
|
|
27
|
+
accountNo: string;
|
|
28
|
+
countryCode: string;
|
|
29
|
+
currency: string;
|
|
30
|
+
}>;
|
|
31
|
+
walletType: z.ZodNativeEnum<typeof WALLET_TYPE>;
|
|
32
|
+
walletBalanceRequest: z.ZodObject<{
|
|
33
|
+
accountNo: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
accountNo: string;
|
|
36
|
+
}, {
|
|
37
|
+
accountNo: string;
|
|
38
|
+
}>;
|
|
39
|
+
walletBalance: z.ZodObject<{
|
|
40
|
+
availableBalance: z.ZodNumber;
|
|
41
|
+
currentBalance: z.ZodNumber;
|
|
42
|
+
accountStatus: z.ZodString;
|
|
43
|
+
accountNo: z.ZodString;
|
|
44
|
+
accountName: z.ZodString;
|
|
45
|
+
type: z.ZodString;
|
|
46
|
+
currencyCode: z.ZodString;
|
|
47
|
+
countryCode: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
type: string;
|
|
50
|
+
availableBalance: number;
|
|
51
|
+
accountName: string;
|
|
52
|
+
accountNo: string;
|
|
53
|
+
currencyCode: string;
|
|
54
|
+
countryCode: string;
|
|
55
|
+
currentBalance: number;
|
|
56
|
+
accountStatus: string;
|
|
57
|
+
}, {
|
|
58
|
+
type: string;
|
|
59
|
+
availableBalance: number;
|
|
60
|
+
accountName: string;
|
|
61
|
+
accountNo: string;
|
|
62
|
+
currencyCode: string;
|
|
63
|
+
countryCode: string;
|
|
64
|
+
currentBalance: number;
|
|
65
|
+
accountStatus: string;
|
|
66
|
+
}>;
|
|
67
|
+
walletStatementRequest: z.ZodObject<{
|
|
68
|
+
accountNo: z.ZodString;
|
|
69
|
+
startDate: z.ZodString;
|
|
70
|
+
endDate: z.ZodString;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
startDate: string;
|
|
73
|
+
endDate: string;
|
|
74
|
+
accountNo: string;
|
|
75
|
+
}, {
|
|
76
|
+
startDate: string;
|
|
77
|
+
endDate: string;
|
|
78
|
+
accountNo: string;
|
|
79
|
+
}>;
|
|
80
|
+
transferRequest: z.ZodObject<{
|
|
81
|
+
amount: z.ZodNumber;
|
|
82
|
+
from: z.ZodString;
|
|
83
|
+
to: z.ZodString;
|
|
84
|
+
description: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
description: string;
|
|
87
|
+
amount: number;
|
|
88
|
+
from: string;
|
|
89
|
+
to: string;
|
|
90
|
+
}, {
|
|
91
|
+
description: string;
|
|
92
|
+
amount: number;
|
|
93
|
+
from: string;
|
|
94
|
+
to: string;
|
|
95
|
+
}>;
|
|
96
|
+
transferResponse: z.ZodObject<{
|
|
97
|
+
transactionId: z.ZodString;
|
|
98
|
+
from: z.ZodString;
|
|
99
|
+
to: z.ZodString;
|
|
100
|
+
transactionDate: z.ZodString;
|
|
101
|
+
narration: z.ZodString;
|
|
102
|
+
amount: z.ZodNumber;
|
|
103
|
+
transactionRef: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
narration: string;
|
|
106
|
+
transactionDate: string;
|
|
107
|
+
amount: number;
|
|
108
|
+
transactionId: string;
|
|
109
|
+
transactionRef: string;
|
|
110
|
+
from: string;
|
|
111
|
+
to: string;
|
|
112
|
+
}, {
|
|
113
|
+
narration: string;
|
|
114
|
+
transactionDate: string;
|
|
115
|
+
amount: number;
|
|
116
|
+
transactionId: string;
|
|
117
|
+
transactionRef: string;
|
|
118
|
+
from: string;
|
|
119
|
+
to: string;
|
|
120
|
+
}>;
|
|
121
|
+
};
|
|
122
|
+
export type WalletDTO = z.infer<typeof WalletDTOSchemas.wallet>;
|
|
123
|
+
export type WalletBalanceRequestDTO = z.infer<typeof WalletDTOSchemas.walletBalanceRequest>;
|
|
124
|
+
export type WalletBalanceDTO = z.infer<typeof WalletDTOSchemas.walletBalance>;
|
|
125
|
+
export type WalletStatementRequestDTO = z.infer<typeof WalletDTOSchemas.walletStatementRequest>;
|
|
126
|
+
export type TransferRequestDTO = z.infer<typeof WalletDTOSchemas.transferRequest>;
|
|
127
|
+
export type TransferResponseDTO = z.infer<typeof WalletDTOSchemas.transferResponse>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temboplus/tembo-dashboard",
|
|
3
|
-
"version": "0.0.26-beta.
|
|
3
|
+
"version": "0.0.26-beta.2",
|
|
4
4
|
"description": "A foundational library for Temboplus-Dashboard projects providing type-safe data layer abstraction with API contracts, domain models, and repositories.",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"typescript": "^5.8.3"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@temboplus/frontend-core": "^0.
|
|
60
|
+
"@temboplus/frontend-core": "^0.3.0-beta.2"
|
|
61
61
|
}
|
|
62
62
|
}
|