@mychoice/mychoice-sdk-store 2.1.58 → 2.1.69

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.
@@ -1 +1 @@
1
- export type { FormCarQuoteStateInterface, FormCarQuoteStateReducerInterface, CarQuoteItemInterface, } from './interfaces';
1
+ export type { FormCarQuoteStateInterface, FormCarQuoteStateReducerInterface, CarQuoteItemInterface, CarQuoteCoverageInterface, } from './interfaces';
@@ -14,6 +14,13 @@ export interface QuoteCompanyInterface {
14
14
  logo: string;
15
15
  name: string;
16
16
  }
17
+ export interface CarQuoteCoverageInterface {
18
+ annualPremium: number;
19
+ code: string;
20
+ deductible: string;
21
+ limit1: string;
22
+ limit2: string;
23
+ }
17
24
  export interface CarQuoteItemInterface {
18
25
  brokerProfile: BrokerProfileInterface;
19
26
  company: QuoteCompanyInterface;
@@ -22,6 +29,13 @@ export interface CarQuoteItemInterface {
22
29
  priceMonthly: string;
23
30
  priceYearly: string;
24
31
  confirmQuote?: boolean;
32
+ coverages: CarQuoteCoverageInterface[];
33
+ nonStandardCoverages: {
34
+ 20: boolean;
35
+ 27: boolean;
36
+ 43: boolean;
37
+ ACCW: boolean;
38
+ };
25
39
  }
26
40
  export interface FormCarQuoteStateInterface {
27
41
  items: CarQuoteItemInterface[];
@@ -27,5 +27,8 @@ export declare enum StoreFormCarVehicleActionTypes {
27
27
  FormCarLiabilityCoverageSelect = "FormCarLiabilityCoverageSelect",
28
28
  FormCarLiabilityLimitSelect = "FormCarLiabilityLimitSelect",
29
29
  FormCarVehicleValidate = "FormCarVehicleValidate",
30
- FormCarVehicleValidateSet = "FormCarVehicleValidateSet"
30
+ FormCarVehicleValidateSet = "FormCarVehicleValidateSet",
31
+ FormCarLossOfUseCoverageSelect = "FormCarLossOfUseCoverageSelect",
32
+ FormCarLiabilityForDamageCoverageSelect = "FormCarLiabilityForDamageCoverageSelect",
33
+ FormCarLimitedWaiverOfDepreciationCoverageSelect = "FormCarLimitedWaiverOfDepreciationCoverageSelect"
31
34
  }
@@ -11,5 +11,17 @@ export declare const vehicleLiabilityInitialState: {
11
11
  coverage: boolean;
12
12
  limit: number;
13
13
  };
14
+ export declare const vehicleLossOfUseInitialState: {
15
+ coverage: boolean;
16
+ limit: number;
17
+ };
18
+ export declare const vehicleLiabilityForDamageInitialState: {
19
+ coverage: boolean;
20
+ limit: number;
21
+ };
22
+ export declare const limitedWaiverOfDepreciationInitialState: {
23
+ coverage: boolean;
24
+ limit: number;
25
+ };
14
26
  export declare const vehicleItemInitialState: VehicleItemInterface;
15
27
  export declare const carFormVehicleInitialState: FormCarVehicleStateInterface;
@@ -13,6 +13,18 @@ export interface VehicleLiabilityInterface {
13
13
  coverage: boolean;
14
14
  limit: number;
15
15
  }
16
+ export interface VehicleLossOfUseInterface {
17
+ coverage: boolean;
18
+ limit: number;
19
+ }
20
+ export interface VehicleLiabilityForDamageInterface {
21
+ coverage: boolean;
22
+ limit: number;
23
+ }
24
+ export interface VehicleLimitedWaiverOfDepreciationInterface {
25
+ coverage: boolean;
26
+ limit: number;
27
+ }
16
28
  export interface VehicleItemInterface {
17
29
  year: string | undefined;
18
30
  make: string | undefined;
@@ -31,6 +43,9 @@ export interface VehicleItemInterface {
31
43
  comprehensive: VehicleComprehensiveInterface;
32
44
  collision: VehicleCollisionInterface;
33
45
  liability: VehicleLiabilityInterface;
46
+ lossofuse: VehicleLossOfUseInterface;
47
+ liabilityfordamage: VehicleLiabilityForDamageInterface;
48
+ limitedwaiverofdepreciation: VehicleLimitedWaiverOfDepreciationInterface;
34
49
  postalCode: string;
35
50
  locationIndex: string;
36
51
  city: string;
@@ -188,6 +203,27 @@ export type FormCarVehicleStateActionType = {
188
203
  limit: number;
189
204
  };
190
205
  localIndex?: string;
206
+ } | {
207
+ type: StoreFormCarVehicleActionTypes.FormCarLossOfUseCoverageSelect;
208
+ payload: {
209
+ coverage: boolean;
210
+ limit: number;
211
+ };
212
+ localIndex?: string;
213
+ } | {
214
+ type: StoreFormCarVehicleActionTypes.FormCarLiabilityForDamageCoverageSelect;
215
+ payload: {
216
+ coverage: boolean;
217
+ limit: number;
218
+ };
219
+ localIndex?: string;
220
+ } | {
221
+ type: StoreFormCarVehicleActionTypes.FormCarLimitedWaiverOfDepreciationCoverageSelect;
222
+ payload: {
223
+ coverage: boolean;
224
+ limit: number;
225
+ };
226
+ localIndex?: string;
191
227
  };
192
228
  export type FormCarVehicleStateReducerInterface = (state: FormCarVehicleStateInterface, action: FormCarVehicleStateActionType) => void;
193
229
  export interface ClientHookInterface {
package/dist/index.d.ts CHANGED
@@ -309,7 +309,10 @@ declare enum StoreFormCarVehicleActionTypes {
309
309
  FormCarLiabilityCoverageSelect = "FormCarLiabilityCoverageSelect",
310
310
  FormCarLiabilityLimitSelect = "FormCarLiabilityLimitSelect",
311
311
  FormCarVehicleValidate = "FormCarVehicleValidate",
312
- FormCarVehicleValidateSet = "FormCarVehicleValidateSet"
312
+ FormCarVehicleValidateSet = "FormCarVehicleValidateSet",
313
+ FormCarLossOfUseCoverageSelect = "FormCarLossOfUseCoverageSelect",
314
+ FormCarLiabilityForDamageCoverageSelect = "FormCarLiabilityForDamageCoverageSelect",
315
+ FormCarLimitedWaiverOfDepreciationCoverageSelect = "FormCarLimitedWaiverOfDepreciationCoverageSelect"
313
316
  }
314
317
 
315
318
  interface PostalStateSharedInterface {
@@ -345,6 +348,18 @@ interface VehicleLiabilityInterface {
345
348
  coverage: boolean;
346
349
  limit: number;
347
350
  }
351
+ interface VehicleLossOfUseInterface {
352
+ coverage: boolean;
353
+ limit: number;
354
+ }
355
+ interface VehicleLiabilityForDamageInterface {
356
+ coverage: boolean;
357
+ limit: number;
358
+ }
359
+ interface VehicleLimitedWaiverOfDepreciationInterface {
360
+ coverage: boolean;
361
+ limit: number;
362
+ }
348
363
  interface VehicleItemInterface {
349
364
  year: string | undefined;
350
365
  make: string | undefined;
@@ -363,6 +378,9 @@ interface VehicleItemInterface {
363
378
  comprehensive: VehicleComprehensiveInterface;
364
379
  collision: VehicleCollisionInterface;
365
380
  liability: VehicleLiabilityInterface;
381
+ lossofuse: VehicleLossOfUseInterface;
382
+ liabilityfordamage: VehicleLiabilityForDamageInterface;
383
+ limitedwaiverofdepreciation: VehicleLimitedWaiverOfDepreciationInterface;
366
384
  postalCode: string;
367
385
  locationIndex: string;
368
386
  city: string;
@@ -520,6 +538,27 @@ type FormCarVehicleStateActionType = {
520
538
  limit: number;
521
539
  };
522
540
  localIndex?: string;
541
+ } | {
542
+ type: StoreFormCarVehicleActionTypes.FormCarLossOfUseCoverageSelect;
543
+ payload: {
544
+ coverage: boolean;
545
+ limit: number;
546
+ };
547
+ localIndex?: string;
548
+ } | {
549
+ type: StoreFormCarVehicleActionTypes.FormCarLiabilityForDamageCoverageSelect;
550
+ payload: {
551
+ coverage: boolean;
552
+ limit: number;
553
+ };
554
+ localIndex?: string;
555
+ } | {
556
+ type: StoreFormCarVehicleActionTypes.FormCarLimitedWaiverOfDepreciationCoverageSelect;
557
+ payload: {
558
+ coverage: boolean;
559
+ limit: number;
560
+ };
561
+ localIndex?: string;
523
562
  };
524
563
  interface FormCarVehicleHookInterface {
525
564
  vehicleState: FormCarVehicleStateInterface;
@@ -1485,6 +1524,13 @@ interface QuoteCompanyInterface$2 {
1485
1524
  logo: string;
1486
1525
  name: string;
1487
1526
  }
1527
+ interface CarQuoteCoverageInterface {
1528
+ annualPremium: number;
1529
+ code: string;
1530
+ deductible: string;
1531
+ limit1: string;
1532
+ limit2: string;
1533
+ }
1488
1534
  interface CarQuoteItemInterface {
1489
1535
  brokerProfile: BrokerProfileInterface$2;
1490
1536
  company: QuoteCompanyInterface$2;
@@ -1493,6 +1539,13 @@ interface CarQuoteItemInterface {
1493
1539
  priceMonthly: string;
1494
1540
  priceYearly: string;
1495
1541
  confirmQuote?: boolean;
1542
+ coverages: CarQuoteCoverageInterface[];
1543
+ nonStandardCoverages: {
1544
+ 20: boolean;
1545
+ 27: boolean;
1546
+ 43: boolean;
1547
+ ACCW: boolean;
1548
+ };
1496
1549
  }
1497
1550
  interface FormCarQuoteStateInterface {
1498
1551
  items: CarQuoteItemInterface[];
@@ -2935,4 +2988,4 @@ declare const useValidationLifeApplicant: () => UseHandlerApplicantValidateInter
2935
2988
  declare const addDayToDate: (value: string, days?: number | string) => string;
2936
2989
  declare const differenceInHoursFromNow: (date: string) => number;
2937
2990
 
2938
- export { AccidentItemInterface, AppConfigStateInterface, AppLoaderStateInterface, AppModalStateInterface, ApplicantCancellationItemInterface, ApplicantClaimItemInterface, ApplicantInsuredInterface, BirthDatePayloadType, 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, HomeQuoteDataHandler, HomeQuoteItemInterface, LicenceAgePayloadType, LicenceConfigInterface, LifeQuoteDataHandler, LifeQuoteItemInterface, 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, globalStateReducer, initHttpResponse, reducers, export_default as token, 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 };
2991
+ export { AccidentItemInterface, AppConfigStateInterface, AppLoaderStateInterface, AppModalStateInterface, ApplicantCancellationItemInterface, ApplicantClaimItemInterface, ApplicantInsuredInterface, BirthDatePayloadType, 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, HomeQuoteDataHandler, HomeQuoteItemInterface, LicenceAgePayloadType, LicenceConfigInterface, LifeQuoteDataHandler, LifeQuoteItemInterface, 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, globalStateReducer, initHttpResponse, reducers, export_default as token, 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.1.58",
3
+ "version": "2.1.69",
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.1.58",
32
+ "@mychoice/mychoice-sdk-components": "^2.1.69",
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": "722c06215f10afe426bb0a45616e5e2c500c72cd"
40
+ "gitHead": "5a1d1df451d8d75830db95bc7622603acfe6d245"
41
41
  }