gotrip-fx-transaction-form 1.0.28 → 1.0.29

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,15 +1,15 @@
1
1
  {
2
- "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.28",
4
- "description": "FX Transaction Form ES6 module",
5
- "main": "index.js",
6
- "types": "types/index.d.ts",
7
- "files": [
8
- "*.js",
9
- "types/**/*",
10
- "assets/**/*"
11
- ],
12
- "publishConfig": {
13
- "access": "public"
14
- }
2
+ "name": "gotrip-fx-transaction-form",
3
+ "version": "1.0.29",
4
+ "description": "FX Transaction Form ES6 module",
5
+ "main": "index.js",
6
+ "types": "types/index.d.ts",
7
+ "files": [
8
+ "*.js",
9
+ "types/**/*",
10
+ "assets/**/*"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ }
15
15
  }
@@ -2,6 +2,7 @@ type Props = {
2
2
  onFinish: () => void;
3
3
  ignoreLayout?: boolean;
4
4
  onBack?: () => void;
5
+ showGetTicketInfo?: boolean;
5
6
  };
6
- export declare const SingularCustomer: ({ onFinish, ignoreLayout }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const SingularCustomer: ({ onFinish, ignoreLayout, showGetTicketInfo, }: Props) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -0,0 +1,8 @@
1
+ import { ITransaction } from '../../types/response.dto';
2
+ type Props = {
3
+ transaction: ITransaction;
4
+ setLoading?: (loading: boolean) => void;
5
+ refetchData?: () => void;
6
+ };
7
+ export declare const ActionMenu: ({ transaction, setLoading, refetchData }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -4,3 +4,9 @@ export declare const COUNTRIES: {
4
4
  alpha3: string;
5
5
  alpha2: string;
6
6
  }[];
7
+ export declare const countryMap: Map<string, {
8
+ name: string;
9
+ nameVi: string;
10
+ alpha3: string;
11
+ alpha2: string;
12
+ }>;
@@ -13,12 +13,11 @@ export declare const useTransactionList: ({ defaultLimit, defaultFilter }: Props
13
13
  page: number;
14
14
  limit: number;
15
15
  refetchData: () => void;
16
- sendBankTransaction: (transaction: ITransaction) => Promise<void>;
17
16
  checkTicketStatus: (transaction: ITransaction) => Promise<void>;
18
17
  updateGroupTransactionStatus: (groupPublicId: string, transactions: ITransaction[]) => Promise<boolean>;
19
- checkInfoSuccess: (transaction: ITransaction) => Promise<void>;
20
18
  setPage: import('react').Dispatch<import('react').SetStateAction<number>>;
21
19
  setLimit: (limit: number) => void;
22
20
  setFilter: import('react').Dispatch<import('react').SetStateAction<GetTransactionListReqDto>>;
21
+ setLoading: import('react').Dispatch<import('react').SetStateAction<boolean>>;
23
22
  };
24
23
  export {};
@@ -38,6 +38,7 @@ export declare enum ETransactionType {
38
38
  }
39
39
  export type ITransaction = {
40
40
  id: number;
41
+ publicId: string;
41
42
  amount: number;
42
43
  comission: number;
43
44
  status: TransactionStatus;
@@ -1,4 +1,4 @@
1
- export declare const showToast: (message: string, type: "success" | "error", duration?: number, options?: {
1
+ export declare const showToast: (message: string, type: "success" | "error" | "info", duration?: number, options?: {
2
2
  position?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
3
3
  title?: string;
4
4
  }) => void;