gotrip-fx-transaction-form 1.0.205-dev → 1.0.206
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 +54591 -42828
- package/package.json +1 -1
- package/types/components/AddTransaction/Agent.d.ts +3 -2
- package/types/components/AddTransaction/FlightInfomation.d.ts +2 -1
- package/types/components/AddTransaction/SelectingBankMessageAlerts.d.ts +5 -0
- package/types/components/Admin/AgencyUserSelector/AgencyUserSelector.d.ts +7 -0
- package/types/components/Admin/AgencyUserSelector/AgencyUserSelectorModal.d.ts +10 -0
- package/types/components/ApprovalLinkDropdown/ApprovalLinkDropdown.d.ts +6 -0
- package/types/components/ApprovalStatusBadge.d.ts +7 -0
- package/types/components/Apps/EmbededIndividualApp.d.ts +2 -1
- package/types/components/BankTransferInfo/BankTransferInfoDisplay.d.ts +7 -0
- package/types/components/Chat/AdminChatPanel.d.ts +5 -0
- package/types/components/Chat/AdminOnlineToggle.d.ts +1 -0
- package/types/components/Chat/AdminSessionItem.d.ts +6 -0
- package/types/components/Chat/AdminSessionList.d.ts +1 -0
- package/types/components/Chat/ChatAvatar.d.ts +9 -0
- package/types/components/Chat/ChatButton.d.ts +1 -0
- package/types/components/Chat/ChatComposer.d.ts +9 -0
- package/types/components/Chat/ChatImageGallery.d.ts +9 -0
- package/types/components/Chat/ChatMessage.d.ts +10 -0
- package/types/components/Chat/ChatNameForm.d.ts +5 -0
- package/types/components/Chat/ChatWidget.d.ts +1 -0
- package/types/components/Chat/ChatWindow.d.ts +1 -0
- package/types/components/Chat/ImageLightbox.d.ts +11 -0
- package/types/components/Chat/OfflineMessageMode.d.ts +1 -0
- package/types/components/Chat/QueueStatus.d.ts +1 -0
- package/types/components/Chat/SessionInfoHeader.d.ts +10 -0
- package/types/components/Chat/TopicSelector.d.ts +6 -0
- package/types/components/Chat/TransferSessionModal.d.ts +9 -0
- package/types/components/Chat/TypingIndicator.d.ts +7 -0
- package/types/components/Common/DateDisplay.d.ts +7 -0
- package/types/components/Common/MultiTagCombobox.d.ts +14 -0
- package/types/components/Common/PrimaryRadioGroup.d.ts +16 -0
- package/types/components/Common/TimeRangeSelect.d.ts +17 -0
- package/types/components/Insurance/CreateInsuranceTransactionForm.d.ts +37 -2
- package/types/components/Insurance/DateRangePicker.d.ts +2 -1
- package/types/components/Insurance/DebtPaymentQrButton.d.ts +8 -0
- package/types/components/Insurance/FxInsuranceCouponBox.d.ts +10 -0
- package/types/components/Insurance/InsuranceApprovalContent.d.ts +10 -0
- package/types/components/Insurance/InsuranceApprovalPageSDK.d.ts +5 -0
- package/types/components/Insurance/InsuranceApprovalPaymentStep.d.ts +28 -0
- package/types/components/Insurance/InsuranceDatePicker.d.ts +9 -0
- package/types/components/Insurance/InsurancePlans/QuickCoveragePlanCard.d.ts +4 -3
- package/types/components/Insurance/InsurancePlans/QuickRecommendationsSection.d.ts +18 -0
- package/types/components/Insurance/InsuranceSummaryOverview.d.ts +7 -2
- package/types/components/Insurance/InsuranceTypeAndPeopleCountFields.d.ts +10 -0
- package/types/components/Insurance/InsuredTravelersTable.d.ts +6 -0
- package/types/components/Insurance/MotorInsuranceApprovalContent.d.ts +10 -0
- package/types/components/Insurance/MotorInsuranceApprovalPageSDK.d.ts +5 -0
- package/types/components/Insurance/ProviderApiDebugDialog.d.ts +17 -0
- package/types/components/Insurance/SimpleDetail.d.ts +2 -1
- package/types/components/Insurance/StepFourPayment.d.ts +32 -5
- package/types/components/Insurance/StepOneForm.d.ts +10 -3
- package/types/components/Insurance/StepThree.d.ts +7 -2
- package/types/components/Insurance/StepThreeBuyerInfo.d.ts +4 -1
- package/types/components/Insurance/StepThreeInsuredPeople.d.ts +4 -1
- package/types/components/Insurance/documentScanAutofill.d.ts +37 -0
- package/types/components/Insurance/insuranceExcelImport.d.ts +13 -0
- package/types/components/Insurance/insuredPeopleImport.d.ts +23 -0
- package/types/components/Insurance/{FormElements.d.ts → shared/FormElements.d.ts} +13 -3
- package/types/components/Insurance/shared/InfoBlockCard.d.ts +10 -0
- package/types/components/Insurance/shared/PaymentMethodSelector.d.ts +10 -0
- package/types/components/Insurance/shared/SimpleSelect.d.ts +14 -0
- package/types/components/Insurance/shared/StepFooter.d.ts +8 -0
- package/types/components/Insurance/shared/index.d.ts +5 -0
- package/types/components/Insurance/types.d.ts +20 -5
- package/types/components/Insurance/validationUtils.d.ts +7 -1
- package/types/components/Modal/CancelTransactionModal.d.ts +1 -0
- package/types/components/Modal/DebtSettlementQrModal.d.ts +11 -0
- package/types/components/Modal/ESimPurchaseModal.d.ts +4 -1
- package/types/components/Modal/EsimBankTransferModal.d.ts +13 -0
- package/types/components/Modal/InsurancePaymentModal.d.ts +2 -0
- package/types/components/Modal/MotorInsurancePaymentModal.d.ts +13 -0
- package/types/components/Modal/ProcessingOrderDialog.d.ts +8 -0
- package/types/components/MotorInsurance/Bike/BikePremiumSummary.d.ts +9 -0
- package/types/components/MotorInsurance/Bike/BikeStepOneForm.d.ts +30 -0
- package/types/components/MotorInsurance/Bike/BikeStepThreePayment.d.ts +41 -0
- package/types/components/MotorInsurance/Bike/BikeStepTwoVehicleInfo.d.ts +12 -0
- package/types/components/MotorInsurance/Bike/CreateBikeInsuranceForm.d.ts +17 -0
- package/types/components/MotorInsurance/Bike/index.d.ts +5 -0
- package/types/components/MotorInsurance/Car/CarPremiumSummary.d.ts +8 -0
- package/types/components/MotorInsurance/Car/CarStepFourPayment.d.ts +45 -0
- package/types/components/MotorInsurance/Car/CarStepOneForm.d.ts +27 -0
- package/types/components/MotorInsurance/Car/CarStepThreeInfo.d.ts +11 -0
- package/types/components/MotorInsurance/Car/CarStepTwoPlan.d.ts +11 -0
- package/types/components/MotorInsurance/Car/CreateCarInsuranceForm.d.ts +17 -0
- package/types/components/MotorInsurance/Car/car-form.constants.d.ts +23 -0
- package/types/components/MotorInsurance/Car/index.d.ts +6 -0
- package/types/components/MotorInsurance/CreateMotorInsuranceTransactionForm.d.ts +17 -0
- package/types/components/MotorInsurance/DocumentUploadPreview.d.ts +14 -0
- package/types/components/MotorInsurance/MotorInsuranceApprovalPaymentStep.d.ts +20 -0
- package/types/components/MotorInsurance/image-storage.utils.d.ts +18 -0
- package/types/components/MotorInsurance/index.d.ts +4 -0
- package/types/components/MotorInsurance/motor-insurance.types.d.ts +335 -0
- package/types/components/MotorInsurance/motor-insurance.validation.d.ts +21 -0
- package/types/components/Notification/NotificationBell.d.ts +5 -0
- package/types/components/Notification/NotificationItem.d.ts +8 -0
- package/types/components/Notification/NotificationPanel.d.ts +6 -0
- package/types/components/OrderPaymentTypeBadge.d.ts +4 -0
- package/types/components/PolicyGroup/InsurancePolicyGroupFormDialog.d.ts +10 -0
- package/types/components/TransactionList/PublicIdActionMenu.d.ts +3 -1
- package/types/constants/api-urls.d.ts +55 -4
- package/types/constants/approval-link.enum.d.ts +4 -0
- package/types/constants/business-codes.d.ts +2 -1
- package/types/constants/chat-constants.d.ts +3 -0
- package/types/constants/env.d.ts +3 -0
- package/types/constants/policy-enums.d.ts +11 -0
- package/types/constants/regex.d.ts +4 -0
- package/types/constants/tenant.d.ts +3 -0
- package/types/constants/transaction-status-labels.d.ts +3 -0
- package/types/embeded-main.d.ts +3 -0
- package/types/hooks/fetchEsimTransaction.d.ts +2 -0
- package/types/hooks/transactions/useEducation.hook.d.ts +8 -8
- package/types/hooks/transactions/useGroupTransactions.d.ts +10 -10
- package/types/hooks/transactions/useImmigration.hook.d.ts +8 -8
- package/types/hooks/traveller-confirmation/submit-confirmation.util.d.ts +1 -0
- package/types/hooks/traveller-confirmation/traveller-confirmation-flow.d.ts +4 -0
- package/types/hooks/traveller-confirmation/types.d.ts +22 -0
- package/types/hooks/traveller-confirmation/usePurchaseTravellerConfirmation.d.ts +12 -0
- package/types/hooks/traveller-confirmation/useTravellerConfirmationFetch.d.ts +2 -0
- package/types/hooks/useAdminDashboard.d.ts +19 -0
- package/types/hooks/useAutoSelectBankBranchAndDepartment.d.ts +19 -0
- package/types/hooks/useBankOutsideWorkingHoursNotice.d.ts +5 -0
- package/types/hooks/useChat.d.ts +25 -0
- package/types/hooks/useConfirmTransaction.d.ts +16 -31
- package/types/hooks/useCoupon.d.ts +95 -0
- package/types/hooks/useCouponValidation.d.ts +29 -0
- package/types/hooks/useCreateAutoCoupon.d.ts +5 -0
- package/types/hooks/useFxCrossSellEnabled.d.ts +1 -0
- package/types/hooks/useFxPrefill.d.ts +19 -0
- package/types/hooks/useGroupCustomers.d.ts +12 -9
- package/types/hooks/useImportBookers.d.ts +18 -18
- package/types/hooks/useImportMembers.d.ts +18 -18
- package/types/hooks/useInsuranceData.d.ts +3 -11
- package/types/hooks/useInsurancePlans.d.ts +9 -2
- package/types/hooks/useInsuranceTransaction.d.ts +39 -4
- package/types/hooks/useLocationData.d.ts +22 -0
- package/types/hooks/useMotorInsurance.d.ts +17 -0
- package/types/hooks/useMotorInsuranceTransaction.d.ts +133 -0
- package/types/hooks/useMotorQuote.d.ts +15 -0
- package/types/hooks/useNotifications.d.ts +10 -0
- package/types/hooks/usePolicyGroups.d.ts +1 -0
- package/types/hooks/useTenantList.d.ts +1 -1
- package/types/hooks/useUserById.d.ts +7 -0
- package/types/hooks/useUserSearch.d.ts +10 -0
- package/types/hooks/useUsersByTenantTypes.d.ts +11 -0
- package/types/hooks/useVehicleRegistrationScan.d.ts +39 -0
- package/types/pages/admin/CreateOrderOnBehalfTest.d.ts +3 -0
- package/types/pages/admin/chat/AdminChatPage.d.ts +1 -0
- package/types/pages/admin/coupons/CampaignCouponTable.d.ts +13 -0
- package/types/pages/admin/coupons/CampaignDetailPage.d.ts +1 -0
- package/types/pages/admin/coupons/CampaignListPage.d.ts +1 -0
- package/types/pages/admin/coupons/CouponFormPage.d.ts +1 -0
- package/types/pages/admin/insurance/create-insurance-transaction/AdminCreateInsuranceTransactionPage.d.ts +2 -0
- package/types/pages/admin/insurance/edit-insurance-transaction/AdminEditInsuranceTransactionPage.d.ts +1 -0
- package/types/pages/admin/insurance-policy-management/InsurancePolicyManagement.d.ts +1 -0
- package/types/pages/admin/motor-insurance/create-motor-transaction/AdminCreateMotorBikeTransactionPage.d.ts +1 -0
- package/types/pages/admin/motor-insurance/create-motor-transaction/AdminCreateMotorCarTransactionPage.d.ts +1 -0
- package/types/pages/admin/motor-insurance/edit-motor-transaction/AdminEditMotorTransactionPage.d.ts +1 -0
- package/types/pages/admin/motor-insurance-transaction-detail/MotorInsuranceTransactionDetailPage.d.ts +1 -0
- package/types/pages/admin/motor-insurance-transaction-list/MotorInsuranceTransactionListPage.d.ts +5 -0
- package/types/pages/agency/home/HomePage.d.ts +1 -0
- package/types/pages/agency/home/constants.d.ts +16 -0
- package/types/pages/agency/insurance/motor-transaction-approval/MotorInsuranceTransactionApprovalPage.d.ts +3 -0
- package/types/pages/agency/insurance/motor-transaction-create/CreateCarInsuranceTransactionPage.d.ts +1 -0
- package/types/pages/agency/insurance/motor-transaction-create/CreateMotorInsuranceTransactionPage.d.ts +1 -0
- package/types/pages/agency/insurance/motor-transaction-detail/MotorInsuranceTransactionDetailPage.d.ts +1 -0
- package/types/pages/agency/insurance/motor-transaction-list/MotorInsuranceTransactionListPage.d.ts +6 -0
- package/types/pages/agency/insurance/transaction-approval/InsuranceTransactionApprovalPage.d.ts +3 -0
- package/types/pages/agency/insurance/transaction-create/CreateInsuranceTransactionPage.d.ts +2 -0
- package/types/pages/agency/traveller-confirmation/PurchaseTravellerConfirmation.d.ts +5 -0
- package/types/pages/agency/traveller-confirmation/TravellerPurchaseConfirmation.d.ts +2 -0
- package/types/pages/guest/insurance-approval.d.ts +1 -0
- package/types/pages/guest/insurance-create.d.ts +3 -1
- package/types/pages/guest/motor-insurance-approval.d.ts +1 -0
- package/types/pages/guest/motor-insurance-create.d.ts +6 -0
- package/types/providers/AppSettingsProvider.d.ts +1 -0
- package/types/store/useApprovalStore.d.ts +6 -0
- package/types/store/useChatStore.d.ts +35 -0
- package/types/store/useNotificationStore.d.ts +16 -0
- package/types/store/useTrackingStore.d.ts +10 -0
- package/types/types/app-settings.d.ts +13 -1
- package/types/types/chat.d.ts +88 -0
- package/types/types/coupon.d.ts +70 -0
- package/types/types/enum.d.ts +15 -2
- package/types/types/insurance-transaction.dto.d.ts +22 -1
- package/types/types/insurance.d.ts +19 -2
- package/types/types/notification.d.ts +23 -0
- package/types/types/response.dto.d.ts +60 -5
- package/types/types/sdk.d.ts +9 -1
- package/types/types/tracking.dto.d.ts +21 -0
- package/types/util/booker-display.d.ts +6 -0
- package/types/util/chat.d.ts +31 -0
- package/types/util/chatBrowserKey.d.ts +12 -0
- package/types/util/couponErrorMessages.d.ts +2 -0
- package/types/util/debt-report-display.d.ts +4 -0
- package/types/util/formatMessageTime.d.ts +1 -0
- package/types/util/formatWaitTime.d.ts +1 -0
- package/types/util/formatter.d.ts +6 -0
- package/types/util/fx-travelling-messages.d.ts +1 -0
- package/types/util/fx.d.ts +15 -0
- package/types/util/order-payment-display.d.ts +16 -0
- package/types/util/sim-display.d.ts +2 -0
- package/types/util/socket.d.ts +6 -1
- package/types/util/tracking.d.ts +19 -0
- package/types/util/transaction.util.d.ts +2 -1
- package/types/utils/bank.d.ts +4 -0
- package/types/utils/transaction-confirmation-link.d.ts +9 -0
|
@@ -21,10 +21,10 @@ export declare const ApiUrls: {
|
|
|
21
21
|
transactionHandlers: {
|
|
22
22
|
list: string;
|
|
23
23
|
getSignedUrls: string;
|
|
24
|
-
esimTransactionList: string;
|
|
25
24
|
create: string;
|
|
26
25
|
createMany: string;
|
|
27
26
|
confirm: string;
|
|
27
|
+
purchaseConfirm: string;
|
|
28
28
|
sendBankTransaction: string;
|
|
29
29
|
checkTicketStatus: string;
|
|
30
30
|
getByBankTransactionId: (transactionId: string) => string;
|
|
@@ -37,10 +37,10 @@ export declare const ApiUrls: {
|
|
|
37
37
|
transferMoneyAbroad: string;
|
|
38
38
|
updateTransactionBidding: string;
|
|
39
39
|
updateTransaction: string;
|
|
40
|
-
createEsimTransaction: string;
|
|
41
|
-
sendESimEmail: string;
|
|
42
40
|
validateTransactionTiming: string;
|
|
43
41
|
calculateCommission: (publicId: string) => string;
|
|
42
|
+
getPublicInfo: (publicId: string) => string;
|
|
43
|
+
autoCoupon: (publicId: string) => string;
|
|
44
44
|
};
|
|
45
45
|
role: {
|
|
46
46
|
list: string;
|
|
@@ -70,6 +70,10 @@ export declare const ApiUrls: {
|
|
|
70
70
|
uploadIdentityDocuments: string;
|
|
71
71
|
saveReaderHistory: string;
|
|
72
72
|
getReaderHistories: string;
|
|
73
|
+
extractCarRegistration: string;
|
|
74
|
+
extractCarRegistrationFromBase64: string;
|
|
75
|
+
extractBikeRegistration: string;
|
|
76
|
+
extractBikeRegistrationFromBase64: string;
|
|
73
77
|
};
|
|
74
78
|
bid: {
|
|
75
79
|
list: string;
|
|
@@ -88,6 +92,7 @@ export declare const ApiUrls: {
|
|
|
88
92
|
removeMembers: string;
|
|
89
93
|
organizationTree: string;
|
|
90
94
|
abbankList: string;
|
|
95
|
+
bankDepartmentList: (shortName: string) => string;
|
|
91
96
|
departmentsByTenantTypes: (types: string) => string;
|
|
92
97
|
usersByTenantTypes: (types: string) => string;
|
|
93
98
|
};
|
|
@@ -105,6 +110,7 @@ export declare const ApiUrls: {
|
|
|
105
110
|
requestOtp: string;
|
|
106
111
|
changePasswordWithOtp: string;
|
|
107
112
|
list: string;
|
|
113
|
+
getUserByTenantTypes: string;
|
|
108
114
|
approveUser: string;
|
|
109
115
|
bookerList: string;
|
|
110
116
|
createBooker: string;
|
|
@@ -134,6 +140,7 @@ export declare const ApiUrls: {
|
|
|
134
140
|
getTransactionCountByStatus: string;
|
|
135
141
|
getTransactionCountByDate: string;
|
|
136
142
|
adminDashboardMetrics: string;
|
|
143
|
+
insuranceMetrics: string;
|
|
137
144
|
};
|
|
138
145
|
tenantHandlers: {
|
|
139
146
|
list: string;
|
|
@@ -168,7 +175,12 @@ export declare const ApiUrls: {
|
|
|
168
175
|
update: (id: number) => string;
|
|
169
176
|
};
|
|
170
177
|
esimHandlers: {
|
|
171
|
-
|
|
178
|
+
transactionList: string;
|
|
179
|
+
create: string;
|
|
180
|
+
detail: (publicId: string) => string;
|
|
181
|
+
packageList: string;
|
|
182
|
+
syncPackages: string;
|
|
183
|
+
sendEmail: string;
|
|
172
184
|
};
|
|
173
185
|
emailHandlers: {
|
|
174
186
|
list: string;
|
|
@@ -223,17 +235,56 @@ export declare const ApiUrls: {
|
|
|
223
235
|
streets: string;
|
|
224
236
|
};
|
|
225
237
|
};
|
|
238
|
+
motorInsurance: {
|
|
239
|
+
motorInsuranceSettings: string;
|
|
240
|
+
providers: string;
|
|
241
|
+
createBikeQuote: (provider: string) => string;
|
|
242
|
+
createBikeTransaction: (provider: string) => string;
|
|
243
|
+
createCarQuote: (provider: string) => string;
|
|
244
|
+
createCarTransaction: (provider: string) => string;
|
|
245
|
+
transactionList: string;
|
|
246
|
+
transactionDetail: (publicId: string) => string;
|
|
247
|
+
debtPaymentQr: (publicId: string) => string;
|
|
248
|
+
retryProviderPolicy: (publicId: string) => string;
|
|
249
|
+
approveTransaction: (publicId: string) => string;
|
|
250
|
+
rejectTransaction: (publicId: string) => string;
|
|
251
|
+
updateTransaction: (publicId: string) => string;
|
|
252
|
+
};
|
|
226
253
|
insuranceHandlers: {
|
|
227
254
|
providers: string;
|
|
228
255
|
coveragePlans: (provider: string) => string;
|
|
229
256
|
transactionDetail: (publicId: string) => string;
|
|
257
|
+
debtPaymentQr: (publicId: string) => string;
|
|
258
|
+
retryProviderPolicy: (publicId: string) => string;
|
|
259
|
+
approveTransaction: (publicId: string) => string;
|
|
260
|
+
rejectTransaction: (publicId: string) => string;
|
|
230
261
|
transactionList: string;
|
|
231
262
|
coveragePlanQuotes: (provider: string) => string;
|
|
232
263
|
travelInsuranceSettings: string;
|
|
233
264
|
calculatePremium: string;
|
|
234
265
|
calculateSinglePlanPremium: string;
|
|
235
266
|
createTransaction: string;
|
|
267
|
+
updateTransaction: (publicId: string) => string;
|
|
236
268
|
quickRecommendations: string;
|
|
269
|
+
quickRecommendationsByCountry: (countryId: number) => string;
|
|
270
|
+
};
|
|
271
|
+
couponHandlers: {
|
|
272
|
+
validate: string;
|
|
273
|
+
list: string;
|
|
274
|
+
summary: string;
|
|
275
|
+
campaignList: string;
|
|
276
|
+
campaignDetail: (id: number) => string;
|
|
277
|
+
campaignCreate: string;
|
|
278
|
+
campaignExport: (id: number) => string;
|
|
279
|
+
campaignPatchStatus: (id: number) => string;
|
|
280
|
+
detail: (id: number) => string;
|
|
281
|
+
create: string;
|
|
282
|
+
update: (id: number) => string;
|
|
283
|
+
patchStatus: (id: number) => string;
|
|
284
|
+
};
|
|
285
|
+
location: {
|
|
286
|
+
provinces: string;
|
|
287
|
+
wards: (stateId: number | string) => string;
|
|
237
288
|
};
|
|
238
289
|
insuranceLocation: {
|
|
239
290
|
countries: string;
|
|
@@ -43,5 +43,6 @@ export declare enum BusinessCodes {
|
|
|
43
43
|
SIM_ORDER_CREATION_FAILED = "B_062",
|
|
44
44
|
SIM_PACKAGE_NOT_FOUND = "B_065",
|
|
45
45
|
SIM_TRANSACTION_GROUP_NOT_FOUND = "B_064",
|
|
46
|
-
BALANCE_INSUFFICIENT = "B_040"
|
|
46
|
+
BALANCE_INSUFFICIENT = "B_040",
|
|
47
|
+
FX_AMOUNT_EXCEEDS_MAX_LIMIT = "B_070"
|
|
47
48
|
}
|
package/types/constants/env.d.ts
CHANGED
|
@@ -32,3 +32,14 @@ export declare enum EPolicyType {
|
|
|
32
32
|
DISCOUNT = "discount",
|
|
33
33
|
BONUS = "bonus"
|
|
34
34
|
}
|
|
35
|
+
export declare enum EPolicyCalculatorType {
|
|
36
|
+
LEVEL = "level",
|
|
37
|
+
INDEPENDENT = "independent"
|
|
38
|
+
}
|
|
39
|
+
/** Insurance product type for policy rules. INTERNATION_TRAVEL = du lịch quốc tế; DOMESTIC_TRAVEL = du lịch nội địa; MLI = Xe máy dân sự bắt buộc; ALI = Xe hơi dân sự bắt buộc. */
|
|
40
|
+
export declare enum EInsuranceProductType {
|
|
41
|
+
INTERNATION_TRAVEL = "international_travel",
|
|
42
|
+
DOMESTIC_TRAVEL = "domestic_travel",
|
|
43
|
+
MLI = "mli",
|
|
44
|
+
ALI = "ali"
|
|
45
|
+
}
|
|
@@ -2,3 +2,7 @@ export declare const vietnamPhoneRegex: RegExp;
|
|
|
2
2
|
export declare const vietnamLocalPhoneRegex: RegExp;
|
|
3
3
|
export declare const vietnamInternationalPhoneRegex: RegExp;
|
|
4
4
|
export declare const idNumberRegex: RegExp;
|
|
5
|
+
/** Vietnamese motorcycle license plate: XXXX-XXX.XX | XXXX-XXXXX | XXXXXXXX | XXXXXXXXX */
|
|
6
|
+
export declare const licensePlateRegex: RegExp;
|
|
7
|
+
/** Vietnamese car license plate: XXX-XXX.XX | XXXX-XXX.XX | XXX-XXXXX | XXXX-XXXXX | XXXXXXXX | XXXXXXXXX */
|
|
8
|
+
export declare const carLicensePlateRegex: RegExp;
|
|
@@ -6,4 +6,7 @@ export declare const tenantTypeOptions: {
|
|
|
6
6
|
export declare const BANK_CODES: {
|
|
7
7
|
readonly TCB: "TCB";
|
|
8
8
|
readonly ABBANK: "ABBANK";
|
|
9
|
+
readonly VPBANK: "VPBANK";
|
|
9
10
|
};
|
|
11
|
+
/** Banks with department selection + ZNS confirmation (ABBANK, VPBANK) */
|
|
12
|
+
export declare const BANKS_WITH_DEPARTMENT_AND_ZNS_FLOW: readonly ["ABBANK", "VPBANK"];
|
package/types/embeded-main.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
64
64
|
type: string;
|
|
65
65
|
link: string;
|
|
66
66
|
}[] | undefined;
|
|
67
|
-
customerName: string;
|
|
68
67
|
email: string;
|
|
68
|
+
customerName: string;
|
|
69
69
|
mobileNo: string;
|
|
70
70
|
province: string;
|
|
71
71
|
amount: number;
|
|
@@ -94,8 +94,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
94
94
|
type: string;
|
|
95
95
|
link: string;
|
|
96
96
|
}[] | undefined;
|
|
97
|
-
customerName: string;
|
|
98
97
|
email: string;
|
|
98
|
+
customerName: string;
|
|
99
99
|
mobileNo: string;
|
|
100
100
|
province: string;
|
|
101
101
|
amount: number;
|
|
@@ -125,8 +125,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
125
125
|
type: string;
|
|
126
126
|
link: string;
|
|
127
127
|
}[] | undefined;
|
|
128
|
-
customerName: string;
|
|
129
128
|
email: string;
|
|
129
|
+
customerName: string;
|
|
130
130
|
mobileNo: string;
|
|
131
131
|
province: string;
|
|
132
132
|
amount: number;
|
|
@@ -156,8 +156,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
156
156
|
type: string;
|
|
157
157
|
link: string;
|
|
158
158
|
}[] | undefined;
|
|
159
|
-
customerName: string;
|
|
160
159
|
email: string;
|
|
160
|
+
customerName: string;
|
|
161
161
|
mobileNo: string;
|
|
162
162
|
province: string;
|
|
163
163
|
amount: number;
|
|
@@ -186,8 +186,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
186
186
|
type: string;
|
|
187
187
|
link: string;
|
|
188
188
|
}[] | undefined;
|
|
189
|
-
customerName: string;
|
|
190
189
|
email: string;
|
|
190
|
+
customerName: string;
|
|
191
191
|
mobileNo: string;
|
|
192
192
|
province: string;
|
|
193
193
|
amount: number;
|
|
@@ -217,8 +217,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
217
217
|
type: string;
|
|
218
218
|
link: string;
|
|
219
219
|
}[] | undefined;
|
|
220
|
-
customerName: string;
|
|
221
220
|
email: string;
|
|
221
|
+
customerName: string;
|
|
222
222
|
mobileNo: string;
|
|
223
223
|
province: string;
|
|
224
224
|
amount: number;
|
|
@@ -247,8 +247,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
247
247
|
type: string;
|
|
248
248
|
link: string;
|
|
249
249
|
}[] | undefined;
|
|
250
|
-
customerName: string;
|
|
251
250
|
email: string;
|
|
251
|
+
customerName: string;
|
|
252
252
|
mobileNo: string;
|
|
253
253
|
province: string;
|
|
254
254
|
amount: number;
|
|
@@ -294,8 +294,8 @@ export declare const useEducation: ({ onFinish }: Props) => {
|
|
|
294
294
|
type: string;
|
|
295
295
|
link: string;
|
|
296
296
|
}[] | undefined;
|
|
297
|
-
customerName: string;
|
|
298
297
|
email: string;
|
|
298
|
+
customerName: string;
|
|
299
299
|
mobileNo: string;
|
|
300
300
|
province: string;
|
|
301
301
|
amount: number;
|
|
@@ -12,8 +12,8 @@ export declare const useGroupTransactions: () => {
|
|
|
12
12
|
passportNo: string;
|
|
13
13
|
idNo: string;
|
|
14
14
|
exchangeRate: number;
|
|
15
|
-
transactionId: number;
|
|
16
15
|
phoneNumber: string;
|
|
16
|
+
transactionId: number;
|
|
17
17
|
ticketNo: string;
|
|
18
18
|
}[] | undefined;
|
|
19
19
|
}>;
|
|
@@ -28,8 +28,8 @@ export declare const useGroupTransactions: () => {
|
|
|
28
28
|
passportNo: string;
|
|
29
29
|
idNo: string;
|
|
30
30
|
exchangeRate: number;
|
|
31
|
-
transactionId: number;
|
|
32
31
|
phoneNumber: string;
|
|
32
|
+
transactionId: number;
|
|
33
33
|
ticketNo: string;
|
|
34
34
|
}[] | undefined;
|
|
35
35
|
}>;
|
|
@@ -44,8 +44,8 @@ export declare const useGroupTransactions: () => {
|
|
|
44
44
|
passportNo: string;
|
|
45
45
|
idNo: string;
|
|
46
46
|
exchangeRate: number;
|
|
47
|
-
transactionId: number;
|
|
48
47
|
phoneNumber: string;
|
|
48
|
+
transactionId: number;
|
|
49
49
|
ticketNo: string;
|
|
50
50
|
}[] | undefined;
|
|
51
51
|
}>;
|
|
@@ -60,8 +60,8 @@ export declare const useGroupTransactions: () => {
|
|
|
60
60
|
passportNo: string;
|
|
61
61
|
idNo: string;
|
|
62
62
|
exchangeRate: number;
|
|
63
|
-
transactionId: number;
|
|
64
63
|
phoneNumber: string;
|
|
64
|
+
transactionId: number;
|
|
65
65
|
ticketNo: string;
|
|
66
66
|
}[] | undefined;
|
|
67
67
|
}>;
|
|
@@ -76,8 +76,8 @@ export declare const useGroupTransactions: () => {
|
|
|
76
76
|
passportNo: string;
|
|
77
77
|
idNo: string;
|
|
78
78
|
exchangeRate: number;
|
|
79
|
-
transactionId: number;
|
|
80
79
|
phoneNumber: string;
|
|
80
|
+
transactionId: number;
|
|
81
81
|
ticketNo: string;
|
|
82
82
|
}[] | undefined;
|
|
83
83
|
}>;
|
|
@@ -92,8 +92,8 @@ export declare const useGroupTransactions: () => {
|
|
|
92
92
|
passportNo: string;
|
|
93
93
|
idNo: string;
|
|
94
94
|
exchangeRate: number;
|
|
95
|
-
transactionId: number;
|
|
96
95
|
phoneNumber: string;
|
|
96
|
+
transactionId: number;
|
|
97
97
|
ticketNo: string;
|
|
98
98
|
}[] | undefined;
|
|
99
99
|
}, undefined>;
|
|
@@ -108,8 +108,8 @@ export declare const useGroupTransactions: () => {
|
|
|
108
108
|
passportNo: string;
|
|
109
109
|
idNo: string;
|
|
110
110
|
exchangeRate: number;
|
|
111
|
-
transactionId: number;
|
|
112
111
|
phoneNumber: string;
|
|
112
|
+
transactionId: number;
|
|
113
113
|
ticketNo: string;
|
|
114
114
|
}[] | undefined;
|
|
115
115
|
}>;
|
|
@@ -124,8 +124,8 @@ export declare const useGroupTransactions: () => {
|
|
|
124
124
|
passportNo: string;
|
|
125
125
|
idNo: string;
|
|
126
126
|
exchangeRate: number;
|
|
127
|
-
transactionId: number;
|
|
128
127
|
phoneNumber: string;
|
|
128
|
+
transactionId: number;
|
|
129
129
|
ticketNo: string;
|
|
130
130
|
}[] | undefined;
|
|
131
131
|
}>;
|
|
@@ -148,8 +148,8 @@ export declare const useGroupTransactions: () => {
|
|
|
148
148
|
passportNo: string;
|
|
149
149
|
idNo: string;
|
|
150
150
|
exchangeRate: number;
|
|
151
|
-
transactionId: number;
|
|
152
151
|
phoneNumber: string;
|
|
152
|
+
transactionId: number;
|
|
153
153
|
ticketNo: string;
|
|
154
154
|
}[] | undefined;
|
|
155
155
|
}>;
|
|
@@ -164,8 +164,8 @@ export declare const useGroupTransactions: () => {
|
|
|
164
164
|
passportNo: string;
|
|
165
165
|
idNo: string;
|
|
166
166
|
exchangeRate: number;
|
|
167
|
-
transactionId: number;
|
|
168
167
|
phoneNumber: string;
|
|
168
|
+
transactionId: number;
|
|
169
169
|
ticketNo: string;
|
|
170
170
|
}[] | undefined;
|
|
171
171
|
}>;
|
|
@@ -46,8 +46,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
46
46
|
selectedBanks: ITenant[];
|
|
47
47
|
onSetSelectedBanks: (banks: ITenant[]) => void;
|
|
48
48
|
register: import('react-hook-form').UseFormRegister<{
|
|
49
|
-
customerName: string;
|
|
50
49
|
email: string;
|
|
50
|
+
customerName: string;
|
|
51
51
|
mobileNo: string;
|
|
52
52
|
province: string;
|
|
53
53
|
amount: number;
|
|
@@ -68,8 +68,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
68
68
|
}[];
|
|
69
69
|
}>;
|
|
70
70
|
handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
71
|
-
customerName: string;
|
|
72
71
|
email: string;
|
|
72
|
+
customerName: string;
|
|
73
73
|
mobileNo: string;
|
|
74
74
|
province: string;
|
|
75
75
|
amount: number;
|
|
@@ -91,8 +91,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
91
91
|
}, undefined>;
|
|
92
92
|
formState: {
|
|
93
93
|
errors: import('react-hook-form').FieldErrors<{
|
|
94
|
-
customerName: string;
|
|
95
94
|
email: string;
|
|
95
|
+
customerName: string;
|
|
96
96
|
mobileNo: string;
|
|
97
97
|
province: string;
|
|
98
98
|
amount: number;
|
|
@@ -114,8 +114,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
114
114
|
}>;
|
|
115
115
|
};
|
|
116
116
|
getValues: import('react-hook-form').UseFormGetValues<{
|
|
117
|
-
customerName: string;
|
|
118
117
|
email: string;
|
|
118
|
+
customerName: string;
|
|
119
119
|
mobileNo: string;
|
|
120
120
|
province: string;
|
|
121
121
|
amount: number;
|
|
@@ -136,8 +136,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
136
136
|
}[];
|
|
137
137
|
}>;
|
|
138
138
|
setValue: import('react-hook-form').UseFormSetValue<{
|
|
139
|
-
customerName: string;
|
|
140
139
|
email: string;
|
|
140
|
+
customerName: string;
|
|
141
141
|
mobileNo: string;
|
|
142
142
|
province: string;
|
|
143
143
|
amount: number;
|
|
@@ -159,8 +159,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
159
159
|
}>;
|
|
160
160
|
onSubmit: (data: yup.InferType<typeof businessSchema>) => Promise<void>;
|
|
161
161
|
errors: import('react-hook-form').FieldErrors<{
|
|
162
|
-
customerName: string;
|
|
163
162
|
email: string;
|
|
163
|
+
customerName: string;
|
|
164
164
|
mobileNo: string;
|
|
165
165
|
province: string;
|
|
166
166
|
amount: number;
|
|
@@ -181,8 +181,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
181
181
|
}[];
|
|
182
182
|
}>;
|
|
183
183
|
reset: import('react-hook-form').UseFormReset<{
|
|
184
|
-
customerName: string;
|
|
185
184
|
email: string;
|
|
185
|
+
customerName: string;
|
|
186
186
|
mobileNo: string;
|
|
187
187
|
province: string;
|
|
188
188
|
amount: number;
|
|
@@ -218,8 +218,8 @@ export declare const useImmigration: ({ onFinish }: Props) => {
|
|
|
218
218
|
handleAmountChange: (values: NumberFormatValues) => void;
|
|
219
219
|
amount: number;
|
|
220
220
|
trigger: import('react-hook-form').UseFormTrigger<{
|
|
221
|
-
customerName: string;
|
|
222
221
|
email: string;
|
|
222
|
+
customerName: string;
|
|
223
223
|
mobileNo: string;
|
|
224
224
|
province: string;
|
|
225
225
|
amount: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isConfirmationApiSuccess: (code?: string) => boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TransactionStatus } from '../../types/enum';
|
|
2
|
+
/** Luồng xác nhận mua — `/confirm-purchase/:id` */
|
|
3
|
+
export declare const PURCHASE_CONFIRMATION_STATUSES: TransactionStatus[];
|
|
4
|
+
export declare const PURCHASE_CONFIRMATION_PENDING_STATUS = TransactionStatus.CUSTOMER_PURCHASE_CONFIRMATION;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TransactionStatus } from '../../types/enum';
|
|
2
|
+
import { IAgent, ITransaction } from '../../types/response.dto';
|
|
3
|
+
export type TravellerConfirmationTransaction = {
|
|
4
|
+
id: number;
|
|
5
|
+
bankCode: string;
|
|
6
|
+
bankName: string;
|
|
7
|
+
bookerName?: string;
|
|
8
|
+
bookerEmail?: string;
|
|
9
|
+
ticketNumber: string;
|
|
10
|
+
travellerName: string;
|
|
11
|
+
confirmationToken: string;
|
|
12
|
+
status: TransactionStatus;
|
|
13
|
+
customerCode: string;
|
|
14
|
+
};
|
|
15
|
+
export type TravellerConfirmationContext = {
|
|
16
|
+
transaction: TravellerConfirmationTransaction | null;
|
|
17
|
+
agent: IAgent | null;
|
|
18
|
+
groupTransactions: ITransaction[];
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
fetchError: string | null;
|
|
21
|
+
refetch: () => Promise<void>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TravellerConfirmationTransaction } from './types';
|
|
2
|
+
type Params = {
|
|
3
|
+
transaction: TravellerConfirmationTransaction | null;
|
|
4
|
+
refetch: () => Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
export declare const usePurchaseTravellerConfirmation: ({ transaction, refetch }: Params) => {
|
|
7
|
+
isPending: boolean;
|
|
8
|
+
isCompleted: boolean;
|
|
9
|
+
isSubmitting: boolean;
|
|
10
|
+
submitPurchaseConfirmation: () => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -10,6 +10,22 @@ export type AdminCurrencyMetric = {
|
|
|
10
10
|
currencyCode: string;
|
|
11
11
|
totalAmount: number;
|
|
12
12
|
};
|
|
13
|
+
export type InsuranceProvider = {
|
|
14
|
+
provider: string;
|
|
15
|
+
successCount: number;
|
|
16
|
+
totalAmount: number;
|
|
17
|
+
};
|
|
18
|
+
export type InsuranceCountry = {
|
|
19
|
+
countryId: number;
|
|
20
|
+
countryName: string;
|
|
21
|
+
count: number;
|
|
22
|
+
amount: number;
|
|
23
|
+
alpha2?: string;
|
|
24
|
+
};
|
|
25
|
+
export type InsuranceMetrics = {
|
|
26
|
+
providers: InsuranceProvider[];
|
|
27
|
+
countries: InsuranceCountry[];
|
|
28
|
+
};
|
|
13
29
|
export type AdminDashboardMetrics = {
|
|
14
30
|
orderMetrics: AdminOrderMetrics;
|
|
15
31
|
currencyMetrics: AdminCurrencyMetric[];
|
|
@@ -18,4 +34,7 @@ export declare const useAdminDashboard: () => {
|
|
|
18
34
|
loading: boolean;
|
|
19
35
|
metrics: AdminDashboardMetrics | null;
|
|
20
36
|
fetchMetrics: (startDate: string, endDate: string) => Promise<void>;
|
|
37
|
+
insuranceMetrics: InsuranceMetrics | null;
|
|
38
|
+
insuranceLoading: boolean;
|
|
39
|
+
fetchInsuranceMetrics: (startDate: string, endDate: string) => Promise<void>;
|
|
21
40
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type BankDepartmentOption = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
parentId?: number;
|
|
5
|
+
};
|
|
6
|
+
type Params = {
|
|
7
|
+
departmentOptions: BankDepartmentOption[];
|
|
8
|
+
selectedBranch: number | null;
|
|
9
|
+
setSelectedBranch: (id: number | null) => void;
|
|
10
|
+
selectedDepartment: number | null;
|
|
11
|
+
setSelectedDepartment: (id: number | null) => void;
|
|
12
|
+
onDepartmentSelected?: (id: number) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const useAutoSelectBankBranchAndDepartment: ({ departmentOptions, selectedBranch, setSelectedBranch, selectedDepartment, setSelectedDepartment, onDepartmentSelected, }: Params) => {
|
|
15
|
+
branches: BankDepartmentOption[];
|
|
16
|
+
departments: BankDepartmentOption[];
|
|
17
|
+
shouldShowBranchSelect: boolean;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EChatTopic, IChatMessage, IChatSession } from '../types/chat';
|
|
2
|
+
export declare const useChat: () => {
|
|
3
|
+
startSession: (topic: EChatTopic, guestName?: string | null) => Promise<IChatSession>;
|
|
4
|
+
getMyActiveSession: () => Promise<IChatSession | null>;
|
|
5
|
+
getMessages: (sessionId: number, before?: number, limit?: number) => Promise<{
|
|
6
|
+
data: IChatMessage[];
|
|
7
|
+
hasMore: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
sendMessage: (sessionId: number, content: string) => void;
|
|
10
|
+
sendTyping: (sessionId: number, isTyping: boolean) => void;
|
|
11
|
+
markRead: (sessionId: number) => void;
|
|
12
|
+
getAdminSessions: () => Promise<IChatSession[]>;
|
|
13
|
+
getAdminHistory: () => Promise<IChatSession[]>;
|
|
14
|
+
getQueue: () => Promise<IChatSession[]>;
|
|
15
|
+
toggleAdminStatus: (isOnline: boolean) => Promise<void>;
|
|
16
|
+
resolveSession: (sessionId: number) => Promise<void>;
|
|
17
|
+
transferSession: (sessionId: number, targetAdminId: number) => Promise<void>;
|
|
18
|
+
getOnlineAdmins: () => Promise<any>;
|
|
19
|
+
sendOfflineMessage: (sessionId: number, content: string) => Promise<void>;
|
|
20
|
+
uploadImages: (sessionId: number, files: File[], caption?: string) => Promise<void>;
|
|
21
|
+
getAdminProfile: () => Promise<any>;
|
|
22
|
+
getSessionByPublicId: (publicId: string) => Promise<IChatSession | null>;
|
|
23
|
+
getSessionById: (sessionId: number) => Promise<IChatSession | null>;
|
|
24
|
+
leaveMessage: (sessionId: number) => Promise<void>;
|
|
25
|
+
};
|
|
@@ -1,41 +1,26 @@
|
|
|
1
1
|
import { TransactionStatus } from '../types/enum';
|
|
2
|
-
import { IAgent, ITransaction
|
|
2
|
+
import { IAgent, ITransaction } from '../types/response.dto';
|
|
3
3
|
export type ConfirmTransactionData = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
groupTransactions?: ITransaction[];
|
|
18
|
-
};
|
|
19
|
-
message: string;
|
|
4
|
+
id: number;
|
|
5
|
+
bankCode: string;
|
|
6
|
+
bankName: string;
|
|
7
|
+
bookerName?: string;
|
|
8
|
+
bookerEmail?: string;
|
|
9
|
+
ticketNumber: string;
|
|
10
|
+
travellerName: string;
|
|
11
|
+
confirmationToken: string;
|
|
12
|
+
status: TransactionStatus;
|
|
13
|
+
customerCode: string;
|
|
14
|
+
countryCodeDes: string;
|
|
15
|
+
countryNameDes: string;
|
|
16
|
+
fxCrossSellEnabled?: boolean;
|
|
20
17
|
};
|
|
21
18
|
export declare const useConfirmTransaction: () => {
|
|
22
|
-
transaction:
|
|
23
|
-
id: number;
|
|
24
|
-
bankCode: string;
|
|
25
|
-
bankName: string;
|
|
26
|
-
bookerName?: string;
|
|
27
|
-
bookerEmail?: string;
|
|
28
|
-
ticketNumber: string;
|
|
29
|
-
travellerName: string;
|
|
30
|
-
confirmationToken: string;
|
|
31
|
-
status: TransactionStatus;
|
|
32
|
-
customerCode: string;
|
|
33
|
-
agent?: IUser;
|
|
34
|
-
groupTransactions?: ITransaction[];
|
|
35
|
-
} | null;
|
|
19
|
+
transaction: ConfirmTransactionData | null;
|
|
36
20
|
agent: IAgent | null;
|
|
37
21
|
groupTransactions: ITransaction[];
|
|
38
22
|
isLoading: boolean;
|
|
39
23
|
confirmTransaction: () => Promise<void>;
|
|
40
24
|
customerCode: string | undefined;
|
|
25
|
+
transactionPublicId: string | undefined;
|
|
41
26
|
};
|