@mychoice/mychoice-sdk-modules 1.0.2 → 2.0.1
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/dist/cjs/index.js +3216 -2070
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/init/AppModal/interfaces.d.ts +1 -1
- package/dist/cjs/init/AppTitle/AppTitle.d.ts +6 -0
- package/dist/cjs/init/AppTitle/MetaFields.d.ts +5 -0
- package/dist/cjs/init/AppTitle/index.d.ts +1 -0
- package/dist/cjs/init/helper.d.ts +1 -1
- package/dist/cjs/init/index.d.ts +0 -1
- package/dist/cjs/insurances/car/pages/discount/helpers.d.ts +14 -0
- package/dist/cjs/insurances/car/pages/driver/helpers.d.ts +5 -0
- package/dist/cjs/insurances/car/pages/index.d.ts +0 -1
- package/dist/cjs/insurances/car/pages/interfaces.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/PageQuote.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/quote/index.d.ts +1 -1
- package/dist/cjs/insurances/helpers.d.ts +2 -2
- package/dist/cjs/insurances/home/pages/index.d.ts +1 -0
- package/dist/cjs/insurances/home/pages/quote/PageQuote.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/index.d.ts +1 -0
- package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/cjs/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/cjs/insurances/home/pages/quote/sections/index.d.ts +2 -0
- package/dist/cjs/insurances/index.d.ts +1 -0
- package/dist/cjs/insurances/life/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/applicant/PageApplicant.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +3 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/index.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +7 -0
- package/dist/cjs/insurances/life/pages/applicant/sections/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/coverage/PageCoverage.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/coverage/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/coverage/sections/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/helpers.d.ts +4 -0
- package/dist/cjs/insurances/life/pages/index.d.ts +3 -0
- package/dist/cjs/insurances/life/pages/quote/PageQuote.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/index.d.ts +1 -0
- package/dist/cjs/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/cjs/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/cjs/insurances/life/pages/quote/sections/index.d.ts +1 -0
- package/dist/cjs/shared/boxes/Container/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/DateSelectFormBox/interface.d.ts +2 -2
- package/dist/cjs/shared/boxes/InputFormBox/interface.d.ts +3 -2
- package/dist/cjs/shared/boxes/LabelFormBox/interface.d.ts +3 -2
- package/dist/cjs/shared/boxes/SelectFormBox/interface.d.ts +1 -1
- package/dist/cjs/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
- package/dist/cjs/shared/headers/interfaces.d.ts +3 -3
- package/dist/cjs/shared/modals/ModalAddress/ModalAddress.d.ts +2 -0
- package/dist/cjs/shared/modals/ModalAddress/index.d.ts +1 -0
- package/dist/cjs/shared/modals/ModalPostal/ModalPostal.d.ts +1 -2
- package/dist/cjs/shared/modals/index.d.ts +1 -0
- package/dist/cjs/shared/modals/interfaces.d.ts +5 -5
- package/dist/cjs/shared/navigations/NavigationTab/interface.d.ts +1 -1
- package/dist/cjs/shared/navigations/NavigationTop/components/interface.d.ts +1 -0
- package/dist/cjs/shared/navigations/constants/insuranceSteps.d.ts +65 -5
- package/dist/cjs/shared/navigations/interfaces.d.ts +11 -5
- package/dist/cjs/shared/sections/quotes/interfaces.d.ts +2 -1
- package/dist/esm/index.js +3207 -2061
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/init/AppModal/interfaces.d.ts +1 -1
- package/dist/esm/init/AppTitle/AppTitle.d.ts +6 -0
- package/dist/esm/init/AppTitle/MetaFields.d.ts +5 -0
- package/dist/esm/init/AppTitle/index.d.ts +1 -0
- package/dist/esm/init/helper.d.ts +1 -1
- package/dist/esm/init/index.d.ts +0 -1
- package/dist/esm/insurances/car/pages/discount/helpers.d.ts +14 -0
- package/dist/esm/insurances/car/pages/driver/helpers.d.ts +5 -0
- package/dist/esm/insurances/car/pages/index.d.ts +0 -1
- package/dist/esm/insurances/car/pages/interfaces.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/PageQuote.d.ts +1 -1
- package/dist/esm/insurances/car/pages/quote/index.d.ts +1 -1
- package/dist/esm/insurances/helpers.d.ts +2 -2
- package/dist/esm/insurances/home/pages/index.d.ts +1 -0
- package/dist/esm/insurances/home/pages/quote/PageQuote.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/index.d.ts +1 -0
- package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/esm/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/esm/insurances/home/pages/quote/sections/index.d.ts +2 -0
- package/dist/esm/insurances/index.d.ts +1 -0
- package/dist/esm/insurances/life/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/applicant/PageApplicant.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +3 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/index.d.ts +2 -0
- package/dist/esm/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +7 -0
- package/dist/esm/insurances/life/pages/applicant/sections/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/coverage/PageCoverage.d.ts +2 -0
- package/dist/esm/insurances/life/pages/coverage/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +2 -0
- package/dist/esm/insurances/life/pages/coverage/sections/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/helpers.d.ts +4 -0
- package/dist/esm/insurances/life/pages/index.d.ts +3 -0
- package/dist/esm/insurances/life/pages/quote/PageQuote.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/index.d.ts +1 -0
- package/dist/esm/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/sections/SplashScreen.d.ts +2 -0
- package/dist/esm/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
- package/dist/esm/insurances/life/pages/quote/sections/index.d.ts +1 -0
- package/dist/esm/shared/boxes/Container/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/DateSelectFormBox/interface.d.ts +2 -2
- package/dist/esm/shared/boxes/InputFormBox/interface.d.ts +3 -2
- package/dist/esm/shared/boxes/LabelFormBox/interface.d.ts +3 -2
- package/dist/esm/shared/boxes/SelectFormBox/interface.d.ts +1 -1
- package/dist/esm/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
- package/dist/esm/shared/headers/interfaces.d.ts +3 -3
- package/dist/esm/shared/modals/ModalAddress/ModalAddress.d.ts +2 -0
- package/dist/esm/shared/modals/ModalAddress/index.d.ts +1 -0
- package/dist/esm/shared/modals/ModalPostal/ModalPostal.d.ts +1 -2
- package/dist/esm/shared/modals/index.d.ts +1 -0
- package/dist/esm/shared/modals/interfaces.d.ts +5 -5
- package/dist/esm/shared/navigations/NavigationTab/interface.d.ts +1 -1
- package/dist/esm/shared/navigations/NavigationTop/components/interface.d.ts +1 -0
- package/dist/esm/shared/navigations/constants/insuranceSteps.d.ts +65 -5
- package/dist/esm/shared/navigations/interfaces.d.ts +11 -5
- package/dist/esm/shared/sections/quotes/interfaces.d.ts +2 -1
- package/dist/index.d.ts +113 -51
- package/package.json +8 -5
- package/dist/images/logotype-mychoice-primary.png +0 -0
- package/dist/images/logotype-thebig-primary.png +0 -0
- package/dist/images/pigLoader.mp4 +0 -0
- package/dist/images/powered-by-mychoice.png +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AppTitle } from './AppTitle';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
export declare const getInsuranceType: () => InsuranceTypes
|
|
2
|
+
export declare const getInsuranceType: () => InsuranceTypes;
|
package/dist/cjs/init/index.d.ts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
import { SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
|
+
import { ProvinceHookInterface } from '@mychoice/mychoice-sdk-store';
|
|
2
3
|
export declare const getVehicleYearRange: () => SelectOptionInterface[];
|
|
4
|
+
export declare const getDynamicLicenceBoxProps: ({ isAlbertaProvince, isOntarioProvince, isNewfoundlandProvince, isNovaScotiaProvince, isNewBrunswickProvince, }: ProvinceHookInterface) => {
|
|
5
|
+
placeholder: string;
|
|
6
|
+
maxLength: number;
|
|
7
|
+
manipulateInput: (value: string) => string;
|
|
8
|
+
} | {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
maxLength: number;
|
|
11
|
+
manipulateInput?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
placeholder?: undefined;
|
|
14
|
+
maxLength?: undefined;
|
|
15
|
+
manipulateInput?: undefined;
|
|
16
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SelectOptionGroupInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
|
+
/**
|
|
3
|
+
* Filter out G1/G2 options from "Serious" section for trafficTicketsGroupOptions
|
|
4
|
+
*/
|
|
5
|
+
export declare const getTrafficTicketsGroupOptionsWithoutG1G2: () => SelectOptionGroupInterface[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SdkFC } from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PageCarQuote: SdkFC;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { PageCarQuote } from './PageQuote';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
export declare const getSelectedOption: (options: SelectOptionInterface[],
|
|
3
|
-
export declare const getErrorMessage: (value: number | string, inValidation?: boolean, message?: string) => string;
|
|
2
|
+
export declare const getSelectedOption: (options: SelectOptionInterface[], val: string | number | boolean | undefined | null) => import("@mychoice/mychoice-sdk-components").InputValueType;
|
|
3
|
+
export declare const getErrorMessage: (value: number | string | boolean | null | undefined, inValidation?: boolean, message?: string) => string;
|
|
4
4
|
export declare const getDateErrorMessage: (values: string[], inValidation?: boolean) => "" | "This field is required." | "These fields are required.";
|
|
5
5
|
export declare const formatPhoneObject: (phone: string) => {
|
|
6
6
|
number: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageHomeQuote } from './PageQuote';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pages';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageLifeApplicant } from './PageApplicant';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SectionApplicant } from './SectionApplicant';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageCoverage } from './PageCoverage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SectionCoverage } from './SectionCoverage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageLifeQuote } from './PageQuote';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SectionQuoteEdit } from './SectionQuoteEdit';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SdkElement } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { LabelFormBoxProps } from '../LabelFormBox/interface';
|
|
3
|
-
export
|
|
3
|
+
export type ContainerProps = LabelFormBoxProps & {
|
|
4
4
|
errorMessage?: string;
|
|
5
5
|
hintMessage?: string;
|
|
6
6
|
children?: SdkElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTypes, DefaultInputProps, OnChangeEventInterface, SelectOptionGroupInterface, SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { LabelFormBoxProps } from '../LabelFormBox/interface';
|
|
3
|
-
export
|
|
3
|
+
export type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
|
|
4
4
|
name: string;
|
|
5
5
|
title: string;
|
|
6
6
|
options?: SelectOptionInterface[];
|
|
@@ -10,7 +10,7 @@ export declare type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps &
|
|
|
10
10
|
hintMessage?: string;
|
|
11
11
|
autoSelectIfValueIsOutOfOptions?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type DateSelectFormBoxProps = SelectFormBoxProps & {
|
|
14
14
|
onDateChange: (dateType: DateTypes) => (option: OnChangeEventInterface) => void;
|
|
15
15
|
isDay?: boolean;
|
|
16
16
|
isMonth?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultInputProps, InputTypes, OnChangeEventInterface, ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
export
|
|
2
|
+
export type InputFormBoxProps = DefaultInputProps & {
|
|
3
3
|
name: string;
|
|
4
4
|
title: string;
|
|
5
5
|
subTitle?: string;
|
|
@@ -8,7 +8,8 @@ export declare type InputFormBoxProps = DefaultInputProps & {
|
|
|
8
8
|
errorMessage?: string;
|
|
9
9
|
hintMessage?: string;
|
|
10
10
|
type?: InputTypes;
|
|
11
|
+
manipulateInput?: (value: string) => string;
|
|
11
12
|
};
|
|
12
|
-
export
|
|
13
|
+
export type InputFormEmailBoxProps = InputFormBoxProps & {
|
|
13
14
|
validationStatus?: ValidationStatusTypes;
|
|
14
15
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { SdkElement } from '@mychoice/mychoice-sdk-components';
|
|
2
|
+
export type LabelFormBoxProps = {
|
|
2
3
|
className?: string;
|
|
3
4
|
title?: string;
|
|
4
5
|
subTitle?: string;
|
|
5
|
-
description?: string;
|
|
6
|
+
description?: string | SdkElement;
|
|
6
7
|
name?: string;
|
|
7
8
|
isRemovable?: boolean;
|
|
8
9
|
onIconClick?: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultInputProps, OnChangeEventInterface, SelectOptionGroupInterface, SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { LabelFormBoxProps } from '../LabelFormBox/interface';
|
|
3
|
-
export
|
|
3
|
+
export type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
|
|
4
4
|
name: string;
|
|
5
5
|
title: string;
|
|
6
6
|
options?: SelectOptionInterface[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectOptionInterface, OnChangeEventInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { LabelFormBoxProps } from '../LabelFormBox/interface';
|
|
3
|
-
export
|
|
3
|
+
export type SwitchButtonBoxProps = LabelFormBoxProps & {
|
|
4
4
|
name: string;
|
|
5
5
|
defaultValue: string;
|
|
6
6
|
items: SelectOptionInterface[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AppTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
export
|
|
2
|
+
export type HeaderLogoProps = {
|
|
3
3
|
className?: string;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type HeaderTheBigProps = HeaderLogoProps & {
|
|
6
6
|
textBack?: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type AppNameTypes = AppTypes.MyChoice | AppTypes.Partner | AppTypes.TheBig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ModalAddress } from './ModalAddress';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ModalConfirm } from './ModalConfirm';
|
|
2
2
|
export { ModalMessage } from './ModalMessage';
|
|
3
3
|
export { ModalPostal } from './ModalPostal';
|
|
4
|
+
export { ModalAddress } from './ModalAddress';
|
|
4
5
|
export { ModalFinale } from './ModalFinale';
|
|
5
6
|
export { ModalQuoteRequest } from './ModalQuoteRequest';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { OnChangeEventInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { FormEvent } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type BaseModalProps = {
|
|
4
4
|
title?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type ConfirmModalTypes = BaseModalProps & {
|
|
8
8
|
cancelButtonLabel?: string;
|
|
9
9
|
approveButtonLabel?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type MessageModalProps = BaseModalProps;
|
|
12
|
+
export type InputPostalProps = BaseModalProps & {
|
|
13
13
|
defaultValue?: string;
|
|
14
14
|
error?: string;
|
|
15
15
|
onChange?: (option: OnChangeEventInterface) => void;
|
|
16
16
|
onSubmit?: (event: FormEvent) => void;
|
|
17
17
|
loading?: boolean;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type QuoteRequestModalProps = BaseModalProps & {
|
|
20
20
|
phoneNumber?: string;
|
|
21
21
|
};
|
|
@@ -1,17 +1,77 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const formSteps: {
|
|
3
|
-
car: {
|
|
2
|
+
car: ({
|
|
4
3
|
key: number;
|
|
5
4
|
path: string;
|
|
6
5
|
name: string;
|
|
7
6
|
title: string;
|
|
7
|
+
mychoiceTitle: string;
|
|
8
8
|
icon: import("react").ReactElement<any, any> | null;
|
|
9
|
-
}
|
|
10
|
-
home: {
|
|
9
|
+
} | {
|
|
11
10
|
key: number;
|
|
12
11
|
path: string;
|
|
13
12
|
name: string;
|
|
14
13
|
title: string;
|
|
15
14
|
icon: import("react").ReactElement<any, any> | null;
|
|
16
|
-
|
|
15
|
+
mychoiceTitle?: undefined;
|
|
16
|
+
})[];
|
|
17
|
+
home: ({
|
|
18
|
+
key: number;
|
|
19
|
+
path: string;
|
|
20
|
+
name: string;
|
|
21
|
+
title: string;
|
|
22
|
+
mychoiceTitle: string;
|
|
23
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
24
|
+
} | {
|
|
25
|
+
key: number;
|
|
26
|
+
path: string;
|
|
27
|
+
name: string;
|
|
28
|
+
title: string;
|
|
29
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
30
|
+
mychoiceTitle?: undefined;
|
|
31
|
+
})[];
|
|
32
|
+
condo: ({
|
|
33
|
+
key: number;
|
|
34
|
+
path: string;
|
|
35
|
+
name: string;
|
|
36
|
+
title: string;
|
|
37
|
+
mychoiceTitle: string;
|
|
38
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
39
|
+
} | {
|
|
40
|
+
key: number;
|
|
41
|
+
path: string;
|
|
42
|
+
name: string;
|
|
43
|
+
title: string;
|
|
44
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
45
|
+
mychoiceTitle?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
tenant: ({
|
|
48
|
+
key: number;
|
|
49
|
+
path: string;
|
|
50
|
+
name: string;
|
|
51
|
+
title: string;
|
|
52
|
+
mychoiceTitle: string;
|
|
53
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
54
|
+
} | {
|
|
55
|
+
key: number;
|
|
56
|
+
path: string;
|
|
57
|
+
name: string;
|
|
58
|
+
title: string;
|
|
59
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
60
|
+
mychoiceTitle?: undefined;
|
|
61
|
+
})[];
|
|
62
|
+
life: ({
|
|
63
|
+
key: number;
|
|
64
|
+
path: string;
|
|
65
|
+
name: string;
|
|
66
|
+
title: string;
|
|
67
|
+
mychoiceTitle: string;
|
|
68
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
69
|
+
} | {
|
|
70
|
+
key: number;
|
|
71
|
+
path: string;
|
|
72
|
+
name: string;
|
|
73
|
+
title: string;
|
|
74
|
+
icon: import("react").ReactElement<any, any> | null;
|
|
75
|
+
mychoiceTitle?: undefined;
|
|
76
|
+
})[];
|
|
17
77
|
};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { NavigationItemInterface, ValidationHookInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
export
|
|
2
|
+
export type StepsProps = {
|
|
3
3
|
partnerId?: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
isMobile?: boolean;
|
|
6
6
|
activeIndex?: number;
|
|
7
7
|
formSteps: NavigationItemInterface[];
|
|
8
8
|
validationHooks: ValidationHookInterface[];
|
|
9
|
+
estimatedTime?: number;
|
|
10
|
+
propertyIsCompleted?: boolean;
|
|
9
11
|
};
|
|
10
|
-
export
|
|
12
|
+
export type PostalCodeDataProps = {
|
|
11
13
|
className?: string;
|
|
12
14
|
title?: string;
|
|
13
15
|
postalCode?: string;
|
|
14
16
|
};
|
|
15
|
-
export
|
|
17
|
+
export type ButtonBoxProps = {
|
|
16
18
|
isMobile?: boolean;
|
|
17
19
|
activeIndex?: number;
|
|
18
20
|
onBackClick?: () => void;
|
|
@@ -20,9 +22,12 @@ export declare type ButtonBoxProps = {
|
|
|
20
22
|
clearForm?: () => void;
|
|
21
23
|
formSteps: NavigationItemInterface[];
|
|
22
24
|
validationHooks: ValidationHookInterface[];
|
|
25
|
+
propertyIsCompleted?: boolean;
|
|
23
26
|
};
|
|
24
|
-
export
|
|
25
|
-
|
|
27
|
+
export type NavigationTopProps = PostalCodeDataProps & ButtonBoxProps & {
|
|
28
|
+
estimatedTime?: number;
|
|
29
|
+
};
|
|
30
|
+
export type NavigationBottomProps = {
|
|
26
31
|
className?: string;
|
|
27
32
|
activeIndex?: number;
|
|
28
33
|
createItem?: () => void;
|
|
@@ -31,4 +36,5 @@ export declare type NavigationBottomProps = {
|
|
|
31
36
|
formSteps: NavigationItemInterface[];
|
|
32
37
|
maxItemCount?: number;
|
|
33
38
|
itemCount?: number;
|
|
39
|
+
specialCallback?: () => void;
|
|
34
40
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OfferDetailInfoProps, OfferDetailTitleProps, OperationHoursInfoProps, PriceInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { PhoneObjectInterface } from '../../../insurances';
|
|
3
|
-
export
|
|
3
|
+
export type OfferSectionProps = {
|
|
4
4
|
phoneNumber?: PhoneObjectInterface;
|
|
5
5
|
offerCompany?: OfferDetailTitleProps & OfferDetailInfoProps;
|
|
6
6
|
brokerCompany?: OfferDetailTitleProps & OfferDetailInfoProps;
|
|
@@ -8,4 +8,5 @@ export declare type OfferSectionProps = {
|
|
|
8
8
|
isBestOffer?: boolean;
|
|
9
9
|
operationHours?: OperationHoursInfoProps;
|
|
10
10
|
redirectUrl?: string;
|
|
11
|
+
fulfillmentUrl?: string;
|
|
11
12
|
};
|