gotrip-fx-transaction-form 1.0.241-dev → 1.0.243-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 +25655 -25552
- package/package.json +1 -1
- package/types/components/Insurance/StepThree.d.ts +3 -2
- package/types/components/Insurance/StepThreeBuyerInfo.d.ts +3 -1
- package/types/components/Insurance/shared/InsuranceRadioGroup.d.ts +1 -0
- package/types/components/Insurance/types.d.ts +5 -4
- package/types/types/insurance.d.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Control } from 'react-hook-form';
|
|
2
2
|
import { TravelPlanFormValues, CoveragePlanPremium, BuyerFormValues, InsuredPerson } from './types';
|
|
3
|
-
import { EInsuranceType } from '../../types/insurance';
|
|
3
|
+
import { EInsuranceProviderType, EInsuranceType } from '../../types/insurance';
|
|
4
4
|
interface StepThreeProps {
|
|
5
5
|
control: Control<TravelPlanFormValues>;
|
|
6
6
|
tripStart: Date | null;
|
|
@@ -15,6 +15,7 @@ interface StepThreeProps {
|
|
|
15
15
|
teenagersCount: number | null;
|
|
16
16
|
childrenCount: number | null;
|
|
17
17
|
isDomestic: boolean;
|
|
18
|
+
selectedProvider?: EInsuranceProviderType;
|
|
18
19
|
onBuyerInfoSubmit: (data: BuyerFormValues) => void;
|
|
19
20
|
onInsuredPeopleSubmit: (people: InsuredPerson[]) => void;
|
|
20
21
|
onStepThreeBack: () => void;
|
|
@@ -22,5 +23,5 @@ interface StepThreeProps {
|
|
|
22
23
|
buyerInfoFormRef: React.RefObject<HTMLFormElement | null>;
|
|
23
24
|
insuredPeopleFormRef: React.RefObject<HTMLFormElement | null>;
|
|
24
25
|
}
|
|
25
|
-
export declare const StepThree: ({ control, tripStart, tripEnd, stepThreeChildStep, onStepThreeChildStepClick, selectedPlan, buyerInfo, insuredPeople, insuranceType, adultsCount, teenagersCount, childrenCount, isDomestic, onBuyerInfoSubmit, onInsuredPeopleSubmit, onStepThreeBack, onDatesChange, buyerInfoFormRef, insuredPeopleFormRef, }: StepThreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const StepThree: ({ control, tripStart, tripEnd, stepThreeChildStep, onStepThreeChildStepClick, selectedPlan, buyerInfo, insuredPeople, insuranceType, adultsCount, teenagersCount, childrenCount, isDomestic, selectedProvider, onBuyerInfoSubmit, onInsuredPeopleSubmit, onStepThreeBack, onDatesChange, buyerInfoFormRef, insuredPeopleFormRef, }: StepThreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EInsuranceProviderType } from '../../types/insurance';
|
|
1
2
|
import { BuyerFormValues } from './types';
|
|
2
3
|
interface StepThreeBuyerInfoProps {
|
|
3
4
|
initialValues?: Partial<BuyerFormValues>;
|
|
@@ -5,6 +6,7 @@ interface StepThreeBuyerInfoProps {
|
|
|
5
6
|
onBack: () => void;
|
|
6
7
|
onFormRef?: (form: HTMLFormElement | null) => void;
|
|
7
8
|
isDomestic?: boolean;
|
|
9
|
+
selectedProvider?: EInsuranceProviderType;
|
|
8
10
|
}
|
|
9
|
-
export declare const StepThreeBuyerInfo: ({ initialValues, onSubmit, onBack: _onBack, onFormRef, isDomestic, }: StepThreeBuyerInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const StepThreeBuyerInfo: ({ initialValues, onSubmit, onBack: _onBack, onFormRef, isDomestic, selectedProvider, }: StepThreeBuyerInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EDestination, EGender, EIdType, EInsuranceType, EPolicyType, ERelationToPrimary, ETravelType, EPersonType, EPersonValidationStatus, ETravelScope } from '../../types/insurance';
|
|
1
|
+
import { EDestination, EBuyerType, EGender, EIdType, EInsuranceType, EInsuranceProviderType, EPolicyType, ERelationToPrimary, ETravelType, EPersonType, EPersonValidationStatus, ETravelScope } from '../../types/insurance';
|
|
2
2
|
export type InsuranceFormValues = {
|
|
3
3
|
provider: string;
|
|
4
4
|
type: EInsuranceType;
|
|
@@ -101,11 +101,11 @@ export type CalculatePremiumRequest = {
|
|
|
101
101
|
adultsCount: number;
|
|
102
102
|
teenagerCount: number;
|
|
103
103
|
childrenCount: number;
|
|
104
|
-
providers?:
|
|
104
|
+
providers?: EInsuranceProviderType[];
|
|
105
105
|
sortOrder?: 'asc' | 'desc';
|
|
106
106
|
};
|
|
107
107
|
export type CoveragePlanPremium = {
|
|
108
|
-
provider:
|
|
108
|
+
provider: EInsuranceProviderType;
|
|
109
109
|
coveragePlan: {
|
|
110
110
|
id: number;
|
|
111
111
|
planCode: string;
|
|
@@ -132,9 +132,10 @@ export type CalculatePremiumResponse = {
|
|
|
132
132
|
plans: CoveragePlanPremium[];
|
|
133
133
|
};
|
|
134
134
|
export type BuyerFormValues = {
|
|
135
|
+
buyerType?: EBuyerType | null;
|
|
135
136
|
fullName: string;
|
|
136
137
|
gender?: EGender;
|
|
137
|
-
dateOfBirth: string;
|
|
138
|
+
dateOfBirth: string | null;
|
|
138
139
|
nationality: number | null;
|
|
139
140
|
idType: EIdType;
|
|
140
141
|
idNumber: string;
|
|
@@ -24,7 +24,8 @@ export declare enum ERelationToPrimary {
|
|
|
24
24
|
}
|
|
25
25
|
export declare enum EIdType {
|
|
26
26
|
PASSPORT = "passport",
|
|
27
|
-
ID_CARD = "id_card"
|
|
27
|
+
ID_CARD = "id_card",
|
|
28
|
+
TAX_CODE = "tax_code"
|
|
28
29
|
}
|
|
29
30
|
export declare enum EInsuranceProviderType {
|
|
30
31
|
TMIV = "TMIV",
|
|
@@ -75,3 +76,7 @@ export declare enum EPersonValidationStatus {
|
|
|
75
76
|
NEEDS_CHECK = "needs_check",
|
|
76
77
|
NOT_ENTERED = "not_entered"
|
|
77
78
|
}
|
|
79
|
+
export declare enum EBuyerType {
|
|
80
|
+
INDIVIDUAL = "individual",
|
|
81
|
+
COMPANY = "company"
|
|
82
|
+
}
|