gotrip-fx-transaction-form 1.0.120 → 1.0.121
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/index.js
CHANGED
|
@@ -35132,7 +35132,8 @@ const {
|
|
|
35132
35132
|
getTotalTransaction: `${Xe.API_URL}/dashboard-handlers/get-total-transaction`,
|
|
35133
35133
|
getTransactionCountGroupByType: `${Xe.API_URL}/dashboard-handlers/get-transaction-count-by-type`,
|
|
35134
35134
|
getTransactionCountByStatus: `${Xe.API_URL}/dashboard-handlers/get-transaction-count-by-status`,
|
|
35135
|
-
getTransactionCountByDate: `${Xe.API_URL}/dashboard-handlers/get-transaction-count-by-date
|
|
35135
|
+
getTransactionCountByDate: `${Xe.API_URL}/dashboard-handlers/get-transaction-count-by-date`,
|
|
35136
|
+
adminDashboardMetrics: `${Xe.API_URL}/dashboard-handlers/admin-dashboard-metrics`
|
|
35136
35137
|
},
|
|
35137
35138
|
tenantHandlers: {
|
|
35138
35139
|
list: `${Xe.API_URL}/tenant-handlers/list`,
|
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type AdminOrderMetrics = {
|
|
2
|
+
success: number;
|
|
3
|
+
paid: number;
|
|
4
|
+
sentToBankSuccess: number;
|
|
5
|
+
sentToBankError: number;
|
|
6
|
+
};
|
|
7
|
+
export type AdminCurrencyMetric = {
|
|
8
|
+
bankCode: string;
|
|
9
|
+
bankName: string;
|
|
10
|
+
currencyCode: string;
|
|
11
|
+
totalAmount: number;
|
|
12
|
+
};
|
|
13
|
+
export type AdminDashboardMetrics = {
|
|
14
|
+
orderMetrics: AdminOrderMetrics;
|
|
15
|
+
currencyMetrics: AdminCurrencyMetric[];
|
|
16
|
+
};
|
|
17
|
+
export declare const useAdminDashboard: () => {
|
|
18
|
+
loading: boolean;
|
|
19
|
+
metrics: AdminDashboardMetrics | null;
|
|
20
|
+
fetchMetrics: (startDate: string, endDate: string) => Promise<void>;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdminDashboard: () => import("react/jsx-runtime").JSX.Element;
|