gotrip-fx-transaction-form 1.0.138 → 1.0.139
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/assets/index.css +1 -1
- package/index.js +58149 -57878
- package/package.json +1 -1
- package/types/components/AddTransaction/Agent.d.ts +9 -0
- package/types/components/AddTransaction/CustomerInformation.d.ts +26 -0
- package/types/components/AddTransaction/FlightInfomation.d.ts +22 -0
- package/types/components/AddTransaction/MultipleCustomers.d.ts +8 -0
- package/types/components/AddTransaction/TransactionConfirmationModal.d.ts +32 -0
- package/types/components/CurrencyExchangeRate/CurrencyExchangeRate.d.ts +1 -10
- package/types/components/CustomerSelection/CustomerSelection.d.ts +5 -2
- package/types/components/HrWithCenteredText/HrWithCenteredText.d.ts +6 -0
- package/types/constants/env.d.ts +1 -0
- package/types/design-systems/Select/SelectSearchable.d.ts +2 -1
- package/types/hooks/transactions/useEducation.hook.d.ts +24 -24
- package/types/hooks/transactions/useGroupTransactions.d.ts +20 -20
- package/types/hooks/transactions/useImmigration.hook.d.ts +24 -24
- package/types/hooks/useGroupCustomers.d.ts +52 -52
- package/types/hooks/useImportBookers.d.ts +9 -9
- package/types/hooks/useImportMembers.d.ts +9 -9
- package/types/hooks/useIsMobileDevice.d.ts +1 -0
- package/types/hooks/useTicketImage.d.ts +5 -0
- package/types/pages/guest/home.d.ts +1 -2
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FieldErrors, UseFormRegister } from 'react-hook-form';
|
|
2
|
+
type Props = {
|
|
3
|
+
errors: FieldErrors;
|
|
4
|
+
register: UseFormRegister<any>;
|
|
5
|
+
agentIdentityFileInputRef: React.RefObject<HTMLInputElement>;
|
|
6
|
+
isUploadingAgentIdentity: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const Agent: ({ errors, register, agentIdentityFileInputRef, isUploadingAgentIdentity, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FieldErrors } from 'react-hook-form';
|
|
2
|
+
import { IFileUrl } from '../../types/response.dto';
|
|
3
|
+
export interface CustomerInfo {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
ticketCode: string;
|
|
7
|
+
passportNo: string;
|
|
8
|
+
idNo: string;
|
|
9
|
+
mobileNo: string;
|
|
10
|
+
idCardFileUrls: IFileUrl[];
|
|
11
|
+
passportFileUrls: IFileUrl[];
|
|
12
|
+
}
|
|
13
|
+
type Props = {
|
|
14
|
+
imageSrc: string;
|
|
15
|
+
selectedCustomers: CustomerInfo[];
|
|
16
|
+
removeCustomer: (id: string) => void;
|
|
17
|
+
updateCustomerInfo: (id: string, field: string, value: string) => void;
|
|
18
|
+
handleIdentityDocumentUpload: (e: React.ChangeEvent<HTMLInputElement>, id: string, type: 'idCard' | 'passport') => void;
|
|
19
|
+
uploadingDocuments: Record<string, boolean>;
|
|
20
|
+
availableCustomers: any[];
|
|
21
|
+
addNewCustomer: () => void;
|
|
22
|
+
addMoreFromTicket: () => void;
|
|
23
|
+
errors: FieldErrors;
|
|
24
|
+
};
|
|
25
|
+
export declare const CustomerInformation: ({ imageSrc, selectedCustomers, removeCustomer, updateCustomerInfo, handleIdentityDocumentUpload, uploadingDocuments, availableCustomers, addNewCustomer, addMoreFromTicket, errors, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FieldErrors, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormTrigger } from 'react-hook-form';
|
|
2
|
+
type Props = {
|
|
3
|
+
imageSrc: string;
|
|
4
|
+
handleCaptureImage: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
handleAgentIdentityDocumentUpload: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
agentIdentityFileInputRef: React.RefObject<HTMLInputElement>;
|
|
7
|
+
setIsWebcamOpen: (isOpen: boolean) => void;
|
|
8
|
+
showGetTicketInfo: boolean;
|
|
9
|
+
errors: FieldErrors;
|
|
10
|
+
register: UseFormRegister<any>;
|
|
11
|
+
getValues: UseFormGetValues<any>;
|
|
12
|
+
setValue: UseFormSetValue<any>;
|
|
13
|
+
trigger: UseFormTrigger<any>;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
getFlightInfo: () => void;
|
|
16
|
+
isVN: boolean;
|
|
17
|
+
fileInputRef: React.RefObject<HTMLInputElement>;
|
|
18
|
+
handleSelectTicketAsImage: (files: File[]) => void;
|
|
19
|
+
isMobileDevices: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare const FlightInformation: ({ imageSrc, handleCaptureImage, handleAgentIdentityDocumentUpload, agentIdentityFileInputRef, setIsWebcamOpen, showGetTicketInfo, errors, register, getValues, setValue, trigger, isLoading, getFlightInfo, isVN, fileInputRef, handleSelectTicketAsImage, isMobileDevices, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
onFinish: () => void;
|
|
3
|
+
onBack?: () => void;
|
|
4
|
+
showGetTicketInfo?: boolean;
|
|
5
|
+
hideBankSelection?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const MultipleCustomers: ({ onFinish, showGetTicketInfo, hideBankSelection, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ITenant } from '../../types/response.dto';
|
|
2
|
+
interface Customer {
|
|
3
|
+
name: string;
|
|
4
|
+
idNo: string;
|
|
5
|
+
passportNo: string;
|
|
6
|
+
mobileNo: string;
|
|
7
|
+
ticketCode?: string;
|
|
8
|
+
}
|
|
9
|
+
interface TransactionData {
|
|
10
|
+
reservationNumber: string;
|
|
11
|
+
airlineName: string;
|
|
12
|
+
departureDate: string;
|
|
13
|
+
countryNameDes: string;
|
|
14
|
+
currencyCode: string;
|
|
15
|
+
amount: number;
|
|
16
|
+
customers?: Customer[];
|
|
17
|
+
useAgent?: boolean;
|
|
18
|
+
agentName?: string;
|
|
19
|
+
agentIdNo?: string;
|
|
20
|
+
agentMobileNo?: string;
|
|
21
|
+
}
|
|
22
|
+
interface Props {
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
onConfirm: () => void;
|
|
26
|
+
data: TransactionData | null;
|
|
27
|
+
selectedBank: ITenant | null | undefined;
|
|
28
|
+
exchangeRate: string | number;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const TransactionConfirmationModal: ({ isOpen, onClose, onConfirm, data, selectedBank, isLoading, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
export {};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
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 {};
|
|
1
|
+
export declare const CurrencyExchangeRate: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,10 @@ export type Customer = {
|
|
|
4
4
|
};
|
|
5
5
|
type Props = {
|
|
6
6
|
customers: Customer[];
|
|
7
|
-
onSelect: (customer: Customer) => void;
|
|
7
|
+
onSelect: (customer: Customer | Customer[]) => void;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
preSelectedCustomers?: Customer[];
|
|
10
|
+
onClose?: () => void;
|
|
8
11
|
};
|
|
9
|
-
export declare const CustomerSelection: ({ customers, onSelect }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const CustomerSelection: ({ customers, onSelect, multiple, preSelectedCustomers, onClose, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
export {};
|
package/types/constants/env.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type Option = {
|
|
|
3
3
|
value: string;
|
|
4
4
|
};
|
|
5
5
|
type ChakraSelectSearchableProps = {
|
|
6
|
+
size?: 'md' | 'sm';
|
|
6
7
|
loading?: boolean;
|
|
7
8
|
options: Option[];
|
|
8
9
|
value?: string | number | Option;
|
|
@@ -14,5 +15,5 @@ type ChakraSelectSearchableProps = {
|
|
|
14
15
|
control?: (base: React.CSSProperties) => React.CSSProperties;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
|
-
export declare const GTSelectSearchable: ({ options, value, onChange, placeholder, styles, loading, }: ChakraSelectSearchableProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const GTSelectSearchable: ({ size, options, value, onChange, placeholder, styles, loading, }: ChakraSelectSearchableProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -65,13 +65,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
65
65
|
link: string;
|
|
66
66
|
}[] | undefined;
|
|
67
67
|
customerName: string;
|
|
68
|
+
email: string;
|
|
68
69
|
mobileNo: string;
|
|
70
|
+
province: string;
|
|
69
71
|
amount: number;
|
|
70
72
|
currencyCode: string;
|
|
71
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
72
|
-
email: string;
|
|
73
|
-
province: string;
|
|
74
73
|
bankShortNames: (string | undefined)[];
|
|
74
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
75
75
|
document1: {
|
|
76
76
|
type: string;
|
|
77
77
|
link: string;
|
|
@@ -95,13 +95,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
95
95
|
link: string;
|
|
96
96
|
}[] | undefined;
|
|
97
97
|
customerName: string;
|
|
98
|
+
email: string;
|
|
98
99
|
mobileNo: string;
|
|
100
|
+
province: string;
|
|
99
101
|
amount: number;
|
|
100
102
|
currencyCode: string;
|
|
101
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
102
|
-
email: string;
|
|
103
|
-
province: string;
|
|
104
103
|
bankShortNames: (string | undefined)[];
|
|
104
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
105
105
|
document1: {
|
|
106
106
|
type: string;
|
|
107
107
|
link: string;
|
|
@@ -126,13 +126,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
126
126
|
link: string;
|
|
127
127
|
}[] | undefined;
|
|
128
128
|
customerName: string;
|
|
129
|
+
email: string;
|
|
129
130
|
mobileNo: string;
|
|
131
|
+
province: string;
|
|
130
132
|
amount: number;
|
|
131
133
|
currencyCode: string;
|
|
132
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
133
|
-
email: string;
|
|
134
|
-
province: string;
|
|
135
134
|
bankShortNames: (string | undefined)[];
|
|
135
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
136
136
|
document1: {
|
|
137
137
|
type: string;
|
|
138
138
|
link: string;
|
|
@@ -157,13 +157,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
157
157
|
link: string;
|
|
158
158
|
}[] | undefined;
|
|
159
159
|
customerName: string;
|
|
160
|
+
email: string;
|
|
160
161
|
mobileNo: string;
|
|
162
|
+
province: string;
|
|
161
163
|
amount: number;
|
|
162
164
|
currencyCode: string;
|
|
163
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
164
|
-
email: string;
|
|
165
|
-
province: string;
|
|
166
165
|
bankShortNames: (string | undefined)[];
|
|
166
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
167
167
|
document1: {
|
|
168
168
|
type: string;
|
|
169
169
|
link: string;
|
|
@@ -187,13 +187,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
187
187
|
link: string;
|
|
188
188
|
}[] | undefined;
|
|
189
189
|
customerName: string;
|
|
190
|
+
email: string;
|
|
190
191
|
mobileNo: string;
|
|
192
|
+
province: string;
|
|
191
193
|
amount: number;
|
|
192
194
|
currencyCode: string;
|
|
193
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
194
|
-
email: string;
|
|
195
|
-
province: string;
|
|
196
195
|
bankShortNames: (string | undefined)[];
|
|
196
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
197
197
|
document1: {
|
|
198
198
|
type: string;
|
|
199
199
|
link: string;
|
|
@@ -218,13 +218,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
218
218
|
link: string;
|
|
219
219
|
}[] | undefined;
|
|
220
220
|
customerName: string;
|
|
221
|
+
email: string;
|
|
221
222
|
mobileNo: string;
|
|
223
|
+
province: string;
|
|
222
224
|
amount: number;
|
|
223
225
|
currencyCode: string;
|
|
224
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
225
|
-
email: string;
|
|
226
|
-
province: string;
|
|
227
226
|
bankShortNames: (string | undefined)[];
|
|
227
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
228
228
|
document1: {
|
|
229
229
|
type: string;
|
|
230
230
|
link: string;
|
|
@@ -248,13 +248,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
248
248
|
link: string;
|
|
249
249
|
}[] | undefined;
|
|
250
250
|
customerName: string;
|
|
251
|
+
email: string;
|
|
251
252
|
mobileNo: string;
|
|
253
|
+
province: string;
|
|
252
254
|
amount: number;
|
|
253
255
|
currencyCode: string;
|
|
254
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
255
|
-
email: string;
|
|
256
|
-
province: string;
|
|
257
256
|
bankShortNames: (string | undefined)[];
|
|
257
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
258
258
|
document1: {
|
|
259
259
|
type: string;
|
|
260
260
|
link: string;
|
|
@@ -295,13 +295,13 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
295
295
|
link: string;
|
|
296
296
|
}[] | undefined;
|
|
297
297
|
customerName: string;
|
|
298
|
+
email: string;
|
|
298
299
|
mobileNo: string;
|
|
300
|
+
province: string;
|
|
299
301
|
amount: number;
|
|
300
302
|
currencyCode: string;
|
|
301
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
302
|
-
email: string;
|
|
303
|
-
province: string;
|
|
304
303
|
bankShortNames: (string | undefined)[];
|
|
304
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
305
305
|
document1: {
|
|
306
306
|
type: string;
|
|
307
307
|
link: string;
|
|
@@ -5,10 +5,10 @@ export declare const useGroupTransactions: () => {
|
|
|
5
5
|
customers?: {
|
|
6
6
|
name: string;
|
|
7
7
|
status: TransactionStatus;
|
|
8
|
-
passportNo: string;
|
|
9
|
-
idNo: string;
|
|
10
8
|
amount: number;
|
|
11
9
|
currencyCode: string;
|
|
10
|
+
passportNo: string;
|
|
11
|
+
idNo: string;
|
|
12
12
|
exchangeRate: number;
|
|
13
13
|
transactionId: number;
|
|
14
14
|
phoneNumber: string;
|
|
@@ -19,10 +19,10 @@ export declare const useGroupTransactions: () => {
|
|
|
19
19
|
customers?: {
|
|
20
20
|
name: string;
|
|
21
21
|
status: TransactionStatus;
|
|
22
|
-
passportNo: string;
|
|
23
|
-
idNo: string;
|
|
24
22
|
amount: number;
|
|
25
23
|
currencyCode: string;
|
|
24
|
+
passportNo: string;
|
|
25
|
+
idNo: string;
|
|
26
26
|
exchangeRate: number;
|
|
27
27
|
transactionId: number;
|
|
28
28
|
phoneNumber: string;
|
|
@@ -33,10 +33,10 @@ export declare const useGroupTransactions: () => {
|
|
|
33
33
|
customers?: {
|
|
34
34
|
name: string;
|
|
35
35
|
status: TransactionStatus;
|
|
36
|
-
passportNo: string;
|
|
37
|
-
idNo: string;
|
|
38
36
|
amount: number;
|
|
39
37
|
currencyCode: string;
|
|
38
|
+
passportNo: string;
|
|
39
|
+
idNo: string;
|
|
40
40
|
exchangeRate: number;
|
|
41
41
|
transactionId: number;
|
|
42
42
|
phoneNumber: string;
|
|
@@ -47,10 +47,10 @@ export declare const useGroupTransactions: () => {
|
|
|
47
47
|
customers?: {
|
|
48
48
|
name: string;
|
|
49
49
|
status: TransactionStatus;
|
|
50
|
-
passportNo: string;
|
|
51
|
-
idNo: string;
|
|
52
50
|
amount: number;
|
|
53
51
|
currencyCode: string;
|
|
52
|
+
passportNo: string;
|
|
53
|
+
idNo: string;
|
|
54
54
|
exchangeRate: number;
|
|
55
55
|
transactionId: number;
|
|
56
56
|
phoneNumber: string;
|
|
@@ -61,10 +61,10 @@ export declare const useGroupTransactions: () => {
|
|
|
61
61
|
customers?: {
|
|
62
62
|
name: string;
|
|
63
63
|
status: TransactionStatus;
|
|
64
|
-
passportNo: string;
|
|
65
|
-
idNo: string;
|
|
66
64
|
amount: number;
|
|
67
65
|
currencyCode: string;
|
|
66
|
+
passportNo: string;
|
|
67
|
+
idNo: string;
|
|
68
68
|
exchangeRate: number;
|
|
69
69
|
transactionId: number;
|
|
70
70
|
phoneNumber: string;
|
|
@@ -75,10 +75,10 @@ export declare const useGroupTransactions: () => {
|
|
|
75
75
|
customers?: {
|
|
76
76
|
name: string;
|
|
77
77
|
status: TransactionStatus;
|
|
78
|
-
passportNo: string;
|
|
79
|
-
idNo: string;
|
|
80
78
|
amount: number;
|
|
81
79
|
currencyCode: string;
|
|
80
|
+
passportNo: string;
|
|
81
|
+
idNo: string;
|
|
82
82
|
exchangeRate: number;
|
|
83
83
|
transactionId: number;
|
|
84
84
|
phoneNumber: string;
|
|
@@ -89,10 +89,10 @@ export declare const useGroupTransactions: () => {
|
|
|
89
89
|
customers?: {
|
|
90
90
|
name: string;
|
|
91
91
|
status: TransactionStatus;
|
|
92
|
-
passportNo: string;
|
|
93
|
-
idNo: string;
|
|
94
92
|
amount: number;
|
|
95
93
|
currencyCode: string;
|
|
94
|
+
passportNo: string;
|
|
95
|
+
idNo: string;
|
|
96
96
|
exchangeRate: number;
|
|
97
97
|
transactionId: number;
|
|
98
98
|
phoneNumber: string;
|
|
@@ -103,10 +103,10 @@ export declare const useGroupTransactions: () => {
|
|
|
103
103
|
customers?: {
|
|
104
104
|
name: string;
|
|
105
105
|
status: TransactionStatus;
|
|
106
|
-
passportNo: string;
|
|
107
|
-
idNo: string;
|
|
108
106
|
amount: number;
|
|
109
107
|
currencyCode: string;
|
|
108
|
+
passportNo: string;
|
|
109
|
+
idNo: string;
|
|
110
110
|
exchangeRate: number;
|
|
111
111
|
transactionId: number;
|
|
112
112
|
phoneNumber: string;
|
|
@@ -125,10 +125,10 @@ export declare const useGroupTransactions: () => {
|
|
|
125
125
|
customers?: {
|
|
126
126
|
name: string;
|
|
127
127
|
status: TransactionStatus;
|
|
128
|
-
passportNo: string;
|
|
129
|
-
idNo: string;
|
|
130
128
|
amount: number;
|
|
131
129
|
currencyCode: string;
|
|
130
|
+
passportNo: string;
|
|
131
|
+
idNo: string;
|
|
132
132
|
exchangeRate: number;
|
|
133
133
|
transactionId: number;
|
|
134
134
|
phoneNumber: string;
|
|
@@ -139,10 +139,10 @@ export declare const useGroupTransactions: () => {
|
|
|
139
139
|
customers?: {
|
|
140
140
|
name: string;
|
|
141
141
|
status: TransactionStatus;
|
|
142
|
-
passportNo: string;
|
|
143
|
-
idNo: string;
|
|
144
142
|
amount: number;
|
|
145
143
|
currencyCode: string;
|
|
144
|
+
passportNo: string;
|
|
145
|
+
idNo: string;
|
|
146
146
|
exchangeRate: number;
|
|
147
147
|
transactionId: number;
|
|
148
148
|
phoneNumber: string;
|
|
@@ -47,13 +47,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
47
47
|
onSetSelectedBanks: (banks: ITenant[]) => void;
|
|
48
48
|
register: import('react-hook-form').UseFormRegister<{
|
|
49
49
|
customerName: string;
|
|
50
|
+
email: string;
|
|
50
51
|
mobileNo: string;
|
|
52
|
+
province: string;
|
|
51
53
|
amount: number;
|
|
52
54
|
currencyCode: string;
|
|
53
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
54
|
-
email: string;
|
|
55
|
-
province: string;
|
|
56
55
|
bankShortNames: (string | undefined)[];
|
|
56
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
57
57
|
document1: {
|
|
58
58
|
type: string;
|
|
59
59
|
link: string;
|
|
@@ -69,13 +69,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
69
69
|
}>;
|
|
70
70
|
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
71
71
|
customerName: string;
|
|
72
|
+
email: string;
|
|
72
73
|
mobileNo: string;
|
|
74
|
+
province: string;
|
|
73
75
|
amount: number;
|
|
74
76
|
currencyCode: string;
|
|
75
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
76
|
-
email: string;
|
|
77
|
-
province: string;
|
|
78
77
|
bankShortNames: (string | undefined)[];
|
|
78
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
79
79
|
document1: {
|
|
80
80
|
type: string;
|
|
81
81
|
link: string;
|
|
@@ -92,13 +92,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
92
92
|
formState: {
|
|
93
93
|
errors: import('react-hook-form').FieldErrors<{
|
|
94
94
|
customerName: string;
|
|
95
|
+
email: string;
|
|
95
96
|
mobileNo: string;
|
|
97
|
+
province: string;
|
|
96
98
|
amount: number;
|
|
97
99
|
currencyCode: string;
|
|
98
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
99
|
-
email: string;
|
|
100
|
-
province: string;
|
|
101
100
|
bankShortNames: (string | undefined)[];
|
|
101
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
102
102
|
document1: {
|
|
103
103
|
type: string;
|
|
104
104
|
link: string;
|
|
@@ -115,13 +115,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
115
115
|
};
|
|
116
116
|
getValues: import('react-hook-form').UseFormGetValues<{
|
|
117
117
|
customerName: string;
|
|
118
|
+
email: string;
|
|
118
119
|
mobileNo: string;
|
|
120
|
+
province: string;
|
|
119
121
|
amount: number;
|
|
120
122
|
currencyCode: string;
|
|
121
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
122
|
-
email: string;
|
|
123
|
-
province: string;
|
|
124
123
|
bankShortNames: (string | undefined)[];
|
|
124
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
125
125
|
document1: {
|
|
126
126
|
type: string;
|
|
127
127
|
link: string;
|
|
@@ -137,13 +137,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
137
137
|
}>;
|
|
138
138
|
setValue: import('react-hook-form').UseFormSetValue<{
|
|
139
139
|
customerName: string;
|
|
140
|
+
email: string;
|
|
140
141
|
mobileNo: string;
|
|
142
|
+
province: string;
|
|
141
143
|
amount: number;
|
|
142
144
|
currencyCode: string;
|
|
143
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
144
|
-
email: string;
|
|
145
|
-
province: string;
|
|
146
145
|
bankShortNames: (string | undefined)[];
|
|
146
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
147
147
|
document1: {
|
|
148
148
|
type: string;
|
|
149
149
|
link: string;
|
|
@@ -160,13 +160,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
160
160
|
onSubmit: (data: yup.InferType<typeof businessSchema>) => Promise<void>;
|
|
161
161
|
errors: import('react-hook-form').FieldErrors<{
|
|
162
162
|
customerName: string;
|
|
163
|
+
email: string;
|
|
163
164
|
mobileNo: string;
|
|
165
|
+
province: string;
|
|
164
166
|
amount: number;
|
|
165
167
|
currencyCode: string;
|
|
166
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
167
|
-
email: string;
|
|
168
|
-
province: string;
|
|
169
168
|
bankShortNames: (string | undefined)[];
|
|
169
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
170
170
|
document1: {
|
|
171
171
|
type: string;
|
|
172
172
|
link: string;
|
|
@@ -182,13 +182,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
182
182
|
}>;
|
|
183
183
|
reset: import('react-hook-form').UseFormReset<{
|
|
184
184
|
customerName: string;
|
|
185
|
+
email: string;
|
|
185
186
|
mobileNo: string;
|
|
187
|
+
province: string;
|
|
186
188
|
amount: number;
|
|
187
189
|
currencyCode: string;
|
|
188
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
189
|
-
email: string;
|
|
190
|
-
province: string;
|
|
191
190
|
bankShortNames: (string | undefined)[];
|
|
191
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
192
192
|
document1: {
|
|
193
193
|
type: string;
|
|
194
194
|
link: string;
|
|
@@ -219,13 +219,13 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
219
219
|
amount: number;
|
|
220
220
|
trigger: import('react-hook-form').UseFormTrigger<{
|
|
221
221
|
customerName: string;
|
|
222
|
+
email: string;
|
|
222
223
|
mobileNo: string;
|
|
224
|
+
province: string;
|
|
223
225
|
amount: number;
|
|
224
226
|
currencyCode: string;
|
|
225
|
-
agreeTerms: NonNullable<boolean | undefined>;
|
|
226
|
-
email: string;
|
|
227
|
-
province: string;
|
|
228
227
|
bankShortNames: (string | undefined)[];
|
|
228
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
229
229
|
document1: {
|
|
230
230
|
type: string;
|
|
231
231
|
link: string;
|