gotrip-fx-transaction-form 1.0.155 → 1.0.156

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 (84) hide show
  1. package/assets/index.css +1 -1
  2. package/index.js +55435 -43167
  3. package/package.json +1 -1
  4. package/types/components/Apps/EmbededIndividualApp.d.ts +4 -1
  5. package/types/components/Department/DepartmentCard.d.ts +3 -1
  6. package/types/components/Insurance/CountryWithFlag.d.ts +23 -0
  7. package/types/components/Insurance/CreateInsuranceTransactionForm.d.ts +8 -0
  8. package/types/components/Insurance/FormElements.d.ts +36 -3
  9. package/types/components/Insurance/InsuranceContentRenderer/DynamicRenderer.d.ts +6 -0
  10. package/types/components/Insurance/InsuranceContentRenderer/blocks/AccordionBlock.d.ts +6 -0
  11. package/types/components/Insurance/InsuranceContentRenderer/blocks/ActionButtonBlock.d.ts +6 -0
  12. package/types/components/Insurance/InsuranceContentRenderer/blocks/ContainerBlock.d.ts +6 -0
  13. package/types/components/Insurance/InsuranceContentRenderer/blocks/DataRowBlock.d.ts +6 -0
  14. package/types/components/Insurance/InsuranceContentRenderer/blocks/DividerBlock.d.ts +6 -0
  15. package/types/components/Insurance/InsuranceContentRenderer/blocks/ListGroupBlock.d.ts +6 -0
  16. package/types/components/Insurance/InsuranceContentRenderer/blocks/TextBlock.d.ts +6 -0
  17. package/types/components/Insurance/InsuranceContentRenderer/types.d.ts +64 -0
  18. package/types/components/Insurance/InsuranceContentRenderer/utils/richText.d.ts +14 -0
  19. package/types/components/Insurance/InsuranceContentRenderer/utils/styleMapper.d.ts +6 -0
  20. package/types/components/Insurance/InsurancePlans/BenefitDetailsModal.d.ts +11 -0
  21. package/types/components/Insurance/InsurancePlans/InsurancePlanCard.d.ts +28 -0
  22. package/types/components/Insurance/InsurancePlans/InsurancePlanFilter.d.ts +12 -0
  23. package/types/components/Insurance/InsurancePlans/InsurancePlanList.d.ts +21 -0
  24. package/types/components/Insurance/InsurancePlans/index.d.ts +3 -0
  25. package/types/components/Insurance/RelationshipSelect.d.ts +22 -0
  26. package/types/components/Insurance/SimpleDetail.d.ts +2 -1
  27. package/types/components/Insurance/StepFourPayment.d.ts +14 -0
  28. package/types/components/Insurance/StepOneForm.d.ts +5 -14
  29. package/types/components/Insurance/StepThreeBuyerInfo.d.ts +9 -0
  30. package/types/components/Insurance/StepThreeInsuredPeople.d.ts +17 -0
  31. package/types/components/Insurance/StepTwoPlans.d.ts +18 -0
  32. package/types/components/Insurance/countryUtils.d.ts +10 -0
  33. package/types/components/Insurance/types.d.ts +71 -2
  34. package/types/components/Insurance/utils.d.ts +2 -2
  35. package/types/components/Insurance/validationRules.d.ts +4 -0
  36. package/types/components/Insurance/validationUtils.d.ts +12 -0
  37. package/types/components/Modal/InsurancePaymentModal.d.ts +11 -0
  38. package/types/components/Modal/UpdateTenantCommissionInputCell.d.ts +14 -13
  39. package/types/components/PolicyGroup/CommissionPolicyGroupFormDialog.d.ts +16 -0
  40. package/types/components/PolicyGroup/CommissionPolicyGroupListView.d.ts +11 -0
  41. package/types/components/PolicyGroup/PolicyRulesEditor.d.ts +54 -0
  42. package/types/components/PolicyGroup/PolicyTypes.d.ts +41 -0
  43. package/types/components/PolicyGroup/PricingPolicyListView.d.ts +11 -0
  44. package/types/components/StepIndicator/StepIndicatorCard.d.ts +11 -0
  45. package/types/components/StepIndicator/StepIndicatorHorizontal.d.ts +11 -0
  46. package/types/components/StepIndicator/index.d.ts +2 -0
  47. package/types/constants/api-urls.d.ts +23 -10
  48. package/types/constants/commission-policy-constants.d.ts +5 -0
  49. package/types/constants/countries.d.ts +2 -0
  50. package/types/constants/policy-enums.d.ts +7 -1
  51. package/types/embeded-main.d.ts +3 -0
  52. package/types/hooks/useBookedSimGrouped.d.ts +38 -0
  53. package/types/hooks/useBookedTransactionGroupDetail.d.ts +40 -0
  54. package/types/hooks/useComissionPolicies.d.ts +6 -6
  55. package/types/hooks/useDocumentScan.d.ts +22 -0
  56. package/types/hooks/useImportBookers.d.ts +9 -9
  57. package/types/hooks/useImportMembers.d.ts +9 -9
  58. package/types/hooks/useInsuranceData.d.ts +4 -19
  59. package/types/hooks/useInsurancePlans.d.ts +10 -0
  60. package/types/hooks/useInsuranceTransaction.d.ts +40 -1
  61. package/types/hooks/useParseDocumentData.d.ts +10 -0
  62. package/types/hooks/usePolicyGroups.d.ts +16 -1
  63. package/types/hooks/useTenantList.d.ts +5 -4
  64. package/types/hooks/useUserList.d.ts +3 -1
  65. package/types/pages/admin/fx-commission-policy/FxCommissionPolicyManagement.d.ts +1 -0
  66. package/types/pages/agency/booked-sim-list/BookedSimDescription.d.ts +6 -0
  67. package/types/pages/agency/booked-sim-list/BookedSimList.d.ts +6 -0
  68. package/types/pages/agency/booked-sim-transaction-detail/BookedGroupSimTransactionDetail.d.ts +1 -0
  69. package/types/pages/agency/role-list/RoleList.d.ts +2 -0
  70. package/types/pages/guest/insurance-create.d.ts +5 -0
  71. package/types/store/useAuthStore.d.ts +1 -0
  72. package/types/store/useTenantStore.d.ts +12 -0
  73. package/types/types/enum.d.ts +10 -2
  74. package/types/types/insurance-transaction.dto.d.ts +4 -1
  75. package/types/types/insurance.d.ts +13 -2
  76. package/types/types/response.dto.d.ts +26 -4
  77. package/types/types/sdk.d.ts +4 -0
  78. package/types/types/user.d.ts +5 -1
  79. package/types/util/insurance.util.d.ts +4 -0
  80. package/types/components/Insurance/StepFourSummary.d.ts +0 -18
  81. package/types/components/Insurance/StepIndicator.d.ts +0 -10
  82. package/types/components/Insurance/StepThreePlanComparison.d.ts +0 -11
  83. package/types/components/Insurance/StepTwoForm.d.ts +0 -15
  84. package/types/pages/agency/group-sim-transaction-detail/GroupSimTransactionDetail.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { CoveragePlanQuotesRequestPayload, CoveragePlanQuotesResponse } from '../components/Insurance/types';
