@mychoice/mychoice-sdk-store 2.2.23 → 2.2.25

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.
Files changed (46) hide show
  1. package/dist/cjs/handlers/dataHandlers/QuoterPhoneDataHandler/QuoterPhoneDataHandler.d.ts +4 -0
  2. package/dist/cjs/handlers/dataHandlers/QuoterPhoneDataHandler/index.d.ts +1 -0
  3. package/dist/cjs/handlers/dataHandlers/QuoterPhoneDataHandler/interfaces.d.ts +4 -0
  4. package/dist/cjs/handlers/dataHandlers/index.d.ts +1 -0
  5. package/dist/cjs/index.js +486 -69
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/states/reducers/states/formStates/FormCarState/DiscountState/actions.d.ts +2 -0
  8. package/dist/cjs/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts +19 -0
  9. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverInsuranceState/actions.d.ts +5 -1
  10. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverInsuranceState/interfaces.d.ts +24 -0
  11. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverLicenceState/actions.d.ts +2 -0
  12. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverLicenceState/interfaces.d.ts +12 -0
  13. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverTicketState/actions.d.ts +1 -0
  14. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverTicketState/interfaces.d.ts +7 -0
  15. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/initialState.d.ts +1 -0
  16. package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/interfaces.d.ts +9 -0
  17. package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/actions.d.ts +1 -0
  18. package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts +8 -1
  19. package/dist/cjs/states/reducers/states/formStates/FormHomeState/DiscountState/actions.d.ts +1 -0
  20. package/dist/cjs/states/reducers/states/formStates/FormHomeState/DiscountState/interfaces.d.ts +8 -0
  21. package/dist/cjs/states/reducers/states/formStates/FormLifeState/ApplicantState/actions.d.ts +1 -0
  22. package/dist/cjs/states/reducers/states/formStates/FormLifeState/ApplicantState/interfaces.d.ts +8 -0
  23. package/dist/esm/handlers/dataHandlers/QuoterPhoneDataHandler/QuoterPhoneDataHandler.d.ts +4 -0
  24. package/dist/esm/handlers/dataHandlers/QuoterPhoneDataHandler/index.d.ts +1 -0
  25. package/dist/esm/handlers/dataHandlers/QuoterPhoneDataHandler/interfaces.d.ts +4 -0
  26. package/dist/esm/handlers/dataHandlers/index.d.ts +1 -0
  27. package/dist/esm/index.js +485 -71
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/states/reducers/states/formStates/FormCarState/DiscountState/actions.d.ts +2 -0
  30. package/dist/esm/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts +19 -0
  31. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverInsuranceState/actions.d.ts +5 -1
  32. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverInsuranceState/interfaces.d.ts +24 -0
  33. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverLicenceState/actions.d.ts +2 -0
  34. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverLicenceState/interfaces.d.ts +12 -0
  35. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverTicketState/actions.d.ts +1 -0
  36. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverTicketState/interfaces.d.ts +7 -0
  37. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/initialState.d.ts +1 -0
  38. package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/interfaces.d.ts +9 -0
  39. package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/actions.d.ts +1 -0
  40. package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts +8 -1
  41. package/dist/esm/states/reducers/states/formStates/FormHomeState/DiscountState/actions.d.ts +1 -0
  42. package/dist/esm/states/reducers/states/formStates/FormHomeState/DiscountState/interfaces.d.ts +8 -0
  43. package/dist/esm/states/reducers/states/formStates/FormLifeState/ApplicantState/actions.d.ts +1 -0
  44. package/dist/esm/states/reducers/states/formStates/FormLifeState/ApplicantState/interfaces.d.ts +8 -0
  45. package/dist/index.d.ts +118 -4
  46. package/package.json +3 -3
