gotrip-fx-transaction-form 0.1.0-uat.1

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.
Files changed (107) hide show
  1. package/index.js +60056 -0
  2. package/package.json +14 -0
  3. package/types/components/AddTransaction/BankList.d.ts +20 -0
  4. package/types/components/AddTransaction/BankSelectionInput.d.ts +11 -0
  5. package/types/components/AddTransaction/Business.d.ts +7 -0
  6. package/types/components/AddTransaction/Education.d.ts +7 -0
  7. package/types/components/AddTransaction/GroupCustomers.d.ts +5 -0
  8. package/types/components/AddTransaction/SingularCustomer.d.ts +7 -0
  9. package/types/components/AddTransaction/UseCaseSelection.d.ts +21 -0
  10. package/types/components/AddUser/AddBookerForm.d.ts +6 -0
  11. package/types/components/Apps/AdminApp.d.ts +1 -0
  12. package/types/components/Apps/AgencyApp.d.ts +1 -0
  13. package/types/components/Apps/EmbededIndividualApp.d.ts +5 -0
  14. package/types/components/Apps/IndividualApp.d.ts +1 -0
  15. package/types/components/Apps/PartnerApp.d.ts +1 -0
  16. package/types/components/CurrencyExchangeRate/CurrencyExchangeRate.d.ts +10 -0
  17. package/types/components/CustomerSelection/CustomerSelection.d.ts +10 -0
  18. package/types/components/Dashboard/BookerSelectionInput.d.ts +7 -0
  19. package/types/components/Dashboard/DailyTransactionChart.d.ts +8 -0
  20. package/types/components/Dashboard/TotalCommissionCard.d.ts +9 -0
  21. package/types/components/Dashboard/TotalTransactionCard.d.ts +9 -0
  22. package/types/components/Dashboard/TransactionByStatusChart.d.ts +8 -0
  23. package/types/components/Dashboard/TransactionByTypeChart.d.ts +8 -0
  24. package/types/components/Layout/Layout.d.ts +6 -0
  25. package/types/components/Layout/NavBar/Navbar.d.ts +1 -0
  26. package/types/components/Menu/Menu.d.ts +1 -0
  27. package/types/components/Menu/MenuItem.d.ts +9 -0
  28. package/types/components/Modal/ErrorModal.d.ts +1 -0
  29. package/types/components/Modal/Modal.d.ts +12 -0
  30. package/types/components/Modal/SuccessModal.d.ts +1 -0
  31. package/types/components/Modal/WebcamModal.d.ts +7 -0
  32. package/types/components/Pagination/LimitDropdown.d.ts +6 -0
  33. package/types/components/TransactionList/BankSelectionInput.d.ts +7 -0
  34. package/types/components/TransactionList/CurrencySelectionInput.d.ts +7 -0
  35. package/types/components/TransactionList/StatusSelectionInput.d.ts +9 -0
  36. package/types/components/TransactionStatusBadge/TransactionStatusBadge.d.ts +4 -0
  37. package/types/components/UpdateUser/UpdateBookerForm.d.ts +7 -0
  38. package/types/components/UpdateUser/UpdateCommissionRateForm.d.ts +7 -0
  39. package/types/components/UserProfile/AccountSettingForm.d.ts +7 -0
  40. package/types/components/UserProfile/ChangePasswordForm.d.ts +5 -0
  41. package/types/components/UserStatusBadge/UserStatusBadge.d.ts +4 -0
  42. package/types/components/ui/link-button.d.ts +4 -0
  43. package/types/components/ui/pagination.d.ts +19 -0
  44. package/types/constants/airlines.d.ts +7 -0
  45. package/types/constants/airport-code-country.d.ts +5 -0
  46. package/types/constants/api-urls.d.ts +56 -0
  47. package/types/constants/countries.d.ts +6 -0
  48. package/types/constants/env.d.ts +5 -0
  49. package/types/constants/index.d.ts +7 -0
  50. package/types/constants/provinces.d.ts +6 -0
  51. package/types/design-systems/Button/Button.d.ts +14 -0
  52. package/types/design-systems/Chart/LineChart.d.ts +13 -0
  53. package/types/design-systems/Chart/PieChart.d.ts +9 -0
  54. package/types/design-systems/Drawer/Drawer.d.ts +12 -0
  55. package/types/design-systems/Input/Input.d.ts +5 -0
  56. package/types/design-systems/Stat/Stat.d.ts +8 -0
  57. package/types/design-systems/Toast/Toast.d.ts +7 -0
  58. package/types/embeded-main.d.ts +7 -0
  59. package/types/hooks/transanactions/useBusiness.hook.d.ts +202 -0
  60. package/types/hooks/transanactions/useEducation.hook.d.ts +270 -0
  61. package/types/hooks/useBookerList.d.ts +11 -0
  62. package/types/hooks/useConfirmTransaction.d.ts +32 -0
  63. package/types/hooks/useDashboard.d.ts +27 -0
  64. package/types/hooks/useDisclosure.d.ts +5 -0
  65. package/types/hooks/useEducationFXList.d.ts +8 -0
  66. package/types/hooks/useGroupCustomers.d.ts +231 -0
  67. package/types/hooks/useImportBookers.d.ts +104 -0
  68. package/types/hooks/useIsMobile.d.ts +1 -0
  69. package/types/hooks/useTransactionList.d.ts +21 -0
  70. package/types/hooks/useUserList.d.ts +12 -0
  71. package/types/hooks/useUserProfile.d.ts +7 -0
  72. package/types/hooks/useWindowSize.d.ts +4 -0
  73. package/types/index.d.ts +6 -0
  74. package/types/main.d.ts +1 -0
  75. package/types/pages/admin/home/UserList.d.ts +1 -0
  76. package/types/pages/admin/login/LoginPage.d.ts +6 -0
  77. package/types/pages/agency/add-booker/add-booker.d.ts +5 -0
  78. package/types/pages/agency/add-booker/import-booker.d.ts +1 -0
  79. package/types/pages/agency/add-transaction/add-transaction.d.ts +5 -0
  80. package/types/pages/agency/booker-list/index.d.ts +1 -0
  81. package/types/pages/agency/dashboard/dashboard.d.ts +1 -0
  82. package/types/pages/agency/login/LoginPage.d.ts +6 -0
  83. package/types/pages/agency/register/RegisterPage.d.ts +1 -0
  84. package/types/pages/agency/register/SupervisorRegisterForm.d.ts +1 -0
  85. package/types/pages/agency/register/UserRegisterForm.d.ts +1 -0
  86. package/types/pages/agency/register/UserTypeSelection.d.ts +7 -0
  87. package/types/pages/agency/tracsaction-list/TransactionList.d.ts +7 -0
  88. package/types/pages/agency/traveller-confirmation/TravellerConfirmation.d.ts +1 -0
  89. package/types/pages/agency/user-profile/user-profile.d.ts +1 -0
  90. package/types/pages/guest/home.d.ts +1 -0
  91. package/types/pages/partner/EducationFXList.d.ts +1 -0
  92. package/types/pages/partner/MemberList.d.ts +1 -0
  93. package/types/store/useAppStore.d.ts +25 -0
  94. package/types/store/useAuthStore.d.ts +12 -0
  95. package/types/types/app-actor.d.ts +6 -0
  96. package/types/types/enum.d.ts +17 -0
  97. package/types/types/request.dto.d.ts +17 -0
  98. package/types/types/response.dto.d.ts +147 -0
  99. package/types/types/user.d.ts +11 -0
  100. package/types/util/axios.d.ts +1 -0
  101. package/types/util/extract-api-error-codes.d.ts +2 -0
  102. package/types/util/fixed-thead.d.ts +1 -0
  103. package/types/util/formatter.d.ts +3 -0
  104. package/types/util/time.d.ts +1 -0
  105. package/types/util/toast.d.ts +1 -0
  106. package/types/util/transaction.util.d.ts +2 -0
  107. package/types/vite-env.d.ts +1 -0
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "gotrip-fx-transaction-form",
3
+ "version": "0.1.0-uat.1",
4
+ "description": "FX Transaction Form ES6 module",
5
+ "main": "index.js",
6
+ "types": "types/index.d.ts",
7
+ "files": [
8
+ "*.js",
9
+ "types/**/*"
10
+ ],
11
+ "publishConfig": {
12
+ "access": "public"
13
+ }
14
+ }
@@ -0,0 +1,20 @@
1
+ export type Bank = {
2
+ name: string;
3
+ code: string;
4
+ image: string;
5
+ isDefault?: boolean;
6
+ comingSoon?: boolean;
7
+ };
8
+ export declare const banks: Bank[];
9
+ type Props = {
10
+ selected?: Bank | null;
11
+ onSelect: (bank: Bank) => void;
12
+ };
13
+ export declare const BankList: ({ selected, onSelect }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ type MultipleBankListProps = {
15
+ selected?: Bank[];
16
+ onSelect?: (bank: Bank) => void;
17
+ onRemove?: (bank: Bank) => void;
18
+ };
19
+ export declare const MultipleBankList: ({ selected, onSelect, onRemove }: MultipleBankListProps) => import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Currency } from '../../types/response.dto';
2
+ type Props = {
3
+ currencies: Currency[];
4
+ selectedCurrencyCode: string;
5
+ onSelectCurrency: (v: {
6
+ label: string;
7
+ value: string;
8
+ }) => void;
9
+ };
10
+ export declare const BankSelectionInput: ({ currencies, selectedCurrencyCode, onSelectCurrency, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ ignoreLayout?: boolean;
3
+ onFinish?: () => void;
4
+ onBack?: () => void;
5
+ };
6
+ export declare const Business: ({ ignoreLayout, onFinish, onBack }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ ignoreLayout?: boolean;
3
+ onFinish?: () => void;
4
+ onBack?: () => void;
5
+ };
6
+ export declare const Education: ({ ignoreLayout, onFinish }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ onFinish: () => void;
3
+ };
4
+ export declare const GroupCustomers: ({ onFinish }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ onFinish: () => void;
3
+ ignoreLayout?: boolean;
4
+ onBack?: () => void;
5
+ };
6
+ export declare const SingularCustomer: ({ onFinish, ignoreLayout }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,21 @@
1
+ export declare enum EUseCaseses {
2
+ SINGULAR = "SINGULAR",// khách lẻ
3
+ GROUP = "GROUP",// khách đoàn
4
+ EDUCATION = "EDUCATION",
5
+ MEDICAL = "MEDICAL",
6
+ INHERITANCE = "INHERITANCE",
7
+ SUBSIDY = "SUBSIDY",
8
+ IMMIGRATION = "IMMIGRATION",
9
+ BUSINESS = "BUSINESS"
10
+ }
11
+ type Props = {
12
+ useCase: EUseCaseses;
13
+ setUseCase: (useCase: EUseCaseses) => void;
14
+ };
15
+ export declare const UseCaseSelection: ({ useCase, setUseCase }: Props) => import("react/jsx-runtime").JSX.Element;
16
+ type Props2 = {
17
+ selected: EUseCaseses;
18
+ setSelected: (selected: EUseCaseses) => void;
19
+ };
20
+ export declare const UseCaseSelectionForGuest: ({ selected, setSelected }: Props2) => import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,6 @@
1
+ type AddBookerFormProps = {
2
+ onSubmitSuccess: () => void;
3
+ onClose: () => void;
4
+ };
5
+ export declare const AddBookerForm: ({ onClose, onSubmitSuccess }: AddBookerFormProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const AdminApp: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const AgencyApp: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export type EmbededIndividualAppProps = {
2
+ clientId: string;
3
+ secret: string;
4
+ };
5
+ export declare const EmbededIndividualApp: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const IndividualApp: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PartnerApp: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ type Props = {
2
+ selectedCurrency: string;
3
+ selectedBank: string;
4
+ amount: number;
5
+ setSelectedCurrency: (currency: string) => void;
6
+ setSelectedBank: (bank: string) => void;
7
+ setAmount: (amount: number) => void;
8
+ };
9
+ export declare const CurrencyExchangeRate: ({ selectedCurrency, selectedBank, amount, setSelectedCurrency, setSelectedBank, setAmount, }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ export type Customer = {
2
+ name: string;
3
+ eTicketNumber: string;
4
+ };
5
+ type Props = {
6
+ customers: Customer[];
7
+ onSelect: (customer: Customer) => void;
8
+ };
9
+ export declare const CustomerSelection: ({ customers, onSelect }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IUser } from '../../types/response.dto';
2
+ type Props = {
3
+ bookers: IUser[];
4
+ onSelectBooker: (v: string) => void;
5
+ };
6
+ export declare const BookerSelectionInput: ({ bookers, onSelectBooker }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ type DailyTransactionChartProps = {
2
+ title: string;
3
+ fromDate: string;
4
+ toDate: string;
5
+ bookerId?: number | null;
6
+ };
7
+ export declare const DailyTransactionChart: ({ fromDate, toDate, title, bookerId, }: DailyTransactionChartProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface TotalCommissionCardProps {
3
+ label: string;
4
+ startDate: string;
5
+ endDate: string;
6
+ bookerId?: number | null;
7
+ }
8
+ declare const TotalCommissionCard: React.FC<TotalCommissionCardProps>;
9
+ export default TotalCommissionCard;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface TotalTransactionCardProps {
3
+ label: string;
4
+ startDate: string;
5
+ endDate: string;
6
+ bookerId?: number | null;
7
+ }
8
+ declare const TotalTransactionCard: React.FC<TotalTransactionCardProps>;
9
+ export default TotalTransactionCard;
@@ -0,0 +1,8 @@
1
+ type TransactionByStatusChartProps = {
2
+ title: string;
3
+ fromDate: string;
4
+ toDate: string;
5
+ bookerId?: number | null;
6
+ };
7
+ export declare const TransactionByStatusChart: ({ fromDate, toDate, title, bookerId, }: TransactionByStatusChartProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ type TransactionByTypeChartProps = {
2
+ title: string;
3
+ fromDate: string;
4
+ toDate: string;
5
+ bookerId?: number | null;
6
+ };
7
+ export declare const TransactionByTypeChart: ({ fromDate, toDate, title, bookerId, }: TransactionByTypeChartProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ children: React.ReactNode;
3
+ showLayout?: boolean;
4
+ };
5
+ export declare const Layout: ({ children, showLayout }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const Navbar: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const Menu: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
2
+ type Props = {
3
+ label: string;
4
+ icon: IconDefinition;
5
+ path: string;
6
+ active: boolean;
7
+ };
8
+ export declare const MenuItem: ({ label, icon, path, active }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare const ErrorModal: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ type Props = {
2
+ isOpen: boolean;
3
+ icon?: React.ReactNode;
4
+ title?: React.ReactNode;
5
+ content?: React.ReactNode;
6
+ footer?: React.ReactNode;
7
+ size?: 'sm' | 'md' | 'lg';
8
+ showCloseButton?: boolean;
9
+ onClose?: () => void;
10
+ };
11
+ export declare const Modal: ({ isOpen, icon, title, content, footer, size, showCloseButton, onClose, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare const SuccessModal: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ onClose: () => void;
3
+ isOpen: boolean;
4
+ onImageCaptured: (imageSrc: string) => void;
5
+ };
6
+ export declare const WebcamModal: ({ onClose, onImageCaptured, isOpen }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ limit: number;
3
+ onLimitChange: (limit: number) => void;
4
+ };
5
+ export declare const LimitDropdown: ({ limit, onLimitChange }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IBank } from '../../types/response.dto';
2
+ type Props = {
3
+ banks: IBank[];
4
+ onSelectBank: (v: string) => void;
5
+ };
6
+ export declare const BankSelectionInput: ({ banks, onSelectBank }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Currency } from '../../types/response.dto';
2
+ type Props = {
3
+ currencies: Currency[];
4
+ onSelectCurrency: (v: string) => void;
5
+ };
6
+ export declare const CurrencySelectionInput: ({ currencies, onSelectCurrency }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ type Props = {
2
+ statuses: Array<{
3
+ status: string;
4
+ label: string;
5
+ }>;
6
+ onSelectStatus: (v: string) => void;
7
+ };
8
+ export declare const StatusSelectionInput: ({ statuses, onSelectStatus }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { TransactionStatus } from '../../types/enum';
2
+ export declare const TransactionStatusBadge: ({ status }: {
3
+ status: TransactionStatus;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type UpdateBookerFormProps = {
2
+ bookerId: number;
3
+ onSubmitSuccess: () => void;
4
+ onClose: () => void;
5
+ };
6
+ export declare const UpdateBookerForm: ({ bookerId, onSubmitSuccess, onClose }: UpdateBookerFormProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ type UpdateCommissionRateFormProps = {
2
+ userId: number;
3
+ onSubmitSuccess: () => void;
4
+ onClose: () => void;
5
+ };
6
+ export declare const UpdateCommissionRateForm: ({ userId, onSubmitSuccess, onClose, }: UpdateCommissionRateFormProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IUser } from '../../types/response.dto';
2
+ type AccountSettingFormProps = {
3
+ user: IUser | null;
4
+ updateUserProfile: (data: IUser) => void;
5
+ };
6
+ export declare const AccountSettingForm: ({ user, updateUserProfile }: AccountSettingFormProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ type ChangePasswordFormProps = {
2
+ changePassword: (oldPassword: string, newPassword: string) => void;
3
+ };
4
+ export declare const ChangePasswordForm: ({ changePassword }: ChangePasswordFormProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,4 @@
1
+ import { EUserStatus } from '../../types/user';
2
+ export declare const UserStatusBadge: ({ status }: {
3
+ status: EUserStatus;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { HTMLChakraProps, RecipeProps } from '@chakra-ui/react';
2
+ export interface LinkButtonProps extends HTMLChakraProps<'a', RecipeProps<'button'>> {
3
+ }
4
+ export declare const LinkButton: import('react').ForwardRefExoticComponent<LinkButtonProps & import('react').RefAttributes<HTMLAnchorElement>>;
@@ -0,0 +1,19 @@
1
+ import { ButtonProps, TextProps, Pagination as ChakraPagination } from '@chakra-ui/react';
2
+ import * as React from 'react';
3
+ type PaginationVariant = 'outline' | 'solid' | 'subtle';
4
+ export interface PaginationRootProps extends Omit<ChakraPagination.RootProps, 'type'> {
5
+ size?: ButtonProps['size'];
6
+ variant?: PaginationVariant;
7
+ getHref?: (page: number) => string;
8
+ }
9
+ export declare const PaginationRoot: React.ForwardRefExoticComponent<PaginationRootProps & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const PaginationEllipsis: React.ForwardRefExoticComponent<ChakraPagination.EllipsisProps & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const PaginationItem: React.ForwardRefExoticComponent<ChakraPagination.ItemProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export declare const PaginationPrevTrigger: React.ForwardRefExoticComponent<ChakraPagination.PrevTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
+ export declare const PaginationNextTrigger: React.ForwardRefExoticComponent<ChakraPagination.NextTriggerProps & React.RefAttributes<HTMLButtonElement>>;
14
+ export declare const PaginationItems: (props: React.HTMLAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
15
+ interface PageTextProps extends TextProps {
16
+ format?: 'short' | 'compact' | 'long';
17
+ }
18
+ export declare const PaginationPageText: React.ForwardRefExoticComponent<PageTextProps & React.RefAttributes<HTMLParagraphElement>>;
19
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const AIRLINES: {
2
+ iata: string;
3
+ icao: string;
4
+ airline: string;
5
+ callSign: string;
6
+ country: string;
7
+ }[];
@@ -0,0 +1,5 @@
1
+ export declare const AirportCodeToCountry: {
2
+ code: string;
3
+ country: string;
4
+ }[];
5
+ export declare const AIRPORT_CODE_COUNTRY_MAP: Map<string, string>;
@@ -0,0 +1,56 @@
1
+ export declare const ApiUrls: {
2
+ auth: {
3
+ login: string;
4
+ register: string;
5
+ registerSupervisor: string;
6
+ };
7
+ transactionHandlers: {
8
+ list: string;
9
+ create: string;
10
+ createMany: string;
11
+ confirm: string;
12
+ sendBankTransaction: string;
13
+ checkTicketStatus: string;
14
+ getByBankTransactionId: (transactionId: string) => string;
15
+ guestCreateEducationTransaction: string;
16
+ };
17
+ currency: {
18
+ list: string;
19
+ };
20
+ bank: {
21
+ list: string;
22
+ };
23
+ travelport: {
24
+ getFlightInfo: string;
25
+ };
26
+ upload: {
27
+ signedUrl: string;
28
+ };
29
+ image: {
30
+ extractFlightTicket: string;
31
+ };
32
+ bid: {
33
+ list: string;
34
+ };
35
+ userHandlers: {
36
+ userProfile: string;
37
+ changePassword: string;
38
+ list: string;
39
+ approveUser: string;
40
+ bookerList: string;
41
+ createBooker: string;
42
+ createManyBooker: string;
43
+ getBooker: string;
44
+ updateBooker: string;
45
+ getCommissionRate: string;
46
+ updateCommissionRate: string;
47
+ getBookersOfSupervisor: string;
48
+ };
49
+ dashboardHandlers: {
50
+ getTotalCommissionAmount: string;
51
+ getTotalTransaction: string;
52
+ getTransactionCountGroupByType: string;
53
+ getTransactionCountByStatus: string;
54
+ getTransactionCountByDate: string;
55
+ };
56
+ };
@@ -0,0 +1,6 @@
1
+ export declare const COUNTRIES: {
2
+ name: string;
3
+ nameVi: string;
4
+ alpha3: string;
5
+ alpha2: string;
6
+ }[];
@@ -0,0 +1,5 @@
1
+ export declare const Env: {
2
+ API_URL: any;
3
+ BUILD_FOR: any;
4
+ BOOKER_URL: any;
5
+ };
@@ -0,0 +1,7 @@
1
+ export declare const FILE_TYPES: {
2
+ IMAGE: string[];
3
+ PDF: string[];
4
+ };
5
+ export declare const FILE_MAX_SIZE: number;
6
+ export declare const FILE_MAX_FILES = 5;
7
+ export declare const FILE_ACCEPT: string[];
@@ -0,0 +1,6 @@
1
+ type Province = {
2
+ id: string;
3
+ name: string;
4
+ };
5
+ export declare const provinces: Province[];
6
+ export {};
@@ -0,0 +1,14 @@
1
+ interface Props {
2
+ children: React.ReactNode;
3
+ type?: 'button' | 'submit' | 'reset';
4
+ className?: string;
5
+ onClick?: () => void;
6
+ disabled?: boolean;
7
+ loading?: boolean;
8
+ size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
9
+ title?: string;
10
+ variant?: 'solid' | 'subtle' | 'surface' | 'outline' | 'ghost' | 'plain';
11
+ colorPalette?: 'blue' | 'green' | 'red' | 'yellow' | 'purple' | 'gray';
12
+ }
13
+ export declare const GTButton: ({ children, type, className, onClick, disabled, loading, size, title, variant, colorPalette, }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,13 @@
1
+ interface GTLineChartProps {
2
+ data: Array<{
3
+ [key: string]: string | number;
4
+ }>;
5
+ dataKey: string;
6
+ lines: Array<{
7
+ dataKey: string;
8
+ name: string;
9
+ }>;
10
+ loading?: boolean;
11
+ }
12
+ export declare const GTLineChart: ({ data, dataKey, lines, loading }: GTLineChartProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ interface GTPieChartProps {
2
+ data: Array<{
3
+ name: string;
4
+ value: number;
5
+ }>;
6
+ loading: boolean;
7
+ }
8
+ export declare const GTPieChart: (props: GTPieChartProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface GTDrawerProps {
3
+ open: boolean;
4
+ setOpen: (open: boolean) => void;
5
+ children: React.ReactNode;
6
+ header?: React.ReactNode;
7
+ footer?: React.ReactNode;
8
+ trigger?: React.ReactNode;
9
+ contentWidth?: string;
10
+ }
11
+ declare const GTDrawer: React.FC<GTDrawerProps>;
12
+ export default GTDrawer;
@@ -0,0 +1,5 @@
1
+ import { UseFormRegisterReturn } from 'react-hook-form';
2
+ export declare const DEFAULT_INPUT_CLASS_NAME = "relative block w-full rounded-md border-0 p-1.5 text-gray-900 ring-1 ring-gray-300 ring-inset placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-blue-600 focus:ring-inset";
3
+ type InputProps = {} & UseFormRegisterReturn<any> & React.InputHTMLAttributes<HTMLInputElement>;
4
+ export declare const GTInput: ({ className, ...otherProps }: InputProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface GTStatProps {
3
+ label: string;
4
+ children: React.ReactNode;
5
+ loading?: boolean;
6
+ }
7
+ declare const GTStat: React.FC<GTStatProps>;
8
+ export default GTStat;
@@ -0,0 +1,7 @@
1
+ interface ToastProps {
2
+ message: string;
3
+ type: 'success' | 'error';
4
+ duration?: number;
5
+ }
6
+ export declare const Toast: ({ message, type, duration }: ToastProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { EmbededIndividualAppProps } from './components/Apps/EmbededIndividualApp';
2
+ interface FxTransactionFormType {
3
+ init: (id: string, props: EmbededIndividualAppProps) => void;
4
+ }
5
+ declare const FxTransactionForm: FxTransactionFormType;
6
+ export type { EmbededIndividualAppProps, FxTransactionFormType };
7
+ export default FxTransactionForm;