gotrip-fx-transaction-form 1.0.231-dev → 1.0.233-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +26618 -26401
- package/package.json +1 -1
- package/types/components/Insurance/InsurancePlans/QuickCoveragePlanCard.d.ts +2 -1
- package/types/components/Insurance/InsurancePlans/QuickRecommendationsSection.d.ts +18 -0
- package/types/constants/api-urls.d.ts +1 -0
- package/types/constants/policy-enums.d.ts +3 -2
- package/types/hooks/useInsurancePlans.d.ts +7 -1
- package/types/types/app-settings.d.ts +1 -0
package/package.json
CHANGED
|
@@ -7,9 +7,10 @@ export interface QuickCoveragePlan {
|
|
|
7
7
|
interface QuickCoveragePlanCardProps {
|
|
8
8
|
quickPlan: QuickCoveragePlan;
|
|
9
9
|
countryName: string;
|
|
10
|
+
showCountryName?: boolean;
|
|
10
11
|
onBuyNow: (plan: CoveragePlanPremium, countryId: number, values: InsuranceTypeAndPeopleCountValues) => void;
|
|
11
12
|
travelInsuranceSettings?: Record<string, any>;
|
|
12
13
|
travelPlan?: TravelPlanFormValues | null;
|
|
13
14
|
}
|
|
14
|
-
export declare const QuickCoveragePlanCard: ({ quickPlan, countryName, onBuyNow, travelInsuranceSettings, travelPlan, }: QuickCoveragePlanCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export declare const QuickCoveragePlanCard: ({ quickPlan, countryName, showCountryName, onBuyNow, travelInsuranceSettings, travelPlan, }: QuickCoveragePlanCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { QuickCoveragePlan } from './QuickCoveragePlanCard';
|
|
2
|
+
import { CoveragePlanPremium, TravelPlanFormValues, InsuranceTypeAndPeopleCountValues } from '../types';
|
|
3
|
+
interface QuickRecommendationsSectionProps {
|
|
4
|
+
initialCountryId: number;
|
|
5
|
+
initialCountryName: string;
|
|
6
|
+
initialPlans: QuickCoveragePlan[];
|
|
7
|
+
countryOptions: Array<{
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}>;
|
|
11
|
+
loadingCountries?: boolean;
|
|
12
|
+
travelInsuranceSettings?: Record<string, any>;
|
|
13
|
+
travelPlan?: TravelPlanFormValues | null;
|
|
14
|
+
onBuyNow: (plan: CoveragePlanPremium, countryId: number, values: InsuranceTypeAndPeopleCountValues) => void;
|
|
15
|
+
onFetchPlansByCountry: (countryId: number) => Promise<QuickCoveragePlan[]>;
|
|
16
|
+
}
|
|
17
|
+
export declare const QuickRecommendationsSection: ({ initialCountryId, initialCountryName, initialPlans, countryOptions, loadingCountries, travelInsuranceSettings, travelPlan, onBuyNow, onFetchPlansByCountry, }: QuickRecommendationsSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -234,6 +234,7 @@ export declare const ApiUrls: {
|
|
|
234
234
|
calculateSinglePlanPremium: string;
|
|
235
235
|
createTransaction: string;
|
|
236
236
|
quickRecommendations: string;
|
|
237
|
+
quickRecommendationsByCountry: (countryId: number) => string;
|
|
237
238
|
};
|
|
238
239
|
insuranceLocation: {
|
|
239
240
|
countries: string;
|
|
@@ -36,9 +36,10 @@ export declare enum EPolicyCalculatorType {
|
|
|
36
36
|
LEVEL = "level",
|
|
37
37
|
INDEPENDENT = "independent"
|
|
38
38
|
}
|
|
39
|
-
/** Insurance product type for policy rules.
|
|
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
40
|
export declare enum EInsuranceProductType {
|
|
41
|
-
|
|
41
|
+
INTERNATION_TRAVEL = "international_travel",
|
|
42
|
+
DOMESTIC_TRAVEL = "domestic_travel",
|
|
42
43
|
MLI = "mli",
|
|
43
44
|
ALI = "ali"
|
|
44
45
|
}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { CoveragePlanPremium, CalculatePremiumRequest, InsuredPerson, TravelPlanFormValues } from '../components/Insurance/types';
|
|
2
2
|
import { ETravelScope } from '../types/insurance';
|
|
3
3
|
import { QuickCoveragePlan } from '../components/Insurance/InsurancePlans/QuickCoveragePlanCard';
|
|
4
|
+
export interface QuickRecommendationsByCountry {
|
|
5
|
+
countryId: number;
|
|
6
|
+
countryName: string;
|
|
7
|
+
plans: QuickCoveragePlan[];
|
|
8
|
+
}
|
|
4
9
|
interface UseInsurancePlansReturn {
|
|
5
10
|
plans: CoveragePlanPremium[];
|
|
6
11
|
loading: boolean;
|
|
7
12
|
error: string | null;
|
|
8
13
|
refetch: () => Promise<void>;
|
|
9
14
|
recalculatePremiumForPlan: (travelPlan: TravelPlanFormValues, insuredPeople: InsuredPerson[], planId: number, provider: string, travelScope: ETravelScope) => Promise<CoveragePlanPremium | null>;
|
|
10
|
-
|
|
15
|
+
quickRecommendationsByCountry: QuickRecommendationsByCountry[];
|
|
11
16
|
loadingQuickRecommendations: boolean;
|
|
12
17
|
errorQuickRecommendations: string | null;
|
|
13
18
|
refetchQuickRecommendations: () => Promise<void>;
|
|
19
|
+
fetchQuickRecommendationsByCountry: (countryId: number) => Promise<QuickCoveragePlan[]>;
|
|
14
20
|
}
|
|
15
21
|
export declare const useInsurancePlans: (requestPayload: CalculatePremiumRequest | null) => UseInsurancePlansReturn;
|
|
16
22
|
export {};
|
|
@@ -38,6 +38,7 @@ export interface IBankFxTravellingMessages {
|
|
|
38
38
|
export interface IBankFxTravellingAgentSetting {
|
|
39
39
|
enable?: boolean;
|
|
40
40
|
notes?: string[];
|
|
41
|
+
disableNotes?: string[];
|
|
41
42
|
}
|
|
42
43
|
export type IBankFxMaxAmount = Record<string, number | null | undefined>;
|
|
43
44
|
/** Single number = same limit for all currencies; object = per-currency limits */
|