@@ -10,10 +10,12 @@ export declare enum StoreFormCarDiscountActionTypes {
10
10
  FormCarDiscountQuoterFirstNameSet = "FormCarDiscountQuoterFirstNameSet",
11
11
  FormCarDiscountQuoterLastNameSet = "FormCarDiscountQuoterLastNameSet",
12
12
  FormCarDiscountQuoterPhoneSet = "FormCarDiscountQuoterPhoneSet",
13
+ FormCarDiscountQuoterPhoneStatusSet = "FormCarDiscountQuoterPhoneStatusSet",
13
14
  FormCarDiscountVehlinkAdd = "FormCarDiscountVehlinkAdd",
14
15
  FormCarDiscountVehlinkSelect = "FormCarDiscountVehlinkSelect",
15
16
  FormCarDiscountVehlinkByVehicleDelete = "FormCarDiscountVehlinkByVehicleDelete",
16
17
  FormCarDiscountVehlinkByDriverDelete = "FormCarDiscountVehlinkByDriverDelete",
18
+ FormCarDiscountOccVehlinkSelect = "FormCarDiscountOccVehlinkSelect",
17
19
  FormCarDiscountQuoterEmailStatusSet = "FormCarDiscountQuoterEmailStatusSet",
18
20
  FormCarDiscountValidate = "FormCarDiscountValidate",
19
21
  FormCarDiscountValidateSet = "FormCarDiscountValidateSet",
@@ -5,6 +5,7 @@ export interface DiscountQuoterInfoInterface {
5
5
  firstName: string;
6
6
  lastName: string;
7
7
  phone: string;
8
+ phoneStatus: ValidationStatusTypes;
8
9
  recalculate: boolean;
9
10
  accidentBenefitsChanged?: boolean;
10
11
  utmSource?: string;
@@ -38,6 +39,10 @@ export interface FormCarDiscountStateInterface extends StateBaseInterface {
38
39
  policyStartYear?: string;
39
40
  quoterInfo: DiscountQuoterInfoInterface;
40
41
  vehlinks: DiscountVehLinkInterface[];
42
+ occVehlinks: {
43
+ driverIndex: number;
44
+ vehicleIndex: number;
45
+ }[];
41
46
  }
42
47
  export type FormCarDiscountStateActionType = {
43
48
  type: StoreFormCarDiscountActionTypes.FormCarDiscountValidate;
@@ -78,6 +83,13 @@ export type FormCarDiscountStateActionType = {
78
83
  driverIndex: number;
79
84
  };
80
85
  localIndex?: string;
86
+ } | {
87
+ type: StoreFormCarDiscountActionTypes.FormCarDiscountOccVehlinkSelect;
88
+ payload: {
89
+ driverIndex: number;
90
+ vehicleIndex: number;
91
+ };
92
+ localIndex?: string;
81
93
  } | {
82
94
  type: StoreFormCarDiscountActionTypes.FormCarDiscountMultiplePoliciesSelect;
83
95
  payload: {
@@ -114,6 +126,13 @@ export type FormCarDiscountStateActionType = {
114
126
  phone: string;
115
127
  };
116
128
  localIndex?: string;
129
+ } | {
130
+ type: StoreFormCarDiscountActionTypes.FormCarDiscountQuoterPhoneStatusSet;
131
+ payload: {
132
+ phone: string;
133
+ phoneStatus: ValidationStatusTypes;
134
+ };
135
+ localIndex?: string;
117
136
  } | {
118
137
  type: StoreFormCarDiscountActionTypes.FormCarDiscountQuoterBrokerInfoSet;
119
138
  payload: {
@@ -3,5 +3,9 @@ export declare enum StoreFormCarDriverInsuranceActionTypes {
3
3
  FormCarDriverListedYearSelect = "FormCarDriverListedYearSelect",
4
4
  FormCarDriverListedMonthSelect = "FormCarDriverListedMonthSelect",
5
5
  FormCarDriverInsuredSelect = "FormCarDriverInsuredSelect",
6
- FormCarDriverInsuredDateSelect = "FormCarDriverInsuredDateSelect"
6
+ FormCarDriverInsuredDateSelect = "FormCarDriverInsuredDateSelect",
7
+ FormCarDriverNotCurrentlyInsuredSelect = "FormCarDriverNotCurrentlyInsuredSelect",
8
+ FormCarDriverLastPolicyEndYearSelect = "FormCarDriverLastPolicyEndYearSelect",
9
+ FormCarDriverLastPolicyEndMonthSelect = "FormCarDriverLastPolicyEndMonthSelect",
10
+ FormCarDriverLastPolicyCancelReasonSelect = "FormCarDriverLastPolicyCancelReasonSelect"
7
11
  }
@@ -30,6 +30,30 @@ export type FormCarDriverInsuranceStateActionType = {
30
30
  insuredDate: string;
31
31
  };
32
32
  localIndex?: string;
33
+ } | {
34
+ type: StoreFormCarDriverInsuranceActionTypes.FormCarDriverNotCurrentlyInsuredSelect;
35
+ payload: {
36
+ notCurrentlyInsured: boolean;
37
+ };
38
+ localIndex?: string;
39
+ } | {
40
+ type: StoreFormCarDriverInsuranceActionTypes.FormCarDriverLastPolicyEndYearSelect;
41
+ payload: {
42
+ lastPolicyEndYear: string;
43
+ };
44
+ localIndex?: string;
45
+ } | {
46
+ type: StoreFormCarDriverInsuranceActionTypes.FormCarDriverLastPolicyEndMonthSelect;
47
+ payload: {
48
+ lastPolicyEndMonth: string;
49
+ };
50
+ localIndex?: string;
51
+ } | {
52
+ type: StoreFormCarDriverInsuranceActionTypes.FormCarDriverLastPolicyCancelReasonSelect;
53
+ payload: {
54
+ lastPolicyCancelReason: string;
55
+ };
56
+ localIndex?: string;
33
57
  };
34
58
  export type FormCarDriverInsuranceStateReducerInterface = (state: FormCarDriverStateInterface, action: FormCarDriverInsuranceStateActionType) => FormCarDriverStateInterface;
35
59
  export interface FormCarDriverInsuranceHookInterface {
@@ -9,6 +9,8 @@ export declare enum StoreFormCarDriverLicenceActionTypes {
9
9
  FormCarDriverG1LicenceMaxSelect = "FormCarDriverG1LicenceMaxSelect",
10
10
  FormCarDriverTrainingSelect = "FormCarDriverTrainingSelect",
11
11
  FormCarDriverPreviousLicenceSelect = "FormCarDriverPreviousLicenceSelect",
12
+ FormCarDriverReceivedG2Select = "FormCarDriverReceivedG2Select",
13
+ FormCarDriverReceivedGSelect = "FormCarDriverReceivedGSelect",
12
14
  FormCarDriverLicenceYearSelect = "FormCarDriverLicenceYearSelect",
13
15
  FormCarDriverLicenceMonthSelect = "FormCarDriverLicenceMonthSelect"
14
16
  }
@@ -36,6 +36,18 @@ export type FormCarDriverLicenceStateActionType = {
36
36
  previousLicence: boolean;
37
37
  };
38
38
  localIndex?: string;
39
+ } | {
40
+ type: StoreFormCarDriverLicenceActionTypes.FormCarDriverReceivedG2Select;
41
+ payload: {
42
+ receivedG2: boolean;
43
+ };
44
+ localIndex?: string;
45
+ } | {
46
+ type: StoreFormCarDriverLicenceActionTypes.FormCarDriverReceivedGSelect;
47
+ payload: {
48
+ receivedG: boolean;
49
+ };
50
+ localIndex?: string;
39
51
  } | {
40
52
  type: StoreFormCarDriverLicenceActionTypes.FormCarDriverGLicenceMinSelect;
41
53
  payload: {
@@ -3,6 +3,7 @@ export declare enum StoreFormCarDriverTicketActionTypes {
3
3
  FormCarDriverTrafficTicketReasonSelect = "FormCarDriverTrafficTicketReasonSelect",
4
4
  FormCarDriverTrafficTicketYearSelect = "FormCarDriverTrafficTicketYearSelect",
5
5
  FormCarDriverTrafficTicketMonthSelect = "FormCarDriverTrafficTicketMonthSelect",
6
+ FormCarDriverTrafficTicketSpeedSelect = "FormCarDriverTrafficTicketSpeedSelect",
6
7
  FormCarDriverTrafficTicketAdd = "FormCarDriverTrafficTicketAdd",
7
8
  FormCarDriverTrafficTicketDelete = "FormCarDriverTrafficTicketDelete"
8
9
  }
@@ -37,6 +37,13 @@ export type FormCarDriverTicketStateActionType = {
37
37
  index: number;
38
38
  };
39
39
  localIndex?: string;
40
+ } | {
41
+ type: StoreFormCarDriverTicketActionTypes.FormCarDriverTrafficTicketSpeedSelect;
42
+ payload: {
43
+ speed: number;
44
+ index: number;
45
+ };
46
+ localIndex?: string;
40
47
  };
41
48
  export type FormCarDriverTicketStateReducerInterface = (state: FormCarDriverStateInterface, action: FormCarDriverTicketStateActionType) => FormCarDriverStateInterface;
42
49
  export interface FormCarDriverTicketHookInterface {
@@ -36,6 +36,7 @@ export declare const DriverListInitialStates: {
36
36
  ticketDate: string;
37
37
  ticketYear?: string | undefined;
38
38
  ticketMonth?: string | undefined;
39
+ speed?: number | undefined;
39
40
  };
40
41
  };
41
42
  export declare const driverItemInitialState: DriverItemInterface;
@@ -15,6 +15,9 @@ export interface DriverLicenceInterface {
15
15
  gLicenceMonth?: string;
16
16
  passedDriverTraining?: boolean;
17
17
  previousLicence?: boolean;
18
+ outsideExp?: boolean;
19
+ receivedG2?: boolean;
20
+ receivedG?: boolean;
18
21
  }
19
22
  export interface DriverCancellationItemInterface {
20
23
  reason: string;
@@ -47,6 +50,7 @@ export interface TicketItemInterface {
47
50
  ticketDate: string;
48
51
  ticketYear?: string;
49
52
  ticketMonth?: string;
53
+ speed?: number;
50
54
  }
51
55
  export type DriverListItemType = DriverCancellationItemInterface | SuspensionItemInterface | AccidentItemInterface | TicketItemInterface;
52
56
  export interface DriverMinMaxDates {
@@ -82,6 +86,11 @@ export interface DriverItemInterface {
82
86
  insured: boolean;
83
87
  insuredDate?: string;
84
88
  insuredYear?: string;
89
+ notCurrentlyInsured?: boolean;
90
+ lastPolicyEndYear?: string;
91
+ lastPolicyEndMonth?: string;
92
+ lastPolicyEndDate?: string;
93
+ lastPolicyCancelReason?: string;
85
94
  insuranceCancellation: boolean;
86
95
  insuranceCancellationList?: DriverCancellationItemInterface[];
87
96
  licenceSuspension: boolean;
@@ -19,6 +19,7 @@ export declare enum StoreFormCarVehicleActionTypes {
19
19
  FormCarParkingLocationSelect = "FormCarParkingLocationSelect",
20
20
  FormCarDailyDistanceSelect = "FormCarDailyDistanceSelect",
21
21
  FormCarBusinessDistanceSelect = "FormCarBusinessDistanceSelect",
22
+ FormCarBusinessUsePercentSelect = "FormCarBusinessUsePercentSelect",
22
23
  FormCarYearlyDistanceSelect = "FormCarYearlyDistanceSelect",
23
24
  FormCarComprehensiveCoverageSelect = "FormCarComprehensiveCoverageSelect",
24
25
  FormCarComprehensiveDeductibleSelect = "FormCarComprehensiveDeductibleSelect",
@@ -42,8 +42,9 @@ export interface VehicleItemInterface {
42
42
  winterTires: boolean;
43
43
  parkingLocation: string;
44
44
  primaryUse: string;
45
- distanceDaily: number;
45
+ distanceDaily: number | undefined;
46
46
  distanceBusiness?: number;
47
+ businessUsePercent?: string;
47
48
  distanceYearly: number;
48
49
  comprehensive: VehicleComprehensiveInterface;
49
50
  collision: VehicleCollisionInterface;
@@ -182,6 +183,12 @@ export type FormCarVehicleStateActionType = {
182
183
  distanceBusiness: string;
183
184
  };
184
185
  localIndex?: string;
186
+ } | {
187
+ type: StoreFormCarVehicleActionTypes.FormCarBusinessUsePercentSelect;
188
+ payload: {
189
+ businessUsePercent: string;
190
+ };
191
+ localIndex?: string;
185
192
  } | {
186
193
  type: StoreFormCarVehicleActionTypes.FormCarYearlyDistanceSelect;
187
194
  payload: {
@@ -13,6 +13,7 @@ export declare enum StoreFormHomeDiscountActionTypes {
13
13
  FormHomeQuoterFirstNameSet = "FormHomeQuoterFirstNameSet",
14
14
  FormHomeQuoterLastNameSet = "FormHomeQuoterLastNameSet",
15
15
  FormHomeQuoterPhoneSet = "FormHomeQuoterPhoneSet",
16
+ FormHomeQuoterPhoneStatusSet = "FormHomeQuoterPhoneStatusSet",
16
17
  FormHomeUtmCampaignSet = "FormHomeUtmCampaignSet",
17
18
  FormHomeUtmSourceSet = "FormHomeUtmSourceSet",
18
19
  FormHomeUtmProducerSet = "FormHomeUtmProducerSet",
@@ -5,6 +5,7 @@ export interface QuoterInfoInterface {
5
5
  firstName: string;
6
6
  lastName: string;
7
7
  phone: string;
8
+ phoneStatus: ValidationStatusTypes;
8
9
  recalculate: boolean;
9
10
  utmSource?: string;
10
11
  utmCampaign?: string;
@@ -74,6 +75,13 @@ export type FormHomeDiscountStateActionType = {
74
75
  phone: string;
75
76
  };
76
77
  localIndex?: string;
78
+ } | {
79
+ type: StoreFormHomeDiscountActionTypes.FormHomeQuoterPhoneStatusSet;
80
+ payload: {
81
+ phone: string;
82
+ phoneStatus: ValidationStatusTypes;
83
+ };
84
+ localIndex?: string;
77
85
  } | {
78
86
  type: StoreFormHomeDiscountActionTypes.FormHomeUtmCampaignSet;
79
87
  payload: {
@@ -13,6 +13,7 @@ export declare enum StoreFormLifeApplicantActionTypes {
13
13
  FormLifeQuoterFirstNameSet = "FormLifeQuoterFirstNameSet",
14
14
  FormLifeQuoterLastNameSet = "FormLifeQuoterLastNameSet",
15
15
  FormLifeQuoterPhoneSet = "FormLifeQuoterPhoneSet",
16
+ FormLifeQuoterPhoneStatusSet = "FormLifeQuoterPhoneStatusSet",
16
17
  FormLifeUtmCampaignSet = "FormLifeUtmCampaignSet",
17
18
  FormLifeUtmSourceSet = "FormLifeUtmSourceSet",
18
19
  FormLifeUtmProducerSet = "FormLifeUtmProducerSet"
@@ -15,6 +15,7 @@ export interface FormLifeApplicantStateInterface extends StateBaseInterface {
15
15
  firstName: string;
16
16
  lastName: string;
17
17
  phone: string;
18
+ phoneStatus: ValidationStatusTypes;
18
19
  recalculate: boolean;
19
20
  utmSource?: string;
20
21
  utmCampaign?: string;
@@ -91,6 +92,13 @@ export type FormLifeApplicantStateActionType = {
91
92
  phone: string;
92
93
  };
93
94
  localIndex?: string;
95
+ } | {
96
+ type: StoreFormLifeApplicantActionTypes.FormLifeQuoterPhoneStatusSet;
97
+ payload: {
98
+ phone: string;
99
+ phoneStatus: ValidationStatusTypes;
100
+ };
101
+ localIndex?: string;
94
102
  } | {
95
103
  type: StoreFormLifeApplicantActionTypes.FormLifeUtmCampaignSet;
96
104
  payload: {
@@ -0,0 +1,4 @@
1
+ import { UseHandlerQuoterPhoneInterface } from './interfaces';
2
+ export declare const useHandlerCarQuoterPhone: () => UseHandlerQuoterPhoneInterface;
3
+ export declare const useHandlerHomeQuoterPhone: () => UseHandlerQuoterPhoneInterface;
4
+ export declare const useHandlerLifeQuoterPhone: () => UseHandlerQuoterPhoneInterface;
@@ -0,0 +1 @@
1
+ export { useHandlerCarQuoterPhone, useHandlerHomeQuoterPhone, useHandlerLifeQuoterPhone } from './QuoterPhoneDataHandler';
@@ -0,0 +1,4 @@
1
+ import { DataHandlerRequestState } from '../shared';
2
+ export type UseHandlerQuoterPhoneInterface = DataHandlerRequestState & {
3
+ validatePhone: (phone: string) => void;
4
+ };
@@ -4,4 +4,5 @@ export * from './PartnerDataHandler';
4
4
  export * from './PostalDataHandler';
5
5
  export * from './VehicleDataHandlers';
6
6
  export * from './QuoterEmailDataHandler';
7
+ export * from './QuoterPhoneDataHandler';
7
8
  export * from './QuoteDataHandler';