gotrip-fx-transaction-form 1.0.192-dev → 1.0.192

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 (173) hide show
  1. package/assets/index.css +1 -1
  2. package/index.js +51207 -40767
  3. package/package.json +1 -1
  4. package/types/components/AddTransaction/Agent.d.ts +3 -2
  5. package/types/components/AddTransaction/FlightInfomation.d.ts +2 -1
  6. package/types/components/AddTransaction/SelectingBankMessageAlerts.d.ts +5 -0
  7. package/types/components/Admin/AgencyUserSelector/AgencyUserSelector.d.ts +7 -0
  8. package/types/components/Admin/AgencyUserSelector/AgencyUserSelectorModal.d.ts +10 -0
  9. package/types/components/ApprovalStatusBadge.d.ts +7 -0
  10. package/types/components/Apps/EmbededIndividualApp.d.ts +3 -1
  11. package/types/components/BankTransferInfo/BankTransferInfoDisplay.d.ts +7 -0
  12. package/types/components/Common/DateDisplay.d.ts +7 -0
  13. package/types/components/Common/MultiTagCombobox.d.ts +14 -0
  14. package/types/components/Common/PrimaryRadioGroup.d.ts +16 -0
  15. package/types/components/Common/TimeRangeSelect.d.ts +17 -0
  16. package/types/components/Department/DepartmentCard.d.ts +3 -1
  17. package/types/components/Insurance/CreateInsuranceTransactionForm.d.ts +23 -5
  18. package/types/components/Insurance/DateRangePicker.d.ts +12 -0
  19. package/types/components/Insurance/InsuranceContentRenderer/DynamicRenderer.d.ts +6 -0
  20. package/types/components/Insurance/InsuranceContentRenderer/blocks/AccordionBlock.d.ts +6 -0
  21. package/types/components/Insurance/InsuranceContentRenderer/blocks/ActionButtonBlock.d.ts +6 -0
  22. package/types/components/Insurance/InsuranceContentRenderer/blocks/ContainerBlock.d.ts +6 -0
  23. package/types/components/Insurance/InsuranceContentRenderer/blocks/DataRowBlock.d.ts +6 -0
  24. package/types/components/Insurance/InsuranceContentRenderer/blocks/DividerBlock.d.ts +6 -0
  25. package/types/components/Insurance/InsuranceContentRenderer/blocks/ListGroupBlock.d.ts +6 -0
  26. package/types/components/Insurance/InsuranceContentRenderer/blocks/TextBlock.d.ts +6 -0
  27. package/types/components/Insurance/InsuranceContentRenderer/types.d.ts +64 -0
  28. package/types/components/Insurance/InsuranceContentRenderer/utils/richText.d.ts +14 -0
  29. package/types/components/Insurance/InsuranceContentRenderer/utils/styleMapper.d.ts +6 -0
  30. package/types/components/Insurance/InsuranceDatePicker.d.ts +9 -0
  31. package/types/components/Insurance/InsurancePlans/InsurancePlanFilter.d.ts +12 -0
  32. package/types/components/Insurance/InsurancePlans/InsurancePlanList.d.ts +1 -1
  33. package/types/components/Insurance/InsurancePlans/QuickCoveragePlanCard.d.ts +16 -0
  34. package/types/components/Insurance/InsurancePlans/QuickRecommendationsSection.d.ts +18 -0
  35. package/types/components/Insurance/InsurancePlans/index.d.ts +1 -0
  36. package/types/components/Insurance/InsuranceSummaryOverview.d.ts +7 -2
  37. package/types/components/Insurance/InsuranceTypeAndPeopleCountFields.d.ts +10 -0
  38. package/types/components/Insurance/InsuredTravelersTable.d.ts +6 -0
  39. package/types/components/Insurance/ProviderApiDebugDialog.d.ts +17 -0
  40. package/types/components/Insurance/SimpleDetail.d.ts +2 -1
  41. package/types/components/Insurance/StepFourPayment.d.ts +25 -5
  42. package/types/components/Insurance/StepOneForm.d.ts +11 -2
  43. package/types/components/Insurance/StepThree.d.ts +29 -0
  44. package/types/components/Insurance/StepThreeBuyerInfo.d.ts +4 -1
  45. package/types/components/Insurance/StepThreeInsuredPeople.d.ts +4 -1
  46. package/types/components/Insurance/StepTwoPlans.d.ts +9 -1
  47. package/types/components/Insurance/documentScanAutofill.d.ts +37 -0
  48. package/types/components/Insurance/insuranceExcelImport.d.ts +13 -0
  49. package/types/components/Insurance/insuredPeopleImport.d.ts +23 -0
  50. package/types/components/Insurance/{FormElements.d.ts → shared/FormElements.d.ts} +13 -3
  51. package/types/components/Insurance/shared/InfoBlockCard.d.ts +10 -0
  52. package/types/components/Insurance/shared/PaymentMethodSelector.d.ts +10 -0
  53. package/types/components/Insurance/shared/SimpleSelect.d.ts +14 -0
  54. package/types/components/Insurance/shared/StepFooter.d.ts +8 -0
  55. package/types/components/Insurance/shared/index.d.ts +5 -0
  56. package/types/components/Insurance/types.d.ts +22 -5
  57. package/types/components/Insurance/validationUtils.d.ts +7 -1
  58. package/types/components/Modal/CancelTransactionModal.d.ts +1 -0
  59. package/types/components/Modal/ESimPurchaseModal.d.ts +4 -1
  60. package/types/components/Modal/EsimBankTransferModal.d.ts +13 -0
  61. package/types/components/Modal/InsurancePaymentModal.d.ts +2 -0
  62. package/types/components/Modal/MotorInsurancePaymentModal.d.ts +13 -0
  63. package/types/components/Modal/ProcessingOrderDialog.d.ts +8 -0
  64. package/types/components/Modal/UpdateTenantCommissionInputCell.d.ts +14 -13
  65. package/types/components/MotorInsurance/Bike/BikePremiumSummary.d.ts +9 -0
  66. package/types/components/MotorInsurance/Bike/BikeStepOneForm.d.ts +30 -0
  67. package/types/components/MotorInsurance/Bike/BikeStepThreePayment.d.ts +26 -0
  68. package/types/components/MotorInsurance/Bike/BikeStepTwoVehicleInfo.d.ts +12 -0
  69. package/types/components/MotorInsurance/Bike/CreateBikeInsuranceForm.d.ts +17 -0
  70. package/types/components/MotorInsurance/Bike/index.d.ts +5 -0
  71. package/types/components/MotorInsurance/Car/CarPremiumSummary.d.ts +8 -0
  72. package/types/components/MotorInsurance/Car/CarStepFourPayment.d.ts +30 -0
  73. package/types/components/MotorInsurance/Car/CarStepOneForm.d.ts +27 -0
  74. package/types/components/MotorInsurance/Car/CarStepThreeInfo.d.ts +11 -0
  75. package/types/components/MotorInsurance/Car/CarStepTwoPlan.d.ts +11 -0
  76. package/types/components/MotorInsurance/Car/CreateCarInsuranceForm.d.ts +17 -0
  77. package/types/components/MotorInsurance/Car/car-form.constants.d.ts +23 -0
  78. package/types/components/MotorInsurance/Car/index.d.ts +6 -0
  79. package/types/components/MotorInsurance/CreateMotorInsuranceTransactionForm.d.ts +17 -0
  80. package/types/components/MotorInsurance/DocumentUploadPreview.d.ts +14 -0
  81. package/types/components/MotorInsurance/image-storage.utils.d.ts +18 -0
  82. package/types/components/MotorInsurance/index.d.ts +4 -0
  83. package/types/components/MotorInsurance/motor-insurance.types.d.ts +335 -0
  84. package/types/components/MotorInsurance/motor-insurance.validation.d.ts +21 -0
  85. package/types/components/Notification/NotificationBell.d.ts +5 -0
  86. package/types/components/Notification/NotificationItem.d.ts +8 -0
  87. package/types/components/Notification/NotificationPanel.d.ts +6 -0
  88. package/types/components/OrderPaymentTypeBadge.d.ts +4 -0
  89. package/types/components/PolicyGroup/CommissionPolicyGroupFormDialog.d.ts +16 -0
  90. package/types/components/PolicyGroup/CommissionPolicyGroupListView.d.ts +11 -0
  91. package/types/components/PolicyGroup/InsurancePolicyGroupFormDialog.d.ts +10 -0
  92. package/types/components/PolicyGroup/PolicyRulesEditor.d.ts +54 -0
  93. package/types/components/PolicyGroup/PolicyTypes.d.ts +41 -0
  94. package/types/components/PolicyGroup/PricingPolicyListView.d.ts +11 -0
  95. package/types/components/StepIndicator/StepIndicatorHorizontal.d.ts +2 -1
  96. package/types/constants/api-urls.d.ts +63 -6
  97. package/types/constants/business-codes.d.ts +2 -1
  98. package/types/constants/commission-policy-constants.d.ts +5 -0
  99. package/types/constants/env.d.ts +2 -0
  100. package/types/constants/policy-enums.d.ts +18 -1
  101. package/types/constants/regex.d.ts +4 -0
  102. package/types/embeded-main.d.ts +1 -0
  103. package/types/hooks/fetchEsimTransaction.d.ts +2 -0
  104. package/types/hooks/transactions/useGroupTransactions.d.ts +10 -10
  105. package/types/hooks/useAdminDashboard.d.ts +19 -0
  106. package/types/hooks/useBankOutsideWorkingHoursNotice.d.ts +5 -0
  107. package/types/hooks/useComissionPolicies.d.ts +6 -6
  108. package/types/hooks/useCoupon.d.ts +95 -0
  109. package/types/hooks/useCouponValidation.d.ts +29 -0
  110. package/types/hooks/useGroupCustomers.d.ts +12 -9
  111. package/types/hooks/useInsuranceData.d.ts +3 -11
  112. package/types/hooks/useInsurancePlans.d.ts +13 -1
  113. package/types/hooks/useInsuranceTransaction.d.ts +34 -4
  114. package/types/hooks/useLocationData.d.ts +22 -0
  115. package/types/hooks/useMotorInsurance.d.ts +17 -0
  116. package/types/hooks/useMotorInsuranceTransaction.d.ts +124 -0
  117. package/types/hooks/useMotorQuote.d.ts +15 -0
  118. package/types/hooks/useNotifications.d.ts +10 -0
  119. package/types/hooks/usePolicyGroups.d.ts +17 -1
  120. package/types/hooks/useTenantList.d.ts +5 -4
  121. package/types/hooks/useUserById.d.ts +7 -0
  122. package/types/hooks/useUserList.d.ts +3 -1
  123. package/types/hooks/useUserSearch.d.ts +10 -0
  124. package/types/hooks/useUsersByTenantTypes.d.ts +11 -0
  125. package/types/hooks/useVehicleRegistrationScan.d.ts +39 -0
  126. package/types/pages/admin/CreateOrderOnBehalfTest.d.ts +3 -0
  127. package/types/pages/admin/coupons/CampaignCouponTable.d.ts +13 -0
  128. package/types/pages/admin/coupons/CampaignDetailPage.d.ts +1 -0
  129. package/types/pages/admin/coupons/CampaignListPage.d.ts +1 -0
  130. package/types/pages/admin/coupons/CouponFormPage.d.ts +1 -0
  131. package/types/pages/admin/fx-commission-policy/FxCommissionPolicyManagement.d.ts +1 -0
  132. package/types/pages/admin/insurance/create-insurance-transaction/AdminCreateInsuranceTransactionPage.d.ts +2 -0
  133. package/types/pages/admin/insurance/edit-insurance-transaction/AdminEditInsuranceTransactionPage.d.ts +1 -0
  134. package/types/pages/admin/insurance-policy-management/InsurancePolicyManagement.d.ts +1 -0
  135. package/types/pages/admin/motor-insurance/create-motor-transaction/AdminCreateMotorBikeTransactionPage.d.ts +1 -0
  136. package/types/pages/admin/motor-insurance/create-motor-transaction/AdminCreateMotorCarTransactionPage.d.ts +1 -0
  137. package/types/pages/admin/motor-insurance/edit-motor-transaction/AdminEditMotorTransactionPage.d.ts +1 -0
  138. package/types/pages/admin/motor-insurance-transaction-detail/MotorInsuranceTransactionDetailPage.d.ts +1 -0
  139. package/types/pages/admin/motor-insurance-transaction-list/MotorInsuranceTransactionListPage.d.ts +5 -0
  140. package/types/pages/agency/home/HomePage.d.ts +1 -0
  141. package/types/pages/agency/home/constants.d.ts +16 -0
  142. package/types/pages/agency/insurance/motor-transaction-approval/MotorInsuranceTransactionApprovalPage.d.ts +1 -0
  143. package/types/pages/agency/insurance/motor-transaction-create/CreateCarInsuranceTransactionPage.d.ts +1 -0
  144. package/types/pages/agency/insurance/motor-transaction-create/CreateMotorInsuranceTransactionPage.d.ts +1 -0
  145. package/types/pages/agency/insurance/motor-transaction-detail/MotorInsuranceTransactionDetailPage.d.ts +1 -0
  146. package/types/pages/agency/insurance/motor-transaction-list/MotorInsuranceTransactionListPage.d.ts +6 -0
  147. package/types/pages/agency/insurance/transaction-approval/InsuranceTransactionApprovalPage.d.ts +1 -0
  148. package/types/pages/agency/insurance/transaction-create/CreateInsuranceTransactionPage.d.ts +2 -0
  149. package/types/pages/guest/insurance-create.d.ts +8 -1
  150. package/types/pages/guest/motor-insurance-create.d.ts +6 -0
  151. package/types/providers/AppSettingsProvider.d.ts +1 -0
  152. package/types/store/useNotificationStore.d.ts +16 -0
  153. package/types/store/useTenantStore.d.ts +12 -0
  154. package/types/store/useTrackingStore.d.ts +8 -0
  155. package/types/types/app-settings.d.ts +13 -1
  156. package/types/types/coupon.d.ts +70 -0
  157. package/types/types/enum.d.ts +14 -1
  158. package/types/types/insurance-transaction.dto.d.ts +21 -1
  159. package/types/types/insurance.d.ts +19 -2
  160. package/types/types/notification.d.ts +23 -0
  161. package/types/types/response.dto.d.ts +78 -8
  162. package/types/types/sdk.d.ts +5 -1
  163. package/types/types/tracking.dto.d.ts +19 -0
  164. package/types/util/booker-display.d.ts +6 -0
  165. package/types/util/couponErrorMessages.d.ts +2 -0
  166. package/types/util/debt-report-display.d.ts +4 -0
  167. package/types/util/formatter.d.ts +6 -0
  168. package/types/util/fx-travelling-messages.d.ts +1 -0
  169. package/types/util/fx.d.ts +15 -0
  170. package/types/util/order-payment-display.d.ts +13 -0
  171. package/types/util/sim-display.d.ts +2 -0
  172. package/types/util/tracking.d.ts +29 -0
  173. package/types/util/transaction.util.d.ts +1 -1
