gotrip-fx-transaction-form 1.0.245-dev → 1.0.246-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.245-dev",
3
+ "version": "1.0.246-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -1,10 +1,11 @@
1
- import { MotorPlanFormValues, MotorPremiumSummary as MotorPremiumSummaryType } from '../motor-insurance.types';
1
+ import { EMotorProvider, MotorPlanFormValues, MotorPremiumSummary as MotorPremiumSummaryType } from '../motor-insurance.types';
2
2
  import { Control, UseFormSetValue } from 'react-hook-form';
3
3
  type BikeStepOneFormProps = {
4
4
  control: Control<MotorPlanFormValues>;
5
5
  setValue: UseFormSetValue<MotorPlanFormValues>;
6
6
  premiumSummary?: MotorPremiumSummaryType | null;
7
7
  isLoadingQuote?: boolean;
8
+ providers?: EMotorProvider[];
8
9
  };
9
- export declare const BikeStepOneForm: ({ control, setValue, premiumSummary, isLoadingQuote, }: BikeStepOneFormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const BikeStepOneForm: ({ control, setValue, premiumSummary, isLoadingQuote, providers, }: BikeStepOneFormProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -1,8 +1,10 @@
1
+ import { EMotorProvider } from '../motor-insurance.types';
1
2
  export interface CreateBikeInsuranceFormProps {
2
3
  storageKey: string;
3
4
  title?: string;
4
5
  onBack?: () => void;
5
6
  onSuccess?: (transactionData: unknown) => void;
6
7
  scrollable?: boolean;
8
+ allowedProviders?: EMotorProvider[];
7
9
  }
8
- export declare const CreateBikeInsuranceForm: ({ storageKey, title, onBack, onSuccess, scrollable, }: CreateBikeInsuranceFormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CreateBikeInsuranceForm: ({ storageKey, title, onBack, onSuccess, scrollable, allowedProviders, }: CreateBikeInsuranceFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,11 @@
1
1
  import { Control, UseFormSetValue } from 'react-hook-form';
2
- import { CarPlanFormValues, CarPremiumSummary } from '../motor-insurance.types';
2
+ import { CarPlanFormValues, CarPremiumSummary, EMotorProvider } from '../motor-insurance.types';
3
3
  interface CarStepTwoPlanProps {
4
4
  control: Control<CarPlanFormValues>;
5
5
  setValue: UseFormSetValue<CarPlanFormValues>;
6
6
  premiumSummary: CarPremiumSummary | null;
7
7
  isLoadingQuote?: boolean;
8
+ providers?: EMotorProvider[];
8
9
  }
9
- export declare const CarStepTwoPlan: ({ control, setValue, premiumSummary, isLoadingQuote, }: CarStepTwoPlanProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CarStepTwoPlan: ({ control, setValue, premiumSummary, isLoadingQuote, providers, }: CarStepTwoPlanProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -1,8 +1,10 @@
1
+ import { EMotorProvider } from '../motor-insurance.types';
1
2
  export interface CreateCarInsuranceFormProps {
2
3
  storageKey: string;
3
4
  title?: string;
4
5
  onBack?: () => void;
5
6
  onSuccess?: (transactionData: unknown) => void;
6
7
  scrollable?: boolean;
8
+ allowedProviders?: EMotorProvider[];
7
9
  }
8
- export declare const CreateCarInsuranceForm: ({ storageKey, title, onBack, onSuccess, scrollable, }: CreateCarInsuranceFormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CreateCarInsuranceForm: ({ storageKey, title, onBack, onSuccess, scrollable, allowedProviders, }: CreateCarInsuranceFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -16,6 +16,7 @@ type FeatureFlags = {
16
16
  vnptSim: ToggleFeatureFlag;
17
17
  vnptData: ToggleFeatureFlag;
18
18
  insurance: InsuranceFeatureFlag;
19
+ motorInsurance: InsuranceFeatureFlag;
19
20
  };
20
21
  type AppSettings = {
21
22
  featureFlags: FeatureFlags;
@@ -227,6 +227,7 @@ export interface ITravelAgencyTenantSettings {
227
227
  esimInbound: boolean;
228
228
  simDomestic: boolean;
229
229
  insurance: boolean;
230
+ motorInsurance: boolean;
230
231
  };
231
232
  fx: {
232
233
  useCases: EUseCaseses[];
@@ -239,6 +240,9 @@ export interface ITravelAgencyTenantSettings {
239
240
  insurance: {
240
241
  providers: string[];
241
242
  };
243
+ motorInsurance: {
244
+ providers: string[];
245
+ };
242
246
  }
243
247
  export interface IBankTenantSettings {
244
248
  availableCurrencies: string[];