@mychoice/mychoice-sdk-store 2.2.12 → 2.2.17
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 +82 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/api/carInsuranceApi.interfaces.d.ts +235 -0
- package/dist/cjs/services/api/index.d.ts +1 -0
- package/dist/cjs/states/reducers/states/formStates/FormCarState/ConfigState/hoox.d.ts +3 -0
- package/dist/cjs/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts +1 -0
- package/dist/cjs/states/reducers/states/formStates/FormCarState/QuoteState/interfaces.d.ts +3 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/actions.d.ts +5 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/helper.d.ts +2 -2
- package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/initialState.d.ts +5 -0
- package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts +28 -0
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/QuoteState/interfaces.d.ts +3 -1
- package/dist/cjs/states/reducers/states/formStates/FormLifeState/QuoteState/interfaces.d.ts +1 -0
- package/dist/esm/index.js +82 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/services/api/carInsuranceApi.interfaces.d.ts +235 -0
- package/dist/esm/services/api/index.d.ts +1 -0
- package/dist/esm/states/reducers/states/formStates/FormCarState/ConfigState/hoox.d.ts +3 -0
- package/dist/esm/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts +1 -0
- package/dist/esm/states/reducers/states/formStates/FormCarState/QuoteState/interfaces.d.ts +3 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/actions.d.ts +5 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/helper.d.ts +2 -2
- package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/initialState.d.ts +5 -0
- package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts +28 -0
- package/dist/esm/states/reducers/states/formStates/FormHomeState/QuoteState/interfaces.d.ts +3 -1
- package/dist/esm/states/reducers/states/formStates/FormLifeState/QuoteState/interfaces.d.ts +1 -0
- package/dist/index.d.ts +45 -4
- package/package.json +3 -3
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Car insurance API integration interfaces.
|
|
3
|
+
* Request/response contracts for all auto (car) insurance endpoints.
|
|
4
|
+
*/
|
|
5
|
+
/** GET postal/auto/?postal_code={postalCode} */
|
|
6
|
+
export interface CarPostalGetParams {
|
|
7
|
+
postal_code: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CarPostalResponse {
|
|
10
|
+
postalCode?: string;
|
|
11
|
+
city?: string;
|
|
12
|
+
locationIndex?: string;
|
|
13
|
+
provinceCode: string;
|
|
14
|
+
provinceName: string;
|
|
15
|
+
}
|
|
16
|
+
/** GET vehicle/year/{year} - response item */
|
|
17
|
+
export interface CarVehicleMakeItem {
|
|
18
|
+
make: string;
|
|
19
|
+
}
|
|
20
|
+
/** GET vehicle/year/{year}/make/{make} - response item */
|
|
21
|
+
export interface CarVehicleModelItem {
|
|
22
|
+
model: string;
|
|
23
|
+
}
|
|
24
|
+
export type CarVehicleMakeResponse = CarVehicleMakeItem[];
|
|
25
|
+
export type CarVehicleModelResponse = CarVehicleModelItem[];
|
|
26
|
+
export interface CarApiVehicleCoverage {
|
|
27
|
+
coverage: boolean;
|
|
28
|
+
deductible: number;
|
|
29
|
+
}
|
|
30
|
+
export interface CarApiVehicleLiabilityCoverage {
|
|
31
|
+
coverage: boolean;
|
|
32
|
+
limit: number;
|
|
33
|
+
}
|
|
34
|
+
export interface CarApiVehicleItem {
|
|
35
|
+
year: string | undefined;
|
|
36
|
+
make: string | undefined;
|
|
37
|
+
model: string | undefined;
|
|
38
|
+
leased: boolean;
|
|
39
|
+
purchaseDate: string;
|
|
40
|
+
winterTires: boolean;
|
|
41
|
+
parkingLocation: string;
|
|
42
|
+
primaryUse: string;
|
|
43
|
+
distanceDaily: number;
|
|
44
|
+
distanceBusiness?: number;
|
|
45
|
+
distanceYearly: number;
|
|
46
|
+
comprehensive: CarApiVehicleCoverage;
|
|
47
|
+
collision: CarApiVehicleCoverage;
|
|
48
|
+
liability: CarApiVehicleLiabilityCoverage;
|
|
49
|
+
lossofuse: CarApiVehicleLiabilityCoverage;
|
|
50
|
+
liabilityfordamage: CarApiVehicleLiabilityCoverage;
|
|
51
|
+
limitedwaiverofdepreciation: CarApiVehicleLiabilityCoverage;
|
|
52
|
+
postalCode?: string;
|
|
53
|
+
locationIndex?: string;
|
|
54
|
+
city?: string;
|
|
55
|
+
condition: string;
|
|
56
|
+
}
|
|
57
|
+
export interface CarApiDriverLicenceInfo {
|
|
58
|
+
licenceType: string;
|
|
59
|
+
firstLicenceAge: number;
|
|
60
|
+
g1LicenceDate?: string;
|
|
61
|
+
g2LicenceDate?: string;
|
|
62
|
+
gLicenceDate?: string;
|
|
63
|
+
passedDriverTraining?: boolean;
|
|
64
|
+
previousLicence?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface CarApiDriverCancellationItem {
|
|
67
|
+
reason: string;
|
|
68
|
+
startDate: string;
|
|
69
|
+
endDate: string;
|
|
70
|
+
}
|
|
71
|
+
export interface CarApiDriverSuspensionItem {
|
|
72
|
+
reason: string;
|
|
73
|
+
suspensionDate: string;
|
|
74
|
+
reinstatementDate: string;
|
|
75
|
+
}
|
|
76
|
+
export interface CarApiDriverAccidentItem {
|
|
77
|
+
accidentDate: string;
|
|
78
|
+
}
|
|
79
|
+
export interface CarApiDriverTicketItem {
|
|
80
|
+
reason: string;
|
|
81
|
+
ticketDate: string;
|
|
82
|
+
}
|
|
83
|
+
export interface CarApiDriverItem {
|
|
84
|
+
firstName: string;
|
|
85
|
+
dateOfBirth: string;
|
|
86
|
+
maritalStatus: string;
|
|
87
|
+
gender: string;
|
|
88
|
+
occupation: string;
|
|
89
|
+
applicantRelationship?: string;
|
|
90
|
+
licenceInfo: CarApiDriverLicenceInfo;
|
|
91
|
+
listed: boolean;
|
|
92
|
+
listedYear?: string;
|
|
93
|
+
insured: boolean;
|
|
94
|
+
insuredYear?: string;
|
|
95
|
+
insuranceCancellation: boolean;
|
|
96
|
+
insuranceCancellationList?: CarApiDriverCancellationItem[];
|
|
97
|
+
licenceSuspension: boolean;
|
|
98
|
+
licenceSuspensionList?: CarApiDriverSuspensionItem[];
|
|
99
|
+
accident: boolean;
|
|
100
|
+
accidentList?: CarApiDriverAccidentItem[];
|
|
101
|
+
ticket: boolean;
|
|
102
|
+
ticketList?: CarApiDriverTicketItem[];
|
|
103
|
+
}
|
|
104
|
+
export interface CarApiQuoterInfo {
|
|
105
|
+
firstName: string;
|
|
106
|
+
lastName: string;
|
|
107
|
+
phone: string;
|
|
108
|
+
recalculate: boolean;
|
|
109
|
+
utmSource?: string;
|
|
110
|
+
utmCampaign?: string;
|
|
111
|
+
utmProducer?: string;
|
|
112
|
+
partner?: string;
|
|
113
|
+
initial: boolean;
|
|
114
|
+
hasToBeConfirmed?: boolean;
|
|
115
|
+
/** TheBig-specific */
|
|
116
|
+
brokerInfo?: Record<string, string | number | boolean>;
|
|
117
|
+
driverLicense?: string;
|
|
118
|
+
splashScreen?: boolean;
|
|
119
|
+
caslConsent?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/** Driver–vehicle link: priority is 'Prn' | 'Occ' */
|
|
122
|
+
export interface CarApiVehLink {
|
|
123
|
+
driverIndex: number;
|
|
124
|
+
vehicleIndex: number;
|
|
125
|
+
priority: string;
|
|
126
|
+
}
|
|
127
|
+
export interface CarQuoteRequest {
|
|
128
|
+
vehicles: CarApiVehicleItem[];
|
|
129
|
+
drivers: CarApiDriverItem[];
|
|
130
|
+
vehlinks: CarApiVehLink[];
|
|
131
|
+
appInstallDiscount: boolean;
|
|
132
|
+
caaMemberDiscount: boolean;
|
|
133
|
+
multiplePoliciesDiscount: boolean;
|
|
134
|
+
policyStart: string;
|
|
135
|
+
quoterInfo: CarApiQuoterInfo;
|
|
136
|
+
emailTo: string;
|
|
137
|
+
provinceCode: string;
|
|
138
|
+
provinceName: string;
|
|
139
|
+
/** Present for TheBig app type */
|
|
140
|
+
postalCode?: string;
|
|
141
|
+
city?: string;
|
|
142
|
+
locationIndex?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface CarQuoteCoverageItem {
|
|
145
|
+
annualPremium: number;
|
|
146
|
+
code: string;
|
|
147
|
+
deductible: string;
|
|
148
|
+
limit1: string;
|
|
149
|
+
limit2: string;
|
|
150
|
+
}
|
|
151
|
+
export interface CarQuoteBrokerProfile {
|
|
152
|
+
description: string;
|
|
153
|
+
hoursSaturday: string;
|
|
154
|
+
hoursSunday: string;
|
|
155
|
+
hoursWorkdays: string;
|
|
156
|
+
logo: string;
|
|
157
|
+
phone: string;
|
|
158
|
+
title: string;
|
|
159
|
+
redirectUrl?: string;
|
|
160
|
+
}
|
|
161
|
+
export interface CarQuoteCompany {
|
|
162
|
+
description: string;
|
|
163
|
+
logo: string;
|
|
164
|
+
name: string;
|
|
165
|
+
}
|
|
166
|
+
export interface CarQuoteNonStandardCoverages {
|
|
167
|
+
20: boolean;
|
|
168
|
+
27: boolean;
|
|
169
|
+
43: boolean;
|
|
170
|
+
aCCW: boolean;
|
|
171
|
+
}
|
|
172
|
+
export interface CarBrokerIntegration {
|
|
173
|
+
type: string;
|
|
174
|
+
data: Record<string, unknown>;
|
|
175
|
+
}
|
|
176
|
+
export interface CarQuoteItemResponse {
|
|
177
|
+
brokerProfile: CarQuoteBrokerProfile;
|
|
178
|
+
company: CarQuoteCompany;
|
|
179
|
+
date: string;
|
|
180
|
+
id: number | null;
|
|
181
|
+
priceMonthly: string;
|
|
182
|
+
priceYearly: string;
|
|
183
|
+
confirmQuote?: boolean;
|
|
184
|
+
coverages: CarQuoteCoverageItem[];
|
|
185
|
+
nonStandardCoverages: CarQuoteNonStandardCoverages;
|
|
186
|
+
brokerIntegration?: CarBrokerIntegration;
|
|
187
|
+
}
|
|
188
|
+
export type CarQuoteResponse = CarQuoteItemResponse[];
|
|
189
|
+
/** Request body same as CarQuoteRequest. Response: */
|
|
190
|
+
export interface CarOnliaRedirectResponse {
|
|
191
|
+
redirectUrl: string;
|
|
192
|
+
}
|
|
193
|
+
export interface CarSendLeadRequest {
|
|
194
|
+
quote_id: number | null;
|
|
195
|
+
first_name: string;
|
|
196
|
+
last_name: string;
|
|
197
|
+
phone: string;
|
|
198
|
+
}
|
|
199
|
+
export interface CarInsuranceApiEndpoints {
|
|
200
|
+
/** GET - resolve postal code; params: CarPostalGetParams */
|
|
201
|
+
getPostal: {
|
|
202
|
+
params: CarPostalGetParams;
|
|
203
|
+
response: CarPostalResponse;
|
|
204
|
+
};
|
|
205
|
+
/** GET - list makes for year; path: vehicle/year/{year} */
|
|
206
|
+
getVehicleMakes: {
|
|
207
|
+
params: {
|
|
208
|
+
year: string;
|
|
209
|
+
};
|
|
210
|
+
response: CarVehicleMakeResponse;
|
|
211
|
+
};
|
|
212
|
+
/** GET - list models for year and make; path: vehicle/year/{year}/make/{make} */
|
|
213
|
+
getVehicleModels: {
|
|
214
|
+
params: {
|
|
215
|
+
year: string;
|
|
216
|
+
make: string;
|
|
217
|
+
};
|
|
218
|
+
response: CarVehicleModelResponse;
|
|
219
|
+
};
|
|
220
|
+
/** POST - submit quote; body: CarQuoteRequest */
|
|
221
|
+
postQuote: {
|
|
222
|
+
body: CarQuoteRequest;
|
|
223
|
+
response: CarQuoteResponse;
|
|
224
|
+
};
|
|
225
|
+
/** POST - get Onlia redirect URL; body: CarQuoteRequest */
|
|
226
|
+
postQuoteOnliaUrl: {
|
|
227
|
+
body: CarQuoteRequest;
|
|
228
|
+
response: CarOnliaRedirectResponse;
|
|
229
|
+
};
|
|
230
|
+
/** POST - send lead after quote; body: CarSendLeadRequest */
|
|
231
|
+
postSendLead: {
|
|
232
|
+
body: CarSendLeadRequest;
|
|
233
|
+
response: unknown;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './carInsuranceApi.interfaces';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { FormCarConfigHookInterface, ProvinceHookInterface } from './interfaces';
|
|
2
2
|
export declare const useStoreFormCarConfig: () => FormCarConfigHookInterface;
|
|
3
3
|
export declare const useProvince: () => ProvinceHookInterface;
|
|
4
|
+
export declare const useAbReform: () => {
|
|
5
|
+
isAbReformActive: boolean;
|
|
6
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StoreFormCarQuoteActionTypes } from './actions';
|
|
2
2
|
export declare enum CarBrokerTypeEnum {
|
|
3
|
-
Youset = "youset"
|
|
3
|
+
Youset = "youset",
|
|
4
|
+
Mitch = "mitch"
|
|
4
5
|
}
|
|
5
6
|
export interface BrokerProfileInterface {
|
|
6
7
|
description: string;
|
|
@@ -26,6 +27,7 @@ export interface CarQuoteCoverageInterface {
|
|
|
26
27
|
}
|
|
27
28
|
export interface CarBrokerIntegrationInterface {
|
|
28
29
|
type: CarBrokerTypeEnum;
|
|
30
|
+
ux?: 'contactonly';
|
|
29
31
|
data: Record<string, any>;
|
|
30
32
|
}
|
|
31
33
|
export interface CarQuoteItemInterface {
|
|
@@ -30,5 +30,9 @@ export declare enum StoreFormCarVehicleActionTypes {
|
|
|
30
30
|
FormCarVehicleValidateSet = "FormCarVehicleValidateSet",
|
|
31
31
|
FormCarLossOfUseCoverageSelect = "FormCarLossOfUseCoverageSelect",
|
|
32
32
|
FormCarLiabilityForDamageCoverageSelect = "FormCarLiabilityForDamageCoverageSelect",
|
|
33
|
-
FormCarLimitedWaiverOfDepreciationCoverageSelect = "FormCarLimitedWaiverOfDepreciationCoverageSelect"
|
|
33
|
+
FormCarLimitedWaiverOfDepreciationCoverageSelect = "FormCarLimitedWaiverOfDepreciationCoverageSelect",
|
|
34
|
+
FormCarAccidentBenefitsBaseCoverageSelect = "FormCarAccidentBenefitsBaseCoverageSelect",
|
|
35
|
+
FormCarAccidentBenefitsAdditionalCoveragesSet = "FormCarAccidentBenefitsAdditionalCoveragesSet",
|
|
36
|
+
FormCarAccidentBenefitsAdditionalCoverageRemove = "FormCarAccidentBenefitsAdditionalCoverageRemove",
|
|
37
|
+
FormCarAccidentBenefitsAcknowledge = "FormCarAccidentBenefitsAcknowledge"
|
|
34
38
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VehicleConditionTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
|
-
import { FormCarVehicleStateInterface } from './interfaces';
|
|
2
|
+
import { VehicleAccidentBenefitsInterface, FormCarVehicleStateInterface } from './interfaces';
|
|
3
3
|
export declare const removeVehicleItem: (state: FormCarVehicleStateInterface, vehicleIndex: number) => FormCarVehicleStateInterface;
|
|
4
4
|
export declare const createVehicleItem: (state: FormCarVehicleStateInterface) => FormCarVehicleStateInterface;
|
|
5
5
|
export declare const setVehicleProperty: (state: FormCarVehicleStateInterface, name: string, value: boolean) => FormCarVehicleStateInterface;
|
|
6
6
|
export declare const setVehicleYear: (state: FormCarVehicleStateInterface, vehicleYear: string) => FormCarVehicleStateInterface;
|
|
7
7
|
export declare const setVehicleMake: (state: FormCarVehicleStateInterface, vehicleMake: string) => FormCarVehicleStateInterface;
|
|
8
8
|
export declare const setVehicleModel: (state: FormCarVehicleStateInterface, vehicleModel: string) => FormCarVehicleStateInterface;
|
|
9
|
-
export declare const setItemProperty: (state: FormCarVehicleStateInterface, name: string, value: string | boolean | VehicleConditionTypes) => FormCarVehicleStateInterface;
|
|
9
|
+
export declare const setItemProperty: (state: FormCarVehicleStateInterface, name: string, value: string | string[] | boolean | VehicleConditionTypes | VehicleAccidentBenefitsInterface) => FormCarVehicleStateInterface;
|
|
10
10
|
export declare const setCarCoverageProperty: (state: FormCarVehicleStateInterface, name: string, coverage: boolean, value: number) => FormCarVehicleStateInterface;
|
package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/initialState.d.ts
CHANGED
|
@@ -23,5 +23,10 @@ export declare const limitedWaiverOfDepreciationInitialState: {
|
|
|
23
23
|
coverage: boolean;
|
|
24
24
|
limit: number;
|
|
25
25
|
};
|
|
26
|
+
export declare const vehicleAccidentBenefitsInitialState: {
|
|
27
|
+
baseCoverage: string;
|
|
28
|
+
additionalCoverages: never[];
|
|
29
|
+
abAcknowledged: boolean;
|
|
30
|
+
};
|
|
26
31
|
export declare const vehicleItemInitialState: VehicleItemInterface;
|
|
27
32
|
export declare const carFormVehicleInitialState: FormCarVehicleStateInterface;
|
package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ export interface VehicleLimitedWaiverOfDepreciationInterface {
|
|
|
25
25
|
coverage: boolean;
|
|
26
26
|
limit: number;
|
|
27
27
|
}
|
|
28
|
+
export interface VehicleAccidentBenefitsInterface {
|
|
29
|
+
baseCoverage: string;
|
|
30
|
+
additionalCoverages: string[];
|
|
31
|
+
abAcknowledged?: boolean;
|
|
32
|
+
}
|
|
28
33
|
export interface VehicleItemInterface {
|
|
29
34
|
year: string | undefined;
|
|
30
35
|
make: string | undefined;
|
|
@@ -46,6 +51,7 @@ export interface VehicleItemInterface {
|
|
|
46
51
|
lossofuse: VehicleLossOfUseInterface;
|
|
47
52
|
liabilityfordamage: VehicleLiabilityForDamageInterface;
|
|
48
53
|
limitedwaiverofdepreciation: VehicleLimitedWaiverOfDepreciationInterface;
|
|
54
|
+
accidentbenefits: VehicleAccidentBenefitsInterface;
|
|
49
55
|
postalCode: string;
|
|
50
56
|
locationIndex: string;
|
|
51
57
|
city: string;
|
|
@@ -224,6 +230,28 @@ export type FormCarVehicleStateActionType = {
|
|
|
224
230
|
limit: number;
|
|
225
231
|
};
|
|
226
232
|
localIndex?: string;
|
|
233
|
+
} | {
|
|
234
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsBaseCoverageSelect;
|
|
235
|
+
payload: {
|
|
236
|
+
baseCoverage: string;
|
|
237
|
+
};
|
|
238
|
+
localIndex?: string;
|
|
239
|
+
} | {
|
|
240
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsAdditionalCoveragesSet;
|
|
241
|
+
payload: {
|
|
242
|
+
additionalCoverages: string[];
|
|
243
|
+
};
|
|
244
|
+
localIndex?: string;
|
|
245
|
+
} | {
|
|
246
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsAdditionalCoverageRemove;
|
|
247
|
+
payload: {
|
|
248
|
+
coverageValue: string;
|
|
249
|
+
};
|
|
250
|
+
localIndex?: string;
|
|
251
|
+
} | {
|
|
252
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsAcknowledge;
|
|
253
|
+
payload?: null;
|
|
254
|
+
localIndex?: string;
|
|
227
255
|
};
|
|
228
256
|
export type FormCarVehicleStateReducerInterface = (state: FormCarVehicleStateInterface, action: FormCarVehicleStateActionType) => void;
|
|
229
257
|
export interface ClientHookInterface {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { StoreFormHomeQuoteActionTypes } from './actions';
|
|
2
2
|
export declare enum HomeBrokerTypeEnum {
|
|
3
|
-
Youset = "youset"
|
|
3
|
+
Youset = "youset",
|
|
4
|
+
Mitch = "mitch"
|
|
4
5
|
}
|
|
5
6
|
export interface HomeBrokerIntegrationInterface {
|
|
6
7
|
type: HomeBrokerTypeEnum;
|
|
8
|
+
ux?: 'contactonly';
|
|
7
9
|
data: Record<string, any>;
|
|
8
10
|
}
|
|
9
11
|
export interface BrokerProfileInterface {
|
package/dist/index.d.ts
CHANGED
|
@@ -312,7 +312,11 @@ declare enum StoreFormCarVehicleActionTypes {
|
|
|
312
312
|
FormCarVehicleValidateSet = "FormCarVehicleValidateSet",
|
|
313
313
|
FormCarLossOfUseCoverageSelect = "FormCarLossOfUseCoverageSelect",
|
|
314
314
|
FormCarLiabilityForDamageCoverageSelect = "FormCarLiabilityForDamageCoverageSelect",
|
|
315
|
-
FormCarLimitedWaiverOfDepreciationCoverageSelect = "FormCarLimitedWaiverOfDepreciationCoverageSelect"
|
|
315
|
+
FormCarLimitedWaiverOfDepreciationCoverageSelect = "FormCarLimitedWaiverOfDepreciationCoverageSelect",
|
|
316
|
+
FormCarAccidentBenefitsBaseCoverageSelect = "FormCarAccidentBenefitsBaseCoverageSelect",
|
|
317
|
+
FormCarAccidentBenefitsAdditionalCoveragesSet = "FormCarAccidentBenefitsAdditionalCoveragesSet",
|
|
318
|
+
FormCarAccidentBenefitsAdditionalCoverageRemove = "FormCarAccidentBenefitsAdditionalCoverageRemove",
|
|
319
|
+
FormCarAccidentBenefitsAcknowledge = "FormCarAccidentBenefitsAcknowledge"
|
|
316
320
|
}
|
|
317
321
|
|
|
318
322
|
interface PostalStateSharedInterface {
|
|
@@ -360,6 +364,11 @@ interface VehicleLimitedWaiverOfDepreciationInterface {
|
|
|
360
364
|
coverage: boolean;
|
|
361
365
|
limit: number;
|
|
362
366
|
}
|
|
367
|
+
interface VehicleAccidentBenefitsInterface {
|
|
368
|
+
baseCoverage: string;
|
|
369
|
+
additionalCoverages: string[];
|
|
370
|
+
abAcknowledged?: boolean;
|
|
371
|
+
}
|
|
363
372
|
interface VehicleItemInterface {
|
|
364
373
|
year: string | undefined;
|
|
365
374
|
make: string | undefined;
|
|
@@ -381,6 +390,7 @@ interface VehicleItemInterface {
|
|
|
381
390
|
lossofuse: VehicleLossOfUseInterface;
|
|
382
391
|
liabilityfordamage: VehicleLiabilityForDamageInterface;
|
|
383
392
|
limitedwaiverofdepreciation: VehicleLimitedWaiverOfDepreciationInterface;
|
|
393
|
+
accidentbenefits: VehicleAccidentBenefitsInterface;
|
|
384
394
|
postalCode: string;
|
|
385
395
|
locationIndex: string;
|
|
386
396
|
city: string;
|
|
@@ -559,6 +569,28 @@ type FormCarVehicleStateActionType = {
|
|
|
559
569
|
limit: number;
|
|
560
570
|
};
|
|
561
571
|
localIndex?: string;
|
|
572
|
+
} | {
|
|
573
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsBaseCoverageSelect;
|
|
574
|
+
payload: {
|
|
575
|
+
baseCoverage: string;
|
|
576
|
+
};
|
|
577
|
+
localIndex?: string;
|
|
578
|
+
} | {
|
|
579
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsAdditionalCoveragesSet;
|
|
580
|
+
payload: {
|
|
581
|
+
additionalCoverages: string[];
|
|
582
|
+
};
|
|
583
|
+
localIndex?: string;
|
|
584
|
+
} | {
|
|
585
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsAdditionalCoverageRemove;
|
|
586
|
+
payload: {
|
|
587
|
+
coverageValue: string;
|
|
588
|
+
};
|
|
589
|
+
localIndex?: string;
|
|
590
|
+
} | {
|
|
591
|
+
type: StoreFormCarVehicleActionTypes.FormCarAccidentBenefitsAcknowledge;
|
|
592
|
+
payload?: null;
|
|
593
|
+
localIndex?: string;
|
|
562
594
|
};
|
|
563
595
|
interface FormCarVehicleHookInterface {
|
|
564
596
|
vehicleState: FormCarVehicleStateInterface;
|
|
@@ -1286,6 +1318,7 @@ interface DiscountQuoterInfoInterface {
|
|
|
1286
1318
|
lastName: string;
|
|
1287
1319
|
phone: string;
|
|
1288
1320
|
recalculate: boolean;
|
|
1321
|
+
accidentBenefitsChanged?: boolean;
|
|
1289
1322
|
utmSource?: string;
|
|
1290
1323
|
utmCampaign?: string;
|
|
1291
1324
|
brokerInfo?: {
|
|
@@ -1504,6 +1537,9 @@ declare const useStoreFormCarPostal: () => FormCarPostalHookInterface;
|
|
|
1504
1537
|
|
|
1505
1538
|
declare const useStoreFormCarConfig: () => FormCarConfigHookInterface;
|
|
1506
1539
|
declare const useProvince: () => ProvinceHookInterface;
|
|
1540
|
+
declare const useAbReform: () => {
|
|
1541
|
+
isAbReformActive: boolean;
|
|
1542
|
+
};
|
|
1507
1543
|
|
|
1508
1544
|
declare enum StoreFormCarQuoteActionTypes {
|
|
1509
1545
|
UpdateCarQuoteResponse = "UpdateCarQuoteResponse",
|
|
@@ -1517,7 +1553,8 @@ declare enum StoreFormCarQuoteActionTypes {
|
|
|
1517
1553
|
}
|
|
1518
1554
|
|
|
1519
1555
|
declare enum CarBrokerTypeEnum {
|
|
1520
|
-
Youset = "youset"
|
|
1556
|
+
Youset = "youset",
|
|
1557
|
+
Mitch = "mitch"
|
|
1521
1558
|
}
|
|
1522
1559
|
interface BrokerProfileInterface$2 {
|
|
1523
1560
|
description: string;
|
|
@@ -1543,6 +1580,7 @@ interface CarQuoteCoverageInterface {
|
|
|
1543
1580
|
}
|
|
1544
1581
|
interface CarBrokerIntegrationInterface {
|
|
1545
1582
|
type: CarBrokerTypeEnum;
|
|
1583
|
+
ux?: 'contactonly';
|
|
1546
1584
|
data: Record<string, any>;
|
|
1547
1585
|
}
|
|
1548
1586
|
interface CarQuoteItemInterface {
|
|
@@ -2398,10 +2436,12 @@ declare enum StoreFormHomeQuoteActionTypes {
|
|
|
2398
2436
|
}
|
|
2399
2437
|
|
|
2400
2438
|
declare enum HomeBrokerTypeEnum {
|
|
2401
|
-
Youset = "youset"
|
|
2439
|
+
Youset = "youset",
|
|
2440
|
+
Mitch = "mitch"
|
|
2402
2441
|
}
|
|
2403
2442
|
interface HomeBrokerIntegrationInterface {
|
|
2404
2443
|
type: HomeBrokerTypeEnum;
|
|
2444
|
+
ux?: 'contactonly';
|
|
2405
2445
|
data: Record<string, any>;
|
|
2406
2446
|
}
|
|
2407
2447
|
interface BrokerProfileInterface$1 {
|
|
@@ -2735,6 +2775,7 @@ declare enum StoreFormLifeQuoteActionTypes {
|
|
|
2735
2775
|
|
|
2736
2776
|
interface LifeBrokerIntegrationInterface {
|
|
2737
2777
|
type: 'hub' | 'dcw';
|
|
2778
|
+
ux?: 'contactonly';
|
|
2738
2779
|
data: {
|
|
2739
2780
|
label?: string;
|
|
2740
2781
|
description?: string;
|
|
@@ -3296,4 +3337,4 @@ interface AutofillOptions {
|
|
|
3296
3337
|
*/
|
|
3297
3338
|
declare const useAutofillLifeForm: (options?: AutofillOptions) => void;
|
|
3298
3339
|
|
|
3299
|
-
export { AccidentItemInterface, AppConfigStateInterface, AppLoaderStateInterface, AppModalStateInterface, ApplicantCancellationItemInterface, ApplicantClaimItemInterface, ApplicantInsuredInterface, AutofillData, AutofillDriver, AutofillVehLink, AutofillVehicle, AutofillVehicleCoverage, BirthDatePayloadType, CarBrokerIntegrationInterface, CarBrokerTypeEnum, CarQuoteCoverageInterface, CarQuoteDataHandler, CarQuoteItemInterface, ClearFormDataHandler, ClientStateInterface, DiscountQuoterInfoInterface, DiscountVehLinkInterface, DriverCancellationItemInterface, DriverItemInterface, DriverLicenceInterface, DriverMinMaxDates, FormCarConfigStateInterface, FormCarDiscountStateInterface, FormCarDriverStateInterface, FormCarPostalStateInterface, FormCarQuoteStateInterface, FormCarQuoteStateReducerInterface, FormCarVehicleStateInterface, FormHomeApplicantStateInterface, FormHomeDiscountStateInterface, FormHomeDwellingStateInterface, FormHomePostalStateInterface, FormHomeQuoteStateInterface, FormHomeQuoteStateReducerInterface, FormLifeApplicantStateInterface, FormLifeCoverageStateInterface, FormLifePostalStateInterface, FormLifeQuoteStateInterface, FormLifeQuoteStateReducerInterface, HomeBrokerIntegrationInterface, HomeBrokerTypeEnum, HomeQuoteDataHandler, HomeQuoteItemInterface, LicenceAgePayloadType, LicenceConfigInterface, LifeAutofillData, LifeAutofillQuoterInfo, LifeBrokerIntegrationInterface, LifeQuoteDataHandler, LifeQuoteItemInterface, MappedAutofillData, PartnerStateInterface, ProvinceHookInterface, QuoterInfoInterface, StoreClientActionTypes, StoreConfigAppConfigActionTypes, StoreConfigAppDeviceActionTypes, StoreConfigAppLoaderActionTypes, StoreConfigAppModalActionTypes, StoreFormCarConfigActionTypes, StoreFormCarDiscountActionTypes, StoreFormCarDriverAccidentActionTypes, StoreFormCarDriverBaseActionTypes, StoreFormCarDriverCancellationActionTypes, StoreFormCarDriverInfoActionTypes, StoreFormCarDriverInsuranceActionTypes, StoreFormCarDriverLicenceActionTypes, StoreFormCarDriverSuspensionActionTypes, StoreFormCarDriverTicketActionTypes, StoreFormCarPostalActionTypes, StoreFormCarQuoteActionTypes, StoreFormCarVehicleActionTypes, StoreFormHomeApplicantBaseActionTypes, StoreFormHomeApplicantCancellationActionTypes, StoreFormHomeApplicantClaimActionTypes, StoreFormHomeApplicantInfoActionTypes, StoreFormHomeApplicantInsuranceActionTypes, StoreFormHomeDiscountActionTypes, StoreFormHomeDwellingActionTypes, StoreFormHomePostalActionTypes, StoreFormHomeQuoteActionTypes, StoreFormLifeApplicantActionTypes, StoreFormLifeCoverageActionTypes, StoreFormLifePostalActionTypes, StoreFormLifeQuoteActionTypes, StorePartnerActionTypes, StoreProvider, SuspensionItemInterface, TicketItemInterface, addDayToDate, configStateReducer, differenceInHoursFromNow, formCarReducer, formCondoDwellingInitialState, formHomeDwellingInitialState, formHomeReducer, formLifeReducer, formTenantDwellingInitialState, getDwellingInitialState, getProvinceCodeFromState, getProvinceName, globalStateReducer, initHttpResponse, mapToConfigState, mapToDriverState, mapToLifeApplicantState, mapToLifeCoverageState, mapToLifePostalState, mapToPostalState, mapToVehicleState, parseAutofillParam, parseLifeAutofillParam, reducers, export_default as token, useAutofillCarForm, useAutofillLifeForm, useHandlerAuth, useHandlerCarMake, useHandlerCarModel, useHandlerCarQuoterEmail, useHandlerHomeQuoterEmail, useHandlerLifeQuoterEmail, useHandlerPartner, useHandlerPostal, useProvince, useStoreAppConfig, useStoreAppDevice, useStoreAppLoader, useStoreAppModal, useStoreClient, useStoreClientLoggedIn, useStoreClientProfile, useStoreClientToken, useStoreDeviceBP, useStoreDeviceType, useStoreFormCarConfig, useStoreFormCarDiscount, useStoreFormCarDriverAccident, useStoreFormCarDriverBase, useStoreFormCarDriverCancellation, useStoreFormCarDriverInfo, useStoreFormCarDriverInsurance, useStoreFormCarDriverLicence, useStoreFormCarDriverSuspension, useStoreFormCarDriverTicket, useStoreFormCarPostal, useStoreFormCarQuote, useStoreFormCarVehicle, useStoreFormHomeApplicantBase, useStoreFormHomeApplicantCancellation, useStoreFormHomeApplicantClaim, useStoreFormHomeApplicantInfo, useStoreFormHomeApplicantInsurance, useStoreFormHomeDiscount, useStoreFormHomeDwelling, useStoreFormHomePostal, useStoreFormHomeQuote, useStoreFormLifeApplicant, useStoreFormLifeCoverage, useStoreFormLifePostal, useStoreFormLifeQuote, useStorePartner, useValidationAddress, useValidationApplicant, useValidationCarDiscount, useValidationCoverage, useValidationDriver, useValidationDwelling, useValidationHomeDiscount, useValidationLifeApplicant, useValidationVehicle };
|
|
3340
|
+
export { AccidentItemInterface, AppConfigStateInterface, AppLoaderStateInterface, AppModalStateInterface, ApplicantCancellationItemInterface, ApplicantClaimItemInterface, ApplicantInsuredInterface, AutofillData, AutofillDriver, AutofillVehLink, AutofillVehicle, AutofillVehicleCoverage, BirthDatePayloadType, CarBrokerIntegrationInterface, CarBrokerTypeEnum, CarQuoteCoverageInterface, CarQuoteDataHandler, CarQuoteItemInterface, ClearFormDataHandler, ClientStateInterface, DiscountQuoterInfoInterface, DiscountVehLinkInterface, DriverCancellationItemInterface, DriverItemInterface, DriverLicenceInterface, DriverMinMaxDates, FormCarConfigStateInterface, FormCarDiscountStateInterface, FormCarDriverStateInterface, FormCarPostalStateInterface, FormCarQuoteStateInterface, FormCarQuoteStateReducerInterface, FormCarVehicleStateInterface, FormHomeApplicantStateInterface, FormHomeDiscountStateInterface, FormHomeDwellingStateInterface, FormHomePostalStateInterface, FormHomeQuoteStateInterface, FormHomeQuoteStateReducerInterface, FormLifeApplicantStateInterface, FormLifeCoverageStateInterface, FormLifePostalStateInterface, FormLifeQuoteStateInterface, FormLifeQuoteStateReducerInterface, HomeBrokerIntegrationInterface, HomeBrokerTypeEnum, HomeQuoteDataHandler, HomeQuoteItemInterface, LicenceAgePayloadType, LicenceConfigInterface, LifeAutofillData, LifeAutofillQuoterInfo, LifeBrokerIntegrationInterface, LifeQuoteDataHandler, LifeQuoteItemInterface, MappedAutofillData, PartnerStateInterface, ProvinceHookInterface, QuoterInfoInterface, StoreClientActionTypes, StoreConfigAppConfigActionTypes, StoreConfigAppDeviceActionTypes, StoreConfigAppLoaderActionTypes, StoreConfigAppModalActionTypes, StoreFormCarConfigActionTypes, StoreFormCarDiscountActionTypes, StoreFormCarDriverAccidentActionTypes, StoreFormCarDriverBaseActionTypes, StoreFormCarDriverCancellationActionTypes, StoreFormCarDriverInfoActionTypes, StoreFormCarDriverInsuranceActionTypes, StoreFormCarDriverLicenceActionTypes, StoreFormCarDriverSuspensionActionTypes, StoreFormCarDriverTicketActionTypes, StoreFormCarPostalActionTypes, StoreFormCarQuoteActionTypes, StoreFormCarVehicleActionTypes, StoreFormHomeApplicantBaseActionTypes, StoreFormHomeApplicantCancellationActionTypes, StoreFormHomeApplicantClaimActionTypes, StoreFormHomeApplicantInfoActionTypes, StoreFormHomeApplicantInsuranceActionTypes, StoreFormHomeDiscountActionTypes, StoreFormHomeDwellingActionTypes, StoreFormHomePostalActionTypes, StoreFormHomeQuoteActionTypes, StoreFormLifeApplicantActionTypes, StoreFormLifeCoverageActionTypes, StoreFormLifePostalActionTypes, StoreFormLifeQuoteActionTypes, StorePartnerActionTypes, StoreProvider, SuspensionItemInterface, TicketItemInterface, addDayToDate, configStateReducer, differenceInHoursFromNow, formCarReducer, formCondoDwellingInitialState, formHomeDwellingInitialState, formHomeReducer, formLifeReducer, formTenantDwellingInitialState, getDwellingInitialState, getProvinceCodeFromState, getProvinceName, globalStateReducer, initHttpResponse, mapToConfigState, mapToDriverState, mapToLifeApplicantState, mapToLifeCoverageState, mapToLifePostalState, mapToPostalState, mapToVehicleState, parseAutofillParam, parseLifeAutofillParam, reducers, export_default as token, useAbReform, useAutofillCarForm, useAutofillLifeForm, useHandlerAuth, useHandlerCarMake, useHandlerCarModel, useHandlerCarQuoterEmail, useHandlerHomeQuoterEmail, useHandlerLifeQuoterEmail, useHandlerPartner, useHandlerPostal, useProvince, useStoreAppConfig, useStoreAppDevice, useStoreAppLoader, useStoreAppModal, useStoreClient, useStoreClientLoggedIn, useStoreClientProfile, useStoreClientToken, useStoreDeviceBP, useStoreDeviceType, useStoreFormCarConfig, useStoreFormCarDiscount, useStoreFormCarDriverAccident, useStoreFormCarDriverBase, useStoreFormCarDriverCancellation, useStoreFormCarDriverInfo, useStoreFormCarDriverInsurance, useStoreFormCarDriverLicence, useStoreFormCarDriverSuspension, useStoreFormCarDriverTicket, useStoreFormCarPostal, useStoreFormCarQuote, useStoreFormCarVehicle, useStoreFormHomeApplicantBase, useStoreFormHomeApplicantCancellation, useStoreFormHomeApplicantClaim, useStoreFormHomeApplicantInfo, useStoreFormHomeApplicantInsurance, useStoreFormHomeDiscount, useStoreFormHomeDwelling, useStoreFormHomePostal, useStoreFormHomeQuote, useStoreFormLifeApplicant, useStoreFormLifeCoverage, useStoreFormLifePostal, useStoreFormLifeQuote, useStorePartner, useValidationAddress, useValidationApplicant, useValidationCarDiscount, useValidationCoverage, useValidationDriver, useValidationDwelling, useValidationHomeDiscount, useValidationLifeApplicant, useValidationVehicle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mychoice/mychoice-sdk-store",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.17",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/hexdivision/mychoice-sdk#readme",
|
|
6
6
|
"author": "GogMes",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"url": "https://github.com/hexdivision/mychoice-sdk/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mychoice/mychoice-sdk-components": "^2.2.
|
|
32
|
+
"@mychoice/mychoice-sdk-components": "^2.2.14",
|
|
33
33
|
"@redux-devtools/extension": "^3.2.2",
|
|
34
34
|
"axios": "^0.27.2",
|
|
35
35
|
"humps": "^2.0.1",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"redux": "^4.2.0",
|
|
38
38
|
"redux-thunk": "^2.4.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d02cbadfc70909cd41a46532ef61bc85c6e9952f"
|
|
41
41
|
}
|