@@ -22,6 +22,7 @@ export declare const ApiUrls: {
22
22
  list: string;
23
23
  getSignedUrls: string;
24
24
  esimTransactionList: string;
25
+ esimTransactionDetail: (publicId: string) => string;
25
26
  create: string;
26
27
  createMany: string;
27
28
  confirm: string;
@@ -40,6 +41,7 @@ export declare const ApiUrls: {
40
41
  createEsimTransaction: string;
41
42
  sendESimEmail: string;
42
43
  validateTransactionTiming: string;
44
+ calculateCommission: (publicId: string) => string;
43
45
  };
44
46
  role: {
45
47
  list: string;
@@ -69,6 +71,10 @@ export declare const ApiUrls: {
69
71
  uploadIdentityDocuments: string;
70
72
  saveReaderHistory: string;
71
73
  getReaderHistories: string;
74
+ extractCarRegistration: string;
75
+ extractCarRegistrationFromBase64: string;
76
+ extractBikeRegistration: string;
77
+ extractBikeRegistrationFromBase64: string;
72
78
  };
73
79
  bid: {
74
80
  list: string;
@@ -87,6 +93,8 @@ export declare const ApiUrls: {
87
93
  removeMembers: string;
88
94
  organizationTree: string;
89
95
  abbankList: string;
96
+ departmentsByTenantTypes: (types: string) => string;
97
+ usersByTenantTypes: (types: string) => string;
90
98
  };
91
99
  balance: {
92
100
  getBalanceByUserId: (userId: number) => string;
@@ -102,6 +110,7 @@ export declare const ApiUrls: {
102
110
  requestOtp: string;
103
111
  changePasswordWithOtp: string;
104
112
  list: string;
113
+ getUserByTenantTypes: string;
105
114
  approveUser: string;
106
115
  bookerList: string;
107
116
  createBooker: string;
@@ -131,6 +140,7 @@ export declare const ApiUrls: {
131
140
  getTransactionCountByStatus: string;
132
141
  getTransactionCountByDate: string;
133
142
  adminDashboardMetrics: string;
143
+ insuranceMetrics: string;
134
144
  };
135
145
  tenantHandlers: {
136
146
  list: string;
@@ -143,17 +153,26 @@ export declare const ApiUrls: {
143
153
  calculateBookerCommission: string;
144
154
  };
145
155
  commissionPolicyHandlers: {
156
+ getDepartmentCommissionPolicies: (departmentId: number) => string;
157
+ createDepartmentCommissionPolicies: (departmentId: number) => string;
158
+ updateDepartmentCommissionPolicies: (departmentId: number, policyGroupId: number) => string;
159
+ getMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
160
+ createMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
161
+ updateMemberCommissionPolicies: (departmentId: number, memberId: number, policyGroupId: number) => string;
162
+ updateMemberCommissionPoliciesLegacy: (departmentId: number, memberId: number) => string;
146
163
  getCommissionPolicies: string;
147
164
  updateCommissionPolicies: string;
148
165
  getTenantCommissionPolicies: string;
149
166
  getTenantCommissionPoliciesByTenantId: (tenantId: number) => string;
150
- getDepartmentCommissionPolicies: (departmentId: number) => string;
151
- getMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
167
+ createTenantCommissionPolicies: (tenantId: number) => string;
168
+ updateTenantCommissionPolicies: (tenantId: number, policyGroupId: number) => string;
169
+ updateTenantCommissionPoliciesLegacy: (tenantId: number) => string;
152
170
  getMemberCommissionPoliciesByMemberId: (memberId: number) => string;
153
- updateTenantCommissionPolicies: (tenantId: number) => string;
154
- updateDepartmentCommissionPolicies: (departmentId: number) => string;
155
- updateMemberCommissionPolicies: (departmentId: number, memberId: number) => string;
156
- updateMemberCommissionPoliciesByMemberId: (memberId: number) => string;
171
+ createMemberCommissionPoliciesByMemberId: (memberId: number) => string;
172
+ updateMemberCommissionPoliciesByMemberId: (memberId: number, policyGroupId: number) => string;
173
+ updateMemberCommissionPoliciesByMemberIdLegacy: (memberId: number) => string;
174
+ create: string;
175
+ update: (id: number) => string;
157
176
  };
158
177
  esimHandlers: {
159
178
  list: string;
@@ -211,16 +230,54 @@ export declare const ApiUrls: {
211
230
  streets: string;
212
231
  };
213
232
  };
233
+ motorInsurance: {
234
+ motorInsuranceSettings: string;
235
+ providers: string;
236
+ createBikeQuote: (provider: string) => string;
237
+ createBikeTransaction: (provider: string) => string;
238
+ createCarQuote: (provider: string) => string;
239
+ createCarTransaction: (provider: string) => string;
240
+ transactionList: string;
241
+ transactionDetail: (publicId: string) => string;
242
+ retryProviderPolicy: (publicId: string) => string;
243
+ approveTransaction: (publicId: string) => string;
244
+ rejectTransaction: (publicId: string) => string;
245
+ updateTransaction: (publicId: string) => string;
246
+ };
214
247
  insuranceHandlers: {
215
248
  providers: string;
216
249
  coveragePlans: (provider: string) => string;
217
250
  transactionDetail: (publicId: string) => string;
251
+ retryProviderPolicy: (publicId: string) => string;
252
+ approveTransaction: (publicId: string) => string;
253
+ rejectTransaction: (publicId: string) => string;
218
254
  transactionList: string;
219
255
  coveragePlanQuotes: (provider: string) => string;
220
256
  travelInsuranceSettings: string;
221
257
  calculatePremium: string;
222
258
  calculateSinglePlanPremium: string;
223
259
  createTransaction: string;
260
+ updateTransaction: (publicId: string) => string;
261
+ quickRecommendations: string;
262
+ quickRecommendationsByCountry: (countryId: number) => string;
263
+ };
264
+ couponHandlers: {
265
+ validate: string;
266
+ list: string;
267
+ summary: string;
268
+ campaignList: string;
269
+ campaignDetail: (id: number) => string;
270
+ campaignCreate: string;
271
+ campaignExport: (id: number) => string;
272
+ campaignPatchStatus: (id: number) => string;
273
+ detail: (id: number) => string;
274
+ create: string;
275
+ update: (id: number) => string;
276
+ patchStatus: (id: number) => string;
277
+ };
278
+ location: {
279
+ provinces: string;
280
+ wards: (stateId: number | string) => string;
224
281
  };
225
282
  insuranceLocation: {
226
283
  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
  }
@@ -0,0 +1,5 @@
1
+ import { EPolicyActionType } from './policy-enums';
2
+ export declare const COMMISSION_METHODS: readonly ["direct", "viaRef", "indirect"];
3
+ export declare const COMMISSION_METHODS_LABELS: Record<string, string>;
4
+ export declare const DEFAULT_COMMISSION_VALUE = "0";
5
+ export declare const DEFAULT_COMMISSION_TYPE = EPolicyActionType.PERCENT;
@@ -14,6 +14,8 @@ export declare const Env: {
14
14
  API_URL: any;
15
15
  BUILD_FOR: any;
16
16
  BOOKER_URL: any;
17
+ PARTNER_URL: any;
18
+ ADMIN_URL: any;
17
19
  CLARITY_KEY: any;
18
20
  GUEST_API_KEY: any;
19
21
  };
@@ -4,6 +4,11 @@ export declare enum EPolicyScopeType {
4
4
  DEPARTMENT = "department",
5
5
  USER = "user"
6
6
  }
7
+ export declare enum EPolicyScopeMode {
8
+ ALL = "all",
9
+ INCLUDE = "include",
10
+ EXCLUDE = "exclude"
11
+ }
7
12
  export declare enum EPolicyTargetType {
8
13
  FX = "fx",
9
14
  SIM = "sim",
@@ -12,7 +17,8 @@ export declare enum EPolicyTargetType {
12
17
  }
13
18
  export declare enum EPolicyActionType {
14
19
  PERCENT = "percent",
15
- FIXED = "fixed"
20
+ FIXED = "fixed",
21
+ FIXED_MULTIPLIER = "fixed_multiplier"
16
22
  }
17
23
  export declare enum EPolicyCombineStrategy {
18
24
  STACK = "stack",
@@ -26,3 +32,14 @@ export declare enum EPolicyType {
26
32
  DISCOUNT = "discount",
27
33
  BONUS = "bonus"
28
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;
@@ -4,6 +4,7 @@ type InitProps = {
4
4
  container?: HTMLElement;
5
5
  apiKey: string;
6
6
  type?: ESdkFormType;
7
+ scrollable?: boolean;
7
8
  };
8
9
  interface GoTripSDKProps {
9
10
  init: (props: InitProps) => void;
@@ -0,0 +1,2 @@
1
+ import { IESimTransaction } from '../types/response.dto';
2
+ export declare function fetchEsimTransactionByPublicId(publicId: string): Promise<IESimTransaction | null>;
@@ -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
  }>;
@@ -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,5 @@
1
+ export type BankOutsideWorkingHoursNotice = {
2
+ show: boolean;
3
+ detail?: string;
4
+ };
5
+ export declare const useBankOutsideWorkingHoursNotice: (bankCode: string | undefined, enabled: boolean) => BankOutsideWorkingHoursNotice;
@@ -1,13 +1,13 @@
1
- import { ICommissionPolicy } from '../types/response.dto';
1
+ import { IRemappedCommissionPolicy } from '../types/response.dto';
2
2
  export declare const useComissionPolicies: ({ isAdminView }?: {
3
3
  isAdminView?: boolean;
4
4
  }) => {
5
5
  loading: boolean;
6
- commissionPolicies: ICommissionPolicy[];
7
- getCommissionPoliciesByTenantId: (tenantId: number) => Promise<ICommissionPolicy[]>;
8
- getCommissionPoliciesByDepartmentId: (departmentId: number) => Promise<ICommissionPolicy[]>;
9
- getCommissionPoliciesByMemberId: (departmentId: number, memberId: number) => Promise<ICommissionPolicy[]>;
10
- getCommissionPoliciesByMemberIdOnly: (memberId: number) => Promise<ICommissionPolicy[]>;
6
+ commissionPolicies: IRemappedCommissionPolicy[];
7
+ getCommissionPoliciesByTenantId: (tenantId: number) => Promise<IRemappedCommissionPolicy[]>;
8
+ getCommissionPoliciesByDepartmentId: (departmentId: number) => Promise<IRemappedCommissionPolicy[]>;
9
+ getCommissionPoliciesByMemberId: (departmentId: number, memberId: number) => Promise<IRemappedCommissionPolicy[]>;
10
+ getCommissionPoliciesByMemberIdOnly: (memberId: number) => Promise<IRemappedCommissionPolicy[]>;
11
11
  clearCommissionPolicies: () => void;
12
12
  isAdmin: boolean;
13
13
  isAgency: boolean;
@@ -0,0 +1,95 @@
1
+ import { TCampaignRow, TCouponDetail, TCouponRow } from '../types/coupon';
2
+ export type TCouponListParams = {
3
+ page?: number;
4
+ limit?: number;
5
+ status?: string;
6
+ search?: string;
7
+ productType?: string;
8
+ provider?: string;
9
+ campaignId?: number;
10
+ };
11
+ export declare const useCoupon: (id?: string, isEdit?: boolean) => {
12
+ listingLoading: boolean;
13
+ rows: TCouponRow[];
14
+ listTotal: number;
15
+ fetchList: (params?: TCouponListParams) => Promise<{
16
+ ok: true;
17
+ } | {
18
+ ok: false;
19
+ }>;
20
+ formLoading: boolean;
21
+ saving: boolean;
22
+ patchingStatus: boolean;
23
+ campaignLoading: boolean;
24
+ campaignRows: TCampaignRow[];
25
+ campaignDetail: TCampaignRow | null;
26
+ campaignDetailLoading: boolean;
27
+ campaignStatusPatching: boolean;
28
+ fetchCoupon: () => Promise<{
29
+ ok: true;
30
+ data: TCouponDetail | undefined;
31
+ } | {
32
+ ok: false;
33
+ data: undefined;
34
+ }>;
35
+ saveCoupon: (payload: unknown) => Promise<{
36
+ ok: true;
37
+ data: any;
38
+ error?: undefined;
39
+ } | {
40
+ ok: false;
41
+ error: unknown;
42
+ data?: undefined;
43
+ }>;
44
+ patchCouponStatus: (nextStatus: "active" | "inactive") => Promise<{
45
+ ok: true;
46
+ error?: undefined;
47
+ } | {
48
+ ok: false;
49
+ error: unknown;
50
+ }>;
51
+ fetchCampaigns: () => Promise<{
52
+ ok: true;
53
+ data: TCampaignRow[];
54
+ } | {
55
+ ok: false;
56
+ data: TCampaignRow[];
57
+ }>;
58
+ createCampaign: (name: string) => Promise<{
59
+ ok: true;
60
+ data: TCampaignRow | undefined;
61
+ error?: undefined;
62
+ } | {
63
+ ok: false;
64
+ error: unknown;
65
+ data?: undefined;
66
+ }>;
67
+ fetchCampaignById: (campaignId: number) => Promise<{
68
+ ok: true;
69
+ data: TCampaignRow | undefined;
70
+ } | {
71
+ ok: false;
72
+ data: undefined;
73
+ }>;
74
+ patchCampaignStatus: (campaignId: number, status: "active" | "inactive") => Promise<{
75
+ ok: true;
76
+ data: TCampaignRow | null;
77
+ error?: undefined;
78
+ } | {
79
+ ok: false;
80
+ error: unknown;
81
+ data?: undefined;
82
+ }>;
83
+ exportCampaignCouponsXlsx: (campaignName: string, params: TCouponListParams) => Promise<{
84
+ ok: true;
85
+ data: {
86
+ blob: Blob;
87
+ fileName: string;
88
+ };
89
+ error?: undefined;
90
+ } | {
91
+ ok: false;
92
+ error: unknown;
93
+ data?: undefined;
94
+ }>;
95
+ };
@@ -0,0 +1,29 @@
1
+ import { ECouponProductType } from '../types/coupon';
2
+ type ValidateCouponParams = {
3
+ code: string;
4
+ orderTotal: number;
5
+ productType: ECouponProductType;
6
+ provider: string;
7
+ tenantId?: number;
8
+ userId?: number;
9
+ };
10
+ type ValidateCouponResult = {
11
+ discountAmount: number;
12
+ finalAmount: number;
13
+ couponId: number;
14
+ couponCode: string;
15
+ description?: string | null;
16
+ };
17
+ export declare const useCouponValidation: () => {
18
+ isApplyingCoupon: boolean;
19
+ validateCoupon: (params: ValidateCouponParams) => Promise<{
20
+ ok: false;
21
+ message: string;
22
+ data?: undefined;
23
+ } | {
24
+ ok: true;
25
+ data: ValidateCouponResult;
26
+ message?: undefined;
27
+ }>;
28
+ };
29
+ export {};
@@ -24,7 +24,10 @@ declare const onePersonSchema: yup.ObjectSchema<{
24
24
  amount: undefined;
25
25
  bankDepartmentId: undefined;
26
26
  }, "">;
27
- export declare const useGroupCustomers: (onFinish: () => void) => {
27
+ type UseGroupCustomersOptions = {
28
+ onScrollToAmountError?: () => void;
29
+ };
30
+ export declare const useGroupCustomers: (onFinish: () => void, options?: UseGroupCustomersOptions) => {
28
31
  showAuthorizationLetter: boolean;
29
32
  setShowAuthorizationLetter: import('react').Dispatch<import('react').SetStateAction<boolean>>;
30
33
  onFindFlightInfo: (customer: yup.InferType<typeof onePersonSchema>) => Promise<void>;
@@ -55,11 +58,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
55
58
  idNo?: string | undefined;
56
59
  };
57
60
  agreeTerms: NonNullable<boolean | undefined>;
61
+ countryCodeDes: string;
58
62
  reservationNumber: string;
59
63
  airlineCode: string;
60
64
  airlineName: string;
61
65
  departureDate: string;
62
- countryCodeDes: string;
63
66
  countryNameDes: string;
64
67
  }>;
65
68
  setValue: import('react-hook-form').UseFormSetValue<{
@@ -82,11 +85,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
82
85
  idNo?: string | undefined;
83
86
  };
84
87
  agreeTerms: NonNullable<boolean | undefined>;
88
+ countryCodeDes: string;
85
89
  reservationNumber: string;
86
90
  airlineCode: string;
87
91
  airlineName: string;
88
92
  departureDate: string;
89
- countryCodeDes: string;
90
93
  countryNameDes: string;
91
94
  }>;
92
95
  watch: import('react-hook-form').UseFormWatch<{
@@ -109,11 +112,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
109
112
  idNo?: string | undefined;
110
113
  };
111
114
  agreeTerms: NonNullable<boolean | undefined>;
115
+ countryCodeDes: string;
112
116
  reservationNumber: string;
113
117
  airlineCode: string;
114
118
  airlineName: string;
115
119
  departureDate: string;
116
- countryCodeDes: string;
117
120
  countryNameDes: string;
118
121
  }>;
119
122
  trigger: import('react-hook-form').UseFormTrigger<{
@@ -136,11 +139,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
136
139
  idNo?: string | undefined;
137
140
  };
138
141
  agreeTerms: NonNullable<boolean | undefined>;
142
+ countryCodeDes: string;
139
143
  reservationNumber: string;
140
144
  airlineCode: string;
141
145
  airlineName: string;
142
146
  departureDate: string;
143
- countryCodeDes: string;
144
147
  countryNameDes: string;
145
148
  }>;
146
149
  reset: import('react-hook-form').UseFormReset<{
@@ -163,11 +166,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
163
166
  idNo?: string | undefined;
164
167
  };
165
168
  agreeTerms: NonNullable<boolean | undefined>;
169
+ countryCodeDes: string;
166
170
  reservationNumber: string;
167
171
  airlineCode: string;
168
172
  airlineName: string;
169
173
  departureDate: string;
170
- countryCodeDes: string;
171
174
  countryNameDes: string;
172
175
  }>;
173
176
  onSelectFile: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
@@ -233,11 +236,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
233
236
  idNo?: string | undefined;
234
237
  };
235
238
  agreeTerms: NonNullable<boolean | undefined>;
239
+ countryCodeDes: string;
236
240
  reservationNumber: string;
237
241
  airlineCode: string;
238
242
  airlineName: string;
239
243
  departureDate: string;
240
- countryCodeDes: string;
241
244
  countryNameDes: string;
242
245
  }, undefined>;
243
246
  errors: import('react-hook-form').FieldErrors<{
@@ -260,11 +263,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
260
263
  idNo?: string | undefined;
261
264
  };
262
265
  agreeTerms: NonNullable<boolean | undefined>;
266
+ countryCodeDes: string;
263
267
  reservationNumber: string;
264
268
  airlineCode: string;
265
269
  airlineName: string;
266
270
  departureDate: string;
267
- countryCodeDes: string;
268
271
  countryNameDes: string;
269
272
  }>;
270
273
  register: import('react-hook-form').UseFormRegister<{
@@ -287,11 +290,11 @@ export declare const useGroupCustomers: (onFinish: () => void) => {
287
290
  idNo?: string | undefined;
288
291
  };
289
292
  agreeTerms: NonNullable<boolean | undefined>;
293
+ countryCodeDes: string;
290
294
  reservationNumber: string;
291
295
  airlineCode: string;
292
296
  airlineName: string;
293
297
  departureDate: string;
294
- countryCodeDes: string;
295
298
  countryNameDes: string;
296
299
  }>;
297
300
  removeCustomer: (index: number) => void;
@@ -1,25 +1,17 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { CoveragePlanQuotesRequestPayload, CoveragePlanQuotesResponse } from '../components/Insurance/types';
3
3
  import { EGender, EInsuranceType, EPolicyType, ERelationToPrimary, ETravelType, EPersonType } from '../types/insurance';
4
+ import { Province, Ward } from './useLocationData';
4
5
  interface Country {
5
6
  id: number;
6
7
  name: string;
7
8
  tmivId: string;
8
9
  }
9
- export interface Province {
10
- id: number;
11
- name: string;
12
- tmivId: string;
13
- }
14
- export interface Ward {
15
- id: number;
16
- name: string;
17
- tmivId: string;
18
- stateId: number;
19
- }
10
+ export type { Province, Ward } from './useLocationData';
20
11
  type InsuranceDataContextValue = {
21
12
  providers: string[];
22
13
  countries: Country[];
14
+ vietnamCountryId: number | null;
23
15
  provinces: Province[];
24
16
  wardsByState: Record<number, Ward[]>;
25
17
  loadingProviders: boolean;
@@ -1,10 +1,22 @@
1
1
  import { CoveragePlanPremium, CalculatePremiumRequest, InsuredPerson, TravelPlanFormValues } from '../components/Insurance/types';
2
+ import { ETravelScope } from '../types/insurance';
3
+ import { QuickCoveragePlan } from '../components/Insurance/InsurancePlans/QuickCoveragePlanCard';
4
+ export interface QuickRecommendationsByCountry {
5
+ countryId: number;
6
+ countryName: string;
7
+ plans: QuickCoveragePlan[];
8
+ }
2
9
  interface UseInsurancePlansReturn {
3
10
  plans: CoveragePlanPremium[];
4
11
  loading: boolean;
5
12
  error: string | null;
6
13
  refetch: () => Promise<void>;
7
- recalculatePremiumForPlan: (travelPlan: TravelPlanFormValues, insuredPeople: InsuredPerson[], planId: number, provider: string) => Promise<CoveragePlanPremium | null>;
14
+ recalculatePremiumForPlan: (travelPlan: TravelPlanFormValues, insuredPeople: InsuredPerson[], planId: number, provider: string, travelScope: ETravelScope) => Promise<CoveragePlanPremium | null>;
15
+ quickRecommendationsByCountry: QuickRecommendationsByCountry[];
16
+ loadingQuickRecommendations: boolean;
17
+ errorQuickRecommendations: string | null;
18
+ refetchQuickRecommendations: () => Promise<void>;
19
+ fetchQuickRecommendationsByCountry: (countryId: number) => Promise<QuickCoveragePlan[]>;
8
20
  }
9
21
  export declare const useInsurancePlans: (requestPayload: CalculatePremiumRequest | null) => UseInsurancePlansReturn;
10
22
  export {};