3
- import { EDestination, EGender, EInsuranceType, EPolicyType, ERelationToPrimary, ETravelType } from '../types/insurance';
3
+ import { EGender, EInsuranceType, EPolicyType, ERelationToPrimary, ETravelType, EPersonType } from '../types/insurance';
4
4
  interface Country {
5
5
  id: number;
6
6
  name: string;
@@ -30,7 +30,6 @@ type InsuranceDataContextValue = {
30
30
  countriesError: string | null;
31
31
  provincesError: string | null;
32
32
  wardsErrorByState: Record<number, string | undefined>;
33
- refetchProviders: () => void;
34
33
  refetchCountries: () => void;
35
34
  refetchProvinces: () => void;
36
35
  fetchWardsByState: (stateId: number) => Promise<void>;
@@ -38,33 +37,19 @@ type InsuranceDataContextValue = {
38
37
  travelInsuranceSettings: Record<string, any>;
39
38
  loadingTravelInsuranceSettings: boolean;
40
39
  refetchTravelInsuranceSettings: () => void;
41
- policyTypeOptions: {
42
- value: EPolicyType;
43
- label: string;
44
- description?: string;
45
- }[];
46
- destinationOptions: {
47
- value: EDestination;
48
- label: string;
49
- }[];
50
40
  insuranceTypeOptions: {
51
41
  value: EInsuranceType;
52
42
  label: string;
53
43
  }[];
54
- travelTypeOptions: {
55
- value: ETravelType;
56
- label: string;
57
- }[];
58
44
  getPolicyTypeLabel: (value?: EPolicyType | null) => string;
59
45
  getInsuranceTypeLabel: (value?: EInsuranceType | null) => string;
60
46
  getTravelTypeLabel: (value?: ETravelType | null) => string;
61
47
  getDestinationLabelFromCode: (code?: string | null) => string;
62
48
  getGenderLabel: (value?: EGender | null) => string;
63
49
  getRelationLabel: (value?: ERelationToPrimary | null) => string;
64
- providerRelationshipOptions: Record<string, Array<{
65
- label: string;
66
- value: ERelationToPrimary;
67
- }>>;
50
+ getPersonTypeLabel: (type: EPersonType, index: number, people: Array<{
51
+ personType?: EPersonType;
52
+ }>) => string;
68
53
  getProviderLogoUrl: (providerCode?: string | null) => string | undefined;
69
54
  };
70
55
  export declare const InsuranceDataProvider: ({ children }: {
@@ -0,0 +1,10 @@
1
+ import { CoveragePlanPremium, CalculatePremiumRequest, InsuredPerson, TravelPlanFormValues } from '../components/Insurance/types';
2
+ interface UseInsurancePlansReturn {
3
+ plans: CoveragePlanPremium[];
4
+ loading: boolean;
5
+ error: string | null;
6
+ refetch: () => Promise<void>;
7
+ recalculatePremiumForPlan: (travelPlan: TravelPlanFormValues, insuredPeople: InsuredPerson[], planId: number, provider: string) => Promise<CoveragePlanPremium | null>;
8
+ }
9
+ export declare const useInsurancePlans: (requestPayload: CalculatePremiumRequest | null) => UseInsurancePlansReturn;
10
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { InsuranceTransaction } from '../types/insurance-transaction.dto';
2
+ import { EPaymentMethod, TransactionStatus } from '../types/enum';
2
3
  export interface GetInsuranceTransactionListReqDto {
3
4
  page?: number;
4
5
  limit?: number;
@@ -8,6 +9,7 @@ export interface GetInsuranceTransactionListReqDto {
8
9
  endDate?: string;
9
10
  sortField?: 'date' | 'value';
10
11
  sortDirection?: 'asc' | 'desc';
12
+ status?: TransactionStatus;
11
13
  }
12
14
  export interface GetInsuranceTransactionListRespDto {
13
15
  transactions: InsuranceTransaction[];
@@ -15,6 +17,41 @@ export interface GetInsuranceTransactionListRespDto {
15
17
  page: number;
16
18
  limit: number;
17
19
  }
20
+ export interface CreateTransactionPayload {
21
+ provider: string;
22
+ type: string;
23
+ policyType: string;
24
+ coveragePlanId: number;
25
+ coverageStartDate: string;
26
+ coverageEndDate: string;
27
+ travelType: string;
28
+ destinationCountryId: number;
29
+ insureds: Array<{
30
+ relationToPrimary: string;
31
+ isPrimary: boolean;
32
+ fullName: string;
33
+ dateOfBirth: string;
34
+ gender: string;
35
+ idType: string;
36
+ idNumber: string;
37
+ nationality: number;
38
+ email?: string;
39
+ phone?: string;
40
+ address?: string;
41
+ wardId?: number;
42
+ stateId?: number;
43
+ countryId?: number;
44
+ additionalInfo?: Record<string, any>;
45
+ personType?: string;
46
+ }>;
47
+ providerSpecific?: Record<string, any>;
48
+ buyerInfo?: Record<string, any>;
49
+ paymentMode?: EPaymentMethod;
50
+ premium?: {
51
+ totalPremium: number;
52
+ premiumPerPerson: number;
53
+ };
54
+ }
18
55
  export declare const useInsuranceTransactionDetail: (publicId: string | undefined) => {
19
56
  transaction: InsuranceTransaction | null;
20
57
  planName: string;
@@ -47,5 +84,7 @@ export declare const useInsuranceTransaction: (options?: {
47
84
  error: string | null;
48
85
  refetch: () => Promise<void>;
49
86
  };
50
- createPolicyFromQuote: (quoteId: number) => Promise<any>;
87
+ createTransaction: (payload: CreateTransactionPayload) => Promise<InsuranceTransaction>;
88
+ isCreatingTransaction: boolean;
89
+ checkTransactionStatus: (publicId: string) => Promise<InsuranceTransaction>;
51
90
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Hook for parsing and formatting document scan data
3
+ */
4
+ export declare const useParseDocumentData: () => {
5
+ formatDateToYYYYMMDD: (dateStr: string | undefined) => string;
6
+ findCountryIdByNationality: (nationality: string | undefined, countryOptions: Array<{
7
+ value: string;
8
+ label: string;
9
+ }>) => number | null;
10
+ };
@@ -1,11 +1,25 @@
1
+ import { EPolicyActionType } from '../constants/policy-enums';
1
2
  export interface PolicyDto {
2
3
  name: string;
3
4
  description?: string;
4
5
  type: string;
5
6
  conditions: Record<string, any>;
6
7
  action: {
7
- type: 'percent' | 'fixed';
8
+ type: EPolicyActionType;
8
9
  value: number;
10
+ } | {
11
+ direct: {
12
+ type: EPolicyActionType;
13
+ value: number;
14
+ };
15
+ indirect: {
16
+ type: EPolicyActionType;
17
+ value: number;
18
+ };
19
+ viaRef: {
20
+ type: EPolicyActionType;
21
+ value: number;
22
+ };
9
23
  };
10
24
  combineStrategy: string;
11
25
  priority: number;
@@ -31,6 +45,7 @@ export interface CreatePolicyGroupPayload {
31
45
  targetType: string;
32
46
  scopeType: string;
33
47
  scopeIds?: number[];
48
+ scopeMode?: string;
34
49
  policies: PolicyDto[];
35
50
  active: boolean;
36
51
  }
@@ -1,7 +1,8 @@
1
- import { ITenant } from '../types/response.dto';
2
- export declare const useTenantList: () => {
3
- tenants: ITenant[];
1
+ export declare const useTenantList: (options?: {
2
+ skipFetch?: boolean;
3
+ }) => {
4
+ tenants: import('../types/response.dto').ITenant[];
4
5
  loading: boolean;
5
- refetchData: () => void;
6
+ refetchData: () => Promise<void>;
6
7
  removeTenant: (tenantId: number) => Promise<void>;
7
8
  };
@@ -1,5 +1,7 @@
1
1
  import { IUser } from '../types/response.dto';
2
- export declare const useUserList: () => {
2
+ export declare const useUserList: (options?: {
3
+ skipAutoFetch?: boolean;
4
+ }) => {
3
5
  users: IUser[];
4
6
  total: number;
5
7
  loading: boolean;
@@ -0,0 +1 @@
1
+ export declare const FxCommissionPolicyManagement: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { IBookedSimGroupedItem } from '../../../hooks/useBookedSimGrouped';
2
+ type Props = {
3
+ transaction: IBookedSimGroupedItem;
4
+ };
5
+ export declare const BookedSimDescription: ({ transaction }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ showLayout?: boolean;
3
+ defaultLimit?: number;
4
+ };
5
+ export declare const BookedSimList: ({ defaultLimit }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const BookedGroupSimTransactionDetail: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const RoleList: () => import("react/jsx-runtime").JSX.Element;
2
+ export default RoleList;
@@ -0,0 +1,5 @@
1
+ interface CreateGuestInsuranceTransactionPageProps {
2
+ scrollable?: boolean;
3
+ }
4
+ export declare const CreateGuestInsuranceTransactionPage: ({ scrollable, }: CreateGuestInsuranceTransactionPageProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -17,4 +17,5 @@ export type AuthState = {
17
17
  departmentDisplay: string;
18
18
  };
19
19
  export declare const useAuthStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AuthState>>;
20
+ export declare const useIsGuest: () => boolean;
20
21
  export {};
@@ -0,0 +1,12 @@
1
+ import { ITenant } from '../types/response.dto';
2
+ interface TenantStoreState {
3
+ tenants: ITenant[];
4
+ loading: boolean;
5
+ isFetching: boolean;
6
+ lastFetched: number | null;
7
+ fetchTenants: () => Promise<void>;
8
+ refetchTenants: () => Promise<void>;
9
+ removeTenant: (tenantId: number) => Promise<void>;
10
+ }
11
+ export declare const useTenantStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TenantStoreState>>;
12
+ export {};
@@ -11,7 +11,8 @@ export declare enum TransactionStatus {
11
11
  CANCELED = "cancelled",
12
12
  SUCCESS = "success",
13
13
  PAID = "paid",
14
- FAILED = "failed"
14
+ FAILED = "failed",
15
+ PENDING_PAYMENT = "pending_payment"
15
16
  }
16
17
  export declare enum EsimTransactionStatus {
17
18
  CREATED = "created",
@@ -91,5 +92,12 @@ export declare const E_TOP_UP_VALUES: {
91
92
  };
92
93
  export declare enum EPaymentMethod {
93
94
  PRIMARY_BALANCE = "primary_balance",
94
- TOPUP_BALANCE = "topup_balance"
95
+ TOPUP_BALANCE = "topup_balance",
96
+ BANK_TRANSFER = "bank_transfer"
97
+ }
98
+ export declare enum EInsuranceTransactionStatus {
99
+ PENDING = "pending",
100
+ PAID = "paid",
101
+ SUCCESS = "success",
102
+ FAILED = "failed"
95
103
  }
@@ -1,4 +1,4 @@
1
- import { EGender, EIdType, EInsuranceType, EPolicyStatus, EPolicyType, EQuoteStatus, ERelationToPrimary, ETravelType } from './insurance';
1
+ import { EGender, EIdType, EInsuranceType, EPersonType, EPolicyStatus, EPolicyType, EQuoteStatus, ERelationToPrimary, ETravelType } from './insurance';
2
2
  import { ITransaction } from './response.dto';
3
3
  export interface InsuranceQuoteInsured {
4
4
  id: number;
@@ -19,6 +19,7 @@ export interface InsuranceQuoteInsured {
19
19
  stateId?: number;
20
20
  countryId?: number;
21
21
  additionalInfo?: Record<string, any>;
22
+ personType?: EPersonType;
22
23
  }
23
24
  export interface InsuranceQuote {
24
25
  id: number;
@@ -43,6 +44,7 @@ export interface InsuranceQuote {
43
44
  providerData?: Record<string, any>;
44
45
  providerResponse?: Record<string, any>;
45
46
  validUntil?: string;
47
+ buyerInfo?: Record<string, any>;
46
48
  insureds?: InsuranceQuoteInsured[];
47
49
  createdAt: string;
48
50
  updatedAt: string;
@@ -70,6 +72,7 @@ export interface PolicyInsured {
70
72
  stateId?: number;
71
73
  countryId?: number;
72
74
  additionalInfo?: Record<string, any>;
75
+ personType?: EPersonType;
73
76
  }
74
77
  export interface InsuranceTransaction {
75
78
  id: number;
@@ -24,7 +24,8 @@ export declare enum EIdType {
24
24
  }
25
25
  export declare enum EInsuranceProviderType {
26
26
  TMIV = "TMIV",
27
- MSIG = "MSIG"
27
+ MSIG = "MSIG",
28
+ PVI = "PVI"
28
29
  }
29
30
  export declare enum EInsuranceType {
30
31
  INDIVIDUAL = "individual",
@@ -51,10 +52,20 @@ export declare enum EPolicyStatus {
51
52
  ACTIVE = "active",
52
53
  CANCELLED = "cancelled",
53
54
  EXPIRED = "expired",
54
- PENDING = "pending"
55
+ PENDING = "pending",
56
+ FAILED = "failed"
55
57
  }
56
58
  export declare enum EDestination {
57
59
  WORLDWIDE = "worldwide",
58
60
  ASIA = "asia",
59
61
  ASEAN = "asean"
60
62
  }
63
+ export declare enum EPersonType {
64
+ ADULT = "adult",
65
+ CHILDREN = "children"
66
+ }
67
+ export declare enum EPersonValidationStatus {
68
+ VALID = "valid",
69
+ NEEDS_CHECK = "needs_check",
70
+ NOT_ENTERED = "not_entered"
71
+ }
@@ -1,4 +1,5 @@
1
- import { ECommissionPolicyCalculationType, ECommissionPolicyType, ESimDomesticServices, EsimTransactionStatus, ETenantType, EUseCaseses, TransactionStatus } from './enum';
1
+ import { ECommissionPolicyType, ESimDomesticServices, EsimTransactionStatus, ETenantType, EUseCaseses, TransactionStatus } from './enum';
2
+ import { EPolicyActionType } from '../constants/policy-enums';
2
3
  import { EPermissionKey, EUserRole, EUserStatus } from './user';
3
4
  export type LoginRespDto = {
4
5
  accessToken: string;
@@ -401,6 +402,27 @@ export type IPermission = {
401
402
  description: string;
402
403
  globalPermission: IGlobalPermission;
403
404
  };
405
+ export interface IRemappedCommissionPolicy {
406
+ userId: number | null;
407
+ tenantId: number;
408
+ departmentId: number | null;
409
+ bankCode: string;
410
+ currencyCode: string;
411
+ action: {
412
+ direct: {
413
+ type: string;
414
+ value: number;
415
+ };
416
+ viaRef: {
417
+ type: string;
418
+ value: number;
419
+ };
420
+ indirect: {
421
+ type: string;
422
+ value: number;
423
+ };
424
+ };
425
+ }
404
426
  export interface ICommissionPolicy {
405
427
  currencyCode?: string;
406
428
  userId?: number;
@@ -409,9 +431,9 @@ export interface ICommissionPolicy {
409
431
  memberId?: number;
410
432
  bankId?: number;
411
433
  type: ECommissionPolicyType;
412
- directType: ECommissionPolicyCalculationType;
413
- viaRefType: ECommissionPolicyCalculationType;
414
- indirectType: ECommissionPolicyCalculationType;
434
+ directType: EPolicyActionType;
435
+ viaRefType: EPolicyActionType;
436
+ indirectType: EPolicyActionType;
415
437
  byFixedAmountDirect?: number;
416
438
  byPercentDirect?: number;
417
439
  byFixedAmountViaRef?: number;
@@ -0,0 +1,4 @@
1
+ export declare enum ESdkFormType {
2
+ FX = "fx",
3
+ INSURANCE = "insurance"
4
+ }
@@ -68,5 +68,9 @@ export declare enum EPermissionKey {
68
68
  VIEW_SYSTEM_JOB_LIST = "VIEW_SYSTEM_JOB_LIST",
69
69
  RETRY_SYSTEM_JOB = "RETRY_SYSTEM_JOB",
70
70
  DELTE_SYSTEM_JOB = "DELTE_SYSTEM_JOB",
71
- CHANGE_SYSTEM_JOB_PARAMS = "CHANGE_SYSTEM_JOB_PARAMS"
71
+ CHANGE_SYSTEM_JOB_PARAMS = "CHANGE_SYSTEM_JOB_PARAMS",
72
+ CREATE_INSURANCE_ORDER = "CREATE_INSURANCE_ORDER",
73
+ VIEW_INSURANCE_LIST = "VIEW_INSURANCE_LIST",
74
+ UPDATE_INSURANCE_ORDER = "UPDATE_INSURANCE_ORDER",
75
+ VIEW_INSURANCE_DETAIL = "VIEW_INSURANCE_DETAIL"
72
76
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Get Vietnamese label for insurance region/destination
3
+ */
4
+ export declare const getRegionLabel: (regionValue: string | null | undefined) => string;
@@ -1,18 +0,0 @@
1
- import { InsuranceFormValues, CoveragePlanQuote } from './types';
2
- type ConsentState = Record<string, boolean>;
3
- interface StepFourSummaryProps {
4
- plan: CoveragePlanQuote;
5
- stepOneValues: InsuranceFormValues;
6
- policyTypeLabel: string;
7
- destinationLabel: string;
8
- insuranceTypeLabel: string;
9
- travelTypeLabel: string;
10
- totalDays: number;
11
- travellersCount: number;
12
- consents: ConsentState;
13
- provider: string;
14
- travelInsuranceSettings?: Record<string, any>;
15
- onConsentChange: (key: string, value: boolean) => void;
16
- }
17
- export declare const StepFourSummary: ({ plan, stepOneValues, policyTypeLabel, destinationLabel, insuranceTypeLabel, travelTypeLabel, totalDays, travellersCount, consents, provider, travelInsuranceSettings, onConsentChange, }: StepFourSummaryProps) => import("react/jsx-runtime").JSX.Element;
18
- export {};
@@ -1,10 +0,0 @@
1
- type Step = {
2
- id: number;
3
- title: string;
4
- };
5
- interface StepIndicatorProps {
6
- currentStep: number;
7
- steps: Step[];
8
- }
9
- export declare const StepIndicator: ({ currentStep, steps }: StepIndicatorProps) => import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,11 +0,0 @@
1
- import { CoveragePlanQuote } from './types';
2
- interface StepThreePlanComparisonProps {
3
- provider: string;
4
- plans: CoveragePlanQuote[];
5
- selectedPlanId?: number | null;
6
- onPlanSelect: (plan: CoveragePlanQuote) => void;
7
- onPlanBuyNow?: (plan: CoveragePlanQuote) => void;
8
- travelInsuranceSettings?: Record<string, any>;
9
- }
10
- export declare const StepThreePlanComparison: ({ provider, plans, selectedPlanId, onPlanSelect, onPlanBuyNow, travelInsuranceSettings, }: StepThreePlanComparisonProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,15 +0,0 @@
1
- import { Control, UseFormSetValue } from 'react-hook-form';
2
- import { HolderFormValues, InsuredMember } from './types';
3
- import { ERelationToPrimary } from '../../types/insurance';
4
- interface StepTwoFormProps {
5
- holderControl: Control<HolderFormValues>;
6
- setHolderValue: UseFormSetValue<HolderFormValues>;
7
- insuredMembers: InsuredMember[];
8
- onEditMember: (index: number) => void;
9
- relationshipOptions: {
10
- label: string;
11
- value: ERelationToPrimary;
12
- }[];
13
- }
14
- export declare const StepTwoForm: ({ holderControl, setHolderValue, insuredMembers, onEditMember, relationshipOptions, }: StepTwoFormProps) => import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1 +0,0 @@
1
- export declare const GroupSimTransactionDetail: () => import("react/jsx-runtime").JSX.Element;