gotrip-fx-transaction-form 1.0.120 → 1.0.122

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -2,6 +2,7 @@ type Props = {
2
2
  onFinish: () => void;
3
3
  onBack?: () => void;
4
4
  showGetTicketInfo?: boolean;
5
+ hideBankSelection?: boolean;
5
6
  };
6
- export declare const SingularCustomer: ({ onFinish, showGetTicketInfo }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const SingularCustomer: ({ onFinish, showGetTicketInfo, hideBankSelection, }: Props) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -1,5 +1,7 @@
1
1
  export type EmbededIndividualAppProps = {
2
2
  apiKey: string;
3
3
  externalCssUrl?: string;
4
+ hide?: string[];
5
+ defaultBank?: string;
4
6
  };
5
- export declare const EmbededIndividualApp: ({ apiKey, externalCssUrl }: EmbededIndividualAppProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const EmbededIndividualApp: ({ apiKey, externalCssUrl, hide, defaultBank, }: EmbededIndividualAppProps) => import("react/jsx-runtime").JSX.Element;
@@ -116,6 +116,7 @@ export declare const ApiUrls: {
116
116
  getTransactionCountGroupByType: string;
117
117
  getTransactionCountByStatus: string;
118
118
  getTransactionCountByDate: string;
119
+ adminDashboardMetrics: string;
119
120
  };
120
121
  tenantHandlers: {
121
122
  list: string;
@@ -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;
@@ -1 +1,6 @@
1
- export declare const GuestHome: () => import("react/jsx-runtime").JSX.Element;
1
+ type Props = {
2
+ hide?: string[];
3
+ defaultBank?: string;
4
+ };
5
+ export declare const GuestHome: ({ hide, defaultBank }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};