@temboplus/tembo-dashboard 0.0.4 → 0.0.5
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.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/common-schemas.d.ts +3 -3
- package/dist/modules/collection/collection.api-contract.d.ts +3 -3
- package/dist/modules/collection/collection.dtos.d.ts +1 -18
- package/dist/modules/collection/collection.repository.d.ts +3 -3
- package/dist/modules/payout/payout.api-contract.d.ts +3 -3
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ declare const paginationSchema: z.ZodObject<{
|
|
|
21
21
|
hasNext: boolean;
|
|
22
22
|
hasPrev: boolean;
|
|
23
23
|
}>;
|
|
24
|
-
declare const
|
|
24
|
+
declare const walletSummarySchema: z.ZodObject<{
|
|
25
25
|
balance: z.ZodNumber;
|
|
26
26
|
availableBalance: z.ZodNumber;
|
|
27
27
|
accountNumber: z.ZodString;
|
|
@@ -92,7 +92,7 @@ export declare const CommonSchemas: {
|
|
|
92
92
|
thisMonth: number;
|
|
93
93
|
lastMonth: number;
|
|
94
94
|
}>;
|
|
95
|
-
|
|
95
|
+
walletSummary: z.ZodObject<{
|
|
96
96
|
balance: z.ZodNumber;
|
|
97
97
|
availableBalance: z.ZodNumber;
|
|
98
98
|
accountNumber: z.ZodString;
|
|
@@ -111,5 +111,5 @@ export declare const CommonSchemas: {
|
|
|
111
111
|
};
|
|
112
112
|
export type PaginationDTO = z.infer<typeof paginationSchema>;
|
|
113
113
|
export type TransactionSummaryDTO = z.infer<typeof transactionSummarySchema>;
|
|
114
|
-
export type WalletSummaryDTO = z.infer<typeof
|
|
114
|
+
export type WalletSummaryDTO = z.infer<typeof walletSummarySchema>;
|
|
115
115
|
export {};
|
|
@@ -8,7 +8,7 @@ export declare const collectionContract: {
|
|
|
8
8
|
path: "/";
|
|
9
9
|
responses: {
|
|
10
10
|
200: z.ZodObject<{
|
|
11
|
-
|
|
11
|
+
results: z.ZodArray<z.ZodObject<{
|
|
12
12
|
id: z.ZodString;
|
|
13
13
|
status: z.ZodNativeEnum<typeof import("./collection.dtos").COLLECTION_STATUS>;
|
|
14
14
|
statusMessage: z.ZodString;
|
|
@@ -81,7 +81,7 @@ export declare const collectionContract: {
|
|
|
81
81
|
total: z.ZodNumber;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
83
|
total: number;
|
|
84
|
-
|
|
84
|
+
results: {
|
|
85
85
|
status: import("./collection.dtos").COLLECTION_STATUS;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
id: string;
|
|
@@ -107,7 +107,7 @@ export declare const collectionContract: {
|
|
|
107
107
|
}[];
|
|
108
108
|
}, {
|
|
109
109
|
total: number;
|
|
110
|
-
|
|
110
|
+
results: {
|
|
111
111
|
status: import("./collection.dtos").COLLECTION_STATUS;
|
|
112
112
|
createdAt: string;
|
|
113
113
|
id: string;
|
|
@@ -10,22 +10,6 @@ export declare enum COLLECTION_CHANNEL {
|
|
|
10
10
|
TIGO = "TZ-TIGO-C2B",
|
|
11
11
|
HALOTEL = "TZ-HALOTEL-C2B"
|
|
12
12
|
}
|
|
13
|
-
export declare const accountSummarySchema: z.ZodObject<{
|
|
14
|
-
balance: z.ZodNumber;
|
|
15
|
-
availableBalance: z.ZodNumber;
|
|
16
|
-
accountNumber: z.ZodString;
|
|
17
|
-
accountName: z.ZodString;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
balance: number;
|
|
20
|
-
availableBalance: number;
|
|
21
|
-
accountNumber: string;
|
|
22
|
-
accountName: string;
|
|
23
|
-
}, {
|
|
24
|
-
balance: number;
|
|
25
|
-
availableBalance: number;
|
|
26
|
-
accountNumber: string;
|
|
27
|
-
accountName: string;
|
|
28
|
-
}>;
|
|
29
13
|
export declare const CollectionDTOSchemas: {
|
|
30
14
|
collection: z.ZodObject<{
|
|
31
15
|
id: z.ZodString;
|
|
@@ -173,7 +157,7 @@ export declare const CollectionDTOSchemas: {
|
|
|
173
157
|
}>;
|
|
174
158
|
paymentStatus: z.ZodNativeEnum<typeof COLLECTION_STATUS>;
|
|
175
159
|
paymentChannel: z.ZodNativeEnum<typeof COLLECTION_CHANNEL>;
|
|
176
|
-
|
|
160
|
+
walletSummary: z.ZodObject<{
|
|
177
161
|
balance: z.ZodNumber;
|
|
178
162
|
availableBalance: z.ZodNumber;
|
|
179
163
|
accountNumber: z.ZodString;
|
|
@@ -192,4 +176,3 @@ export declare const CollectionDTOSchemas: {
|
|
|
192
176
|
};
|
|
193
177
|
export type CollectionDTO = z.infer<typeof CollectionDTOSchemas.collection>;
|
|
194
178
|
export type CollectionQueryParamsDTO = z.infer<typeof CollectionDTOSchemas.collectionQueryParams>;
|
|
195
|
-
export type AccountSummaryDTO = z.infer<typeof CollectionDTOSchemas.accountSummary>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseRepository, PaginationDTO } from "@/lib/api";
|
|
1
|
+
import { BaseRepository, PaginationDTO, WalletSummaryDTO } from "@/lib/api";
|
|
2
2
|
import { collectionContract } from "./collection.api-contract";
|
|
3
|
-
import { type CollectionQueryParamsDTO
|
|
3
|
+
import { type CollectionQueryParamsDTO } from "./collection.dtos";
|
|
4
4
|
import { Collection } from "./collection.model";
|
|
5
5
|
/**
|
|
6
6
|
* Repository class for managing collections through API interactions.
|
|
@@ -34,5 +34,5 @@ export declare class CollectionRepository extends BaseRepository<typeof collecti
|
|
|
34
34
|
/**
|
|
35
35
|
* Get account balance and summary information
|
|
36
36
|
*/
|
|
37
|
-
getBalance(): Promise<
|
|
37
|
+
getBalance(): Promise<WalletSummaryDTO>;
|
|
38
38
|
}
|
|
@@ -53,7 +53,7 @@ export declare const payoutContract: {
|
|
|
53
53
|
path: "";
|
|
54
54
|
responses: {
|
|
55
55
|
200: z.ZodObject<{
|
|
56
|
-
|
|
56
|
+
results: z.ZodArray<z.ZodObject<{
|
|
57
57
|
id: z.ZodString;
|
|
58
58
|
statusCode: z.ZodString;
|
|
59
59
|
statusCodeText: z.ZodNativeEnum<typeof import("./payout.dtos").PAYOUT_STATUS>;
|
|
@@ -144,7 +144,7 @@ export declare const payoutContract: {
|
|
|
144
144
|
total: z.ZodNumber;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
total: number;
|
|
147
|
-
|
|
147
|
+
results: {
|
|
148
148
|
statusCode: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
id: string;
|
|
@@ -176,7 +176,7 @@ export declare const payoutContract: {
|
|
|
176
176
|
}[];
|
|
177
177
|
}, {
|
|
178
178
|
total: number;
|
|
179
|
-
|
|
179
|
+
results: {
|
|
180
180
|
statusCode: string;
|
|
181
181
|
createdAt: string;
|
|
182
182
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temboplus/tembo-dashboard",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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",
|