gotrip-fx-transaction-form 1.0.232-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.232-dev",
3
+ "version": "1.0.233-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -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;
@@ -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
- quickRecommendations: QuickCoveragePlan[];
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 {};