gotrip-fx-transaction-form 1.0.233-dev → 1.0.235-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,18 +1,18 @@
|
|
|
1
1
|
import { QuickCoveragePlan } from './QuickCoveragePlanCard';
|
|
2
2
|
import { CoveragePlanPremium, TravelPlanFormValues, InsuranceTypeAndPeopleCountValues } from '../types';
|
|
3
3
|
interface QuickRecommendationsSectionProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
countryId: number;
|
|
5
|
+
countryName: string;
|
|
6
|
+
plans: QuickCoveragePlan[];
|
|
7
7
|
countryOptions: Array<{
|
|
8
8
|
value: string;
|
|
9
9
|
label: string;
|
|
10
10
|
}>;
|
|
11
|
-
loadingCountries?: boolean;
|
|
12
11
|
travelInsuranceSettings?: Record<string, any>;
|
|
13
12
|
travelPlan?: TravelPlanFormValues | null;
|
|
14
13
|
onBuyNow: (plan: CoveragePlanPremium, countryId: number, values: InsuranceTypeAndPeopleCountValues) => void;
|
|
15
14
|
onFetchPlansByCountry: (countryId: number) => Promise<QuickCoveragePlan[]>;
|
|
15
|
+
onPlansLoaded?: (countryId: number, plans: QuickCoveragePlan[]) => void;
|
|
16
16
|
}
|
|
17
|
-
export declare const QuickRecommendationsSection: ({
|
|
17
|
+
export declare const QuickRecommendationsSection: ({ countryId, countryName, plans: plansProp, countryOptions, travelInsuranceSettings, travelPlan, onBuyNow, onFetchPlansByCountry, onPlansLoaded, }: QuickRecommendationsSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -4,6 +4,10 @@ export type CountryOption = {
|
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
+
export type ProvinceOption = {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
7
11
|
type AutofillFieldPaths = {
|
|
8
12
|
fullName: any;
|
|
9
13
|
idType: any;
|
|
@@ -13,6 +17,7 @@ type AutofillFieldPaths = {
|
|
|
13
17
|
nationality: any;
|
|
14
18
|
countryId?: any;
|
|
15
19
|
address?: any;
|
|
20
|
+
stateId?: any;
|
|
16
21
|
};
|
|
17
22
|
type AutofillHelpers = {
|
|
18
23
|
formatDateToYYYYMMDD: (dateStr: string | undefined) => string;
|
|
@@ -21,11 +26,12 @@ type AutofillHelpers = {
|
|
|
21
26
|
label: string;
|
|
22
27
|
}>) => number | null;
|
|
23
28
|
};
|
|
24
|
-
export declare function applyDocumentScanAutofillToRHF<TFieldValues extends FieldValues>({ setValue, data, fields, countryOptions, helpers, }: {
|
|
29
|
+
export declare function applyDocumentScanAutofillToRHF<TFieldValues extends FieldValues>({ setValue, data, fields, countryOptions, provinceOptions, helpers, }: {
|
|
25
30
|
setValue: UseFormSetValue<TFieldValues>;
|
|
26
31
|
data: DocumentScanResult;
|
|
27
32
|
fields: AutofillFieldPaths;
|
|
28
33
|
countryOptions: CountryOption[];
|
|
34
|
+
provinceOptions?: ProvinceOption[];
|
|
29
35
|
helpers: AutofillHelpers;
|
|
30
36
|
}): void;
|
|
31
37
|
export {};
|