gotrip-fx-transaction-form 1.0.264-dev → 1.0.265-dev
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
|
@@ -29962,7 +29962,8 @@ const _e = {
|
|
|
29962
29962
|
getTransactionCountGroupByType: `${_e.API_URL}/dashboard-handlers/get-transaction-count-by-type`,
|
|
29963
29963
|
getTransactionCountByStatus: `${_e.API_URL}/dashboard-handlers/get-transaction-count-by-status`,
|
|
29964
29964
|
getTransactionCountByDate: `${_e.API_URL}/dashboard-handlers/get-transaction-count-by-date`,
|
|
29965
|
-
adminDashboardMetrics: `${_e.API_URL}/dashboard-handlers/admin-dashboard-metrics
|
|
29965
|
+
adminDashboardMetrics: `${_e.API_URL}/dashboard-handlers/admin-dashboard-metrics`,
|
|
29966
|
+
insuranceMetrics: `${_e.API_URL}/dashboard-handlers/insurance-metrics`
|
|
29966
29967
|
},
|
|
29967
29968
|
tenantHandlers: {
|
|
29968
29969
|
list: `${_e.API_URL}/tenant-handlers/list`,
|
package/package.json
CHANGED
|
@@ -10,6 +10,21 @@ export type AdminCurrencyMetric = {
|
|
|
10
10
|
currencyCode: string;
|
|
11
11
|
totalAmount: number;
|
|
12
12
|
};
|
|
13
|
+
export type InsuranceProvider = {
|
|
14
|
+
provider: string;
|
|
15
|
+
successCount: number;
|
|
16
|
+
totalAmount: number;
|
|
17
|
+
};
|
|
18
|
+
export type InsuranceCountry = {
|
|
19
|
+
countryId: number;
|
|
20
|
+
countryName: string;
|
|
21
|
+
count: number;
|
|
22
|
+
amount: number;
|
|
23
|
+
};
|
|
24
|
+
export type InsuranceMetrics = {
|
|
25
|
+
providers: InsuranceProvider[];
|
|
26
|
+
countries: InsuranceCountry[];
|
|
27
|
+
};
|
|
13
28
|
export type AdminDashboardMetrics = {
|
|
14
29
|
orderMetrics: AdminOrderMetrics;
|
|
15
30
|
currencyMetrics: AdminCurrencyMetric[];
|
|
@@ -18,4 +33,7 @@ export declare const useAdminDashboard: () => {
|
|
|
18
33
|
loading: boolean;
|
|
19
34
|
metrics: AdminDashboardMetrics | null;
|
|
20
35
|
fetchMetrics: (startDate: string, endDate: string) => Promise<void>;
|
|
36
|
+
insuranceMetrics: InsuranceMetrics | null;
|
|
37
|
+
insuranceLoading: boolean;
|
|
38
|
+
fetchInsuranceMetrics: (startDate: string, endDate: string) => Promise<void>;
|
|
21
39
|
};
|