gotrip-fx-transaction-form 1.0.56 → 1.0.58
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 +39933 -27563
- package/package.json +1 -1
- package/types/components/AddDepartment/AddDepartmentForm.d.ts +2 -1
- package/types/components/AddTransaction/BankList.d.ts +15 -10
- package/types/components/AddTransaction/UploadingStatus.d.ts +6 -0
- package/types/components/AddTransaction/UseCaseSelection.d.ts +1 -15
- package/types/components/AddUser/AddMemberForm.d.ts +2 -1
- package/types/components/CountrySelector/CountrySelector.d.ts +5 -0
- package/types/components/Department/DepartmentCard.d.ts +4 -1
- package/types/components/DocumentUpload/DocumentUpload.d.ts +12 -0
- package/types/components/ESIM/ProductCard.d.ts +9 -0
- package/types/components/Menu/MenuItem.d.ts +7 -1
- package/types/components/Menu/ProfileInfo.d.ts +11 -0
- package/types/components/Modal/AddDepartmentMemberModal.d.ts +17 -0
- package/types/components/Modal/AddDepartmentModal.d.ts +16 -0
- package/types/components/Modal/AddMemberModal.d.ts +16 -0
- package/types/components/Modal/MemberDetailModel.d.ts +12 -0
- package/types/components/Modal/RejectTransactionModal.d.ts +9 -0
- package/types/components/Modal/UpdateCommissionPolicyModal.d.ts +9 -0
- package/types/components/OrganizationFlow/DepartmentNode.d.ts +21 -0
- package/types/components/OrganizationFlow/LayoutFlow.d.ts +44 -0
- package/types/components/OrganizationFlow/OrganizationLayoutFlow.d.ts +10 -0
- package/types/components/SortSelector/SortSelector.d.ts +14 -0
- package/types/components/TransactionDetail/BankBiddingList.d.ts +21 -0
- package/types/components/TransactionStatusBadge/TransactionStatusBadge.d.ts +1 -1
- package/types/constants/api-urls.d.ts +18 -1
- package/types/constants/business-codes.d.ts +2 -1
- package/types/constants/env.d.ts +13 -0
- package/types/hooks/transactions/useEducation.hook.d.ts +172 -123
- package/types/hooks/transactions/useGroupTransactions.d.ts +153 -0
- package/types/hooks/transactions/useGuestTransaction.d.ts +66 -0
- package/types/hooks/transactions/useImmigration.hook.d.ts +116 -75
- package/types/hooks/transactions/useTransferMoneyAbroadTransaction.d.ts +58 -0
- package/types/hooks/useBankList.d.ts +6 -0
- package/types/hooks/useComissionPolicies.d.ts +6 -0
- package/types/hooks/useCommissionCalculation.d.ts +13 -0
- package/types/hooks/useDepartmentList.d.ts +1 -0
- package/types/hooks/useESimList.d.ts +22 -0
- package/types/hooks/useGroupCustomers.d.ts +3 -3
- package/types/hooks/useHeaderMenu.d.ts +13 -0
- package/types/hooks/useOrganizationStructure.d.ts +9 -0
- package/types/hooks/useRequestCustomers.d.ts +1 -126
- package/types/hooks/useTransactionList.d.ts +0 -1
- package/types/hooks/useUseCases.d.ts +16 -0
- package/types/pages/admin/tenant-organization-flow/OrganizationFlow.d.ts +1 -0
- package/types/pages/agency/department-detail/AddDepartmentMember.d.ts +8 -0
- package/types/pages/agency/department-detail/DepartmentDetail.d.ts +1 -0
- package/types/pages/agency/department-list/AddDepartment.d.ts +5 -0
- package/types/pages/agency/department-list/DepartmentList.d.ts +2 -0
- package/types/pages/agency/esim-listing/ESIMListing.d.ts +6 -0
- package/types/pages/agency/organization-flow/OrganizationFlow.d.ts +1 -0
- package/types/pages/agency/transaction-detail/GroupTransactionDetail.d.ts +8 -0
- package/types/pages/agency/transaction-detail/TransactionDetail.d.ts +3 -0
- package/types/pages/agency/transaction-detail/TransferMoneyAbroadTransactionDetail.d.ts +6 -0
- package/types/pages/partner/add-member/AddMember.d.ts +1 -1
- package/types/pages/partner/department-detail/EditDepartmentModal.d.ts +33 -0
- package/types/pages/partner/organization-flow/OrganizationFlow.d.ts +1 -0
- package/types/pages/partner/transaction-detail/GroupTransactionDetail.d.ts +7 -0
- package/types/pages/partner/transaction-detail/SingularTransactionDetail.d.ts +6 -0
- package/types/pages/partner/transaction-detail/TransferMoneyAbroadTransactionDetail.d.ts +6 -0
- package/types/pages/partner/transaction-list/GroupTransactionList.d.ts +1 -2
- package/types/types/enum.d.ts +18 -1
- package/types/types/request.dto.d.ts +6 -0
- package/types/types/response.dto.d.ts +64 -1
- package/types/types/role.d.ts +5 -0
- package/types/types/user.d.ts +2 -1
- package/types/util/signed-url.util.d.ts +3 -0
- package/types/util/transaction.util.d.ts +1 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ITenant } from '../../types/response.dto';
|
|
2
|
+
import { NumberFormatValues } from 'react-number-format';
|
|
3
3
|
import * as yup from 'yup';
|
|
4
4
|
declare const educationSchema: yup.ObjectSchema<{
|
|
5
|
-
|
|
5
|
+
customerName: string;
|
|
6
6
|
email: string;
|
|
7
|
-
|
|
7
|
+
mobileNo: string;
|
|
8
8
|
province: string;
|
|
9
9
|
amount: number;
|
|
10
|
-
|
|
10
|
+
currencyCode: string;
|
|
11
|
+
bankShortNames: (string | undefined)[];
|
|
12
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
11
13
|
document1: {
|
|
12
14
|
type: string;
|
|
13
15
|
link: string;
|
|
14
|
-
}[]
|
|
16
|
+
}[];
|
|
15
17
|
document2: {
|
|
16
18
|
type: string;
|
|
17
19
|
link: string;
|
|
@@ -23,18 +25,20 @@ declare const educationSchema: yup.ObjectSchema<{
|
|
|
23
25
|
document4: {
|
|
24
26
|
type: string;
|
|
25
27
|
link: string;
|
|
26
|
-
}[]
|
|
28
|
+
}[];
|
|
27
29
|
document5: {
|
|
28
30
|
type: string;
|
|
29
31
|
link: string;
|
|
30
|
-
}[]
|
|
32
|
+
}[];
|
|
31
33
|
}, yup.AnyObject, {
|
|
32
|
-
|
|
34
|
+
customerName: undefined;
|
|
33
35
|
email: undefined;
|
|
34
|
-
|
|
36
|
+
mobileNo: undefined;
|
|
35
37
|
province: undefined;
|
|
36
|
-
amount:
|
|
37
|
-
|
|
38
|
+
amount: 50000;
|
|
39
|
+
currencyCode: undefined;
|
|
40
|
+
bankShortNames: "";
|
|
41
|
+
agreeTerms: undefined;
|
|
38
42
|
document1: "";
|
|
39
43
|
document2: "";
|
|
40
44
|
document3: "";
|
|
@@ -45,14 +49,13 @@ type Props = {
|
|
|
45
49
|
onFinish?: () => void;
|
|
46
50
|
};
|
|
47
51
|
export declare const useEducation: ({ onFinish }: Props) => {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
uploadState: {
|
|
53
|
+
total: number;
|
|
54
|
+
uploaded: number;
|
|
55
|
+
};
|
|
56
|
+
selectedBanks: ITenant[];
|
|
57
|
+
onSetSelectedBanks: (banks: ITenant[]) => void;
|
|
51
58
|
register: import('react-hook-form').UseFormRegister<{
|
|
52
|
-
document1?: {
|
|
53
|
-
type: string;
|
|
54
|
-
link: string;
|
|
55
|
-
}[] | undefined;
|
|
56
59
|
document2?: {
|
|
57
60
|
type: string;
|
|
58
61
|
link: string;
|
|
@@ -61,55 +64,59 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
61
64
|
type: string;
|
|
62
65
|
link: string;
|
|
63
66
|
}[] | undefined;
|
|
64
|
-
document4?: {
|
|
65
|
-
type: string;
|
|
66
|
-
link: string;
|
|
67
|
-
}[] | undefined;
|
|
68
|
-
document5?: {
|
|
69
|
-
type: string;
|
|
70
|
-
link: string;
|
|
71
|
-
}[] | undefined;
|
|
72
|
-
name: string;
|
|
73
|
-
phone: string;
|
|
74
67
|
email: string;
|
|
75
|
-
|
|
68
|
+
customerName: string;
|
|
69
|
+
mobileNo: string;
|
|
76
70
|
amount: number;
|
|
71
|
+
currencyCode: string;
|
|
72
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
77
73
|
province: string;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
document1?: {
|
|
74
|
+
bankShortNames: (string | undefined)[];
|
|
75
|
+
document1: {
|
|
81
76
|
type: string;
|
|
82
77
|
link: string;
|
|
83
|
-
}[]
|
|
84
|
-
|
|
78
|
+
}[];
|
|
79
|
+
document4: {
|
|
85
80
|
type: string;
|
|
86
81
|
link: string;
|
|
87
|
-
}[]
|
|
88
|
-
|
|
82
|
+
}[];
|
|
83
|
+
document5: {
|
|
89
84
|
type: string;
|
|
90
85
|
link: string;
|
|
91
|
-
}[]
|
|
92
|
-
|
|
86
|
+
}[];
|
|
87
|
+
}>;
|
|
88
|
+
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
89
|
+
document2?: {
|
|
93
90
|
type: string;
|
|
94
91
|
link: string;
|
|
95
92
|
}[] | undefined;
|
|
96
|
-
|
|
93
|
+
document3?: {
|
|
97
94
|
type: string;
|
|
98
95
|
link: string;
|
|
99
96
|
}[] | undefined;
|
|
100
|
-
name: string;
|
|
101
|
-
phone: string;
|
|
102
97
|
email: string;
|
|
103
|
-
|
|
98
|
+
customerName: string;
|
|
99
|
+
mobileNo: string;
|
|
104
100
|
amount: number;
|
|
101
|
+
currencyCode: string;
|
|
102
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
105
103
|
province: string;
|
|
104
|
+
bankShortNames: (string | undefined)[];
|
|
105
|
+
document1: {
|
|
106
|
+
type: string;
|
|
107
|
+
link: string;
|
|
108
|
+
}[];
|
|
109
|
+
document4: {
|
|
110
|
+
type: string;
|
|
111
|
+
link: string;
|
|
112
|
+
}[];
|
|
113
|
+
document5: {
|
|
114
|
+
type: string;
|
|
115
|
+
link: string;
|
|
116
|
+
}[];
|
|
106
117
|
}, undefined>;
|
|
107
118
|
formState: {
|
|
108
119
|
errors: import('react-hook-form').FieldErrors<{
|
|
109
|
-
document1?: {
|
|
110
|
-
type: string;
|
|
111
|
-
link: string;
|
|
112
|
-
}[] | undefined;
|
|
113
120
|
document2?: {
|
|
114
121
|
type: string;
|
|
115
122
|
link: string;
|
|
@@ -118,27 +125,29 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
118
125
|
type: string;
|
|
119
126
|
link: string;
|
|
120
127
|
}[] | undefined;
|
|
121
|
-
|
|
128
|
+
email: string;
|
|
129
|
+
customerName: string;
|
|
130
|
+
mobileNo: string;
|
|
131
|
+
amount: number;
|
|
132
|
+
currencyCode: string;
|
|
133
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
134
|
+
province: string;
|
|
135
|
+
bankShortNames: (string | undefined)[];
|
|
136
|
+
document1: {
|
|
122
137
|
type: string;
|
|
123
138
|
link: string;
|
|
124
|
-
}[]
|
|
125
|
-
|
|
139
|
+
}[];
|
|
140
|
+
document4: {
|
|
126
141
|
type: string;
|
|
127
142
|
link: string;
|
|
128
|
-
}[]
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
amount: number;
|
|
134
|
-
province: string;
|
|
143
|
+
}[];
|
|
144
|
+
document5: {
|
|
145
|
+
type: string;
|
|
146
|
+
link: string;
|
|
147
|
+
}[];
|
|
135
148
|
}>;
|
|
136
149
|
};
|
|
137
150
|
getValues: import('react-hook-form').UseFormGetValues<{
|
|
138
|
-
document1?: {
|
|
139
|
-
type: string;
|
|
140
|
-
link: string;
|
|
141
|
-
}[] | undefined;
|
|
142
151
|
document2?: {
|
|
143
152
|
type: string;
|
|
144
153
|
link: string;
|
|
@@ -147,105 +156,117 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
147
156
|
type: string;
|
|
148
157
|
link: string;
|
|
149
158
|
}[] | undefined;
|
|
150
|
-
document4?: {
|
|
151
|
-
type: string;
|
|
152
|
-
link: string;
|
|
153
|
-
}[] | undefined;
|
|
154
|
-
document5?: {
|
|
155
|
-
type: string;
|
|
156
|
-
link: string;
|
|
157
|
-
}[] | undefined;
|
|
158
|
-
name: string;
|
|
159
|
-
phone: string;
|
|
160
159
|
email: string;
|
|
161
|
-
|
|
160
|
+
customerName: string;
|
|
161
|
+
mobileNo: string;
|
|
162
162
|
amount: number;
|
|
163
|
+
currencyCode: string;
|
|
164
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
163
165
|
province: string;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
document1?: {
|
|
166
|
+
bankShortNames: (string | undefined)[];
|
|
167
|
+
document1: {
|
|
167
168
|
type: string;
|
|
168
169
|
link: string;
|
|
169
|
-
}[]
|
|
170
|
-
|
|
170
|
+
}[];
|
|
171
|
+
document4: {
|
|
171
172
|
type: string;
|
|
172
173
|
link: string;
|
|
173
|
-
}[]
|
|
174
|
-
|
|
174
|
+
}[];
|
|
175
|
+
document5: {
|
|
175
176
|
type: string;
|
|
176
177
|
link: string;
|
|
177
|
-
}[]
|
|
178
|
-
|
|
178
|
+
}[];
|
|
179
|
+
}>;
|
|
180
|
+
setValue: import('react-hook-form').UseFormSetValue<{
|
|
181
|
+
document2?: {
|
|
179
182
|
type: string;
|
|
180
183
|
link: string;
|
|
181
184
|
}[] | undefined;
|
|
182
|
-
|
|
185
|
+
document3?: {
|
|
183
186
|
type: string;
|
|
184
187
|
link: string;
|
|
185
188
|
}[] | undefined;
|
|
186
|
-
name: string;
|
|
187
|
-
phone: string;
|
|
188
189
|
email: string;
|
|
189
|
-
|
|
190
|
+
customerName: string;
|
|
191
|
+
mobileNo: string;
|
|
190
192
|
amount: number;
|
|
193
|
+
currencyCode: string;
|
|
194
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
191
195
|
province: string;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
errors: import('react-hook-form').FieldErrors<{
|
|
195
|
-
document1?: {
|
|
196
|
+
bankShortNames: (string | undefined)[];
|
|
197
|
+
document1: {
|
|
196
198
|
type: string;
|
|
197
199
|
link: string;
|
|
198
|
-
}[]
|
|
199
|
-
|
|
200
|
+
}[];
|
|
201
|
+
document4: {
|
|
200
202
|
type: string;
|
|
201
203
|
link: string;
|
|
202
|
-
}[]
|
|
203
|
-
|
|
204
|
+
}[];
|
|
205
|
+
document5: {
|
|
204
206
|
type: string;
|
|
205
207
|
link: string;
|
|
206
|
-
}[]
|
|
207
|
-
|
|
208
|
+
}[];
|
|
209
|
+
}>;
|
|
210
|
+
onSubmit: (data: yup.InferType<typeof educationSchema>) => Promise<void>;
|
|
211
|
+
errors: import('react-hook-form').FieldErrors<{
|
|
212
|
+
document2?: {
|
|
208
213
|
type: string;
|
|
209
214
|
link: string;
|
|
210
215
|
}[] | undefined;
|
|
211
|
-
|
|
216
|
+
document3?: {
|
|
212
217
|
type: string;
|
|
213
218
|
link: string;
|
|
214
219
|
}[] | undefined;
|
|
215
|
-
name: string;
|
|
216
|
-
phone: string;
|
|
217
220
|
email: string;
|
|
218
|
-
|
|
221
|
+
customerName: string;
|
|
222
|
+
mobileNo: string;
|
|
219
223
|
amount: number;
|
|
224
|
+
currencyCode: string;
|
|
225
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
220
226
|
province: string;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
document1?: {
|
|
227
|
+
bankShortNames: (string | undefined)[];
|
|
228
|
+
document1: {
|
|
224
229
|
type: string;
|
|
225
230
|
link: string;
|
|
226
|
-
}[]
|
|
227
|
-
|
|
231
|
+
}[];
|
|
232
|
+
document4: {
|
|
228
233
|
type: string;
|
|
229
234
|
link: string;
|
|
230
|
-
}[]
|
|
231
|
-
|
|
235
|
+
}[];
|
|
236
|
+
document5: {
|
|
232
237
|
type: string;
|
|
233
238
|
link: string;
|
|
234
|
-
}[]
|
|
235
|
-
|
|
239
|
+
}[];
|
|
240
|
+
}>;
|
|
241
|
+
reset: import('react-hook-form').UseFormReset<{
|
|
242
|
+
document2?: {
|
|
236
243
|
type: string;
|
|
237
244
|
link: string;
|
|
238
245
|
}[] | undefined;
|
|
239
|
-
|
|
246
|
+
document3?: {
|
|
240
247
|
type: string;
|
|
241
248
|
link: string;
|
|
242
249
|
}[] | undefined;
|
|
243
|
-
name: string;
|
|
244
|
-
phone: string;
|
|
245
250
|
email: string;
|
|
246
|
-
|
|
251
|
+
customerName: string;
|
|
252
|
+
mobileNo: string;
|
|
247
253
|
amount: number;
|
|
254
|
+
currencyCode: string;
|
|
255
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
248
256
|
province: string;
|
|
257
|
+
bankShortNames: (string | undefined)[];
|
|
258
|
+
document1: {
|
|
259
|
+
type: string;
|
|
260
|
+
link: string;
|
|
261
|
+
}[];
|
|
262
|
+
document4: {
|
|
263
|
+
type: string;
|
|
264
|
+
link: string;
|
|
265
|
+
}[];
|
|
266
|
+
document5: {
|
|
267
|
+
type: string;
|
|
268
|
+
link: string;
|
|
269
|
+
}[];
|
|
249
270
|
}>;
|
|
250
271
|
documents: {
|
|
251
272
|
document1: File[];
|
|
@@ -254,17 +275,45 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
254
275
|
document4: File[];
|
|
255
276
|
document5: File[];
|
|
256
277
|
};
|
|
257
|
-
|
|
258
|
-
document1: File[];
|
|
259
|
-
document2: File[];
|
|
260
|
-
document3: File[];
|
|
261
|
-
document4: File[];
|
|
262
|
-
document5: File[];
|
|
263
|
-
}>>;
|
|
264
|
-
showUploadingModal: boolean;
|
|
265
|
-
setShowUploadingModal: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
266
|
-
totalFileCount: number;
|
|
267
|
-
uploadedFileCount: number;
|
|
278
|
+
onSetDocuments: (key: "document1" | "document2" | "document3" | "document4" | "document5", files: File[]) => void;
|
|
268
279
|
isLoading: boolean;
|
|
280
|
+
currencyCollection: import('@zag-js/collection').ListCollection<{
|
|
281
|
+
label: string;
|
|
282
|
+
value: string;
|
|
283
|
+
}>;
|
|
284
|
+
handleSelectCurrency: (currency: string) => void;
|
|
285
|
+
selectedCurrency: string;
|
|
286
|
+
handleAmountChange: (values: NumberFormatValues) => void;
|
|
287
|
+
amount: number;
|
|
288
|
+
trigger: import('react-hook-form').UseFormTrigger<{
|
|
289
|
+
document2?: {
|
|
290
|
+
type: string;
|
|
291
|
+
link: string;
|
|
292
|
+
}[] | undefined;
|
|
293
|
+
document3?: {
|
|
294
|
+
type: string;
|
|
295
|
+
link: string;
|
|
296
|
+
}[] | undefined;
|
|
297
|
+
email: string;
|
|
298
|
+
customerName: string;
|
|
299
|
+
mobileNo: string;
|
|
300
|
+
amount: number;
|
|
301
|
+
currencyCode: string;
|
|
302
|
+
agreeTerms: NonNullable<boolean | undefined>;
|
|
303
|
+
province: string;
|
|
304
|
+
bankShortNames: (string | undefined)[];
|
|
305
|
+
document1: {
|
|
306
|
+
type: string;
|
|
307
|
+
link: string;
|
|
308
|
+
}[];
|
|
309
|
+
document4: {
|
|
310
|
+
type: string;
|
|
311
|
+
link: string;
|
|
312
|
+
}[];
|
|
313
|
+
document5: {
|
|
314
|
+
type: string;
|
|
315
|
+
link: string;
|
|
316
|
+
}[];
|
|
317
|
+
}>;
|
|
269
318
|
};
|
|
270
319
|
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { ITransaction, SignedUrl } from '../../types/response.dto';
|
|
2
|
+
import { TransactionStatus } from '../../types/enum';
|
|
3
|
+
export declare const useGroupTransactions: () => {
|
|
4
|
+
getValues: import('react-hook-form').UseFormGetValues<{
|
|
5
|
+
customers?: {
|
|
6
|
+
name: string;
|
|
7
|
+
status: TransactionStatus;
|
|
8
|
+
passportNo: string;
|
|
9
|
+
idNo: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
currencyCode: string;
|
|
12
|
+
exchangeRate: number;
|
|
13
|
+
transactionId: number;
|
|
14
|
+
phoneNumber: string;
|
|
15
|
+
ticketNo: string;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
setValue: import('react-hook-form').UseFormSetValue<{
|
|
19
|
+
customers?: {
|
|
20
|
+
name: string;
|
|
21
|
+
status: TransactionStatus;
|
|
22
|
+
passportNo: string;
|
|
23
|
+
idNo: string;
|
|
24
|
+
amount: number;
|
|
25
|
+
currencyCode: string;
|
|
26
|
+
exchangeRate: number;
|
|
27
|
+
transactionId: number;
|
|
28
|
+
phoneNumber: string;
|
|
29
|
+
ticketNo: string;
|
|
30
|
+
}[] | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
watch: import('react-hook-form').UseFormWatch<{
|
|
33
|
+
customers?: {
|
|
34
|
+
name: string;
|
|
35
|
+
status: TransactionStatus;
|
|
36
|
+
passportNo: string;
|
|
37
|
+
idNo: string;
|
|
38
|
+
amount: number;
|
|
39
|
+
currencyCode: string;
|
|
40
|
+
exchangeRate: number;
|
|
41
|
+
transactionId: number;
|
|
42
|
+
phoneNumber: string;
|
|
43
|
+
ticketNo: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
trigger: import('react-hook-form').UseFormTrigger<{
|
|
47
|
+
customers?: {
|
|
48
|
+
name: string;
|
|
49
|
+
status: TransactionStatus;
|
|
50
|
+
passportNo: string;
|
|
51
|
+
idNo: string;
|
|
52
|
+
amount: number;
|
|
53
|
+
currencyCode: string;
|
|
54
|
+
exchangeRate: number;
|
|
55
|
+
transactionId: number;
|
|
56
|
+
phoneNumber: string;
|
|
57
|
+
ticketNo: string;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
reset: import('react-hook-form').UseFormReset<{
|
|
61
|
+
customers?: {
|
|
62
|
+
name: string;
|
|
63
|
+
status: TransactionStatus;
|
|
64
|
+
passportNo: string;
|
|
65
|
+
idNo: string;
|
|
66
|
+
amount: number;
|
|
67
|
+
currencyCode: string;
|
|
68
|
+
exchangeRate: number;
|
|
69
|
+
transactionId: number;
|
|
70
|
+
phoneNumber: string;
|
|
71
|
+
ticketNo: string;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
75
|
+
customers?: {
|
|
76
|
+
name: string;
|
|
77
|
+
status: TransactionStatus;
|
|
78
|
+
passportNo: string;
|
|
79
|
+
idNo: string;
|
|
80
|
+
amount: number;
|
|
81
|
+
currencyCode: string;
|
|
82
|
+
exchangeRate: number;
|
|
83
|
+
transactionId: number;
|
|
84
|
+
phoneNumber: string;
|
|
85
|
+
ticketNo: string;
|
|
86
|
+
}[] | undefined;
|
|
87
|
+
}, undefined>;
|
|
88
|
+
errors: import('react-hook-form').FieldErrors<{
|
|
89
|
+
customers?: {
|
|
90
|
+
name: string;
|
|
91
|
+
status: TransactionStatus;
|
|
92
|
+
passportNo: string;
|
|
93
|
+
idNo: string;
|
|
94
|
+
amount: number;
|
|
95
|
+
currencyCode: string;
|
|
96
|
+
exchangeRate: number;
|
|
97
|
+
transactionId: number;
|
|
98
|
+
phoneNumber: string;
|
|
99
|
+
ticketNo: string;
|
|
100
|
+
}[] | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
register: import('react-hook-form').UseFormRegister<{
|
|
103
|
+
customers?: {
|
|
104
|
+
name: string;
|
|
105
|
+
status: TransactionStatus;
|
|
106
|
+
passportNo: string;
|
|
107
|
+
idNo: string;
|
|
108
|
+
amount: number;
|
|
109
|
+
currencyCode: string;
|
|
110
|
+
exchangeRate: number;
|
|
111
|
+
transactionId: number;
|
|
112
|
+
phoneNumber: string;
|
|
113
|
+
ticketNo: string;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
}>;
|
|
116
|
+
getSignedUrl: (filePath: string, fileType: string) => Promise<SignedUrl>;
|
|
117
|
+
downloadAuthorizationFile: (filePath: string, fileType: string) => Promise<void>;
|
|
118
|
+
downloadZipFile: (groupPublicId: string, ticketInfo: {
|
|
119
|
+
destinationCountry: string;
|
|
120
|
+
airlineName: string;
|
|
121
|
+
departureDate: string;
|
|
122
|
+
}, authorizationFilePath?: string | null) => Promise<void>;
|
|
123
|
+
loading: boolean;
|
|
124
|
+
setError: import('react-hook-form').UseFormSetError<{
|
|
125
|
+
customers?: {
|
|
126
|
+
name: string;
|
|
127
|
+
status: TransactionStatus;
|
|
128
|
+
passportNo: string;
|
|
129
|
+
idNo: string;
|
|
130
|
+
amount: number;
|
|
131
|
+
currencyCode: string;
|
|
132
|
+
exchangeRate: number;
|
|
133
|
+
transactionId: number;
|
|
134
|
+
phoneNumber: string;
|
|
135
|
+
ticketNo: string;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
clearErrors: import('react-hook-form').UseFormClearErrors<{
|
|
139
|
+
customers?: {
|
|
140
|
+
name: string;
|
|
141
|
+
status: TransactionStatus;
|
|
142
|
+
passportNo: string;
|
|
143
|
+
idNo: string;
|
|
144
|
+
amount: number;
|
|
145
|
+
currencyCode: string;
|
|
146
|
+
exchangeRate: number;
|
|
147
|
+
transactionId: number;
|
|
148
|
+
phoneNumber: string;
|
|
149
|
+
ticketNo: string;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
}>;
|
|
152
|
+
updateGroupTransactionStatus: (groupPublicId: string, transactions: ITransaction[]) => Promise<boolean>;
|
|
153
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ITransaction } from '../../types/response.dto';
|
|
2
|
+
import { TransactionStatus } from '../../types/enum';
|
|
3
|
+
export declare const useGuestTransaction: () => {
|
|
4
|
+
loading: boolean;
|
|
5
|
+
getValues: import('react-hook-form').UseFormGetValues<{
|
|
6
|
+
receiptCreatedAt?: string | undefined;
|
|
7
|
+
status: TransactionStatus;
|
|
8
|
+
amount: number;
|
|
9
|
+
exchangeRate: number;
|
|
10
|
+
}>;
|
|
11
|
+
setValue: import('react-hook-form').UseFormSetValue<{
|
|
12
|
+
receiptCreatedAt?: string | undefined;
|
|
13
|
+
status: TransactionStatus;
|
|
14
|
+
amount: number;
|
|
15
|
+
exchangeRate: number;
|
|
16
|
+
}>;
|
|
17
|
+
watch: import('react-hook-form').UseFormWatch<{
|
|
18
|
+
receiptCreatedAt?: string | undefined;
|
|
19
|
+
status: TransactionStatus;
|
|
20
|
+
amount: number;
|
|
21
|
+
exchangeRate: number;
|
|
22
|
+
}>;
|
|
23
|
+
trigger: import('react-hook-form').UseFormTrigger<{
|
|
24
|
+
receiptCreatedAt?: string | undefined;
|
|
25
|
+
status: TransactionStatus;
|
|
26
|
+
amount: number;
|
|
27
|
+
exchangeRate: number;
|
|
28
|
+
}>;
|
|
29
|
+
reset: import('react-hook-form').UseFormReset<{
|
|
30
|
+
receiptCreatedAt?: string | undefined;
|
|
31
|
+
status: TransactionStatus;
|
|
32
|
+
amount: number;
|
|
33
|
+
exchangeRate: number;
|
|
34
|
+
}>;
|
|
35
|
+
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
36
|
+
receiptCreatedAt?: string | undefined;
|
|
37
|
+
status: TransactionStatus;
|
|
38
|
+
amount: number;
|
|
39
|
+
exchangeRate: number;
|
|
40
|
+
}, undefined>;
|
|
41
|
+
errors: import('react-hook-form').FieldErrors<{
|
|
42
|
+
receiptCreatedAt?: string | undefined;
|
|
43
|
+
status: TransactionStatus;
|
|
44
|
+
amount: number;
|
|
45
|
+
exchangeRate: number;
|
|
46
|
+
}>;
|
|
47
|
+
register: import('react-hook-form').UseFormRegister<{
|
|
48
|
+
receiptCreatedAt?: string | undefined;
|
|
49
|
+
status: TransactionStatus;
|
|
50
|
+
amount: number;
|
|
51
|
+
exchangeRate: number;
|
|
52
|
+
}>;
|
|
53
|
+
setError: import('react-hook-form').UseFormSetError<{
|
|
54
|
+
receiptCreatedAt?: string | undefined;
|
|
55
|
+
status: TransactionStatus;
|
|
56
|
+
amount: number;
|
|
57
|
+
exchangeRate: number;
|
|
58
|
+
}>;
|
|
59
|
+
clearErrors: import('react-hook-form').UseFormClearErrors<{
|
|
60
|
+
receiptCreatedAt?: string | undefined;
|
|
61
|
+
status: TransactionStatus;
|
|
62
|
+
amount: number;
|
|
63
|
+
exchangeRate: number;
|
|
64
|
+
}>;
|
|
65
|
+
updateTransactionInfo: (transactionId: number, transaction: ITransaction) => Promise<boolean>;
|
|
66
|
+
};
|